Hide Forgot
Description of problem: [root@ip-10-242-207-112 mnt]# ./install_tools.sh Installing RHUI Tools packages Loaded plugins: amazon-id, pulp-profile-update, rhui-lb, security Setting up Local Package Process Examining Packages/rh-rhui-tools-2.0.57-1.el6.noarch.rpm: rh-rhui-tools-2.0.57-1.el6.noarch Marking Packages/rh-rhui-tools-2.0.57-1.el6.noarch.rpm as an update to rh-rhui-tools-2.0.44-1.el6.noarch rhui-us-east-client-config-server-6 | 2.6 kB 00:00 rhui-us-east-rhel-server-releases | 3.7 kB 00:00 Examining Packages/PyYAML-3.09-14.el6_1.x86_64.rpm: PyYAML-3.09-14.el6_1.x86_64 Packages/PyYAML-3.09-14.el6_1.x86_64.rpm: does not update installed package. Examining Packages/libyaml-0.1.3-3.el6_1.x86_64.rpm: libyaml-0.1.3-3.el6_1.x86_64 Packages/libyaml-0.1.3-3.el6_1.x86_64.rpm: does not update installed package. Examining Packages/pulp-consumer-0.0.263-9.el6.noarch.rpm: pulp-consumer-0.0.263-9.el6.noarch Marking Packages/pulp-consumer-0.0.263-9.el6.noarch.rpm to be installed Examining Packages/pulp-client-lib-0.0.263-9.el6.noarch.rpm: pulp-client-lib-0.0.263-9.el6.noarch Marking Packages/pulp-client-lib-0.0.263-9.el6.noarch.rpm to be installed Examining Packages/pulp-common-0.0.263-9.el6.noarch.rpm: pulp-common-0.0.263-9.el6.noarch Marking Packages/pulp-common-0.0.263-9.el6.noarch.rpm as an update to pulp-common-0.0.214-8.el6.noarch Examining Packages/python-isodate-0.4.4-4.pulp.el6.noarch.rpm: python-isodate-0.4.4-4.pulp.el6.noarch Marking Packages/python-isodate-0.4.4-4.pulp.el6.noarch.rpm as an update to python-isodate-0.4.4-2.el6_1.noarch Examining Packages/gofer-0.64-1.el6.noarch.rpm: gofer-0.64-1.el6.noarch Marking Packages/gofer-0.64-1.el6.noarch.rpm as an update to gofer-0.43-1.el6.noarch Examining Packages/gofer-package-0.64-1.el6.noarch.rpm: gofer-package-0.64-1.el6.noarch Marking Packages/gofer-package-0.64-1.el6.noarch.rpm to be installed Examining Packages/python-gofer-0.64-1.el6.noarch.rpm: python-gofer-0.64-1.el6.noarch Marking Packages/python-gofer-0.64-1.el6.noarch.rpm as an update to python-gofer-0.43-1.el6.noarch Examining Packages/gofer-package-0.64-1.el6.noarch.rpm: gofer-package-0.64-1.el6.noarch Marking Packages/gofer-package-0.64-1.el6.noarch.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package gofer.noarch 0:0.43-1.el6 will be updated ---> Package gofer.noarch 0:0.64-1.el6 will be an update ---> Package gofer-package.noarch 0:0.64-1.el6 will be installed ---> Package pulp-client.noarch 0:0.0.214-8.el6 will be obsoleted --> Processing Dependency: pulp-client >= 0.0.214 for package: pulp-0.0.214-8.el6.noarch ---> Package pulp-client-lib.noarch 0:0.0.263-9.el6 will be obsoleting --> Processing Dependency: python-rhsm >= 0.96.4 for package: pulp-client-lib-0.0.263-9.el6.noarch ---> Package pulp-common.noarch 0:0.0.214-8.el6 will be updated --> Processing Dependency: pulp-common = 0.0.214 for package: pulp-0.0.214-8.el6.noarch ---> Package pulp-common.noarch 0:0.0.263-9.el6 will be an update ---> Package pulp-consumer.noarch 0:0.0.263-9.el6 will be obsoleting ---> Package python-gofer.noarch 0:0.43-1.el6 will be updated ---> Package python-gofer.noarch 0:0.64-1.el6 will be an update --> Processing Dependency: PyPAM for package: python-gofer-0.64-1.el6.noarch ---> Package python-isodate.noarch 0:0.4.4-2.el6_1 will be updated ---> Package python-isodate.noarch 0:0.4.4-4.pulp.el6 will be an update ---> Package rh-rhui-tools.noarch 0:2.0.44-1.el6 will be updated ---> Package rh-rhui-tools.noarch 0:2.0.57-1.el6 will be an update --> Running transaction check ---> Package PyPAM.x86_64 0:0.5.0-12.el6 will be installed ---> Package pulp-client.noarch 0:0.0.214-8.el6 will be obsoleted --> Processing Dependency: pulp-client >= 0.0.214 for package: pulp-0.0.214-8.el6.noarch ---> Package pulp-common.noarch 0:0.0.214-8.el6 will be updated --> Processing Dependency: pulp-common = 0.0.214 for package: pulp-0.0.214-8.el6.noarch ---> Package python-rhsm.noarch 0:0.95.14-1.el6_1 will be updated ---> Package python-rhsm.noarch 0:0.96.15-1.el6 will be an update --> Finished Dependency Resolution Error: Package: pulp-0.0.214-8.el6.noarch (@/pulp-0.0.214-8.el6.noarch) Requires: pulp-common = 0.0.214 Removing: pulp-common-0.0.214-8.el6.noarch (@/pulp-common-0.0.214-8.el6.noarch) pulp-common = 0.0.214-8.el6 Updated By: pulp-common-0.0.263-9.el6.noarch (/pulp-common-0.0.263-9.el6.noarch) pulp-common = 0.0.263-9.el6 Error: Package: pulp-0.0.214-8.el6.noarch (@/pulp-0.0.214-8.el6.noarch) Requires: pulp-client >= 0.0.214 Removing: pulp-client-0.0.214-8.el6.noarch (@/pulp-client-0.0.214-8.el6.noarch) pulp-client = 0.0.214-8.el6 Obsoleted By: pulp-consumer-0.0.263-9.el6.noarch (/pulp-consumer-0.0.263-9.el6.noarch) Not found You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest Failed to install packages. The system needs to be installed with the @Base set of packages. --------------------------- ./install_RHUA.sh ---> Package python-rhsm.noarch 0:0.96.15-1.el6 will be an update --> Finished Dependency Resolution Error: Package: rh-rhui-tools-2.0.44-1.el6.noarch (@/rh-rhui-tools-2.0.44-1.el6.noarch) Requires: pulp-client Removing: pulp-client-0.0.214-8.el6.noarch (@/pulp-client-0.0.214-8.el6.noarch) pulp-client = 0.0.214-8.el6 Obsoleted By: pulp-admin-0.0.263-9.el6.noarch (/pulp-admin-0.0.263-9.el6.noarch) Not found You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest Failed to install packages. Your system needs to be installed with the @Base set of packages. -------------------------------- For ./install_CDS.sh Resolving Dependencies --> Running transaction check ---> Package gofer.noarch 0:0.43-1.el6 will be updated ---> Package gofer.noarch 0:0.64-1.el6 will be an update ---> Package gofer-package.noarch 0:0.64-1.el6 will be installed ---> Package grinder.noarch 0:0.0.122-1.el6 will be updated ---> Package grinder.noarch 0:0.0.136-1.el6 will be an update ---> Package m2crypto.x86_64 0:0.20.2-7.el6 will be updated ---> Package m2crypto.x86_64 0:0.21.1.pulp-7.el6 will be an update ---> Package mod_wsgi.x86_64 0:3.2-3.sslpatch.el6 will be updated --> Processing Dependency: mod_wsgi = 3.2-3.sslpatch.el6 for package: pulp-0.0.214-8.el6.noarch ---> Package mod_wsgi.x86_64 0:3.3-2.pulp.el6 will be an update ---> Package pulp-cds.noarch 0:0.0.263-9.el6 will be installed ---> Package pulp-common.noarch 0:0.0.214-8.el6 will be updated --> Processing Dependency: pulp-common = 0.0.214 for package: pulp-client-0.0.214-8.el6.noarch --> Processing Dependency: pulp-common = 0.0.214 for package: pulp-0.0.214-8.el6.noarch ---> Package pulp-common.noarch 0:0.0.263-9.el6 will be an update ---> Package pulp-selinux-server.noarch 0:0.0.263-9.el6 will be installed ---> Package python-gofer.noarch 0:0.43-1.el6 will be updated ---> Package python-gofer.noarch 0:0.64-1.el6 will be an update --> Processing Dependency: PyPAM for package: python-gofer-0.64-1.el6.noarch --> Running transaction check ---> Package PyPAM.x86_64 0:0.5.0-12.el6 will be installed ---> Package mod_wsgi.x86_64 0:3.2-3.sslpatch.el6 will be updated --> Processing Dependency: mod_wsgi = 3.2-3.sslpatch.el6 for package: pulp-0.0.214-8.el6.noarch ---> Package pulp-common.noarch 0:0.0.214-8.el6 will be updated --> Processing Dependency: pulp-common = 0.0.214 for package: pulp-client-0.0.214-8.el6.noarch --> Processing Dependency: pulp-common = 0.0.214 for package: pulp-0.0.214-8.el6.noarch --> Processing Conflict: pulp-cds-0.0.263-9.el6.noarch conflicts pulp --> Finished Dependency Resolution Error: Package: pulp-client-0.0.214-8.el6.noarch (@/pulp-client-0.0.214-8.el6.noarch) Requires: pulp-common = 0.0.214 Removing: pulp-common-0.0.214-8.el6.noarch (@/pulp-common-0.0.214-8.el6.noarch) pulp-common = 0.0.214-8.el6 Updated By: pulp-common-0.0.263-9.el6.noarch (/pulp-common-0.0.263-9.el6.noarch) pulp-common = 0.0.263-9.el6 Error: Package: pulp-0.0.214-8.el6.noarch (@/pulp-0.0.214-8.el6.noarch) Requires: pulp-common = 0.0.214 Removing: pulp-common-0.0.214-8.el6.noarch (@/pulp-common-0.0.214-8.el6.noarch) pulp-common = 0.0.214-8.el6 Updated By: pulp-common-0.0.263-9.el6.noarch (/pulp-common-0.0.263-9.el6.noarch) pulp-common = 0.0.263-9.el6 Error: pulp-cds conflicts with pulp Error: Package: pulp-0.0.214-8.el6.noarch (@/pulp-0.0.214-8.el6.noarch) Requires: mod_wsgi = 3.2-3.sslpatch.el6 Removing: mod_wsgi-3.2-3.sslpatch.el6.x86_64 (@/mod_wsgi-3.2-3.sslpatch.el6.x86_64) mod_wsgi = 3.2-3.sslpatch.el6 Updated By: mod_wsgi-3.3-2.pulp.el6.x86_64 (/mod_wsgi-3.3-2.pulp.el6.x86_64) mod_wsgi = 3.3-2.pulp.el6 Available: mod_wsgi-3.2-1.el6.x86_64 (rhui-us-east-rhel-server-releases) mod_wsgi = 3.2-1.el6 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest Failed to install packages. The system needs to be installed with the @Base set of packages. Version-Release number of selected component (if applicable): How reproducible: Upgrade with RHUI 2.0.1 Steps to Reproduce: 1. 2. 3. Actual results: Fails with many dependency issues. Expected results: Upgrades should work. Additional info:
The 2.0.2 content has now been staged on the qa CDN. So, let's not worry trying to upgrade by running these scripts. To setup your RHUI to sync from the qa CDN edit /etc/rhui/rhui-tools.conf and change server_url to https://cdn.rcm-qa.redhat.com. The line should be: server_url: https://cdn.rcm-qa.redhat.com If you're using EC2 as your test hardware (I think you guys are), make sure you launch in the VPC so that you have access to that host. It's only available from the VPC or RH's internal network. You can then follow the official upgrade instructions at http://docs.redhat.com/docs/en-US/Red_Hat_Update_Infrastructure/2.0/html/Installation_Guide/chap-Installation_Guide-Updating_RHUI.html. Once you have installed the generated client config rpm on the rhua or cds itself, you need to edit /etc/yum.repos.d/rh-cloud.repo and set gpgcheck=0, since our packages are not yet signed.
Additionally, you can enable selinux after the yum update has completed, but not before.
I got a 2.0.1 setup myself just to do a smoke test of the update following the official procedure, and I did not get any of these dependency errors that you get from running the scripts. So, following the official steps, you should be able to test the update process. I did notice however that some of the config files did not get updated correctly. I will have to investigate this further, maybe a release note would suffice, or it's possible not all these files are marked as %config in the spec's.
My yum update log for reference: Running Transaction Updating : m2crypto-0.21.1.pulp-7.el6.x86_64 1/31 Updating : python-isodate-0.4.4-4.pulp.el6.noarch 2/31 Updating : pulp-common-0.0.263-9.el6.noarch 3/31 Updating : python-gofer-0.64-1.el6.noarch 4/31 Updating : gofer-0.64-1.el6.noarch 5/31 Installing : gofer-package-0.64-1.el6.noarch 6/31 Installing : pulp-client-lib-0.0.263-9.el6.noarch 7/31 Installing : pulp-consumer-0.0.263-9.el6.noarch 8/31 ln: creating symbolic link `/etc/rc.d/init.d/pulp-agent': File exists Updating : grinder-0.0.136-1.el6.noarch 9/31 Updating : python-oauth2-1.5.170-2.pulp.el6.noarch 10/31 Installing : pulp-selinux-server-0.0.263-9.el6.noarch 11/31 Installing : libmongodb-1.8.2-2.el6.x86_64 12/31 Updating : mongodb-1.8.2-2.el6.x86_64 13/31 Updating : mongodb-server-1.8.2-2.el6.x86_64 14/31 Updating : mod_wsgi-3.3-2.pulp.el6.x86_64 15/31 Updating : pulp-0.0.263-9.el6.noarch 16/31 warning: /etc/httpd/conf.d/pulp.conf created as /etc/httpd/conf.d/pulp.conf.rpmnew warning: /etc/pulp/pulp.conf created as /etc/pulp/pulp.conf.rpmnew warning: /etc/pulp/repo_auth.conf created as /etc/pulp/repo_auth.conf.rpmnew Updating : rh-rhui-tools-2.0.57-1.el6.noarch 17/31 warning: /etc/rhui/rhui-tools.conf saved as /etc/rhui/rhui-tools.conf.rpmsave Installing : pulp-admin-0.0.263-9.el6.noarch 18/31 Cleanup : pulp-0.0.214-8.el6.noarch 19/31 Cleanup : rh-rhui-tools-2.0.44-1.el6.noarch 20/31 Erasing : pulp-client-0.0.214-8.el6.noarch 21/31 warning: /etc/pulp/client.conf saved as /etc/pulp/client.conf.rpmsave Cleanup : gofer-0.43-1.el6.noarch 22/31 Cleanup : python-gofer-0.43-1.el6.noarch 23/31 Cleanup : pulp-common-0.0.214-8.el6.noarch 24/31 Cleanup : python-isodate-0.4.4-2.el6_1.noarch 25/31 Cleanup : grinder-0.0.122-1.el6.noarch 26/31 Cleanup : python-oauth2-1.2.1-3.el6_0.noarch 27/31 Cleanup : mongodb-server-1.6.4-3.el6_0.x86_64 28/31 Cleanup : mongodb-1.6.4-3.el6_0.x86_64 29/31 Cleanup : m2crypto-0.20.2-7.el6.x86_64 30/31 Cleanup : mod_wsgi-3.2-3.sslpatch.el6.x86_64 31/31 Installed products updated. Installed: pulp-admin.noarch 0:0.0.263-9.el6 pulp-client-lib.noarch 0:0.0.263-9.el6 pulp-consumer.noarch 0:0.0.263-9.el6 Dependency Installed: gofer-package.noarch 0:0.64-1.el6 libmongodb.x86_64 0:1.8.2-2.el6 pulp-selinux-server.noarch 0:0.0.263-9.el6 Updated: gofer.noarch 0:0.64-1.el6 grinder.noarch 0:0.0.136-1.el6 m2crypto.x86_64 0:0.21.1.pulp-7.el6 mod_wsgi.x86_64 0:3.3-2.pulp.el6 mongodb.x86_64 0:1.8.2-2.el6 mongodb-server.x86_64 0:1.8.2-2.el6 pulp.noarch 0:0.0.263-9.el6 pulp-common.noarch 0:0.0.263-9.el6 python-gofer.noarch 0:0.64-1.el6 python-isodate.noarch 0:0.4.4-4.pulp.el6 python-oauth2.noarch 0:1.5.170-2.pulp.el6 rh-rhui-tools.noarch 0:2.0.57-1.el6 Replaced: pulp-client.noarch 0:0.0.214-8.el6 Complete!
yum update log from the cds: Running Transaction Updating : python-gofer-0.64-1.el6.noarch 1/15 Updating : gofer-0.64-1.el6.noarch 2/15 Updating : grinder-0.0.136-1.el6.noarch 3/15 Updating : pulp-common-0.0.263-9.el6.noarch 4/15 Updating : m2crypto-0.21.1.pulp-7.el6.x86_64 5/15 Updating : mod_wsgi-3.3-2.pulp.el6.x86_64 6/15 Installing : pulp-selinux-server-0.0.263-9.el6.noarch 7/15 Updating : pulp-cds-0.0.263-9.el6.noarch 8/15 warning: /etc/pulp/cds.conf created as /etc/pulp/cds.conf.rpmnew warning: /etc/pulp/repo_auth.conf created as /etc/pulp/repo_auth.conf.rpmnew Cleanup : pulp-cds-0.0.214-8.el6.noarch 9/15 Cleanup : gofer-0.43-1.el6.noarch 10/15 Cleanup : python-gofer-0.43-1.el6.noarch 11/15 Cleanup : grinder-0.0.122-1.el6.noarch 12/15 Cleanup : pulp-common-0.0.214-8.el6.noarch 13/15 Cleanup : m2crypto-0.20.2-7.el6.x86_64 14/15 Cleanup : mod_wsgi-3.2-3.sslpatch.el6.x86_64 15/15 Installed products updated. Dependency Installed: pulp-selinux-server.noarch 0:0.0.263-9.el6 Updated: gofer.noarch 0:0.64-1.el6 grinder.noarch 0:0.0.136-1.el6 m2crypto.x86_64 0:0.21.1.pulp-7.el6 mod_wsgi.x86_64 0:3.3-2.pulp.el6 pulp-cds.noarch 0:0.0.263-9.el6 pulp-common.noarch 0:0.0.263-9.el6 python-gofer.noarch 0:0.64-1.el6 Complete!
I drafted the release notes for 2.0.2 at https://engineering.redhat.com/trac/mgmt-integrated/wiki/cloude/rhui-202-release-notes. That page details the manual configuration changes needed to complete the update to 2.0.2.
I added this to the release notes as well, but you need to run pulp-migrate and then restart the pulp-server service again after completing the official update steps.
Following are my observations and issues faced during the RHUI2.0.1 to RHUI2.0.2 upgrade. 1) yum update failed on RHUA node because of dependency issues related to a) PyPAM b) python-rhsm 2) yum update fails on CDS node because of dependency issues realted to a) PyPAM 3) Manually install the above packages on the respective nodes and proceeded. 4) Performed all the necessary steps required by following the below link https://engineering.redhat.com/trac/mgmt-integrated/wiki/cloude/rhui-202-release-notes 5) Following is the status after the upgrade a) Cannot add a RH repo , audit.log says AVC issues related to httpd b) No CDS heartbeat c) Many of the logs show OSError. Attaching related logs
Created attachment 566294 [details] rhui upgrade logs
We're going to cover this issue in the release notes for 2.0.2. We tell people to run with --disablerepo=* in the instructions because we don't want them to inadvertently do an upgrade from say RHEL 6.0 to 6.2. But, we need access to those repos for these dependencies. So, we're just going to add this additional step to the release notes so that users will know to do it.
I updated the release notes for this requirement: https://engineering.redhat.com/trac/mgmt-integrated/wiki/cloude/rhui-202-release-notes
I have done the setup by not updating to RHEL 6.2, I did use disablerepo option and only enabled the rhui2.0 repo. Also after the upgrade the rhui setup is not stable due to SELINUX issues. we have many AVC denial messages in audit.log realted to httpd.
Sorry, I didn't notice the selinux problems as well. Looking into that now.
the selinux problems are b/c nothing new requires the new rhua policy package. I add a requirement on that in the pulp rhui build. So now when pulp gets updated it will pull that package in as well. Also, the labeling of port 5674 for qpid was happening rh-rhua-config, which does not get updated unless you re-run rhui-installer. So, i switched that to happen in rh-rhua-selinux-policy, now it will happen during the update process.
Latest updates built into iso: http://download.lab.bos.redhat.com/devel/candidates/RHEL-6.2-RHUI-2.0.2-20120228.0/2.0.2/Server/x86_64/iso/RHEL-6.2-RHUI-2.0.2-20120228.0-Server-x86_64-DVD1.iso cdn.rcm-qa.redhat.com has also been updates.
I don't have the latest packages to test this bug for RHUI upgrade.
Installed products updated. Installed: pulp-admin.noarch 0:0.0.263-13.el6 pulp-client-lib.noarch 0:0.0.263-13.el6 pulp-consumer.noarch 0:0.0.263-13.el6 Dependency Installed: gofer-package.noarch 0:0.64-1.el6 libmongodb.x86_64 0:1.8.2-2.el6 pulp-selinux-server.noarch 0:0.0.263-13.el6 rh-rhua-selinux-policy.noarch 0:0.0.6-1.el6 Updated: gofer.noarch 0:0.64-1.el6 grinder.noarch 0:0.0.136-1.el6 m2crypto.x86_64 0:0.21.1.pulp-7.el6 mod_wsgi.x86_64 0:3.3-2.pulp.el6 mongodb.x86_64 0:1.8.2-2.el6 mongodb-server.x86_64 0:1.8.2-2.el6 pulp.noarch 0:0.0.263-13.el6 pulp-common.noarch 0:0.0.263-13.el6 python-gofer.noarch 0:0.64-1.el6 python-isodate.noarch 0:0.4.4-4.pulp.el6 python-oauth2.noarch 0:1.5.170-2.pulp.el6 rh-rhui-tools.noarch 0:2.0.60-1.el6 Replaced: pulp-client.noarch 0:0.0.214-8.el6 Complete! Package upgradations are now successful for both RHUA and CDS nodes
Released in RHUI 2.0.2