b35928cf83
When creating many containers on a single contended host, the execution of many delegated tasks in parallel results in failure. This patch consolidates the container prep and networking tasks leveraging the lxc-rootfs pid path on the physical host instead of relying on delegation. Change-Id: I0823e34286a0857b539a94604dbe9cdeb8a605f0 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
14 lines
368 B
Django/Jinja
14 lines
368 B
Django/Jinja
#!/usr/bin/env bash
|
|
set -ev
|
|
|
|
# Generate the lxc container create prep commands
|
|
{{ lxc_container_commands }}
|
|
|
|
{% for item in lxc_container_default_bind_mounts | union(lxc_container_bind_mounts) %}
|
|
{% if item['container_directory'] is defined %}
|
|
# Create dir "{{ item['container_directory'] }}"
|
|
mkdir -p "{{ item['container_directory'] }}"
|
|
|
|
{% endif %}
|
|
{% endfor %}
|