Project

General

Profile

Actions

Bug #58532

closed

cephadm: "host.containers.internal" iscsi GW entry is created automatically in cephadm iscsi deployments

Added by Adam King over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
backport_processed
Backport:
quincy, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Looks to be caused by a “hosts.containers.internal” entry being added to the /etc/hosts file by podman (which it seems happens in podman 4.1 onward). Iscsi appears to always create a gateway for wherever it thinks the fqdn of the local host is, which is ending up as “hosts.containers.internal” due to podman adding the /etc/hosts entry. What iscsi thinks is the local host’s FQDN is whatever “python3 -c 'import socket; print(socket.getfqdn())'” resolves to (which is run from inside the container and is therefore affected by the /etc/hosts in the container).

o- gateways .............................................................................................. [Up: 5/5, Portals: 5]
| o- host.containers.internal ........................................................................... [192.168.122.111 (UP)]
| o- vm-00 .............................................................................................. [192.168.122.111 (UP)]
| o- vm-01 .............................................................................................. [192.168.122.231 (UP)]
| o- vm-02 ............................................................................................... [192.168.122.32 (UP)]
| o- vm-03 ............................................................................................... [192.168.122.68 (UP)]

Related issues 3 (0 open3 closed)

Related to Dashboard - Bug #57018: host.containers.internal accessing grafana's performance graphsResolvedAdam King

Actions
Copied to Orchestrator - Backport #59236: quincy: cephadm: "host.containers.internal" iscsi GW entry is created automatically in cephadm iscsi deploymentsResolvedAdam KingActions
Copied to Orchestrator - Backport #59237: pacific: cephadm: "host.containers.internal" iscsi GW entry is created automatically in cephadm iscsi deploymentsResolvedMykola GolubActions
Actions

Also available in: Atom PDF