Bug 1389802
Summary: | upgrade to 6.2.3 failed at update_subscription_facet_backend_data (undefined method `inject' for nil:NilClass) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Patrick C. F. Ernzer <pcfe> | ||||||||
Component: | Upgrades | Assignee: | Justin Sherrill <jsherril> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Jitendra Yejare <jyejare> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | high | ||||||||||
Version: | 6.2.3 | CC: | aperotti, bbuckingham, bkearney, cwelton, hmore, inecas, jsherril, lzap, sramacha, stbenjam, zhunting | ||||||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||||||
Target Release: | Unused | ||||||||||
Hardware: | x86_64 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | tfm-rubygem-katello-3.0.0.115-1 | Doc Type: | If docs needed, set a value | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | |||||||||||
: | 1426397 (view as bug list) | Environment: | |||||||||
Last Closed: | 2017-05-01 13:56:05 UTC | Type: | Bug | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | |||||||||||
Bug Blocks: | 1399395, 1426397 | ||||||||||
Attachments: |
|
Description
Patrick C. F. Ernzer
2016-10-28 16:56:42 UTC
Created attachment 1215049 [details]
LOG: foreman-rake katello:upgrades:3.0:update_subscription_facet_backend_data
18:57:42 [root@satellite ~]# foreman-rake katello:upgrades:3.0:update_subscription_facet_backend_data
Updating backend data for subscription facets
***********************************
*************WARNING***************
Errors detected during upgrade step.
Details saved to: /tmp/subscription_facet_upgrade-1477673881.log
This step can be rerun with:
foreman-rake katello:upgrades:3.0:update_subscription_facet_backend_data
You are likely encountering a bug.
***********************************
18:58:01 [root@satellite ~]#
Created attachment 1215050 [details]
shell output from an upgrade attempt
note that the defined compute resource is the libvirt hypervisor the satellite itself runs as a VM on 19:08:06 [root@satellite ~]# hammer organization list ---|----------|----------|------------ ID | NAME | LABEL | DESCRIPTION ---|----------|----------|------------ 1 | Sat Test | Sat_Test | ---|----------|----------|------------ 19:25:16 [root@satellite ~]# 19:25:28 [root@satellite ~]# hammer organization create -name "Sat Test 2" Could not create the organization: Error: Unrecognised option '-n' See: 'hammer organization create --help' 19:26:58 [root@satellite ~]# hammer organization create --name "Sat Test 2" Organization created 19:27:07 [root@satellite ~]# hammer organization delete --id 1 Could not delete the organization: Failed to destroy a compute libvirt haswell (Libvirt) instance jenkins.sattest.pcfe.net: wrong number of arguments (0 for 1) 19:27:24 [root@satellite ~]# hammer compute-resource list ---|-----------------|--------- ID | NAME | PROVIDER ---|-----------------|--------- 1 | libvirt haswell | Libvirt ---|-----------------|--------- 19:32:38 [root@satellite ~]# 19:35:55 [root@satellite ~]# hammer compute-resource update --organization-ids 2 --id 1 Could not update the compute resource: Validation failed: Taxonomy has already been taken 19:36:26 [root@satellite ~]# One of the customer upgraded the satellite from 6.2.1 to 6.2.4 and faced similar error Error was -- Upgrade completed, except for this error: *********************************** *************WARNING*************** Errors detected during upgrade step. Details saved to: /tmp/subscription_facet_upgrade-1480516196.log This step can be rerun with: foreman-rake katello:upgrades:3.0:update_subscription_facet_backend_data You are likely encountering a bug. *********************************** Even after rerun facing the same error Note that the error message: Updating backend data for subscription facets *********************************** *************WARNING*************** Errors detected during upgrade step. Details saved to: /tmp/subscription_facet_upgrade-1481068894.log This step can be rerun with: foreman-rake katello:upgrades:3.0:update_subscription_facet_backend_data You are likely encountering a bug. *********************************** is very generic and does not mean any specific bug. Please do not associate any cases with this bug without verifying that the traceback in the log file matches the description from this bz. The error "Katello::Resources::Candlepin::Consumer: 410 Gone" has nothing to do with the original report of this bz and will NOT be fixed as part of it. See https://bugzilla.redhat.com/show_bug.cgi?id=1372720#c3 for more information. This particular bug does seem like a simple case to workaround with a patch. In the meantime you can resolve the issue with: # formeman-rake console > Katello::Host::SubscriptionFacet.where(:uuid => nil).destroy_all I would like to reiterate, if you are not seeing the error 'undefined method inject of nil:NilClass', this will do NOTHING for you. Created redmine issue http://projects.theforeman.org/issues/17612 from this bug Upstream bug assigned to jsherril Upstream bug assigned to jsherril Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17612 has been resolved. Please add verifications steps for this bug to help QE verify
To reproduce:
1. Register a client with subscription-manager
2. Set its UUID to nil:
foreman-rake console:
> ::Host.find_by(:name => "foo.example.com").subscription_facet.update_attributes!(:uuid => nil)
3. foreman-rake katello:upgrades:3.0:update_subscription_facet_backend_data
Verified ! @ Satellite 6.2.9 snap 5 Steps: 1. Register a client with satellite. 2. Set its UUID to nil irb(main):001:0> ::Host.find_by(:name => "0dockerclientrhel6").subscription_facet.update_attributes!(:uuid => nil) => true 3. foreman-rake katello:upgrades:3.0:update_subscription_facet_backend_data Results: The update subscription facet backed data command executed without any error stated in this bug description. So moving this bug to verified state. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:1191 |