Expand rendered image name to include sec and ms 18/13018/1
authorAnil Belur <[email protected]>
Wed, 13 Jun 2018 03:32:09 +0000 (13:32 +1000)
committerAnil Belur <[email protected]>
Wed, 13 Jun 2018 07:29:48 +0000 (17:29 +1000)
Expand rendered image name to include seconds and milliseconds.
This reduces the probability of image name collisions on the cloud
from 1/60 to 1/60000.

Fixed upstream in common-packer [1.].

[1.] https://gerrit.linuxfoundation.org/infra/#/c/10986/

Change-Id: If006aaafa5aaf427ef034fbca479bb4b71194109
Signed-off-by: Anil Belur <[email protected]>
packer/templates/basebuild.json

index 426f290..bcb6f0a 100644 (file)
@@ -19,7 +19,8 @@
       "password": "{{user `stack_pass`}}",
       "region": "ca-ymq-1",
       "ssh_username": "{{user `cloud_user`}}",
-      "image_name": "{{user `distro`}} - basebuild - {{isotime \"20060102-1504\"}}",
+      "image_name": "{{user `distro`}} - basebuild - {{isotime \"20060102-150405.000\"}}",
+      "instance_name": "{{user `distro`}}-basebuild-{{uuid}}",
       "source_image_name": "{{user `base_image`}}",
       "flavor": "v1-standard-1",
       "availability_zone": "ca-ymq-2",