Project

General

Profile

Actions

Bug #21939

closed

Foreman/Katello 1.16/3.5 fails on db:seed because undefined method `foreman_url'

Added by Sven Jansen almost 7 years ago. Updated almost 7 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
foreman_chef
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi,

i have trouble running "Running foreman-installer --scenario katello --upgrade" which fails because something is wrong with Setting.foreman_url.

https://groups.google.com/forum/#!topic/foreman-users/ddQrw3eqDfM

Error:

Success!
katello-service restart finished successfully!
Upgrade Step: db_seed...
/usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP
/usr/share/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here
rake aborted!
NoMethodError: undefined method `foreman_url' for #<Class:0x00000007101b50>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/dynamic_matchers.rb:26:in `method_missing'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_chef-0.5.0/db/seeds.rb:19:in `<top (required)>'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:268:in `load'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:268:in `block in load'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:268:in `load'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/engine.rb:547:in `load_seed'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in `public_send'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in `method_missing'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_chef-0.5.0/lib/foreman_chef/engine.rb:12:in `block (2 levels) in <class:Engine>'
Tasks: TOP => db:seed
(See full trace by running task with --trace)
Seeding /usr/share/foreman/db/seeds.d/02-partition_tables_list.rb
Seeding /usr/share/foreman/db/seeds.d/02-permissions_list.rb
Seeding /usr/share/foreman/db/seeds.d/02-provisioning_templates_list.rb
Seeding /usr/share/foreman/db/seeds.d/02-roles_list.rb
Seeding /usr/share/foreman/db/seeds.d/03-auth_sources.rb
Seeding /usr/share/foreman/db/seeds.d/03-permissions.rb
Seeding /usr/share/foreman/db/seeds.d/03-roles.rb
Seeding /usr/share/foreman/db/seeds.d/04-admin.rb
Seeding /usr/share/foreman/db/seeds.d/05-taxonomies.rb
Seeding /usr/share/foreman/db/seeds.d/06-architectures.rb
Seeding /usr/share/foreman/db/seeds.d/07-provisioning_templates.rb
Seeding /usr/share/foreman/db/seeds.d/08-partition_tables.rb
Seeding /usr/share/foreman/db/seeds.d/10-installation_media.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.5.0.1/db/seeds.d/101-locations.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.5.0.1/db/seeds.d/102-organizations.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.5.0.1/db/seeds.d/103-provisioning_templates.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.5.0.1/db/seeds.d/104-proxy.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.5.0.1/db/seeds.d/106-mail_notifications.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.5.0.1/db/seeds.d/107-enable_dynflow.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.5.0.1/db/seeds.d/108-subcription-bookmarks.rb
Seeding /usr/share/foreman/db/seeds.d/11-smart_proxy_features.rb
Seeding /usr/share/foreman/db/seeds.d/13-compute_profiles.rb
Seeding /usr/share/foreman/db/seeds.d/15-bookmarks.rb
Seeding /usr/share/foreman/db/seeds.d/16-mail_notifications.rb
Seeding /usr/share/foreman/db/seeds.d/17-notification_blueprints.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.10.0/db/seeds.d/20-foreman_tasks_permissions.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_bootdisk-9.0.0/db/seeds.d/50-bootdisk_templates.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.10.0/db/seeds.d/60-dynflow_proxy_feature.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-1.3.3/db/seeds.d/60-ssh_proxy_feature.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.10.0/db/seeds.d/61-foreman_tasks_bookmarks.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-1.4.5/db/seeds.d/62_ansible_proxy_feature.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-1.3.3/db/seeds.d/70-job_templates.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.5.0.1/db/seeds.d/75-job_templates.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_openscap-0.8.3/db/seeds.d/75-job_templates.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-1.3.3/db/seeds.d/90-bookmarks.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_openscap-0.8.3/db/seeds.d/openscap_feature.rb
Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_openscap-0.8.3/db/seeds.d/openscap_policy_notification.rb
All seed files executed
foreman-rake db:seed failed! Check the output for error!
Upgrade step db_seed failed. Check logs for more information.

Package List:

