Commit Graph

42 Commits

Author SHA1 Message Date
gujin 910f2e72db Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org counterparts.

Change-Id: Ia04c82127761ee818a37efe6cf9137987f8262f8
2020-05-17 04:38:56 +00:00
Hongbin Lu c528e9be2f Replace port 35357 with port 5000
Starting from Keystone v3, the port 35357 is not used.
See: https://review.opendev.org/#/c/541857/

Change-Id: I4fee6ebcca6cbb1c610fa19c4294ef5a45b50709
2019-04-29 22:17:03 +00:00
shangxiaobj 78ba957ab0 Replace http with https for doc links in kuryr-libnetwork
1) Update doc links according to OpenStack document migration
2) Use https instead of http for docs links

Change-Id: If0b076ecd9b6c82186e8d6e504da3aa9d11a7dd3
2017-08-31 19:49:14 -07:00
Jenkins 0c72775458 Merge "Fix vagrant up with ubuntu/xenial64" 2017-05-14 15:56:53 +00:00
Liping Mao (limao) ea12e966ee Fix vagrant up with ubuntu/xenial64
There is the following bug in ubuntu/xenial64 cloud image.
https://bugs.launchpad.net/cloud-images/+bug/1569237
This will cause that vagrant user will not exist.

Change-Id: Iacc4135fa165d8624ad61c4e5170683180234cbf
Closes-Bug: #1687197
2017-05-07 14:14:46 +08:00
Liping Mao (limao) 0dd2ad15af Kuryr-libnetwork Docker managed plugin
This patch add a script to create v2plugin rootfs.
1. use local unix socket for v2plugin
2. add config.json for v2plugin
3. Add scripts to build v2plugin rootfs
4. Update devstack to use v2plugin

Change-Id: I91d352a963840f33d1d2f9cea17ab6ac777d22bc
Related-Bug: #1668486
Partially-Implements: BP docker-v2plugin
2017-05-03 08:58:54 +08:00
Liping Mao (limao) 95e22ab2b6 Kuryr-libnetwork container ssl error in multi-thread
When use kuryr-libnetwork container with multi-thread and neutron
service under https, uwsgi will has ssl error.

Change-Id: I897d84742570dcc2d4daba1ea40882814a38679f
Related-Bug: #1675301
2017-03-24 14:26:55 +08:00
Janonymous 19dcc7a883 Adding Openstack support for Xenial
Openstack dropped support for Ubuntu-trusty,
changed to xenial to avoid conflicts with devstack

Change-Id: I9e192b47d7f30cb412a4177947225c39db749073
Closes-bug: #1673704
2017-03-20 15:30:23 +00:00
Liping Mao (limao) f96605c9d5 Add default log_file and log_dir in kuryr-libnetwork docker image
Change-Id: Ibe308dd30eed17f0183edaa9cb44fab9e43cd852
Closes-bug: #1670063
2017-03-05 13:02:09 +08:00
Janonymous 1e3d164a71 Tls support configurations
Change-Id: If16d60d03629734a3abe0393a967e8458653f3ff
Partially-implements: bp tls-support
2017-01-27 05:22:25 +03:00
janonymous 3e884a5f2d OS_HOST_IP is not working, replacing with HOST_IP
Change-Id: I5ca85d046240890c51fb36bff4abba1bfa5934da
2016-12-07 08:13:21 +05:30
Liping Mao b7f8f23440 Build docker busybox image locally
Change-Id: I521962daca113202b52221cb53d93c0cad8f2d6f
Closes-bug: #1633435
2016-11-27 22:50:03 +08:00
Kyle Mestery 98246fa6fd Vagrant: Fix example for OVN
OVN native DHCP has landed, fix the example in the README.md file indicating how
to use OVN so it correctly uses OVN native DHCP with devstack.

Change-Id: If571ba9878d2b893f3e85f3b6b763d5b797bd598
Signed-off-by: Kyle Mestery <mestery@mestery.com>
2016-10-24 09:41:24 -05:00
AbdulAzhar Mohammed 9a08de485a Update the kuryr-libnetwork repository
Currently in devstack README.md path to vagrant file is wrong.
This patch fixes it.

Change-Id: I71bf1c6a0808113afbfa1ebd11f57200e21e3a72
Closes-bug: #1627489
2016-09-28 04:16:51 +00:00
Antoni Segura Puimedon 6f6ff11645
container: Build the container from tree not git
Up until this patch, the Docker container for the Kuryr libnetwork
daemon was part of contrib and was being built by checking out the
latest master from github. That is not very helpful when developers
want to build the container to run their latest changes.

