On 18/08/15 16:26, Daniel Baumann wrote:

> Hi,

Hi, Daniel. Thanks for replying this ticket.

> I'm not using lvm at all, so it would be nice if you could check if the
> problem persists in 1.0.7.

I was doing some testing in a virtual machine with Stretch:

root@stretch:~# cat /etc/debian_version 
stretch/sid

root@stretch:~# MIRROR=http://ftp.us.debian.org/debian lxc-create -n myvm -t 
debian -B lvm \
> --vgname storage --lvname myvm-disk --fssize 2G --fstype reiserfs
File descriptor 3 (/var/lib/lxc/myvm/partial) leaked on lvcreate invocation. 
Parent PID 6925: lxc-create
  Logical volume "myvm-disk" created
lxc_container: bdev.c: lvm_create: 1162 Error creating filesystem type reiserfs 
on /dev/storage/myvm-disk
lxc_container: lxccontainer.c: do_bdev_create: 820 Failed to create backing 
store type lvm
lxc_container: lxccontainer.c: lxcapi_create: 1333 Error creating backing store 
type lvm for myvm
lxc_container: lxc_create.c: main: 271 Error creating container myvm


The error seems to be the same as I mentioned when open this report.
Although here we have some error codes that can help give us a little
more of light about the problem.

Now what happens if we try with ext4, for example?


root@stretch:~# MIRROR=http://ftp.us.debian.org/debian lxc-create -n myvm -t 
debian -B lvm \
> --vgname storage --lvname myvm-disk --fssize 2G --fstype ext4
File descriptor 3 (/var/lib/lxc/myvm/partial) leaked on lvcreate invocation. 
Parent PID 6971: lxc-create
  Logical volume "myvm-disk" created
debootstrap is /usr/sbin/debootstrap
Checking cache download in /var/cache/lxc/debian/rootfs-jessie-amd64 ... 
Downloading debian minimal ...
I: Retrieving Release 
I: Retrieving Release.gpg 
I: Checking Release signature
I: Valid Release signature (key id 75DDC3C4A499F1A18CB5F3C8CBF8D6FD518E17E1)
I: Retrieving Packages 
I: Validating Packages 
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
(...)
I: Configuring libc-bin...
I: Configuring systemd...
I: Base system installed successfully.
Download complete.
Copying rootfs to /usr/lib/x86_64-linux-gnu/lxc/rootfs...Generating locales 
(this might take a while)...
  es_AR.UTF-8... done
