[Devstack] Trying to setup development environment on VM
Hello Everyone, I am currently trying to setup in all-in-one development environment for OpenStack on a Debian VM. The VM has 16 GB RAM and 4 CPUs. However, I face an error while trying to run FORCE=yes ./stack.sh. I get an error that keystone does not start. This causes the entire process to fail. Requesting assistance in solving this issue. I am following the this guide: https://docs.openstack.org/devstack/latest/guides/single-machine.html PFA the error log and error message on the terminal. [Call Trace] ./stack.sh:1126:start_keystone /opt/stack/devstack/lib/keystone:549:die [ERROR] /opt/stack/devstack/lib/keystone:549 keystone did not start Error on exit World dumping... see /opt/stack/logs/worlddump-2024-11-18-150808.txt for details ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory) ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory) Thanks in advance, Ishan
Hi, There is a workaround for this, which works for ubuntu 20/22 at least. 1. ./unstack.sh ; ./clean.sh 2. reboot 3. sudo su - stack 4. apply below changes [image: image.png] 5. ./stack.sh - Kiran On Mon, Nov 18, 2024 at 4:52 PM Ishan Shanware (ishanwar) < ishanwar@cisco.com> wrote:
Hello Everyone,
I am currently trying to setup in all-in-one development environment for OpenStack on a Debian VM. The VM has 16 GB RAM and 4 CPUs. However, I face an error while trying to run FORCE=yes ./stack.sh. I get an error that keystone does not start. This causes the entire process to fail. Requesting assistance in solving this issue.
I am following the this guide: https://docs.openstack.org/devstack/latest/guides/single-machine.html
PFA the error log and error message on the terminal.
[Call Trace]
./stack.sh:1126:start_keystone
/opt/stack/devstack/lib/keystone:549:die
[ERROR] /opt/stack/devstack/lib/keystone:549 keystone did not start
Error on exit
World dumping... see /opt/stack/logs/worlddump-2024-11-18-150808.txt for details
ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
Thanks in advance, Ishan
Hi Kiran, thanks for your response. The keystone installation worked, however the ./stack.sh command has been stuck here for a while. Is this common in new installations of devstack ? r-dev --service nova-compute -c ID -f value +functions:wait_for_compute:490 rval=124 +functions:wait_for_compute:502 time_stop wait_for_service +functions-common:time_stop:2421 local name +functions-common:time_stop:2422 local end_time +functions-common:time_stop:2423 local elapsed_time +functions-common:time_stop:2424 local total +functions-common:time_stop:2425 local start_time +functions-common:time_stop:2427 name=wait_for_service +functions-common:time_stop:2428 start_time=1731948574355 +functions-common:time_stop:2430 [[ -z 1731948574355 ]] ++functions-common:time_stop:2433 date +%s%3N +functions-common:time_stop:2433 end_time=1731948634549 +functions-common:time_stop:2434 elapsed_time=60194 +functions-common:time_stop:2435 total=29116 +functions-common:time_stop:2437 _TIME_START[$name]= +functions-common:time_stop:2438 _TIME_TOTAL[$name]=89310 +functions:wait_for_compute:504 [[ 124 != 0 ]] +functions:wait_for_compute:505 echo 'Didn'\''t find service registered by hostname after 60 seconds' Didn't find service registered by hostname after 60 seconds +functions:wait_for_compute:506 openstack --os-cloud devstack-admin --os-region RegionOne compute service list Thanks, Ishan From: Kiran Pawar <kinpaa@gmail.com> Date: Monday, 18 November 2024 at 9:52 PM To: Ishan Shanware (ishanwar) <ishanwar@cisco.com> Cc: openstack-discuss@lists.openstack.org <openstack-discuss@lists.openstack.org> Subject: Re: [Devstack] Trying to setup development environment on VM Hi, There is a workaround for this, which works for ubuntu 20/22 at least. 1. ./unstack.sh ; ./clean.sh 2. reboot 3. sudo su - stack 4. apply below changes [cid:ii_m3n8g60a0] 5. ./stack.sh - Kiran On Mon, Nov 18, 2024 at 4:52 PM Ishan Shanware (ishanwar) <ishanwar@cisco.com<mailto:ishanwar@cisco.com>> wrote: Hello Everyone, I am currently trying to setup in all-in-one development environment for OpenStack on a Debian VM. The VM has 16 GB RAM and 4 CPUs. However, I face an error while trying to run FORCE=yes ./stack.sh. I get an error that keystone does not start. This causes the entire process to fail. Requesting assistance in solving this issue. I am following the this guide: https://docs.openstack.org/devstack/latest/guides/single-machine.html PFA the error log and error message on the terminal. [Call Trace] ./stack.sh:1126:start_keystone /opt/stack/devstack/lib/keystone:549:die [ERROR] /opt/stack/devstack/lib/keystone:549 keystone did not start Error on exit World dumping... see /opt/stack/logs/worlddump-2024-11-18-150808.txt for details ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory) ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory) Thanks in advance, Ishan
Hi Kiran, Thanks for your response. Keystone installation worked but the script has been stuck here work for compute service installation for a while. Is this common in new installations ? +functions:wait_for_compute:504 [[ 124 != 0 ]] +functions:wait_for_compute:505 echo 'Didn'\''t find service registered by hostname after 60 seconds' Didn't find service registered by hostname after 60 seconds +functions:wait_for_compute:506 openstack --os-cloud devstack-admin --os-region RegionOne compute service list Thanks Ishan From: Kiran Pawar <kinpaa@gmail.com> Date: Monday, 18 November 2024 at 9:52 PM To: Ishan Shanware (ishanwar) <ishanwar@cisco.com> Cc: openstack-discuss@lists.openstack.org <openstack-discuss@lists.openstack.org> Subject: Re: [Devstack] Trying to setup development environment on VM Hi, There is a workaround for this, which works for ubuntu 20/22 at least. 1. ./unstack.sh ; ./clean.sh 2. reboot 3. sudo su - stack 4. apply below changes [cid:ii_m3n8g60a0] 5. ./stack.sh - Kiran On Mon, Nov 18, 2024 at 4:52 PM Ishan Shanware (ishanwar) <ishanwar@cisco.com<mailto:ishanwar@cisco.com>> wrote: Hello Everyone, I am currently trying to setup in all-in-one development environment for OpenStack on a Debian VM. The VM has 16 GB RAM and 4 CPUs. However, I face an error while trying to run FORCE=yes ./stack.sh. I get an error that keystone does not start. This causes the entire process to fail. Requesting assistance in solving this issue. I am following the this guide: https://docs.openstack.org/devstack/latest/guides/single-machine.html PFA the error log and error message on the terminal. [Call Trace] ./stack.sh:1126:start_keystone /opt/stack/devstack/lib/keystone:549:die [ERROR] /opt/stack/devstack/lib/keystone:549 keystone did not start Error on exit World dumping... see /opt/stack/logs/worlddump-2024-11-18-150808.txt for details ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory) ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory) Thanks in advance, Ishan
Hi Kiran, I am also facing similar issue. script has been stuck here work for compute service installation for a while. Can you help me with this issue? +inc/meta-config:merge_config_group:172 local localfile=/opt/stack/devstack/local.conf +inc/meta-config:merge_config_group:172 shift +inc/meta-config:merge_config_group:173 local matchgroups=extra +inc/meta-config:merge_config_group:175 [[ -r /opt/stack/devstack/local.conf ]] +inc/meta-config:merge_config_group:177 local configfile group +inc/meta-config:merge_config_group:178 for group in $matchgroups ++inc/meta-config:merge_config_group:179 get_meta_section_files /opt/stack/devstack/local.conf extra ++inc/meta-config:get_meta_section_files:63 local file=/opt/stack/devstack/local.conf ++inc/meta-config:get_meta_section_files:64 local matchgroup=extra ++inc/meta-config:get_meta_section_files:66 [[ -r /opt/stack/devstack/local.conf ]] ++inc/meta-config:get_meta_section_files:68 awk -v matchgroup=extra ' /^\[\[.+\|.*\]\]/ { gsub("[][]", "", $1); split($1, a, "|"); if (a[1] == matchgroup) print a[2] } ' /opt/stack/devstack/local.conf +./stack.sh:main:1437 run_phase stack extra +functions-common:run_phase:1849 local mode=stack +functions-common:run_phase:1850 local phase=extra +functions-common:run_phase:1851 [[ -d /opt/stack/devstack/extras.d ]] +functions-common:run_phase:1852 local extra_plugin_file_name +functions-common:run_phase:1853 for extra_plugin_file_name in $TOP_DIR/extras.d/*.sh +functions-common:run_phase:1858 local exceptions=80-tempest.sh +functions-common:run_phase:1859 local extra ++functions-common:run_phase:1860 basename /opt/stack/devstack/extras.d/80-tempest.sh +functions-common:run_phase:1860 extra=80-tempest.sh +functions-common:run_phase:1861 [[ 80-tempest.sh =~ 80-tempest\.sh ]] +functions-common:run_phase:1865 [[ -r /opt/stack/devstack/extras.d/80-tempest.sh ]] +functions-common:run_phase:1865 source /opt/stack/devstack/extras.d/80-tempest.sh stack extra ++extras.d/80-tempest.sh:source:3 is_service_enabled tempest ++functions-common:is_service_enabled:2048 local xtrace +++functions-common:is_service_enabled:2049 grep xtrace +++functions-common:is_service_enabled:2049 set +o ++functions-common:is_service_enabled:2049 xtrace='set -o xtrace' ++functions-common:is_service_enabled:2050 set +o xtrace ++functions-common:is_service_enabled:2077 return 0 ++extras.d/80-tempest.sh:source:4 [[ stack == \s\o\u\r\c\e ]] ++extras.d/80-tempest.sh:source:7 [[ stack == \s\t\a\c\k ]] ++extras.d/80-tempest.sh:source:7 [[ extra == \i\n\s\t\a\l\l ]] ++extras.d/80-tempest.sh:source:10 [[ stack == \s\t\a\c\k ]] ++extras.d/80-tempest.sh:source:10 [[ extra == \p\o\s\t\-\c\o\n\f\i\g ]] ++extras.d/80-tempest.sh:source:13 [[ stack == \s\t\a\c\k ]] ++extras.d/80-tempest.sh:source:13 [[ extra == \e\x\t\r\a ]] ++extras.d/80-tempest.sh:source:15 : ++extras.d/80-tempest.sh:source:27 [[ stack == \u\n\s\t\a\c\k ]] ++extras.d/80-tempest.sh:source:32 [[ stack == \c\l\e\a\n ]] +functions-common:run_phase:1870 [[ stack == \s\o\u\r\c\e ]] +functions-common:run_phase:1873 [[ stack == \o\v\e\r\r\i\d\e\_\d\e\f\a\u\l\t\s ]] +functions-common:run_phase:1876 run_plugins stack extra +functions-common:run_plugins:1835 local mode=stack +functions-common:run_plugins:1836 local phase=extra +functions-common:run_plugins:1838 local plugins= +functions-common:run_plugins:1839 local plugin +./stack.sh:main:1445 merge_config_group /opt/stack/devstack/local.conf post-extra +inc/meta-config:merge_config_group:172 local localfile=/opt/stack/devstack/local.conf +inc/meta-config:merge_config_group:172 shift +inc/meta-config:merge_config_group:173 local matchgroups=post-extra +inc/meta-config:merge_config_group:175 [[ -r /opt/stack/devstack/local.conf ]] +inc/meta-config:merge_config_group:177 local configfile group +inc/meta-config:merge_config_group:178 for group in $matchgroups ++inc/meta-config:merge_config_group:179 get_meta_section_files /opt/stack/devstack/local.conf post-extra ++inc/meta-config:get_meta_section_files:63 local file=/opt/stack/devstack/local.conf ++inc/meta-config:get_meta_section_files:64 local matchgroup=post-extra ++inc/meta-config:get_meta_section_files:66 [[ -r /opt/stack/devstack/local.conf ]] ++inc/meta-config:get_meta_section_files:68 awk -v matchgroup=post-extra ' /^\[\[.+\|.*\]\]/ { gsub("[][]", "", $1); split($1, a, "|"); if (a[1] == matchgroup) print a[2] } ' /opt/stack/devstack/local.conf +./stack.sh:main:1454 is_service_enabled n-cpu +functions-common:is_service_enabled:2048 local xtrace ++functions-common:is_service_enabled:2049 set +o ++functions-common:is_service_enabled:2049 grep xtrace +functions-common:is_service_enabled:2049 xtrace='set -o xtrace' +functions-common:is_service_enabled:2050 set +o xtrace +functions-common:is_service_enabled:2077 return 0 +./stack.sh:main:1455 is_nova_ready +lib/nova:is_nova_ready:1187 wait_for_compute 60 +functions:wait_for_compute:482 local timeout=60 +functions:wait_for_compute:483 local rval=0 +functions:wait_for_compute:484 local compute_hostname +functions:wait_for_compute:485 time_start wait_for_service +functions-common:time_start:2407 local name=wait_for_service +functions-common:time_start:2408 local start_time= +functions-common:time_start:2409 [[ -n '' ]] ++functions-common:time_start:2412 date +%s%3N +functions-common:time_start:2412 _TIME_START[$name]=1740410380832 ++functions:wait_for_compute:486 iniget /etc/nova/nova.conf DEFAULT host ++inc/ini-config:iniget:61 local xtrace +++inc/ini-config:iniget:62 set +o +++inc/ini-config:iniget:62 grep xtrace ++inc/ini-config:iniget:62 xtrace='set -o xtrace' ++inc/ini-config:iniget:63 set +o xtrace +functions:wait_for_compute:486 compute_hostname= +functions:wait_for_compute:487 [[ -z '' ]] ++functions:wait_for_compute:488 hostname +functions:wait_for_compute:488 compute_hostname=array +functions:wait_for_compute:490 timeout 60 bash -x ++functions:wait_for_compute:490 hostname +:: ID= +:: [[ '' == '' ]] +:: sleep 1 +:: [[ libvirt = \f\a\k\e ]] ++:: openstack --os-cloud devstack-admin --os-region RegionOne compute service list --host array --service nova-compute -c ID -f value +functions:wait_for_compute:490 rval=124 +functions:wait_for_compute:502 time_stop wait_for_service +functions-common:time_stop:2421 local name +functions-common:time_stop:2422 local end_time +functions-common:time_stop:2423 local elapsed_time +functions-common:time_stop:2424 local total +functions-common:time_stop:2425 local start_time +functions-common:time_stop:2427 name=wait_for_service +functions-common:time_stop:2428 start_time=1740410380832 +functions-common:time_stop:2430 [[ -z 1740410380832 ]] ++functions-common:time_stop:2433 date +%s%3N +functions-common:time_stop:2433 end_time=1740410440959 +functions-common:time_stop:2434 elapsed_time=60127 +functions-common:time_stop:2435 total=20730 +functions-common:time_stop:2437 _TIME_START[$name]= +functions-common:time_stop:2438 _TIME_TOTAL[$name]=80857 +functions:wait_for_compute:504 [[ 124 != 0 ]] +functions:wait_for_compute:505 echo 'Didn'\''t find service registered by hostname after 60 seconds' Didn't find service registered by hostname after 60 seconds +functions:wait_for_compute:506 openstack --os-cloud devstack-admin --os-region RegionOne compute service list
participants (3)
-
Ishan Shanware (ishanwar)
-
Kiran Pawar
-
saddagudi@arraynetworks.net