[ui] Environment with this name already exists -- support for error message from API

Bug #1391846 reported by Przemyslaw Kaminski
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Alexandra Morozova

Bug Description

1. Open two tabs with Fuel dashboard
2. In first one, create enviroment 'x', finish the wizard
3. In second tab create environment 'x' again
4. Upon clicking finish API returns 409 with plaintext response "Environment with this name already exists"

UI should handle this case displaying an error (currently it moves to first step in wizard). The API response should probably be in JSON format.

Mike Scherbakov (mihgen)
Changed in fuel:
milestone: 6.0.1 → 6.1
Revision history for this message
Ihor Kalnytskyi (ikalnytskyi) wrote :
Changed in fuel:
status: New → Confirmed
Changed in fuel:
assignee: Fuel UI Team (fuel-ui) → Nikolay Markov (nmarkov)
status: Confirmed → In Progress
Changed in fuel:
assignee: Nikolay Markov (nmarkov) → Alexandra Morozova (astepanchuk)
Changed in fuel:
assignee: Alexandra Morozova (astepanchuk) → Nikolay Markov (nmarkov)
Changed in fuel:
assignee: Nikolay Markov (nmarkov) → Ivan Kliuk (ivankliuk)
Changed in fuel:
assignee: Ivan Kliuk (ivankliuk) → Nikolay Markov (nmarkov)
Nikolay Markov (nmarkov)
Changed in fuel:
assignee: Nikolay Markov (nmarkov) → Fuel UI Team (fuel-ui)
Changed in fuel:
assignee: Fuel UI Team (fuel-ui) → Alexandra Morozova (astepanchuk)
Changed in fuel:
assignee: Alexandra Morozova (astepanchuk) → Nikolay Markov (nmarkov)
Nikolay Markov (nmarkov)
Changed in fuel:
assignee: Nikolay Markov (nmarkov) → Alexandra Morozova (astepanchuk)
Changed in fuel:
assignee: Alexandra Morozova (astepanchuk) → Nikolay Markov (nmarkov)
Nikolay Markov (nmarkov)
Changed in fuel:
assignee: Nikolay Markov (nmarkov) → Alexandra Morozova (astepanchuk)
Changed in fuel:
assignee: Alexandra Morozova (astepanchuk) → Nikolay Markov (nmarkov)
assignee: Nikolay Markov (nmarkov) → Alexandra Morozova (astepanchuk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/137642
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=2def4d00fad33407802fb6a0df2d321785997182
Submitter: Jenkins
Branch: master

commit 2def4d00fad33407802fb6a0df2d321785997182
Author: Nikolay Markov <email address hidden>
Date: Thu Nov 27 16:45:06 2014 +0300

    Wrap errors to JSON in Nailgun API

    Partial-Bug: #1391846
    Related-Bug: #1423916
    Implements blueprint nailgun-wrap-errors-json
    Related blueprint: nailgun-api-requests-responses-validation

    Change-Id: Ie351d6cd6a5ebf929563a2e0c76ef875fa71c2d3

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/137806
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=32ed5f86e35b5e9ceb0d937a8316a5030bc364c3
Submitter: Jenkins
Branch: master

commit 32ed5f86e35b5e9ceb0d937a8316a5030bc364c3
Author: Alexandra Morozova <email address hidden>
Date: Wed Feb 25 13:04:33 2015 +0100

    Frontend for json wrapper for errors

    Wrap errors to JSON in Nailgun API

    Closes-Bug: #1391846

    Related blueprint nailgun-wrap-errors-json

    Change-Id: I33e95bfe772752c677638e303da78ddd37e59e0d

Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified on ISO #165

"build_id": "2015-03-05_22-54-44", "ostf_sha": "8df5f2fcdae3bc9ea7d700ffd64db820baf51914", "build_number": "165", "release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-03-05_22-54-44", "ostf_sha": "8df5f2fcdae3bc9ea7d700ffd64db820baf51914", "build_number": "165", "api": "1.0", "nailgun_sha": "f12221d79e0d97c7b4405331e11a54fc5dcfcd4e", "production": "docker", "python-fuelclient_sha": "4eb787f1ad969bd23c93d192865543dbd45a8626", "astute_sha": "ca7635a356a90404d3dedb5cf26f1d16e07144a9", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "0e45b31db1677651d6ddb1c852d62ebfd8875dcd", "fuellib_sha": "07288d7bfde840b7ec47292ff96a3b670a79c859"}}}, "auth_required": true, "api": "1.0", "nailgun_sha": "f12221d79e0d97c7b4405331e11a54fc5dcfcd4e", "production": "docker", "python-fuelclient_sha": "4eb787f1ad969bd23c93d192865543dbd45a8626", "astute_sha": "ca7635a356a90404d3dedb5cf26f1d16e07144a9", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "0e45b31db1677651d6ddb1c852d62ebfd8875dcd", "fuellib_sha": "07288d7bfde840b7ec47292ff96a3b670a79c859"

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.