> We have an image promotion process that does this for us. The command I use
> to get images from a specific tenant is:
>
> glance --os-image-api-version 1 image-list --owner=
>
> I'm sure using the v1 API will make some cringe, but I haven't found
> anything similar in the v2 API.
>
I used
Hello there,
I need to delete some users and tenants from my public cloud. Before
deleting the users and tenants from keystone, I need to delete all the
resources in the tenants.
I am stucked listing the glance images uploaded in a specific tenant.
I cannot find the way, I always get either all
Hey there,
have you tried using the --property option of the openstack-client?
You could filter images by their owner (openstack_project_id or name).
"openstack image list --property owner=[openstack_project_id]"
see:
Also, if you are an admin, you can `export OS_TENANT_ID` to the project and
list images with property is-public false.
On Monday, January 25, 2016, Kris G. Lindgren wrote:
> This doesn't answer your specific question. However there are two
> projects out there that are
You can also use `openstack image list --long` -- this should include the
owner ID (which is the project ID) and do some grepping and cutting for
that output. Not the cleanest, but it'll work.
$ openstack image list --long --format value | grep $project_id | cut -f 1
-d " "
Adding to Thomas'
This doesn't answer your specific question. However there are two projects out
there that are specifically for cleaning up projects and everything associated
with them for removal. They are:
The coda project: https://github.com/openstack/osops-coda
Which given a tenant ID will cleanup all
We have an image promotion process that does this for us. The command I
use to get images from a specific tenant is:
glance --os-image-api-version 1 image-list --owner=
I'm sure using the v1 API will make some cringe, but I haven't found
anything similar in the v2 API.
On Mon, Jan 25, 2016 at