Bug 801070 - Better error message for deleting envs from middle of the path
Summary: Better error message for deleting envs from middle of the path
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: Petr Chalupa
QA Contact: Sachin Ghai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-07 15:41 UTC by Tomas Strachota
Modified: 2019-09-26 17:45 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-15 18:56:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:0665 0 normal SHIPPED_LIVE new packages: katello 2012-05-15 22:27:22 UTC

Description Tomas Strachota 2012-03-07 15:41:02 UTC
Description of problem:

Error message after an attempt for deleting an environment that has some successors needs to be polished.


Version-Release number of selected component (if applicable):
katello-cli-0.2.8-1
katello-0.2.8-1

Steps to Reproduce:
1. katello create environment --name Dev --org ACME_Corporation --prior Library
2. katello create environment --name Prod --org ACME_Corporation --prior Dev
3. katello environment delete --name Dev --org ACME_Corporation
  
Actual results:
Errors occured during orchestration #<OrderedHash {:base=>["Environment Dev has a successor.  Only the last environment on a path can be deleted"]}>
 Queue Failed - []

Expected results:
Simplier error message without data types and orchestration info.
Eg. "Environment Dev has a successor.  Only the last environment on a path can be deleted"

Comment 2 Petr Chalupa 2012-03-13 15:25:38 UTC
fixed in 02a831c599767f909ce84c75707c0aec0e1623ee

Comment 6 Sachin Ghai 2012-03-19 06:40:30 UTC
verified with following CFSE build.

[root@perceptor ~]# rpm -qa | grep -ie katello-0 -ie katello-cli
katello-0.1.304-1.el6.noarch
katello-cli-common-0.1.105-1.el6.noarch
katello-cli-0.1.105-1.el6.noarch

Error message is improved now:

[root@perceptor ~]# katello -u admin -p admin shell
katello> environment create --name dev --org ACME_Corporation --prior Library
Successfully created environment [ dev ]
katello> environment create --name prod --org ACME_Corporation --prior dev
Successfully created environment [ prod ]
katello> environment delete --name dev --org ACME_Corporation
Environment dev has a successor. Only the last environment on a path can be deleted.
katello> exit

Comment 7 errata-xmlrpc 2012-05-15 18:56:11 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.

http://rhn.redhat.com/errata/RHEA-2012-0665.html


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