Project

General

Profile

Actions

Feature #267

closed

Support IPv6 in monmaptool

Added by Wido den Hollander almost 14 years ago. Updated over 13 years ago.

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

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Adding a IPv6 monitor to the monmap fails:

root@node13:~# monmaptool --add [2001:16f8:10:2::c3c3:3f9b]:6789
monmaptool: invalid ip:port '[2001:16f8:10:2::c3c3:3f9b]:6789'
root@node13:~# monmaptool --add 2001:16f8:10:2::c3c3:3f9b:6789
monmaptool: invalid ip:port '2001:16f8:10:2::c3c3:3f9b:6789'
root@node13:~# monmaptool --add {2001:16f8:10:2::c3c3:3f9b}:6789
 usage: [--print] [--create [--clobber]] [--add 1.2.3.4:567] [--rm 1.2.3.4:567] <mapfilename>
root@node13:~#

Assuming that the same goes for removing a monitor from the map.

Actions #1

Updated by Sage Weil almost 14 years ago

parsing was broken, fixed by c91c8a3115347b8102ccf6a061b57a3a9c4ebd94

works for me:

fatty:src 11:24 AM $ make monmaptool && ./monmaptool .ceph_monmap  --add [2001:16f8:10:2::c3c3:3f9b]:6789
./check_version .git_version
.git_version is up to date.
buf is '2001:16f8:10:2::c3c3:3f9b'
./monmaptool: monmap file .ceph_monmap
./monmaptool: writing epoch 2 to .ceph_monmap (4 monitors)
fatty:src 11:25 AM $ ./monmaptool --print .ceph_monmap 
./monmaptool: monmap file .ceph_monmap
epoch 2
fsid a32a9c87-40cc-5499-d444-b11ed95cd770
last_changed 10.07.09_11:20:30.942287
created 10.07.09_11:20:30.942287
        mon0 10.0.1.252:6789/0
        mon1 10.0.1.252:6790/0
        mon2 10.0.1.252:6791/0
        mon3 2001:16f8:10:2::c3c3:3f9b:6789/0

Actions #2

Updated by Sage Weil almost 14 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF