Resize VCP images
Related-Prod: PROD-24537
Closes-Bug: #PROD-25991
Change-Id: Ib5097eaa0bff0aba1d91733589f734be207325b4
diff --git a/tcp_tests/templates/cookied-bm-k8s-contrail/underlay--user-data1604.yaml b/tcp_tests/templates/cookied-bm-k8s-contrail/underlay--user-data1604.yaml
index 89b0da7..5aaf5a0 100644
--- a/tcp_tests/templates/cookied-bm-k8s-contrail/underlay--user-data1604.yaml
+++ b/tcp_tests/templates/cookied-bm-k8s-contrail/underlay--user-data1604.yaml
@@ -27,6 +27,9 @@
all: '| tee -a /var/log/cloud-init-output.log /dev/tty0'
runcmd:
+ - if lvs vg0; then pvresize /dev/vda3; fi
+ - if lvs vg0; then /usr/bin/growlvm.py --image-layout-file /usr/share/growlvm/image-layout.yml; fi
+
- export TERM=linux
- export LANG=C
# Configure dhclient
@@ -93,3 +96,26 @@
iface lo inet loopback
auto {interface_name}
iface {interface_name} inet dhcp
+
+ - path: /usr/share/growlvm/image-layout.yml
+ content: |
+ root:
+ size: '50%VG'
+ home:
+ size: '100M'
+ var_log:
+ size: '15%VG'
+ var_log_audit:
+ size: '500M'
+ var_tmp:
+ size: '500M'
+ tmp:
+ size: '500M'
+ owner: root:root
+
+ growpart:
+ mode: auto
+ devices:
+ - '/'
+ - '/dev/vda3'
+ ignore_growroot_disabled: false