ceph / ceph-container

Docker files and images to run Ceph in containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NETWORK_AUTO_DETECT missing in ceph/demo

jgraichen opened this issue · comments

Is this a bug report or feature request?

  • Bug Report

Bug Report

What happened:

The daemon image seems deprecated, and the demo mode has been removed there. I tried porting to the quay.io/ceph/demo image, but this requires a CEPH_PUBLIC_NETWORK, MON_IP, etc. now.

Previously, I had NETWORK_AUTO_DETECT=4 as we use them as real throw-away containers to test when the RGW bug #57911 ever is fixed. We have a scheduled GitHub Actions pipeline here testing all releases every week: https://github.com/jgraichen/ceph-rgw-51574.

The docker compose setup used the demo mode to spawn a ceph environment. Since removing the demo mode, it isn't working anymore.

What you expected to happen:

I'd expect for this to start a ceph environment:

> docker run --rm -it quay.io/ceph/demo -e NETWORK_AUTO_DETECT=4 -e 'DEMO_DAEMONS=osd rgw' -e CEPH_DEMO_UID=admin -e CEPH_DEMO_ACCESS_KEY=admin -e CEPH_DEMO_SECRET_KEY=admin -e CEPH_DEMO_BUCKET=test
2023-05-08 08:38:47  /opt/ceph-container/bin/demo: ERROR- CEPH_PUBLIC_NETWORK must be defined as the name of the network for the OSDs

How to reproduce it (minimal and precise):

> docker run --rm -it quay.io/ceph/demo -e NETWORK_AUTO_DETECT=4 -e 'DEMO_DAEMONS=osd rgw' -e CEPH_DEMO_UID=admin -e CEPH_DEMO_ACCESS_KEY=admin -e CEPH_DEMO_SECRET_KEY=admin -e CEPH_DEMO_BUCKET=test
2023-05-08 08:38:47  /opt/ceph-container/bin/demo: ERROR- CEPH_PUBLIC_NETWORK must be defined as the name of the network for the OSDs

Environment:

  • OS (e.g. from /etc/os-release): Ubuntu 22.04.2 LTS
  • Kernel (e.g. uname -a): Linux 6.1.0-1010-oem #10-Ubuntu SMP PREEMPT_DYNAMIC
  • Docker version (e.g. docker version): 23.0.5
  • Ceph version (e.g. ceph -v): -