3PAR: Extend a volume based on a snapshot fails

Bug #1285906 reported by Ramy Asselin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Low
Ramy Asselin

Bug Description

1. Create a volume
2. Create a snapshot of the volume
3. Create a volume based on the snapshot
4. Extend the volume.
5. Horizon shows the volume with status = Error Extending

2014-02-27 15:27:55.028 ERROR cinder.volume.manager [req-bb0716d0-5d3c-430a-83fc-df0e2d85444c dd968af1de0d457b8d43217a821edf1a 63be499ec75e48d597b83679112d32bd] volume 7f440946-8b67-4b0a-85de-9b94add2d258: Error trying to extend volume
2014-02-27 15:27:55.028 TRACE cinder.volume.manager Traceback (most recent call last):
2014-02-27 15:27:55.028 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/manager.py", line 1114, in extend_volume
2014-02-27 15:27:55.028 TRACE cinder.volume.manager volume_id)
2014-02-27 15:27:55.028 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/openstack/common/lockutils.py", line 233, in inner
2014-02-27 15:27:55.028 TRACE cinder.volume.manager retval = f(*args, **kwargs)
2014-02-27 15:27:55.028 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/san/hp/hp_3par_iscsi.py", line 437, in extend_volume
2014-02-27 15:27:55.028 TRACE cinder.volume.manager try:
2014-02-27 15:27:55.028 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/san/hp/hp_3par_common.py", line 251, in extend_volume
2014-02-27 15:27:55.028 TRACE cinder.volume.manager self.client.growVolume(volume_name, growth_size)
2014-02-27 15:27:55.028 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/openstack/common/excutils.py", line 68, in __exit__
2014-02-27 15:27:55.028 TRACE cinder.volume.manager six.reraise(self.type_, self.value, self.tb)
2014-02-27 15:27:55.028 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/san/hp/hp_3par_common.py", line 248, in extend_volume
2014-02-27 15:27:55.028 TRACE cinder.volume.manager LOG.debug("Extending Volume %s from %s to %s, by %s GB." %
2014-02-27 15:27:55.028 TRACE cinder.volume.manager File "build/bdist.linux-x86_64/egg/hp3parclient/client.py", line 452, in growVolume
2014-02-27 15:27:55.028 TRACE cinder.volume.manager response, body = self.http.put('/volumes/%s' % name, body=info)
2014-02-27 15:27:55.028 TRACE cinder.volume.manager File "build/bdist.linux-x86_64/egg/hp3parclient/http.py", line 306, in put
2014-02-27 15:27:55.028 TRACE cinder.volume.manager return self._cs_request(url, 'PUT', **kwargs)
2014-02-27 15:27:55.028 TRACE cinder.volume.manager File "build/bdist.linux-x86_64/egg/hp3parclient/http.py", line 239, in _cs_request
2014-02-27 15:27:55.028 TRACE cinder.volume.manager resp, body = self._do_reauth(url, method, ex, **kwargs)
2014-02-27 15:27:55.028 TRACE cinder.volume.manager File "build/bdist.linux-x86_64/egg/hp3parclient/http.py", line 216, in _do_reauth
2014-02-27 15:27:55.028 TRACE cinder.volume.manager resp, body = self._time_request(self.api_url + url, method, **kwargs)
2014-02-27 15:27:55.028 TRACE cinder.volume.manager File "build/bdist.linux-x86_64/egg/hp3parclient/http.py", line 205, in _time_request
2014-02-27 15:27:55.028 TRACE cinder.volume.manager resp, body = self.request(url, method, **kwargs)
2014-02-27 15:27:55.028 TRACE cinder.volume.manager File "build/bdist.linux-x86_64/egg/hp3parclient/http.py", line 199, in request
2014-02-27 15:27:55.028 TRACE cinder.volume.manager raise exceptions.from_response(resp, body)
2014-02-27 15:27:55.028 TRACE cinder.volume.manager HTTPForbidden: Forbidden (HTTP 403) 150 - invalid operation: Cannot grow this type of volume
2014-02-27 15:27:55.028 TRACE cinder.volume.manager

Tags: 3par
Changed in cinder:
assignee: nobody → Ramy Asselin (ramy-asselin)
Changed in cinder:
status: New → 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/77966

tags: added: 3par
Changed in cinder:
milestone: none → icehouse-rc1
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

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

commit fb25917fe17fc80c1ae704759c8f6487ac2e9a22
Author: Ramy Asselin <email address hidden>
Date: Tue Mar 4 11:06:59 2014 -0800

    3PAR: Support extend volume based on snapshot

    If extend volume fails with an HTTP Forbidden error 150,
    convert the volume to a base volume and retry extending.

    Change-Id: Id407058e954b2630f4a7f31c6149361301b502f2
    Closes-Bug: #1285906

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: icehouse-rc1 → 2014.1
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.