Bug 900921 (JBPAPP6-1091) - postinstall fails because of missing mod_cluster.conf and mod_snmp.conf for httpd provided with EAP 6.0.1.ER2
Summary: postinstall fails because of missing mod_cluster.conf and mod_snmp.conf for h...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBPAPP6-1091
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Apache Server (httpd) and Connectors
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: EAP 6.0.1
Assignee: Permaine Cheung
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBP...
Whiteboard: eap6 httpd
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-21 15:15 UTC by Radim Hatlapatka
Modified: 2014-06-28 12:48 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-05 11:33:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 901126 0 high CLOSED Update postinstall script to check for check for conf file before editing 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker JBPAPP6-1091 0 Major Closed postinstall fails because of missing mod_cluster.conf and mod_snmp.conf for httpd provided with EAP 6.0.1.ER2 2014-05-22 12:35:31 UTC

Internal Links: 901126

Description Radim Hatlapatka 2012-09-21 15:15:30 UTC
project_key: JBPAPP6

.postinstall fails because mod_cluster.conf and mod_snmp.conf in conf.d directory are missing.

I checked swiftly all platforms and its true for all of them. Just in case of Windows postinstall.httpd.bat script does not require these files, there is only expected mod_snmp.conf.in which is missing as well

Comment 1 Permaine Cheung 2012-09-24 13:46:35 UTC
I'm making these changes to the different postinstall scripts.
On RHEL:

 #JBPAPP-9446
-sed -i -e "s:MemManagerFile cache/mod_cluster:MemManagerFile $currentDir/cache/mod_cluster:" conf.d/mod_cluster.conf
+# sed -i -e "s:MemManagerFile cache/mod_cluster:MemManagerFile $currentDir/cache/mod_cluster:" conf.d/mod_cluster.conf
 
 #JBPAPP-9746
-mkdir -p $currentDir/var/cache/mod_snmp
-sed -i -e "s:/var/cache/mod_snmp:$currentDir/var/cache/mod_snmp:" conf.d/mod_snmp.conf
+# mkdir -p $currentDir/var/cache/mod_snmp
+# sed -i -e "s:/var/cache/mod_snmp:$currentDir/var/cache/mod_snmp:" conf.d/mod_snmp.conf


On Windows:
 mkdir var\log\httpd 2>NUL
 mkdir var\cache\mod_ssl 2>NUL
 mkdir var\cache\mod_proxy 2>NUL
-mkdir var\cache\mod_snmp 2>NUL
+rem mkdir var\cache\mod_snmp 2>NUL
 mkdir var\run 2>NUL
 pushd etc\httpd
 if not exist modules\ mklink /D modules ..\..\lib\httpd\modules
@@ -61,7 +61,7 @@ for %%i in (charset.conv mime.types) do 
     if not exist %%i nawk -f "%INSTALL_ETC_DIR%\rewriteconf.awk" "%INSTALL_TOP_DIR%" %%i.in %%i
 )
 pushd httpd\conf
-for %%i in (httpd.conf mod_snmp.conf) do (
+for %%i in (httpd.conf ) do (
     if not exist %%i nawk -f "%INSTALL_ETC_DIR%\rewriteconf.awk" "%INSTALL_TOP_DIR%" %%i.in %%i
 )
 popd


On Solaris:

@@ -171,7 +171,7 @@ fi
 createbasedir /var/log/httpd
 createbasedir /var/cache/mod_ssl
 createbasedir /var/cache/mod_proxy
-createbasedir /var/cache/mod_snmp
+# createbasedir /var/cache/mod_snmp
 createbasedir /var/lock/subsys
 
 setattributes 0700 apache $SUGID /var/cache/mod_ssl
@@ -240,7 +240,7 @@ EOH
     do
         copynoreplace $f
     done
-    copynoreplace "$INSTALL_ROOT/etc/httpd/conf/mod_cluster-native.conf"
+#     copynoreplace "$INSTALL_ROOT/etc/httpd/conf/mod_cluster-native.conf"
     copynoreplace "$INSTALL_ROOT/etc/httpd/conf/httpd.conf"
     copynoreplace "$INSTALL_ROOT/etc/mime.types"
     copynoreplace "$INSTALL_ROOT/etc/sysconfig/httpd"


Please let me know if other modifications are needed, meanwhile, please update manually as above. Thanks!

Comment 2 Permaine Cheung 2012-09-27 15:40:14 UTC
Changes committed, marking as resolved. Will be in ER3.

Comment 3 Radim Hatlapatka 2012-10-30 12:53:32 UTC
This fix makes .postinstall working, but creates greater differences between httpd in EWS 2.0 and httpd shipped with EAP 6. 

[~permaine] is this really intended or there should be rather created the missing configuration files as they are in EWS 2.0? Putting the missing configuration files would be from my perspective better because it lowers the difference between this two products.

Comment 4 Radim Hatlapatka 2012-10-30 12:57:03 UTC
Reopening till it will be determined if it should remain as it is or changed to lower differentiation between httpd in EWS 2.0 and httpd shipped with EAP 6.0.1

Comment 5 Permaine Cheung 2012-10-30 14:01:35 UTC
Link: Added: This issue relates to JBEWS-8


Comment 6 Permaine Cheung 2012-10-30 14:03:33 UTC
There are components in EWS that are not in EAP, hence, the zips will not be exactly the same as in EWS, EWS specific components should be removed. Also in EAP 6, webserver connectors and related files should be in the webserver connectors zip.
I've filed JBEWS-8 (and linked this JIRA to it) so that we can fix the postinstall script to check for the existence of the file before editing it so that we can keep the postinstall without any changes in future releases.

Comment 7 Radim Hatlapatka 2012-10-30 14:08:44 UTC
The fix solves the problem plus see comments above

Comment 8 Misty Stanley-Jones 2012-11-05 06:16:28 UTC
Release Notes Docs Status: Added: Not Required
Writer: Added: mistysj


Comment 9 Radim Hatlapatka 2012-11-05 11:33:57 UTC
Verified, see comments above

Comment 10 Anne-Louise Tangring 2012-11-13 20:24:16 UTC
Release Notes Docs Status: Removed: Not Required 
Writer: Removed: mistysj 
Docs QE Status: Removed: NEW 



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