Bug 1091313

Summary: trying to promote default content view just says Bad Request
Product: Red Hat Satellite Reporter: Kedar Bidarkar <kbidarka>
Component: HammerAssignee: David Davis <daviddavis>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: bbuckingham, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Kedar Bidarkar 2014-04-25 10:56:02 UTC
Description of problem:

When trying to promote default content view via CLI, we only get a message saying:  "Error: 400 Bad Request"

This needs to be handled more gracefully by letting the end user know that,
"The default content view cannot be promoted"

Version-Release number of selected component (if applicable):
Satellite-6.0.3-RHEL-6-20140404.0/

How reproducible:
When trying to promote default content-view in any org.

Steps to Reproduce:
1. 
2. 
3.

Actual results:

~]# hammer content-view version promote --id 878 --environment-id 938
Could not promote the content view:
  Error: 400 Bad Request

Expected results:

The user should be displayed a message saying.

"The default content view cannot be promoted"

Additional info:

Comment 1 Kedar Bidarkar 2014-04-25 11:25:46 UTC
The same applies when we edit, publish or try deleting via cli.

*** ERROR: The default content view cannot be edited, published, or deleted. (400) ***
REQUEST URL: /katello/api/content_views/241
Katello::HttpErrors::BadRequest: The default content view cannot be edited, published, or deleted.


For all such above scenarios we need to inform the end user gracefully.

Comment 3 David Davis 2014-07-23 18:15:18 UTC
I believe this is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1088442. Let me check.

Comment 4 David Davis 2014-07-24 13:22:31 UTC
There is a message that's being returned in the API ("The default content view cannot be edited, published, or deleted.") but hammer is not displaying it. This is due to https://bugzilla.redhat.com/show_bug.cgi?id=1088442. Closing as a duplicate of 1088442.

*** This bug has been marked as a duplicate of bug 1088442 ***

Comment 5 David Davis 2014-07-24 13:22:31 UTC
There is a message that's being returned in the API ("The default content view cannot be edited, published, or deleted.") but hammer is not displaying it. This is due to https://bugzilla.redhat.com/show_bug.cgi?id=1088442. Closing as a duplicate of 1088442.

*** This bug has been marked as a duplicate of bug 1088442 ***

Comment 6 David Davis 2014-07-24 13:23:30 UTC
Sorry, the message is actually "The default content view cannot be promoted".