Bug 1313976 - hammer lifecycle-environment create requires 'prior-id' if 'prior' parameter is set
Summary: hammer lifecycle-environment create requires 'prior-id' if 'prior' parameter ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: David Davis
QA Contact: Og Maciel
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-02 18:10 UTC by Roman Plevka
Modified: 2019-09-26 15:41 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:24:34 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 13875 0 None None None 2016-04-22 16:52:30 UTC

Description Roman Plevka 2016-03-02 18:10:30 UTC
Description of problem:
it's not possible to create a lifecycle environment with specifying only a prior environment by its name (using --prior paramter).
Hammer requires --prior-id to be set, rendering --prior parameter quite useless

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


How reproducible:
always

Steps to Reproduce:
1. hammer --output=csv lifecycle-environment create --prior="Library" --organization-id="1" --name="foo"


Actual results:
Missing arguments for 'prior_id'
Could not create environment:
Missing arguments for 'prior_id'


Expected results:
Lifecycle environment is created.

Additional info:
tested with snap2

Comment 7 Og Maciel 2016-03-18 20:51:41 UTC
Closed this by mistake.

Comment 8 Og Maciel 2016-03-18 20:55:26 UTC
[root@ibm-x3250m4-01 ~]# hammer -v -u admin -p changeme lifecycle-environment create --prior="Library" --organization-id="1" --name="DEV"
Environment created
[root@ibm-x3250m4-01 ~]# hammer -v -u admin -p changeme lifecycle-environment list --organization-id="1"
---|---------|--------
ID | NAME    | PRIOR
---|---------|--------
1  | Library |
2  | DEV     | Library
---|---------|--------
[root@ibm-x3250m4-01 ~]# hammer -v -u admin -p changeme lifecycle-environment create --prior="DEV" --organization-id="1" --name="QE"
Environment created
[root@ibm-x3250m4-01 ~]# hammer -v -u admin -p changeme lifecycle-environment list --organization-id="1"---|---------|--------
ID | NAME    | PRIOR
---|---------|--------
3  | QE      | DEV
1  | Library |
2  | DEV     | Library
---|---------|--------
[root@ibm-x3250m4-01 ~]# hammer -v -u admin -p changeme lifecycle-environment create --prior="Library" --organization-id="1" --name="GA"
Environment created
[root@ibm-x3250m4-01 ~]# hammer -v -u admin -p changeme lifecycle-environment list --organization-id="1"---|---------|--------
ID | NAME    | PRIOR
---|---------|--------
3  | QE      | DEV
1  | Library |
4  | GA      | Library
2  | DEV     | Library
---|---------|--------

Comment 9 Og Maciel 2016-03-18 20:56:02 UTC
Verified on Satellite 6.2.0 SNAP 4.0 Build.

Comment 12 Bryan Kearney 2016-07-27 11:24: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/RHBA-2016:1501


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