Project

General

Profile

Actions

Bug #25866

closed

Upgrade Step: katello:upgrades:3.11:update_puppet_repos failed during 6.4 to 6.5 upgrade

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

Status:
Closed
Priority:
Normal
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1665657

Description of problem:

Upgrade from 6.4 to 6.5 failed at Upgrade Step: katello:upgrades:3.11:update_puppet_repos

=============================================
Upgrade Step 1/7: katello:correct_repositories. This may take a long while.
Processing Repository 1/1: puppetrepo (1) =============================================
Upgrade Step 2/7: katello:correct_puppet_environments. This may take a long while. =============================================
Upgrade Step 3/7: katello:clean_backend_objects. This may take a long while.
0 orphaned consumer id(s) found in candlepin.
Candlepin orphaned consumers: []
0 orphaned consumer id(s) found in pulp.
Pulp orphaned consumers: [] =============================================
Upgrade Step 4/7: katello:upgrades:3.8:clear_checksum_type. =============================================
Upgrade Step 5/7: katello:upgrades:3.9:migrate_sync_plans. Starting recurring logic for migrated sync plans and deleting Pulp schedules =============================================
Upgrade Step 6/7: katello:upgrades:3.10:clear_invalid_repo_credentials. =============================================
Upgrade Step 7/7: katello:upgrades:3.11:update_puppet_repos. Refreshing repository puppetrepo (1)
Failed upgrade task: katello:upgrades:3.11:update_puppet_repos, see logs for more information.
foreman-rake upgrade:run finished successfully!
Upgrade completed!

Version-Release number of selected component (if applicable):
6.5.0 snap 11

How reproducible:
always

Steps to Reproduce:
1. On satellite 6.4.1,

  1. hammer repository list
    ---|------------|-------------|--------------|--------------------------------------------
    ID | NAME | PRODUCT | CONTENT TYPE | URL
    ---|------------|-------------|--------------|--------------------------------------------
    1 | puppetrepo | puppet repo | puppet | http://omaciel.fedorapeople.org/bagoftricks
    ---|------------|-------------|--------------|--------------------------------------------
    [root@qe-sat6-client-arch ~]# hammer repository info --id 1
    ID: 1
    Name: puppetrepo
    Label: puppetrepo
    Organization: Default Organization
    Red Hat Repository: no
    Content Type: puppet
    Mirror on Sync: yes
    URL: http://omaciel.fedorapeople.org/bagoftricks
    Publish Via HTTP: yes
    Published At: http://qe-sat6-client-arch.usersys.redhat.com/pulp/puppet/7aa60922-5aaf-456a-9710-00ceb6b55bec/
    Relative Path: Default_Organization/Library/custom/puppet_repo/puppetrepo
    Download Policy:
    Product:
    ID: 1
    Name: puppet repo
    GPG Key:

Sync:
Status: Success
Last Sync Date: 39 minutes
Created: 2019/01/12 05:53:37
Updated: 2019/01/12 05:53:40
Content Counts:
Puppet Modules: 12

2. Enable 6.5 repos
3. foreman-maintain upgrade run --target-version 6.5

Actual results: Upgrade step katello:upgrades:3.11:update_puppet_repos failed.

Expected results: Successful upgrade!

