<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Sep 30, 2016 at 4:38 PM, Murray, Paul (HP Cloud) <span dir="ltr"><<a href="mailto:pmurray@hpe.com" target="_blank">pmurray@hpe.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
<br>
<br>
<br>
On 27/09/2016, 18:12, "Daniel P. Berrange" <<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>> wrote:<br>
<br>
>On Tue, Sep 27, 2016 at 10:40:34AM -0600, Chris Friesen wrote:<br>
>> On 09/27/2016 10:17 AM, Matthew Booth wrote:<br>
>><br>
>> > I think we should be able to create a domain, but once created we should never<br>
>> > redefine a domain. We can do adding and removing devices dynamically using<br>
>> > libvirt's apis, secure in the knowledge that libvirt will persist this for us.<br>
>> > When we upgrade the host, libvirt can ensure we don't break guests which are on<br>
>> > it. Evacuate should be pretty much the only reason to start again.<br>
>><br>
>> Sounds interesting.  How would you handle live migration?<br>
>><br>
>> Currently we regenerate the XML file on the destination from the nova DB.  I<br>
>> guess in your proposal we'd need some way of copying the XML file from the<br>
>> source to the dest, and then modifying the appropriate segments to adjust<br>
>> things like CPU/NUMA pinning?<br>
><br>
>Use the flag VIR_MIGRATE_PERSIST_XML and libvirt will write out the<br>
>new persistent XML on the target host automatically.<br>
<br>
We have a problem migrating rescued instances that has a fix in progress based<br>
on regenerating the xml on unrescue, see:<br>
<br>
 <a href="https://blueprints.launchpad.net/nova/+spec/live-migrate-rescued-instances" rel="noreferrer" target="_blank">https://blueprints.launchpad.<wbr>net/nova/+spec/live-migrate-<wbr>rescued-instances</a><br>
<br>
That might be another case for generating the xml.<br></blockquote><div><br></div><div>I thought it was a counter-argument (unless I've misunderstood). If you migrate the instance as-is without modification, you don't need to worry about whether it's currently a rescue instance. This problem goes away.</div><div><br></div><div>The major complication I can think of is things which genuinely must change during a migration, for example cpu pinning.</div><div><br></div><div>Matt</div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-size:12.8px">Matthew Booth</span><br></div><div>Red Hat Engineering, Virtualisation Team</div><div><br></div><div>Phone: +442070094448 (UK)</div><div><br></div></div></div></div></div>
</div></div>