diff options
author | Tim Rozet <trozet@redhat.com> | 2017-02-08 22:02:58 -0500 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2017-02-08 22:02:58 -0500 |
commit | ed5bdce2b979c9defc47a0fbbde5494c47421122 (patch) | |
tree | 277a22f12d439bfdb55731188d349834787500fe /jjb | |
parent | 7570ac4c66d171848d38dcb7d18ef1675a81b2c8 (diff) |
Apex: More fixes to csit snapshot create
Change-Id: I210e5148c8058488edab6f26ece42b011e0e618d
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/apex/apex-snapshot-create.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jjb/apex/apex-snapshot-create.sh b/jjb/apex/apex-snapshot-create.sh index 4647e0670..f2e61f22d 100644 --- a/jjb/apex/apex-snapshot-create.sh +++ b/jjb/apex/apex-snapshot-create.sh @@ -63,10 +63,11 @@ for node in $nodes; do fi done +pushd ${tmp_dir} > /dev/null echo "Gathering virsh definitions" # copy qcow2s, virsh definitions for node in $nodes; do - cp -f /var/lib/libvirt/images/${node}.qcow2 ./ + sudo cp -f /var/lib/libvirt/images/${node}.qcow2 ./ sudo virsh dumpxml ${node} > ${node}.xml done @@ -79,7 +80,7 @@ done DATE=`date +%Y-%m-%d` tar czf ../apex-csit-snap-${DATE}.tar.gz . popd > /dev/null -rm -rf ./.tmp +sudo rm -rf ${tmp_dir} echo "Snapshot saved as apex-csit-snap-${DATE}.tar.gz" # update opnfv properties file |