Set the default RAM for Ironic BM VMs to 1GB to ensure DIB produced deployment
ramdisks function correctly across older and newer kernels, regardless of
rootfstype.
Change-Id: Ifc15a4430aa63c3599e7fd76f5116dc7b728ead0
Closes-bug: #1311987
(cherry picked from commit 74eafa4b49dcf2f76b7627739d26e457fa1775db)
| ... | ... |
@@ -53,11 +53,12 @@ IRONIC_VM_SSH_PORT=${IRONIC_VM_SSH_PORT:-2222}
|
| 53 | 53 |
IRONIC_VM_SSH_ADDRESS=${IRONIC_VM_SSH_ADDRESS:-$HOST_IP}
|
| 54 | 54 |
IRONIC_VM_COUNT=${IRONIC_VM_COUNT:-1}
|
| 55 | 55 |
IRONIC_VM_SPECS_CPU=${IRONIC_VM_SPECS_CPU:-1}
|
| 56 |
-# NOTE(agordeev): both ubuntu and fedora deploy images won't work with 256MB of RAM. |
|
| 57 |
-# System halts and throws kernel panic during initramfs unpacking. |
|
| 58 |
-# Ubuntu needs at least 384MB, but fedora requires 448. |
|
| 59 |
-# So placing 512 here to satisfy both. |
|
| 60 |
-IRONIC_VM_SPECS_RAM=${IRONIC_VM_SPECS_RAM:-512}
|
|
| 56 |
+# NOTE(adam_g): Kernels 3.12 and newer user tmpfs by default for initramfs. |
|
| 57 |
+# DIB produced ramdisks tend to be ~250MB but tmpfs will only allow |
|
| 58 |
+# use of 50% of available memory before ENOSPC. Set minimum 1GB |
|
| 59 |
+# for nodes to avoid (LP: #1311987) and ensure consistency across |
|
| 60 |
+# older and newer kernels. |
|
| 61 |
+IRONIC_VM_SPECS_RAM=${IRONIC_VM_SPECS_RAM:-1024}
|
|
| 61 | 62 |
IRONIC_VM_SPECS_DISK=${IRONIC_VM_SPECS_DISK:-10}
|
| 62 | 63 |
IRONIC_VM_EMULATOR=${IRONIC_VM_EMULATOR:-/usr/bin/qemu-system-x86_64}
|
| 63 | 64 |
IRONIC_VM_NETWORK_BRIDGE=${IRONIC_VM_NETWORK_BRIDGE:-brbm}
|