Does anyone have guides on installing katello from source with foreman 1.11
and puppet 4? I've installed foreman 1.11 from source with the latest
puppet 4. Added gem 'katello' to the Gemfile and it worked. However when I
run RAILS_ENV=production bundle exec rake db:seed, I'm getting the error
below:
[root@foreman foreman]# RAILS_ENV=production bundle exec rake db:seed
Apipie cache enabled but not present yet. Run apipie:cache rake task to
speed up API calls.
Seeding /opt/foreman/db/seeds.d/03-auth_sources.rb
Seeding /opt/foreman/db/seeds.d/03-permissions.rb
Seeding /opt/foreman/db/seeds.d/03-roles.rb
Seeding /opt/foreman/db/seeds.d/04-admin.rb
Login credentials: admin / ozG2WQLT7KvWR574
Seeding /opt/foreman/db/seeds.d/05-taxonomies.rb
Seeding /opt/foreman/db/seeds.d/06-architectures.rb
Seeding /opt/foreman/db/seeds.d/07-provisioning_templates.rb
Seeding /opt/foreman/db/seeds.d/08-partition_tables.rb
Seeding /opt/foreman/db/seeds.d/10-installation_media.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/101-
locations.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/102-
organizations.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/103-
provisioning_templates.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/104-proxy
.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/105-
roles_permissions.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/106-
mail_notifications.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/107-
enable_dynflow.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/108-
ensure_sync_notification.rb
rake aborted!
Errno::ENOENT: No such file or directory - /etc/pki/katello/certs/pulp-
client.crt
/opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/app/services/cert/certs.rb:
12:in initialize' /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/app/services/cert/certs.rb:12:in
open'
/opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/app/services/cert/certs.rb:12:in
ssl_client_cert' /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/app/services/katello/pulp/ server.rb:28:in
config'
/opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/config/initializers/runcible.rb:3:in
pulp_server' /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/app/models/katello/glue/pulp/repo.rb:29:in
ensure_sync_notification'
/opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/108-
ensure_sync_notification.rb:9:in <top (required)>' /opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:241:in
load'
/opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:241:in
block in load' /opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/ dependencies.rb:232:in
load_dependency'
/opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:241:in
load' /opt/foreman/db/seeds.rb:81:in
block in <top (required)>'
/opt/foreman/db/seeds.rb:79:in each' /opt/foreman/db/seeds.rb:79:in
<top (required)>'
/opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:241:in
load' /opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/ dependencies.rb:241:in
block in load'
/opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:232:in
load_dependency' /opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:241:in
load'
/opt/foreman/vendor/ruby/gems/railties-4.1.14.2/lib/rails/engine.rb:543:in
load_seed' /opt/foreman/vendor/ruby/gems/activerecord-4.1.14.2/lib/active_record/tasks/database_tasks.rb:198:in
load_seed'
/opt/foreman/vendor/ruby/gems/activerecord-4.1.14.2/lib/active_record/railties/databases.rake:174:in
`block (2 levels) in <top (required)>'
Tasks: TOP => db:seed
(See full trace by running task with --trace)
I can see that it's complaining about missing pulp pki certs but are there
any proper guides on how to compile it from source? The documentation is
pretty much incomplete and it all points to using katello-deploy.
> From: "Choon Ming Goh" <choonming2002@gmail.com>
> To: "Foreman users" <foreman-users@googlegroups.com>
> Sent: Thursday, April 21, 2016 11:27:53 AM
> Subject: [foreman-users] Compiling katello 3.0 from source
>
> Does anyone have guides on installing katello from source with foreman 1.11
> and puppet 4? I've installed foreman 1.11 from source with the latest
> puppet 4. Added gem 'katello' to the Gemfile and it worked. However when I
> run RAILS_ENV=production bundle exec rake db:seed, I'm getting the error
> below:
Katello is a far more complicated setup, that relies on a number of external
pieces of software in a specific configuration. I suppose the most important
question is, why do you want to install from source?
There's a development installer scenario that installs an environment from
source. Most of the developers use katello-deploy and vagrant to deploy
one. https://github.com/katello/katello-deploy
···
----- Original Message -----
[root@foreman foreman]# RAILS_ENV=production bundle exec rake db:seed
Apipie cache enabled but not present yet. Run apipie:cache rake task to
speed up API calls.
Seeding /opt/foreman/db/seeds.d/03-auth_sources.rb
Seeding /opt/foreman/db/seeds.d/03-permissions.rb
Seeding /opt/foreman/db/seeds.d/03-roles.rb
Seeding /opt/foreman/db/seeds.d/04-admin.rb
Login credentials: admin / ozG2WQLT7KvWR574
Seeding /opt/foreman/db/seeds.d/05-taxonomies.rb
Seeding /opt/foreman/db/seeds.d/06-architectures.rb
Seeding /opt/foreman/db/seeds.d/07-provisioning_templates.rb
Seeding /opt/foreman/db/seeds.d/08-partition_tables.rb
Seeding /opt/foreman/db/seeds.d/10-installation_media.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/101-
locations.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/102-
organizations.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/103-
provisioning_templates.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/104-proxy
.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/105-
roles_permissions.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/106-
mail_notifications.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/107-
enable_dynflow.rb
Seeding /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/108-
ensure_sync_notification.rb
rake aborted!
Errno::ENOENT: No such file or directory - /etc/pki/katello/certs/pulp-
client.crt
/opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/app/services/cert/certs.rb:
12:in initialize' /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/app/services/cert/certs.rb:12:in
open’
/opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/app/services/cert/certs.rb:12:in
ssl_client_cert' /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/app/services/katello/pulp/ server.rb:28:in
config’
/opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/config/initializers/runcible.rb:3:in
pulp_server' /opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/app/models/katello/glue/pulp/repo.rb:29:in
ensure_sync_notification’
/opt/foreman/vendor/ruby/gems/katello-3.0.0.rc3/db/seeds.d/108-
ensure_sync_notification.rb:9:in <top (required)>' /opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:241:in
load’
/opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:241:in
block in load' /opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/ dependencies.rb:232:in
load_dependency’
/opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:241:in
load' /opt/foreman/db/seeds.rb:81:in
block in <top (required)>’
/opt/foreman/db/seeds.rb:79:in each' /opt/foreman/db/seeds.rb:79:in
<top (required)>’
/opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:241:in
load' /opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/ dependencies.rb:241:in
block in load’
/opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:232:in
load_dependency' /opt/foreman/vendor/ruby/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:241:in
load’
/opt/foreman/vendor/ruby/gems/railties-4.1.14.2/lib/rails/engine.rb:543:in
load_seed' /opt/foreman/vendor/ruby/gems/activerecord-4.1.14.2/lib/active_record/tasks/database_tasks.rb:198:in
load_seed’
/opt/foreman/vendor/ruby/gems/activerecord-4.1.14.2/lib/active_record/railties/databases.rake:174:in
`block (2 levels) in <top (required)>'
Tasks: TOP => db:seed
(See full trace by running task with --trace)
I can see that it’s complaining about missing pulp pki certs but are there
any proper guides on how to compile it from source? The documentation is
pretty much incomplete and it all points to using katello-deploy.
–
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.