Project

General

Profile

Actions

Bug #8999

closed

katello-installer --reset errors on foreman-config

Added by Justin Sherrill almost 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Category:
Installer
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Currently when running katello-installer --reset it will fail on el7:

[DEBUG 2015-01-15 16:39:18 main]  Exec[foreman_certs_config](provider=posix): Executing check '/usr/share/foreman/script/foreman-config      -k ssl_ca_file -v '/e
tc/foreman/proxy_ca.pem'      -k ssl_certificate -v '/etc/foreman/client_cert.pem'      -k ssl_priv_key -v '/etc/foreman/client_key.pem' --dry-run'
[DEBUG 2015-01-15 16:39:18 main]  Executing '/usr/share/foreman/script/foreman-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' --dry-run'
[DEBUG 2015-01-15 16:39:41 main]  /Stage[main]/Certs::Foreman/Exec[foreman_certs_config]/unless: foreman-config script is deprecated. Please consider using `forem
an-rake config` instead
[DEBUG 2015-01-15 16:39:41 main]  /Stage[main]/Certs::Foreman/Exec[foreman_certs_config]/unless: rake aborted!
[DEBUG 2015-01-15 16:39:41 main]  /Stage[main]/Certs::Foreman/Exec[foreman_certs_config]/unless: PGError: ERROR:  relation "settings" does not exist
[DEBUG 2015-01-15 16:39:41 main]  /Stage[main]/Certs::Foreman/Exec[foreman_certs_config]/unless: LINE 4:              WHERE a.attrelid = '"settings"'::regclass
[DEBUG 2015-01-15 16:39:41 main]  /Stage[main]/Certs::Foreman/Exec[foreman_certs_config]/unless:                                         ^
[DEBUG 2015-01-15 16:39:41 main]  /Stage[main]/Certs::Foreman/Exec[foreman_certs_config]/unless: :             SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
[DEBUG 2015-01-15 16:39:41 main]  /Stage[main]/Certs::Foreman/Exec[foreman_certs_config]/unless:               FROM pg_attribute a LEFT JOIN pg_attrdef d
[DEBUG 2015-01-15 16:39:41 main]  /Stage[main]/Certs::Foreman/Exec[foreman_certs_config]/unless:                 ON a.attrelid = d.adrelid AND a.attnum = d.adnum
[DEBUG 2015-01-15 16:39:41 main]  /Stage[main]/Certs::Foreman/Exec[foreman_certs_config]/unless:              WHERE a.attrelid = '"settings"'::regclass
[DEBUG 2015-01-15 16:39:41 main]  /Stage[main]/Certs::Foreman/Exec[foreman_certs_config]/unless:                AND a.attnum > 0 AND NOT a.attisdropped
[DEBUG 2015-01-15 16:39:41 main]  /Stage[main]/Certs::Foreman/Exec[foreman_certs_config]/unless:              ORDER BY a.attnum

It seems that foreman_certs_config is not verifying that the db has been migrated before running.

Actions #1

Updated by Eric Helms almost 10 years ago

  • Target version changed from 63 to 66
Actions #2

Updated by The Foreman Bot almost 10 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-installer/pull/171 added
  • Pull request deleted ()
Actions #3

Updated by Eric Helms almost 10 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF