aboutsummaryrefslogtreecommitdiffstats
path: root/patches/opnfv-fuel
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2016-06-11 23:37:40 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2016-06-12 11:28:51 +0000
commit9953f803f28a53d12e565184e9623f5b27032797 (patch)
tree19d150efe7a592d44e9a971d60985d1ac0a74160 /patches/opnfv-fuel
parentecf9055d532dae7f209e9f4591a8129dd52627b2 (diff)
Rework: Move m1.micro RAM bump to post-install.
Change-Id: I158c58cb01112d2113a75dd425275cf9531d49fc Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'patches/opnfv-fuel')
-rw-r--r--patches/opnfv-fuel/0035-m1.micro-Increase-profile-RAM-size-to-128MB.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/patches/opnfv-fuel/0035-m1.micro-Increase-profile-RAM-size-to-128MB.patch b/patches/opnfv-fuel/0035-m1.micro-Increase-profile-RAM-size-to-128MB.patch
new file mode 100644
index 00000000..89720a2b
--- /dev/null
+++ b/patches/opnfv-fuel/0035-m1.micro-Increase-profile-RAM-size-to-128MB.patch
@@ -0,0 +1,38 @@
+From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+Date: Sat, 11 Jun 2016 23:34:48 +0200
+Subject: [PATCH] m1.micro: Increase profile RAM size to 128MB.
+
+TestVM (cirros) on aarch64 requires more than 64MB RAM.
+Keep profiles uniform across all archs.
+
+Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+---
+ .../f_bootstrap/post-scripts/80_prepare_cross_builds.sh | 15 +++++++++++++++
+ 1 file changed, 15 insertions(+)
+
+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
+index 0435a28..078f117 100755
+--- 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
+@@ -66,6 +66,21 @@ if which dpkg > /dev/null 2>&1; then
+ ${PYTHON_SITEPKGS_DIR}/fuel_bootstrap/consts.py
+ echo "INFO: [xz] => [gzip] updated bootstrap initrd / rootfs compression."
+ fi
++
++ # TestVM (cirros) adjustments for cross-arch
++ #
++ # TestVM (cirros) on aarch64 requires more than 64MB RAM.
++ # Keep profiles uniform across all archs by bumping micro flavor specs.
++ # m1.micro: Increase profile RAM size to 128MB.
++ OPENSTACK_VERSION=$(cat /etc/fuel_openstack_version)
++ CONTROLLER_PP="/etc/puppet/${OPENSTACK_VERSION}/modules/openstack_tasks"
++ CONTROLLER_PP+="/manifests/openstack_controller/openstack_controller.pp"
++ if [ -f ${CONTROLLER_PP} ]; then
++ sed -i.bak -r \
++ 's/^(.*flavor-create.*m1\.micro auto)\s+[[:digit:]]+(.*)$/\1 128\2/' \
++ ${CONTROLLER_PP}
++ echo "INFO: [64] => [128] updated m1.micro profile RAM size (MB)."
++ fi
+ fi
+ fi
+