Bug 1218962 - RFE: "ceph-deploy mds create" should print a helpful error that CephFS is not supported
Summary: RFE: "ceph-deploy mds create" should print a helpful error that CephFS is not...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Installer
Version: 1.2.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 1.3.0
Assignee: Alfredo Deza
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On: 1210038
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-06 10:00 UTC by Adolfo Vazquez
Modified: 2022-02-21 18:30 UTC (History)
10 users (show)

Fixed In Version: ceph-deploy-1.5.24-1.el7cp
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-24 15:52:41 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-3446 0 None None None 2022-02-21 18:30:20 UTC
Red Hat Product Errata RHBA-2015:1183 0 normal SHIPPED_LIVE Ceph bug fix and enhancement update 2015-06-24 19:49:46 UTC

Description Adolfo Vazquez 2015-05-06 10:00:49 UTC
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:

Comment 2 Travis Rhoden 2015-05-06 13:48:05 UTC
MDS isn't a supported part of the product...  Should we patch the downstream ceph-deploy tool to remove the option to deploy it?

Comment 3 Adolfo Vazquez 2015-05-06 13:54:59 UTC
Thanks Travis, I understand that CephFS is not supported then (as of RHCeph 1.2.3)

Comment 4 Federico Lucifredi 2015-05-06 16:14:34 UTC
#2: would be nice. Acking.

Comment 5 Federico Lucifredi 2015-05-06 16:18:27 UTC
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.

Comment 6 Ken Dreyer (Red Hat) 2015-05-06 16:21:29 UTC
(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?

Comment 7 Travis Rhoden 2015-05-06 16:28:20 UTC
(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).

Comment 10 Federico Lucifredi 2015-05-06 22:08:44 UTC
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?

Comment 11 Federico Lucifredi 2015-05-07 00:45:36 UTC
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.

Comment 16 Alfredo Deza 2015-05-15 12:05:05 UTC
Pull request opened https://github.com/ceph/ceph-deploy/pull/289

Comment 17 Alfredo Deza 2015-05-18 19:22:51 UTC
 merged commit 80264ff into ceph:master

Comment 18 Ken Dreyer (Red Hat) 2015-05-18 21:40:23 UTC
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).

Comment 22 Harish NV Rao 2015-06-01 08:54:09 UTC
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]$

Comment 24 errata-xmlrpc 2015-06-24 15:52:41 UTC
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


Note You need to log in before you can comment on or make changes to this bug.