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 1792018 - Virt-who is not able to upload the Hypervisor list if the manifest has content access mode as org_environment
Summary: Virt-who is not able to upload the Hypervisor list if the manifest has conten...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Candlepin
Version: 6.6.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: 6.7.0
Assignee: candlepin-bugs
QA Contact: jcallaha
URL:
Whiteboard:
Depends On: 1792524
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-16 21:33 UTC by Rudnei Bertol Jr.
Modified: 2024-03-25 15:38 UTC (History)
13 users (show)

Fixed In Version: candlepin-2.9.24, candlepin-2.6.15-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1792524 (view as bug list)
Environment:
Last Closed: 2020-04-14 13:28:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
verification screenshot (96.67 KB, image/png)
2020-03-04 21:35 UTC, jcallaha
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1788678 0 unspecified CLOSED [RFE] Add knob to disable processing of virt-who reports 2023-09-18 00:19:37 UTC
Red Hat Product Errata RHSA-2020:1454 0 None None None 2020-04-14 13:28:48 UTC

Description Rudnei Bertol Jr. 2020-01-16 21:33:12 UTC
Description of problem:

Virt-who service cannot upload the Hypervisor/Hosts collected from the Hypervisor Manager.


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

How reproducible:
Import a manifest with content access mode as 'org_environment' into the Satellite, restart the virt-who service.


Steps to Reproduce:
1. Change the Content Access Mode from the manifest to 'Organization Environment Access'
2. Create a new organization or remove the virt-who-hypervisors from the Satellite WebUI.
3. Restart the virt-who service or run the virt-who command manually.

Actual results:
The hosts collected by the virt-who are not uploaded to the Satellite, the task finish with success, however, the following error is found on the Dynflow task we can see the following error.
"""
hypervisors: []
task:
  created: '2020-01-16T17:50:49+0000'
  updated: '2020-01-16T17:50:49+0000'
  id: hypervisor_update_2abc0d22-3445-48e2-8aa1-278415afa428
  state: FAILED
  startTime: '2020-01-16T17:50:49+0000' 
  finishTime: 
  result: Could not update host/guest mapping. Auto-attach is disabled for owner ACME
    because of the content access mode setting. 
"""

Also, we can see the following error on the Candlepin logs.
"""
2020-01-16 12:50:49,623 [thread=QuartzScheduler_Worker-10] [job=hypervisor_update_2abc0d22-3445-48e2-8aa1-278415afa428, org=ACME, csid=] ERROR org.candlepin.pinsetter.tasks.HypervisorUpdateJob - HypervisorUpdateJob encountered a problem.
org.candlepin.common.exceptions.BadRequestException: Could not update host/guest mapping. Auto-attach is disabled for owner ACME because of the content access mode setting.
	at org.candlepin.pinsetter.tasks.HypervisorUpdateJob.toExecute(HypervisorUpdateJob.java:232)
	at org.candlepin.pinsetter.tasks.HypervisorUpdateJob$$EnhancerByGuice$$663b758d.CGLIB$toExecute$0(<generated>)
	at org.candlepin.pinsetter.tasks.HypervisorUpdateJob$$EnhancerByGuice$$663b758d$$FastClassByGuice$$4a8fec48.invoke(<generated>)
	at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
	at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:76)
	at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:70)
	at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77)
	at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55)
	at org.candlepin.pinsetter.tasks.HypervisorUpdateJob$$EnhancerByGuice$$663b758d.toExecute(<generated>)
	at org.candlepin.pinsetter.tasks.KingpinJob.execute(KingpinJob.java:114)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
"""

Expected results:

The hypervisor's hosts are created on the Satellite server.


Additional info:

Comment 8 jcallaha 2020-03-04 21:33:40 UTC
Verified in Satellite 6.7 Snap 14

Steps:
Created a new Organization
Uploaded a golden ticket manifest
Submitted a virt-who report against the organization

Results:
The report uploaded successfully
The hypervisors were added to the Satellite

See attached screenshot for verification

Comment 9 jcallaha 2020-03-04 21:35:09 UTC
Created attachment 1667585 [details]
verification screenshot

Comment 14 errata-xmlrpc 2020-04-14 13:28:34 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-2020:1454


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