HP3PAR create volume snapshot fails when hp3par_snapshot_ parameters used

Bug #1461640 reported by Michael Denny
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
Kurt Martin

Bug Description

Create snapshot fails when HP3PAR hp3par_snapshot_retention or hp3par_snapshot_expiration parameters set in cinder.conf

2015-06-03 17:35:26.320 19197 DEBUG cinder.openstack.common.lockutils [req-99d76ae0-0587-4439-8b73-72d5a934fb9a a6681034c8dc4f25a74ebca7a4700dd2 42f4b6400efe4e24b747eab63bcf23bd - - -] Released file lock "3par" at /tmp/tmpJwAot8/cinder-3par for method "create_snapshot"... inner /opt/stack/venvs/openstack/local/lib/python2.7/site-packages/cinder/openstack/common/lockutils.py:239
2015-06-03 17:35:26.377 19197 ERROR oslo_messaging.rpc.dispatcher [req-99d76ae0-0587-4439-8b73-72d5a934fb9a a6681034c8dc4f25a74ebca7a4700dd2 42f4b6400efe4e24b747eab63bcf23bd - - -] Exception during message handling: Bad request (HTTP 400) 39 - invalid input: wrong type for value - retentionHours
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher executor_callback))
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher executor_callback)
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher return f(*args, **kwargs)
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher return f(*args, **kwargs)
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/cinder/volume/manager.py", line 536, in create_snapshot
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher {'status': 'error'})
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/cinder/openstack/common/excutils.py", line 82, in __exit__
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/cinder/volume/manager.py", line 527, in create_snapshot
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher model_update = self.driver.create_snapshot(snapshot_ref)
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher return f(*args, **kwargs)
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/cinder/openstack/common/lockutils.py", line 233, in inner
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher retval = f(*args, **kwargs)
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/cinder/volume/drivers/san/hp/hp_3par_iscsi.py", line 234, in create_snapshot
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher self.common.create_snapshot(snapshot)
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/cinder/volume/drivers/san/hp/hp_3par_common.py", line 1293, in create_snapshot
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher self.client.createSnapshot(snap_name, vol_name, optional)
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/hp3parclient/client.py", line 1144, in createSnapshot
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher response, body = self.http.post('/volumes/%s' % copyOfName, body=info)
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/hp3parclient/http.py", line 286, in post
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher return self._cs_request(url, 'POST', **kwargs)
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/hp3parclient/http.py", line 231, in _cs_request
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher **kwargs)
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/hp3parclient/http.py", line 207, in _time_request
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher resp, body = self.request(url, method, **kwargs)
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/hp3parclient/http.py", line 201, in request
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher raise exceptions.from_response(resp, body)
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher HTTPBadRequest: Bad request (HTTP 400) 39 - invalid input: wrong type for value - retentionHours
2015-06-03 17:35:26.377 19197 TRACE oslo_messaging.rpc.dispatcher

[3pariscsi]
#iscsi_ip_address = ""
volume_driver = cinder.volume.drivers.san.hp.hp_3par_iscsi.HP3PARISCSIDriver
hp3par_cpg = doe_demo
hp3par_snap_cpg = doe_demo
san_password = 3pardata
san_login = 3paradm
san_ip =
hp3par_debug = False
hp3par_password = 3pardata
hp3par_username = 3paradm
volume_backend_name=3pariscsi
hp3par_api_url = https://:8080/api/v1
hp3par_iscsi_chap_enabled=true
hp3par_iscsi_ips = 10.0.0.1, 10.0.0.2
hp3par_snapshot_retention = 48
hp3par_snapshot_expiration = 72

Tags: 3par
Changed in cinder:
status: New → Confirmed
assignee: nobody → Kurt Martin (kurt-f-martin)
tags: added: 3par
Changed in cinder:
status: Confirmed → In Progress
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/189381

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

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

commit 891722fe371b3c518b9dd04c21672202088d49a8
Author: Kurt Martin <email address hidden>
Date: Mon Jun 8 10:26:20 2015 -0700

    Fixes 3PAR snapshot failure with optional params

    Create snapshot fails when HP3PAR hp3par_snapshot_retention and/or
    hp3par_snapshot_expiration parameters were set in cinder.conf. The
    params were being sent to the backend as strings instead on integers.

    Change-Id: I24d0bc133c48b47a27f5c112e9cd924dd0fa3bcc
    Closes-bug: #1461640

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