With this change, we move the Docker building to the root of the repo so
that it can use the current state of the repo to build and update the
README.rst to contain the information relative to building and using the
container.

Change-Id: Ie9032d62c73d873a29cabe84c64a19df13fdb749
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2016-09-14 10:23:12 +02:00
Janonymous eebbac4bd4 Docker Daemon should use port 2375 instead of 23750 at some places
Closes-Bug: #1621308
Change-Id: I1ca10608417e9345672748af626b2c935683e396
2016-09-08 13:35:12 +05:30
Liping Mao ad75de7ea4 The kuryr default port has changed from 2377/2375 to 23750, we also need
to change it in all file.

Closed-Bug: #1603777

Change-Id: Ia7f55e64c3c6d7d988a5e698ada0a1406e920d65
2016-07-17 22:47:17 +08:00
Peter V. Saveliev 27711777d6 contrib/vagrant: fix env vars type conversion
Explicitly set type for integer environment variables:

* VAGRANT_KURYR_VM_MEMORY
* VAGRANT_KURYR_VM_CPUS

Despite there is a fix in the Vagrant git repo for that
issue, still exist systems where the issue is not fixed.
On those systems trying to limit the VM memory one will
get «no implicit conversion of String into Integer».

Thus convert the environment variables to int explicitly.

Change-Id: I80a39e0b072159b601dd8cadf839e596ea64e644
Bug-Url: https://github.com/vagrant-libvirt/vagrant-libvirt/issues/525
Bug-Url: https://github.com/vagrant-libvirt/vagrant-libvirt/pull/526
2016-06-23 13:55:50 +02:00
Jenkins f40b431773 Merge "[Tryfix] Increase the default RAM in vagrantfile" 2016-05-27 20:23:41 +00:00
Liping Mao fb2242957c Remove log_level as kuryr is using oslo_log now
Change-Id: I4c1010c980bc5e66fae828e10fd40dbcf12f76ca
2016-05-20 00:50:25 +08:00
Mohammad Banikazemi 6fdd50af0f Trivial doc fixes
Change-Id: I93254c10204b23d2507f0259325c98b56a8d49c7
2016-05-18 18:08:50 -04:00
Liping Mao 5b1afb12f8 [Tryfix] Increase the default RAM in vagrantfile
When I create two containers and one tiny vm, I find the
neutron-ovs-agent is crash due to lack of memory. I know
we can add memory by modify VAGRANT_KURYR_VM_MEMORY. But
I think create two containers and one tiny vm is very
basic requirement when test kuryr, the default ram should
support this.

Change-Id: I6758ffb104d8ed91135ec58b0c2b794e7fce10c9
Closes-Bug: #1582716
2016-05-17 22:07:43 +08:00
Jenkins b2c20a2083 Merge "Revise Vagrant install readme notes estimated run time" 2016-05-17 06:08:34 +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
MikeG451 ce2b81feb3 Revise Vagrant install readme notes estimated run time
Bug description:
vagrant install readme notes vagrant up should take around 10min;
mine took 38min

Change-Id: Idc5312f30678850aaa25ac55b46e47a344f77b15
Closes-bug: #1577545
2016-05-06 07:35:53 -07:00
Jenkins cbf064c6c9 Merge "Vagrant: Allow running the "docker" command as the vagrant user" 2016-04-19 22:48:40 +00:00
Kyle Mestery 849f32ee12 Vagrant: Allow running the "docker" command as the vagrant user
This adds the setting of DOCKER_HOST into the kuryr_rc file,
and moves the sourcing of said file into .bash_profile upon
user login. With this change, you can now login to the Vagrant
VM and run docker commands as the vagrant user.

Change-Id: If9b27b63b1dd017471714e18e70c2bf2138e65db
Signed-off-by: Kyle Mestery <mestery@mestery.com>
2016-04-19 08:35:23 -05:00
Kyle Mestery d45a1cfb30 README.md: Cleanup documentation
Some things have changed since this was written, namely that kuryr itself
is started as part of devstack and the kuryr subnetpool is created. Also,
the instructions for using user_local.conf to add another Neutron plugin
need some updating.

Change-Id: I5f9a7ee1fff2607f5fbf2117e34ad4bc9b095b1f
Signed-off-by: Kyle Mestery <mestery@mestery.com>
2016-04-18 14:15:03 -05:00
Frederick F. Kautz IV a5aeafb5c1 Expose horizon on Vagrant guest to localhost port 8080
Change-Id: I7a6e8f5a07edeb17bc4a50e9f9d44b3bd18f3fe3
2016-02-23 19:19:49 -08:00
Frederick F. Kautz IV 2675f6b0db Virtualbox now uses 'ubuntu/trusty64' instead of 'trusty'
'trusty' does not exist in atlas, causing vagrant up to fail.

