Hi All,
If I set *max_attempts = 1* in /etc/cinder/cinder.conf, then the volume
creation via 3rd party driver is success.
However, this setting does not work for volume deletion.
The volume gets deleted at openstack but never executes the driver code.
I did above changes based on the error stack trace.
*/opt/stack/cinder/cinder/scheduler/filter_scheduler.py
- _populate_retry*
However, i am not sure if this is a bug or an issue of missing
configuration.
Regards,
Amit
*CloudByte Inc.* http://www.cloudbyte.com/
On Tue, Sep 16, 2014 at 1:34 PM, Amit Das amit@cloudbyte.com wrote:
Hi All,
While trying to create a volume using my cinder driver (on devstack), i
get below issue w.r.t num_attempts.
Am i missing any configuration here ?
^[[01;31m2014-09-16 13:20:37.837 TRACE oslo.messaging.rpc.dispatcher
^[[01;35m^[[00m File
/opt/stack/cinder/cinder/scheduler/filter_scheduler.py, line 271, in
_get_weighted_candidates
^[[01;31m2014-09-16 13:20:37.837 TRACE oslo.messaging.rpc.dispatcher
^[[01;35m^[[00mself._populate_retry(filter_properties,
resource_properties)
^[[01;31m2014-09-16 13:20:37.837 TRACE oslo.messaging.rpc.dispatcher
^[[01;35m^[[00m File
/opt/stack/cinder/cinder/scheduler/filter_scheduler.py, line 232, in
_populate_retry
^[[01;31m2014-09-16 13:20:37.837 TRACE oslo.messaging.rpc.dispatcher
^[[01;35m^[[00mretry['num_attempts'] += 1
^[[01;31m2014-09-16 13:20:37.837 TRACE oslo.messaging.rpc.dispatcher
^[[01;35m^[[00mKeyError: 'num_attempts'
^[[01;31m2014-09-16 13:20:37.837 TRACE oslo.messaging.rpc.dispatcher
^[[01;35m^[[00m
2014-09-16 13:20:37.841 ^[[01;31mERROR oslo.messaging._drivers.common
[^[[01;36mreq-86b97f06-3f32-4107-8f41-e22b9538e73f
^[[00;36m41b264d0e8064e51a8e2e5ab78813c1a
db2eb368b9ab4c8b93bb8f765ca55244^[[01;31m] ^[[01;35m^[[01;31mReturning
exception 'num_attempts' to caller^[[00m
stack trace - http://paste.openstack.org/show/112074/
cinder.conf - http://paste.openstack.org/show/112075/
Regards,
Amit
*CloudByte Inc.* http://www.cloudbyte.com/
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev