cinder-manage volume delete doesn't works

Bug #1398319 reported by Mehdi Abaakouk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Mehdi Abaakouk

Bug Description

Hi,

cinder-manage volume delete doesn't works

VolumeCommands.rpc_client is a property, so when the oslo.config arg parser introspect the class, it launch the method.
But the method need oslo.config.cfg.CONF initialized, but this is done after the oslo.config arg parser introspection.

Cheers,

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Changed in cinder:
assignee: nobody → Mehdi Abaakouk (sileht)
status: New → In Progress
Mehdi Abaakouk (sileht)
no longer affects: oslo.messaging
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/138287
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=d496b7879517c1891a8ea260cb205c4a4694e247
Submitter: Jenkins
Branch: master

commit d496b7879517c1891a8ea260cb205c4a4694e247
Author: Mehdi Abaakouk <email address hidden>
Date: Tue Dec 2 10:04:54 2014 +0100

    Fix rpc initialization of cinder-manager volume

    VolumeCommands.rpc_client is a property, so when the oslo.config argparser
    introspect the class VolumeCommands at module loading time, it launch the
    method. But the method depends on a initialized oslo.config.cfg.CONF object,
    but this one is not yet initialized.

    So don't use python property, to initialize the rpc_client correctly.

    No test because of bug: #1398401

    Change-Id: I2c2f0be6e7a9d0866f063d98e1f8213f62fb9f92
    Closes-bug: #1398319

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → kilo-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: kilo-1 → 2015.1.0
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.