Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1055007

Summary: 'rake seed_with_logging' fails during fresh install of katello 1.4 on fedora 19
Product: Red Hat Satellite Reporter: Kris Knigga <kris+bugzilla>
Component: InfrastructureAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: NightlyCC: bkearney, kris+bugzilla
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
URL: http://projects.theforeman.org/issues/6068
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-04 17:51:39 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
katello debug script output none

Description Kris Knigga 2014-01-17 23:05:41 UTC
Created attachment 851873 [details]
katello debug script output

Description of problem:
'katello-configure --user-pass=admin' fails to complete on fresh, fully-updated Fedora 19 installation.  main.log shows:

140117-15:33:41 Debug: Exec[katello_seed_db](provider=posix): Executing '/usr/bin/rake seed_with_logging --trace --verbose > /var/log/katello/katello-configure/db_seed.log 2>&1 && touch /var/lib/katello/db_seed_done'
140117-15:33:41 Debug: Executing '/usr/bin/rake seed_with_logging --trace --verbose > /var/log/katello/katello-configure/db_seed.log 2>&1 && touch /var/lib/katello/db_seed_done'
140117-15:33:53 Error: /usr/bin/rake seed_with_logging --trace --verbose > /var/log/katello/katello-configure/db_seed.log 2>&1 && touch /var/lib/katello/db_seed_done returned 1 instead of one of [0]
140117-15:33:53 Error: /Stage[main]/Katello::Config/Exec[katello_seed_db]/returns: change from notrun to 0 failed: /usr/bin/rake seed_with_logging --trace --verbose > /var/log/katello/katello-configure/db_seed.log 2>&1 && touch /var/lib/katello/db_seed_done returned 1 instead of one of [0]

A re-run doesn't help.


How reproducible:
Very.


Steps to Reproduce:
1.  Install F19 (including setting up networking and name resolution)
2.  yum -y update
3.  yum -y install http://fedorapeople.org/groups/katello/releases/yum/1.4/Fedora/19/x86_64/katello-repos-1.4.4-1.fc19.noarch.rpm postgresql-server
4.  postgresql-setup initdb && service postgresql start
5.  yum install -y katello-foreman-all
6.  Disable selinux by editing /etc/sysconfig/selinux and rebooting
7.  katello-configure --user-pass=admin

Actual results:
Installation fails

Expected results:
Installation completes

Additional info:

Comment 1 Bryan Kearney 2014-01-21 19:07:11 UTC
Moving to Sat6 to be tracked there. Upstream bugs are moving to redmine.

Comment 2 RHEL Program Management 2014-01-21 19:17:15 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 5 Kris Knigga 2014-01-22 16:45:29 UTC
After some more digging I found that the installer is trying to reach Pulp through our corporate web proxy.

From /var/log/katello/production.log:
[ERROR 2014-01-17 15:33:53 pulp_rest  #3156] RestClient.post "https://katellohost.workdomain.com/pulp/api/v2/users/" ...
...
 | For assistance, contact support at <A href='support?subject=Proxy Error: dns_unresolved_hostname Financial Services for ssl://katellohost.workdomain.com:443/, Client IP: 10.97.3.15 '>support</a>
...

This means the installer is checking the environment variables $http_proxy and $https_proxy (or $HTTP_PROXY and $HTTPS_PROXY) I have set, but not $no_proxy (or $NO_PROXY).

Here is what I have set:

proxy=http://10.97.16.4:8080
export HTTP_PROXY=${proxy}
export http_proxy=${proxy}
export HTTPS_PROXY=${proxy}
export https_proxy=${proxy}
export NO_PROXY="localhost, 127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16, 10.97.3.15/32, katellohost.workdomain.com, katellohost"
export no_proxy=${NO_PROXY}

Comment 6 Bryan Kearney 2014-06-04 17:51:19 UTC
Created redmine issue http://projects.theforeman.org/issues/6068 from this bug

Comment 7 Bryan Kearney 2014-06-04 17:51:39 UTC
tracking this upstream only.