Bug 1509057

Summary: deployed nodes are shared by all plans
Product: Red Hat OpenStack Reporter: Ola Pavlenko <opavlenk>
Component: openstack-tripleo-uiAssignee: Jiri Tomasek <jtomasek>
Status: CLOSED ERRATA QA Contact: Udi Kalifon <ukalifon>
Severity: medium Docs Contact:
Priority: medium    
Version: 12.0 (Pike)CC: augol, beth.white, jjoyce, jschluet, slinaber, tvignaud
Target Milestone: betaKeywords: Triaged
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-ui-9.3.1-0.20180921180341.df30b55.el7ost.noarch.rpm Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-11 11:48:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1509061    

Description Ola Pavlenko 2017-11-02 20:09:32 UTC
Description of problem:
nodes that are used in overcloud that was deployed by a plan X are "available" for assignment in plan B

Version-Release number of selected component (if applicable):
openstack-tripleo-ui-7.4.3-0.20171023133305.8616195.el7ost.noarch

How reproducible:
always

Steps to Reproduce:
1. register, introspect nodes, assign nodes to roles in a default plan and deploy
2. create additional plan  and switch to it
3. on a plans page, check the amount of available node for assignment

Actual results:
3 nodes are available for assignment , 1 node assigned to compute and 1 to controller

Expected results:
0 available nodes for assignment 

Additional info:
default plan was used to deploy ovecloud with 3 controllers and 2 compute nodes.
$ nova list
+--------------------------------------+--------------+--------+------------+-------------+------------------------+
| ID                                   | Name         | Status | Task State | Power State | Networks               |
+--------------------------------------+--------------+--------+------------+-------------+------------------------+
| bbe96dc7-900c-4e00-bf48-3e86f10644d8 | compute-0    | ACTIVE | -          | Running     | ctlplane=192.168.24.16 |
| 92961354-a6c5-4158-afc9-6afcca1b190f | compute-1    | ACTIVE | -          | Running     | ctlplane=192.168.24.8  |
| 0f7f9be9-2cc3-4e17-b75b-df3c658609f4 | controller-0 | ACTIVE | -          | Running     | ctlplane=192.168.24.13 |
| def01bba-18c0-4c8c-b1d4-9bd29134bb21 | controller-1 | ACTIVE | -          | Running     | ctlplane=192.168.24.14 |
| ff32bb67-8240-4a4f-ab38-5ebccc506fa6 | controller-2 | ACTIVE | -          | Running     | ctlplane=192.168.24.17 |
+--------------------------------------+--------------+--------+------------+-------------+------------------------+


On UI, all nodes are in state active with profiles set (e.g compute and controller that were used in a default plan that was deployed)

Comment 5 Jiri Tomasek 2018-08-07 14:47:26 UTC
Deployed nodes are now not included in calculation of node counts except for the case when these nodes are deployed with currently selected deployment plan

Comment 9 Udi Kalifon 2018-11-12 17:46:20 UTC
Verified: openstack-tripleo-ui-9.3.1-0.20180921180342.df30b55.el7ost.noarch

Comment 11 errata-xmlrpc 2019-01-11 11:48:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:0045