From 6b95dc85baa0134e7741df0b041c50e3afe14210 Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Wed, 13 Jun 2018 13:32:09 +1000 Subject: [PATCH] Expand rendered image name to include sec and ms 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 --- packer/templates/basebuild.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packer/templates/basebuild.json b/packer/templates/basebuild.json index 426f290af..bcb6f0ae7 100644 --- a/packer/templates/basebuild.json +++ b/packer/templates/basebuild.json @@ -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", -- 2.16.6