Preliminary WIP pull request: https://github.com/ManageIQ/manageiq/pull/1841
Joe, that is all accurate although I question if we need to actually reboot the entire appliance. Let's workaround the issue by telling the customer to disable the ui/web service roles and stop httpd service, wouldn't that be better than a full reboot? But maybe all that is moot if we have a PR in comment 5???
Yes, Dave, thanks! I think I have it fixed in https://github.com/ManageIQ/manageiq/pull/1841 The workaround can be provided if needed.
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/d89c500d2409e63266467c92265d7a9891b94328 commit d89c500d2409e63266467c92265d7a9891b94328 Author: Joe Rafaniello <jrafanie> AuthorDate: Mon Feb 23 14:46:14 2015 -0500 Commit: Joe Rafaniello <jrafanie> CommitDate: Mon Mar 2 14:11:07 2015 -0500 Stop apache if user_interface and web_services are inactive. https://bugzilla.redhat.com/show_bug.cgi?id=1182329 vmdb/app/models/miq_server/environment_management.rb | 4 ++++ vmdb/app/models/miq_server/role_management.rb | 6 ++++++ vmdb/app/models/miq_server/worker_management/monitor.rb | 1 + 3 files changed, 11 insertions(+)
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/26c65b6b7f305c3e9785f4b9ca7fa2d86b14d186 commit 26c65b6b7f305c3e9785f4b9ca7fa2d86b14d186 Author: Joe Rafaniello <jrafanie> AuthorDate: Mon Mar 2 15:38:23 2015 -0500 Commit: Joe Rafaniello <jrafanie> CommitDate: Mon Mar 2 16:28:22 2015 -0500 Make apache_needed? easier to read. Array set operations with the non-empty check is faster but not easy to read. https://bugzilla.redhat.com/show_bug.cgi?id=1182329 vmdb/app/models/miq_server/role_management.rb | 4 +++- vmdb/spec/models/miq_server/role_management_spec.rb | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-)
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/79456a6c3c2f5b3bef31f40b76b89cdaa72be248 commit 79456a6c3c2f5b3bef31f40b76b89cdaa72be248 Author: Joe Rafaniello <jrafanie> AuthorDate: Mon Mar 2 17:27:52 2015 -0500 Commit: Joe Rafaniello <jrafanie> CommitDate: Mon Mar 2 17:51:32 2015 -0500 Track all of the ports added/deleted but only restart httpd for adds. Previously, we only saved the load balancer configuration and the registered_ports when adding ports. This prevented having to hit the filesystem to save the config file but caused us to not track when the user_interface and webservices roles are removed. We need to track when the roles are added/removed so we can start/stop httpd. https://bugzilla.redhat.com/show_bug.cgi?id=1182329 vmdb/app/models/mixins/web_server_worker_mixin.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
QE, we now stop apache when BOTH user_interface and web_services roles are not active. https://github.com/ManageIQ/manageiq/blob/a7c25182a1e935c108c8692df664cbc7351d2a9d/vmdb/db/fixtures/server_roles.csv#L22-24 Additionally, we START apache as soon as either user_interface or web_services is active. Users can now expect httpd to never run if they don't enable either of these roles.
Verified working in 5.4.0.0.19.20150410165622_ad23806. Verification Steps: 1. Deploy two appliances: appl1 (Internal DB), appl2 (connected to DB on appl1) 2. From appl1's WebUI, disable the Web Services and User Interface roles on appl2. 3. SSH into appl2 and confirm httpd service is off. 4. From appl1's WebUI, re-enable Web Services and User Interface roles on appl2. 5. SSH into appl2 and confirm httpd service is on again.
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://rhn.redhat.com/errata/RHBA-2015-1100.html