Not able to list the compute_nodes mapped under single cell using nova-manage

Bug #1735687 reported by keerthivasan selvaraj
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
hongbin

Bug Description

!!!!!!!!!!!!!!!!!!!!!!!!! READ THIS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Description
===========
Currently I am not able to list the compute_nodes present under single cell using nova-manage. Only way to check the available compute_nodes under specific cell is from the host_mappings table.

Steps to reproduce
==================

* nova-manage cell_v2 list_hosts --cell_uuid <cell-uuid>
* No method found

Expected result
===============
nova-manage cell_v2 list_hosts --cell_uuid 1794f657-d8e9-41ad-bff7-01b284b55a9b

+----+----------+-----------+
| Id | Host | Cell Name |
+----+----------+-----------+
| 2 | compute2 | cell2 |
+----+----------+-----------+

Actual result
=============
No such method (list_hosts) found from nova-manage

Environment
===========

Using Devstack stable/pike, nova-manage (16.0.3 ).

Revision history for this message
Matt Riedemann (mriedem) wrote :

See #1 here:

https://docs.openstack.org/nova/latest/user/cells.html#faqs

This also came up in this review to remove the 'nova-manage host list' command:

https://review.openstack.org/#/c/521837/

So this is a valid bug in that we need a replacement for the 'nova-manage host list' workaround for this, we just haven't decided on what yet.

tags: added: cells nova-manage
Revision history for this message
Matt Riedemann (mriedem) wrote :

I've marked this as High severity just because we need a replacement for the 'nova-manage host list' command workaround.

Changed in nova:
importance: Undecided → High
status: New → Triaged
hongbin (hongbin034)
Changed in nova:
assignee: nobody → hongbin (hongbin034)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/524755

Changed in nova:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/524755
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=c7b51a63b0c3b5ad80979060bbfe49287e6da847
Submitter: Zuul
Branch: master

commit c7b51a63b0c3b5ad80979060bbfe49287e6da847
Author: Hongbin Lu <email address hidden>
Date: Fri Dec 1 23:03:04 2017 +0000

    Add support for listing hosts in cellv2

    Add a ``nova-manage cell_v2 list_hosts`` command for listing hosts
    in one or all v2 cells.

    Change-Id: Ie8eaa8701aafac10e030568107b8e6255a60434d
    Closes-Bug: #1735687

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to nova (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/531559

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to nova (master)

Reviewed: https://review.openstack.org/531559
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=df219f666c0b8b34911289accd1fe5739d8bf7d8
Submitter: Zuul
Branch: master

commit df219f666c0b8b34911289accd1fe5739d8bf7d8
Author: Hongbin Lu <email address hidden>
Date: Sat Jan 6 15:00:53 2018 +0000

    Update FAQs about listing hosts in cellv2

    Document the ``nova-manage cell_v2 list_hosts`` command for listing
    hosts in one or all v2 cells.

    Change-Id: I46fece55f1647fe7a41906054ad0d6213315187b
    Related-Bug: #1735687

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 17.0.0.0b3

This issue was fixed in the openstack/nova 17.0.0.0b3 development milestone.

Revision history for this message
Matt Riedemann (mriedem) wrote :

Removed pike and ocata from this bug report as potential backport targets since the change on master introduced a versioned object rpc bump which we generally don't backport, and there are options for listing hosts within a cell in pike and ocata, so it's less important there.

no longer affects: nova/pike
no longer affects: nova/ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/563797

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (stable/pike)

Change abandoned by Adam Harwell (<email address hidden>) on branch: stable/pike
Review: https://review.openstack.org/563797
Reason: OK, we'll look further into doing it that way. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.