XCP

Mistake in "xe-set-iscsi-iqn" in xcp-xapi @ saucy

Bug #1265355 reported by fnu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
XCP
New
Undecided
Unassigned

Bug Description

It's greatly possible to set up a xcp-xapi server based on Saucy Salamander. XenCenter or OpenXenManager can connect succesfully to the this host and manage it. Linux based PVs can be set up and do run like a charm.

But unfortunately there is a mistake in the useful script "/usr/lib/xcp/bin/xe-set-iscsi-iqn" which is part of the package "xcp-xapi":

...
#/> dpkg -S /usr/lib/xcp/bin/xe-set-iscsi-iqn
xcp-xapi: /usr/lib/xcp/bin/xe-set-iscsi-iqn
...
#/> vi /usr/lib/xcp/bin/xe-set-iscsi-iqn

  1 #!/bin/bash
  2 #
  3 # Copyright (c) Citrix Systems 2008. All rights reserved.
  4 #
  5 # Set the local non-pooled host to use a specific iSCSI IQN
  6
  7 set -e
  8
  9 XE="/usr/lib/xcp/bin/xe"
 10
...

The path to the "xe" binary is wrong, it should point to "/usr/bin/xe". Using the script as delivered in package from Ubuntu repository does end like this:

...
# /usr/lib/xcp/bin/xe-set-iscsi-iqn "iqn.2005-03.org.open-iscsi:01234568901"
/usr/lib/xcp/bin/xe-set-iscsi-iqn: Zeile 33: /usr/lib/xcp/bin/xe: Datei oder Verzeichnis nicht gefunden
/usr/lib/xcp/bin/xe-set-iscsi-iqn: Zeile 34: /usr/lib/xcp/bin/xe: Datei oder Verzeichnis nicht gefunden
...

Manual correction does make it usable, but hence, it should be easy to fix in error like this in upstream package.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.