[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] XAPI exceptions running "/bin/bash "?


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • From: Ben Pfaff <blp@xxxxxxxxxx>
  • Date: Thu, 16 Sep 2010 11:03:41 -0700
  • Delivery-date: Thu, 16 Sep 2010 11:04:02 -0700
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

I have a XenServer here that has log messages like the ones appended
repeated a number of times (dates and times deleted to avoid wrapping as
many lines).  Naively, it looks like XAPI is trying to execve "/bin/bash
" (with a space) and that is, of course, failing.  Is that what is
really happening?

I see the string "/bin/bash ", including the space, in one of the
invocations of safe_close_and_exec in
xen-api.hg/ocmal/xapi/xapi_network_real.ml.  The other one in that file
doesn't have the space.

Thanks,

Ben.

    fe: |7622|About to bind to 
/var/xapi/forker/fd_88af463d-f1a8-2f72-ab3c-3619923525b9 
    fe: |7622|bound, listening 
    fe: |13959|Child here! 
    fe: |13960|Grandchild here! 
    fe: |13960|Started: state.cmdargs = [/bin/bash 
;/opt/xensource/bin/fix_firewall.sh;xapi7] 
    fe: |13960|Started: state.env = [PATH=/sbin:/usr/sbin:/bin:/usr/bin] 
    fe: |13960|Selecting in handle_comms_no_fd_sock2 
    fe: |13960|Done 
    fe: |13960|fd sock 
    fe: |13960|Selecting in handle_comms_with_fd_sock2 
    fe: |13960|Done 
    fe: |13960|fd sock2 
    fe: |13960|Received fd named: d76ea089-e926-50cf-05b5-5d5d5463b8d1 - duping 
to 1 (from 6) 
    fe: |13960|Selecting in handle_comms_with_fd_sock2 
    fe: |13960|Done 
    fe: |13960|fd sock2 
    fe: |13960|Received fd named: 9200d3b4-69c9-872c-ea2e-87acf68315cf - duping 
to 2 (from 6) 
    fe: |13960|Selecting in handle_comms_with_fd_sock2 
    fe: |13960|Done 
    fe: |13960|comms sock 
    fe: |13960|Exec 
    fe: |13960|Finished... 
    fe: |13960|Args after replacement = [/bin/bash 
;/opt/xensource/bin/fix_firewall.sh;xapi7] 
    fe: |13960|I've received the following fds: [2;1]  
    fe: |13961|Caught unexpected exception: Unix.Unix_error(20, "execve", 
"/bin/bash ") 
    fe: 13961 (/bin/bash  /opt/xensource/bin/fix_firewall.sh xapi7) exitted 
with code 1

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.