[openstack-dev] [nova] nova host-update gives error 'Virt driver does not implement host disabled status'

Vineet Menon mvineetmenon at gmail.com
Thu Nov 27 09:18:32 UTC 2014


Thanks Vladik for the reply. Jay Lau directed me to your patch.

But what I don't get is.. Shouldn't NotImplementedException be removed?
I mean, if other drivers are implementing set_host_enabled method,
shouldn't libvirt also implement the same?

Regards,

Vineet Menon


On 26 November 2014 at 16:07, Vladik Romanovsky <
vladik.romanovsky at enovance.com> wrote:

>
>
> ----- Original Message -----
> > From: "Vineet Menon" <mvineetmenon at gmail.com>
> > To: "OpenStack Development Mailing List (not for usage questions)" <
> openstack-dev at lists.openstack.org>
> > Sent: Wednesday, 26 November, 2014 5:14:09 AM
> > Subject: Re: [openstack-dev] [nova] nova host-update gives error 'Virt
> driver does not implement host disabled
> > status'
> >
> > Hi Kevin,
> >
> > Oh. Yes. That could be the problem.
> > Thanks for pointing that out.
> >
> >
> > Regards,
> >
> > Vineet Menon
> >
> >
> > On 26 November 2014 at 02:02, Chen CH Ji < jichenjc at cn.ibm.com > wrote:
> >
> >
> >
> >
> >
> > are you using libvirt ? it's not implemented
> > ,guess your bug are talking about other hypervisors?
> >
> > the message was printed here:
> >
> http://git.openstack.org/cgit/openstack/nova/tree/nova/api/openstack/compute/contrib/hosts.py#n236
> >
> > Best Regards!
> >
> > Kevin (Chen) Ji 纪 晨
> >
> > Engineer, zVM Development, CSTL
> > Notes: Chen CH Ji/China/IBM at IBMCN Internet: jichenjc at cn.ibm.com
> > Phone: +86-10-82454158
> > Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District,
> > Beijing 100193, PRC
> >
> > Vineet Menon ---11/26/2014 12:10:39 AM---Hi, I'm trying to reproduce the
> bug
> > https://bugs.launchpad.net/nova/+bug/1259535 .
> >
> > From: Vineet Menon < mvineetmenon at gmail.com >
> > To: openstack-dev < openstack-dev at lists.openstack.org >
> > Date: 11/26/2014 12:10 AM
> > Subject: [openstack-dev] [nova] nova host-update gives error 'Virt driver
> > does not implement host disabled status'
> >
> >
> Hi Vinet,
>
> There are two methods in the API for changing the service/host status.
> nova host-update and nova service-update.
>
> Currently, in order to disable the service one should use the "nova
> service-update" command,
> which maps to "service_update" method in the manager class.
>
> "nova host-update" maps to set_host_enabled() methodin the virt drivers,
> which is not implemented
> in the libvirt driver.
> Not sure what is the purpose of this method, but libvirt driver doesn't
> implement it.
>
> For a short period of time, this method was implemented, for a wrong
> reason, which was causing the bug in the title,
> however, it was fix with https://review.openstack.org/#/c/61016
>
> Let me know if you have any questions.
>
> Thanks,
> Vladik
>
>
>
> >
> >
> > Hi,
> >
> > I'm trying to reproduce the bug
> https://bugs.launchpad.net/nova/+bug/1259535
> > .
> > While trying to issue the command, nova host-update --status disable
> > machine1, an error is thrown saying,
> >
> >
> > ERROR (HTTPNotImplemented): Virt driver does not implement host disabled
> > status. (HTTP 501) (Request-ID: req-1f58feda-93af-42e0-b7b6-bcdd095f7d8c)
> >
> > What is this error about?
> >
> > Regards,
> > Vineet Menon
> > _______________________________________________
> > OpenStack-dev mailing list
> > OpenStack-dev at lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
> >
> >
> >
> >
> > _______________________________________________
> > OpenStack-dev mailing list
> > OpenStack-dev at lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
> >
> >
> > _______________________________________________
> > OpenStack-dev mailing list
> > OpenStack-dev at lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141127/59af4058/attachment.html>


More information about the OpenStack-dev mailing list