Skip to content

microceph.ceph vs ceph native commands : needed clarification #448

@necarnot

Description

@necarnot

Issue report

Version of MicroCeph : 18.2.4

What are the steps to reproduce this issue ?

  1. Brand new Ubuntu 22.04 VM, fresh install of microceph 18.2.4
  2. Following this single-node install tutorial : https://canonical-microceph.readthedocs-hosted.com/en/reef-stable/tutorial/single-node/
  3. Added three loop files as disks
  4. Kept following the next tutorial : https://canonical-microceph.readthedocs-hosted.com/en/reef-stable/tutorial/mount-block-device/
  5. Was happy, typing native ceph command ("ceph osd pool create block_pool", "rbd create bd_foo --size 1024 --image-feature layering -p block_pool", "rbd status -p block_pool", etc...)
  6. One week later (thank you COVID), I found out that I can not use native ceph commands anymore, and I have to use microceph.xyz commands ("microceph.ceph", "microceph.rbd", "microceph.rados"...)
  7. Trying to use native commands leads to a failure.

What happens (observed behaviour) ?

# ceph status
Error initializing cluster client: ObjectNotFound('RADOS object not found (error calling conf_read_file)')

My workaround is to provide the conf file path and the keyring :
# ceph --conf /var/snap/microceph/current/conf/ceph.conf -k /var/snap/microceph/current/conf/ceph.keyring status

What were you expecting to happen ?

I was expecting the first behaviour not to change, and be able to use the native commands.

The bash history is clearly showing I was using the native commands seamlessly, and I can't get what could have changed since then.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions