[AWS] Network deletion is failing

Bug #1709046 reported by Pratik Shah
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Openstack Omni
Fix Released
Undecided
Pratik Shah

Bug Description

Using CLI to delete network throws an Exception "Error in update subnet precommit: AWS Error: 'NeutronError' - 'Required parameter id not set'"

CLI command: openstack network delete <network_id>

Stacktrace: Please check attachment for stacktrace

Revision history for this message
Pratik Shah (pratikshah) wrote :
Changed in omni:
assignee: nobody → Pratik Shah (pratikshah)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to omni (master)

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

summary: - Network deletion is failing
+ [AWS] Network deletion is failing
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to omni (master)

Reviewed: https://review.openstack.org/491500
Committed: https://git.openstack.org/cgit/openstack/omni/commit/?id=3c2185aac391f05e2221f0c5b054865fcfe773ec
Submitter: Jenkins
Branch: master

commit 3c2185aac391f05e2221f0c5b054865fcfe773ec
Author: Pratik Shah <email address hidden>
Date: Mon Aug 7 19:33:20 2017 +0530

    Added a fix to delete a network.

    Description:
    Deleting network was raising an Exception
    "AWS Error: 'NeutronError' - 'Required parameter id not set'"

    Issue:
    When VPC and Subnet are deleted, neutron core code notifies the change.
    But since VPC is already deleted, "create_tags_for_vpc()" doesn't get
    VPC ID. Hence it raises AWS Exception when it tries to create tags.

    Neutron core code calls "update_network_precommit()" when notifying the
    change which eventually calls "create_tags_for_vpc()"

    Fix:
    Added a check for VPC ID in "create_tags_for_vpc()"

    Closes-Bug: #1709046

    Change-Id: I6a94911e41bc194b98ddaf51cf9585ac3f4ed07e

Changed in omni:
status: In Progress → 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.