Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1687838

Summary: [DOC] ‘shrink.yml’ fails if the admin key isn’t present on the OSD node
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Ashish Singh <assingh>
Component: DocumentationAssignee: Karen Norteman <knortema>
Status: CLOSED CURRENTRELEASE QA Contact: Vasishta <vashastr>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.2CC: asriram, gsitlani, hyelloji, kdreyer, kjosy, knortema, mhackett, vashastr, vereddy
Target Milestone: z4   
Target Release: 3.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-16 13:40:47 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:
Bug Depends On:    
Bug Blocks: 1809203    

Description Ashish Singh 2019-03-12 13:25:40 UTC
* Description of problem:

The ‘shrink.yml’ fails if the admin key isn’t present on the OSD node with message :
-------------
TASK [fail when admin key is not present] ****************************************************
Saturday 09 February 2019  04:32:55 -0500 (0:00:00.999)       0:00:09.228 *****
failed: [localhost] (item={'_ansible_parsed': True, u'stat': {u'exists': False}, '_ansible_item_result': True, '_ansible_no_log': False, '_ansible_delegated_vars': {'ansible_delegated_host': u'ceph-4', 'ansible_host': u'ceph-4'}, u'changed': False, 'failed': False, 'item': u'ceph-4', u'invocation': {u'module_args': {u'checksum_algorithm': u'sha1', u'get_checksum': True, u'follow': False, u'path': u'/etc/ceph/ceph.client.admin.keyring', u'get_md5': None, u'get_mime': True, u'get_attributes': True}}, 'failed_when_result': False, '_ansible_ignore_errors': None, '_ansible_item_label': u'ceph-4'}) => {"changed": false, "item": {"changed": false, "failed": false, "failed_when_result": false, "invocation": {"module_args": {"checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": null, "get_mime": true, "path": "/etc/ceph/ceph.client.admin.keyring"}}, "item": "ceph-4", "stat": {"exists": false}}, "msg": "The Ceph admin key is not present on the OSD node, please add it and remove it after the playbook is done."}
failed: [localhost] (item={'_ansible_parsed': True, u'stat': {u'exists': False}, '_ansible_item_result': True, '_ansible_no_log': False, '_ansible_delegated_vars': {'ansible_delegated_host': u'ceph-4', 'ansible_host': u'ceph-4'}, u'changed': False, 'failed': False, 'item': u'ceph-4', u'invocation': {u'module_args': {u'checksum_algorithm': u'sha1', u'get_checksum': True, u'follow': False, u'path': u'/etc/ceph/ceph.client.admin.keyring', u'get_md5': None, u'get_mime': True, u'get_attributes': True}}, 'failed_when_result': False, '_ansible_ignore_errors': None, '_ansible_item_label': u'ceph-4'}) => {"changed": false, "item": {"changed": false, "failed": false, "failed_when_result": false, "invocation": {"module_args": {"checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": null, "get_mime": true, "path": "/etc/ceph/ceph.client.admin.keyring"}}, "item": "ceph-4", "stat": {"exists": false}}, "msg": "The Ceph admin key is not present on the OSD node, please add it and remove it after the playbook is done."}
-------------

Before calling ‘shrink.yml’, mention to copy the admin keyring on the respective OSD node.


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

* How reproducible:
Always

* Steps to Reproduce:
NA

*Actual results:
NA

* Expected results:
NA

* Additional info:
NA

Comment 1 Giridhar Ramaraju 2019-08-05 13:10:01 UTC
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. 

Regards,
Giri

Comment 2 Giridhar Ramaraju 2019-08-05 13:11:10 UTC
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. 

Regards,
Giri

Comment 11 Vasishta 2020-09-30 05:27:40 UTC
Hi Karen,

1) I think we need to mention 'keyring' instead of keychain
2) We need to ask users to copy the keyring file present in monitor node to the OSD node in which user wants to shrink the daemon.

Feel free to let me know if I need to be more descriptive.

Regards,
Vasishta Shastry
QE, Ceph

Comment 14 Vasishta 2020-10-29 12:41:43 UTC
Hi Karen,

V3
Operations guide -

1) I checked preview link and there are no sections after 1.3.5 step 7 , (I think the formatting is quite abrupt now, may be because of a typo
2) In prerequisites we have mentioned 
* The admin keyring for the Ceph Monitor node.
it could be 
* The admin keyring copied to /etc/ceph/ on OSD node from the Ceph Monitor node.

The ". Copy the admin keyring from the Ceph Monitor node to the OSD." phrase needs to be before initiating shrink-osd playbook

v4 Operations Guide -

1) "The admin keyring on the Ceph Monitor node. " in prerequisites seems redundant, A monitor node would always contain the admin keyring
2) the step asking users to copy admin keyring from monitor node to OSD is missing (needs to be added before step 2 - 1.3.8)

Moving back to ASSIGNED state.
Please let me know if I need to elaborate any of the points mentioned above.

Regards,
Vasishta Shastry
QE, Ceph

Comment 15 Vasishta 2020-10-29 12:49:29 UTC
Also, 

Admin guide v4 and v3
1) The line - 
"The admin keyring for the Ceph Monitor node, if you are redeploying an existing Ceph OSD node."
can be tuned as 
"The admin keyring on the Ceph Monitor node, if you are redeploying an existing Ceph OSD node."
2) Step 6 needs to be before step 1
(Users needs to have admin keyring copied before executing shrink-osd.yml
 -----------------

Also pointing out again,
In all 4 sections that are being tracked here, (admin guide +operations guide)*2) we have added "presence of the admin keyring on monitor node" as a prerequisite. I think this is kind of redundant step.


Regards,
Vasishta Shastry
QE, Ceph

Comment 28 Vasishta 2020-11-20 12:01:17 UTC
Hi Karen,

Thanks a lot.
Moving BZ to VERIFIED state.

Regards,
Vasishta Shastry
QE, Ceph