Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

nova-compute service is not added for compute node in Devstack

I have created 2 nodes devstack environment. First I create Controller node ( which is having all nova services ). It is running fine. I am using - stable/ocata repo local.conf on Controller node

root@ubuntu:/opt/stack/devstack# cat local.conf | egrep -iv "^#|^$" [[local|localrc]] ADMIN_PASSWORD=techm123 DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD HOST_IP=10.53.173.181 LOGFILE=$DEST/logs/stack.sh.log LOGDAYS=2 SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5 SWIFT_REPLICAS=1 SWIFT_DATA_DIR=$DEST/data enable_service heat h-api h-api-cfn h-api-cw h-eng MULTI_HOST=True root@ubuntu:/opt/stack/devstack#

After this I added compute node in it by editing local.con as per below

root@compute:/opt/stack/devstack# cat local.conf | egrep -iv "^#|^$" [[local|localrc]] SERVICE_TOKEN=Admin123 ADMIN_PASSWORD=Admin123 DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD HOST_IP=10.53.173.182 SERVICE_HOST=10.53.173.181 MYSQL_HOST=$SERVICE_HOST RABBIT_HOST=$SERVICE_HOST GLANCE_HOSTPORT=$SERVICE_HOST:9292 CONFIG_IP=10.53.173.181 KEYSTONE_AUTH_HOST=$SERVICE_HOST KEYSTONE_SERVICE_HOST=$SERVICE_HOST MULTI_HOST=True ENABLED_SERVICES=n-cpu,rabbit,neutron,q-agt,n-api-meta,c-vol disable_service cinder disable_service horizon disable_service key disable_service glance disable_service neutron LOGFILE=$DEST/logs/stack.sh.log LOGDAYS=2 SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5 SWIFT_REPLICAS=1 SWIFT_DATA_DIR=$DEST/data NOVA_VNC_ENABLED=True NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_auto.html" VNCSERVER_LISTEN=0.0.0.0 VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP INSTALL_PROFILE=COMPUTE COMPUTE_HOST_IP=$HOST_IP Q_META_DATA_IP=$SERVICE_HOST root@compute:/opt/stack/devstack#

./stack.sh executed on compute node with out any error but I can not see the compute node in #nova service-list or #nova host-list output.

root@ubuntu:~# nova service-list +----+------------------+--------+----------+---------+-------+----------------------------+-----------------+ | Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +----+------------------+--------+----------+---------+-------+----------------------------+-----------------+ | 4 | nova-conductor | ubuntu | internal | enabled | up | 2017-07-20T09:31:02.000000 | - | | 5 | nova-scheduler | ubuntu | internal | enabled | up | 2017-07-20T09:31:02.000000 | - | | 6 | nova-consoleauth | ubuntu | internal | enabled | up | 2017-07-20T09:30:59.000000 | - | | 7 | nova-compute | ubuntu | nova | enabled | up | 2017-07-20T09:31:00.000000 | - | +----+------------------+--------+----------+---------+-------+----------------------------+-----------------+ root@ubuntu:~#

nova-compute service is not added for compute node in Devstack

I have created 2 nodes devstack environment. First I create Controller node ( which is having all nova services ). It is running fine. I am using - stable/ocata repo local.conf on Controller node

root@ubuntu:/opt/stack/devstack# cat local.conf | egrep -iv "^#|^$" [[local|localrc]] ADMIN_PASSWORD=techm123 DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD HOST_IP=10.53.173.181 LOGFILE=$DEST/logs/stack.sh.log LOGDAYS=2 SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5 SWIFT_REPLICAS=1 SWIFT_DATA_DIR=$DEST/data enable_service heat h-api h-api-cfn h-api-cw h-eng MULTI_HOST=True root@ubuntu:/opt/stack/devstack#

After this I added compute node in it by editing local.con as per below

root@compute:/opt/stack/devstack# cat local.conf | egrep -iv "^#|^$" [[local|localrc]] SERVICE_TOKEN=Admin123 ADMIN_PASSWORD=Admin123 DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD HOST_IP=10.53.173.182 SERVICE_HOST=10.53.173.181 MYSQL_HOST=$SERVICE_HOST RABBIT_HOST=$SERVICE_HOST GLANCE_HOSTPORT=$SERVICE_HOST:9292 CONFIG_IP=10.53.173.181 KEYSTONE_AUTH_HOST=$SERVICE_HOST KEYSTONE_SERVICE_HOST=$SERVICE_HOST MULTI_HOST=True ENABLED_SERVICES=n-cpu,rabbit,neutron,q-agt,n-api-meta,c-vol disable_service cinder disable_service horizon disable_service key disable_service glance disable_service neutron LOGFILE=$DEST/logs/stack.sh.log LOGDAYS=2 SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5 SWIFT_REPLICAS=1 SWIFT_DATA_DIR=$DEST/data NOVA_VNC_ENABLED=True NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_auto.html" VNCSERVER_LISTEN=0.0.0.0 VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP INSTALL_PROFILE=COMPUTE COMPUTE_HOST_IP=$HOST_IP Q_META_DATA_IP=$SERVICE_HOST root@compute:/opt/stack/devstack#

./stack.sh executed on compute node with out any error but I can not see the compute node in #nova service-list or #nova host-list output.

