Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1518696 - [ceph-ansible]: Configuring MDS with the --limit option leads to incomplete configuration
[ceph-ansible]: Configuring MDS with the --limit option leads to incomplete c...
Status: NEW
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: Ceph-Ansible (Show other bugs)
3.0
Unspecified Linux
unspecified Severity medium
: z1
: 3.2
Assigned To: Ram Raja
ceph-qe-bugs
Bara Ancincova
:
Depends On:
Blocks: 1494421
  Show dependency treegraph
 
Reported: 2017-11-29 08:35 EST by Tejas
Modified: 2018-10-26 13:03 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Known Issue
Doc Text:
.The `--limit mdss` option does not create CephFS pools When deploying the Metadata Server nodes by using the Ansible and the `--limit mdss` option, Ansible does not create the Ceph File System (CephFS) pools. To work around this problem, do not use `--limit mdss`.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Failed ansible log (433.61 KB, text/plain)
2018-10-01 01:10 EDT, Ramakrishnan Periyasamy
no flags Details

  None (edit)
Description Tejas 2017-11-29 08:35:08 EST
Description of problem:
    Once the cluster is up we are trying to configure MDS separately using the '--limit mdss' option. The MDS daemons come up, but the cephfs pools are not created, and FS creation is not done.

Version-Release number of selected component (if applicable):
ceph-ansible-3.0.14-1.el7cp.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create a ceph cluster using ceph-ansible without the MDS.
2. Run site.yml with --limit mdss option.
3. The MDS daemons come up but cephfs_data and cephfs_metadata pools are not created. the FS creation is also not done.


Workaround 1: (Additional steps to make  cephfs up)
- sudo ceph osd pool create cephfs_data 64 64
- sudo ceph osd pool create cephfs_metadata 64 64
- sudo ceph osd pool application enable cephfs_data cephfs --yes-i-really-mean-it
- sudo ceph osd pool application enable cephfs_metadata cephfs --yes-i-really-mean-it
- sudo ceph fs new cephfs cephfs_data cephfs_metadata


Workaround 2:
- run the site.yml without the '--limit mdss' option
Comment 4 Gregory Meno 2017-11-29 11:14:01 EST
Would you please review the doc text for accuracy?
Comment 6 Ramakrishnan Periyasamy 2017-12-05 06:54:48 EST
Hi Bara,

Could you please remove "Ansible does not create the Ceph File System (CephFS) pools." in the doc text which is there at the start of the text.

This text is enough "The `--limit mdss` option does not create CephFS pools When deploying the Metadata Server nodes by using the Ansible and the `--limit mdss` option, To work around this problem, do not use `--limit mdss`".

-- Ramakrishnan
Comment 10 leseb 2017-12-06 12:05:29 EST
lgtm
Comment 12 Ramakrishnan Periyasamy 2018-10-01 01:03:07 EDT
While adding MDS using --limit to the existing cluster where cephfs is already up and running with 2 MDS, NEW mds creation succeeds but there is an error in ansible.

2018-10-01 04:51:01,377 p=17799 u=ubuntu |  PLAY RECAP ******************************************************************************************************************************************************************
2018-10-01 04:51:01,377 p=17799 u=ubuntu |  magna083                   : ok=59   changed=3    unreachable=0    failed=0
2018-10-01 04:51:01,377 p=17799 u=ubuntu |  magna085                   : ok=57   changed=12   unreachable=0    failed=0
2018-10-01 04:51:01,377 p=17799 u=ubuntu |  magna104                   : ok=43   changed=3    unreachable=0    failed=1
2018-10-01 04:51:01,377 p=17799 u=ubuntu |  INSTALLER STATUS ************************************************************************************************************************************************************
2018-10-01 04:51:01,380 p=17799 u=ubuntu |  Install Ceph MDS            : Complete (0:06:37)


2018-10-01 04:49:03,740 p=17799 u=ubuntu |  TASK [ceph-mds : create filesystem pools] ***********************************************************************************************************************************
2018-10-01 04:49:03,740 p=17799 u=ubuntu |  task path: /usr/share/ceph-ansible/roles/ceph-mds/tasks/create_mds_filesystems.yml:2
2018-10-01 04:49:03,740 p=17799 u=ubuntu |  Monday 01 October 2018  04:49:03 +0000 (0:00:00.072)       0:04:45.764 ********
2018-10-01 04:49:03,776 p=17799 u=ubuntu |  fatal: [magna104]: FAILED! => {
    "failed": true,
    "msg": "[{u'name': u'{{ cephfs_data }}', u'pgs': u\"{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}\"}, {u'name': u'{{ cephfs_metadata }}', u'pgs': u\"{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}\"}]: 'dict object' has no attribute 'osd_pool_default_pg_num'"
}
2018-10-01 04:49:03,810 p=17799 u=ubuntu |  skipping: [magna083] => {
    "changed": false,
    "skip_reason": "Conditional result was False",
    "skipped": true
}
2018-10-01 04:49:03,835 p=17799 u=ubuntu |  skipping: [magna085] => {
    "changed": false,
    "skip_reason": "Conditional result was False",
    "skipped": true
}


ceph-ansible version: ceph-ansible-3.1.5-1.el7cp.noarch
Ceph version: 12.2.5-42.el7cp (82d52d7efa6edec70f6a0fc306f40b89265535fb) luminous (stable)

Additional information: Adding MDS without limit option passes without any issues.
Comment 13 Ramakrishnan Periyasamy 2018-10-01 01:10 EDT
Created attachment 1488833 [details]
Failed ansible log

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