- OpenStack Cloud Computing Cookbook(Third Edition)
- Kevin Jackson Cody Bunch Egle Sigler
- 218字
- 2021-07-16 20:39:16
Viewing shared images
We can view what images have been shared for a particular tenant when someone has used the member-create
option. This allows us to manage and control which users have what type of access to images in our OpenStack environment.
Getting ready
To begin with, ensure that you are logged in to our Ubuntu client where we can run the glance
tool. This can be installed using the following command:
sudo apt-get update sudo apt-get install python-glanceclient
Ensure that you have your environment variable set up correctly with our admin
user and password, as created in the previous chapter:
export OS_TENANT_NAME=cookbook export OS_USERNAME=admin export OS_PASSWORD=openstack export OS_AUTH_URL=https://192.168.100.200:5000/v2.0/ export OS_NO_CACHE=1 export OS_KEY=/vagrant/cakey.pem export OS_CACERT=/vagrant/ca.pem
How to do it...
Carry out the following steps to view the images that have been shared for a particular tenant:
- We first get the tenant ID of the tenant we want to view. We do this as follows:
keystone tenant-list
- We can now list the images that have been shared with that tenant ID as follows:
glance member-list --tenant-id \ 45c787efeaec42aa9cab522711bf5f4d
This produces the following output:
推薦閱讀
- Fundamentals of Linux
- 編程卓越之道(卷3):軟件工程化
- Java程序設(shè)計(jì)與計(jì)算思維
- 零基礎(chǔ)學(xué)Java程序設(shè)計(jì)
- Learning Apache Mahout Classification
- 零基礎(chǔ)入門學(xué)習(xí)Python
- 移動(dòng)界面(Web/App)Photoshop UI設(shè)計(jì)十全大補(bǔ)
- .NET 3.5編程
- Unity Character Animation with Mecanim
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)(第二版)
- Modernizing Legacy Applications in PHP
- Learning C++ by Creating Games with UE4
- Java RESTful Web Service實(shí)戰(zhàn)
- Android初級(jí)應(yīng)用開(kāi)發(fā)
- JavaScript Mobile Application Development