Description of problem: openstack baremetal list command will not return results for nodes that have: (Provisioning state!=available && Maintenance=active) and also probably for (Maintenance=active && Power State!= power off ) Version-Release number of selected component (if applicable): python-openstackclient-1.0.3-post3.el7.centos.noarch python-rdomanager-oscplugin-0.0.0-post49.el7.centos.noarch How reproducible: 100% Steps to Reproduce: 1.register nodes in undercloud 2.deploy (nodes states will change)(or any invalid node can be registered instead of deploying) 3.register additional nodes 4.display nodes list using openstack client Actual results: ENV#1: [stack@localhost ~]$ openstack baremetal list +--------------------------------------+------+---------------+-------------+-----------------+-------------+ | UUID | Name | Instance UUID | Power State | Provision State | Maintenance | +--------------------------------------+------+---------------+-------------+-----------------+-------------+ | 9c13b87f-763f-4a27-b34a-b39c341b5f42 | None | None | power off | available | False | | d726218d-51b0-4973-9ca3-ca30322cd877 | None | None | power off | available | False | | 78d0b12b-6706-430e-824e-c1ee3a6fcce2 | None | None | power off | available | False | | 7a0fbc44-0e25-486d-ae20-72029cb6ddb7 | None | None | power off | available | False | +--------------------------------------+------+---------------+-------------+-----------------+-------------+ [stack@localhost ~]$ nova list +--------------------------------------+-------------------------------------------------------+--------+------------+-------------+---------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+-------------------------------------------------------+--------+------------+-------------+---------------------+ | 0c1d2554-77b0-4173-83be-e143fe738db4 | ov-2wutsv46mgu-0-vng463xo7qyh-Controller-wxcyvqbhuqte | ACTIVE | - | Running | ctlplane=192.0.2.12 | | 19f27b56-b53d-4bbb-aac9-cdfcb049c48c | ov-od6h3wav35-0-cgsdfojdx5ps-NovaCompute-zss7xqtpwuh5 | ACTIVE | - | Running | ctlplane=192.0.2.13 | +--------------------------------------+-------------------------------------------------------+--------+------------+-------------+---------------------+ [stack@localhost ~]$ ironic node-list +--------------------------------------+------+--------------------------------------+-------------+-----------------+-------------+ | UUID | Name | Instance UUID | Power State | Provision State | Maintenance | +--------------------------------------+------+--------------------------------------+-------------+-----------------+-------------+ | 9c13b87f-763f-4a27-b34a-b39c341b5f42 | None | None | power off | available | False | | 3b215f81-e767-4038-a6ea-4ac272c883ee | None | 19f27b56-b53d-4bbb-aac9-cdfcb049c48c | power on | active | False | | d726218d-51b0-4973-9ca3-ca30322cd877 | None | None | power off | available | False | | 78d0b12b-6706-430e-824e-c1ee3a6fcce2 | None | None | power off | available | False | | 7a0fbc44-0e25-486d-ae20-72029cb6ddb7 | None | None | power off | available | False | | 6694226d-3270-4c96-aec8-fbc363a82a25 | None | 0c1d2554-77b0-4173-83be-e143fe738db4 | power on | active | False | +--------------------------------------+------+--------------------------------------+-------------+-----------------+-------------+ ******************************************************* ENV#2: [stack@localhost ~]$ openstack baremetal list [stack@localhost ~]$ ironic node-list +--------------------------------------+------+---------------+-------------+-----------------+-------------+ | UUID | Name | Instance UUID | Power State | Provision State | Maintenance | +--------------------------------------+------+---------------+-------------+-----------------+-------------+ | 80f1482e-bd4d-496b-9790-cdcc8f187ac4 | test | None | None | available | True | +--------------------------------------+------+---------------+-------------+-----------------+-------------+ Expected results: All nodes are listed Additional info:
I also ran into this bug. [stack@localhost ~]$ ironic node-list +--------------------------------------+------+--------------------------------------+-------------+-----------------+-------------+ | UUID | Name | Instance UUID | Power State | Provision State | Maintenance | +--------------------------------------+------+--------------------------------------+-------------+-----------------+-------------+ | 7bb16f6f-47d5-4cd7-a687-2a5333e51885 | None | None | power off | available | False | | 278f3040-a9f1-4be2-9dd0-d2518ee6e78f | None | 0aac0ec1-f49d-41dd-aae6-b04d7e6b7b98 | power on | deploying | False | | 4c110ee7-664f-4c17-9d5f-eb3527a69abb | None | 34b455cd-c4e7-4a49-80ff-e8a3ddb7300f | power on | deploying | False | | 726b0718-04ce-4165-9d86-32c76d93e834 | None | None | power off | available | False | +--------------------------------------+------+--------------------------------------+-------------+-----------------+-------------+ [stack@localhost ~]$ openstack baremetal list +--------------------------------------+------+---------------+-------------+-----------------+-------------+ | UUID | Name | Instance UUID | Power State | Provision State | Maintenance | +--------------------------------------+------+---------------+-------------+-----------------+-------------+ | 7bb16f6f-47d5-4cd7-a687-2a5333e51885 | None | None | power off | available | False | | 726b0718-04ce-4165-9d86-32c76d93e834 | None | None | power off | available | False | +--------------------------------------+------+---------------+-------------+-----------------+-------------+ [stack@localhost ~]$ ironic node-list +--------------------------------------+------+--------------------------------------+-------------+-----------------+-------------+ | UUID | Name | Instance UUID | Power State | Provision State | Maintenance | +--------------------------------------+------+--------------------------------------+-------------+-----------------+-------------+ | 7bb16f6f-47d5-4cd7-a687-2a5333e51885 | None | None | power off | available | False | | 278f3040-a9f1-4be2-9dd0-d2518ee6e78f | None | 0aac0ec1-f49d-41dd-aae6-b04d7e6b7b98 | power on | deploying | False | | 4c110ee7-664f-4c17-9d5f-eb3527a69abb | None | 34b455cd-c4e7-4a49-80ff-e8a3ddb7300f | power on | deploying | False | | 726b0718-04ce-4165-9d86-32c76d93e834 | None | None | power off | available | False | +--------------------------------------+------+--------------------------------------+-------------+-----------------+-------------+
https://github.com/rdo-management/python-ironicclient/pull/1
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions
This bug is against a Version which has reached End of Life. If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.