Skip to content

Instantly share code, notes, and snippets.

@nelsnelson
nelsnelson / nested-containers.txt
Created April 10, 2014 19:12
Nested containers not visible in host
# lxc-create -n outer -t minimal
# lxc-start -n outer -d
# lxc-attach -n outer -- bash
bash-4.2# mkdir /var/lib/lxc
bash-4.2# lxc-create -n inner -t minimal
bash-4.2# lxc-start -n inner -d
bash-4.2# lxc-attach -n inner -- bash
bash-4.2# ls /sys/fs/cgroup
blkio cpu cpuacct cpuset devices freezer hugetlb hugetlb,net_prio,perf_event,blkio,freezer,devices,memory,cpuacct,cpu,cpuset memory net_prio perf_event
bash-4.2#
@nelsnelson
nelsnelson / sys_fs_cgroup.txt
Created April 10, 2014 20:25
/sys/fs/cgroup on host
/sys/fs/cgroup$ ls -la
total 0
drwxr-xr-x. 4 root root 0 Mar 28 18:42 .
drwxr-xr-x. 7 root root 0 Mar 28 18:42 ..
-r--r--r--. 1 root root 0 Mar 28 18:42 blkio.io_merged
-r--r--r--. 1 root root 0 Mar 28 18:42 blkio.io_merged_recursive
-r--r--r--. 1 root root 0 Mar 28 18:42 blkio.io_queued
-r--r--r--. 1 root root 0 Mar 28 18:42 blkio.io_queued_recursive
-r--r--r--. 1 root root 0 Mar 28 18:42 blkio.io_service_bytes
-r--r--r--. 1 root root 0 Mar 28 18:42 blkio.io_service_bytes_recursive
2013-04-15 Daniel P. Berrange <[email protected]>
Track symlinks for co-mounted cgroup controllers
If a cgroup controller is co-mounted with another, eg
/sys/fs/cgroup/cpu,cpuacct
Then it is a requirement that there exist symlinks at
/sys/fs/cgroup/cpu
@nelsnelson
nelsnelson / blacklist
Last active August 29, 2015 14:00
Failure to start a container with 'lxc.seccomp' option set
2
blacklist
mknod errno 0
@nelsnelson
nelsnelson / hashcomp.py
Created April 25, 2014 18:45
Conditional function invocations versus hashed function invocations
#! /usr/bin/env python
import sys
quiet = False
def noop0():
if not quiet:
sys.stdout.write('0')
def noop1():
@nelsnelson
nelsnelson / load-test-example.log
Created August 19, 2014 19:52
Example load test run
root@nelsnelson-test1:~/src/load-tests# ./load-public-net.py 4 20 5
2014-08-19 19:51:06,355 INFO [Load] Creating server load-test-0
2014-08-19 19:51:06,523 INFO [Load] Created server cb91f456-6406-487b-a673-6e44b4e2da72 in process 12149 with password LSPi2pzjNUeB
2014-08-19 19:51:06,523 INFO [Load] Waiting until server cb91f456-6406-487b-a673-6e44b4e2da72 status is ACTIVE at 1408477866.52
2014-08-19 19:51:07,611 INFO [Load] Server cb91f456-6406-487b-a673-6e44b4e2da72 is in state BUILD
2014-08-19 19:51:08,697 INFO [Load] Server cb91f456-6406-487b-a673-6e44b4e2da72 is in state BUILD
2014-08-19 19:51:09,782 INFO [Load] Server cb91f456-6406-487b-a673-6e44b4e2da72 is in state BUILD
2014-08-19 19:51:10,465 INFO [Load] Creating server load-test-1
2014-08-19 19:51:10,615 INFO [Load] Created server 551e6c71-1f98-41d3-8dbf-1fbd683db9e3 in process 12149 with password PvL6eVhEKLm8
2014-08-19 19:51:10,616 INFO [Load] Waiting until server 551e6c71-1f98-41d3-8dbf-1fbd683db9e3 status is ACTIVE at 1408477870.62
@nelsnelson
nelsnelson / libvirtError.txt
Created August 21, 2014 20:55
Some processes refused to die
Traceback (most recent call last):
File "/opt/stack/nova/nova/compute/manager.py", line 2394, in do_terminate_ins
self._delete_instance(context, instance, bdms, quotas)
File "/opt/stack/nova/nova/hooks.py", line 131, in inner
rv = f(*args, **kwargs)
File "/opt/stack/nova/nova/compute/manager.py", line 2363, in _delete_instance
quotas.rollback()
File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
six.reraise(self.type_, self.value, self.tb)
File "/opt/stack/nova/nova/compute/manager.py", line 2340, in _delete_instance
@nelsnelson
nelsnelson / 120
Last active August 29, 2015 14:05
Load test results
[Results]
containers = 120
flavor = 64MB Container
image = Debian 7 LXC
[Creation]
mean = 67.27
min = 8.79
max = 124.45
timeouts = 0
@nelsnelson
nelsnelson / load-test-report-example.txt
Created August 25, 2014 14:34
Load test report example
[Results]
containers = 30
flavor = 64MB Container
image = Debian 7 LXC
[Creation]
mean = 12.84
min = 7.76
max = 17.42
2014-08-26 03:40:09.520 WARNING nova.virt.disk.mount.nbd [req-a144b56c-094b-4d89-9ba5-937aa1fee111 ServersTestJSON-698736888 ServersTestJSON-1373125453] No free nbd devices
2014-08-26 03:40:09.520 DEBUG nova.openstack.common.lockutils [req-a144b56c-094b-4d89-9ba5-937aa1fee111 ServersTestJSON-698736888 ServersTestJSON-1373125453] Released semaphore "nbd-allocation-lock" fro
m (pid=15425) lock /opt/stack/nova/nova/openstack/common/lockutils.py:291
2014-08-26 03:40:09.521 DEBUG nova.openstack.common.lockutils [req-a144b56c-094b-4d89-9ba5-937aa1fee111 ServersTestJSON-698736888 ServersTestJSON-1373125453] Semaphore / lock released "_inner_get_dev" f
rom (pid=15425) inner /opt/stack/nova/nova/openstack/common/lockutils.py:328
2014-08-26 03:40:09.521 INFO nova.virt.disk.mount.api [req-a144b56c-094b-4d89-9ba5-937aa1fee111 ServersTestJSON-698736888 ServersTestJSON-1373125453] Device allocation failed. Will retry in 2 seconds.
2014-08-26 03:40:10.049 DEBUG nova.openstack.common.periodic_task [-] Running periodic task C