Change-Id: I32680b7b01a0136c3306bfcf28ffd1b2f8babd25
2016-02-18 22:47:00 -08:00
Liping Mao 5fc60a4df8 Fix invalid url
Change-Id: Ida2f240ab18055b5f454112e409eaedeaebe2382
2016-01-29 21:35:15 +08:00
Liping Mao e1d1050200 Update the invalid URL.
Change-Id: Iccdb93b116e788c1555a3be513840e3f28718b1a
2016-01-20 00:45:34 +08:00
Kyle Mestery 01a56577b6 Allow for user specified local.conf changes with Vagrant
This adds the ability for the user to inject additional configuration
into local.conf during the provisioning step. One can change the
Neutron plugin, for example, using this configuration.

Change-Id: If778960edb1d9c3a23c7947c5ba3bf8a07bdfc3a
Signed-off-by: Kyle Mestery <mestery@mestery.com>
2015-12-28 15:34:18 -06:00
Jaume Devesa 07687f4401 Make ./stack.sh optional
Create a new VAGRANT_KURYR_RUN_DEVSTACK environment variable to make the
`stack.sh` call optional.

Some people may want to edit the `local.conf` file before run `stack.sh`
manually in the VM. Useful for the devstack/plugin.sh development, for
instance.

It is defaulted to `true` for backwards compatibility.

Change-Id: Ia3fe8cb4416a75a3ec05cbb9ce698313daa555e4
2015-12-21 17:55:42 +01:00
Jaume Devesa 0a8a5336d4 Allow rpm-based machines
This patch modifies the vagrant provision scripts slightly to allow to
deploy CentOS/RedHat machines via VAGRANT_KURYR_VM_BOX.

Change-Id: I8860e6fbb4c2929bfcd67aefbff208f7d13be8f8
2015-12-15 18:22:24 +01:00
Jaume Devesa 46f10d0f33 Cosmetic and configurable changes on Vagranfile
Make the Vagranfile look better by indenting the options and let modify
some values to make it more configurable.

Change-Id: I22d62db25183db22a640af6ea0df06bdfe72a2d3
2015-12-15 16:08:55 +01:00
Antoni Segura Puimedon d4cbe63212 vagrant: add support for the libvirt provider
A recent enough box in atlas was nowhere to be found so I ended up
making a packer job to create one from the latest ubuntu trusty64
server.

Change-Id: Iefc88197d9948fc100e1df5026e6125c178a9782
2015-12-02 22:57:27 +01:00
Kyle Mestery a68600fc6c Integrate devstack plugin with Vagrant setup
This integrates the freshly added devstack plugin with the Kuryr
Vagrant setup.

Also cleans up a few nits found while here in plugin.sh

Change-Id: I5de55e7d6415d4bffe8bb7a2b2e5e15188815c36
Signed-off-by: Kyle Mestery <mestery@mestery.com>
2015-11-25 09:57:28 -06:00
Kyle Mestery 99897cc1cc Cleanups to Vagrant documentation and scripts
Fix some spelling errors in the scripts and the Vagrant documentation.
Also, add a note about creating the default subnetpool in the Vagrant
documentation.

Change-Id: I13454328d7b4372d6773661b006466f3419c4fe0
Signed-off-by: Kyle Mestery <mestery@mestery.com>
2015-11-20 13:36:51 -06:00
Miguel Angel Ajo 2a712c05e6 Refactor Vagrantfile to allow other providers
This patch includes the parallels provider as an example and
sets two top variables to control over the RAM and CPUs.

Change-Id: Ib3379721990863259cc9095a715ae663f9a8c5ca
2015-11-19 13:18:45 +01:00
Vikas Choudhary ab0c782ad6 Update vagrant support to use docker 1.9.0 rather experimental
Experimental docker changes very frequently and this can lead to unexpected
behavior. It will be better to use docker latest release rather experimental.

Change-Id: Ic40155a3788e37158df65d43bc8629f4f30a7bbf
Closes-bug: #1507447
2015-10-19 10:43:42 +05:30
Vikas Choudhary 036cf9d9c5 Add files to enable demo kuryr setup using Vagrant
These changes will help developers to quickly setup kuryr along with
docker, keystone and neutron using vagrantfile. Complete steps are
mentioned in ReadMe.

Change-Id: Ia2e16c13a9ae0a6c59991d205f055e3ae8b7b33f
Closes-Bug: #1504018
2015-10-08 20:40:00 +05:30