some containers are in pending state after each openstack deployment

Bug #1656942 reported by Aymen Frikha
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
High
Unassigned

Bug Description

juju 2.0.2
maas 2.1.2
After each deployment, we always have 2 or more containers in pending state with juju status.
The container is up and running on the host and get its ip addresses. These are cloud init logs, cloud-init-output and syslog from the host:

https://pastebin.canonical.com/176082/

Tags: lxd
description: updated
Revision history for this message
Aymen Frikha (aym-frikha) wrote :

log for container

tags: added: lxd
Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.2.0
Revision history for this message
Aymen Frikha (aym-frikha) wrote :
Revision history for this message
Billy Olsen (billy-olsen) wrote :

This bug should no longer be duplicated to the other bug as that bug affects the local provider and this bug affects the MAAS provider. After this was discussed, it turns out that there is no intention of fixing this very specific case within Juju (LXD containers on MAAS provider) as those tunables should be left to LXD or the base OS.

A known work-around is to edit the MAAS preseed file and add necessary lines to adjust system tunables. For example, add the following lines to the end of /etc/maas/preseeds/curtin_userdata:

sysctl_fs_01: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo 'fs.inotify.max_queued_events = 1048576' >> /etc/sysctl.d/15-fs.conf"]
sysctl_fs_02: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo 'fs.inotify.max_user_instances = 1048576' >> /etc/sysctl.d/15-fs.conf"]
sysctl_fs_03: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo 'fs.inotify.max_user_watches = 1048576' >> /etc/sysctl.d/15-fs.conf"]
sysctl_vm_01: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo 'vm.max_map_count = 262144' >> /etc/sysctl.d/15-vm.conf"]

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

Other bug subscribers

Bug attachments

Remote bug watches

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