changing the boolean config option does not configure the snap-openstack-hypervisor correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Charmed Operator - OpenStack Hypervisor |
Fix Committed
|
Medium
|
Chi Wai CHAN |
Bug Description
Currently, the config data flows from charm to snap.
In the charm, the config option for boolean type (`debug` and `enable-gateway`) will be set to a string of "true" or "false" in the snap configuration using `operator.
```
# in /var/snap/
09:58:57,671 root WARNING Context {'compute': {'cpu_mode': 'host-model', 'spice_
09:58:57,671 root WARNING [] are missing required config, stopping
09:58:57,833 root INFO Rendering /var/snap/
09:58:57,846 root INFO Rendering /var/snap/
09:58:57,852 root INFO Rendering /var/snap/
09:58:57,858 root INFO Rendering /var/snap/
09:58:57,860 root INFO Rendering /var/snap/
09:58:57,862 root INFO Rendering /var/snap/
09:58:57,863 root INFO Rendering /var/snap/
09:58:58,13 root INFO Configuring Open vSwitch geneve tunnels and system id. ovn-encap-ip = 10.6.0.77, system-id = sunbeam01.
09:58:58,143 root INFO configuring external bridge br-ex
09:58:58,143 root DEBUG Adding ip 10.20.20.1/24 to br-ex
09:58:58,148 root DEBUG ['iptables-legacy', '--check', 'POSTROUTING', '-w', '-t', 'nat', '-s', '10.20.20.0/24', '-j', 'MASQUERADE', '-m', 'comment', '--comment', 'openstack-
09:58:58,152 root DEBUG Found existing postrouting rule for 10.20.20.0/24
09:58:58,165 root INFO Enabling OVS as external gateway
09:58:58,266 root INFO Checking virtualization extensions presence on the host
09:58:58,278 root INFO Hardware virtualization is supported - KVM will be used.
```
Notice that even though {'enable_gateway': 'false'}, it still outputs the "INFO Enabling OVS as external gateway".
The root cause may be related to the issue in `operator.
[1] https:/
[2] https:/
[3] https:/
[4] https:/
Changed in charm-openstack-hypervisor: | |
status: | New → Triaged |
Changed in charm-openstack-hypervisor: | |
assignee: | nobody → Chi Wai CHAN (raychan96) |
Changed in charm-openstack-hypervisor: | |
importance: | Undecided → Medium |
Changed in charm-openstack-hypervisor: | |
status: | Triaged → In Progress |
Changed in charm-openstack-hypervisor: | |
status: | In Progress → Fix Committed |
Fix proposed to branch: main /review. opendev. org/c/openstack /charm- openstack- hypervisor/ +/893313
Review: https:/