Comment 12 for bug 1737201

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

Reviewed: https://review.openstack.org/531746
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=6a2882bb7bfabe0a694222c1e821fbe08fa26edf
Submitter: Zuul
Branch: stable/ocata

commit 6a2882bb7bfabe0a694222c1e821fbe08fa26edf
Author: Balazs Gibizer <email address hidden>
Date: Wed Dec 13 17:14:49 2017 +0100

    Fix possible TypeError in VIF.fixed_ips

    The VIF['network'] field can be initialized to None and therefore
    a later call to VIF.fixed_ips() could raise a TypeError. This problem
    was visible during AttachInterfacesTestJSON tempest test case when
    nova tried to emit instance.interfacae_attach notification.

    This patch checks makes sure that if VIF['network'] is None then
    VIF.fixed_ips() return an empty list instead of raising a TypeError.

    Change-Id: Ib285d874b19be5bc1dbcd1d2af32e461f67e34cb
    Closes-Bug: #1737201
    (cherry picked from commit 553f2edde596348ca5447588c5a0b06f3b6be286)
    (cherry picked from commit 4eff70621146d0ddca19b8e22c76d8ee3d043aed)