Cannot delete 2 or more node network groups one after another

Bug #1519266 reported by Anastasia Palkina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Julia Aranovich

Bug Description

1. Create new environment by default
2. Open "Networks" tab
3. Add 5-6 new node network groups
4. Click "Cross" icon for last created node network group and click "Delete" button in confirmation dialogue
6. Group disappeared from UI
7. Move to last node group and delete it too
8. This group also disappeared from UI but there is error in Firebug Console (see screen)
9. Refresh page. Group from step 7 not deleted, it appears in UI

I reproduced this bug many times.
I think cause is we need some time to delete node group. And only after one node network group deleted, user can delete another node group.

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  openstack_version: "2015.1.0-8.0"
  api: "1.0"
  build_number: "197"
  build_id: "197"
  fuel-nailgun_sha: "8d6ef41f1bef84378a61ee98b46aeb2b925fd10f"
  python-fuelclient_sha: "e685d68c1c0d0fa0491a250f07d9c3a8d0f9608c"
  fuel-agent_sha: "1d98edb0468aa70b9b3a43b8422804e9095e7d9d"
  fuel-nailgun-agent_sha: "b56f832abc18aee9a8c603fd6cc2055c5f4287bc"
  astute_sha: "c8400f51b0b92254da206de55ef89d17fdf35393"
  fuel-library_sha: "33c0fa3aada734dc9e6f315197ce0e4a16f5987c"
  fuel-ostf_sha: "11afd5743a12b1006317d3ca7000d1ede77bdae2"
  fuel-createmirror_sha: "994fed9b1ed889718b61a59733275c08c2dd4c64"
  fuelmenu_sha: "d12061b1aee82f81b3d074de74ea27a6e962a686"
  shotgun_sha: "c377d163519f6d10b69a654019d6086ba5f14edc"
  network-checker_sha: "2c62cd52655ea6456ff6294fd63f18d6ea54fe38"
  fuel-upgrade_sha: "1e894e26d4e1423a9b0d66abd6a79505f4175ff6"
  fuelmain_sha: "22fe551f5525d11a1854fd87dbc8c77fae8fec08"

Revision history for this message
Anastasia Palkina (apalkina) wrote :
tags: added: area-python
Dmitry Pyzhov (dpyzhov)
tags: added: team-network
Maciej Relewicz (rlu)
Changed in fuel:
status: New → Confirmed
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Aleksandr Didenko (adidenko)
Revision history for this message
Aleksandr Didenko (adidenko) wrote :

When we delete node group Nailgun triggers "update_dnsmasq" task to remove unneeded DHCP ranges from cobbler. This task consists of 3 "subtasks" so it can take few seconds. And if you try to remove another nodegroup while "update_dnsmasq" task is running, then you'll get "409 Client Error: Conflict (A task is already running)" response from API:

# fuel --env 2 nodegroup --delete --group 18
Node group with id=18 was deleted!

# fuel --env 2 nodegroup --delete --group 17
409 Client Error: Conflict (A task is already running)

It looks like this should be fixed on the UI side: UI should check response on delete nodegroup request and alert user in case of error reply from API.

Changed in fuel:
assignee: Aleksandr Didenko (adidenko) → Fuel UI Team (fuel-ui)
tags: added: area-ui
removed: area-python
tags: removed: team-network
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/258364

Changed in fuel:
assignee: Fuel UI Team (fuel-ui) → Julia Aranovich (jkirnosova)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/258364
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=56ed57dc01aed8dfd6b2f9c733f7280807f402ad
Submitter: Jenkins
Branch: master

commit 56ed57dc01aed8dfd6b2f9c733f7280807f402ad
Author: Julia Aranovich <email address hidden>
Date: Wed Dec 16 12:10:41 2015 +0300

    Show error dialog in case of failed node network group deletion

    Closes-Bug: #1519266

    Change-Id: Id406f903e4b6f85bdc626afb4f3c80a0a0fb8834

Changed in fuel:
status: In Progress → Fix Committed
tags: added: on-verification
Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified on ISO #327

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "327"
  build_id: "327"
  fuel-nailgun_sha: "ec25ae8df28e1f1d87da653c5aab2711dff729f6"
  python-fuelclient_sha: "7c7a756fb6a3d091851c060003a2965c67aa353d"
  fuel-agent_sha: "d354cbe61b055db848a15ce66fb7ae92178d2c0a"
  fuel-nailgun-agent_sha: "a33a58d378c117c0f509b0e7badc6f0910364154"
  astute_sha: "c56dfde2da034151a7e707b381c4cf9d213b4ba2"
  fuel-library_sha: "bcc3d042a47547f6ad826360a85ef21dcaf25882"
  fuel-ostf_sha: "b2ebf15a3530b5c7b57707acf8642c1c3ac71bd8"
  fuel-mirror_sha: "8100acb3a566358d0d4ecc66de32d39626263028"
  fuelmenu_sha: "2942a85796d37f09ba8c8c6d762d8813292cf0d4"
  shotgun_sha: "cacb93cbc28910ff0dc38f30a855efa9af50d8ce"
  network-checker_sha: "d443ef47abeda58d319bc8d33d5005dd09440a02"
  fuel-upgrade_sha: "718aa3d7021fee2970f0fa6791cf5188578cc516"
  fuelmain_sha: "3faa824728ce60734abe602ff3778976f8a16eed"

Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: on-verification
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.