Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LIBCLOUD-672] [LIBCLOUD-673] Create volume from snapshot on EC2 and OS #467

Closed

Conversation

allardhoeve
Copy link
Contributor

Both platforms support creating a volume from snapshots but do not implement it.

Please see individual commit messages for reasoning on why the changes are as they are.

Allard Hoeve added 3 commits February 24, 2015 13:47
The base driver defines a signature that is not used by any of the drivers implementing `create_volume`.

1. `gandi` does not use the snapshot parameter.
1. `gce` uses the parameter, but accepts either a string or an object or None.
1. `ibm` does not use the snapshot parameter.
1. `opennebula` does not use the snapshot parameter.
1. `profitbricks` breaks the contract entirely.

In this PR both `ec2` and `openstack` implement the signature like this. This matches `gce`, so all drivers using the snapshot functionality act like this new signature.
@allardhoeve
Copy link
Contributor Author

@Kami, what do you think?

@allardhoeve allardhoeve changed the title Create volume from snapshot on EC2 and OS [LIBCLOUD-672] [LIBCLOUD-673] Create volume from snapshot on EC2 and OS Feb 25, 2015
@Kami
Copy link
Member

Kami commented Feb 28, 2015

Sorry for the delay, very busy with day job recently, will look into it...

:param snapshot: Name of snapshot from which to create the new
volume. (optional)
:type snapshot: ``str``
:param snapshot: Snapshot from which to create the new
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change - can you please document it in docs/upgrade_notes.rst?

@Kami
Copy link
Member

Kami commented Feb 28, 2015

Besides the upgrade notes entry, the change looks good to me.

@allardhoeve
Copy link
Contributor Author

I notice there have been no upgrade notes since 1.16.0? So no notes for 1.17?

@Kami
Copy link
Member

Kami commented Feb 28, 2015

Yeah, there were no special notes for 0.17. Just add a section for "in development" now.

@allardhoeve
Copy link
Contributor Author

Will document, but this is actually not a breaking change:

The base driver defines a signature that is not used by any of the drivers implementing create_volume.

  1. gandi does not use the snapshot parameter.
  2. gce uses the parameter, but accepts either a string or an object or None, so this breaks nothing.
  3. ibm does not use the snapshot parameter.
  4. opennebula does not use the snapshot parameter.
  5. profitbricks breaks the contract entirely.

In this PR both ec2 and openstack implement the signature like this. This matches gce partly, so all drivers using the snapshot functionality implement it using this signature.

@allardhoeve
Copy link
Contributor Author

Documented.

@allardhoeve
Copy link
Contributor Author

@Kami, done

@asfgit asfgit closed this in 659d64c Mar 4, 2015
@Kami
Copy link
Member

Kami commented Mar 4, 2015

Merged, thanks.

MatthiasWiesnerCC pushed a commit to cloudControl/libcloud that referenced this pull request Mar 17, 2015
Closes apache#467

Signed-off-by: Tomaz Muraus <tomaz@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants