how swift to be the backend of glance to store image

asked 2020-08-21 02:35:17 -0600

Darroncy gravatar image

Dear masters,

Recently I dig into swift and glance. 2 questions puzzled me here: 1) I found there are 2 kinds of default project in Openstack: admin and services. I upload one image which owner is admin. I configure it as container_format: bare. As u know the image will be located in /var/lib/glance/node instead of /var/lib/glance/images that I have configured Swift as the backend of Glance. but I use the command: swift-object-info to check the detail of the object, I found the container of this object is Glance, the account of this object is services, instead of admin. is that correct? as I imagine the account of this object should be the same as the owner of the image: admin?

2) under the path: /var/lib/glance/node, I found 2 sub-directory: 1 and 2, what are they used for? http:// (image description), does it represent 2 object-servers seperately?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-08-21 08:15:41 -0600

updated 2020-08-21 09:15:27 -0600

  1. Glance owns the Swift object, therefore it belongs to account service and resides in container glance. This can be configured, usually in the swift_store_config_file.

  2. This depends on your Swift configuration and has nothing to do with glance.

edit flag offensive delete link more


thanks for your kind-heart, Bernd. 1. as your comments, swift is owned by Glance. images will be divided into may objects. So the owner or the account of the specific objects is service, but the owner of images is admin. 2. 1/2 represent as dev of node, like disks, both belong to one object server.

Darroncy gravatar imageDarroncy ( 2020-08-25 06:04:01 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2020-08-21 02:35:17 -0600

Seen: 57 times

Last updated: Aug 21 '20