Project

General

Profile

Feature #6338

katello-installer: support installing foreman/katello RPMs through installer

Added by Jorick Astrego about 5 years ago. Updated about 1 year ago.

Status:
Assigned
Priority:
Normal
Assignee:
Category:
Installer
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

While running katello-installer -i, I get the following error:

[ERROR 2014-06-23 14:32:22 main] /File[/etc/pki/katello]/ensure: change from absent to directory failed: Could not set 'directory on ensure: Could not find group foreman at /usr/share/katello-installer/modules/certs/manifests/config.pp:9

rpm -qa|grep katello

katello-repos-1.5.1-1.git.14.0868bd1.el6.noarch
katello-installer-0.0.19-1.201406191542gita546284.el6.noarch


Related issues

Related to Katello - Bug #9959: permissions failures during installerNew2015-03-31
Related to Katello - Bug #9960: db migrate failNew2015-03-31
Related to Katello - Bug #9962: db seed failsNew2015-03-31

History

#1 Updated by Jorick Astrego about 5 years ago

[ INFO 2014-06-23 14:32:22 main] RESOURCE File[/etc/pki/katello]
[ WARN 2014-06-23 14:32:22 main] /File[/etc/pki/katello/private]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:32:22 main] /File[/etc/pki/katello/private]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:32:22 main] /File[/etc/pki/katello/certs]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:32:22 main] /File[/etc/pki/katello/certs]: Skipping because of failed dependencies

#2 Updated by Jorick Astrego about 5 years ago

And this messes up the complete installation:

[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Certs::Pulp_parent/Cert[katello01.netbulae.mgmt-qpid-client-cert]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Certs::Pulp_parent/Cert[katello01.netbulae.mgmt-qpid-client-cert]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Certs::Pulp_parent/Key_bundle[/etc/pki/katello/qpid_client_striped.crt]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Certs::Pulp_parent/Key_bundle[/etc/pki/katello/qpid_client_striped.crt]: Skipping because of failed dependencies
[DEBUG 2014-06-23 14:58:23 main] Class[Qpid::Service]: The container Stage[main] will propagate my refresh event
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Certs::Pulp_parent/Cert[katello01.netbulae.mgmt-parent-cert]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Certs::Pulp_parent/Cert[katello01.netbulae.mgmt-parent-cert]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pki/pulp/nodes]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pki/pulp/nodes]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Certs::Pulp_parent/Key_bundle[/etc/pki/pulp/nodes/node.crt]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Certs::Pulp_parent/Key_bundle[/etc/pki/pulp/nodes/node.crt]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pki/katello/qpid_client_striped.crt]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pki/katello/qpid_client_striped.crt]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Pulp::Install/Package[pulp-rpm-plugins]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Pulp::Install/Package[pulp-rpm-plugins]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Pulp::Install/Package[pulp-server]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Pulp::Install/Package[pulp-server]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Pulp::Install/Package[pulp-nodes-parent]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Pulp::Install/Package[pulp-nodes-parent]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Pulp::Install/Package[pulp-selinux]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Pulp::Install/Package[pulp-selinux]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Pulp::Install/Package[pulp-puppet-plugins]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Pulp::Install/Package[pulp-puppet-plugins]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /File[/etc/httpd/conf.d/pulp.conf]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /File[/etc/httpd/conf.d/pulp.conf]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pulp/server.conf]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pulp/server.conf]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pulp/server/plugins.conf.d/puppet_importer.json]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pulp/server/plugins.conf.d/puppet_importer.json]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /File[/etc/httpd/conf.d/pulp_puppet.conf]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /File[/etc/httpd/conf.d/pulp_puppet.conf]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /File[/var/lib/pulp/packages]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /File[/var/lib/pulp/packages]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Pulp::Config/Exec[setup-crl-symlink]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /Stage[main]/Pulp::Config/Exec[setup-crl-symlink]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /File[/etc/httpd/conf.d/pulp_rpm.conf]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /File[/etc/httpd/conf.d/pulp_rpm.conf]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pulp/server/plugins.conf.d/yum_importer.json]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pulp/server/plugins.conf.d/yum_importer.json]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /File[/etc/httpd/conf.d/pulp_nodes.conf]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /File[/etc/httpd/conf.d/pulp_nodes.conf]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pulp/repo_auth.conf]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pulp/repo_auth.conf]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pki/pulp/content/pulp-global-repo.ca]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pki/pulp/content/pulp-global-repo.ca]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pulp/server/plugins.conf.d/iso_importer.json]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:23 main] /File[/etc/pulp/server/plugins.conf.d/iso_importer.json]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:24 main] /Stage[main]/Pulp::Service/Service[pulp_celerybeat]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:24 main] /Stage[main]/Pulp::Service/Service[pulp_celerybeat]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:24 main] /Stage[main]/Pulp::Service/Service[pulp_resource_manager]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:24 main] /Stage[main]/Pulp::Service/Service[pulp_resource_manager]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:24 main] /Stage[main]/Pulp::Service/Service[pulp_workers]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:24 main] /Stage[main]/Pulp::Service/Service[pulp_workers]: Skipping because of failed dependencies
[ WARN 2014-06-23 14:58:24 main] /Stage[main]/Apache::Service/Service[httpd]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:24 main] /Stage[main]/Apache::Service/Service[httpd]: Skipping because of failed dependencies
[DEBUG 2014-06-23 14:58:24 main] Service[httpd](provider=service_wait): Executing '/usr/share/katello-installer/modules/service_wait/bin/service-wait httpd status'
[DEBUG 2014-06-23 14:58:24 main] /Stage[main]/Apache::Service/Service[httpd]: Skipping restart; service is not running
[ WARN 2014-06-23 14:58:24 main] /Stage[main]/Apache::Service/Service[httpd]: Triggered 'refresh' from 63 events
[DEBUG 2014-06-23 14:58:24 main] /Stage[main]/Apache::Service/Service[httpd]: The container Class[Apache::Service] will propagate my refresh event
[DEBUG 2014-06-23 14:58:24 main] Class[Apache::Service]: The container Stage[main] will propagate my refresh event
[ WARN 2014-06-23 14:58:24 main] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Dependency File[/etc/pki/katello] has failures: true
[ WARN 2014-06-23 14:58:24 main] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Skipping because of failed dependencies

