packstack fails when interface has no assigned ip address

Bug #1638549 reported by Olga Krishtal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Packstack
Fix Released
Undecided
Olga Krishtal

Bug Description

Function cidr_to_ifname fails in case when the interface has no assigned ip:

facter -p | grep interfaces
interfaces => br0,br1,br_ex,br_int,br_tun,eno16777984,eno33557248,host_routed,lo,ovs_system,venet0,virbr0,virbr0_nic
We have br0 as interface, however it is not configured:
facter -p | grep ip
ipaddress => 10.24.42.26
ipaddress6 => fdb2:2c26:f4e4::1
ipaddress_br1 => 10.24.42.26
ipaddress_br_ex => 10.24.41.26
ipaddress_lo => 127.0.0.1
ipaddress_virbr0 => 10.37.130.2

This leads to:
ipaddress_br0 ERROR

Changed in packstack:
assignee: nobody → Olga Krishtal (okrishtal)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to packstack (master)

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

Changed in packstack:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to packstack (master)

Reviewed: https://review.openstack.org/392638
Committed: https://git.openstack.org/cgit/openstack/packstack/commit/?id=f480c69d76e15c76a5f01dee0b981b000efa7cb3
Submitter: Jenkins
Branch: master

commit f480c69d76e15c76a5f01dee0b981b000efa7cb3
Author: Olga Krishtal <email address hidden>
Date: Wed Nov 2 15:55:22 2016 +0300

    Fixes packstack failure when interface has no assigned ip address

    In case we have unconfigured interfaces cidr_to_ifname() searches
    its ipaddress and network mask and throws an exception.

    Change-Id: I829a874ca44c2e4176bb1eeba28c3f49c44c72ca
    Closes-bug: #1638549

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

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/399641

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

Reviewed: https://review.openstack.org/399641
Committed: https://git.openstack.org/cgit/openstack/packstack/commit/?id=7deb78830344f38667eccd73090655b8aa6ae555
Submitter: Jenkins
Branch: stable/newton

commit 7deb78830344f38667eccd73090655b8aa6ae555
Author: Olga Krishtal <email address hidden>
Date: Wed Nov 2 15:55:22 2016 +0300

    Fixes packstack failure when interface has no assigned ip address

    In case we have unconfigured interfaces cidr_to_ifname() searches
    its ipaddress and network mask and throws an exception.

    Change-Id: I829a874ca44c2e4176bb1eeba28c3f49c44c72ca
    Closes-bug: #1638549
    (cherry picked from commit f480c69d76e15c76a5f01dee0b981b000efa7cb3)

tags: added: in-stable-newton
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.