From 95517f01fc7d082e3a48a8e282854ea4d537760a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Sun, 1 Nov 2015 21:29:36 +0900 Subject: [PATCH] Use default disk image size for centos/7 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 --- dev/vagrant/Vagrantfile | 6 ------ dev/vagrant/bootstrap.sh | 19 ------------------- 2 files changed, 25 deletions(-) diff --git a/dev/vagrant/Vagrantfile b/dev/vagrant/Vagrantfile index 84e27fd5f5..ea7cc299a8 100644 --- a/dev/vagrant/Vagrantfile +++ b/dev/vagrant/Vagrantfile @@ -93,12 +93,6 @@ Vagrant.configure(2) do |config| admin.vm.synced_folder ".", get_default(:vagrant_shared_folder), disabled: true admin.vm.provider PROVIDER do |vm| vm.memory = MULTINODE ? 1024 : 4096 - if PROVIDER == 'libvirt' - # This only works with libvirt provider. - # We should be able to do something similar for virtualbox - # http://askubuntu.com/questions/317338/how-can-i-increase-disk-size-on-a-vagrant-vm - vm.machine_virtual_size = 40 - end end admin.hostmanager.aliases = "operator" end diff --git a/dev/vagrant/bootstrap.sh b/dev/vagrant/bootstrap.sh index dbe6860439..14ea307ddd 100644 --- a/dev/vagrant/bootstrap.sh +++ b/dev/vagrant/bootstrap.sh @@ -66,24 +66,6 @@ EOF usermod -aG docker vagrant } -function resize_partition { - fdisk /dev/vda <