yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #81351
[Bug 1860021] Re: nova-live-migration fails 100% with "mysql: command not found" on subnode
Reviewed: https://review.opendev.org/702960
Committed: https://git.openstack.org/cgit/openstack/devstack/commit/?id=ec3543a02883c3d9b288128e0a6cb941315e72cc
Submitter: Zuul
Branch: master
commit ec3543a02883c3d9b288128e0a6cb941315e72cc
Author: Radosław Piliszek <radoslaw.piliszek@xxxxxxxxx>
Date: Thu Jan 16 19:58:37 2020 +0100
Init Glance database only on the node with the database backend
Since [1] Glance init depends on either g-api or g-reg being
enabled.
This broke multinode g-api deployments with singlenode database
backend.
This commit aligns Glance with other services w.r.t when to
apply database init.
[1] d8dec362baa2bf7f6ffe1c47352fdbe032eaf20a
Change-Id: Idc07764d6ba3a828f19691f56c73cbe9179c2673
Closes-bug: #1860021
** Changed in: devstack
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1860021
Title:
nova-live-migration fails 100% with "mysql: command not found" on
subnode
Status in devstack:
Fix Released
Status in OpenStack Compute (nova):
New
Bug description:
Since [1] nova-live-migration failures can be seen in devstack-
subnodes-early.txt.gz like
+ ./stack.sh:main:1158 : is_glance_enabled
+ lib/glance:is_glance_enabled:90 : [[ , =~ ,glance ]]
+ lib/glance:is_glance_enabled:91 : [[ ,c-bak,c-vol,dstat,g-api,n-cpu,peakmem_tracker,placement-client,q-agt =~ ,g- ]]
+ lib/glance:is_glance_enabled:91 : return 0
+ ./stack.sh:main:1159 : echo_summary 'Configuring Glance'
+ ./stack.sh:echo_summary:452 : [[ -t 3 ]]
+ ./stack.sh:echo_summary:458 : echo -e Configuring Glance
+ ./stack.sh:main:1160 : init_glance
+ lib/glance:init_glance:276 : rm -rf /opt/stack/data/glance/images
+ lib/glance:init_glance:277 : mkdir -p /opt/stack/data/glance/images
+ lib/glance:init_glance:280 : recreate_database glance
+ lib/database:recreate_database:110 : local db=glance
+ lib/database:recreate_database:111 : recreate_database_mysql glance
+ lib/databases/mysql:recreate_database_mysql:63 : local db=glance
+ lib/databases/mysql:recreate_database_mysql:64 : mysql -uroot -psecretmysql -h127.0.0.1 -e 'DROP DATABASE IF EXISTS glance;'
/opt/stack/new/devstack/lib/databases/mysql: line 64: mysql: command not found
+ lib/databases/mysql:recreate_database_mysql:1 : exit_trap
[1] https://review.opendev.org/#/c/702707/
To manage notifications about this bug go to:
https://bugs.launchpad.net/devstack/+bug/1860021/+subscriptions
References