[pve-devel] [PATCH cluster] datacenter.cfg: add ha setting with shutdown_policy as format string property

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Dec 19 14:17:56 CET 2018


On Wed, Dec 19, 2018 at 01:28:02PM +0100, Thomas Lamprecht wrote:
> On 12/19/18 12:55 PM, Fabian Grünbichler wrote:
> > On Wed, Dec 19, 2018 at 12:48:07PM +0100, Thomas Lamprecht wrote:
> >> On 12/19/18 12:42 PM, Fabian Grünbichler wrote:
> >>> mostly spelling/grammer/phrasing, see inline
> >>>
> >>> On Wed, Dec 19, 2018 at 11:39:38AM +0100, Thomas Lamprecht wrote:
> >>>> +my $ha_format = {
> >>>> +    shutdown_policy => {
> >>>> +	type => 'string',
> >>>> +	enum => ['freeze', 'failover', 'default'],
> >>>
> >>> s/default/auto/ ? seems more appropriate ;)
> >>
> >> Hmm, not really IMO, could suggest that we do some auto migration of the services,
> >> which we really don't and do not want.. not too sure, default is less connoted and
> >> not wrong ;)
> > 
> > hm. it just seems weird to encode a 'default' as enum value, when we
> > have an explicit 'default' property. I was thinking about 'auto' because
> > it automatically decides the policy depending on whether we are in a
> > shutdown or reboot,
> 
> I understood your intent, but auto is just not ideal IMO, there will be
> to much users who misinterpret this and I need again to tell them while
> automatic (not manual triggered) auto migrate is rather a bad thing...
> default => default is a bit weird, yeah, but that's just schema internal
> and I rather stick with that as with the above, better alternative is
> naturally OK too. 'legacy' could work, but having a default "legacy" config
> seems also a bit weird.
> 
> maybe "conditional" ?

conditional or cond sounds good to me as well :)




More information about the pve-devel mailing list