Skip to content

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

Closed
allardhoeve wants to merge 5 commits intoapache:trunkfrom
ByteInternet:create-volume-from-snapshot
Closed

[LIBCLOUD-672] [LIBCLOUD-673] Create volume from snapshot on EC2 and OS#467
allardhoeve wants to merge 5 commits intoapache:trunkfrom
ByteInternet:create-volume-from-snapshot

Conversation

@allardhoeve
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Kami commented Feb 28, 2015

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

Comment thread libcloud/compute/base.py
Copy link
Copy Markdown
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
Copy Markdown
Member

Kami commented Feb 28, 2015

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

@allardhoeve
Copy link
Copy Markdown
Contributor Author

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

@Kami
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Documented.

@allardhoeve
Copy link
Copy Markdown
Contributor Author

@Kami, done

@asfgit asfgit closed this in 659d64c Mar 4, 2015
@Kami
Copy link
Copy Markdown
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.

2 participants