Get keyring content failed when ceph auth disabled

Bug #1817271 reported by Dou Rui Yuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-brick
Fix Released
Undecided
Dou Rui Yuan

Bug Description

when ceph auth disabled, the user and keyring will both be None in connection_properties, but _check_or_get_keyring_contents must return strings as file writelines required.

{u'secret_type': u'ceph', u'device_path': u'vdb', u'name': u'cinder-volumes/volume-8331a39a-548a-4d67-92cd-2edd06a7a2f6', u'encrypted': False, u'keyring': None, u'conf_file': u'/etc/ceph/ceph.conf', u'cluster_name': u'ceph', u'secret_uuid': None, u'qos_specs': None, u'auth_enabled': False, u'hosts': [u'192.168.113.2', u'192.168.113.3', u'192.168.113.27'], u'volume_id': u'8331a39a-548a-4d67-92cd-2edd06a7a2f6', u'discard': True, u'access_mode': u'rw', u'auth_username': None, u'ports': [u'6789', u'6789', u'6789']}

Dou Rui Yuan (rydou)
Changed in os-brick:
assignee: nobody → Dou Rui Yuan (rydou)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to os-brick (master)

Fix proposed to branch: master
Review: https://review.openstack.org/638608

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-brick (master)

Reviewed: https://review.openstack.org/638608
Committed: https://git.openstack.org/cgit/openstack/os-brick/commit/?id=a6dff156d70cd79e87c71bea53aa634311f22459
Submitter: Zuul
Branch: master

commit a6dff156d70cd79e87c71bea53aa634311f22459
Author: Rui Yuan Dou <email address hidden>
Date: Fri Feb 22 16:53:28 2019 +0800

    Fix get keyring content failed when ceph auth disabled

    When ceph auth diasbled, both 'user' and 'keyring' will be 'None',
    and the method _check_or_get_keyring_contents must return strings
    for ceph conf file writelines() generation.

    Change-Id: Ieafd40ace4f50c1a966c9097c5de270c68b0666b
    Closes-Bug: #1817271

Changed in os-brick:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-brick 2.8.0

This issue was fixed in the openstack/os-brick 2.8.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.