Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1428371 - error when resource does not have id ActiveRecord::RecordInvalid: Validation failed: Resource can't be blank
Summary: error when resource does not have id ActiveRecord::RecordInvalid: Validation ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Tasks Plugin
Version: 6.2.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact: Peter Ondrejka
URL:
Whiteboard:
: 1431185 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-02 12:27 UTC by Tom McKay
Modified: 2021-06-10 11:59 UTC (History)
11 users (show)

Fixed In Version: tfm-rubygem-foreman-tasks-0.9.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 17:31:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Zip of /var/log/production.log (3.05 MB, application/zip)
2017-03-13 09:50 UTC, Ben
no flags Details
prodlog after fix (1.32 KB, text/plain)
2017-08-24 15:21 UTC, Peter Ondrejka
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 18771 0 None None None 2017-03-02 12:27:56 UTC

Description Tom McKay 2017-03-02 12:27:54 UTC
When a resource is going to be locked, the lock requires that the resource has an id (see validation in lock.rb). Without this there are errors.

To reproduce, register a content host with subscription-manager and update facts:
subscription-manager register --username admin --password changeme --org Default_Organization --env Library
subscription-manager facts --update

The CpConsumerUser does not have an id since it is a temporary user used just for the length of the call.

Comment 1 Tom McKay 2017-03-02 12:27:58 UTC
Created from redmine issue http://projects.theforeman.org/issues/18771

Comment 4 Adam Ruzicka 2017-03-06 12:34:43 UTC
I can't reproduce this issue using the provided reproducer on a fresh 6.2 machine. Any hints would be greatly appreciated

Comment 5 Tom McKay 2017-03-10 17:47:17 UTC
*** Bug 1431185 has been marked as a duplicate of this bug. ***

Comment 6 Ben 2017-03-13 09:49:26 UTC
I'm seeing the same issue on a 6.2.8 box (installed at 6.2.6 and upgraded through 6.2.7).  I see these messages every few minutes, or even more often, leading to a rather large /var/log/foreman/production.log size and turnover.  I'm attaching my production.log as a zip file in case it's of use.

Comment 7 Ben 2017-03-13 09:50:09 UTC
Created attachment 1262374 [details]
Zip of /var/log/production.log

Comment 8 Satellite Program 2017-06-07 12:03:25 UTC
Upstream bug assigned to inecas

Comment 9 Satellite Program 2017-06-07 12:03:30 UTC
Upstream bug assigned to inecas

Comment 10 Satellite Program 2017-06-09 08:03:28 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18771 has been resolved.

Comment 11 Peter Ondrejka 2017-08-24 15:19:45 UTC
Verified on Satellite 6.3 snap 12, successfully updated facts from content host, see attachment for prodlog output.

Comment 12 Peter Ondrejka 2017-08-24 15:21:54 UTC
Created attachment 1317768 [details]
prodlog after fix

Comment 13 Bryan Kearney 2018-02-21 17:31:25 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/RHSA-2018:0336


Note You need to log in before you can comment on or make changes to this bug.