candlepin-2.1.8-1.el7.noarch
candlepin-selinux-2.1.8-1.el7.noarch
foreman-1.16.0-1.el7.noarch
foreman-cli-1.16.0-1.el7.noarch
foreman-compute-1.16.0-1.el7.noarch
foreman-console-1.16.0-1.el7.noarch
foreman-debug-1.16.0-1.el7.noarch
foreman-ec2-1.16.0-1.el7.noarch
foreman-gce-1.16.0-1.el7.noarch
foreman-installer-1.16.0-1.el7.noarch
foreman-installer-katello-3.5.0-3.el7.noarch
foreman-openstack-1.16.0-1.el7.noarch
foreman-ovirt-1.16.0-1.el7.noarch
foreman-postgresql-1.16.0-1.el7.noarch
foreman-proxy-1.16.0-1.el7.noarch
foreman-release-1.16.0-1.el7.noarch
foreman-release-scl-3-1.el7.noarch
foreman-selinux-1.16.0-1.el7.noarch
foreman-vmware-1.16.0-1.el7.noarch
foreman.xxx-apache-1.0-1.noarch
foreman.xxx-foreman-client-1.0-1.noarch
foreman.xxx-proxy-1.0-1.noarch
foreman.xxx-foreman-proxy-client-1.0-1.noarch
foreman.xxx-puppet-client-1.0-1.noarch
foreman.xxx-qpid-broker-1.0-2.noarch
foreman.xxx-qpid-client-cert-1.0-1.noarch
foreman.xxx-qpid-router-client-1.0-1.noarch
foreman.xxx-qpid-router-server-1.0-1.noarch
foreman.xxx-tomcat-1.0-1.noarch
katello-3.5.0-2.el7.noarch
katello-certs-tools-2.4.0-1.el7.noarch
katello-client-bootstrap-1.3.0-1.el7.noarch
katello-common-3.5.0-2.el7.noarch
katello-debug-3.5.0-2.el7.noarch
katello-default-ca-1.0-1.noarch
katello-installer-base-3.5.0-3.el7.noarch
katello-repos-3.5.0-3.el7.noarch
katello-selinux-3.0.2-1.el7.noarch
katello-server-ca-1.0-1.noarch
katello-service-3.5.0-2.el7.noarch
pulp-client-1.0-1.noarch
pulp-docker-plugins-2.4.1-2.el7.noarch
pulp-katello-1.0.2-1.el7.noarch
pulp-puppet-plugins-2.13.4-1.el7.noarch
pulp-puppet-tools-2.13.4-1.el7.noarch
pulp-rpm-plugins-2.13.4-1.el7.noarch
pulp-selinux-2.13.4-1.el7.noarch
pulp-server-2.13.4-1.el7.noarch
python-gofer-qpid-2.7.6-1.el7.noarch
python-isodate-0.5.0-4.pulp.el7.noarch
python-kombu-3.0.33-8.pulp.el7.noarch
python-pulp-common-2.13.4-1.el7.noarch
python-pulp-docker-common-2.4.1-2.el7.noarch
python-pulp-oid_validation-2.13.4-1.el7.noarch
python-pulp-puppet-common-2.13.4-1.el7.noarch
python-pulp-repoauth-2.13.4-1.el7.noarch
python-pulp-rpm-common-2.13.4-1.el7.noarch
python-pulp-streamer-2.13.4-1.el7.noarch
python-qpid-1.36.0-1.el7.noarch
python-qpid-proton-0.17.0-4.el7.x86_64
python-qpid-qmf-1.36.0-1.el7.x86_64
qpid-cpp-client-1.36.0-1.el7.x86_64
qpid-cpp-client-devel-1.36.0-1.el7.x86_64
qpid-cpp-server-1.36.0-1.el7.x86_64
qpid-cpp-server-linearstore-1.36.0-1.el7.x86_64
qpid-dispatch-router-0.8.0-1.el7.x86_64
qpid-proton-c-0.17.0-4.el7.x86_64
qpid-qmf-1.36.0-1.el7.x86_64
qpid-tools-1.36.0-1.el7.noarch
rubygem-foreman_scap_client-0.3.0-1.el7.noarch
rubygem-smart_proxy_pulp-1.3.0-1.el7.noarch
tfm-rubygem-activerecord-session_store-0.1.2-2.el7.noarch
tfm-rubygem-addressable-2.3.6-4.el7.noarch
tfm-rubygem-algebrick-0.7.3-4.el7.noarch
tfm-rubygem-ancestry-3.0.0-1.el7.noarch
tfm-rubygem-anemone-0.7.2-14.el7.noarch
tfm-rubygem-angular-rails-templates-1.0.2-1.el7.noarch
tfm-rubygem-apipie-bindings-0.2.0-1.el7.noarch
tfm-rubygem-apipie-params-0.0.5-1.el7.noarch
tfm-rubygem-apipie-rails-0.5.4-1.el7.noarch
tfm-rubygem-audited-4.4.1-1.el7.noarch
tfm-rubygem-autoparse-0.3.3-5.el7.noarch
tfm-rubygem-awesome_print-1.7.0-1.el7.noarch
tfm-rubygem-bastion-6.1.5-1.fm1_16.el7.noarch
tfm-rubygem-bundler_ext-0.4.1-1.el7.noarch
tfm-rubygem-clamp-1.0.0-5.el7.noarch
tfm-rubygem-concurrent-ruby-1.0.3-1.fm1_16.el7.noarch
tfm-rubygem-concurrent-ruby-edge-0.2.3-1.el7.noarch
tfm-rubygem-css_parser-1.4.7-1.el7.noarch
tfm-rubygem-daemons-1.2.3-3.el7.noarch
tfm-rubygem-deacon-1.0.0-1.el7.noarch
tfm-rubygem-deep_cloneable-2.2.2-1.el7.noarch
tfm-rubygem-deface-1.2.0-1.el7.noarch
tfm-rubygem-diffy-3.0.1-3.el7.noarch
tfm-rubygem-docker-api-1.28.0-2.el7.noarch
tfm-rubygem-domain_name-0.5.20160310-1.el7.noarch
tfm-rubygem-dynflow-0.8.30-1.el7.noarch
tfm-rubygem-excon-0.58.0-1.el7.noarch
tfm-rubygem-extlib-0.9.16-4.el7.noarch
tfm-rubygem-facter-2.4.0-4.el7.x86_64
tfm-rubygem-faraday-0.9.1-4.el7.noarch
tfm-rubygem-fast_gettext-1.4.1-1.el7.noarch
tfm-rubygem-fog-1.41.0-2.el7.noarch
tfm-rubygem-fog-aws-1.3.0-1.el7.noarch
tfm-rubygem-fog-core-1.45.0-1.el7.noarch
tfm-rubygem-fog-digitalocean-0.3.0-1.el7.noarch
tfm-rubygem-fog-google-0.1.0-2.el7.noarch
tfm-rubygem-fog-json-1.0.2-4.el7.noarch
tfm-rubygem-fog-openstack-0.1.18-1.el7.noarch
tfm-rubygem-fog-rackspace-0.1.4-1.el7.noarch
tfm-rubygem-fog-vsphere-1.9.2-1.el7.noarch
tfm-rubygem-fog-xenserver-0.2.3-1.el7.noarch
tfm-rubygem-fog-xml-0.1.2-4.el7.noarch
tfm-rubygem-foreman-tasks-0.10.0-2.fm1_16.el7.noarch
tfm-rubygem-foreman-tasks-core-0.2.0-1.fm1_16.el7.noarch
tfm-rubygem-foreman_ansible-1.4.5-1.fm1_16.el7.noarch
tfm-rubygem-foreman_ansible_core-1.1.1-1.fm1_16.el7.noarch
tfm-rubygem-foreman_bootdisk-9.0.0-1.fm1_15.el7.noarch
tfm-rubygem-foreman_chef-0.5.0-1.fm1_15.el7.noarch
tfm-rubygem-foreman_docker-3.2.1-1.fm1_16.el7.noarch
tfm-rubygem-foreman_openscap-0.8.3-2.fm1_16.el7.noarch
tfm-rubygem-foreman_remote_execution-1.3.3-1.fm1_16.el7.noarch
tfm-rubygem-foreman_remote_execution_core-1.0.5-1.fm1_16.el7.noarch
tfm-rubygem-foreman_setup-5.0.0-1.fm1_13.el7.noarch
tfm-rubygem-foreman_templates-5.0.1-1.fm1_16.el7.noarch
tfm-rubygem-foreman_vmwareannotations-0.0.1-1.fm1_15.el7.noarch
tfm-rubygem-formatador-0.2.1-9.el7.noarch
tfm-rubygem-friendly_id-5.1.0-3.el7.noarch
tfm-rubygem-get_process_mem-0.2.1-1.el7.noarch
tfm-rubygem-gettext_i18n_rails-1.2.1-3.el7.noarch
tfm-rubygem-git-1.2.5-7.el7.noarch
tfm-rubygem-google-api-client-0.8.2-5.el7.noarch
tfm-rubygem-hammer_cli-0.11.0-1.el7.noarch
tfm-rubygem-hammer_cli_foreman-0.11.0-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3-5.el7.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.4-2.el7.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.12-1.fm1_16.el7.noarch
tfm-rubygem-hammer_cli_katello-0.11.4-1.el7.noarch
tfm-rubygem-hashie-2.0.5-4.el7.noarch
tfm-rubygem-highline-1.7.8-2.el7.noarch
tfm-rubygem-hirb-0.7.0-9.el7.noarch
tfm-rubygem-hirb-unicode-steakknife-0.0.7-1.el7.noarch
tfm-rubygem-http-cookie-1.0.2-1.el7.noarch
tfm-rubygem-ipaddress-0.8.0-9.el7.noarch
tfm-rubygem-jwt-1.2.0-4.el7.noarch
tfm-rubygem-katello-3.5.0.1-1.el7.noarch
tfm-rubygem-launchy-2.4.3-4.el7.noarch
tfm-rubygem-ldap_fluff-0.4.7-1.el7.noarch
tfm-rubygem-little-plugger-1.1.3-21.el7.noarch
tfm-rubygem-locale-2.0.9-11.el7.noarch
tfm-rubygem-logging-1.8.2-4.el7.noarch
tfm-rubygem-multipart-post-1.2.0-4.el7.noarch
tfm-rubygem-net-ldap-0.15.0-1.el7.noarch
tfm-rubygem-net-ping-2.0.1-1.el7.noarch
tfm-rubygem-net-scp-1.2.1-1.el7.noarch
tfm-rubygem-net-ssh-4.0.1-1.el7.noarch
tfm-rubygem-netrc-0.11.0-1.el7.noarch
tfm-rubygem-oauth-0.5.1-1.el7.noarch
tfm-rubygem-ovirt_provision_plugin-1.0.2-1.fm1_13.el7.noarch
tfm-rubygem-paint-0.8.7-6.el7.noarch
tfm-rubygem-parse-cron-0.1.4-2.fm1_11.el7.noarch
tfm-rubygem-passenger-4.0.18-9.11.el7.x86_64
tfm-rubygem-passenger-native-4.0.18-9.11.el7.x86_64
tfm-rubygem-passenger-native-libs-4.0.18-9.11.el7.x86_64
tfm-rubygem-pg-0.15.1-3.el7.x86_64
tfm-rubygem-powerbar-1.0.17-1.el7.noarch
tfm-rubygem-qpid_messaging-0.34.1-1.el7.x86_64
tfm-rubygem-rabl-0.12.0-2.el7.noarch
tfm-rubygem-rack-jsonp-1.3.1-5.el7.noarch
tfm-rubygem-rails-i18n-4.0.9-1.el7.noarch
tfm-rubygem-rainbow-2.2.1-1.el7.noarch
tfm-rubygem-rbovirt-0.1.3-1.el7.noarch
tfm-rubygem-rbvmomi-1.10.0-1.el7.noarch
tfm-rubygem-responders-2.3.0-1.el7.noarch
tfm-rubygem-rest-client-2.0.1-1.el7.noarch
tfm-rubygem-retriable-1.4.1-4.el7.noarch
tfm-rubygem-roadie-3.2.1-1.el7.noarch
tfm-rubygem-roadie-rails-1.1.1-1.el7.noarch
tfm-rubygem-robotex-1.0.0-19.el7.noarch
tfm-rubygem-ruby2ruby-2.1.3-4.el7.noarch
tfm-rubygem-ruby_parser-3.6.3-4.el7.noarch
tfm-rubygem-runcible-2.5.0-1.el7.noarch
tfm-rubygem-safemode-1.3.1-1.el7.noarch
tfm-rubygem-scoped_search-4.1.0-1.el7.noarch
tfm-rubygem-secure_headers-3.4.1-1.el7.noarch
tfm-rubygem-sequel-4.20.0-5.el7.noarch
tfm-rubygem-sexp_processor-4.4.4-3.el7.noarch
tfm-rubygem-signet-0.6.0-5.el7.noarch
tfm-rubygem-smart_proxy_dynflow_core-0.1.7-1.fm1_16.el7.noarch
tfm-rubygem-sprockets-rails-3.2.0-1.el7.noarch
tfm-rubygem-sshkey-1.9.0-1.el7.noarch
tfm-rubygem-trollop-2.1.2-1.el7.noarch
tfm-rubygem-unf-0.1.3-5.el7.noarch
tfm-rubygem-unf_ext-0.0.6-6.el7.x86_64
tfm-rubygem-unicode-display_width-1.0.5-1.el7.noarch
tfm-rubygem-useragent-0.16.8-1.el7.noarch
tfm-rubygem-validates_lengths_from_database-0.5.0-3.el7.noarch
tfm-rubygem-webpack-rails-0.9.8-1.el7.noarch
tfm-rubygem-wicked-1.1.0-4.el7.noarch
tfm-rubygem-will_paginate-3.1.5-1.el7.noarch
tfm-rubygem-wirb-1.0.3-3.el7.noarch
tfm-rubygem-x-editable-rails-1.5.5-1.el7.noarch
tfm-runtime-3.2-10.el7.x86_64


Related issues 1 (0 open1 closed)

Is duplicate of Chef - Bug #19620: Settings compatibility with Foreman 1.16ClosedMarek Hulán05/22/2017Actions
Actions #1

Updated by Anonymous almost 7 years ago

  • Project changed from Katello to Chef
  • Category changed from Installer to foreman_chef
  • Translation missing: en.field_release deleted (332)
Actions #2

Updated by Anonymous almost 7 years ago

  • Is duplicate of Bug #19620: Settings compatibility with Foreman 1.16 added
Actions #3

Updated by Anonymous almost 7 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF