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_LISTEN0 -
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_LISTEN0 -
Hello Tuttu,
The example in the book is static, so it would not be the once to use. The first local.conf file you posted had two addresses, but they don't appear to be the same interface or IP range.
Looking at the HOST_IP, the IP you wrote was a 172.17. address. The IP address of the first node would be in the same range.
[[local|localrc]]
HOST_IP=172.17.0.19 # IP for compute-node
SERVICE_HOST=192.168.97.1 # devstack-cc IP, first node you usedYou have the SERVICE_HOST IP as a 192.168 address instead. I think if you connect to the devstack-cc and look at the output of ip addr show ens3 you will find a 172.17 address. Use that in the local.conf file and I think the lab will work for you.
Regards,
0 -
Thanks ! it worked
0 -
UNABLE TO CONNECT compute -node. Please suggest how to fix the issue.
[email protected]:~$ ssh compute-node
ssh: Could not resolve hostname compute-node: Name or service not known
[email protected]:~$[email protected]:~/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-secretUse the following to explore new project
enable_plugin barbican https://git.openstack.org/openstack/barbican stable/pike
[email protected]:~/devstack$0 -
Hello,
Was there anything done on the lab3-2 nodes prior to this step? Perhaps there was a transient issue. I have just spun up a new lab3-2 and was able to connect from the cc to the compute-node.
Could you spin up a new lab3-2 and see if the problem persists for you?
Regards,
0 -
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.
0 -
Hello,
The compute-node is the hostname of a second instance. Its IP address is assigned via DHCP as is the devstack-cc node. You can ssh using the hostname, but would need to look up the IP addresses on both nodes to edit the respective local.conf files properly. It will not be the same from one attempt of the labs to another.
Regards,
0
Categories
- 10.1K All Categories
- 35 LFX Mentorship
- 88 LFX Mentorship: Linux Kernel
- 504 Linux Foundation Boot Camps
- 279 Cloud Engineer Boot Camp
- 103 Advanced Cloud Engineer Boot Camp
- 48 DevOps Engineer Boot Camp
- 41 Cloud Native Developer Boot Camp
- 2 Express Training Courses
- 2 Express Courses - Discussion Forum
- 1.8K Training Courses
- 17 LFC110 Class Forum
- 5 LFC131 Class Forum
- 20 LFD102 Class Forum
- 148 LFD103 Class Forum
- 13 LFD121 Class Forum
- 61 LFD201 Class Forum
- LFD210 Class Forum
- 1 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum
- 23 LFD254 Class Forum
- 569 LFD259 Class Forum
- 100 LFD272 Class Forum
- 1 LFD272-JP クラス フォーラム
- 1 LFS145 Class Forum
- 23 LFS200 Class Forum
- 739 LFS201 Class Forum
- 1 LFS201-JP クラス フォーラム
- 1 LFS203 Class Forum
- 45 LFS207 Class Forum
- 298 LFS211 Class Forum
- 53 LFS216 Class Forum
- 46 LFS241 Class Forum
- 41 LFS242 Class Forum
- 37 LFS243 Class Forum
- 10 LFS244 Class Forum
- 27 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- 131 LFS253 Class Forum
- 998 LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 87 LFS260 Class Forum
- 126 LFS261 Class Forum
- 31 LFS262 Class Forum
- 79 LFS263 Class Forum
- 15 LFS264 Class Forum
- 10 LFS266 Class Forum
- 17 LFS267 Class Forum
- 17 LFS268 Class Forum
- 21 LFS269 Class Forum
- 200 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- 212 LFW211 Class Forum
- 154 LFW212 Class Forum
- 899 Hardware
- 217 Drivers
- 74 I/O Devices
- 44 Monitors
- 115 Multimedia
- 208 Networking
- 101 Printers & Scanners
- 85 Storage
- 749 Linux Distributions
- 88 Debian
- 64 Fedora
- 14 Linux Mint
- 13 Mageia
- 24 openSUSE
- 133 Red Hat Enterprise
- 33 Slackware
- 13 SUSE Enterprise
- 355 Ubuntu
- 473 Linux System Administration
- 38 Cloud Computing
- 69 Command Line/Scripting
- Github systems admin projects
- 94 Linux Security
- 77 Network Management
- 108 System Management
- 49 Web Management
- 63 Mobile Computing
- 22 Android
- 27 Development
- 1.2K New to Linux
- 1.1K Getting Started with Linux
- 528 Off Topic
- 127 Introductions
- 213 Small Talk
- 20 Study Material
- 795 Programming and Development
- 263 Kernel Development
- 498 Software Development
- 923 Software
- 258 Applications
- 182 Command Line
- 2 Compiling/Installing
- 76 Games
- 316 Installation
- 54 All In Program
- 54 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)