Commit Graph

15 Commits

Author SHA1 Message Date
Sam Bashton
092b29c4ba Allow resizing of Google Cloud persistent disks (#15077) 2017-06-05 20:19:57 +03:00
Paddy
69a8011c89 Fix fmt. 2017-05-23 14:47:46 -07:00
Paddy
4baea4e612 Merge branch 'master' into paddy_gcp_detach_deleted_disks 2017-05-23 14:45:27 -07:00
Paddy
9686408b7b Remove required env var, fix test names.
We no longer need to set an env var (yaaay!) and our test names use
camelCase not snake_case, though that confusion is understandable.
2017-05-23 14:28:06 -07:00
Thomas Poindessous
c886dadb4c Corrected test for generating disk from a snapshot URI from another project 2017-05-22 23:36:53 +02:00
Thomas Poindessous
1a729163ec Added a test acceptance for the new functionality.
GOOGLE_COMPUTE_DISK_SNAPSHOT_URI must be set to a valid snapshot's uri like one of the output of
gcloud compute snapshots list --uri

GOOGLE_COMPUTE_DISK_SNAPSHOT_URI should be replaced by a proper snapshot made by TF (#11690)
2017-05-22 22:51:31 +02:00
Paddy
127283a858 provider/google: detach disks before deleting them.
When a `google_compute_disk` is attached to a `google_compute_instance`,
deleting can be tricky. GCP doesn't allow disks that are attached to
instances to be deleted. Normally, this is fine; the instance depends on
the disk, so by the time the disk is deleted, the instance should
already be gone.

However, some reports have cropped up (#8667) that deleting disks is
failing because they're still attached to instances. Though this
shouldn't happen, it appears it can happen under some unknown
conditions.

This PR adds logic that will attempt to detach disks from any instances
they're attached to before deleting the disks, adding another safeguard
that should prevent this behaviour.
2017-05-18 17:28:16 -07:00
Dana Hoffman
5e04661a5a providers/google: Add support for encrypting a disk (#11167)
* providers/google: add support for encrypting a disk

* providers/google: Add docs for encrypting disks

* providers/google: CSEK small fixes: sensitive params and mismatched state files
2017-01-18 13:49:48 +00:00
Christoph Blecker
be6b7c95b4 Update Google TestAcc to use Debian 8 images 2016-08-18 19:31:45 -07:00
Bill Fumerola
ef0982895d provider/google: use non-deprecated image in acceptance tests, documentation 2016-03-26 09:55:28 -07:00
Paul Hinze
216111686d provider/google: Some more collision avoidance test tweaks 2016-01-05 12:26:44 -06:00
David Watson
56c5854e5b Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
Jeff Goldschrafe
69c09c1cb7 Configurable disk types for GCE
Supports configuring the disk type for Google Compute Engine disk
resources. Both `google_compute_disk` and `google_compute_instance`
disk types are supported.

Resolves #351.
2014-10-07 01:40:20 -04:00
Mitchell Hashimoto
51bfd6f6ef providers/google: tests passing, compiling 2014-09-16 17:17:09 -07:00
Mitchell Hashimoto
5f79e59ed1 providers/google: compute_disk 2014-08-25 16:23:28 -07:00