Bug #49223
Updated by Sebastian Wagner about 3 years ago
<pre>
Feb 09 10:29:57 ubuntu conmon[22007]: debug 2021-02-09T09:29:57.127+0000 7f130910d700 0 [cephadm DEBUG cephadm.serve] _run_cephadm : command = gather-facts
Feb 09 10:29:57 ubuntu conmon[22007]: debug 2021-02-09T09:29:57.127+0000 7f130910d700 0 [cephadm DEBUG cephadm.serve] _run_cephadm : args = []
Feb 09 10:29:57 ubuntu conmon[22007]: debug 2021-02-09T09:29:57.127+0000 7f130910d700 0 [cephadm DEBUG root] Have connection to ubuntu
Feb 09 10:29:57 ubuntu conmon[22007]: debug 2021-02-09T09:29:57.127+0000 7f130910d700 0 [cephadm DEBUG cephadm.serve] args: gather-facts --container-init
Feb 09 10:29:57 ubuntu conmon[22007]: debug 2021-02-09T09:29:57.371+0000 7f131165d700 0 [restful DEBUG root] Unhandled notification type 'service_map'
Feb 09 10:29:57 ubuntu conmon[22007]: debug 2021-02-09T09:29:57.375+0000 7f12fe8f8700 0 [rbd_support DEBUG root] PerfHandler: tick
Feb 09 10:29:57 ubuntu conmon[22007]: debug 2021-02-09T09:29:57.375+0000 7f12fe0f7700 0 [rbd_support DEBUG root] TaskHandler: tick
Feb 09 10:29:57 ubuntu conmon[22007]: debug 2021-02-09T09:29:57.507+0000 7f130910d700 0 [cephadm DEBUG cephadm.serve] code: 2
Feb 09 10:29:57 ubuntu conmon[22007]: debug 2021-02-09T09:29:57.507+0000 7f130910d700 0 [cephadm DEBUG cephadm.serve] err: usage: [-h] [--image IMAGE] [--docker] [--data-dir DATA_DIR]
Feb 09 10:29:57 ubuntu conmon[22007]: [--log-dir LOG_DIR] [--logrotate-dir LOGROTATE_DIR]
Feb 09 10:29:57 ubuntu conmon[22007]: [--unit-dir UNIT_DIR] [--verbose] [--timeout TIMEOUT] [--retry RETRY]
Feb 09 10:29:57 ubuntu conmon[22007]: [--env ENV]
Feb 09 10:29:57 ubuntu conmon[22007]: {version,pull,inspect-image,ls,list-networks,adopt,rm-daemon,rm-cluster,run,shell,enter,ceph-volume,unit,logs,bootstrap,deploy,check-host,prepare-host,add-repo,rm-repo,install,registry-login,gather-facts,exporter,host-maintenance,verify-prereqs}
Feb 09 10:29:57 ubuntu conmon[22007]: ...
Feb 09 10:29:57 ubuntu conmon[22007]: : error: unrecognized arguments: --container-init
Feb</pre>
using
<pre>
{
"style": "cephadm:v1",
"name": "mgr.ubuntu.micfpd",
"fsid": "943f28ea-6ab7-11eb-923e-0242b47faa5c",
"systemd_unit": "ceph-943f28ea-6ab7-11eb-923e-0242b47faa5c@mgr.ubuntu.micfpd",
"enabled": true,
"state": "running",
"container_id": "38547b1f4168a81bfa2dc8fd831286045e1acd12197e7b2638b61c27d96a8ba9",
"container_image_name": "docker.io/ceph/daemon-base:latest-master-devel",
"container_image_id": "7146f2bd66bd219e642f5ac73b1371f3c169477afcfa92fe097a7e923fd397cc",
"container_image_digests": [
"docker.io/ceph/daemon-base@sha256:2f08b03807623cf4702f489659ddfef224fd3bb6aeb83b317f69128b0b782749"
],
"version": "17.0.0-389-gcced65aa",
"started": "2021-02-09T09:17:16.708559Z",
"created": "2021-02-09T09:17:17.013180Z",
"deployed": "2021-02-09T09:17:16.045155Z",
"configured": "2021-02-09T09:17:17.013180Z"
},
</pre>
I don't get it. this must be some form of mixed version where the mgr/cephadm is old and bin/cephadm is new?
Looks like this is the new cephadm binary within the container:
<pre>
$ sudo ./cephadm enter --name mgr.ubuntu.micfpd
[sudo] Passwort für sebastian:
Inferring fsid 943f28ea-6ab7-11eb-923e-0242b47faa5c
[ceph: root@ubuntu /]# cephadm gather-facts --container-init
usage: cephadm [-h] [--image IMAGE] [--docker] [--data-dir DATA_DIR]
[--log-dir LOG_DIR] [--logrotate-dir LOGROTATE_DIR]
[--unit-dir UNIT_DIR] [--verbose] [--timeout TIMEOUT]
[--retry RETRY] [--env ENV]
{version,pull,inspect-image,ls,list-networks,adopt,rm-daemon,rm-cluster,run,shell,enter,ceph-volume,unit,logs,bootstrap,deploy,check-host,prepare-host,add-repo,rm-repo,install,registry-login,gather-facts,exporter,host-maintenance,verify-prereqs}
...
cephadm: error: unrecognized arguments: --container-init
[ceph: root@ubuntu /]# cd /usr/share/ceph/mgr/cephadm
[ceph: root@ubuntu cephadm]# grep -C 3 container-init serve.py
final_args += ['--fsid', self.mgr._cluster_fsid]
if self.mgr.container_init:
final_args += ['--container-init']
final_args += args
</pre>
how can that be?