Project

General

Profile

Actions

Bug #10235

open

Updating multiple NICs on host while removing the primary NIC via API fails with 500

Added by Tomáš Strachota about 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Sending PUT request to the host's API that updates multiple NICs and removes the primary one causes internal server error. Note that it happens only when the request updates more than one interface.
Example json to reproduce the error:

{"host" => {
    "interfaces_attributes" => [
        [0] {
                 "id" => 26,
            "primary" => false
        },
        [1] {
                 "id" => 55,
            "primary" => false
        }
    ]
}}

See attached logs for more details.

This is probably very rare case and our CLI prevents from it but we should respond with 402 an error message rather than 500 and a backtrace.


Files

development.log development.log 22.4 KB Tomáš Strachota, 04/22/2015 08:07 AM

No data to display

Actions

Also available in: Atom PDF