Bug 1577866

Summary: rhn-satellite-activate unable to use multiple parameters
Product: Red Hat Satellite 5 Reporter: Kenny Tordeurs <ktordeur>
Component: OtherAssignee: Jan Dobes <jdobes>
Status: CLOSED WONTFIX QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: low    
Version: 580CC: jdobes, rdrazny, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-13 15:00:52 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:
Bug Depends On:    
Bug Blocks: 1450940    

Description Kenny Tordeurs 2018-05-14 10:03:42 UTC
Description of problem:
When specifying multiple parameters with rhn-satellite-activate it only executes the last parameter

When doing something like the following only the last parameter --manifest-info gets executed:

# rhn-satellite-activate --manifest-refresh --manifest-reconcile-request --manifest-info
~~~
Name: manifest-name
UUID: 2eadb746-ddfgdgdfhf-dgfhghfgh-fhgfhghgh
Owner ID: 3908890
Satellite version: 5.8
Created: 2018-05-07T08:36:34.789+0000
API URL: https://subscription.rhn.redhat.com/subscription/consumers/
~~~

When doing something like below only --manifest-reconcile-request gets executed:
# rhn-satellite-activate --manifest-refresh --manifest-reconcile-request 
~~~
11:55:26 Requesting manifest regeneration...
11:55:27 Manifest regeneration requested.
~~~


Version-Release number of selected component (if applicable):
# rpm -qa |grep satellite
satellite-schema-5.8.0.40-1.el6sat.noarch
satellite-repo-5.8.0.2-2.el6sat.noarch
satellite-branding-5.8.0.8-1.el6sat.noarch
satellite-doc-indexes-5.8.0-1.el6sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. # rhn-satellite-activate --manifest-refresh --manifest-reconcile-request
2. # rhn-satellite-activate --manifest-refresh --manifest-reconcile-request --manifest-info
3.

Actual results:
Only last parameter gets executed

Expected results:
All parameters to be executed or throw an error message


Additional info:

Comment 2 Jan Dobes 2018-05-14 17:29:55 UTC
Combining multiple --manifest-* parameters in single run is not supported according to the current code. It could be fixed by either:

1. doing the execution chain reasonably: manifest-reconcile-request -> manifest-refresh -> manifest-info
2. complaining about invalid parameter combination

Comment 3 Kenny Tordeurs 2018-05-15 08:23:46 UTC
I would vote for option 2