Description of problem:
Not sure of the exact cause here but I think I know. But I think thatif a user has a misconfigured/"red" (inventoried but not monitored) httpd instance in 2.3.1 and upgrades to 2.4, the server remains red. But when user goes into connection properties, there are a bunch of blank fields that need to be populated before the server can (presumably) go green. It is not readily apparent what the default values should be here.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Assure you have httpd installed on a system. Register and inventory the system. Note that I /think/ you don't want Apache configured to where it has gone green.
2. Shutdown server; upgrade to 2.4
3. Login to JON; note your Apache instance is (still?) red
4. Apache Httpd server > $instance > Inventory > Connection
5. View fields in the Connection props page.
Note the # of fields with red asterisks that are otherwise sans content. User probably shouldn't be expected to know these values already?
Populate these with default values...
I am not yet sure if actually populating these correctly brings the server back up.
Created attachment 435181 [details]
screeshot #1 of augeas fields that are not populated by default upon upgrade
Created attachment 435182 [details]
screenshot #2 of augeas fields that are not populated by default upon upgrade
Actually screenshot #2 is not augeas but vhosts.
The good news is that uninventorying the resource and reinventorying it seems to make everything all better.
The bad news is that populating those fields appropriately ("Httpd", "/etc/httpd/conf/httpd.conf", "(*) Each Virtual Host in a standalone file", "conf.d/*.conf" would be the most likely candidates, respectively) doesn't seem to resolve the issue. I got a huge stack trace and may have even choked the agent though it might have been something else.
I think that this problem is related to https://bugzilla.redhat.com/show_bug.cgi?id=573034
Tested with the steps and the bug was reproducible. The fields in the
Connection props page as mentioned in the screenshots are not populated after
I haven't filled the 'URL' field in 'Apache Httpd server > $instance >
Inventory > Connection' before upgrade to 2.4. So the apache resource was red.
Apache was still red after upgrade to 2.4.
However, when i entered the URL(http://localhost:80) in 'Apache Httpd server >
$instance > Inventory > Connection' after upgrade, the apache resource turned
into green and available.
*** This bug has been marked as a duplicate of bug 573034 ***