cephadm-adopt.yml fails on "TASK [manage nodes with cephadm]" when nodes are configured with FQDN
Issue
- cephadm-adopt.yml fails with below error when node are configured with FQDN.
TASK [manage nodes with cephadm]
Tuesday 24 August 2021 07:48:38 -0400 (0:00:01.838) 0:00:59.454 ********
fatal: [mons-0.example.com -> mons-0.example.com]: FAILED! => changed=false
cmd:
- podman
- run
- --rm
- --net=host
- -v
- /etc/ceph:/etc/ceph:z
- -v
- /var/lib/ceph:/var/lib/ceph:z
- -v
- /var/run/ceph:/var/run/ceph:z
- --entrypoint=ceph
- docker-registry.upshift.redhat.com/ceph/ceph-5.0-rhel-8:latest
- --cluster
- ceph
- orch
- host
- add
- mons-0
- 10.10.10.1
- mgrs
- mons
delta: '0:00:06.332408'
end: '2021-08-24 07:48:44.971645'
msg: non-zero return code
rc: 22
start: '2021-08-24 07:48:38.639237'
stderr: 'Error EINVAL: Host mons-0 (10.10.10.1) failed check(s): [''hostname "mons-0.example.com" does not match expected hostname "mons-0"'']'
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
Environment
- Red Hat Ceph Storage (RHCS) 5.0
- Red Hat Enterprise Linux (RHEL) 8.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.