unbound variable when creating cluster with no security groups

Bug #1718940 reported by John Garbutt
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
Undecided
John Garbutt

Bug Description

Created a cluster with no security groups specified and hit this error in the logs:

UnboundLocalError: local variable 'sec_groups' referenced before assignment

Seems to be related to this commit:
b4fb2c404c371a5ba9b28a3ac769c94e69b8c141

Revision history for this message
John Garbutt (johngarbutt) wrote :
Changed in sahara:
assignee: nobody → John Garbutt (johngarbutt)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara (master)

Reviewed: https://review.openstack.org/506654
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=88b427e98858990a35378370ba4b27691f6e6189
Submitter: Zuul
Branch: master

commit 88b427e98858990a35378370ba4b27691f6e6189
Author: John Garbutt <email address hidden>
Date: Fri Sep 22 14:01:22 2017 +0100

    Allow cluster create with no security groups

    Got an unbound variable error without this fix:
      UnboundLocalError: local variable 'sec_groups'
      referenced before assignment

    This appears to have been caused by the move to use the neutron client
    in the following commit:
    b4fb2c404c371a5ba9b28a3ac769c94e69b8c141

    Co-Authored-By: Jeremy Freudberg <email address hidden>
    Closes-Bug: #1718940
    Change-Id: I4f0b5a6b27ee2fb7821ec42faba3a69ce5a4bb78

Changed in sahara:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to sahara (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/512364

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara (stable/pike)

Reviewed: https://review.openstack.org/512364
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=9ea35a1b2639df5aae92b7aa3e1048c67c273357
Submitter: Zuul
Branch: stable/pike

commit 9ea35a1b2639df5aae92b7aa3e1048c67c273357
Author: John Garbutt <email address hidden>
Date: Fri Sep 22 14:01:22 2017 +0100

    Allow cluster create with no security groups

    Got an unbound variable error without this fix:
      UnboundLocalError: local variable 'sec_groups'
      referenced before assignment

    This appears to have been caused by the move to use the neutron client
    in the following commit:
    b4fb2c404c371a5ba9b28a3ac769c94e69b8c141

    Co-Authored-By: Jeremy Freudberg <email address hidden>
    Closes-Bug: #1718940
    Change-Id: I4f0b5a6b27ee2fb7821ec42faba3a69ce5a4bb78
    (cherry picked from commit 88b427e98858990a35378370ba4b27691f6e6189)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/sahara 8.0.0.0b1

This issue was fixed in the openstack/sahara 8.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/sahara 7.0.1

This issue was fixed in the openstack/sahara 7.0.1 release.

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.