oo-accept-node reports a failure after creating HA apps: FAIL: httpd config references DNS name without associated gear:
Environment
- OpenShift Enterprise 2.1
- OpenShift Enterprise 2.2 prior to 2.2.4
- Highly Available applications
Issue
Sometime we get the following errors when oo-accept-node is executed:
[root@node03 ~]# oo-accept-node
FAIL: httpd config references DNS name without associated gear: 'herapp-domainY.ose.example.com'
FAIL: httpd config references DNS name without associated gear: 'myapp-domainY.ose.example.com'
FAIL: httpd config references DNS name without associated gear: 'tester-domainX.ose.example.com'
FAIL: httpd config references DNS name without associated gear: 'high-domainZ.ose.example.com'
4 ERRORS
This seems to occur every time we make an application Highly Available (make-ha).
Resolution
This problem was fixed in a code change part of OpenShift Enterprise 2.2.4: RHBA-2015:0220.
Please update to that version or later to avoid the problem.
As a workaround: if you have applications that have already been deleted normally from the system, you can manually clean up any remaning references to them like the ones that cause oo-accept-node to report that failure manually:
oo-admin-gear destroygear -c <GEAR_ID>
Please note that you should not run that command on gears that are still present in the system, as this could lead to inconsistencies in the environment.
Root Cause
This problem was reported to OpenShift Engineering as Bug 1122141
The failures reported by oo-accept-node in this case can be considered harmless: from a functionality point of view this should not interfere with normal operations.
The fix for the problem involved treating HA related routes as application aliases.
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.
