On Ubuntu 13.04 Raring amd64, /var/log/syslog shows:
xapi: [error|caddy|0 thread_zero|Registering SR plugins D:36c4ffa48a08|sm_exec] Not scanning /var/lib/xcp/sm for SM backends: directory does not exist
The backends are provided by the package "xcp-storage-managers" and are installed into '/usr/lib/xcp/sm/'.
The path being searched is hard-coded in package "xen-api-1.3.2":
xen-api-1.3.2/Makefile:30:VARDIR=/var/lib/xcp xen-api-1.3.2/Makefile:119: let vardir=\"$(VARDIR)\"\n
Which generates (after build): xen-api-1.3.2/ocaml/fhs.ml::let vardir="/var/lib/xcp"
xen-api-1.3.2/ocaml/xapi/sm_exec.ml:26:let sm_daemon_dir = Filename.concat Fhs.vardir "sm"
I believe this should be:
let sm_daemon_dir = Filename.concat Fhs.optdir "sm"
since:
$ grep -rni 'optdir=' * debian/patches/0010-fix-base-path-script.patch:20:-OPTDIR=/opt/xensource debian/patches/0010-fix-base-path-script.patch:32:+OPTDIR=/usr/lib/xcp Makefile:33:OPTDIR=/usr/lib/xcp Makefile:121: let optdir=\"$(OPTDIR)\"\n \
A temporary work-around is:
$ sudo ln -s /usr/lib/xcp/sm /var/lib/xcp/sm
On Ubuntu 13.04 Raring amd64, /var/log/syslog shows:
xapi: [error|caddy|0 thread_ zero|Registerin g SR plugins D:36c4ffa48a08| sm_exec] Not scanning /var/lib/xcp/sm for SM backends: directory does not exist
The backends are provided by the package "xcp-storage- managers" and are installed into '/usr/lib/xcp/sm/'.
The path being searched is hard-coded in package "xen-api-1.3.2":
xen-api- 1.3.2/Makefile: 30:VARDIR= /var/lib/ xcp 1.3.2/Makefile: 119: let vardir= \"$(VARDIR) \"\n
xen-api-
Which generates (after build): 1.3.2/ocaml/ fhs.ml: :let vardir= "/var/lib/ xcp"
xen-api-
xen-api- 1.3.2/ocaml/ xapi/sm_ exec.ml: 26:let sm_daemon_dir = Filename.concat Fhs.vardir "sm"
I believe this should be:
let sm_daemon_dir = Filename.concat Fhs.optdir "sm"
since:
$ grep -rni 'optdir=' * patches/ 0010-fix- base-path- script. patch:20: -OPTDIR= /opt/xensource patches/ 0010-fix- base-path- script. patch:32: +OPTDIR= /usr/lib/ xcp 33:OPTDIR= /usr/lib/ xcp \"$(OPTDIR) \"\n \
debian/
debian/
Makefile:
Makefile:121: let optdir=
A temporary work-around is:
$ sudo ln -s /usr/lib/xcp/sm /var/lib/xcp/sm