Bug 1229845

Summary: 1.3.0: Managing Cluster Size document needs to have instructions "add" monitors to an existing cluster
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Harish NV Rao <hnallurv>
Component: DocumentationAssignee: John Wilkins <jowilkin>
Status: CLOSED CURRENTRELEASE QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.3.0CC: hyelloji, kdreyer, ngoswami
Target Milestone: rc   
Target Release: 1.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-05 22:54:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Harish NV Rao 2015-06-09 18:53:36 UTC
Description of problem: 

Currently the doc https://gitlab.cee.redhat.com/jowilkin/red-hat-ceph-storage-administration-guide/blob/v1.3/cluster-size.adoc has instructions for adding the mons using "mon create" command. This is failing when user wants to add additional mon nodes to existing cluster. Need to add the instructions to "add" monitor nodes to an already working cluster to increase the count of mons.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. bring up the cluster with one mon
2. follow the above mentioned doc to add further mon nodes

Actual results:
[OSD11][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.OSD11.asok mon_status
[OSD11][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[OSD11][WARNIN] monitor: mon.OSD11, might not be running yet
[OSD11][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.OSD11.asok mon_status
[OSD11][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[OSD11][WARNIN] OSD11 is not defined in `mon initial members`
[OSD11][WARNIN] monitor OSD11 does not exist in monmap
[OSD11][WARNIN] neither `public_addr` nor `public_network` keys are defined for monitors
[OSD11][WARNIN] monitors may not be able to form quorum


Expected results:
mon nodes addition should be successful

Additional info:
Had a chat with John on this. To add additional monitor nodes one needs to use "ceph-deploy mon add <node1> <node2> ...."

Here is the difference b/w both options(from help text):
create
  Deploy monitors by specifying them like:

    ceph-deploy mon create node1 node2 node3

  If no hosts are passed it will default to use the `mon initial members`
  defined in the configuration.

add
  Add a monitor to an existing cluster:

    ceph-deploy mon add node1

I feel in the above mentioned doc, we should use "mon add" instead of "create"

Comment 2 John Wilkins 2015-06-12 22:14:15 UTC
Fixed in docs. This should be filed against the ceph-deploy tool. ceph-deploy mon create should work.

Comment 3 Hemanth Kumar 2015-06-15 07:10:27 UTC
Verified.. Looks good