root@ubuntu:~# nova service-list +----+------------------+--------+----------+---------+-------+----------------------------+-----------------+ | Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +----+------------------+--------+----------+---------+-------+----------------------------+-----------------+ | 4 | nova-conductor | ubuntu | internal | enabled | up | 2017-07-20T09:31:02.000000 | - | | 5 | nova-scheduler | ubuntu | internal | enabled | up | 2017-07-20T09:31:02.000000 | - | | 6 | nova-consoleauth | ubuntu | internal | enabled | up | 2017-07-20T09:30:59.000000 | - | | 7 | nova-compute | ubuntu | nova | enabled | up | 2017-07-20T09:31:00.000000 | - | +----+------------------+--------+----------+---------+-------+----------------------------+-----------------+ root@ubuntu:~#

nova-compute service is not added for compute node in Devstack

I have created 2 nodes devstack environment. First I create Controller node ( which is having all nova services ). It is running fine. I am using - stable/ocata repo local.conf on Controller node

root@ubuntu:/opt/stack/devstack# cat local.conf | egrep -iv "^#|^$" [[local|localrc]] ADMIN_PASSWORD=techm123 DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD HOST_IP=10.53.173.181 LOGFILE=$DEST/logs/stack.sh.log LOGDAYS=2 SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5 SWIFT_REPLICAS=1 SWIFT_DATA_DIR=$DEST/data enable_service heat h-api h-api-cfn h-api-cw h-eng MULTI_HOST=True root@ubuntu:/opt/stack/devstack#

After this I added compute node in it by editing local.con as per below

root@compute:/opt/stack/devstack# cat local.conf | egrep -iv "^#|^$" [[local|localrc]] SERVICE_TOKEN=Admin123 ADMIN_PASSWORD=Admin123 DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD HOST_IP=10.53.173.182 SERVICE_HOST=10.53.173.181 MYSQL_HOST=$SERVICE_HOST RABBIT_HOST=$SERVICE_HOST GLANCE_HOSTPORT=$SERVICE_HOST:9292 CONFIG_IP=10.53.173.181 KEYSTONE_AUTH_HOST=$SERVICE_HOST KEYSTONE_SERVICE_HOST=$SERVICE_HOST MULTI_HOST=True ENABLED_SERVICES=n-cpu,rabbit,neutron,q-agt,n-api-meta,c-vol disable_service cinder disable_service horizon disable_service key disable_service glance disable_service neutron LOGFILE=$DEST/logs/stack.sh.log LOGDAYS=2 SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5 SWIFT_REPLICAS=1 SWIFT_DATA_DIR=$DEST/data NOVA_VNC_ENABLED=True NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_auto.html" VNCSERVER_LISTEN=0.0.0.0 VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP INSTALL_PROFILE=COMPUTE COMPUTE_HOST_IP=$HOST_IP Q_META_DATA_IP=$SERVICE_HOST root@compute:/opt/stack/devstack#

./stack.sh executed on compute node with out any error but I can not see the compute node in #nova service-list or #nova host-list output.

root@ubuntu:~# nova service-list +----+------------------+--------+----------+---------+-------+----------------------------+-----------------+ | Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +----+------------------+--------+----------+---------+-------+----------------------------+-----------------+ | 4 | nova-conductor | ubuntu | internal | enabled | up | 2017-07-20T09:31:02.000000 | - | | 5 | nova-scheduler | ubuntu | internal | enabled | up | 2017-07-20T09:31:02.000000 | - | | 6 | nova-consoleauth | ubuntu | internal | enabled | up | 2017-07-20T09:30:59.000000 | - | | 7 | nova-compute | ubuntu | nova | enabled | up | 2017-07-20T09:31:00.000000 | - | +----+------------------+--------+----------+---------+-------+----------------------------+-----------------+ root@ubuntu:~#

logs in compute node

stack@compute:~/logs$ tail -20 n-cpu.log.2017-07-20-123840 2017-07-20 12:58:50.209 DEBUG oslo_service.service [req-54e9c1f8-572d-4bda-9c7b-5937fa92b3e4 None None] ************************** from (pid=15819) log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:2746 2017-07-20 12:58:50.210 INFO nova.service [-] Starting compute node (version 15.0.7) 2017-07-20 12:58:50.211 ERROR oslo_service.service [-] Error starting thread. 2017-07-20 12:58:50.211 TRACE oslo_service.service Traceback (most recent call last): 2017-07-20 12:58:50.211 TRACE oslo_service.service File "/usr/local/lib/python2.7/dist-packages/oslo_service/service.py", line 722, in run_service 2017-07-20 12:58:50.211 TRACE oslo_service.service service.start() 2017-07-20 12:58:50.211 TRACE oslo_service.service File "/opt/stack/nova/nova/service.py", line 144, in start 2017-07-20 12:58:50.211 TRACE oslo_service.service self.manager.init_host() 2017-07-20 12:58:50.211 TRACE oslo_service.service File "/opt/stack/nova/nova/compute/manager.py", line 1137, in init_host 2017-07-20 12:58:50.211 TRACE oslo_service.service raise exception.PlacementNotConfigured() 2017-07-20 12:58:50.211 TRACE oslo_service.service PlacementNotConfigured: This compute is not configured to talk to the placement service. Configure the [placement] section of nova.conf and restart the service. 2017-07-20 12:58:50.211 TRACE oslo_service.service 2017-07-20 12:58:50.212 DEBUG oslo_concurrency.lockutils [req-54e9c1f8-572d-4bda-9c7b-5937fa92b3e4 None None] Acquired semaphore "singleton_lock" from (pid=15819) lock /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:212 2017-07-20 12:58:50.212 DEBUG oslo_concurrency.lockutils [req-54e9c1f8-572d-4bda-9c7b-5937fa92b3e4 None None] Releasing semaphore "singleton_lock" from (pid=15819) lock /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:225 stack@compute:~/devstack$