Bug 1363806

Summary: NoMethodError: undefined method `openscap_proxy_id_changed?' for #<Host::Managed:>
Product: Red Hat Satellite Reporter: Kathryn Dixon <kdixon>
Component: SCAP PluginAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: Sanket Jagtap <sjagtap>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: bbuckingham, bkearney, egolov, jcallaha, mhulan, mlinden, mmccune, oshtaier, sjagtap, swadeley, xdmoon, zhunting
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_openscap-0.5.3.22-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1446730 (view as bug list) Environment:
Last Closed: 2017-06-20 17:53:55 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:
Attachments:
Description Flags
Migrate_foreman none

Description Kathryn Dixon 2016-08-03 15:38:17 UTC
Description of problem:

when upgrading to satellite 6.2 from 6.1.9 we received openscap error in the satellite.log 

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


How reproducible: have not reproduced. pre health check script passed before upgrade.


Steps to Reproduce:
1. 
2.
3.

Actual results: 

db:migrate
18195 (See full trace by running task with --trace)
18196 == 20150612135546 CreateHostStatus: migrating =================================
18197 -- create_table(:host_status)
18198    -> 0.0412s
18199 -- add_index(:host_status, :host_id)
18200    -> 0.0051s
18201 -- add_foreign_key("host_status", "hosts", {:name=>"host_status_hosts_host_id_fk", :column=>"host_id"})
18202    -> 0.0044s
18203 -- add_column(:hosts, :global_status, :integer, {:default=>0, :null=>false})

Expected results: a completed satellite upgrade or the health check for hosts to fail before upgrade.

We did delete the host out of the webui, and it did not get us passed this error.

Additional info: adding full satellite.log

Comment 3 Marek Hulan 2016-09-08 11:55:17 UTC
Created redmine issue http://projects.theforeman.org/issues/16485 from this bug

Comment 4 Bryan Kearney 2016-09-13 16:17:43 UTC
Upstream bug assigned to mhulan

Comment 5 Bryan Kearney 2016-09-13 16:17:46 UTC
Upstream bug assigned to mhulan

Comment 6 Bryan Kearney 2016-09-21 08:18:03 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16485 has been resolved.

Comment 7 Marek Hulan 2016-10-19 11:44:34 UTC
*** Bug 1386524 has been marked as a duplicate of this bug. ***

Comment 11 Mike McCune 2017-04-27 14:57:14 UTC
Marek: can you get QE some guidelines on how to test this during an upgrade?

Comment 12 Marek Hulan 2017-04-28 13:42:01 UTC
If the bug was present, it would fail on upgrade during rake db:migrate. So in order to test it is fixed, make sure you have Satellite 6.1, make sure some host has at least one openscap report, try upgrading to 6.2 where host statuses were introduced.

Comment 13 Sanket Jagtap 2017-05-31 15:13:59 UTC
Build: Satellite 6.2.10 snap2 

1) Satellite 6.1 (hosts+reports)
2) Perfromed upgrade from 6.1 to 6.2.10 snap2

Upgrade was successful

PFA, Upgrade Step: migrate_foreman...

Comment 14 Sanket Jagtap 2017-05-31 15:14:51 UTC
Created attachment 1283828 [details]
Migrate_foreman

Comment 15 Bryan Kearney 2017-06-20 17:53:55 UTC
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:1553