Skip to content

Commit 5492ad7

Browse files
committed
Increase the memory limit for qemu-img
We appear to be bumping up against this limit when deploying RHCOS images(currently 977MB). Curiously the problem isn't happening all the time but increasing the limit eliminates it. This limit was intruduced to guard against a malicious image allocating an arbitrary amount of memory. Nothing else runs on hosts when IPA is running so we should be ok bumping up the limit. Story: #2008667 Task: #41955 Change-Id: I9405995915a874b00b7177c9642c5469d05d66a8
1 parent 4a22c88 commit 5492ad7

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

ironic_python_agent/shell/write_image.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ sgdisk -Z $DEVICE
4646

4747
log "Imaging $IMAGEFILE to $DEVICE"
4848

49-
# limit the memory usage for qemu-img to 1 GiB
50-
ulimit -v 1048576
49+
# limit the memory usage for qemu-img to 2 GiB
50+
ulimit -v 2097152
5151
qemu-img convert -t directsync -O host_device $IMAGEFILE $DEVICE
5252
sync
5353

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
fixes:
3+
- |
4+
Increase memory usage limit for ``qemu-img convert`` command to 2 GiB.
5+
See `Story 2008667
6+
<https://storyboard.openstack.org/#!/story/2008667>`_
7+
for details.

0 commit comments

Comments
 (0)