packer-cn/builder/triton
stack72 450a233303 builder/triton: Wait for ImageCreation State
A bug was reported to Joyent, that sometimes packer UI reports that an image was created but it wasn't actually available in Triton for use. We believe that there was a bug uploading that image to Manta but that the metadata of the image was already populated and thus packer was reporting success as it was just checking for the metadata presence

This PR changes Packer to wait for the state of the image to be `active` to make sure that it has fully uploaded and is ready for use

```
==> triton: Stopping source machine (61647c3c-f2bf-4e30-b4bc-f076d3b01522)...
==> triton: Waiting for source machine to stop (61647c3c-f2bf-4e30-b4bc-f076d3b01522)...
==> triton: Creating image from source machine...
==> triton: Waiting for image to become available...
==> triton: Deleting source machine...
==> triton: Waiting for source machine to be deleted...
Build 'triton' finished.

==> Builds finished. The artifacts of successful builds are:
--> triton: Image was created: c2537582-34c7-42ea-bd11-b6ed499d5831
```
2017-11-08 16:38:04 +02:00
..
access_config.go Bump Joyent/triton-go to modern version of the SDK 2017-10-31 18:08:53 +02:00
access_config_test.go builder/triton: Better AccessConfig tests 2017-04-26 14:08:29 -07:00
artifact.go builder: add Triton builder 2016-12-24 10:25:31 +01:00
builder.go builder/triton: Switch to joyent/triton-go library 2017-04-26 14:02:03 -07:00
config.go move packer to hashicorp 2017-04-04 13:39:01 -07:00
config_test.go builder/triton: Better AccessConfig tests 2017-04-26 14:08:29 -07:00
driver.go builder/triton: Add a data source for source_machine_image 2017-11-02 16:10:16 +02:00
driver_mock.go builder/triton: Add a data source for source_machine_image 2017-11-02 16:10:16 +02:00
driver_triton.go builder/triton: Wait for ImageCreation State 2017-11-08 16:38:04 +02:00
source_machine_config.go builder/triton: Add a data source for source_machine_image 2017-11-02 16:10:16 +02:00
source_machine_config_test.go builder/triton: Add a data source for source_machine_image 2017-11-02 16:10:16 +02:00
ssh.go update ssh client usage for new crypto/ssh version 2017-05-18 12:01:44 -07:00
step_create_image_from_machine.go move packer to hashicorp 2017-04-04 13:39:01 -07:00
step_create_image_from_machine_test.go builder: add Triton builder 2016-12-24 10:25:31 +01:00
step_create_source_machine.go builder/triton: Add a data source for source_machine_image 2017-11-02 16:10:16 +02:00
step_create_source_machine_test.go builder: add Triton builder 2016-12-24 10:25:31 +01:00
step_delete_machine.go move packer to hashicorp 2017-04-04 13:39:01 -07:00
step_delete_machine_test.go builder: add Triton builder 2016-12-24 10:25:31 +01:00
step_stop_machine.go move packer to hashicorp 2017-04-04 13:39:01 -07:00
step_stop_machine_test.go builder: add Triton builder 2016-12-24 10:25:31 +01:00
step_test.go move packer to hashicorp 2017-04-04 13:39:01 -07:00
step_wait_for_stop_to_not_fail.go move packer to hashicorp 2017-04-04 13:39:01 -07:00
target_image_config.go move packer to hashicorp 2017-04-04 13:39:01 -07:00
target_image_config_test.go builder: add Triton builder 2016-12-24 10:25:31 +01:00