]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
openstack: keep image private 751/head
authorRobin H. Johnson <robin.johnson@dreamhost.com>
Fri, 11 Dec 2015 20:50:11 +0000 (12:50 -0800)
committerLoic Dachary <ldachary@redhat.com>
Tue, 15 Dec 2015 11:21:38 +0000 (12:21 +0100)
Ensure a newly created image is private to this tenant by default,
regardless of whatever the openstack defaults are.

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
teuthology/openstack/__init__.py

index 4fcb8d77b65a053aa0d8e9ed2a04a9fcd512f9f1..68cebabcac513117a254f70ca520a1a1d9801227 100644 (file)
@@ -266,6 +266,7 @@ class OpenStack(object):
             disk_format = 'qcow2'
         misc.sh("glance image-create --property ownedby=teuthology " +
                 " --disk-format=" + disk_format + " --container-format=bare " +
+                " --visibility private" +
                 " --file " + image + " --name " + self.image_name(name))
 
     def image(self, os_type, os_version):