Public bug reported:

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

** Affects: xen-api (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: xen-api-libs (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: xen-api (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1195001

Title:
  Storage Manager Backends not found; faulty build path

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xen-api/+bug/1195001/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to