[lxc-users] Unable to use LXD >= 0.25 on LVM storage backend

Micky Del Favero micky at mesina.net
Sat Dec 26 17:40:09 UTC 2015


Merry Christmas to everybody! (even if I'm a bit late...)

I'm not able to use LXD 0.25 or the version cloned from github.com with
LVM storage backend, when I try to launch a container I've get:

  micky at lina:~$ lxc remote add images images.linuxcontainers.org
  Generating a client certificate. This may take a minute...
  If this is your first run, you will need to import images using the 'lxd-images' script.
  For example: 'lxd-images import ubuntu --alias ubuntu'.
  micky at lina:~$
  ...
  micky at lina:~$ lxc launch images:debian/wheezy/amd64 wheezy
  Creating wheezy error: Error mounting snapshot LV: no such file or directory
  micky at lina:~$

and lxd --group lxd --verbose --debug print

  INFO[12-26|15:49:44] Image not in the db, downloading it      server=https://images.linuxcontainers.org:8443 image=13778d79247a629973faebb3711293f4063e869ca54e7831d81d15a1d611ee5e
  INFO[12-26|15:49:44] Downloading the image                    image=13778d79247a629973faebb3711293f4063e869ca54e7831d81d15a1d611ee5e
  INFO[12-26|15:49:44] handling                                 ip=@ method=GET url=/1.0/operations/182148de-d29a-4a6b-a26a-817a8a6d7767/wait
  DBUG[12-26|15:49:45] Raw response: {"metadata": {"created_at": 1451080940, "properties": {"description": "Debian wheezy (amd64)"}, "filename": "debian-wheezy-amd64-  default-20151222_22:42.tar.xz", "size": 102157304, "expires_at": 0, "aliases": [{"target": "debian/wheezy/amd64/default", "description": ""}, {"target": "debian/wheezy/amd64", "description": ""}], "uploaded_at": 1451080940, "fingerprint": "13778d79247a629973faebb3711293f4063e869ca54e7831d81d15a1d611ee5e", "public": 1, "architecture": 2}, "status": "Success", "type": "sync", "status_code": 200}
  DBUG[12-26|15:49:45] ImageDelete                              driver=storage/lvm fingerprint=13778d79247a629973faebb3711293f4063e869ca54e7831d81d15a1d611ee5e
  DBUG[12-26|15:49:51] Could not remove LV                      driver=storage/lvm lvname=13778d79247a629973faebb3711293f4063e869ca54e7831d81d15a1d611ee5e output="  One or more specified logical volume(s) not found.\n"
  DBUG[12-26|15:49:53] Updated metadata for task operation: 182148de-d29a-4a6b-a26a-817a8a6d7767
  DBUG[12-26|15:49:53] Updated metadata for task operation: 182148de-d29a-4a6b-a26a-817a8a6d7767
  DBUG[12-26|15:49:54] Updated metadata for task operation: 182148de-d29a-4a6b-a26a-817a8a6d7767
  DBUG[12-26|15:49:55] Updated metadata for task operation: 182148de-d29a-4a6b-a26a-817a8a6d7767
  DBUG[12-26|15:49:56] Updated metadata for task operation: 182148de-d29a-4a6b-a26a-817a8a6d7767
  DBUG[12-26|15:49:56] Updated metadata for task operation: 182148de-d29a-4a6b-a26a-817a8a6d7767
  DBUG[12-26|15:49:57] Updated metadata for task operation: 182148de-d29a-4a6b-a26a-817a8a6d7767
  DBUG[12-26|15:49:58] Updated metadata for task operation: 182148de-d29a-4a6b-a26a-817a8a6d7767
  DBUG[12-26|15:49:59] Updated metadata for task operation: 182148de-d29a-4a6b-a26a-817a8a6d7767
  DBUG[12-26|15:49:59] Updated metadata for task operation: 182148de-d29a-4a6b-a26a-817a8a6d7767
  DBUG[12-26|15:50:00] ImageCreate                              driver=storage/lvm fingerprint=13778d79247a629973faebb3711293f4063e869ca54e7831d81d15a1d611ee5e
  INFO[12-26|15:50:11] Download succeeded                       image=13778d79247a629973faebb3711293f4063e869ca54e7831d81d15a1d611ee5e
  DBUG[12-26|15:50:11] ContainerCreateFromImage                 driver=storage/lvm imageFingerprint=13778d79247a629973faebb3711293f4063e869ca54e7831d81d15a1d611ee5e name=wheezy isPrivileged=false
  DBUG[12-26|15:50:17] containerDeleteSnapshots                 container=wheezy
  DBUG[12-26|15:50:17] ContainerDelete                          driver=storage/lvm container=wheezy
  DBUG[12-26|15:50:23] Could not remove LV                      driver=storage/lvm output="  One or more specified logical volume(s) not found.\n" lvname=wheezy
  DBUG[12-26|15:50:23] Failure for task operation: 182148de-d29a-4a6b-a26a-817a8a6d7767: Error mounting snapshot LV: no such file or directory
  DBUG[12-26|15:50:23]
         {
                 "type": "sync",
		 "status": "Success",
		 "status_code": 200,
		 "metadata": {
		         "id": "182148de-d29a-4a6b-a26a-817a8a6d7767",
		         "class": "task",
			 "created_at": "2015-12-26T15:49:44.660946901+01:00",
			 "updated_at": "2015-12-26T15:49:59.708728575+01:00",
			 "status": "Failure",
			 "status_code": 400,
			 "resources": {
			 	  "containers": [
				  	  "/1.0/containers/wheezy"
				  ]
			 },
			 "metadata": {
			         "download_progress": "100%"
			 },
			 "may_cancel": false,
			 "err": "Error mounting snapshot LV: no such file or directory"
		 },
		 "operation": ""
	 }

Probably I'm doing something wrong, but I'm not able to identify what,
with LXD 0.24 I've no problem at all (even if my hack, see next mail).

Thanks for your help, Micky
-- 
The sysadmin has all the answers, expecially "No"


More information about the lxc-users mailing list