書名: 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:
推薦閱讀
- iOS Game Programming Cookbook
- Java應用與實戰
- React Native Cookbook
- Hadoop+Spark大數據分析實戰
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第3版)
- Apache Mesos Essentials
- Spring Boot企業級項目開發實戰
- SQL經典實例(第2版)
- Learning R for Geospatial Analysis
- 區塊鏈技術進階與實戰(第2版)
- Unity 3D/2D移動開發實戰教程
- SpringBoot從零開始學(視頻教學版)
- Python第三方庫開發應用實戰
- Scratch 3.0少兒積木式編程(6~10歲)
- Python High Performance(Second Edition)