Welcome to the Linux Foundation Forum!

Lab 3.2 Unable to configure Nova compute node

Can you please help me to troubleshoot this issue ?

2018-09-07 05:56:40.444 | ' /home/ubuntu/devstack/local.conf
2018-09-07 05:56:40.458 | +./stack.sh:main:1432 [[ -x /home/ubuntu/devstack/local.sh ]]
2018-09-07 05:56:40.467 | +./stack.sh:main:1443 is_service_enabled n-cpu
2018-09-07 05:56:40.521 | +functions-common:is_service_enabled:2184 return 0
2018-09-07 05:56:40.530 | +./stack.sh:main:1444 is_nova_ready
2018-09-07 05:56:40.541 | +lib/nova:is_nova_ready:954 is_service_enabled n-cell
2018-09-07 05:56:40.600 | +functions-common:is_service_enabled:2184 return 1
2018-09-07 05:56:40.611 | +lib/nova:is_nova_ready:961 [[ libvirt == \x\e\n\s\e\r\v\e\r ]]
2018-09-07 05:56:40.619 | +lib/nova:is_nova_ready:966 wait_for_compute 120
2018-09-07 05:56:40.628 | +functions:wait_for_compute:411 local timeout=120
2018-09-07 05:56:40.638 | +functions:wait_for_compute:412 local rval=0
2018-09-07 05:56:40.647 | +functions:wait_for_compute:413 time_start wait_for_service
2018-09-07 05:56:40.658 | +functions-common:time_start:2495 local name=wait_for_service
2018-09-07 05:56:40.667 | +functions-common:time_start:2496 local start_time=
2018-09-07 05:56:40.676 | +functions-common:time_start:2497 [[ -n '' ]]
2018-09-07 05:56:40.687 | ++functions-common:time_start:2500 date +%s%3N
2018-09-07 05:56:40.698 | +functions-common:time_start:2500 _TIME_START[$name]=1536299800688
2018-09-07 05:56:40.707 | +functions:wait_for_compute:414 timeout 120 bash -x
2018-09-07 05:56:40.718 | ++functions:wait_for_compute:414 hostname
2018-09-07 05:56:40.726 | +:: ID=
2018-09-07 05:56:40.731 | +:: [[ '' == '' ]]
2018-09-07 05:56:40.735 | +:: sleep 1
2018-09-07 05:56:41.744 | ++:: openstack --os-cloud devstack-admin --os-region RegionOne compute service list --host compute-node --service nova-compute -c ID -f value
2018-09-07 05:58:40.736 | +functions:wait_for_compute:414 rval=124
2018-09-07 05:58:40.745 | +functions:wait_for_compute:421 time_stop wait_for_service
2018-09-07 05:58:40.754 | +functions-common:time_stop:2509 local name
2018-09-07 05:58:40.762 | +functions-common:time_stop:2510 local end_time
2018-09-07 05:58:40.769 | +functions-common:time_stop:2511 local elapsed_time
2018-09-07 05:58:40.776 | +functions-common:time_stop:2512 local total
2018-09-07 05:58:40.784 | +functions-common:time_stop:2513 local start_time
2018-09-07 05:58:40.792 | +functions-common:time_stop:2515 name=wait_for_service
2018-09-07 05:58:40.799 | +functions-common:time_stop:2516 start_time=1536299800688
2018-09-07 05:58:40.807 | +functions-common:time_stop:2518 [[ -z 1536299800688 ]]
2018-09-07 05:58:40.819 | ++functions-common:time_stop:2521 date +%s%3N
2018-09-07 05:58:40.827 | +functions-common:time_stop:2521 end_time=1536299920820
2018-09-07 05:58:40.835 | +functions-common:time_stop:2522 elapsed_time=120132
2018-09-07 05:58:40.843 | +functions-common:time_stop:2523 total=139
2018-09-07 05:58:40.851 | +functions-common:time_stop:2525 _TIME_START[$name]=
2018-09-07 05:58:40.859 | +functions-common:time_stop:2526 _TIME_TOTAL[$name]=120271
2018-09-07 05:58:40.866 | +functions:wait_for_compute:423 [[ 124 != 0 ]]
2018-09-07 05:58:40.874 | +functions:wait_for_compute:424 echo 'Didn'\''t find service registered by hostname after 120 seconds'
2018-09-07 05:58:40.874 | Didn't find service registered by hostname after 120 seconds
2018-09-07 05:58:40.881 | +functions:wait_for_compute:425 openstack --os-cloud devstack-admin --os-region RegionOne compute service list
2018-09-07 06:00:49.161 | Failed to discover available identity versions when contacting http://192.168.97.1/identity. Attempting to parse version from URL.
2018-09-07 06:00:49.162 | Could not determine a suitable URL for the plugin
2018-09-07 06:00:49.224 | +functions:wait_for_compute:1 exit_trap
2018-09-07 06:00:49.234 | +./stack.sh:exit_trap:521 local r=1
2018-09-07 06:00:49.246 | ++./stack.sh:exit_trap:522 jobs -p
2018-09-07 06:00:49.257 | +./stack.sh:exit_trap:522 jobs=
2018-09-07 06:00:49.268 | +./stack.sh:exit_trap:525 [[ -n '' ]]
2018-09-07 06:00:49.278 | +./stack.sh:exit_trap:531 '[' -f /tmp/tmp.0EQnDWvzPQ ']'
2018-09-07 06:00:49.288 | +./stack.sh:exit_trap:532 rm /tmp/tmp.0EQnDWvzPQ
2018-09-07 06:00:49.298 | +./stack.sh:exit_trap:536 kill_spinner
2018-09-07 06:00:49.307 | +./stack.sh:kill_spinner:417 '[' '!' -z '' ']'
2018-09-07 06:00:49.316 | +./stack.sh:exit_trap:538 [[ 1 -ne 0 ]]
2018-09-07 06:00:49.325 | +./stack.sh:exit_trap:539 echo 'Error on exit'
2018-09-07 06:00:49.325 | Error on exit
2018-09-07 06:00:49.335 | +./stack.sh:exit_trap:541 type -p generate-subunit
2018-09-07 06:00:49.346 | +./stack.sh:exit_trap:542 generate-subunit 1536299625 424 fail
2018-09-07 06:00:49.543 | +./stack.sh:exit_trap:544 [[ -z /opt/stack/logs ]]
2018-09-07 06:00:49.554 | +./stack.sh:exit_trap:547 /home/ubuntu/devstack/tools/worlddump.py -d /opt/stack/logs
2018-09-07 06:00:50.043 | +./stack.sh:exit_trap:556 exit 1

