Bug 1503735 - [RFE] Allow replacing specific nodes in an Openshift-on-OpenStack deployment
Summary: [RFE] Allow replacing specific nodes in an Openshift-on-OpenStack deployment
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: RFE
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.11.z
Assignee: Tomas Sedovic
QA Contact: weiwei jiang
URL:
Whiteboard: DFG:OpenShiftonOpenStack
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-18 15:43 UTC by Tzu-Mainn Chen
Modified: 2019-01-10 09:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-10 09:03:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:0024 0 None None None 2019-01-10 09:04:04 UTC

Description Tzu-Mainn Chen 2017-10-18 15:43:44 UTC
Description of problem:

This may already be implemented but we ought to document and test it thoroughly (e.g. verifying that any existing pods get moved away before we delete the nodes)

Comment 1 Tzu-Mainn Chen 2018-02-19 19:22:26 UTC
In order to remove a specific node, follow these steps:

a) In OpenShift, do the following as described in https://docs.openshift.com/enterprise/3.0/admin_guide/manage_nodes.html
  i) Mark the node as unschedulable
  ii) Evacuate the node
  iii) Delete the node

b) Remove App Node from OpenStack: specify openshift_openstack_nodes_to_remove in your inventory as described in https://github.com/openshift/openshift-ansible/blob/master/playbooks/openstack/advanced-configuration.md

Comment 2 Tomas Sedovic 2018-07-09 08:13:29 UTC
This has bee implemented in 3.10.

Comment 3 N. Harrison Ripps 2018-09-21 20:12:44 UTC
Per OCP program call on 21-SEP-2018 we are deferring Kuryr-related bugs to 3.11.z

Comment 5 weiwei jiang 2018-12-21 08:11:52 UTC
Checked with openshift-ansible-3.11.57-1 and replacing specific node work well.


openshift_openstack_nodes_to_remove: ['2']

ansible-playbook --private-key ~/.ssh/libra-new.pem --user openshift   -i openshift-ansible/playbooks/openstack/scaleup_inventory.py   -i inventory   openshift-ansible/playbooks/openstack/openshift-cluster/node-scaleup.yml -vv

[openshift@master-0 ~]$ oc get nodes                                               
NAME                                  STATUS                     ROLES     AGE       VERSION
app-node-0.wjiang-ocp.example.com     Ready,SchedulingDisabled   compute   1h        v1.11.0+d4cacc0
app-node-1.wjiang-ocp.example.com     Ready                      compute   1h        v1.11.0+d4cacc0
infra-node-0.wjiang-ocp.example.com   Ready                      infra     1h        v1.11.0+d4cacc0
master-0.wjiang-ocp.example.com       Ready                      master    1h        v1.11.0+d4cacc0
master-1.wjiang-ocp.example.com       Ready                      master    1h        v1.11.0+d4cacc0

[openshift@master-0 ~]$ oc get nodes                                                    
NAME                                  STATUS    ROLES     AGE       VERSION             
app-node-1.wjiang-ocp.example.com     Ready     compute   1h        v1.11.0+d4cacc0                                               
app-node-2.wjiang-ocp.example.com     Ready     compute   3m        v1.11.0+d4cacc0                        
infra-node-0.wjiang-ocp.example.com   Ready     infra     1h        v1.11.0+d4cacc0     
master-0.wjiang-ocp.example.com       Ready     master    1h        v1.11.0+d4cacc0
master-1.wjiang-ocp.example.com       Ready     master    1h        v1.11.0+d4cacc0   

[openshift@master-0 ~]$ oc get nodes                                                                              
NAME                                  STATUS     ROLES     AGE       VERSION            
app-node-1.wjiang-ocp.example.com     Ready      compute   1h        v1.11.0+d4cacc0
app-node-3.wjiang-ocp.example.com     NotReady   compute   11s       v1.11.0+d4cacc0     
infra-node-0.wjiang-ocp.example.com   Ready      infra     1h        v1.11.0+d4cacc0
master-0.wjiang-ocp.example.com       Ready      master    1h        v1.11.0+d4cacc0
master-1.wjiang-ocp.example.com       Ready      master    1h        v1.11.0+d4cacc0

Comment 7 errata-xmlrpc 2019-01-10 09:03:57 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/RHBA-2019:0024


Note You need to log in before you can comment on or make changes to this bug.