neutron linux bridge agent is buggy and can not boot instance

Bug #1567406 reported by Jeffrey Zhang
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Critical
Jeffrey Zhang
Mitaka
Fix Released
Critical
Jeffrey Zhang

Bug Description

when booting vm in a neutron linux bridge env, the vm will be failed.

Changed in kolla:
importance: Undecided → Critical
status: New → Confirmed
assignee: nobody → Jeffrey Zhang (jeffrey4l)
milestone: none → newton-1
Changed in kolla:
status: Confirmed → In Progress
Revision history for this message
Ganesh Maharaj Mahalingam (ganesh-mahalingam) wrote :
Revision history for this message
Vikram Hosakote (vhosakot) wrote :
Revision history for this message
Carlos Cesario (ccesario) wrote :

Hi guys, this patch set https://review.openstack.org/#/c/302721/14 it seems fix the problem.

In my tests the deploy it works. More details in http://paste.openstack.org/show/493863/

Revision history for this message
Carlos Cesario (ccesario) wrote :

Hello, only to update:

I know that is can be other problem but I would like to register in this bug page:

root@kolla-network:~# docker exec -it neutron_linuxbridge_agent bash
(neutron-linuxbridge-agent)[neutron@kolla-network /]$ ip netns list
qrouter-d9794753-c16f-45fe-923a-df8797641121
qdhcp-e20db26a-f25d-4b9b-ae58-ebb156006aa7
(neutron-linuxbridge-agent)[neutron@kolla-network /]$ ip netns exec qrouter-d9794753-c16f-45fe-923a-df8797641121 ifconfig
Cannot open network namespace "qrouter-d9794753-c16f-45fe-923a-df8797641121": Permission denied
(neutron-linuxbridge-agent)[neutron@kolla-network /]$ ip netns exec qdhcp-e20db26a-f25d-4b9b-ae58-ebb156006aa7 ifconfig
Cannot open network namespace "qdhcp-e20db26a-f25d-4b9b-ae58-ebb156006aa7": Permission denied
(neutron-linuxbridge-agent)[neutron@kolla-network /]$ ip netns exec qdhcp-e20db26a-f25d-4b9b-ae58-ebb156006aa7 ip a
Cannot open network namespace "qdhcp-e20db26a-f25d-4b9b-ae58-ebb156006aa7": Permission denied
(neutron-linuxbridge-agent)[neutron@kolla-network /]$ sudo ip netns exec qrouter-d9794753-c16f-45fe-923a-df8797641121 ifconfig
[sudo] password for neutron:
Sorry, try again.
[sudo] password for neutron:
Sorry, try again.
[sudo] password for neutron:
sudo: 2 incorrect password attempts
(neutron-linuxbridge-agent)[neutron@kolla-network /]$

In this case what is the correct way to exec commands in netns objects ?
Can this to be a problem ?

Best regards,

Carlos

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

Carlos,

You do it wrong. In the neutron_linux_agent container, you has no permission to operator the
namespace. Because you are the *neutron* user.

there is two ways you can do this:

1. enter the container with root user permission
docker exec -u root -it neutron_linuxbridge_agent bash

2. access the namespace in the host machine like the normal way. Kolla now support this and this
     is recommended.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/302721
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=eec09486a37299edb7c18b8d3345c164c338ba55
Submitter: Jenkins
Branch: master

commit eec09486a37299edb7c18b8d3345c164c338ba55
Author: Jeffrey Zhang <jeffrey.zhang@99cloud.net>
Date: Fri Apr 8 23:45:50 2016 +0800

    Fix launch vm failed in neutron-linuxbridge-agent env

    Fix following two issues

    * neutron-linuxbridge-agent container lacks bridge-utils package
    * neutron-dhcp-agent container lacks dnsmasq-utils

    Co-Authored-By: Manjeet Singh Bhatia <email address hidden>
    Closes-Bug: #1567406
    Change-Id: I93a445b06612671f0331cd94573da41d2d3b60a0

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

Reviewed: https://review.openstack.org/304951
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=a494219c46c276495bb40f7e524111249429a008
Submitter: Jenkins
Branch: stable/mitaka

commit a494219c46c276495bb40f7e524111249429a008
Author: Jeffrey Zhang <jeffrey.zhang@99cloud.net>
Date: Fri Apr 8 23:45:50 2016 +0800

    Fix launch vm failed in neutron-linuxbridge-agent env

    Fix following two issues

    * neutron-linuxbridge-agent container lacks bridge-utils package
    * neutron-dhcp-agent container lacks dnsmasq-utils

    Co-Authored-By: Manjeet Singh Bhatia <email address hidden>
    Closes-Bug: #1567406
    Change-Id: I93a445b06612671f0331cd94573da41d2d3b60a0
    (cherry picked from commit eec09486a37299edb7c18b8d3345c164c338ba55)

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/kolla 2.0.0.0rc4

This issue was fixed in the openstack/kolla 2.0.0.0rc4 release candidate.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/kolla 2.0.0

This issue was fixed in the openstack/kolla 2.0.0 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/kolla 1.1.0

This issue was fixed in the openstack/kolla 1.1.0 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/kolla 3.0.0.0b1

This issue was fixed in the openstack/kolla 3.0.0.0b1 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.