Description of problem: Deploying MDS service through 'ceph-deploy mds create myserver' raises an error Version-Release number of selected component (if applicable): RHCeph 1.2.3 RHEL 7.1 How reproducible: Always Steps to Reproduce: 1. Install ceph-deploy (RHCeph 1.2.3) 2. Deploy a Ceph cluster 3. Add a MDS service to one of the Ceph cluster nodes using 'ceph-deploy mds create myserver' Actual results: $ sudo ceph-deploy mds create myserver [ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf [ceph_deploy.cli][INFO ] Invoked (1.5.22-rc1): /bin/ceph-deploy mds create myserver [ceph_deploy.mds][DEBUG ] Deploying mds, cluster ceph hosts myserver:myserver [myserver][DEBUG ] connected to host: myserver [myserver][DEBUG ] detect platform information from remote host [myserver][DEBUG ] detect machine type [ceph_deploy.mds][INFO ] Distro info: Red Hat Enterprise Linux Server 7.1 Maipo [ceph_deploy.mds][DEBUG ] remote host will use sysvinit [ceph_deploy.mds][DEBUG ] deploying mds bootstrap to myserver [myserver][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf [myserver][DEBUG ] create path if it doesn't exist [ceph_deploy.mds][ERROR ] OSError: [Errno 2] No such file or directory: '/var/lib/ceph/mds/ceph-myserver' [ceph_deploy][ERROR ] GenericError: Failed to create 1 MDSs Expected results: MDS deployed Additional info:
MDS isn't a supported part of the product... Should we patch the downstream ceph-deploy tool to remove the option to deploy it?
Thanks Travis, I understand that CephFS is not supported then (as of RHCeph 1.2.3)
#2: would be nice. Acking.
Alfredo, if we can do this, it would be nice. If not, let us know and we'll punt. low priority in our agreed list.
(In reply to Travis Rhoden from comment #2) > MDS isn't a supported part of the product... Should we patch the downstream > ceph-deploy tool to remove the option to deploy it? Instead of patching the code, maybe we could have an optional parameter in the default cephdeploy.conf that we can set downstream, like "disable mds" or something?
(In reply to Ken Dreyer (Red Hat) from comment #6) > (In reply to Travis Rhoden from comment #2) > > MDS isn't a supported part of the product... Should we patch the downstream > > ceph-deploy tool to remove the option to deploy it? > > Instead of patching the code, maybe we could have an optional parameter in > the default cephdeploy.conf that we can set downstream, like "disable mds" > or something? Yeah, this is the kind of customization I have been thinking of... I don't think there is any mechanism right now to disable commands outright, but it could be added I think (and toggled via the .conf file).
A simple patch that when parsing that option goes print "helpful message" exit (1) could also do... but I guess we do not carry forward a "downstream patchset" of any kind?
I propose we postpone this only if needed later. This is the specific kind of issue that I asked QE to be on the lookout for, if we can fix it, we should. If we can't, we won't hold for it.
Pull request opened https://github.com/ceph/ceph-deploy/pull/289
merged commit 80264ff into ceph:master
Alfredo was able to get this fixed along with the rest of the BZs for ceph-deploy. So we can take this in with the 1.5.24 rebase (bz 1210038).
ceph-deploy now prints the error message. Marking this BZ as verified. Log: [cephuser@Admin ceph-config]$ ceph-deploy mds create [ceph_deploy.conf][DEBUG ] found configuration file at: /home/cephuser/.cephdeploy.conf [ceph_deploy.cli][INFO ] Invoked (1.5.25): /usr/bin/ceph-deploy mds create [ceph_deploy.mds][DEBUG ] Deploying mds, cluster ceph hosts [ceph_deploy][ERROR ] NeedHostError: No hosts specified to deploy to. [cephuser@Admin ceph-config]$ ceph-deploy mds create rgw1 [ceph_deploy.conf][DEBUG ] found configuration file at: /home/cephuser/.cephdeploy.conf [ceph_deploy.cli][INFO ] Invoked (1.5.25): /usr/bin/ceph-deploy mds create rgw1 [ceph_deploy.mds][DEBUG ] Deploying mds, cluster ceph hosts rgw1:rgw1 [rgw1][DEBUG ] connection detected need for sudo [rgw1][DEBUG ] connected to host: rgw1 [rgw1][DEBUG ] detect platform information from remote host [rgw1][DEBUG ] detect machine type [ceph_deploy.mds][INFO ] Distro info: Red Hat Enterprise Linux Server 7.1 Maipo [ceph_deploy.mds][DEBUG ] remote host will use sysvinit [ceph_deploy.mds][DEBUG ] deploying mds bootstrap to rgw1 [rgw1][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf [rgw1][DEBUG ] create path if it doesn't exist [ceph_deploy.mds][ERROR ] this feature may not yet available for Red Hat Enterprise Linux Server 7.1 [ceph_deploy.mds][ERROR ] OSError: [Errno 2] No such file or directory: '/var/lib/ceph/mds/ceph-rgw1' [ceph_deploy.mds][ERROR ] RHEL RHCS systems do not have the ability to deploy MDS yet [ceph_deploy][ERROR ] GenericError: Failed to create 1 MDSs [cephuser@Admin ceph-config]$
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2015:1183