[Openstack-operators] [openstack-dev] [nova] Usability question for the server migrations API

Matt Riedemann mriedemos at gmail.com
Fri Apr 14 21:05:46 UTC 2017


On 4/14/2017 3:38 PM, Chet Burgess wrote:
>
> +1
>
> I would love to see this. Our support team frequently has to figure out
> the "history" of a VM and today they have to use tool that relies on
> logs and/or the DB to figure out where a VM used to be and when it was
> moved. It would wonderful if that whole tool can just be replaced with a
> single call to the nova API to return a full history.
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>

Chet, are you aware of the instance actions API?

https://developer.openstack.org/api-ref/compute/#servers-actions-servers-os-instance-actions

That might not give you all of the information you care about though, 
like the source and target host since it's not specific to migrations.

This does bring up something Sean Dague and I were talking about today, 
which is we would like to know how often a certain API is used, like 
shelve for example. We don't have a great way to mine this data today in 
the API. We have the instance actions API, but that doesn't support 
listing actions for all instances in all projects, or even all instances 
in a single project. It's scoped to a specific instance.

So what we spit-balled was putting something simple and easy into 
nova-manage which could be used to dump stats on instance actions.

For example, we could list the total number of some action taken on a 
single instance, or all instances in a project, or all instances for all 
projects. And maybe provide a time window filter so you can get a week, 
or a month, etc.

This came up because I wanted to ask the operators list how often people 
use the shelve API in their cloud, but that's kind of hard to know. If 
we had something like this in nova-manage, it would be relatively easy 
for developers to poll operators for API usage and get a report back, 
e.g. there were 25 shelve operations on all instances in my cloud in the 
last week.

-- 

Thanks,

Matt



More information about the OpenStack-operators mailing list