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

2014-11-27 Thread Vineet Menon
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.romanov...@enovance.com> wrote:

>
>
> - Original Message -
> > From: "Vineet Menon" 
> > To: "OpenStack Development Mailing List (not for usage questions)" <
> openstack-dev@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 < jiche...@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@IBMCN Internet: jiche...@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 < mvineetme...@gmail.com >
> > To: openstack-dev < openstack-dev@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@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
> >
> >
> >
> >
> > ___
> > OpenStack-dev mailing list
> > OpenStack-dev@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
> >
> >
> > ___
> > OpenStack-dev mailing list
> > OpenStack-dev@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
>
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-11-26 Thread Vladik Romanovsky


- Original Message -
> From: "Vineet Menon" 
> To: "OpenStack Development Mailing List (not for usage questions)" 
> 
> 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 < jiche...@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@IBMCN Internet: jiche...@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 < mvineetme...@gmail.com >
> To: openstack-dev < openstack-dev@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@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
> 
> 
> 
> 
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
> 
> 
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-11-26 Thread Vineet Menon
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  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@IBMCN   Internet: jiche...@cn.ibm.com
> Phone: +86-10-82454158
> Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District,
> Beijing 100193, PRC
>
> [image: Inactive hide details for Vineet Menon ---11/26/2014 12:10:39
> AM---Hi, I'm trying to reproduce the bug https://bugs.launchpad.n]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 
> To: openstack-dev 
> 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,
>
> I'm trying to reproduce the bug
> *https://bugs.launchpad.net/nova/+bug/1259535*
> <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@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-11-25 Thread Chen CH Ji
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@IBMCN   Internet: jiche...@cn.ibm.com
Phone: +86-10-82454158
Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District,
Beijing 100193, PRC



From:   Vineet Menon 
To: openstack-dev 
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,

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@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-11-25 Thread Vineet Menon
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@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev