From aa3bdabc190fb2aec666a6509fefc3e4a61895e6 Mon Sep 17 00:00:00 2001 From: David J Peacock Date: Wed, 24 Jan 2018 16:06:23 -0500 Subject: [PATCH] Alter default for --min-tmpfs This patch alters the default for the --min-tmpfs flag increasing the chances of successful image builds in memory restricted environments. Increasingly, and especially with increasing support for things like OVB and other virtual deployments, people are deploying underclouds in somewhat constrained environments. A regular image build fails routinely in an undercloud with <= 12GB RAM. Unfortunately this is tricky to nail down as the cause since typically the VM undercloud locks up solid making debugging difficult or impossible. Increasing this value means image builds complete successfully by deferring the ramdisk meaning a happier experience for the operator and negligible difference in the speed of the image creation. Secondly, this patch adds consistency to flags by standardizing on the = character. Change-Id: I8fcd240b7063b4991404e01c08441fe929ff5e69 --- image-yaml/overcloud-hardened-images.yaml | 2 +- image-yaml/overcloud-images.yaml | 4 ++-- image-yaml/overcloud-realtime-compute.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/image-yaml/overcloud-hardened-images.yaml b/image-yaml/overcloud-hardened-images.yaml index b52157611..99d5a9898 100644 --- a/image-yaml/overcloud-hardened-images.yaml +++ b/image-yaml/overcloud-hardened-images.yaml @@ -37,7 +37,7 @@ disk_images: - python-heat-agent-json-file - screen options: - - "--min-tmpfs 5" + - "--min-tmpfs=7" environment: DIB_PYTHON_VERSION: '2' DIB_MODPROBE_BLACKLIST: 'usb-storage cramfs freevxfs jffs2 hfs hfsplus squashfs udf vfat bluetooth' diff --git a/image-yaml/overcloud-images.yaml b/image-yaml/overcloud-images.yaml index 81d8e06fb..32fcdb03b 100644 --- a/image-yaml/overcloud-images.yaml +++ b/image-yaml/overcloud-images.yaml @@ -30,7 +30,7 @@ disk_images: - device-mapper-multipath - openstack-heat-agents options: - - "--min-tmpfs 5" + - "--min-tmpfs=7" environment: DIB_PYTHON_VERSION: '2' - @@ -50,6 +50,6 @@ disk_images: packages: - python-hardware-detect options: - - "--min-tmpfs=5" + - "--min-tmpfs=7" environment: DIB_PYTHON_VERSION: '2' diff --git a/image-yaml/overcloud-realtime-compute.yaml b/image-yaml/overcloud-realtime-compute.yaml index 8a39dd398..e474d37f6 100644 --- a/image-yaml/overcloud-realtime-compute.yaml +++ b/image-yaml/overcloud-realtime-compute.yaml @@ -28,7 +28,7 @@ disk_images: - device-mapper-multipath - openstack-heat-agents options: - - "--min-tmpfs 5" + - "--min-tmpfs=7" environment: DIB_PYTHON_VERSION: '2' DIB_BAREMETAL_KERNEL_PATTERN: 'vmlinuz*.rt*'