public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: aderumier@odiso.com
To: Thomas Lamprecht <t.lamprecht@proxmox.com>,
	Wolfgang Bumiller <w.bumiller@proxmox.com>,
	Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] cloudinit: question about cloudinit pending values && hostname/mac address changes
Date: Sat, 06 Mar 2021 08:31:04 +0100	[thread overview]
Message-ID: <cb85a109c7e14328bd6c8d2e560c21702e4a2f26.camel@odiso.com> (raw)
In-Reply-To: <75c9dea4-4e42-3882-2e83-348ea1c15fe4@proxmox.com>

Hi,

I just send a small patch, adding a new hotplug option: cloudinit,

to autoregenerate config drive when cloudinit option are updated.

What do you think about it ?  (Like this user can choose the behaviour)

Le mardi 23 février 2021 à 10:29 +0100, Thomas Lamprecht a écrit :
> On 23.02.21 10:06, Wolfgang Bumiller wrote:
> > 
> > > On 02/23/2021 9:27 AM Thomas Lamprecht <t.lamprecht@proxmox.com>
> > > wrote:
> > > 
> > >  
> > > On 21.02.21 18:47, aderumier@odiso.com wrote:
> > > > I have some question about cloudinit hotplug pending values.
> > > > 
> > > > Currently, when vm is running, we keep cloudinit specific
> > > > values
> > > > (ipconfigX, dns, ssh,...)  in pending until we regenerate image
> > > > manually. 
> > > > 
> > > > But some other change, like vm name (use for hostname), or nic
> > > > mac
> > > > address . (use to match interface in config nodrive format),
> > > > are not
> > > > keeped as pending.
> > > > 
> > > > Why don't we simply auto regenerate the cloudinit config drive
> > > > after
> > > > changes? (and don't use pending values like "pending  cdrom
> > > > generation").
> > > 
> > > IMO OK, wasn't the other stuff done because of some changes
> > > cannot be
> > > applied live?
> > 
> > Or maybe just an oversight since the VM name used to have no
> > influence
> > at all before cloud init.
> > I'm not sure if automatically regenerating the image is such a good
> > idea
> > if you consider how programs in the guest might react if they're
> > currently reading from a vanishing drive... (Simply because, you
> > know,
> > these things tend to not be too failure-resistent ;-) )
> 
> normally the CI service reads this only once at startup and then
> should
> wait on events?
> 
> Anything basing on a CD ROM device should be able to handle ejects or
> inject at any time...
> 
> @Alexandre, did you test how good the Cloudinit clients handle this?
> 
> > This would be different if we used a network-based cloud-init
> > solution,
> > but that would just "shift" the required effort from the whole
> > state
> > keeping thomas mentioned below to actually getting this onto a
> > network
> > interface *per vm* and in a sane way.
> > 
> > But yes, I can honestly also say that if you're changing cloud-init
> > data
> > while the VM is currently reading it and it just crashes and you
> > have to
> > hit the reboot button... that's perfectly fine with me actually.
> > 
> 
> CI crashing means probably that that change is not applied, not that
> the
> VM is rendered unusable. So you can only win, as at max for applying
> changes
> you have to do the same as you had to do always without such a change
> anyway: reboot
> 



      parent reply	other threads:[~2021-03-06  7:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-21 17:47 aderumier
2021-02-23  8:27 ` Thomas Lamprecht
2021-02-23  9:06   ` Wolfgang Bumiller
2021-02-23  9:29     ` Thomas Lamprecht
2021-02-23 15:29       ` aderumier
2021-03-06  7:31       ` aderumier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cb85a109c7e14328bd6c8d2e560c21702e4a2f26.camel@odiso.com \
    --to=aderumier@odiso.com \
    --cc=pve-devel@lists.proxmox.com \
    --cc=t.lamprecht@proxmox.com \
    --cc=w.bumiller@proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal