Bug 1577866 - rhn-satellite-activate unable to use multiple parameters
Summary: rhn-satellite-activate unable to use multiple parameters
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Other
Version: 580
Hardware: x86_64
OS: Linux
low
low
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat58-nth
TreeView+ depends on / blocked
 
Reported: 2018-05-14 10:03 UTC by Kenny Tordeurs
Modified: 2018-07-13 15:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-13 15:00:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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