Bug 1373097 - virt-who run at remote libvirt mode with wrong env still work normally when report mapping to SAM
Summary: virt-who run at remote libvirt mode with wrong env still work normally when ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Candlepin
Version: Unspecified
Hardware: x86_64
OS: Linux
medium
medium vote
Target Milestone: Unspecified
Assignee: Barnaby Court
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-05 07:30 UTC by Liushihui
Modified: 2016-09-22 19:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-22 19:12:07 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Liushihui 2016-09-05 07:30:38 UTC
Description of problem:
Configure wrong env in /etc/sysconfig/virt-who or /etc/virt-who.d/xxx when virt-who run at remote libvirt mode against SAM, virt-who still work normally.

Version-Release number of selected component (if applicable):
virt-who-0.17-10.el7.noarch
subscription-manager-1.17.11-1.el7.x86_64
python-rhsm-1.17.7-1.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Register system to SAM
2. Configure virt-who run at remote libvirt mode with wrong env in /etc/sysconfig/virt-who or /etc/virt-who.d/xxx
# cat /etc/virt-who.d/virt
[test-libvirt]
type=libvirt
server=qemu+ssh://hp-z220-06.qe.lab.eng.nay.redhat.com/system
username=root
password=qwer1234P!
owner=ACME_Corporation
env=xxxxx ==================> It should be "Library"  
3. Restart virt-who and check virt-who's log


Actual results:
Virt-who can send mapping info to SAM successfully.

Expected results:
It should show error info in log as the following:
"Couldn't find environment 'xxxxx'"

Additional info:
1. It hasn't this problem when run virt-who with CLI mode with wrong env.
2. It also hasn't this problem when virt-who run at hyperv mode/xen mode/esx mode at the same condition.

Comment 1 Radek Novacek 2016-09-06 08:28:41 UTC
There is nothing virt-who can do about this. It doesn't know if environment is correct or not. Incorrect environment must be raised by Candlepin.

If hyperv/xen/esx modes shows an error when env is wrong, remote libvirt should also show an error.

Reassigning to candlepin. Is there any difference in handling remote libvirt and other hypervisors (all of them uses hypervisorCheckIn call)?

Comment 3 Barnaby Court 2016-09-22 19:12:07 UTC
SAM is receiving security updates only


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