Skip to content

tentacle: cephadm: fix EndPoint to handle bracketed IPv6 addresses - #68573

Merged
batrick merged 2 commits into
ceph:tentaclefrom
rkachach:fix_issue_75567
Jul 11, 2026
Merged

batrick merged 2 commits into
ceph:tentaclefrom
rkachach:fix_issue_75567

Conversation

@rkachach

Copy link
Copy Markdown
Contributor

Backport of #67530

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

EndPoint ctr fails to correctly handle IPv6 addresses passed with
surrounding brackets. In this case, ipaddress.ip_network() raises
a ValueError, which is silently swallowed by the except block, leaving
is_ipv4 = True. This causes __str__/__repr__ method to return a malformed
address like fd19:8:5::11:3300 instead of [fd19:8:5::11]:3300.

Normalize the self.ip field by stripping brackets on construction so
we always save and use the bare ip. repr/str methods take care of
appending the [] when needed.

Fixes: https://tracker.ceph.com/issues/75165 (original ticket)
Fixes: https://tracker.ceph.com/issues/75567 (backport ticket)

Signed-off-by: Redouane Kachach <[email protected]>
(cherry picked from commit 25319e9)
@rkachach
rkachach requested a review from a team as a code owner April 23, 2026 13:35
@rkachach
rkachach removed the request for review from a team April 23, 2026 13:35
@github-actions github-actions Bot added this to the tentacle milestone Apr 23, 2026
@rkachach
rkachach requested review from a team and adk3798 April 23, 2026 13:35
@rkachach rkachach added needs-qa and removed cephadm labels Apr 23, 2026

@phlogistonjohn phlogistonjohn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks ok for backport

@batrick

batrick commented Apr 28, 2026

Copy link
Copy Markdown
Member

jenkins test make check

@batrick batrick modified the milestones: tentacle, v20.2.2 Apr 28, 2026
@batrick batrick added releng-audit-queue Release engineering: queued for backport verification audit. releng-audit-pass Release engineering: passed backport verification audit. and removed pdonnell-tentacle-RFA releng-audit-queue Release engineering: queued for backport verification audit. labels Apr 28, 2026
@batrick batrick removed the releng-audit-pass Release engineering: passed backport verification audit. label May 15, 2026
@batrick batrick modified the milestones: v20.2.2, v20.2.3 May 15, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label May 15, 2026
@yuriw

yuriw commented May 19, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri2-testing-2026-04-27-1438-tentacle.

@yuriw

yuriw commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri10-testing-20260622.213727-tentacle.

@lee-j-sanders

Copy link
Copy Markdown
Member

@batrick
batrick merged commit 3e40f4a into ceph:tentacle Jul 11, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-qa releng-audit-pass Release engineering: passed backport verification audit. tentacle-next wip-yuri10-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants