Unable to remove the node from the district
Environment
- Openshift Enterprise 2.2
Issue
After running oo-admin-ctl-district remove node this error is raised:
ERROR OUTPUT:
Error for node 'node-w1.hosts.paas.cad.ao.example': Node with server identity: node-w1.hosts.paas.cad.ao.dcn could not be removed from district: 54b593bce0b3e363e3000001 because it still has apps on it
The mongodb was manually checked for any applications on the node and then all apps were removed from the node accordingly.
Resolution
The complete steps for removing a node are documented in the Administration Guide.
If issues persist, restart the broker after making changes to the broker.
#service openshift-broker restart
If this doesn't resolve the issue, clear the broker cache and restart the broker service.
oo-admin-broker-cache --clear
service openshift-broker restart
Check the capacity value on the node.
cat /opt/rh/ruby193/root/etc/mcollective/facts.yaml
If the capacity value is greater than 1, set it to 0. Restart mcollective and then retry deleting the the node from the broker
Root Cause
The capacity value in the facts.yml wasn't updated to 0 after manual deleting apps.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
