I am unable to spin up instances having flavor greater than m1.tiny on a server having 64GB RAM. The error reported by horizon is "Volume 71bc03cf-6ab1-4511-8763-43647fd1ea2c did not finish being created even after we waited 0 seconds or 1 attempts." However, there are no errors with ,m1.tiny. I am using stable/ocata on Ubuntu 16.04. Any help would be really appreciated. Thanks
Local.conf:
[[local|localrc]]
HOST_IP=10.0.0.150
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_TOKEN=password
SERVICE_PASSWORD=password
ADMIN_PASSWORD=password
enable_plugin zun https://git.openstack.org/openstack/zun
enable_plugin zun-tempest-plugin https://git.openstack.org/openstack/zun-tempest-plugin
RECLONE=yes
#This below plugin enables installation of container engine on Devstack.
#The default container engine is Docker
enable_plugin devstack-plugin-container https://git.openstack.org/openstack/devstack-plugin-container
SCREEN_LOGDIR=$DEST/logs/screen
LOG_COLOR=false
LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
KURYR_CAPABILITY_SCOPE=local
KURYR_ETCD_PORT=2379
enable_plugin kuryr-libnetwork https://git.openstack.org/openstack/kuryr-libnetwork
ENABLE_IDENTITY_V2=False
LIBS_FROM_GIT="python-zunclient"
enable_plugin zun-ui https://github.com/openstack/zun-ui
enable_plugin heat https://git.openstack.org/openstack/heat
The issue was fixed by following this link.
Related
I installed and configured octavia for openstack load balancing. but when i want create a new loadbalancer using openstack loadbalancer create --name lb1 --vip-subnet-id subnet-pub octavia worker log say: ERROR octavia.controller.worker.v1.controller_worker octavia.common.exceptions.ComputeBuildException: Failed to build compute instance due to: Failed to retrieve image with amphora tag.
why? (I use ubuntu)
another question is: I installed octavia on controller node. must install anything on compute node(s)?
I had a similar problem and adding --project service solved it when uploading the image.
$ openstack image create amphora-x64-haproxy.qcow2 --container-format bare --disk-format qcow2 --private --tag amphora --file amphora-x64-haproxy.qcow2 --property hw_architecture='x86_64' --property hw_rng_model=virtio --project service
About the second question no need for anything to be installed on compute nodes. Only network access to lb-mgmt-net from controllers.
This Link helped me.
Set tag of image with value "amphora"
openstack image set --tag "amphora" image_name
I'm currently experimenting with Openstack/Devstack using heat and magnum all on the victoria release. However when I create a new stack I see the master instance being created but heat keeps it on Create In Progress and this till it times out. When I manually do a check stack it returns: Resource CHECK failed: ['The resource kube_masters is already being updated.']. 'CHECK' not fully supported (see resources).
I'll include my local.conf
[[local|localrc]]
HOST_IP=192.168.0.4
FLOATING_RANGE=192.168.0.0/24
PUBLIC_NETWORK_GATEWAY=192.168.0.1
Q_FLOATING_ALLOCATION_POOL=start=192.168.0.5,end=192.168.0.49
ADMIN_PASSWORD=nomoresecret
DATABASE_PASSWORD=stackdb
RABBIT_PASSWORD=stackqueue
SERVICE_PASSWORD=$ADMIN_PASSWORD
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=2
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_REPLICAS=1
SWIFT_DATA_DIR=$DEST/data
enable_plugin devstack-plugin-container https://opendev.org/openstack/devstack-plugin-container
enable_plugin heat https://opendev.org/openstack/heat stable/victoria
enable_plugin heat-dashboard https://opendev.org/openstack/heat-dashboard stable/victoria
enable_plugin magnum https://opendev.org/openstack/magnum stable/victoria
enable_plugin magnum-ui https://opendev.org/openstack/magnum-ui stable/victoria
enable_plugin octavia https://opendev.org/openstack/octavia stable/victoria
enable_plugin octavia-dashboard https://opendev.org/openstack/octavia-dashboard stable/victoria
Does any one have an idea what this could be.
Thanks!
Hi,
I'm trying to make simple openstack loadbalancer with cpu_util, memory and disk usage. But I'm struggle with aodh, gnocchi api.
I installed openstack with devstack(I posted local.conf file below ). But whenever I tried to matric/v1/matirc with admin token, it returns 503 internal error. I thought devstack configure everything to use gnocchi. Could you tell me what's I need to configure to use gnocchi api.
[[local|localrc]]
HOST_IP=xxx.xxx.xxx.xxx
ADMIN_PASSWORD=devstack
RABBIT_PASSWORD=devstack
SERVICE_PASSWORD=devstack
DATABASE_PASSWORD=devstack
GIT_BASE=https://git.openstack.org/
NOVA_BRANCH=stable/rocky
NOVACLIENT_BRANCH=stable/rocky
KEYSTONE_BRANCH=stable/rocky
KEYSTONECLIENT_BRANCH=stable/rocky
CINDER_BRANCH=stable/rocky
NEUTRON_BRANCH=stable/rocky
GLANCE_BRANCH=stable/rocky
enable_plugin heat https://git.openstack.org/openstack/heat stable/rocky
enable_plugin heat-dashboard https://git.openstack.org/openstack/heat-dashboard stable/rocky
enable_service h-eng h-api h-cfn h-api-cw heat-dashboard
enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas stable/rocky
enable_plugin neutron-lbaas-dashboard https://git.openstack.org/openstack/neutron-lbaas-dashboard stable/rocky
enable_plugin octavia https://git.openstack.org/openstack/octavia stable/rocky
enable_service q-svc q-agt q-dhcp q-l3 q-meta
enable_service q-lbaasv2 neutron-lbaas-dashboard
enable_service octavia o-cw o-hk o-hm o-api
enable_plugin ceilometer https://git.openstack.org/openstack/ceilometer.git stable/rocky
CEILOMETER_BACKEND=gnocchi
enable_plugin aodh https://git.openstack.org/openstack/aodh stable/rocky
enable_plugin panko https://git.openstack.org/openstack/panko stable/rocky
enable_service c-bak
enable_service swift
What I want to do with gnocchi api was cheacking what kind of data it has. Because gnocchi doc only tells about cpu_util. I want to know what data gnocchi can collect and for collect that do i need to configure something?
with that information, I want to make loadbalancer using aodh and heat. On aodh api doc only show alarm with cpu_util. Can I give a alarm based on disk,memory and cpu usage.
On aodh api doc, It gets cpu_util data from gnocchi. when create alarm it gets a threshold number like 0.8. I thought gnocchi doesn't give a cpu_util value like that. where and how threshold calculated?
It's my first question on stack-over-flow so I may have made lots of mistakes.
Thank you for reading it and I hope you have time to answer it.
While installing Devstack on a compute node in a multi-node devstack lab environment error encountered: Service n-net is not running.
The local.conf file has localrc as:
HOST_IP=192.168.42.12 # change this per compute node
FLAT_INTERFACE=eth0
FIXED_RANGE=10.4.128.0/20
FIXED_NETWORK_SIZE=4096
FLOATING_RANGE=192.168.42.128/25
MULTI_HOST=1
LOGFILE=/opt/stack/logs/stack.sh.log
ADMIN_PASSWORD=labstack
DATABASE_PASSWORD=supersecret
RABBIT_PASSWORD=supersecret
SERVICE_PASSWORD=supersecret
DATABASE_TYPE=mysql
SERVICE_HOST=192.168.42.11
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
ENABLED_SERVICES=n-cpu,n-net,n-api-meta,c-vol
NOVA_VNC_ENABLED=True
NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_auto.html"
VNCSERVER_LISTEN=$HOST_IP
VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN
Please help me removing this error.
P.S: I must use nova-net and not neutron for interaction between the controller and the compute nodes.
For the Ocata release I founded a solution (2-node setup). An import part is the placement-api since the Newton update (14.0.0), so first of all enable this in all your nodes:
local.conf:
enable_service placement-api
First run ./stack.sh on your controller node and after that installation run it on the other nodes.
Also here you will see the error Service n-net is not running...
Now edit your nova.conf file in /etc/nova/nova.conf because there will be no database and database_api section:
[database]
connection=mysql+pymysql://root:DB_PASS#IP_OF_CONTROLLER_NODE/nova
[api_database]
connection=mysql+pymysql://root:DB_PASS#IP_OF_CONTROLLER_NODE/nova_api
When adding these, you can check if it works with following command:
stack#jerico-02:/devstack$ nova-manage --debug host list
host zone
0.0.0.0 internal
jerico-03 internal
jerico-02 nova
Also in the dashboard the new compute (hypervisor) shows up!
Hope it helps!
(Tested on Ubuntu Server 16.04 LTS with devstack and OpenStack Ocata)
We are trying to setup a Single Node Kaa server(version 0.10.0) in an Ubuntu 16.04 machine.
Followed the documentation given here
We were unable to connect to the admin UI after starting the kaa node service.
On investigating further we could see that the Mongodb and zookeeper services were not started. So we manually started those services. After that we were able to connect to Kaa admin UI. Do we need any additional steps to get these service running on kaa-node start ?
I setup kaaproject with the guide for my Ubuntu 16.04.1 LTS VM and Zookeeper was not running by default on my server also, so I had to install the deamon (which starts zookeeper also on startup):
sudo apt-get install zookeeperd
Check if zookeeper is running:
netstat -ntlp | grep 2181
This should result in an output like this:
With mongodb I had the problem, that there was not enough space available for the journal files. I fixed this by increasing the available disk space + setting smallfiles=true in the /etc/mongod.conf
Probably you have some troubles with configurations for services. Check if auto-startup is enabled for MongoDB / Zookeeper by the next command:
$ systemctl is-enabled ${service-name}
if you see this:
$ disabled
then auto-startup is disabled for specified service and you should try next in order to enable it:
$ systemctl enable ${service-name}