Rbd connector fails if cluster_name not set

Bug #1861960 reported by Mark Kirkwood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-brick
New
Low
Unassigned

Bug Description

The rbd connector accepts a cluster_name parameter and then uses it like:

str(cluster_name)

This results in it trying to use a non existent key file:

None.client.<name>.keyring

instead of ceph.client.<name>.keyring, and thus a 'connect to cluster failed' error. This is simply solved by amending os_brick/initiator/connectors/rbd.py (see attached)

Tags: rbd
Revision history for this message
Mark Kirkwood (mark-kirkwood) wrote :
description: updated
Revision history for this message
Mark Kirkwood (mark-kirkwood) wrote :

We are running into this issue due to using quite an old version of Cinder (Mitaka), which does not set 'cluster_name" in its connection dict. We are looking at solving this by patching Cinder to include this (Cinder upgrade is TODO).

Having said that - defaulting to a cluster name of 'None' is *never* going to be correct, so the os0brick code behaviour is undesirable.

Changed in os-brick:
importance: Undecided → Wishlist
importance: Wishlist → Low
tags: added: rbd
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.