Bug 1397469 - [negative] Deleting subnet connected to instance raise 'Unexpected error encountered '
Summary: [negative] Deleting subnet connected to instance raise 'Unexpected error enco...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.8.0
Assignee: Tzu-Mainn Chen
QA Contact: Ola Pavlenko
URL:
Whiteboard: openstack:sdn
Depends On:
Blocks: 1411516
TreeView+ depends on / blocked
 
Reported: 2016-11-22 15:29 UTC by Ronnie Rasouli
Modified: 2017-08-30 03:48 UTC (History)
7 users (show)

Fixed In Version: 5.8.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1411516 (view as bug list)
Environment:
Last Closed: 2017-06-12 16:55:44 UTC
Category: ---
Cloudforms Team: Openstack
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ronnie Rasouli 2016-11-22 15:29:26 UTC
Description of problem:

We should have better error handling in this case while deleting subnet that connected to instance

Error text:

Expected(204) <=> Actual(409 Conflict) excon.error.response :body => "{\"NeutronError\": {\"message\": \"Unable to complete operation on subnet 2e9fbbe0-6bb3-4849-a981-d0a3406a45dc: One or more ports have an IP allocation from this subnet.\", \"type\": \"SubnetInUse\", \"detail\": \"\"}}" :cookies => [ ] :headers => { "Content-Length" => "204" "Content-Type" => "application/json" "Date" => "Tue, 22 Nov 2016 15:13:05 GMT" "X-Openstack-Request-Id" => "req-bdccc09b-4693-41e9-8be7-3ef3ec4457d6" } :host => "10.0.0.104" :local_address => "10.0.0.36" :local_port => 44258 :path => "/v2.0/subnets/2e9fbbe0-6bb3-4849-a981-d0a3406a45dc" :port => 9696 :reason_phrase => "Conflict" :remote_ip => "10.0.0.104" :status => 409 :status_line => "HTTP/1.1 409 Conflict\r\n" [cloud_subnet/button] 

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

5.7.0.11

How reproducible:
100%

Steps to Reproduce:
1. Navigate to: Networks --> Subnets
2. Tick a subnet connected to an instance
3. Click Configuration --> Delete selected Cloud Subnets.

Actual results:

Generic error page

Expected results:

A comprehensive message that deleting a cloud subnet attached to instance is not allowed

Additional info:

Comment 2 Marek Aufart 2016-11-22 15:39:46 UTC
We need extract error message text.

Comment 3 Tzu-Mainn Chen 2016-12-09 20:48:41 UTC
https://github.com/ManageIQ/manageiq/pull/13098

Comment 5 Ronnie Rasouli 2017-03-08 07:29:40 UTC
verified on 5.8.0.3 
no such option to delete subnet connected to an instance


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