Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1199674 - katello-installer --reset always fails
katello-installer --reset always fails
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Installer (Show other bugs)
6.1.0
Unspecified Unspecified
unspecified Severity high (vote)
: Unspecified
: Unused
Assigned To: Mike McCune
Kedar Bidarkar
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-06 18:56 EST by Mike McCune
Modified: 2017-02-23 15:22 EST (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-12 01:29:17 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1592 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 05:04:35 EDT

  None (edit)
Description Mike McCune 2015-03-06 18:56:34 EST
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 17:47:47 EDT
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 17:55:31 EDT
we have a fix for this, just needs merging
Comment 5 Justin Garrison 2015-03-17 19:07:18 EDT
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 15:00:33 EDT
Created attachment 1004615 [details]
katello logs
Comment 10 Jacob Hunt 2015-03-20 15:01:15 EDT
Created attachment 1004616 [details]
foreman-debug
Comment 13 Kedar Bidarkar 2015-03-26 06:26:43 EDT
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 09:24:10 EDT
This bug is slated to be released with Satellite 6.1.
Comment 15 errata-xmlrpc 2015-08-12 01:29:17 EDT
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.