Additional info:

  1. foreman-rake katello:upgrades:3.11:update_puppet_repos --trace
    /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
    • Invoke katello:upgrades:3.11:update_puppet_repos (first_time)
    • Invoke environment (first_time)
    • Execute environment
      /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
    • Invoke katello:upgrades:3.11:update_puppet_repos (first_time)
    • Invoke environment (first_time)
    • Execute environment
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/content_facet_host_extensions.rb:7: warning: already initialized constant Katello::Concerns::ContentFacetHostExtensions::ERRATA_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/content_facet_host_extensions.rb:7: warning: previous definition of ERRATA_STATUS_MAP was here
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/content_facet_host_extensions.rb:14: warning: already initialized constant Katello::Concerns::ContentFacetHostExtensions::TRACE_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/content_facet_host_extensions.rb:14: warning: previous definition of TRACE_STATUS_MAP was here
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:13: warning: already initialized constant Katello::Concerns::SubscriptionFacetHostExtensions::SUBSCRIPTION_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:13: warning: previous definition of SUBSCRIPTION_STATUS_MAP was here
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:21: warning: already initialized constant Katello::Concerns::SubscriptionFacetHostExtensions::SLA_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:21: warning: previous definition of SLA_STATUS_MAP was here
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:26: warning: already initialized constant Katello::Concerns::SubscriptionFacetHostExtensions::USAGE_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:26: warning: previous definition of USAGE_STATUS_MAP was here
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:31: warning: already initialized constant Katello::Concerns::SubscriptionFacetHostExtensions::ROLE_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:31: warning: previous definition of ROLE_STATUS_MAP was here
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:36: warning: already initialized constant Katello::Concerns::SubscriptionFacetHostExtensions::ADDONS_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:36: warning: previous definition of ADDONS_STATUS_MAP was here
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:41: warning: already initialized constant Katello::Concerns::SubscriptionFacetHostExtensions::PURPOSE_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:41: warning: previous definition of PURPOSE_STATUS_MAP was here
      Refreshing repository puppetrepo (1)
      rake aborted!
      NoMethodError: undefined method `[]' for nil:NilClass
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/lib/katello/tasks/upgrades/3.11/update_puppet_repos.rake:10:in `block (5 levels) in <top (required)>'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/relation/delegation.rb:41:in `each'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/relation/delegation.rb:41:in `each'
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/lib/katello/tasks/upgrades/3.11/update_puppet_repos.rake:7:in `block (4 levels) in <top (required)>'
      /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
      Tasks: TOP => katello:upgrades:3.11:update_puppet_repos
      (See full trace by running task with --trace)
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/content_facet_host_extensions.rb:7: warning: already initialized constant Katello::Concerns::ContentFacetHostExtensions::ERRATA_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/content_facet_host_extensions.rb:7: warning: previous definition of ERRATA_STATUS_MAP was here
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/content_facet_host_extensions.rb:14: warning: already initialized constant Katello::Concerns::ContentFacetHostExtensions::TRACE_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/content_facet_host_extensions.rb:14: warning: previous definition of TRACE_STATUS_MAP was here
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:13: warning: already initialized constant Katello::Concerns::SubscriptionFacetHostExtensions::SUBSCRIPTION_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:13: warning: previous definition of SUBSCRIPTION_STATUS_MAP was here
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:21: warning: already initialized constant Katello::Concerns::SubscriptionFacetHostExtensions::SLA_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:21: warning: previous definition of SLA_STATUS_MAP was here
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:26: warning: already initialized constant Katello::Concerns::SubscriptionFacetHostExtensions::USAGE_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:26: warning: previous definition of USAGE_STATUS_MAP was here
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:31: warning: already initialized constant Katello::Concerns::SubscriptionFacetHostExtensions::ROLE_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:31: warning: previous definition of ROLE_STATUS_MAP was here
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:36: warning: already initialized constant Katello::Concerns::SubscriptionFacetHostExtensions::ADDONS_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:36: warning: previous definition of ADDONS_STATUS_MAP was here
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:41: warning: already initialized constant Katello::Concerns::SubscriptionFacetHostExtensions::PURPOSE_STATUS_MAP
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.9/app/models/katello/concerns/subscription_facet_host_extensions.rb:41: warning: previous definition of PURPOSE_STATUS_MAP was here
    • Execute katello:upgrades:3.11:update_puppet_repos
      Refreshing repository puppetrepo (1)
      rake aborted!
Actions #1

Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Justin Sherrill
  • Pull request https://github.com/Katello/katello/pull/7925 added
Actions #2

Updated by Andrew Kofink almost 6 years ago

  • Target version set to Katello 3.11.0
  • Triaged changed from No to Yes
Actions #3

Updated by Justin Sherrill almost 6 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF