Project

General

Profile

Actions

Bug #55556

closed

cephadm fails to bootstrap when an ipv6 address is provided

Added by Redouane Kachach Elhichou almost 2 years ago. Updated almost 2 years ago.

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

0%

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

Description

root@ceph-node-0 ~]# cephadm --image registry.hub.docker.com/rkachach/ceph:custom-v0.6 bootstrap --mon-ip 2001:0db8:85a3:0000:0000:8a2e:0370:7334 --initial-dashboard-password admin --allow-fqdn-hostname --dashboard-password-noupdate -c /root/ceph.conf 
Verifying podman|docker is present...
Verifying lvm2 is present...
Verifying time synchronization is in place...
Unit chronyd.service is enabled and running
Repeating the final host check...
podman (/usr/bin/podman) version 3.4.4 is present
systemctl is present
lvcreate is present
Unit chronyd.service is enabled and running
Host looks OK
Cluster fsid: 0731542a-cc7a-11ec-9407-52540023bc9f
Verifying IP [2001:0db8:85a3:0000:0000:8a2e:0370:7334] port 3300 ...
Verifying IP [2001:0db8:85a3:0000:0000:8a2e:0370:7334] port 6789 ...
The public CIDR network 2001:0db8:85a3:0000:0000:8a2e:0370:7334/128 (from -c conf file) is not configured locally.
Traceback (most recent call last):
  File "/root/bin/cephadm", line 9125, in <module>
    main()
  File "/root/bin/cephadm", line 9113, in main
    r = ctx.func(ctx)
  File "/root/bin/cephadm", line 2087, in _default_image
    return func(ctx)
  File "/root/bin/cephadm", line 5427, in command_bootstrap
    (addr_arg, ipv6, mon_network) = prepare_mon_addresses(ctx)
  File "/root/bin/cephadm", line 4794, in prepare_mon_addresses
    mon_network = get_public_net_from_cfg(ctx) or infer_mon_network(ctx, addrv_args)
  File "/root/bin/cephadm", line 4728, in get_public_net_from_cfg
    if not ip_in_subnets(ctx.mon_ip, public_network):
  File "/root/bin/cephadm", line 4642, in ip_in_subnets
    if ipaddress.ip_address(ip_addr) in ipaddress.ip_network(subnet):
  File "/usr/lib64/python3.9/ipaddress.py", line 53, in ip_address
    raise ValueError('%r does not appear to be an IPv4 or IPv6 address' %
ValueError: '[2001:0db8:85a3:0000:0000:8a2e:0370:7334]' does not appear to be an IPv4 or IPv6 address

Actions #1

Updated by Redouane Kachach Elhichou almost 2 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 46163
Actions #2

Updated by Redouane Kachach Elhichou almost 2 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #3

Updated by Redouane Kachach Elhichou almost 2 years ago

  • Backport set to quincy,pacific
Actions #4

Updated by Redouane Kachach Elhichou almost 2 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF