projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "systest jenkins pipeline"
[osm/devops.git]
/
jenkins
/
VCA
/
update-lxd-image.sh
diff --git
a/jenkins/VCA/update-lxd-image.sh
b/jenkins/VCA/update-lxd-image.sh
old mode 100644
(file)
new mode 100755
(executable)
index
ce14b1d
..
182a33c
--- a/
jenkins/VCA/update-lxd-image.sh
+++ b/
jenkins/VCA/update-lxd-image.sh
@@
-28,7
+28,9
@@
function cache() {
lxc delete $container -f || true
lxc launch ubuntu:$series $container
lxc delete $container -f || true
lxc launch ubuntu:$series $container
- sleep 5 # wait for network
+
+ # Wait for the container to get an IP address
+ lxc exec $container -- bash -c "for i in {1..60}; do sleep 1; ping -c1 10.44.127.1 &> /dev/null && break; done"
lxc exec $container -- apt-get update -y
lxc exec $container -- apt-get upgrade -y
lxc exec $container -- apt-get update -y
lxc exec $container -- apt-get upgrade -y