[pve-devel] [PATCH manager 1/3] add onlineonly and sharedonly to migrateall api call

Dietmar Maurer dietmar at proxmox.com
Fri Dec 2 07:21:36 CET 2016


> > +	    sharedonly => {
> > +		description => "Migrate only those guests with only shared storage",
> > +		optional => 1,
> > +		type => 'boolean'
> > +	    },
> > +	    onlineonly => {
> > +		description => "Migrate only those guests with only shared storage",
> 
> description is wrong!
> 
> > +		optional => 1,
> > +		type => 'boolean'
> > +	    },
> 
> I can imagine another scenario:
> 
> - Migrate only those guests which are offline
> 
> so it is maybe better to define some filter enum:
> 
> filter => {
>     type => 'string-list'
>     description => "Migrate only those guests which match the filter.",
>     optional => 1,
>     enum => ['running', 'stopped', 'shared'],
> }
> 
> So you can select to migrate all stopped VMs on shared 
> storage with "--filter 'stopped,shared'"

And maybe other filter like

'qemu' => only migrate qemu VMs
'lxc' => only migrate LXC container




More information about the pve-devel mailing list