ceph / ceph-container

Docker files and images to run Ceph in containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demo container does not start with CLUSTER variable different than "ceph"

stampit opened this issue · comments

Bug Report

What happened:
Demo container for latest-pacific does not start with CLUSTER environment variable set to different value than "ceph"

What you expected to happen:
Demo container starts.

How to reproduce it (minimal and precise):
Set the environment variable CLUSTER to the value different than "ceph".
entrypoint will crash with something like that:

    ownership of '/etc/ceph/my_ceph.client.admin.keyring' retained as ceph:ceph
    changed ownership of '/etc/ceph/my_ceph.conf' from root:root to ceph:ceph
    ownership of '/etc/ceph/my_ceph.mon.keyring' retained as ceph:ceph
    changed ownership of '/etc/ceph/rbdmap' from root:root to ceph:ceph
    Error initializing cluster client: ObjectNotFound('RADOS object not found (error calling conf_read_file)',)

Environment:

  • OS: Ubuntu 22.04.1 LTS
  • Kernel: 5.15.0-60-generic
  • Docker version: 20.10.12
  • Ceph version: 16.2.11

Found the cause of the issue: in demo.sh there-s no $CLI_OPTS definition.
Adding CLI_OPTS+=("--cluster=$CLUSTER") fixes the issue

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed due to inactivity. Please re-open if this still requires investigation.