Cannot scale-out ceph-radosgw application if multi-site replication is enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph RADOS Gateway Charm |
Fix Committed
|
Undecided
|
Ionut-Madalin Balutoiu |
Bug Description
If multisite replication feature is enabled, the "ceph-radosgw" Juju application (primary or secondary) cannot be scaled out.
See this doc for the multi-site replication feature details:
https:/
After the multi-site replication is established via the following Juju relation:
```
juju relate primary-
```
any scale-out operation via the following commands will fail:
```
juju add-unit primary-
```
or
```
juju add-unit secondary-
```
This is the error from "juju debug-log UNIT_ID" of any new Juju unit:
```
2024-04-
2024-04-
unable to get monitor info from DNS SRV with service name: ceph-mon
2024-04-
2024-04-
failed to fetch mon config (--no-mon-config to skip)
Traceback (most recent call last):
File "/var/lib/
assess_
File "/var/lib/
assess_
File "/var/lib/
state, message = _determine_
File "/var/lib/
state, message = _ows_check_
File "/var/lib/
charm_state, charm_message = charm_func_
File "/var/lib/
state, message, lambda: charm_func(
File "/var/lib/
if not multisite.
File "/var/lib/
local_zones = list_zones()
File "/var/lib/
return f(*args, **kwargs)
File "/var/lib/
_zones = _list('zone')
File "/var/lib/
result = json.loads(
File "/var/lib/
return f(*args, **kwargs)
File "/var/lib/
return subprocess.
File "/usr/lib/
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/
raise CalledProcessEr
subprocess.
```
This is happening because the multi-site functions are part of `check_
is called by `assess_status` after every successful hook in the main hook entrypoint:
```
if __name__ == '__main__':
try:
except UnregisteredHoo
except ValueError as e:
# Handle any invalid configuration values
else:
```
It seems that the method `check_
description: | updated |
Changed in charm-ceph-radosgw: | |
assignee: | nobody → Ionut-Madalin Balutoiu (ionutbalutoiu) |
Changed in charm-ceph-radosgw: | |
status: | In Progress → Confirmed |
Fix proposed to branch: master /review. opendev. org/c/openstack /charm- ceph-radosgw/ +/916331
Review: https:/