<div dir="ltr"><div><div>Thanks Vladik for the reply. Jay Lau directed me to your patch.<br></div><br>But what I don't get is.. Shouldn't NotImplementedException be removed?<br></div>I mean, if other drivers are implementing set_host_enabled method, shouldn't libvirt also implement the same?<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Regards,<br><br>Vineet Menon<br><br></div></div>
<br><div class="gmail_quote">On 26 November 2014 at 16:07, Vladik Romanovsky <span dir="ltr"><<a href="mailto:vladik.romanovsky@enovance.com" target="_blank">vladik.romanovsky@enovance.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
----- Original Message -----<br>
> From: "Vineet Menon" <<a href="mailto:mvineetmenon@gmail.com">mvineetmenon@gmail.com</a>><br>
</span><span class="">> To: "OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
> Sent: Wednesday, 26 November, 2014 5:14:09 AM<br>
> Subject: Re: [openstack-dev] [nova] nova host-update gives error 'Virt driver does not implement host disabled<br>
> status'<br>
><br>
</span><span class="">> Hi Kevin,<br>
><br>
> Oh. Yes. That could be the problem.<br>
> Thanks for pointing that out.<br>
><br>
><br>
> Regards,<br>
><br>
> Vineet Menon<br>
><br>
><br>
> On 26 November 2014 at 02:02, Chen CH Ji < <a href="mailto:jichenjc@cn.ibm.com">jichenjc@cn.ibm.com</a> > wrote:<br>
><br>
><br>
><br>
><br>
><br>
> are you using libvirt ? it's not implemented<br>
> ,guess your bug are talking about other hypervisors?<br>
><br>
> the message was printed here:<br>
> <a href="http://git.openstack.org/cgit/openstack/nova/tree/nova/api/openstack/compute/contrib/hosts.py#n236" target="_blank">http://git.openstack.org/cgit/openstack/nova/tree/nova/api/openstack/compute/contrib/hosts.py#n236</a><br>
><br>
> Best Regards!<br>
><br>
> Kevin (Chen) Ji 纪 晨<br>
><br>
> Engineer, zVM Development, CSTL<br>
> Notes: Chen CH Ji/China/IBM@IBMCN Internet: <a href="mailto:jichenjc@cn.ibm.com">jichenjc@cn.ibm.com</a><br>
> Phone: <a href="tel:%2B86-10-82454158" value="+861082454158">+86-10-82454158</a><br>
> Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District,<br>
> Beijing 100193, PRC<br>
><br>
</span><span class="">> Vineet Menon ---11/26/2014 12:10:39 AM---Hi, I'm trying to reproduce the bug<br>
</span>> <a href="https://bugs.launchpad.net/nova/+bug/1259535" target="_blank">https://bugs.launchpad.net/nova/+bug/1259535</a> .<br>
<span class="">><br>
> From: Vineet Menon < <a href="mailto:mvineetmenon@gmail.com">mvineetmenon@gmail.com</a> ><br>
> To: openstack-dev < <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a> ><br>
> Date: 11/26/2014 12:10 AM<br>
> Subject: [openstack-dev] [nova] nova host-update gives error 'Virt driver<br>
> does not implement host disabled status'<br>
><br>
><br>
</span>Hi Vinet,<br>
<br>
There are two methods in the API for changing the service/host status.<br>
nova host-update and nova service-update.<br>
<br>
Currently, in order to disable the service one should use the "nova service-update" command,<br>
which maps to "service_update" method in the manager class.<br>
<br>
"nova host-update" maps to set_host_enabled() methodin the virt drivers, which is not implemented<br>
in the libvirt driver.<br>
Not sure what is the purpose of this method, but libvirt driver doesn't implement it.<br>
<br>
For a short period of time, this method was implemented, for a wrong reason, which was causing the bug in the title,<br>
however, it was fix with <a href="https://review.openstack.org/#/c/61016" target="_blank">https://review.openstack.org/#/c/61016</a><br>
<br>
Let me know if you have any questions.<br>
<br>
Thanks,<br>
Vladik<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
><br>
><br>
> Hi,<br>
><br>
> I'm trying to reproduce the bug <a href="https://bugs.launchpad.net/nova/+bug/1259535" target="_blank">https://bugs.launchpad.net/nova/+bug/1259535</a><br>
> .<br>
> While trying to issue the command, nova host-update --status disable<br>
> machine1, an error is thrown saying,<br>
><br>
><br>
> ERROR (HTTPNotImplemented): Virt driver does not implement host disabled<br>
> status. (HTTP 501) (Request-ID: req-1f58feda-93af-42e0-b7b6-bcdd095f7d8c)<br>
><br>
> What is this error about?<br>
><br>
> Regards,<br>
> Vineet Menon<br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
</div></div></blockquote></div><br></div>