Generation complete.
insserv: warning: current start runlevel(s) (empty) of script `checkroot.sh' 
overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (S) of script `checkroot.sh' 
overrides LSB defaults (empty).
insserv: warning: current start runlevel(s) (empty) of script `checkroot.sh' 
overrides LSB defaults (S).
update-rc.d: error: umountfs Default-Start contains no runlevels, aborting.
insserv: warning: current start runlevel(s) (empty) of script `hwclock.sh' 
overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (0 6 S) of script `hwclock.sh' 
overrides LSB defaults (0 6).
update-rc.d: error: cannot find a LSB script for hwclockfirst.sh
Creating SSH2 RSA key; this may take some time ...
2048 13:d0:a7:59:1f:2b:6b:b0:49:59:3e:48:17:d0:48:ec 
/etc/ssh/ssh_host_rsa_key.pub (RSA)
Creating SSH2 DSA key; this may take some time ...
1024 54:3b:da:e7:59:b4:11:eb:08:79:75:cb:6b:24:69:f1 
/etc/ssh/ssh_host_dsa_key.pub (DSA)
Creating SSH2 ECDSA key; this may take some time ...
256 af:95:df:09:0e:7e:c1:df:77:a4:d0:ad:61:44:6a:ff 
/etc/ssh/ssh_host_ecdsa_key.pub (ECDSA)
Creating SSH2 ED25519 key; this may take some time ...
256 22:29:22:cc:54:3d:bc:d9:ea:e4:28:ad:5b:55:ad:76 
/etc/ssh/ssh_host_ed25519_key.pub (ED25519)
Failed to read /proc/cmdline. Ignoring: No existe el fichero o el directorio
invoke-rc.d: policy-rc.d denied execution of start.

Current default time zone: 'America/Argentina/Buenos_Aires'
Local time is now:      Wed Aug 19 21:13:01 ART 2015.
Universal Time is now:  Thu Aug 20 00:13:01 UTC 2015.

Root password is '0F7jSZJ7', please change !


Success!! This is interesting, because it limits the problem to the
interaction between LXC and ReiserFS.

By the way, it is expected to have those errors/warnings related to LSB?

> Unrelated to that: are you sure reiserfs is a good choice? i think it's
> orphaned since years.

I am using it only on a server I use for internal testing because it was
giving good results in terms of contingency with its journaling.

Just to make the similar test on Jessie, I tried to create a container
changing to ext4 and I had no problems with this:


sirius:~# MIRROR=http://ftp.us.debian.org/debian lxc-create -n myvm -t debian 
-B lvm \
> --vgname vms --lvname myvm-disk --fssize 2G --fstype ext4
File descriptor 3 (/var/lib/lxc/myvm/partial) leaked on lvcreate invocation. 
Parent PID 1036: lxc-create
  Logical volume "myvm-disk" created
debootstrap is /usr/sbin/debootstrap
Checking cache download in /var/cache/lxc/debian/rootfs-jessie-i386 ... 
Copying rootfs to /usr/lib/i386-linux-gnu/lxc/rootfs...Generating locales (this 
might take a while)...
  es_AR.UTF-8... done                                                           
                                                                           
Generation complete.                                                            
                                                                           
insserv: warning: current start runlevel(s) (empty) of script `checkroot.sh' 
overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (S) of script `checkroot.sh' 
overrides LSB defaults (empty).
insserv: warning: current start runlevel(s) (empty) of script `checkroot.sh' 
overrides LSB defaults (S).
update-rc.d: error: umountfs Default-Start contains no runlevels, aborting.
insserv: warning: current start runlevel(s) (empty) of script `hwclock.sh' 
overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (0 6 S) of script `hwclock.sh' 
overrides LSB defaults (0 6).
update-rc.d: error: cannot find a LSB script for hwclockfirst.sh
Creating SSH2 RSA key; this may take some time ...
2048 41:05:d7:79:3f:32:db:7d:76:61:10:07:f6:d0:b8:2b 
/etc/ssh/ssh_host_rsa_key.pub (RSA)
Creating SSH2 DSA key; this may take some time ...
1024 41:94:e5:0a:69:36:aa:49:b1:db:82:ff:d9:74:ee:5b 
/etc/ssh/ssh_host_dsa_key.pub (DSA)
Creating SSH2 ECDSA key; this may take some time ...
256 56:60:a5:1b:67:4c:cb:c5:b8:a0:66:e0:4f:b1:7d:86 
/etc/ssh/ssh_host_ecdsa_key.pub (ECDSA)
Creating SSH2 ED25519 key; this may take some time ...
256 22:ca:9d:57:fe:0d:98:b7:16:c8:3c:fd:8b:db:7a:4e 
/etc/ssh/ssh_host_ed25519_key.pub (ED25519)
Failed to read /proc/cmdline. Ignoring: No existe el fichero o el directorio
invoke-rc.d: policy-rc.d denied execution of start.

Current default time zone: 'America/Argentina/Buenos_Aires'
Local time is now:      Wed Aug 19 21:34:49 ART 2015.
Universal Time is now:  Thu Aug 20 00:34:49 UTC 2015.

Root password is '0o8cmNuh', please change !


So here we have the same (even similar warning/errors messages about
LSB) so the problem seems to be only with ReiserFS. With Wheezy I not
remember having this problem.


Thanks for your time.


Best regards,
Daniel

Reply via email to