Bug 1261441 - ceph-deploy forgetkeys doesn't remove rgw keyring file
Summary: ceph-deploy forgetkeys doesn't remove rgw keyring file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Installer
Version: 1.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 1.3.2
Assignee: Travis Rhoden
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-09 10:44 UTC by Harish NV Rao
Modified: 2022-02-21 18:35 UTC (History)
8 users (show)

Fixed In Version: RHEL: ceph-deploy-1.5.27.4-1.el7cp Ubuntu: ceph-deploy_1.5.27.4-3redhat1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-29 14:43:29 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 12999 0 None None None Never
Red Hat Issue Tracker RHCEPH-3482 0 None None None 2022-02-21 18:35:16 UTC
Red Hat Product Errata RHBA-2016:0313 0 normal SHIPPED_LIVE Red Hat Ceph Storage 1.3.2 bug fix and enhancement update 2016-02-29 19:37:43 UTC

Description Harish NV Rao 2015-09-09 10:44:07 UTC
Description of problem:

ceph-deploy forgetkeys command doesn't remove rgw keyring file.

[cephuser@Admin ceph-config]$ ceph-deploy forgetkeys
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/cephuser/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (1.5.25): /usr/bin/ceph-deploy forgetkeys
[cephuser@Admin ceph-config]$ ll
total 140
-rwxrwxrwx. 1 cephuser cephuser     71 Sep  4 07:50 ceph.bootstrap-rgw.keyring
-rwxrwxrwx. 1 cephuser cephuser    603 Sep  4 07:36 ceph.conf
-rwxrwxrwx. 1 cephuser cephuser 128879 Sep  4 13:17 ceph.log

Version-Release number of selected component (if applicable): 
ceph: 0.94.2
ceph-deploy: 1.5.25


How reproducible:always


Steps to Reproduce:
1. run ceph-deploy forgetkeys 

Actual results:
ceph.bootstrap-rgw.keyring is not removed

Expected results:
ceph.bootstrap-rgw.keyring is removed

Additional info:

Comment 2 Travis Rhoden 2015-09-09 16:16:29 UTC
Easy fix.  upstream review at https://github.com/ceph/ceph-deploy/pull/352

Comment 4 Hemanth Kumar 2016-02-02 08:11:36 UTC
rgw keyring is getting removed now... Moving to verified state.

ubuntu@magna012:~/install/ubuntu/u130/ceph-config$ ls
ceph.bootstrap-osd.keyring  ceph.client.admin.keyring  cephdeploy.conf  ceph.mon.keyring  ceph.bootstrap-mds.keyring   ceph.bootstrap-rgw.keyring  ceph.conf    ceph.log         

ubuntu@magna012:~/install/ubuntu/u130/ceph-config$ ceph-deploy forgetkeys
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/ubuntu/install/ubuntu/u130/ceph-config/cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (1.5.27.4): /usr/bin/ceph-deploy forgetkeys
[ceph_deploy.cli][INFO  ] ceph-deploy options:
[ceph_deploy.cli][INFO  ]  username                      : None
[ceph_deploy.cli][INFO  ]  verbose                       : False
[ceph_deploy.cli][INFO  ]  overwrite_conf                : False
[ceph_deploy.cli][INFO  ]  quiet                         : False
[ceph_deploy.cli][INFO  ]  cd_conf                       : <ceph_deploy.conf.cephdeploy.Conf instance at 0x7f06220ac758>
[ceph_deploy.cli][INFO  ]  cluster                       : ceph
[ceph_deploy.cli][INFO  ]  func                          : <function forgetkeys at 0x7f062299ff50>
[ceph_deploy.cli][INFO  ]  ceph_conf                     : None
[ceph_deploy.cli][INFO  ]  default_release               : False

ubuntu@magna012:~/install/ubuntu/u130/ceph-config$ ls
ceph.conf  cephdeploy.conf  ceph.log

ubuntu@magna012:~/install/ubuntu/u130/ceph-config$

Comment 6 errata-xmlrpc 2016-02-29 14:43:29 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-2016:0313


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