]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/cephadm: query iSCSI gateway FQDN from inside the container 69214/head
authorKefu Chai <k.chai@proxmox.com>
Mon, 1 Jun 2026 10:40:06 +0000 (18:40 +0800)
committerKefu Chai <k.chai@proxmox.com>
Mon, 1 Jun 2026 10:40:51 +0000 (18:40 +0800)
commit50ef945949219206ef2026b6b2f30b2a0c45c66e
tree9bf8a2dd0b327380be66ae3214454b167f3b015f
parentce220cc902e91fe203513e7beac7982e2c2538d4
qa/cephadm: query iSCSI gateway FQDN from inside the container

rbd-target-api validates that the gateway hostname supplied by gwcli
matches the container's own socket.getfqdn(). Running the same call on
the host can return a different value when the host and container resolve
names differently (e.g. on Rocky 10), causing gateway creation to fail
with HTTP 400 and all subsequent gwcli configuration to break silently.

Query the FQDN from inside the iSCSI container directly so the value is
always consistent with what rbd-target-api expects. This also removes the
"run twice" workaround, which was compensating for host-side DNS
warm-up flakiness rather than addressing the underlying mismatch.

Fixes: https://tracker.ceph.com/issues/74577
Signed-off-by: Kefu Chai <k.chai@proxmox.com>
qa/workunits/cephadm/test_iscsi_setup.sh