def tempest_mount_glance_images(self, remote, host): if OS_FAMILY == "centos": remote.check_stderr('chkconfig rpcbind on') remote.check_stderr('/etc/init.d/rpcbind restart') remote.check_stderr( 'mount %s:/var/lib/glance/images /var/lib/glance/images' % host) else: install_packages(remote, 'nfs-common portmap') remote.check_stderr( 'mount %s:/var/lib/glance/images /var/lib/glance/images' % host)
def tempest_share_glance_images(self, network): if OS_FAMILY == "centos": self.remote().check_stderr('chkconfig rpcbind on') self.remote().check_stderr('/etc/init.d/rpcbind restart') self.remote().check_stderr( 'echo "/var/lib/glance/images %s(rw,no_root_squash)" >> /etc/exports' % network) self.remote().check_stderr('/etc/init.d/nfs restart') else: install_packages(self.remote(), 'nfs-kernel-server nfs-common portmap') self.remote().check_stderr( 'echo "/var/lib/glance/images %s(rw,no_root_squash)" >> /etc/exports' % network) self.remote().check_stderr('/etc/init.d/nfs-kernel-server restart')