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.
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-secretUse the following to explore new project
enable_plugin barbican https://git.openstack.org/openstack/barbican stable/pike
ubuntu@devstack-cc:~/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
- All Categories
- 217 LFX Mentorship
- 217 LFX Mentorship: Linux Kernel
- 788 Linux Foundation IT Professional Programs
- 352 Cloud Engineer IT Professional Program
- 177 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 146 Cloud Native Developer IT Professional Program
- 137 Express Training Courses
- 137 Express Courses - Discussion Forum
- 6.2K Training Courses
- 46 LFC110 Class Forum - Discontinued
- 70 LFC131 Class Forum
- 42 LFD102 Class Forum
- 226 LFD103 Class Forum
- 18 LFD110 Class Forum
- 37 LFD121 Class Forum
- 18 LFD133 Class Forum
- 7 LFD134 Class Forum
- 18 LFD137 Class Forum
- 71 LFD201 Class Forum
- 4 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 2 LFD233 Class Forum
- 4 LFD237 Class Forum
- 24 LFD254 Class Forum
- 694 LFD259 Class Forum
- 111 LFD272 Class Forum
- 4 LFD272-JP クラス フォーラム
- 12 LFD273 Class Forum
- 146 LFS101 Class Forum
- 1 LFS111 Class Forum
- 3 LFS112 Class Forum
- 2 LFS116 Class Forum
- 4 LFS118 Class Forum
- 6 LFS142 Class Forum
- 5 LFS144 Class Forum
- 4 LFS145 Class Forum
- 2 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 2 LFS157 Class Forum
- 25 LFS158 Class Forum
- 7 LFS162 Class Forum
- 2 LFS166 Class Forum
- 4 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 3 LFS178 Class Forum
- 3 LFS180 Class Forum
- 2 LFS182 Class Forum
- 5 LFS183 Class Forum
- 31 LFS200 Class Forum
- 737 LFS201 Class Forum - Discontinued
- 3 LFS201-JP クラス フォーラム
- 18 LFS203 Class Forum
- 130 LFS207 Class Forum
- 2 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 302 LFS211 Class Forum
- 56 LFS216 Class Forum
- 52 LFS241 Class Forum
- 48 LFS242 Class Forum
- 38 LFS243 Class Forum
- 15 LFS244 Class Forum
- 2 LFS245 Class Forum
- LFS246 Class Forum
- 48 LFS250 Class Forum
- 2 LFS250-JP クラス フォーラム
- 1 LFS251 Class Forum
- 151 LFS253 Class Forum
- 1 LFS254 Class Forum
- 1 LFS255 Class Forum
- 7 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.2K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 118 LFS260 Class Forum
- 159 LFS261 Class Forum
- 42 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 24 LFS267 Class Forum
- 22 LFS268 Class Forum
- 30 LFS269 Class Forum
- LFS270 Class Forum
- 202 LFS272 Class Forum
- 2 LFS272-JP クラス フォーラム
- 1 LFS274 Class Forum
- 4 LFS281 Class Forum
- 9 LFW111 Class Forum
- 259 LFW211 Class Forum
- 181 LFW212 Class Forum
- 13 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 795 Hardware
- 199 Drivers
- 68 I/O Devices
- 37 Monitors
- 102 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 85 Storage
- 758 Linux Distributions
- 82 Debian
- 67 Fedora
- 17 Linux Mint
- 13 Mageia
- 23 openSUSE
- 148 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 353 Ubuntu
- 468 Linux System Administration
- 39 Cloud Computing
- 71 Command Line/Scripting
- Github systems admin projects
- 93 Linux Security
- 78 Network Management
- 102 System Management
- 47 Web Management
- 63 Mobile Computing
- 18 Android
- 33 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 371 Off Topic
- 114 Introductions
- 174 Small Talk
- 22 Study Material
- 805 Programming and Development
- 303 Kernel Development
- 484 Software Development
- 1.8K Software
- 261 Applications
- 183 Command Line
- 3 Compiling/Installing
- 987 Games
- 317 Installation
- 96 All In Program
- 96 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)