Swap creation fails on CentOS AIO

Bug #1667747 reported by Antony Messerli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Low
Chris Edillon

Bug Description

Create swap file fails when doing a CentOS 7 AIO on latest master:

TASK [bootstrap-host : Create swap file] ***************************************
Friday 24 February 2017 17:18:00 +0000 (0:00:00.241) 0:03:30.119 *******
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["dd", "if=/dev/zero", "of=/openstack/swap.img", "bs=4G", "count=1"], "delta": "0:00:00.010265", "end": "2017-02-24 17:18:01.202648", "failed": true, "rc": 1, "start": "2017-02-24 17:18:01.192383", "stderr": "dd: memory exhausted by input buffer of size 4294967296 bytes (4.0 GiB)", "stdout": "", "stdout_lines": [], "warnings": []}

Using dd if=/dev/zero of=/openstack/swap.img bs=1M count=4000 instead works.

Changed in openstack-ansible:
status: New → Confirmed
importance: Undecided → Low
tags: added: low-hanging-fruit
Chris Edillon (nollide)
Changed in openstack-ansible:
assignee: nobody → Chris Edillon (nollide)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (master)

Fix proposed to branch: master
Review: https://review.openstack.org/463774

Changed in openstack-ansible:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (master)

Reviewed: https://review.openstack.org/463774
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=e56dc09cb32e25eb95bb626acb0a997e2e55a921
Submitter: Jenkins
Branch: master

commit e56dc09cb32e25eb95bb626acb0a997e2e55a921
Author: Chris Edillon <email address hidden>
Date: Wed May 10 14:36:01 2017 +0000

    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

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/465665

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (stable/ocata)

Reviewed: https://review.openstack.org/465665
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=b8b82a32bad9a6ed58274f7cb1d3e04e18a7d164
Submitter: Jenkins
Branch: stable/ocata

commit b8b82a32bad9a6ed58274f7cb1d3e04e18a7d164
Author: Chris Edillon <email address hidden>
Date: Wed May 10 14:36:01 2017 +0000

    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

    Combined backport of:
    - https://review.openstack.org/463774
    - https://review.openstack.org/465168

    Change-Id: I4f4750f74d31421c428cb75b7a2176d262ea79ec
    Closes-Bug: #1667747
    (cherry picked from commit e56dc09cb32e25eb95bb626acb0a997e2e55a921)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 15.1.4

This issue was fixed in the openstack/openstack-ansible 15.1.4 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 16.0.0.0b2

This issue was fixed in the openstack/openstack-ansible 16.0.0.0b2 development milestone.

Revision history for this message
Satish Patel (satish-txt) wrote :

I have tried 16.0.0.0b2 and getting same error.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.