xendomains init script errors

Bug #297889 reported by Bernhard Schmidt
2
Affects Status Importance Assigned to Milestone
xen-3.3 (Ubuntu)
New
Undecided
Unassigned

Bug Description

I get the following errors with /etc/init.d/xendomains in xen-utils-3.3 backported to hardy (has been in the legacy hardy xen-utils-3.2 packages before as well):

Shutting down Xen domains:cut: cut: No such file or directory
/etc/init.d/xendomains: line 313: test: =: unary operator expected
 Domain-0(save).Error: 'xm save' requires between 2 and 3 arguments.

Usage: xm save [-c] <Domain> <CheckpointFile>

Save a domain state to restore later.
  -c, --checkpoint Leave domain running after creating
                                 snapshot

!(shut).Error: No domain parameter given
/etc/init.d/xendomains: line 305: 3093 Terminated watchdog_xm save
!cut: cut: No such file or directory
/etc/init.d/xendomains: line 187: 3103 Terminated watchdog_xm shutdown
/etc/init.d/xendomains: line 313: test: =: unary operator expected
 miredo2(save)/etc/init.d/xendomains: line 305: 3103 Terminated watchdog_xm shutdown
.Error: 'xm save' requires between 2 and 3 arguments.

Usage: xm save [-c] <Domain> <CheckpointFile>

Save a domain state to restore later.
  -c, --checkpoint Leave domain running after creating
                                 snapshot

!(shut).Error: No domain parameter given
/etc/init.d/xendomains: line 305: 3119 Terminated watchdog_xm save
!cut: cut: No such file or directory
/etc/init.d/xendomains: line 187: 3129 Terminated watchdog_xm shutdown
/etc/init.d/xendomains: line 271: test: =: unary operator expected
 SHUTDOWN_ALL .cut: cut: No such file or directory
/etc/init.d/xendomains: line 271: test: =: unary operator expected
.cut: cut: No such file or directory
/etc/init.d/xendomains: line 271: test: =: unary operator expected
.cut: cut: No such file or directory
/etc/init.d/xendomains: line 271: test: =: unary operator expected
.cut: cut: No such file or directory
/etc/init.d/xendomains: line 271: test: =: unary operator expected
.cut: cut: No such file or directory
/etc/init.d/xendomains: line 271: test: =: unary operator expected
.Domain miredo2 terminated
cut: cut: No such file or directory
/etc/init.d/xendomains: line 271: test: =: unary operator expected
.All domains terminated
/etc/init.d/xendomains: line 305: 3129 Terminated watchdog_xm shutdown
/etc/init.d/xendomains: line 305: 3149 Terminated watchdog_xm shutdown 1
 * [done]

all those errors are caused by a single obvious error in the init script (see the "cut: cut: no Such file or directory"). Patch attached

Revision history for this message
Bernhard Schmidt (berni) wrote :
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.