Bug 1199674 - katello-installer --reset always fails
Summary: katello-installer --reset always fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Mike McCune
QA Contact: Kedar Bidarkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-06 23:56 UTC by Mike McCune
Modified: 2019-04-16 14:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 05:29:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
katello logs (262.06 KB, application/x-gzip)
2015-03-20 19:00 UTC, Jacob Hunt
no flags Details
foreman-debug (265.78 KB, application/x-xz)
2015-03-20 19:01 UTC, Jacob Hunt
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1592 0 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 09:04:35 UTC

Description Mike McCune 2015-03-06 23:56:34 UTC
If you run:

# katello-installer --reset 

you get an error:

foreman_bootdisk: skipping engine hook (PGError: ERROR: relation "template_kinds" does not exist
LINE 4: WHERE a.attrelid = '"template_kinds"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"template_kinds"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
)

this is because we are missing this commit from upstream:

https://github.com/theforeman/puppet-foreman/pull/277

need to get this backported.

Comment 2 Elyézer Rezende 2015-03-13 21:47:47 UTC
The error that I face every time I use --reset is:

 /usr/share/foreman/script/foreman-rake config --      -k ssl_ca_file -v '/etc/foreman/proxy_ca.pem'      -k ssl_certificate -v '/etc/foreman/client_cert.pem'      -k ssl_priv_key -v '/etc/foreman/client_key.pem' returned 1 instead of one of [0]
 /Stage[main]/Certs::Foreman/Exec[foreman_certs_config]/returns: change from notrun to 0 failed: /usr/share/foreman/script/foreman-rake config --      -k ssl_ca_file -v '/etc/foreman/proxy_ca.pem'      -k ssl_certificate -v '/etc/foreman/client_cert.pem'      -k ssl_priv_key -v '/etc/foreman/client_key.pem' returned 1 instead of one of [0]
 /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[sat6.example.com]: Could not evaluate: 500 Internal Server Error

Last time I tried was in the Satellite-6.1.0-RHEL-7-20150311.0 build.

Comment 3 Mike McCune 2015-03-13 21:55:31 UTC
we have a fix for this, just needs merging

Comment 5 Justin Garrison 2015-03-17 23:07:18 UTC
I have the same error on a fresh installation (without --reset) with rhel 7.* I'm assuming the proposed fix would solve both cases but I thought I'd mention it here anyway.

Comment 9 Jacob Hunt 2015-03-20 19:00:33 UTC
Created attachment 1004615 [details]
katello logs

Comment 10 Jacob Hunt 2015-03-20 19:01:15 UTC
Created attachment 1004616 [details]
foreman-debug

Comment 13 Kedar Bidarkar 2015-03-26 10:26:43 UTC
VERIFIED with Satellite-6.1.0-RHEL-7-20150317.0


[root@xyz ~]# katello-installer --reset
Redirecting to /bin/systemctl stop  httpd.service
Installing             Done                                               [100%] [..........................................................................................................]
  Success!
  * Katello is running at https://xyz.redhat.com
      Initial credentials are admin / sP5TirsxeesiaQnH
  * Capsule is running at https://xyz.redhat.com:9090
  * 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/katello-installer/katello-installer.log
[root@xyz ~]# cat /etc/yum/vars/composeid 
Satellite-6.1.0-RHEL-7-20150317.0

Comment 14 Bryan Kearney 2015-08-11 13:24:10 UTC
This bug is slated to be released with Satellite 6.1.

Comment 15 errata-xmlrpc 2015-08-12 05:29:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:1592


Note You need to log in before you can comment on or make changes to this bug.