Expand rendered image name to include sec and ms 86/10986/3
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 5 Jun 2018 02:14:58 +0000 (12:14 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 6 Jun 2018 23:34:03 +0000 (09:34 +1000)
commitc0dc5f030e259b70533a4d626eae5ab176fdd560
tree728fdb444d1610a7cd97ba50677f83334b3d1e9f
parent54119a6668c212276639e556ce36ba54c0960f2b
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 clashes in the env.

The initial change Ic1853ba7566def397b8bce389e2779fe3020c7ce was
reverted, since the change had issues bringing up an instance on the
OpenStack cloud provider. This was because the default
`instance_name` value is taken as the `image_name`, when the
instance_name is unset, the instance_name does not allow FQDN format
hostname ending with a period+number.

The workaround is to use separate `instance_name` parameter in your
builder which does not end with period+number.

Tested the change to work:
"ZZCI - CentOS 7 - docker - 20180605-015801.089"

JIRA: RELENG-971
Change-Id: Ia195bd99d55f23b4f39acf590520637e54fc006a
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
templates/builder-aws.json
templates/builder.json
templates/docker.json