canonical / microceph

Ceph for a one-rack cluster and appliances
https://snapcraft.io/microceph
GNU Affero General Public License v3.0
193 stars 25 forks source link

Not able to set replicaton factor with empty string pool #349

Closed hemanthnakkina closed 1 month ago

hemanthnakkina commented 1 month ago

Issue report

What version of MicroCeph are you using ?

tracking: reef/stable installed: 18.2.0+snap450240f5dd (975) 87MB held

What are the steps to reproduce this issue ?

  1. Deploy multi node microceph https://canonical-microceph.readthedocs-hosted.com/en/latest/tutorial/multi-node/
  2. Change default pool size to 1 sudo microceph pool set-rf --size 1 ''

What happens (observed behaviour) ?

$ sudo microceph pool set-rf --size 1 ''
Error: failed setting replication factor: failed to set pool size default: Failed to run: ceph config set global osd_pool_default_size 1: exit status 1 (Error initializing cluster client: ObjectNotFound('RADOS object not found (error calling conf_read_file)')

What were you expecting to happen ?

Expected pool size default set to 1.

Relevant logs, error output, etc.

Additional comments.

This behaviour is observed in sunbeam deployment when charm microceph config default-pool-size is set to 1

hemanthnakkina commented 1 month ago

Seems like this is not an issue with microceph snap and problem in charm-microceph. See https://github.com/canonical/charm-microceph/issues/74 Closing this bug.