Project

General

Profile

Bug #18063

Org create returns unclear message when trying to assign a non-existent subnet

Added by Amit Karsale about 2 years ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Organizations and Locations
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1199604

Description of problem:

When testing bug #1183196, I inadvertently tried creating org, associating it with a subnet that did not exist. When this occurs, user gets an error message that seems to have nothing to do with the subnet.

Version-Release number of selected component (if applicable):
Satellite-6.1.0-RHEL-7-20150303.0

How reproducible:

Steps to Reproduce:
1. Create capsules/smart proxiess; furthermore, create only one subnet. Or create zero, and modify hammer command below accordingly.
2. Attempt to create an org:
hammer organization create --description "eeee" --name "eeee" --smart-proxy-ids=2 --domain-ids 1 --subnet-ids 1,2
3. View results

Actual results:
[root@rhsm-qe-2 ~]# hammer organization create --description "eeee" --name "eeee" --smart-proxy-ids=2 --domain-ids 1 --subnet-ids 1,2
[Foreman] Username: admin
[Foreman] Password for admin:
Could not create the organization:
Resource organization not found by id ''

Expected results:

An error message that makes more sense -- "No subnet found for id '2'" or whatever


Related issues

Related to Foreman - Bug #16846: Org create returns unclear message when trying to assign a non-existent subnetClosed2016-10-10

Associated revisions

Revision 6b372871 (diff)
Added by Amit Karsale about 2 years ago

Fixes #18063 - Org create failure with specific msg

History

#1 Updated by Amit Karsale about 2 years ago

  • Related to Bug #16846: Org create returns unclear message when trying to assign a non-existent subnet added

#2 Updated by The Foreman Bot about 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6543 added

#3 Updated by Justin Sherrill about 2 years ago

  • Legacy Backlogs Release (now unused) set to 114

#4 Updated by The Foreman Bot about 2 years ago

  • Legacy Backlogs Release (now unused) deleted (114)

#5 Updated by Justin Sherrill about 2 years ago

  • Legacy Backlogs Release (now unused) set to 114

#6 Updated by The Foreman Bot about 2 years ago

  • Legacy Backlogs Release (now unused) deleted (114)

#7 Updated by Amit Karsale about 2 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#8 Updated by Eric Helms about 2 years ago

  • Legacy Backlogs Release (now unused) set to 211

Also available in: Atom PDF