xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Re-reading domain configs on domain restart
@ 2012-02-07 17:04 Andy Smith
  2012-02-07 17:30 ` Ian Jackson
  0 siblings, 1 reply; 13+ messages in thread
From: Andy Smith @ 2012-02-07 17:04 UTC (permalink / raw)
  To: Xen-devel

Hello,

I spoke briefly to Ians C and J about this at FOSDEM and they
suggested I send an email about it.

Behaviour through at least Xen 3.3 to 4.0 on domU restart (i.e.,
when root inside domU does "restart" or "shutdown -r") is to restart
the domU without re-reading the domU config file. As a result, domU
will start up again with only the RAM, block devices, network
routes, etc. that it had when it was last started.

A common sequence of events here is:

- User submits support ticket asking for an extra block device, a
  block of IP addresses routed to them, etc.

- We give them that without shutting their domU down, because there
  is no need to shut it down. We tell them, "next time you need to
  reboot, please take care to actually shut it down and boot it
  again instead, otherwise you'll lose what we just gave you."

- Later -- often much later -- when they need to reboot for some
  reason, the above comment has gone completely out of their heads
  and they reboot.

- domU comes back without the disk, route, whatever they got used to
  having, and completely breaks things for them.

- More support tickets and disruption because of a reboot that
  didn't go as they expected.

No amount of documentation or teaching seems to help as this is
unintuitive behaviour compared to what normally happens when an
admin on bare metal does a reboot.

We're actually on the verge of forcing a shut down just to avoid
this misunderstanding, without any technical requirement for one.
Either that or some horrible script that watches logs for domain
startup and then checks they have all the things they are meant to
have.

As far as I am aware I can set on_restart to something other than
"restart" but there is currently no option that makes it re-read the
config file and restart.

I understand this will never be fixed in xend/xm, but would it be
possible to have xl re-read the domU's config when the domU
restarts?

Thanks,
Andy

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-04-02 16:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-07 17:04 Re-reading domain configs on domain restart Andy Smith
2012-02-07 17:30 ` Ian Jackson
2012-02-08 16:32   ` Ian Campbell
2012-02-23 11:17     ` Ian Campbell
2012-02-23 11:26       ` Andy Smith
2012-02-23 15:16       ` Ian Campbell
2012-03-01 18:40         ` Ian Jackson
2012-03-27 10:41           ` Ian Campbell
2012-03-02 10:04         ` George Dunlap
2012-03-02 10:15           ` Ian Campbell
2012-03-05 11:06             ` George Dunlap
2012-03-05 15:23               ` Ian Campbell
2012-04-02 16:07         ` Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).