Bug 1299317

Summary: Setting up capsule on rhel7 is failing - capsule-installer
Product: Red Hat Satellite Reporter: Tazim Kolhar <tkolhar>
Component: Foreman ProxyAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WORKSFORME QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.6CC: bkearney, chrobert, cwelton, mmccune
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-23 13:50:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
capsule-installer log file attached none

Description Tazim Kolhar 2016-01-18 06:00:10 UTC
Created attachment 1115752 [details]
capsule-installer log file attached

Description of problem:
Setting up capsule on rhel7 is failing - capsule-installer

Version-Release number of selected component (if applicable):
# rpm -qa | grep foreman
hp-dl180g6-01.rhts.eng.bos.redhat.com-foreman-proxy-1.0-1.noarch
ruby193-rubygem-foreman_hooks-0.3.7-2.el7sat.noarch
foreman-vmware-1.7.2.50-1.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3.5-1.el7sat.noarch
foreman-selinux-1.7.2.17-1.el7sat.noarch
ruby193-rubygem-foreman_bootdisk-4.0.2.14-1.el7sat.noarch
foreman-ovirt-1.7.2.50-1.el7sat.noarch
foreman-1.7.2.50-1.el7sat.noarch
ruby193-rubygem-foreman_docker-1.2.0.24-1.el7sat.noarch
ruby193-rubygem-foreman-tasks-0.6.15.7-1.el7sat.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2.7-1.el7sat.noarch
rubygem-hammer_cli_foreman_docker-0.0.3.10-1.el7sat.noarch
foreman-debug-1.7.2.50-1.el7sat.noarch
foreman-proxy-1.7.2.8-1.el7sat.noarch
hp-dl180g6-01.rhts.eng.bos.redhat.com-foreman-client-1.0-1.noarch
hp-dl180g6-01.rhts.eng.bos.redhat.com-foreman-proxy-client-1.0-1.noarch
foreman-discovery-image-3.0.5-3.el7sat.noarch
ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el7sat.noarch
foreman-libvirt-1.7.2.50-1.el7sat.noarch
foreman-gce-1.7.2.50-1.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.4.15-1.el7sat.noarch
ruby193-rubygem-foreman_discovery-2.0.0.23-1.el7sat.noarch
foreman-postgresql-1.7.2.50-1.el7sat.noarch
foreman-compute-1.7.2.50-1.el7sat.noarch
ruby193-rubygem-foreman-redhat_access-0.2.4-1.el7sat.noarch
rubygem-hammer_cli_foreman_discovery-0.0.1.10-1.el7sat.noarch


How reproducible:
everytime

