Bug 1392118

Summary: [RFE] Support for dry-run from virt-who that does not update the server
Product: Red Hat Satellite Reporter: Peter Tselios <tselios.petros>
Component: CandlepinAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: UnspecifiedCC: bkearney, tomckay, tselios.petros
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1405597 (view as bug list) Environment:
Last Closed: 2017-11-30 19:27:37 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:
Bug Depends On: 1405597    
Bug Blocks:    

Description Peter Tselios 2016-11-04 21:09:47 UTC
Description of problem:
Currently, virt-who cannot be force to update the Satellite server if entries are already there. 
Also, there is no option to test the configuration. 

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

How reproducible:
Always

Actual results:

use an option to dry-run our configuration where it will print the results on screen without adding them in the database/Satellite. 

Use and option to force the update hypervisors and their guests in Satellite 6.

Comment 1 Radek Novacek 2016-11-09 08:42:02 UTC
There is already a "-p/--print" option that prints obtained host/guest association to stdout. You can use this option to test if the connection to hypervisor is working. Is this what you want from the --dry-run option?

I guess the force option would need support from Satellite/Candlepin first, virt-who just sends the data there, all the heavy work is done higher in the stack. All it can do is to add some flag to the report, but most work is on Satellite/Candlepin.

Let's use this bug only for the '--force' option. Please open a new bug against virt-who if the '-p/--print' option is not enough for your use case.

I will reassign this bug back to Satellite for evaluation if a force update from virt-who would make sense.

Comment 2 Peter Tselios 2016-11-09 11:00:46 UTC
The -p option also prints the output. You cannot say that this is a dry-run, since it will send data to Satellite. But, if you want to check the exclude list for example, you need a dry-run, not a print.

Comment 3 Barnaby Court 2016-11-10 20:15:26 UTC
virt-who always updates the server with a full update. Can you provide more context around what you are trying to accomplish and what problems you are running into.

Comment 4 Peter Tselios 2016-11-28 13:49:36 UTC
Hello,
So, for the --force:
  I cannot replicate the issue with Satellite 6.2.3/KVM setup that I have right now. Anyway, my issue with Satellite 6.2.2/vCenter 5.5 was that in case of a hostname change, the virt-who reported that there was no change and there was no update of the hosts/guests list. 

The dry-run option is still needed though.

Comment 5 Bryan Kearney 2017-11-30 19:27:37 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in product in the forseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.