X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=apex%2Fundercloud%2Fundercloud.py;h=013570d3b9004bd7ac144015bd28aab5d7ee535f;hb=f27da77b87837e025907f689890b413c8f183c59;hp=abbe3ffe2d2d480e2ab1f7f69f9030fd59678e2c;hpb=a9051056309f8a8b51b4533d67525efc790587b4;p=apex.git diff --git a/apex/undercloud/undercloud.py b/apex/undercloud/undercloud.py index abbe3ffe..013570d3 100644 --- a/apex/undercloud/undercloud.py +++ b/apex/undercloud/undercloud.py @@ -150,7 +150,8 @@ class Undercloud: if os.path.exists(dest_img): os.remove(dest_img) shutil.copyfile(src_img, dest_img) - + shutil.chown(dest_img, user='qemu', group='qemu') + os.chmod(dest_img, 0o0744) # TODO(trozet):check if resize needed right now size is 50gb # there is a lib called vminspect which has some dependencies and is # not yet available in pip. Consider switching to this lib later.