Steps to Reproduce:
1. capsule-installer --parent-fqdn "hp-dl180g6-01.rhts.eng.bos.redhat.com" --register-in-foreman "true" --foreman-oauth-key "2yiYd2rJkGqAbBi2H2fb6QXvjAAd5iKY" --foreman-oauth-secret "P3DNyP4tAzugB9oA93gsv3qT7PorBVas" --pulp-oauth-secret "GLdh2jjEMzub7onDj5pBfKETbvtkjPwj" --certs-tar "/root/intel-waimeabay-hedt-01.ml3.eng.bos.redhat.com-certs.tar" --puppet "true" --puppetca "true" --pulp "true"
Installing             Info: START 379                                    [0%] [Installing             Debug: /Stage[main]/Apache::Mod::Cgi/Apache::Mod[c [0%] [Installing             Debug: /Stage[main]/Apache::Default_mods/Apache::M [0%] [Installing             Info: Applying configuration version '1453093196'  [0%] [Installing             Debug: Executing '/usr/bin/rpm -q pulp-katello --n [0%] [Installing             Debug: Package[pulp-katello](provider=yum): Ensuri [0%] [ Execution of '/usr/bin/yum -d 0 -e 0 -y install pulp-katello' returned 1: Error: Package: python-webpy-0.37-3.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Error: Execution of '/usr/bin/yum -d 0 -e 0 -y ins [0%] [ Package: python-nectar-1.3.4-1.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 Package: libdb-cxx-5.3.21-19.el7.x86_64 (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 /Stage[main]/Pulp::Child::Install/Package[pulp-katello]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install pulp-katello' returned 1: Error: Package: python-webpy-0.37-3.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 Package: python-nectar-1.3.4-1.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 Package: libdb-cxx-5.3.21-19.el7.x86_64 (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Debug: Package[mongodb_client](provider=yum): Ensu [1%] [ Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install mongodb-2.4.9-3.el7sat' returned 1: Error: Package: mongodb-2.4.9-3.el7sat.x86_64 (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Error: Could not update: Execution of '/usr/bin/yu [1%] [ /Stage[main]/Mongodb::Client::Install/Package[mongodb_client]/ensure: change from absent to 2.4.9-3.el7sat failed: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install mongodb-2.4.9-3.el7sat' returned 1: Error: Package: mongodb-2.4.9-3.el7sat.x86_64 (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Info: RESOURCE Package[katello-debug]              [6%] [Installing             Debug: Package[mongodb_server](provider=yum): Ensu [8%] [ Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install mongodb-server-2.4.9-3.el7sat' returned 1: Error: Package: mongodb-server-2.4.9-3.el7sat.x86_64 (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Error: Could not update: Execution of '/usr/bin/yu [8%] [ /Stage[main]/Mongodb::Server::Install/Package[mongodb_server]/ensure: change from absent to 2.4.9-3.el7sat failed: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install mongodb-server-2.4.9-3.el7sat' returned 1: Error: Package: mongodb-server-2.4.9-3.el7sat.x86_64 (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Info: RESOURCE File[/var/lib/puppet/yaml]          [15%] Installing             Info: RESOURCE File[expires.load]                  [24%] Installing             Info: RESOURCE File[auth_basic.load]               [37%] Installing             Info: RESOURCE Apache::Mod[headers]                [50%] Installing             Info: RESOURCE Apache::Mod[proxy_http]             [57%] Installing             Debug: Package[pulp-nodes-child](provider=yum): En [58%]  Execution of '/usr/bin/yum -d 0 -e 0 -y install pulp-nodes-child' returned 1: Error: Package: python-webpy-0.37-3.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Error: Execution of '/usr/bin/yum -d 0 -e 0 -y ins [58%]  Package: python-nectar-1.3.4-1.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 /Stage[main]/Pulp::Child::Install/Package[pulp-nodes-child]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install pulp-nodes-child' returned 1: Error: Package: python-webpy-0.37-3.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 Package: python-nectar-1.3.4-1.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Notice: /Stage[main]/Certs/Ca[katello-default-ca]/ [60%] Installing             Notice: /Stage[main]/Certs::Puppet/Cert[intel-waim [60%]  Could not set 'present' on ensure: No such file or directory - /etc/pki/pulp/ca.crt at 29:/usr/share/katello-installer/modules/certs/manifests/pulp_child.pp
 Could not set 'present' on ensure: No such file or directory - /etc/pki/pulp/ca.crt at 29:/usr/share/katello-installer/modules/certs/manifests/pulp_child.pp
 /Stage[main]/Certs::Pulp_child/Pubkey[/etc/pki/pulp/ca.crt]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - /etc/pki/pulp/ca.crt at 29:/usr/share/katello-installer/modules/certs/manifests/pulp_child.pp
Installing             Notice: /Stage[main]/Certs/Ca[katello-server-ca]/e [61%]  Could not set 'present' on ensure: No such file or directory - /etc/pki/pulp/server_ca.crt at 37:/usr/share/katello-installer/modules/certs/manifests/pulp_child.pp
 Could not set 'present' on ensure: No such file or directory - /etc/pki/pulp/server_ca.crt at 37:/usr/share/katello-installer/modules/certs/manifests/pulp_child.pp
 /Stage[main]/Certs::Pulp_child/Pubkey[/etc/pki/pulp/server_ca.crt]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - /etc/pki/pulp/server_ca.crt at 37:/usr/share/katello-installer/modules/certs/manifests/pulp_child.pp
Installing             Notice: /Stage[main]/Certs::Apache/Cert[intel-waim [61%] Installing             Notice: /Stage[main]/Certs::Qpid_router/Cert[intel [62%] Installing             Notice: /Stage[main]/Certs::Pulp_child/Cert[intel- [63%] Installing             Notice: /Stage[main]/Certs::Qpid_router/Cert[intel [64%]  Could not set 'present' on ensure: No such file or directory - /etc/pki/pulp/ssl_apache.crt at 42:/usr/share/katello-installer/modules/certs/manifests/pulp_child.pp
 Could not set 'present' on ensure: No such file or directory - /etc/pki/pulp/ssl_apache.crt at 42:/usr/share/katello-installer/modules/certs/manifests/pulp_child.pp
 /Stage[main]/Certs::Pulp_child/Pubkey[/etc/pki/pulp/ssl_apache.crt]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - /etc/pki/pulp/ssl_apache.crt at 42:/usr/share/katello-installer/modules/certs/manifests/pulp_child.pp
 Could not set 'present' on ensure: No such file or directory - /etc/pki/pulp/ssl_apache.key at 47:/usr/share/katello-installer/modules/certs/manifests/pulp_child.pp
 Could not set 'present' on ensure: No such file or directory - /etc/pki/pulp/ssl_apache.key at 47:/usr/share/katello-installer/modules/certs/manifests/pulp_child.pp
 /Stage[main]/Certs::Pulp_child/Privkey[/etc/pki/pulp/ssl_apache.key]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - /etc/pki/pulp/ssl_apache.key at 47:/usr/share/katello-installer/modules/certs/manifests/pulp_child.pp
Installing             Notice: /Stage[main]/Certs/Pubkey[/etc/pki/katello [69%] Installing             Notice: /Stage[main]/Certs::Qpid/Cert[intel-waimea [71%] Installing             Notice: /Stage[main]/Certs::Qpid/Exec[create-nss-d [75%] Installing             Notice: /Stage[main]/Certs::Qpid/Exec[add-private- [77%] Installing             Debug: Executing '/usr/bin/systemctl is-enabled qp [77%] Installing             Debug: Package[pulp-rpm-plugins](provider=yum): En [77%]  Execution of '/usr/bin/yum -d 0 -e 0 -y install pulp-rpm-plugins' returned 1: Error: Package: python-webpy-0.37-3.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Error: Execution of '/usr/bin/yum -d 0 -e 0 -y ins [77%]  Package: python-nectar-1.3.4-1.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 /Stage[main]/Pulp::Install/Package[pulp-rpm-plugins]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install pulp-rpm-plugins' returned 1: Error: Package: python-webpy-0.37-3.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 Package: python-nectar-1.3.4-1.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Debug: Package[pulp-server](provider=yum): Ensurin [78%]  Execution of '/usr/bin/yum -d 0 -e 0 -y install pulp-server' returned 1: Error: Package: python-webpy-0.37-3.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Error: Execution of '/usr/bin/yum -d 0 -e 0 -y ins [78%]  Package: python-nectar-1.3.4-1.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 /Stage[main]/Pulp::Install/Package[pulp-server]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install pulp-server' returned 1: Error: Package: python-webpy-0.37-3.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 Package: python-nectar-1.3.4-1.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Debug: Package[pulp-docker-plugins](provider=yum): [78%]  Execution of '/usr/bin/yum -d 0 -e 0 -y install pulp-docker-plugins' returned 1: Error: Package: python-webpy-0.37-3.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Error: Execution of '/usr/bin/yum -d 0 -e 0 -y ins [78%]  Package: python-nectar-1.3.4-1.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 /Stage[main]/Pulp::Install/Package[pulp-docker-plugins]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install pulp-docker-plugins' returned 1: Error: Package: python-webpy-0.37-3.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 Package: python-nectar-1.3.4-1.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Debug: Package[pulp-nodes-parent](provider=yum): E [78%]  Execution of '/usr/bin/yum -d 0 -e 0 -y install pulp-nodes-parent' returned 1: Error: Package: python-webpy-0.37-3.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Error: Execution of '/usr/bin/yum -d 0 -e 0 -y ins [78%]  Package: python-nectar-1.3.4-1.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 /Stage[main]/Pulp::Install/Package[pulp-nodes-parent]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install pulp-nodes-parent' returned 1: Error: Package: python-webpy-0.37-3.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 Package: python-nectar-1.3.4-1.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Debug: Package[pulp-selinux](provider=yum): Ensuri [78%] Installing             Notice: /Stage[main]/Pulp::Install/Package[pulp-se [78%] Installing             Debug: Package[pulp-puppet-plugins](provider=yum): [79%]  Execution of '/usr/bin/yum -d 0 -e 0 -y install pulp-puppet-plugins' returned 1: Error: Package: python-webpy-0.37-3.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
Installing             Error: Execution of '/usr/bin/yum -d 0 -e 0 -y ins [79%]  Package: python-nectar-1.3.4-1.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 /Stage[main]/Pulp::Install/Package[pulp-puppet-plugins]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install pulp-puppet-plugins' returned 1: Error: Package: python-webpy-0.37-3.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 Package: python-nectar-1.3.4-1.el7sat.noarch (Default_Organization_capsule_rhel7_capsule_rhel7_repo)
 /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]: Failed to call refresh: Could not find command 'pulp-manage-db'
 /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]: Could not find command 'pulp-manage-db'
Installing             Notice: /Stage[main]/Pulp::Config/Exec[selinux_pul [79%]  /Stage[main]/Pulp::Config/Exec[migrate_again]: Failed to call refresh: Could not find command 'pulp-manage-db'
 /Stage[main]/Pulp::Config/Exec[migrate_again]: Could not find command 'pulp-manage-db'
Installing             Debug: /File[/etc/httpd/conf.d/filter.load]/seluse [80%] Installing             Debug: /File[/etc/httpd/conf.d/wsgi.load]/selrange [80%] Installing             Notice: /Stage[main]/Certs::Foreman_proxy/Cert[int [81%] Installing             Notice: /Stage[main]/Certs::Foreman_proxy/Cert[int [81%] Installing             Info: RESOURCE File[/etc/puppet/environments]      [90%] Installing             Info: RESOURCE Foreman_proxy::Settings_file[settin [94%] Installing             Notice: /Stage[main]/Capsule::Reverse_proxy/Apache [99%] Installing             Notice: /Stage[main]/Certs::Katello/File[/var/www/ [99%] Installing             Notice: /Stage[main]/Capsule::Dispatch_router/Qpid [99%] Installing             Notice: /Stage[main]/Certs::Katello/Certs_bootstra [99%] Installing             Debug: Executing '/usr/bin/systemctl is-enabled fo [99%] Installing             Notice: /Stage[main]/Foreman_proxy::Register/Forem [99%] Installing             Notice: /Stage[main]/Foreman_proxy::Register/Forem [99%] Installing             Debug: Stored state in 0.09 seconds                [99%] Installing             Done                                               [100%]Installing             Done                                               [100%] []
  Something went wrong! Check the log for ERROR-level output
  The full log is at /var/log/capsule-installer/capsule-installer.log



2.
3.

Actual results:
capsule setup on rhel7 failed

Expected results:
capsule setup on rhel7 worked

Additional info:
capsule-installer log file attached

Comment 2 Mike McCune 2016-01-18 19:30:20 UTC
Looks like an issue with dependencies in your repos, try:

# yum install mongodb

from the Capsule. Note the errors.

Check to make sure you have the *FULL* RHEL 7Server repo synced to your Satellite with all ~10,000 package synced to your Satellite.