openstack-aps-package-dev team mailing list archive
-
openstack-aps-package-dev team
-
Mailing list archive
-
Message #00007
Re: APS & OpenStack - Replies To The Questions (last Tuesday's meeting)
Dima, thanks
One question is still open: item #2 is about ability to retrieve parameters for heat attack (not a general template). Not sure this is the one was answered.
Jonathan – some conclusions on the others:
1) We do need to handle situation when image is removed in Glance (show it as problematic, suggest to either fix or remove)
2) Waiting for clarification here
3) For images: we need to display Name (retrieved from API), size (API), OS (provider types, mandatory), description (provider types, optional, not shown in grid mode but left for details)
From: Dmitry Savenkov [mailto:dsavenkov@xxxxxxxxxxxx]
Sent: Friday, September 12, 2014 8:11 AM
To: Andre Moruga
Cc: openstack-aps-package-dev@xxxxxxxxxxxxxxxxxxx; Juan Victor Izquierdo; Evgeniya Shumakher
Subject: APS & OpenStack - Replies To The Questions (last Tuesday's meeting)
Andrey:
Today I was successfully able to get our OpenStack experts to reply to the questions that had been triggered by our recent meeting. I will list the questions below along with replies to them. Please mind that I didn't test the APIs that could retrieve some values, so it's up to Mamasu to do that and let me know the results.
The questions are:
1) Find out if an image that is being used by a VM/server can be removed from OpenStack via Glance (or if there are any APIs enabling the user to do so).
2) Can RAM/CPU/other parameters can be retrieved in OpenStack from a template by means of any APIs?
3) Image: What type of information can be retrieved re an image (OS/ all the possible parameters) - metadata ?
Please see the replies below:
1) it's possible to remove an image that is being referenced by any VM/instance via Glance/API (an image is copied to a compute node when it's provisioned). The folder is: instance/_base
2) it's also possible to get various flavor parameters by invoking nova flavor-list (http://developer.openstack.org/api-ref-compute-v2.html).
/v2/{tenant_id}/flavors/detail needs to be called. minRam and minDisk parameters can be specified. However, I am not sure why the 'min' prefix is in place.. Will try to clarify this with our OpenStack experts.
vcpu (number of cores), ram, disk can be retrieved (response json)
3) There is an image API enabling the retrieval of an image parameters. A link to it is here: http://developer.openstack.org/api-ref-image-v2.html. However, neither OS nor the number of instances are in the list (only the image link prop is in the main list).
The number of instances using an image can be retrieved by invoking the following: nova list --all-tenants --image <image_UUID>. The API reference is here:http://developer.openstack.org/api-ref-compute-v2.html.
In order to retrieve the OS, please take a look at xsd:dict Properties key-value tags. It should be contained there (according to our specialist).
A question for Andrey: Andrey, do you have access to our Jira? If so, I would be able to share our tickets containing questions with you. It would be more convenient.
Please let me know if there are any questions in this regards.
Thanks.
Kind Regards,
Dmitry.
Follow ups
References