Execution
Date
14 Dec 2025 10:04:43 +0000
Duration
00:10:10.66
Controller
aio1.openstack.local
User
root
Versions
Ansible
2.18.6
ara
1.7.4 / 1.7.4
Python
3.13.5
Summary
15
Hosts
603
Tasks
2357
Results
18
Plays
157
Files
0
Records
Task result details
-
StatusCHANGED
-
Duration00:00:00.37
-
PlayCreate container(s)
-
Tasklxc_container_create : Execute first script
-
Date14 Dec 2025 10:10:04 +0000
-
Module / Actionansible.builtin.command (/home/zuul/src/opendev.org/openstack/openstack-ansible-lxc_container_create/tasks/lxc_container_config.yml:82)
-
Tags
- lxc-config
- lxc-containers-create
| Field | Value |
|---|---|
| attempts |
1 |
| changed |
True |
| cmd |
[ "/var/lib/lxc/aio1-repo-container-3917d96e/container-first-run.sh" ] |
| delta |
0:00:00.027872 |
| end |
2025-12-14 10:10:04.453845 |
| invocation |
{ "module_args": { "_raw_params": "/var/lib/lxc/aio1-repo-container-3917d96e/container-first-run.sh", "_uses_shell": false, "argv": null, "chdir": null, "creates": "/var/lib/lxc/aio1-repo-container-3917d96e/setup.complete", "executable": null, "expand_argument_vars": true, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true } } |
| msg |
|
| rc |
0 |
| start |
2025-12-14 10:10:04.425973 |
| stderr |
export CPID="$(lxc-info -Hpn aio1-repo-container-3917d96e)"
function update_backup_resolvers {
if [[ -e "/proc/${CPID}/root/etc/resolv.conf.setup" ]]; then
mv /proc/${CPID}/root/etc/resolv.conf.setup /proc/${CPID}/root/etc/resolv.conf
elif [[ -e "/proc/${CPID}/root/etc/resolv.conf" ]]; then
cp /proc/${CPID}/root/etc/resolv.conf /proc/${CPID}/root/etc/resolv.conf.setup
fi
}
# If the setup is complete return as the process is complete
if [[ -f "/var/lib/lxc/aio1-repo-container-3917d96e/setup.complete" ]]; then
exit 0
fi
# Backup the resolvers as the setup script is not executed within an NS.
update_backup_resolvers
# Use the host resolvers
cat /etc/resolv.conf > /proc/${CPID}/root/etc/resolv.conf
# Execute
nsenter --mount=/proc/${CPID}/ns/mnt --pid=/proc/${CPID}/ns/pid \
--uts=/proc/${CPID}/ns/uts --ipc=/proc/${CPID}/ns/ipc \
-- /opt/container-setup.sh
# Generate the lxc container create prep commands
# Create dir "/var/backup"
mkdir -p "/var/backup"
# Create dir "/openstack/src"
mkdir -p "/openstack/src"
# Create dir "/opt/cache/files"
mkdir -p "/opt/cache/files"
# Run extra commands
echo noop
# Restore the resolvers
update_backup_resolvers
# Mark the setup as complete
touch /var/lib/lxc/aio1-repo-container-3917d96e/setup.complete
|
| stderr_lines |
[ "", "export CPID=\"$(lxc-info -Hpn aio1-repo-container-3917d96e)\"", "", "function update_backup_resolvers {", " if [[ -e \"/proc/${CPID}/root/etc/resolv.conf.setup\" ]]; then", " mv /proc/${CPID}/root/etc/resolv.conf.setup /proc/${CPID}/root/etc/resolv.conf", " elif [[ -e \"/proc/${CPID}/root/etc/resolv.conf\" ]]; then", " cp /proc/${CPID}/root/etc/resolv.conf /proc/${CPID}/root/etc/resolv.conf.setup", " fi", "}", "", "# If the setup is complete return as the process is complete", "if [[ -f \"/var/lib/lxc/aio1-repo-container-3917d96e/setup.complete\" ]]; then", " exit 0", "fi", "", "# Backup the resolvers as the setup script is not executed within an NS.", "update_backup_resolvers", "", "# Use the host resolvers", "cat /etc/resolv.conf > /proc/${CPID}/root/etc/resolv.conf", "", "# Execute", "nsenter --mount=/proc/${CPID}/ns/mnt --pid=/proc/${CPID}/ns/pid \\", " --uts=/proc/${CPID}/ns/uts --ipc=/proc/${CPID}/ns/ipc \\", " -- /opt/container-setup.sh", "", "# Generate the lxc container create prep commands", "", "", "# Create dir \"/var/backup\"", "mkdir -p \"/var/backup\"", "", "# Create dir \"/openstack/src\"", "mkdir -p \"/openstack/src\"", "", "# Create dir \"/opt/cache/files\"", "mkdir -p \"/opt/cache/files\"", "", "", "# Run extra commands", "echo noop", "", "# Restore the resolvers", "update_backup_resolvers", "", "# Mark the setup as complete", "touch /var/lib/lxc/aio1-repo-container-3917d96e/setup.complete" ] |
| stdout |
noop |
| stdout_lines |
[ "noop" ] |