Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1649071

Summary: [RHEL 7.6] set tomcat_can_network_connect_db to 'on'
Product: [Community] Candlepin (Migrated to Jira) Reporter: Jan Jansky <jjansky>
Component: candlepinAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 0.9.23CC: khowell, lzap, redakkan, skallesh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-29 16:54:46 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:

Description Jan Jansky 2018-11-12 20:44:30 UTC
Description of problem:
If Satellite is installed (tested on 6.2.15) on RHEL 7.6, installation will fail with 

 /usr/bin/wget --no-proxy --timeout=30 --tries=40 --wait=20 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init > /var/log/candlepin/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done returned 8 instead of one of [0]
 /Stage[main]/Candlepin::Service/Exec[cpinit]/returns: change from notrun to 0 failed: /usr/bin/wget --no-proxy --timeout=30 --tries=40 --wait=20 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init > /var/log/candlepin/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done returned 8 instead of one of [0]
 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
 /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[<hostname>]: Failed to call refresh: Proxy <hostname >cannot be registered (ApipieBindings::MissingArgumentsError: id): N/A
 /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[<hostname>]: Proxy <hostname> cannot be registered (ApipieBindings::MissingArgumentsError: id): N/A



Version-Release number of selected component (if applicable):
Satellite 6.2.z possibly newer on RHEL 7.6


How reproducible:
always


Steps to Reproduce:
1. install fresh RHEL 7.6
2. yum install satellite
3.
satellite-installer --scenario satellite \
--foreman-initial-organization "Default Organization" \
--foreman-initial-location "Default Location" \
--foreman-admin-username admin \
--foreman-admin-password admin \
--foreman-proxy-dns-managed=false \
--foreman-proxy-dhcp-managed=false

Actual results:
 /usr/bin/wget --no-proxy --timeout=30 --tries=40 --wait=20 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init > /var/log/candlepin/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done returned 8 instead of one of [0]
 /Stage[main]/Candlepin::Service/Exec[cpinit]/returns: change from notrun to 0 failed: /usr/bin/wget --no-proxy --timeout=30 --tries=40 --wait=20 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init > /var/log/candlepin/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done returned 8 instead of one of [0]
 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
 /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[<hostname>]: Failed to call refresh: Proxy <hostname >cannot be registered (ApipieBindings::MissingArgumentsError: id): N/A
 /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[<hostname>]: Proxy <hostname> cannot be registered (ApipieBindings::MissingArgumentsError: id): N/A
Installing             Done                                               [100%] [...............................................................................................................................]
  Something went wrong! Check the log for ERROR-level output
  The full log is at /var/log/foreman-installer/satellite.log

Expected results:
Installing             Done                                               [100%] [...............................................................................................................................]
  Success!
  * Satellite is running at https://tparhesatp001.enterprisenet.org
      Initial credentials are admin / admin
  * To install additional capsule on separate machine continue by running:

      capsule-certs-generate --capsule-fqdn "$CAPSULE" --certs-tar "~/$CAPSULE-certs.tar"

  The full log is at /var/log/foreman-installer/satellite.log


Additional info:
when `setsebool -P tomcat_can_network_connect_db 1` result as "Expected results"

Setting high severity because it can hit all Satellite 6 versions on RHEL 7.6, tested only with 6.2.15.

Similar to bugzilla for Satellite 5 (https://bugzilla.redhat.com/show_bug.cgi?id=1645531)

Found Solution https://access.redhat.com/solutions/3673781

Comment 2 Kevin Howell 2018-11-29 16:54:46 UTC

*** This bug has been marked as a duplicate of bug 1615806 ***