After cleaning up the install and running it again, it works because the group foreman has already been created by the previous failed install.

#3 Updated by Eric Helms about 5 years ago

  • Category set to Installer
  • Status changed from New to Need more information
  • Legacy Backlogs Release (now unused) deleted (13)
  • Difficulty set to easy

Can you provide the steps used to perform the installation as well as the operating system used?

#4 Updated by Jorick Astrego about 5 years ago

Pretty simple really:

CentOS release 6.5 (Final)

All I did was:

yum -y install ntp
chkconfig --level 235 ntpd on
service ntpd start
yum localinstall http://fedorapeople.org/groups/katello/releases/yum/nightly/RHEL/6/x86_64/katello-repos-latest.rpm
yum localinstall http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
  1. needed foreman repo for prerequisite: ruby193-rubygem-apipie-bindings
    yum localinstall http://yum.theforeman.org/releases/1.5/el6/x86_64/foreman-release.rpm
    yum install -y katello-installer

ketello-installer -i

#5 Updated by Eric Helms about 5 years ago

  • Status changed from Need more information to Assigned
  • Assignee set to Eric Helms
  • Target version set to 49
  • Triaged changed from No to Yes

I would recommend what the rest of us use - https://github.com/Katello/katello-deploy for installations due to the repositories that need to be setup depending on the OS. I will keep this bug open to note that we need to update the installer to be a standalone deployment method (aka not require that other RPMs be installed prior to).

#6 Updated by Eric Helms about 5 years ago

  • Subject changed from katello-installer: change from absent to directory failed: Could not set 'directory on ensure to katello-installer: support installing foreman/katello RPMs through installer

#7 Updated by Jorick Astrego about 5 years ago

Eric Helms wrote:

I would recommend what the rest of us use - https://github.com/Katello/katello-deploy for installations due to the repositories that need to be setup depending on the OS. I will keep this bug open to note that we need to update the installer to be a standalone deployment method (aka not require that other RPMs be installed prior to).

I tried it but it starts installing right away:

"Launching installer with command: katello-installer -v -d"

But I need to set serveral options differently (non default) plus put correct information in the certificates etc.

So that's why I use the installer. Interactive the first time and later with the answer file I generated.

#8 Updated by Eric Helms about 5 years ago

  • Target version deleted (49)

#9 Updated by Eric Helms over 4 years ago

  • Tracker changed from Bug to Feature
  • Legacy Backlogs Release (now unused) set to 31

#10 Updated by Eric Helms over 4 years ago

  • Related to Bug #9959: permissions failures during installer added

#11 Updated by Eric Helms over 4 years ago

  • Related to Bug #9960: db migrate fail added

#12 Updated by Eric Helms over 4 years ago

#13 Updated by Eric Helms over 4 years ago

  • Related to Tracker #7605: As a Foreman user, I would like to be able to add Katello later to an existing Foreman installation added

#14 Updated by Stephen Benjamin over 4 years ago

  • Related to deleted (Tracker #7605: As a Foreman user, I would like to be able to add Katello later to an existing Foreman installation)

#15 Updated by Eric Helms about 4 years ago

  • Legacy Backlogs Release (now unused) changed from 31 to 70

#16 Updated by Eric Helms almost 4 years ago

  • Legacy Backlogs Release (now unused) changed from 70 to 86

#17 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) changed from 86 to 114

Also available in: Atom PDF