From: Anil Belur Date: Wed, 13 Jun 2018 03:32:09 +0000 (+1000) Subject: Expand rendered image name to include sec and ms X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=6b95dc85baa0134e7741df0b041c50e3afe14210;p=ci-management.git 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 --- 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",