aboutsummaryrefslogtreecommitdiff
path: root/dev
AgeCommit message (Collapse)AuthorFilesLines
2016-03-16Merge "Fix host_manager plugin for vagrant virtualbox"Jenkins1-2/+1
2016-03-16Fix genconfig on vagrantMartin André1-1/+1
We run tox at the root of the home directory, so we need to pass it the path to the tox.ini file. TrivialFix Change-Id: Ieb52d845b77f556aee5cd194a8ef86561b7849b2
2016-03-16Fix host_manager plugin for vagrant virtualboxMartin André1-2/+1
There is no such thing as virtualbox_{ubuntu,centos} but only a virtualbox provider. The code to retrieve the VM's IP address was never executed and broke host_manager plugin. TrivialFix Change-Id: I0ffacf0bd5d2856264247b23e3b3e918836988e3
2016-03-15Unify vagrant bootstrap.sh scriptsDaniel Gonzalez4-171/+105
Merge the vagrant bootstrap scripts for centos and ubuntu into a single file. Change-Id: Ia07931b4717cd393fe51141907fc561166cc05e4 Closes-Bug: 1554140
2016-03-11Stop shipping broken openrc in vagrantMartin André2-22/+0
Instead, rely on kolla-ansible post-deploy to generate a configuration file with valid environment variables. Change-Id: Ie62932afc96e2486410a1d4e14162a88b1733c22 Closes-Bug: #1555972
2016-03-03Simplify logic of vagrantfileMartin André1-6/+6
TrivialFix Change-Id: I0af5d5a80f28d8cb8b5f0e7799fd87bcd73e09cf
2016-03-02Make Vagrant libvirt graphics_ip configurableÉric Lemoine2-0/+14
TrivialFix Change-Id: I5c6153016f15b8a0922bdb28c4a03de561b240ee
2016-02-26Fix issue in newest_dhcp_lease.pyÉric Lemoine1-4/+4
This fixes a bug in newest_dhcp_lease.py where the get_mac_address function currently searches for a "bridge" interface instead of searching for the interface whose source network is "vagrant-private-dhcp". Change-Id: Iea0b25f893b959b5e319b117e7a1c4c63a00dd23 Closes-Bug: #1548742
2016-02-24Fix a typo in the vagrant bootstrap scriptsSam Song2-2/+2
Change-Id: I90e053a8c5810dec69bd5087ddd8e31c037e6a41
2016-02-23Fix vagrant bootstrapping for ubuntuDaniel Gonzalez2-52/+105
The ubuntu-bootstrap.sh script used by vagrant to provision ubuntu boxes was lacking many of the features of centos-bootstrap.sh. For instance, ubuntu-bootstrap.sh did not install kolla, so the kolla-build executable was not available after initial provisioning. This patch adapts the bootstrap script to match the centos bootstrap script as closely as possible. Change-Id: I6cdacb993a9b6856912ea7cfb73a28f3867f472a Closes-Bug: #1547114
2016-02-22Harmonise vagrant provider defaultsDaniel Gonzalez2-8/+8
Ensure that provider defaults of libvirt and virtualbox use the same paths and provisioning scripts. Change-Id: Ie968b118aa0540204751c348ef3408a6fe24d32a Partial-Bug: #1547114
2016-02-22Change ubuntu base_image for vagrant to wily64Daniel Gonzalez2-2/+2
The ubuntu-bootstrap.sh script tries to install the packet linux-image-generic-ls-wily when the kernel version is older than 4.2. This fails when using the default base image ubuntu/vivid64. Therefore this patch updates the base_image to ubuntu/wily64. Change-Id: Ieaf2d35a9a4304de2d1d78d8245d115dcb32bb0e Partial-Bug: #1547114
2016-02-18Set nova hypervisor to qemu in VagrantMartin André1-1/+7
Additionally, install python-neutronclient that is needed for tools/init-runonce. Change-Id: I416afc0299c8e6a8e603eca2334ea3a9836707fe Partial-Bug: #1542933
2016-02-15Use variables to specify http or https when constructing URLsDave McCowan1-1/+2
To allow for TLS to protect the service endpoints, the protocol in the URLs for the endpoints will be either http or https. This patch removes the hardcoded values of http and replaces them with variables that can be adjusted accordingly in future patches. Change-Id: Ibca6f8aac09c65115d1ac9957410e7f81ac7671e Partially-implements: blueprint ssl-kolla
2016-02-09Switch to docker registry v2Martin André1-1/+1
With docker 1.10, the v2 registry finally has decent performances. TrivialFix Change-Id: I85fde385dba3579abad497e327170d30b8b9fc7c
2016-02-09Fetching IP addresses for vagrant-hostmanager from libvirtMartin André2-1/+132
To fetch the IP address from the interface other than eth0 for vagrant-hostmanager plugin, it must be fetched from the DHCP leases from libvirt network. The previously used one-liner, which was using virsh with awk, returns multiple addresses when VM was destroyed before expiration of its DHCP lease. This script solved this problem by getting only the newest DHCP lease and gives a possibility to destroy Vagrant environment and set up again without worrying about hosts resolving. Co-Authored-By: Michal Rostecki <mrostecki@mirantis.com> Partially-Implements: blueprint vagrant Related-Id: Ic469b46f4d02d873c27114cbd268b86521eef32b Related-Id: I81f07b7e4a202af68fd3cf9fdb308c3734c40a83 Change-Id: I408415e95483c1b8988d0f67c654212de63bece2
2016-02-09Fix Vagrant provisioning with docker 1.10Martin André1-1/+2
docker 1.10 removed the -d flag in favor of "daemon". Also adjust docker config to enable shared mount namespace. Closes-Bug: #1543201 Change-Id: I14cb497e0e02d90cdf74de8a09cca346f68254ab
2016-02-04Update kernel version in ubuntu-bootstrap.shMD NADEEM1-2/+2
Ubuntu-bootstrap.sh script rebooted my server with message of re-run the script and at re-run it again do the same thing. I find this behavior is due to the below check if [[ $(uname -r) != *"3.19"* ]] As latest ubuntu kernel version is 4.2.0-27-generic, so we should update the script for kernel version 4.2.0-27-generic. This patch fixes the issue. Closes-Bug: #1541797 Change-Id: I01e98d80df60fe8c5f6ac6e644d42261fdd2921c
2016-01-19Adapt openrc file to use keystone v3Marc Koderer1-2/+3
Ansible adminrc file already uses v3 as default. So let's to that in vagrant too. See file: ansible/roles/common/templates/admin-openrc.sh.j2 TrivialFix Change-Id: I23b7ff81808ddc718ae1186887e9764ebc5ab6ef
2016-01-18Rename bootstrap.sh to centos-bootstrap.shMarc Koderer2-2/+2
Since Ubuntu and Centos are both valid options it's better to list their names in both bootstrap files Trivial-fix Change-Id: Ie8179403ba550ff61a45aa936fb87e02b9f74861
2016-01-15Fix centos AiO setupMarc Koderer1-1/+2
LVM2 must be upgraded before device-mapper. Otherwise the setup fails. Change-Id: I97f57c1c8fd50621ad7fa0ddf296cc987c227cd2 Fixes-bug: #1534549
2016-01-07Remove the kolla-build.confJeffrey Zhang1-0/+3
use tox -e genconfig to generate this file DocImpact Closes-Bug: #1531202 Change-Id: I3a6e57c3cc48aeb3a45a055b173207ea6e214960
2016-01-05Be more specific in regex used in sedMartin André1-2/+2
We want to change *only* the desired option. Change-Id: Ic67ba474569f6bf7d74bd710364f26be0f0363eb Close-Bug: #1531046
2016-01-04Merge "Set selinux to permissive in Vagrant"Jenkins1-0/+4
2016-01-04Set selinux to permissive in VagrantMartin André1-0/+4
Selinux is preventing to write on mounted volumes. Let's set it to permissive in Vagrant box provisioning. Change-Id: If8ea57f242166eb6f4ef618639d4ab672e5098d3 Closes-Bug: #1530766
2016-01-04Remove docker version pinning for vagrant envsMartin André2-9/+6
Kolla now has its own docker ansible module which doesn't require specific docker version. Also, add requirement for ansible <2, and stop using NL mirror for epel. Change-Id: I743c51c2d6b7f6af0aa4038e1081066b36e36fa1 Partially-Implements: blueprint kolla-docker-module
2015-12-07Update Vagrant's Ubuntu box provisioning scriptDiogo Monteiro1-3/+8
Starting from Vivid Ubuntu uses systemd as the default boot manager instead of upstart. Updating the way the docker daemon is configured to follow the systemd way. Setting env variable GUNICORN_OPTS=[--preload] to fix race condition and avoid IntegrityError when pushing images to local registry Change-Id: I841f85015c2c3683ef7e1e454ec1369263063c45 Related-bug: https://github.com/docker/docker-registry/issues/518 Closes-Bug: #1523336
2015-11-18Allow to customize vagrant deploymentMartin André2-18/+116
Extract the Vagrantfile configuration to a Vagrantfile.custom file, to permit easy customization of the Vagrant deployment without the need to modify a file under version control. Closes-Bug: #1517475 Change-Id: I03e3ef373ec47e3d622b77fa9cf88748db99adaa
2015-11-18Factor out definition of nodes in VagrantfileMartin André1-61/+15
All the nodes, with the exception of the operator, are build the same with maybe different specs. We can remove the duplication with a bit of metaprogramming. Also pass all expected arguments to the provisionning script,and get rid of hardcoded path to it. Closes-Bug: #1517476 Change-Id: I515ef1d529d7ec49038662001a3e5345a941fea7
2015-11-18Merge "Remove "../../etc/kolla" from synced folders in Vagrant"Jenkins1-1/+0
2015-11-18Remove "../../etc/kolla" from synced folders in VagrantMichal Rostecki1-1/+0
That sync broke copying configuration files in Ansible playbooks and made all changes of configuration inside VM as a change in kolla git repo on host. Change-Id: I21ecd9a48c0c3263c05f5dbefea7bbc78a919f0a Closes-Bug: #1515901
2015-11-18Make vagrant bootstrap scripts args more obviousMartin André2-9/+16
Also add missing curly braces around variables. TrivialFix Change-Id: I8798ec52d9ddf76ad1f3debdf087ed4f51defc38
2015-11-12Get kolla path from settings when provisioning boxDiogo Monteiro2-2/+3
The path for the kolla source dir was being hardcoded on the ubuntu-bootstrap provision script instead of utilizing the path defined in the PROVIDER_DEFAULTS settings in the Vagrantfile Change-Id: I0eb752ecf4db580838687c290ccf36810e8a4ff3
2015-11-11Added Ubuntu support for VagrantDiogo Monteiro2-18/+156
Added support for Vagrant VirtualBox provider to provision an Ubuntu VM to run kolla. A new bootstrap-ubuntu.sh script has been created which provisions the Ubuntu VM with all kolla depdencies including docker 1.8.2, ansible 1.9.6 and python-tools Also created vars in the Vagrantfile to define the cpu and memory settings of the VM nodes used to run kolla DocImpact Change-Id: I4609d7f577e948b04663901afd0c5d1d154c8ac4 Implements: blueprint vagrant-ubuntu-support
2015-11-02Use default disk image size for centos/7Martin André2-25/+0
Latest centos/7 image from atlas now comes with 40 GB disk size which is equal to the virtual_size we specify in the Vagrantfile. Libvirt provider doesn't like it and produces an ugly stacktrace. The new default value now sufficient run kolla properly and we can remove the code that artificially increased the disk size. Change-Id: I7a645543cfcc027b4a3e0d02d8e7f436d8410ec5 Backport: Liberty Closes-Bug: #1511265
2015-10-15Pin Docker version to 1.8.2Michal Rostecki1-0/+5
Currently Ansible have issues with Docker 1.8.3. We have to pin version to 1.8.2 before including fix [1] in tagged Ansible version. [1] https://github.com/ansible/ansible-modules-core/pull/2258 Change-Id: If802ff118782ec521acfff00e286cde703bf37b3
2015-10-13Merge "Install tox in Vagrant"Jenkins1-1/+1
2015-10-13Install tox in VagrantMichal Rostecki1-1/+1
Change-Id: I374d5f3702c1874b76e582b8585246d670eeb74a Closes-Bug: #1505281
2015-10-13Push images to registry by default in VagrantMichal Rostecki1-0/+1
Change-Id: Ia4520cf85531e2508aba7aec9e078f963943af75 Closes-Bug: #1505497
2015-10-09Fix path of synced_folder in VagrantfileMichal Rostecki1-1/+1
Vagrantfile is in dev/vagrant directory on repository, so to reach the main directory, it should sync "../.." path instead of "..". Change-Id: I7d142c8239423f5de52de5602a732770bb1d7c6c Closes-Bug: #1504426
2015-10-07Move around the development environmentsSteven Dake6-0/+739
THe top level dev directory is now used to store the heat and vagrant development environments. backport: liberty TrivialFix Change-Id: Ib0922b90eacaa8518aee09cdeb46f4ac0437e015