commit d2170a9e13047ea9a05ed78c4e6da61a5dfc46e2
Author: Patrick East <email address hidden>
Date: Fri Sep 11 14:12:03 2015 -0700
Fix Pure get pgroup volume snapshot name
When creating a volume from a consistency group snapshot we have to go
look up the volume level snapshot from the group. Previously we could
just directly get to the cgsnapshot model from the snapshot. After we
switched to using the snapshot objects however we cannot do that (at
least not until we have cgsnapshot objects too).
As an interim solution we did a query to the REST API on the array to
just list all of the snapshots. Unfortunately that doesn’t work on all
versions of the Purity REST API. To have a more usable solution we need
to do a db lookup to get the pgsnapshot.
It’s not ideal, and will be removed ASAP, but for now we need to at
least not regress in functionality.
Reviewed: https:/ /review. openstack. org/222788 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=d2170a9e130 47ea9a05ed78c4e 6da61a5dfc46e2
Committed: https:/
Submitter: Jenkins
Branch: master
commit d2170a9e13047ea 9a05ed78c4e6da6 1a5dfc46e2
Author: Patrick East <email address hidden>
Date: Fri Sep 11 14:12:03 2015 -0700
Fix Pure get pgroup volume snapshot name
When creating a volume from a consistency group snapshot we have to go
look up the volume level snapshot from the group. Previously we could
just directly get to the cgsnapshot model from the snapshot. After we
switched to using the snapshot objects however we cannot do that (at
least not until we have cgsnapshot objects too).
As an interim solution we did a query to the REST API on the array to
just list all of the snapshots. Unfortunately that doesn’t work on all
versions of the Purity REST API. To have a more usable solution we need
to do a db lookup to get the pgsnapshot.
It’s not ideal, and will be removed ASAP, but for now we need to at
least not regress in functionality.
Change-Id: I73a4ad5883bf33 ce282b5a49aa8ac ba66ffcb84f
Closes-Bug: #1494934