prevent unnecessary openstack-upgrade on initial install (was: keystone bootstrap fail on latest/edge)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Cinder Charm |
Fix Released
|
Critical
|
Corey Bryant | ||
OpenStack Glance Charm |
Fix Released
|
Critical
|
Corey Bryant | ||
OpenStack Heat Charm |
Fix Released
|
Critical
|
Corey Bryant | ||
OpenStack Keystone Charm |
Fix Released
|
Critical
|
Alex Kavanagh | ||
OpenStack Neutron API Charm |
Fix Released
|
Critical
|
Corey Bryant | ||
OpenStack Nova Cloud Controller Charm |
Fix Released
|
Critical
|
Corey Bryant |
Bug Description
== keystone ==
Keystone bootstrap failure when deploy this bundle:
```
local_overlay_
series: jammy
applications:
keystone-
charm: ch:mysql-router
channel: latest/edge
vault-
charm: ch:mysql-router
channel: latest/edge
mysql-
channel: latest/edge
charm: ch:mysql-
num_units: 3
keystone:
charm: ch:keystone
num_units: 1
channel: latest/edge
vault:
charm: ch:vault
num_units: 1
channel: latest/edge
relations:
- - vault:certificates
- mysql-innodb-
- - vault:certificates
- keystone:
- - keystone:shared-db
- keystone-
- - vault:shared-db
- vault-mysql-
- - keystone-
- mysql-innodb-
- - vault-mysql-
- mysql-innodb-
```
Error msg:
```
unit.keystone/
2022-09-12 01:54:16 WARNING unit.keystone/
```
In root:
```
root@juju-
/etc/keystone/
```
The `key-setup` file didn't exist at `/etc/keystone/`. So this bug is because the keystone bootstrap fire before `key_setup()`
keystone is working fine at yoga/stable & focal series
== heat, neutron-api, glance, nova-cloud-
For these charms, deploys on jammy-zed from latest/edge were failing with config-changed hook failures running db sync commands prior to database config being rendered in config files such as heat.conf.
Changed in charm-glance: | |
status: | New → Triaged |
Changed in charm-heat: | |
status: | New → Triaged |
Changed in charm-neutron-api: | |
status: | New → Triaged |
Changed in charm-nova-cloud-controller: | |
status: | New → Triaged |
importance: | Undecided → Critical |
Changed in charm-neutron-api: | |
importance: | Undecided → Critical |
Changed in charm-heat: | |
importance: | Undecided → Critical |
Changed in charm-glance: | |
importance: | Undecided → Critical |
summary: |
- keystone bootstrap fail on latest/edge + prevent unnecessary config-changed hook openstack-upgrade on initial + install (was: keystone bootstrap fail on latest/edge) |
summary: |
- prevent unnecessary config-changed hook openstack-upgrade on initial - install (was: keystone bootstrap fail on latest/edge) + prevent unnecessary openstack-upgrade on initial install (was: keystone + bootstrap fail on latest/edge) |
description: | updated |
Changed in charm-neutron-api: | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in charm-nova-cloud-controller: | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in charm-heat: | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in charm-cinder: | |
status: | New → Triaged |
importance: | Undecided → Critical |
Changed in charm-glance: | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in charm-cinder: | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in charm-cinder: | |
status: | Fix Committed → Fix Released |
Changed in charm-glance: | |
status: | Fix Committed → Fix Released |
Changed in charm-heat: | |
status: | Fix Committed → Fix Released |
Changed in charm-keystone: | |
status: | Fix Committed → Fix Released |
Changed in charm-neutron-api: | |
status: | Fix Committed → Fix Released |
Changed in charm-nova-cloud-controller: | |
status: | Fix Committed → Fix Released |
Full traceback is:
unit-keystone-0: 09:50:46 DEBUG juju.worker. uniter. remotestate got leader settings change for keystone/0: ok=true 0.juju- log Bootstrapping keystone. 0.config- changed /etc/keystone/ fernet- keys/ does not contain keys, use keystone-manage fernet_setup to create Fernet keys. 0.config- changed Traceback (most recent call last): 0.config- changed File "/var/lib/ juju/agents/ unit-keystone- 0/charm/ hooks/config- changed" , line 937, in <module> 0.config- changed main() 0.config- changed File "/var/lib/ juju/agents/ unit-keystone- 0/charm/ hooks/config- changed" , line 930, in main 0.config- changed hooks.execute( sys.argv) 0.config- changed File "/var/lib/ juju/agents/ unit-keystone- 0/charm/ charmhelpers/ core/hookenv. py", line 963, in execute 0.config- changed self._hooks[ hook_name] () 0.config- changed File "/var/lib/ juju/agents/ unit-keystone- 0/charm/ charmhelpers/ contrib/ openstack/ utils.py" , line 1900, in wrapped_f 0.config- changed return restart_ on_change_ helper( 0.config- changed File "/var/lib/ juju/agents/ unit-keystone- 0/charm/ charmhelpers/ core/host. py", line 865, in restart_ on_change_ helper 0.config- changed r = lambda_f() 0.config- changed File "/var/lib/ juju/agents/ unit-keystone- 0/charm/ charmhelpers/ contrib/ openstack/ utils.py" , line 1901, in <lambda> 0.config- changed (lambda: f(*args, **kwargs)), 0.config- changed File "/var/lib/ juju/agents/ unit-keystone- 0/charm/ charmhelpers/ contrib/ hardening/ harden. py", line 90, in _harden_inner2 0.config- changed return f(*args, **kwargs) 0.config- changed File "/var/lib/ juju/agents/ unit-keystone- 0/charm/ hooks/config- changed" , line 235, in config_changed 0.config- changed do_openstack_ upgrade_ reexec( configs= CONFIGS) 0.config- changed File "/var/lib/ juju/agents/ unit-keystone- 0/charm/ hooks/keystone_ utils.py" , line 745, in do_openstack_ upgrade_ reexec 0.config- changed do_openstack_ upgrade( configs) 0.config- changed File "/var/lib/ juju/agents/ unit-keystone- 0/charm/ hooks/keystone_ utils.py" , line 793, in do_openstack_ upgrade 0.config- changed bootstrap_ keystone( configs= configs)
unit-keystone-0: 09:50:46 INFO unit.keystone/
unit-keystone-0: 09:50:49 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keystone-0: 09:50:50 WARNING unit.keystone/
unit-keysto...