Re: [openstack-dev] [Ironic] Node uuid and Nova Hypervisor ID
Can you describe the deployment topology you envision -- which service(s) are on what host(s)? Your question seems based on an assumption that ironic is able to control the power state of the nova-compute host _itself_ -- which is not true (*). When using the nova.virt.ironic driver with Nova, you would run a very small number of nova-compute services, and scale out the ironic-conductor services to some degree. Ironic is not a service to manage the power state of the nova-compute host -- it's a separate service to provision Nova instances on bare metal servers (which are, generally, kept powered off unless in use). (*) unless you're using TripleO, in which case your question seems to be mixing the undercloud (ironic) with the overcloud (nova-compute + libvirt/xen/etc), without explicitly explaining how or why you're doing that. -D On Tue, May 6, 2014 at 1:36 PM, François Rossigneux francois.rossign...@inria.fr wrote: Devananda, I get the Nova Hypervisor ID by typing nova hypervisor-list. I am developing a resource reservation service and the reservations are attached to a Nova Hypervisor ID. I would use Ironic to put the nodes on standby mode when there is no running instances. This is why I need to get the Ironic node UUID from a Nova Hypervisor ID... http://ironic:6385/v1/nodes?instance_uuid=blablabla; is not a perfect solution : without running instances, you cannot retrieve the node UUID... Thanks. Le 06/05/2014 22:05, Devananda van der Veen a écrit : François, Can you clarify by way of a CLI example what exactly you mean by nova hypervisor id? I'm not sure if you mean the instance uuid, compute host id, service id, or something else. I'll assume you mean the nova instance uuid, in which case, you can get the Ironic node uuid from nova show $instance -- it is in the hypervisor_hostname field. -D On Tue, May 6, 2014 at 2:23 AM, François Rossigneux francois.rossign...@inria.fr wrote: Hi all, I need to retrieve the Ironic node uuid from a Nova Hypervisor ID. How can I do that? Thanks. ___ 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 -- François Rossigneux Ingénieur Inria Projet XLcloud http://perso.ens-lyon.fr/francois.rossigneux ___ 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] [Ironic] Node uuid and Nova Hypervisor ID
Hi François, You can hit the Ironic nodes API and filter by instance_uuid. Something like: curl http://ironic:6385/v1/nodes?instance_uuid=blablabla Hope that helps. // jim On May 6, 2014 at 2:28:30 AM, François Rossigneux (francois.rossign...@inria.fr) wrote: Hi all, I need to retrieve the Ironic node uuid from a Nova Hypervisor ID. How can I do that? Thanks. ___ 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] [Ironic] Node uuid and Nova Hypervisor ID
François, Can you clarify by way of a CLI example what exactly you mean by nova hypervisor id? I'm not sure if you mean the instance uuid, compute host id, service id, or something else. I'll assume you mean the nova instance uuid, in which case, you can get the Ironic node uuid from nova show $instance -- it is in the hypervisor_hostname field. -D On Tue, May 6, 2014 at 2:23 AM, François Rossigneux francois.rossign...@inria.fr wrote: Hi all, I need to retrieve the Ironic node uuid from a Nova Hypervisor ID. How can I do that? Thanks. ___ 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] [Ironic] Node uuid and Nova Hypervisor ID
François, Can you clarify by way of a CLI example what exactly you mean by nova hypervisor id? I'm not sure if you mean the instance uuid, compute host id, service id, or something else. I'll assume you mean the nova instance uuid, in which case, you can get the Ironic node uuid from nova show $instance -- it is in the hypervisor_hostname field. -D On Tue, May 6, 2014 at 2:23 AM, François Rossigneux francois.rossign...@inria.fr wrote: Hi all, I need to retrieve the Ironic node uuid from a Nova Hypervisor ID. How can I do that? Thanks. ___ 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] [Ironic] Node uuid and Nova Hypervisor ID
Devananda, I get the Nova Hypervisor ID by typing nova hypervisor-list. I am developing a resource reservation service and the reservations are attached to a Nova Hypervisor ID. I would use Ironic to put the nodes on standby mode when there is no running instances. This is why I need to get the Ironic node UUID from a Nova Hypervisor ID... http://ironic:6385/v1/nodes?instance_uuid=blablabla; is not a perfect solution : without running instances, you cannot retrieve the node UUID... Thanks. Le 06/05/2014 22:05, Devananda van der Veen a écrit : François, Can you clarify by way of a CLI example what exactly you mean by nova hypervisor id? I'm not sure if you mean the instance uuid, compute host id, service id, or something else. I'll assume you mean the nova instance uuid, in which case, you can get the Ironic node uuid from nova show $instance -- it is in the hypervisor_hostname field. -D On Tue, May 6, 2014 at 2:23 AM, François Rossigneux francois.rossign...@inria.fr wrote: Hi all, I need to retrieve the Ironic node uuid from a Nova Hypervisor ID. How can I do that? Thanks. ___ 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 -- François Rossigneux Ingénieur Inria Projet XLcloud http://perso.ens-lyon.fr/francois.rossigneux ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev