1 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2 Date: Sat, 11 Jun 2016 23:34:48 +0200
3 Subject: [PATCH] m1.micro: Increase profile RAM size to 128MB.
5 TestVM (cirros) on aarch64 requires more than 64MB RAM.
6 Keep profiles uniform across all archs.
8 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
10 .../f_bootstrap/post-scripts/80_prepare_cross_builds.sh | 15 +++++++++++++++
11 1 file changed, 15 insertions(+)
13 diff --git a/build/f_isoroot/f_bootstrap/post-scripts/80_prepare_cross_builds.sh b/build/f_isoroot/f_bootstrap/post-scripts/80_prepare_cross_builds.sh
14 index 0435a28..078f117 100755
15 --- a/build/f_isoroot/f_bootstrap/post-scripts/80_prepare_cross_builds.sh
16 +++ b/build/f_isoroot/f_bootstrap/post-scripts/80_prepare_cross_builds.sh
17 @@ -66,6 +66,21 @@ if which dpkg > /dev/null 2>&1; then
18 ${PYTHON_SITEPKGS_DIR}/fuel_bootstrap/consts.py
19 echo "INFO: [xz] => [gzip] updated bootstrap initrd / rootfs compression."
22 + # TestVM (cirros) adjustments for cross-arch
24 + # TestVM (cirros) on aarch64 requires more than 64MB RAM.
25 + # Keep profiles uniform across all archs by bumping micro flavor specs.
26 + # m1.micro: Increase profile RAM size to 128MB.
27 + OPENSTACK_VERSION=$(cat /etc/fuel_openstack_version)
28 + CONTROLLER_PP="/etc/puppet/${OPENSTACK_VERSION}/modules/openstack_tasks"
29 + CONTROLLER_PP+="/manifests/openstack_controller/openstack_controller.pp"
30 + if [ -f ${CONTROLLER_PP} ]; then
32 + 's/^(.*flavor-create.*m1\.micro auto)\s+[[:digit:]]+(.*)$/\1 128\2/' \
34 + echo "INFO: [64] => [128] updated m1.micro profile RAM size (MB)."