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 12 months 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 #1

Updated by Adam King over 1 year ago

  • Pull request ID set to 49824
Actions #2

Updated by Ilya Dryomov over 1 year ago

  • Related to Bug #57018: host.containers.internal accessing grafana's performance graphs added
Actions #3

Updated by Adam King about 1 year ago

  • Status changed from In Progress to Pending Backport
Actions #4

Updated by Backport Bot about 1 year ago

  • Copied to Backport #59236: quincy: cephadm: "host.containers.internal" iscsi GW entry is created automatically in cephadm iscsi deployments added
Actions #5

Updated by Backport Bot about 1 year ago

  • Copied to Backport #59237: pacific: cephadm: "host.containers.internal" iscsi GW entry is created automatically in cephadm iscsi deployments added
Actions #6

Updated by Backport Bot about 1 year ago

  • Tags set to backport_processed
Actions #7

Updated by Adam King 12 months ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF