Skip to content

Latest commit

 

History

History
51 lines (47 loc) · 1.75 KB

openstack_on_lxc.md

File metadata and controls

51 lines (47 loc) · 1.75 KB

Issues of Openstack on LXC

sysctl configurations necessary

fs.inotify.max_user_instances

Symptom

sudo lxc exec lxc01 -- bash
root@lxc01:~# systemctl start ssh
Failed to allocate directory watch: Too many open files
Job for ssh.service canceled.

Solution

echo "fs.inotify.max_user_instances=8192" | sudo tee -a /etc/sysctl.conf
fs.inotify.max_user_instances=8192

sudo sysctl -p
fs.inotify.max_user_instances = 8192

net.ipv4.neigh.default.gc_???????

Symptom

tail -f /var/log/syslog
Dec 20 01:58:52 ac1 kernel: [5083435.525835] neighbour: arp_cache: neighbor table overflow!
Dec 20 02:00:06 ac1 kernel: [5083509.544540] neighbour: arp_cache: neighbor table overflow!
Dec 20 02:00:06 ac1 kernel: [5083509.544584] neighbour: arp_cache: neighbor table overflow!
Dec 20 02:00:21 ac1 kernel: [5083524.560119] neighbour: arp_cache: neighbor table overflow!
Dec 20 02:00:31 ac1 kernel: [5083534.899884] neighbour: arp_cache: neighbor table overflow!
Dec 20 02:00:31 ac1 kernel: [5083534.899951] neighbour: arp_cache: neighbor table overflow!
Dec 20 02:00:31 ac1 kernel: [5083534.911095] neighbour: arp_cache: neighbor table overflow!
Dec 20 02:00:31 ac1 kernel: [5083534.911163] neighbour: arp_cache: neighbor table overflow!

Solution

https://www.cyberciti.biz/faq/centos-redhat-debian-linux-neighbor-table-overflow/

sudo sysctl -p
net.ipv4.neigh.default.gc_interval = 300
net.ipv4.neigh.default.gc_stale_time = 600
net.ipv4.neigh.default.gc_thresh3 = 4096
net.ipv4.neigh.default.gc_thresh2 = 2048
net.ipv4.neigh.default.gc_thresh1 = 1024

etc

Sometimes, container needs more privileges to archive its special requirements.

config:
  raw.lxc: lxc.aa_profile=unconfined
  security.privileged: "true"