charm adds extra port to monitor-hosts in ceph.conf as IP_ADDRESS:6789:6789
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gnocchi Charm |
Triaged
|
Undecided
|
Chris MacNaughton | ||
OpenStack Ceph-Proxy Charm |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Docs for ceph-proxy say monitor-hosts can contain multiple space delimited entries with the form:
{IP / Hostname}:{port} {IP / Hostname}:{port}
However, in the /etc/ceph/ceph.conf file on the gnocchi units we end up with:
mon host = 10.a.a.a:6789 10.b.b.b:6789 10.c.c.c:6789:6789
The difference between the behavior when gnocchi is related to ceph-proxy versus ceph-mon is that ceph-mon sends a single address:
https:/
data = {'key': ceph.get_
whereas ceph-proxy sends the string of the config as is:
https:/
data = {'key': ceph.get_
The gnocchi charm seems to assume this is an array of hosts.
String versus list aside, I can't actually figure out where the extra port is coming from.
summary: |
- charm adds extra port to monitor-hosts in ceph.conf + charm adds extra port to monitor-hosts in ceph.conf as + IP_ADDRESS:6789:6789 |
If I run ceph --id gnocchi mon_status I get:
server name not found: 10.c.c.c:6789:6789 (Temporary failure in name resolution) ntError does not take keyword arguments
unable to parse addrs in '10.a.a.a:6789 10.b.b.b:6789 10.c.c.c:6789:6789'
InvalidArgume
If I temporarily change ceph.conf (because juju changes it back) to remove the extra port and run the ceph command I get normal looking mon_status:
{"name" :"CephBlockMon0 3","rank" :2,"state" :"peon" ,"election_ epoc":46, "quorum" :[0,1,2] ,"features" :{"required_ con":"159873415 184952845" ,"required_ mon":[" kraken" ,"luminous" ],"quorum_ con":"349823480 294924932" ,"quorum_ mon":[" kraken" ,"luminous" ]},"outside_ quorum" :[],"extra_ probe_peers" :["10.a. a.a:6789/ 0","10. b.b.b:6789/ 0"],"sync_ provider" :[],"monmap" :{"epoch" :1,"fsid" :"3d1e2586- 338f-11e9- 929a-02f2b9b313 b8","modified" :"2019- 02-11 14:52:27. 531389" ,"created" :"2019- 02-11 14:52:27. 531389" ,"features" :{"persistent" :["kraken" ,"luminous" ],"optional" :[]},"mons" :[{"rank" :0,"name" :"CephBlockMon0 1","addr" :"10.a. a.a:6789/ 0","public_ addr":" 10.a.a. a:6789/ 0"},{"rank" :1,"name" :"CephBlockMon0 2","addr" :"10.b. b.b:6789/ 0","public_ addr":" 10.b.b. b:6789/ 0"},{"rank" :2,"name" :"CephBlockMon0 3","addr" :"10.c. c.c:6789/ 0","public_ addr":" 10.c.c. c:6789/ 0"}]}," feature_ map":{" mon":{" group": {"features" :"0x3ffddff8eea 4fffb", "release" :"luminous" ,"num": 1}},"osd" :{"group" :{"features" :"0x3ffddff8eea 4fffb", "release" :"luminous" ,"num": 132}}," client" :{"group" :{"features" :"0x3ffddff8eea 4fffb", "release" :"luminous" ,"num": 1}}}}