<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Mmmm,<div>I myself think it's not a good idea if you have an attached volume (via nova-volume)</div><div>Virsh rely on a disk-path populated via the open-iscsi component - thus an inactive session (after an host reboot) will likely prevent the domain from starting. </div><div>the only dirty workaround I found so far is to redefine the domain before restarting it : </div><div># virsh undefine my_domain</div><div># virsh define /var/lib/nova/instances/my_domain/libvirt.xml</div><div><br></div><div>I worked on that problematic few months back - you can also save the iscsi sessions, and make sure you restore them before - the only thing is to make sure iscsi sessions mount up before libvirt and nova-compute start </div><div>#1 - openiscsi</div><div>#2- libvirt</div><div>#3- nova-compute</div><div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; "><b style="color: rgb(19, 112, 138); ">Nuage & Co - Razique Mahroua</b></span><span class="Apple-style-span" style="color: rgb(19, 112, 138); font-family: Helvetica; "><b> </b></span><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; "><font class="Apple-style-span" color="#13708a"><a href="mailto:razique.mahroua@gmail.com">razique.mahroua@gmail.com</a></font></div></span><br class="Apple-interchange-newline"><span></span><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; "></span><span style="color: rgb(0, 0, 0); font-weight: normal; "></span></span><span><img height="125" width="125" id="0bccc0ba-d4b3-4b4e-987f-83b00796256e" apple-width="yes" apple-height="yes" src="cid:00E07450-433E-43E6-9005-48B8FD5C669F@la.fabrique"></span>
</span></span></span></div>
<br><div><div>Le 12 mars 2012 à 15:14, Christian Wittwer a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>You can let nova-compute start the instances after a host reboot.<br><br>--start_guests_on_host_boot<br>--resume_guests_state_on_host_boot<br><br>2012/3/10 Vishvananda Ishaya <<a href="mailto:vishvananda@gmail.com">vishvananda@gmail.com</a>>:<br><blockquote type="cite">I think that this branch should make reboot work:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="https://review.openstack.org/#change,5177">https://review.openstack.org/#change,5177</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">It looks like we should also make sync_power_states run more frequently.  It<br></blockquote><blockquote type="cite">currently runs every 6 minutes by default.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Mar 8, 2012, at 6:27 PM, DeadSun wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">As we all know, if host reboot since of some failure or hardware problem,<br></blockquote><blockquote type="cite">the vms will actually shutoff. But after host up, info in nova db show vm<br></blockquote><blockquote type="cite">state are "active", and using "nova list" return the same.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Now how to start the vms. In Daiblo, I always just using "nova reboot", it<br></blockquote><blockquote type="cite">works.But in essex version, it seems cannot use "nova reboot" in an inactive<br></blockquote><blockquote type="cite">domain. I see there is "nova host-action" command, but it not always make vm<br></blockquote><blockquote type="cite">start.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Another way, I can use "virsh start" a domain, but if the vm attach a<br></blockquote><blockquote type="cite">volume, it doesn't work. "nova volume-detach" cannot detach a volume in an<br></blockquote><blockquote type="cite">inactive domain.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Is there a normal way to resolve this case?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">非淡薄无以明志,非宁静无以致远<br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br></blockquote><blockquote type="cite">Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br></blockquote><blockquote type="cite">Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br></blockquote><blockquote type="cite">More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br></blockquote><blockquote type="cite">Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br></blockquote><blockquote type="cite">Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br></blockquote><blockquote type="cite">More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote><blockquote type="cite"><br></blockquote><br>_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></div></blockquote></div><br></div></body></html>