infinite loop @install if chrony package is installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph Monitor Charm |
Triaged
|
Critical
|
Unassigned |
Bug Description
Hi,
As ntp sync is really important for CEPH, we try to add the ntp service for every openstack component with :
model-config.yaml file containing :
```yaml
cloudinit-userdata: |
ntp:
enabled: true
ntp_client: chrony
timezone: Europe/Paris
servers:
- DNSserverIP
package_update: true
package_upgrade: true
...
```
Then `juju add-model --controller my-jujuctrl --config ./openstack/
The charm try to uninstall chrony but it raise a python error / exception @ https:/
complaining about the "packages" parameter, and provide an infinite loop on the install step of the charm.
juju logs :
2024-04-03 17:44:01 INFO unit.ceph-
2024-04-03 17:44:02 INFO unit.ceph-
2024-04-03 17:44:02 ERROR unit.ceph-
Traceback (most recent call last):
File "/var/lib/
main(
File "/var/lib/
manager.run()
File "/var/lib/
self._emit()
File "/var/lib/
self.
File "/var/lib/
self._reemit()
File "/var/lib/
custom_
File "/var/lib/
apt.
TypeError: remove_package() got an unexpected keyword argument 'packages'
I solved the problem on our server with a manual uninstall :
juju ssh ceph-mon/0 sudo apt remove chrony -y
juju ssh ceph-mon/1 sudo apt remove chrony -y
juju ssh ceph-mon/2 sudo apt remove chrony -y
Our charm setting is :
ceph-mon:
charm: ceph-mon
channel: quincy/stable
revision: 204
resources:
alert-rules: 3
num_units: 3
to:
- lxd:6
- lxd:7
- lxd:8
options:
expected-
monitor-
source: distro
description: | updated |
The referenced function is incorrect. It should be using this function signature https:/ /opendev. org/openstack/ charm-ceph- mon/src/ branch/ master/ lib/charms/ operator_ libs_linux/ v0/apt. py#L805 and looks like fallout from the migration to operator charm.