| Summary: | RHUA config rpm installation failed due to missing </Directory> tag | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Sachin Ghai <sghai> | ||||||||
| Component: | RHUA | Assignee: | Jay Dobies <jason.dobies> | ||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | wes hayutin <whayutin> | ||||||||
| Severity: | high | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 2.0 | CC: | kbidarka, sghai, tsanders | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | x86_64 | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2012-05-31 12:51:32 UTC | Type: | --- | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Attachments: |
|
||||||||||
|
Description
Sachin Ghai
2011-07-08 11:29:54 UTC
I guess grep command should have the absolute path for pulp.conf in rh-rhua-config.spec file,
>>LINE_NUM=`grep -n "/pulp/ks" pulp.conf | awk -F":" '{print $1}'`
Please attach the whole pulp.conf file so I can see how far the RPM script got when trying to remove that entry. Created attachment 511931 [details]
generated pulp.conf after installing rhua config rpm
The complete pulp.conf file is in attachment.
commit 6eb3ed7a09a6c0d18392d5586824aac4eabc7737
Author: Jay Dobies <jason.dobies>
Date: Fri Jul 8 09:24:26 2011 -0400
719911 - Needed full path to pulp.conf
rhui-2.0/tools/etc/rhui/templates/rh-rhua-config.spec
Fixed in 2.0.36. Now rhua config rpm installs successfully. Loaded plugins: amazon-id, pulp-profile-update, security Setting up Local Package Process error: not an rpm package Cannot open: rh-rhua-config-2.0. Skipping. Examining rh-rhua-config-2.0-2.el6.noarch.rpm: rh-rhua-config-2.0-2.el6.noarch Marking rh-rhua-config-2.0-2.el6.noarch.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package rh-rhua-config.noarch 0:2.0-2.el6 set to be updated --> Processing Dependency: qpid-cpp-server-ssl for package: rh-rhua-config-2.0-2.el6.noarch --> Running transaction check ---> Package qpid-cpp-server-ssl.x86_64 0:0.10-6.el6 set to be updated --> Processing Dependency: qpid-cpp-client-ssl = 0.10-6.el6 for package: qpid-cpp-server-ssl-0.10-6.el6.x86_64 --> Processing Dependency: libsslcommon.so.5()(64bit) for package: qpid-cpp-server-ssl-0.10-6.el6.x86_64 --> Running transaction check ---> Package qpid-cpp-client-ssl.x86_64 0:0.10-6.el6 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================= Package Arch Version Repository Size ================================================================================================================================================================================= Installing: rh-rhua-config noarch 2.0-2.el6 /rh-rhua-config-2.0-2.el6.noarch 111 k Installing for dependencies: qpid-cpp-client-ssl x86_64 0.10-6.el6 rhui-us-east-rhel-server-updates 103 k qpid-cpp-server-ssl x86_64 0.10-6.el6 rhui-us-east-rhel-server-updates 52 k Transaction Summary ================================================================================================================================================================================= Install 3 Package(s) Upgrade 0 Package(s) Total size: 266 k Total download size: 155 k Installed size: 562 k Downloading Packages: (1/2): qpid-cpp-client-ssl-0.10-6.el6.x86_64.rpm | 103 kB 00:00 (2/2): qpid-cpp-server-ssl-0.10-6.el6.x86_64.rpm | 52 kB 00:00 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 453 kB/s | 155 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : qpid-cpp-client-ssl-0.10-6.el6.x86_64 1/3 Installing : qpid-cpp-server-ssl-0.10-6.el6.x86_64 2/3 Installing : rh-rhua-config-2.0-2.el6.noarch 3/3 Updating RHUA Server Configuration Updating RHUA Repository Authentication Configuration Updating Apache SSL Configuration data model in use matches the current version database migration to version 19 complete Stopping httpd: [ OK ] Stopping Qpid AMQP daemon: [ OK ] Stopping mongod: [ OK ] Starting mongod: [ OK ] Starting Qpid AMQP daemon: [ OK ] Starting httpd: [ OK ] Consumer Id could not be found. Cannot update consumer profile. Installed: rh-rhua-config.noarch 0:2.0-2.el6 Dependency Installed: qpid-cpp-client-ssl.x86_64 0:0.10-6.el6 qpid-cpp-server-ssl.x86_64 0:0.10-6.el6 Complete! Created attachment 512202 [details]
Generated pulp.cong after upgrading rhua config rpm
newly generated pulp.conf on 11 July.
I generated new rhua config rpm and upgrade it with rpm -Uvh command and this time again I got same error: [root@dhcp201-111 ~]# rpm -Uvh rh-rhua-config-2.2-2.el6.noarch.rpm Preparing... ########################################### [100%] 1:rh-rhua-config ########################################### [100%] Updating RHUA Server Configuration Updating RHUA Repository Authentication Configuration Updating Apache SSL Configuration data model in use matches the current version database migration to version 19 complete Stopping httpd: [ OK ] Stopping Qpid AMQP daemon: [ OK ] Stopping mongod: [ OK ] Starting mongod: [ OK ] Starting Qpid AMQP daemon: [ OK ] Starting httpd: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 76 of /etc/httpd/conf.d/pulp.conf: /etc/httpd/conf.d/pulp.conf:76: <Directory> was not closed. [FAILED] warning: %post(rh-rhua-config-2.2-2.el6.noarch) scriptlet failed, exit status 1 This happens only in case of config rpm upgrade. if I remove the previously installed rpm with rpm -e and install new generated config rpm then this issue is no loger reproducible. It could be due to my setup configuarion. But just wanted to share the outcome. Facing this issue again on re-installing, the same rpm or Upgrading it. A clean re-install or Upgrade is desired. I don't understand what "A clean re-install or Upgrade is desired" means. Also, what do you mean by "on re-installing, the same rpm or Upgrading it". [root@dhcp201-102 rhui]# rpm -Uvh rh-rhua-config-2.1-2.el6.noarch.rpm Preparing... ########################################### [100%] 1:rh-rhua-config ########################################### [100%] Updating RHUA Server Configuration Updating RHUA Repository Authentication Configuration Updating Apache SSL Configuration Starting mongod: [ OK ] data model in use matches the current version database migration to version 19 complete Stopping httpd: [FAILED] Stopping Qpid AMQP daemon: [FAILED] Stopping mongod: [ OK ] Starting mongod: [ OK ] Starting Qpid AMQP daemon: [ OK ] Starting httpd: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 79 of /etc/httpd/conf.d/pulp.conf: /etc/httpd/conf.d/pulp.conf:79: <Directory> was not closed. [FAILED] warning: %post(rh-rhua-config-2.1-2.el6.noarch) scriptlet failed, exit status 1 Created attachment 513260 [details]
the pulp.conf file
Just to be clear. It works fine on the first install of the RHUA config RPM, but anything after that (either uninstalling and reinstalling the same package or installing an upgraded package) causes this, correct? I think it's an issue in the bash script I'm using to strip out the directory. I'm taking a look now. commit 8d063d799a9f0316e04c0185efff41a730ca9971
Author: Jay Dobies <jason.dobies>
Date: Thu Jul 14 16:49:57 2011 -0400
719911 - Only attempt to strip off the ks directory if it's there
rhui-2.0/tools/etc/rhui/templates/rh-rhua-config.spec
Fixed in 2.0.38. verified with new rhui-tools build 2.0.40. The issue has been fixed. I was able to upgrade the rh-rhua-config rpm without any failure. This time I generated the rh-rhua-config rpm of version 2.2. [root@dhcp201-141 rhui]# rpm -Uvh rh-rhua-config-2.2-2.el6.noarch.rpm Preparing... ########################################### [100%] 1:rh-rhua-config ########################################### [100%] Updating RHUA Server Configuration Updating RHUA Repository Authentication Configuration Updating Apache SSL Configuration data model in use matches the current version database migration to version 19 complete Stopping httpd: [ OK ] Stopping Qpid AMQP daemon: [ OK ] Stopping mongod: [ OK ] Starting mongod: [ OK ] Starting Qpid AMQP daemon: [ OK ] Starting httpd: [ OK ] [root@dhcp201-141 rhui]# Even I uninstalled the rhua config rpm and reinstalled it without any issue. [root@dhcp201-141 rhui]# rpm -e rh-rhua-config [root@dhcp201-141 rhui]# rpm -qa | grep rh-rhua-config [root@dhcp201-141 rhui]# rpm -ivh rh-rhua-config-2.2-2.el6.noarch.rpm Preparing... ########################################### [100%] 1:rh-rhua-config ########################################### [100%] Updating RHUA Server Configuration Updating RHUA Repository Authentication Configuration Updating Apache SSL Configuration data model in use matches the current version database migration to version 19 complete Stopping httpd: [ OK ] Stopping Qpid AMQP daemon: [ OK ] Stopping mongod: [ OK ] Starting mongod: [ OK ] Starting Qpid AMQP daemon: [ OK ] Starting httpd: [ OK ] [root@dhcp201-141 rhui]# moving to release pending closing out, product released |