Commit Graph

27 Commits

Author SHA1 Message Date
Antoni S. Puimedon a894f813a1 Base busybox container for tests
This will allow us to conduct tests with it in kuryr-libnetwork and
kuryr-kubernetes without to pull anything

Change-Id: I1c887e8d669ec131dac0a9930647b0112aae881a
Signed-off-by: Antoni S. Puimedon <asegurap@redhat.com>
2016-11-09 10:59:13 +01:00
Liping Mao 1b5a5989cf Remove contrib/devstack/docker code in kuryr
Since we seperate kuryr into kuryr-lib/kuryr-libnetwork.
We do not need this anymore in kuryr.

Partially Implements blueprint code-refactoring

Change-Id: I8ccdf690d1f5a3aaddeb2774cea1ded336a77070
2016-07-21 15:56:12 +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