Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Compile the local docker image and encounter an error when starting it using cephadm #2249

Closed
xiaochuan-666 opened this issue Nov 12, 2024 · 2 comments
Labels

Comments

@xiaochuan-666
Copy link

xiaochuan-666 commented Nov 12, 2024

  • Bug Report

Use the following command to generate local image:

`
make FLAVORS=reef-18.2.4,centos,9 BASEOS_REGISTRY=quay.io/centos BASEOS_TAG=stream9 IMAGES_TO_BUILD=daemon-base build

docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ceph/daemon-base HEAD-reef-centos-stream9-x86_64 9590ca74096e 1 hours ago 1.23GB

`

After I tried to run the Docker image using cephadm, an error occurred:

`
cephadm --image ceph/daemon-base:HEAD-reef-centos-stream9-x86_64 --docker bootstrap --skip-pull --mon-ip 192.168.100.42

Verifying podman|docker is present...
Verifying lvm2 is present...
Verifying time synchronization is in place...
Unit chronyd.service is enabled and running
Repeating the final host check...
docker (/bin/docker) is present
systemctl is present
lvcreate is present
Unit chronyd.service is enabled and running
Host looks OK
Cluster fsid: 4d04821a-a0b7-11ef-8413-b42e99b391b7
Verifying IP 192.168.100.42 port 3300 ...
Verifying IP 192.168.100.42 port 6789 ...
Mon IP 192.168.100.42 is in CIDR network 192.168.100.0/24
Mon IP 192.168.100.42 is in CIDR network 192.168.100.0/24
Internal network (--cluster-network) has not been provided, OSD replication will default to the public_network
Ceph version: ceph version 18.2.4 (e7ad5345525c7aa95470c26863873b581076945d) reef (stable)
Extracting ceph user uid/gid from container image...
Creating initial keys...
Creating initial monmap...
Creating mon...
Waiting for mon to start...
Waiting for mon...
mon is available
Assimilating anything we can from ceph.conf...
Generating new minimal ceph.conf...
Restarting the monitor...
Setting public_network to 192.168.100.0/24 in mon config section
Wrote config to /etc/ceph/ceph.conf
Wrote keyring to /etc/ceph/ceph.client.admin.keyring
Creating mgr...
Verifying port 0.0.0.0:9283 ...
Verifying port 0.0.0.0:8765 ...
Verifying port 0.0.0.0:8443 ...
Waiting for mgr to start...
Waiting for mgr...
mgr not available, waiting (1/15)...
mgr not available, waiting (2/15)...
mgr not available, waiting (3/15)...
mgr is available
Enabling cephadm module...
Waiting for the mgr to restart...
Waiting for mgr epoch 5...
mgr epoch 5 is available
Setting orchestrator backend to cephadm...
Generating ssh key...
Wrote public SSH key to /etc/ceph/ceph.pub
Adding key to root@localhost authorized_keys...
Adding host node1...
Deploying mon service with default placement...
Deploying mgr service with default placement...
Deploying crash service with default placement...
Deploying ceph-exporter service with default placement...
Deploying prometheus service with default placement...
Deploying grafana service with default placement...
Deploying node-exporter service with default placement...
Deploying alertmanager service with default placement...
Non-zero exit code 22 from /bin/docker run --rm --ipc=host --stop-signal=SIGTERM --ulimit nofile=1048576 --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=ceph/daemon-base:main-reef-centos-stream9-x86_64 -e NODE_NAME=node1 -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/4d04821a-a0b7-11ef-8413-b42e99b391b7:/var/log/ceph:z -v /tmp/ceph-tmp1fsly2yp:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmp35kqrvwj:/etc/ceph/ceph.conf:z ceph/daemon-base:main-reef-centos-stream9-x86_64 config set mgr mgr/dashboard/ssl_server_port 8443
/usr/bin/ceph: stderr Error EINVAL: unrecognized config option 'mgr/dashboard/ssl_server_port'
RuntimeError: Failed command: /bin/docker run --rm --ipc=host --stop-signal=SIGTERM --ulimit nofile=1048576 --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=ceph/daemon-base:main-reef-centos-stream9-x86_64 -e NODE_NAME=node1 -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/4d04821a-a0b7-11ef-8413-b42e99b391b7:/var/log/ceph:z -v /tmp/ceph-tmp1fsly2yp:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmp35kqrvwj:/etc/ceph/ceph.conf:z ceph/daemon-base:main-reef-centos-stream9-x86_64 config set mgr mgr/dashboard/ssl_server_port 8443: Error EINVAL: unrecognized config option 'mgr/dashboard/ssl_server_port'`

cephadm version

`
yum list |grep cephadm

cephadm.noarch 2:18.2.4-0.ge7ad5345525.el9 @rpm
ceph-mgr-cephadm.noarch 2:18.2.4-0.ge7ad5345525.el9 rpm
`

Environment:

  • OS (e.g. from /etc/os-release): CentOS Stream 9
  • Kernel (e.g. uname -a): Linux node1 5.14.0-522.el9.x86_64 Improve README #1 SMP PREEMPT_DYNAMIC Sun Oct 20 13:04:34 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  • Docker version (e.g. docker version): 27.3.1
  • Ceph version (e.g. ceph -v): 18.2.4
Copy link

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.

Copy link

github-actions bot commented Dec 5, 2024

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

@github-actions github-actions bot closed this as completed Dec 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant