Change swap creation command for CentOS

Changed the dd command arguments for swap file creation on CentOS 7
to use multiple smaller blocks that equal bootstrap_host_swap_size
to work around a memory exhaustion issue

Change-Id: I4f4750f74d31421c428cb75b7a2176d262ea79ec
Closes-Bug: #1667747
This commit is contained in:
Chris Edillon 2017-05-10 14:36:01 +00:00
parent ca826b02ae
commit e56dc09cb3
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ packages_install:
packages_remove: []
swap_create_command: "dd if=/dev/zero of=/openstack/swap.img bs={{ bootstrap_host_swap_size }}G count=1"
swap_create_command: "dd if=/dev/zero of=/openstack/swap.img bs=1M count={{ bootstrap_host_swap_size*1024 }}"
rc_local: /etc/rc.d/rc.local
rc_local_insert_before: "^touch /var/lock/subsys/local$"