Comments

  • I have tried with the below local.conf files

    [[local|localrc]]
    HOST_IP=172.17.0.19 # IP for compute-node
    SERVICE_HOST=192.168.97.1 # devstack-cc IP, first node you used
    FLAT_INTERFACE=ens3
    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=openstack
    DATABASE_PASSWORD=db-secret
    RABBIT_PASSWORD=rb-secret
    SERVICE_PASSWORD=sr-secret
    DATABASE_TYPE=mysql
    MYSQL_HOST=$SERVICE_HOST
    RABBIT_HOST=$SERVICE_HOST
    GLANCE_HOSTPORT=$SERVICE_HOST:9292
    ENABLED_SERVICES=n-cpu,q-agt,n-api-meta,c-vol,placement-client
    ENABLED_SERVICES=placement-api
    NOVA_VNC_ENABLED=True
    NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_auto.html"
    VNCSERVER_LISTEN=$HOST_IP
    VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN

  • also with the one which is shown in the exercise

    [[local|localrc]]
    HOST_IP=192.168.97.2 # IP for compute-node
    SERVICE_HOST=192.168.97.1 # devstack-cc IP, first node you used
    FLAT_INTERFACE=ens3
    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=openstack
    DATABASE_PASSWORD=db-secret
    RABBIT_PASSWORD=rb-secret
    SERVICE_PASSWORD=sr-secret
    DATABASE_TYPE=mysql
    MYSQL_HOST=$SERVICE_HOST
    RABBIT_HOST=$SERVICE_HOST
    GLANCE_HOSTPORT=$SERVICE_HOST:9292
    ENABLED_SERVICES=n-cpu,q-agt,n-api-meta,c-vol,placement-client
    NOVA_VNC_ENABLED=True
    NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_auto.html"
    VNCSERVER_LISTEN=$HOST_IP
    VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN

  • Thanks ! it worked :)

  • UNABLE TO CONNECT compute -node. Please suggest how to fix the issue.

    ubuntu@devstack-cc:~$ ssh compute-node
    ssh: Could not resolve hostname compute-node: Name or service not known
    ubuntu@devstack-cc:~$

    ubuntu@devstack-cc:~/devstack$ cat local.conf
    [[local|localrc]]
    HOST_IP=172.17.0.33
    FLAT_INTERFACE=ens3
    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=openstack
    DATABASE_PASSWORD=db-secret
    RABBIT_PASSWORD=rb-secret
    SERVICE_PASSWORD=sr-secret

    Use the following to explore new project

    enable_plugin barbican https://git.openstack.org/openstack/barbican stable/pike
    ubuntu@devstack-cc:~/devstack$

  • Hi serewicz thanks for the prompt response let me try once again but still iam not sure which IP address is considered for compute-node or how does ssh to compute-node works.

Categories

Upcoming Training