As seen in this test run: https://solutions.qa.canonical.com/testruns/testRun/4cd6c458-a775-4735-9bca-64f607453c40
Crashdump: https://oil-jenkins.canonical.com/artifacts/4cd6c458-a775-4735-9bca-64f607453c40/generated/generated/openstack/juju-crashdump-openstack-2021-02-15-21.38.05.tar.gz
Bundle: https://oil-jenkins.canonical.com/artifacts/4cd6c458-a775-4735-9bca-64f607453c40/generated/generated/openstack/bundle.yaml
Full Artifacts: https://oil-jenkins.canonical.com/artifacts/4cd6c458-a775-4735-9bca-64f607453c40/index.html
In this deployment placement/2 attempts to perform a database migration and fails. However the database is reporting that it is online, and placement's peers have processed the hook properly. There may be a race here, or the placement-mysql-router has fed bad information to the placement charm and the hook took too long to execute for it to update? It's hard to tell.
juju status:
mysql-innodb-cluster/0* active executing 0/lxd/6 10.246.64.243 Unit is ready: Mode: R/W
mysql-innodb-cluster/1 active idle 2/lxd/7 10.246.64.237 Unit is ready: Mode: R/O
mysql-innodb-cluster/2 active idle 4/lxd/8 10.246.65.23 Unit is ready: Mode: R/O
...
placement/0 active idle 0/lxd/9 10.244.8.158 8778/tcp Unit is ready
hacluster-placement/2 active idle 10.244.8.158 Unit is ready and clustered
logrotated/36 active idle 10.244.8.158 Unit is ready.
placement-mysql-router/2 active idle 10.244.8.158 Unit is ready
public-policy-routing/25 active idle 10.244.8.158 Unit is ready
placement/1 active idle 2/lxd/10 10.244.8.149 8778/tcp Unit is ready
hacluster-placement/1 active idle 10.244.8.149 Unit is ready and clustered
logrotated/20 active idle 10.244.8.149 Unit is ready.
placement-mysql-router/1 active idle 10.244.8.149 Unit is ready
public-policy-routing/12 active idle 10.244.8.149 Unit is ready
placement/2* error idle 4/lxd/11 10.244.8.141 8778/tcp hook failed: "identity-service-relation-changed"
hacluster-placement/0* active idle 10.244.8.141 Unit is ready and clustered
logrotated/7 active idle 10.244.8.141 Unit is ready.
placement-mysql-router/0* blocked idle 10.244.8.141 Failed to connect to MySQL
public-policy-routing/1 active idle 10.244.8.141 Unit is ready
placement/2 juju agent log:
021-02-15 21:34:53 DEBUG jujuc server.go:211 running hook tool "juju-log" for placement/2-identity-service-relation-changed-6358985528794214749
2021-02-15 21:34:53 ERROR juju-log identity-service:165: Hook error:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-placement-2/.venv/lib/python3.8/site-packages/charms/reactive/__init__.py", line 74, in main
bus.dispatch(restricted=restricted_mode)
File "/var/lib/juju/agents/unit-placement-2/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 390, in dispatch
_invoke(other_handlers)
File "/var/lib/juju/agents/unit-placement-2/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 359, in _invoke
handler.invoke()
File "/var/lib/juju/agents/unit-placement-2/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 181, in invoke
self._action(*args)
File "/var/lib/juju/agents/unit-placement-2/charm/reactive/placement_handlers.py", line 72, in init_db
placement_charm.db_migrate()
File "lib/charm/openstack/placement.py", line 92, in db_migrate
subprocess.check_call(self.migrate_cmd)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/share/placement/mysql-migrate-db.sh', '--migrate', '--skip-locks', '/etc/placement/migrate-db.rc']' returned non-zero exit status 5.
2021-02-15 21:34:53 WARNING identity-service-relation-changed Traceback (most recent call last):
2021-02-15 21:34:53 WARNING identity-service-relation-changed File "/var/lib/juju/agents/unit-placement-2/charm/hooks/identity-service-relation-changed", line 22, in <module>
2021-02-15 21:34:53 WARNING identity-service-relation-changed main()
2021-02-15 21:34:53 WARNING identity-service-relation-changed File "/var/lib/juju/agents/unit-placement-2/.venv/lib/python3.8/site-packages/charms/reactive/__init__.py", line 74, in main
2021-02-15 21:34:53 WARNING identity-service-relation-changed bus.dispatch(restricted=restricted_mode)
2021-02-15 21:34:53 WARNING identity-service-relation-changed File "/var/lib/juju/agents/unit-placement-2/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 390, in dispatch
2021-02-15 21:34:53 WARNING identity-service-relation-changed _invoke(other_handlers)
2021-02-15 21:34:53 WARNING identity-service-relation-changed File "/var/lib/juju/agents/unit-placement-2/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 359, in _invoke
2021-02-15 21:34:53 WARNING identity-service-relation-changed handler.invoke()
2021-02-15 21:34:53 WARNING identity-service-relation-changed File "/var/lib/juju/agents/unit-placement-2/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 181, in invoke
2021-02-15 21:34:53 WARNING identity-service-relation-changed self._action(*args)
2021-02-15 21:34:53 WARNING identity-service-relation-changed File "/var/lib/juju/agents/unit-placement-2/charm/reactive/placement_handlers.py", line 72, in init_db
2021-02-15 21:34:53 WARNING identity-service-relation-changed placement_charm.db_migrate()
2021-02-15 21:34:53 WARNING identity-service-relation-changed File "lib/charm/openstack/placement.py", line 92, in db_migrate
2021-02-15 21:34:53 WARNING identity-service-relation-changed subprocess.check_call(self.migrate_cmd)
2021-02-15 21:34:53 WARNING identity-service-relation-changed File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
2021-02-15 21:34:53 WARNING identity-service-relation-changed raise CalledProcessError(retcode, cmd)
2021-02-15 21:34:53 WARNING identity-service-relation-changed subprocess.CalledProcessError: Command '['/usr/share/placement/mysql-migrate-db.sh', '--migrate', '--skip-locks', '/etc/placement/migrate-db.rc']' returned non-zero exit status 5.
Seen also with nova-cloud- controller- mysql-router and designate- mysql-router /solutions. qa.canonical. com/testruns/ testRun/ 9ef60e6b- 1d8c-4f78- 9e66-6ad4edc2b0 5d
in this run
https:/
crashdump
https:/ /oil-jenkins. canonical. com/artifacts/ 9ef60e6b- 1d8c-4f78- 9e66-6ad4edc2b0 5d/generated/ generated/ openstack/ juju-crashdump- openstack- 2021-02- 16-14.05. 52.tar. gz