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
Fix proposed to branch: master /review. openstack. org/189381
Review: https:/