Project

General

Profile

Bug #8999

katello-installer --reset errors on foreman-config

Added by Justin Sherrill over 6 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
High
Category:
Installer
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
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.

Associated revisions

Revision fac13fac (diff)
Added by Justin Sherrill over 6 years ago

refs #8999 - pegging foreman and puppet modules for apache 1.1.1

Revision d670e8bc
Added by Justin Sherrill over 6 years ago

Merge pull request #171 from jlsherrill/8999

refs #8999,#9204,#9163 - updating foreman, service_wait, puppet, certs modules

History

#1 Updated by Eric Helms over 6 years ago

  • Target version changed from 63 to 66

#2 Updated by The Foreman Bot over 6 years ago

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

#3 Updated by Eric Helms over 6 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF