Commit Graph

15 Commits

Author SHA1 Message Date
Liping Mao d241bbbb2f kuryr bind port error with neutron linux bridge driver
When neutron configured with linux bridge driver, kuryr will bind
port error. The linux bridge name should be "brq"+network_id[0,11].

Change-Id: I07be68bbfe7b1384f4e946664aed41546ff9ddce
Closes-bug: #1638041
2016-11-01 14:57:05 +08:00
Jenkins c4061312d8 Merge "Add support for VIF_TYPE_TAP" 2016-05-09 19:57:32 +00:00
Antoni Segura Puimedon 7f4146e044
containerization: Add dockerfile
This adds an alpine linux based docker image for running kuryr

one can try it out doing:

    sudo mkdir -p /usr/lib/docker/plugins/kuryr
    sudo curl -o /usr/lib/docker/plugins/kuryr/kuryr.spec \
      https://raw.githubusercontent.com/openstack/kuryr/master/etc/kuryr.spec
    sudo service docker restart

    docker run --name kuryr-libnetwork \
      --net=host \
      --cap-add=NET_ADMIN \
      -e SERVICE_USER=admin \
      -e SERVICE_TENANT_NAME=admin \
      -e SERVICE_PASSWORD=pass \
      -e IDENTITY_URL=http://127.0.0.1:35357/v2.0 \
      -e OS_URL=http://127.0.0.1:9696 \
      -v /var/log/kuryr:/var/log/kuryr \
      kuryr/libnetwork

Change-Id: I68d727194d6029da965fca90fdd464ed45b02044
Signed-off-by: Antoni Segura Puimedon <toni@midokura.com>
2016-05-09 11:29:45 +02:00
Mohammad Banikazemi cc05a7b903 Adding support for OVS Hybrid binding
Allows the OVS binding script to recognize if it
has to do hybrid binding or not and operate accordingly.

Closes-Bug: #1535828
Change-Id: I7c7d7b115b546c136a07880bc568662558dbc950
2016-05-02 09:52:56 -04:00
Neil Jerram c97af83144 Add support for VIF_TYPE_TAP
The networking-calico Neutron driver/plugin uses VIF_TYPE_TAP, so this
change enables using Kuryr with networking-calico

Change-Id: Ic5a079ad4e4d7be73e9fc81145e28bc6ee59bc36
2016-04-28 16:19:13 -05:00
Christophe Sauthier eefe1dbd64 Fix ovs creation of the port
This patch fix the mac address of the port to the right value.
It also creates the port atomically (with the various details),
avoiding it to be misinterpreted by ovs-agent.

Change-Id: I16f89a30ac3b47eeaa5edddd37712934729fdf93
Closes-Bug: 1569412
2016-04-14 17:54:56 +02:00
Jenkins ccc3425906 Merge "Modify external_ids in /usr/libexec/kuryr/ovs" 2016-02-29 19:48:50 +00:00
Fawad Khaliq 894d2b7313 Add PLUMgrid/IOvisor binding for Kuryr
Implements: blueprint plumgrid-kuryr-binding
Change-Id: I478dc305bba418b84e3a64dd6ec35e5b2b5c2f5b
2016-02-27 20:48:37 +00:00
Mohammad Banikazemi 4b43743e53 Add binding script for LB
Change-Id: I9dd04c35d6aa658eaee25af91df5630734fe80da
Closes-Bug: #1545858
2016-02-17 13:28:44 -05:00
Liping Mao a3531d03dd Modify external_ids in /usr/libexec/kuryr/ovs
The external_ids which created by nova and kuryr is different.
Nova use "vm-uuid=" in external_ids but kuryr use "vm-id=".

Change-Id: Ic3f96fa1e7ac8227390b7afcc0237b39aad18836
Closes-bug: #1543927
2016-02-15 15:46:41 +08:00
kexiaodong 9d789cd4a7 Fix the unbind_port method in libexec of ovs.
Change-Id: Iae52e4b2545281fb2e5f203d811877b928e15c89
Closes-Bug:#1528121
2015-12-21 05:12:57 -08:00
Mohammad Banikazemi 6198e2ce8a Adding plug/unplug for OVS
Adding the binary that includes plug and unplug
operations for the OVS.

Change-Id: I2672b246fb8e775c4f80318400c75a49e98df281
2015-12-07 09:48:29 -05:00
Taku Fukushima acd35ba743 Modify unbound script executable
This patch modifies the permission of usr/libexec/kuryr/unbound and
makes it executable.

Change-Id: I7f898763a45b9ee09d3876df73836df13d1bea4c
Signed-off-by: Taku Fukushima <f.tac.mac@gmail.com>
Closes-Bug: #1516871
2015-11-17 13:21:50 +09:00
Taku Fukushima 6f680fb8bc Implement /NetworkDriver.Leave
This patch implements /NetworkDriver.Leave, which unbinds the Neutron
port from the veth pair on the host and delete the veth pair.

Change-Id: If02f52594924811180acfaac0ec29d10c25c6869
Signed-off-by: Taku Fukushima <f.tac.mac@gmail.com>
2015-11-04 17:16:18 +09:00
Taku Fukushima 61a0350695 Implement /NetworkDriver.Join
This patch implements /NetworkDriver.Join, which goes through the
following steps:

1. Find the Neutron port associated with the given EndpointID
2. Create the veth pair based on the info of the retrieved port
3. Bind the port to the veth endpoint
4. Construct the response with the port and return it

In the process 3, Kuryr executes the binding script specified in the
binding:vif_type attribute of the retrieved Neutron port. Although
Neutron plugin can put arbitrary types in that attribute, if the
attribute was not specified it defaults to "unbound" and Kuryr invokes
"unbound" executable, which always fails with the status code 1.

This patch also includes the unit tests cover the successful case and
the failures.

Change-Id: Id3a8288199975d86812c7c1d210c7e11ae58d7b8
Signed-off-by: Taku Fukushima <f.tac.mac@gmail.com>
2015-11-04 17:03:49 +09:00