Here's a fun error! It appears that it's trying to create the context iso under $ONE_LOCATION/var, but since $ONE_LOCATION is not set (I installed the rpm), it's trying to create the iso under /var.

The log and my oned.conf file are attached.

Thanks
Dan
--
Dan Yocum
Fermilab  630.840.6509
[email protected], http://fermigrid.fnal.gov
"I fly because it releases my mind from the tyranny of petty things."
#*******************************************************************************
#                       OpenNebula Configuration file
#*******************************************************************************

#*******************************************************************************
# Daemon configuration attributes
#-------------------------------------------------------------------------------
#  HOST_MONITORING_INTERVAL: Time in seconds between host monitorization
#
#  VM_POLLING_INTERVAL: Time in seconds between virtual machine monitorization.
#  (use 0 to disable VM monitoring).
#
#  VM_DIR: Remote path to store the VM images, it should be shared between all
#  the cluster nodes to perform live migrations. This variable is the default
#  for all the hosts in the cluster.
#
#  PORT: Port where oned will listen for xmlrpc calls.
#
#  DB: Configuration attributes for the database backend
#   backend : can be sqlite or mysql (default is sqlite)
#   server  : (mysql) host name or an IP address for the MySQL server
#   user    : (mysql) user's MySQL login ID
#   passwd  : (mysql) the password for user
#   db_name : (mysql) the database name
#
#  VNC_BASE_PORT: VNC ports for VMs can be automatically set to VNC_BASE_PORT +
#  VMID
#
#  DEBUG_LEVEL: 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG
#*******************************************************************************

HOST_MONITORING_INTERVAL = 600

VM_POLLING_INTERVAL      = 600

VM_DIR=/srv/cloud/one/var

SCRIPTS_REMOTE_DIR=/tmp/one

PORT=2633

# DB = [ backend = "sqlite" ]

# Sample configuration for MySQL
DB = [ backend = "mysql",
       server  = "localhost",
       user    = "oneadmin",
       passwd  = "oneadmin",
       db_name = "opennebula" ]

VNC_BASE_PORT = 5000

DEBUG_LEVEL=3

#*******************************************************************************
# Physical Networks configuration
#*******************************************************************************
#  NETWORK_SIZE: Here you can define the default size for the virtual networks
#
#  MAC_PREFIX: Default MAC prefix to be used to create the auto-generated MAC
#  addresses is defined here (this can be overrided by the Virtual Network
#  template)
#*******************************************************************************

NETWORK_SIZE = 254

MAC_PREFIX   = "02:00"

#*******************************************************************************
# Image Repository Configuration
#*******************************************************************************
#  IMAGE_REPOSITORY_PATH: Define the path to the image repository, by default
#  is set to $ONE_LOCATION/var
#
#  DEFAULT_IMAGE_TYPE: This can take values
#       OS        Image file holding an operating system
#       CDROM     Image file holding a CDROM
#       DATABLOCK Image file holding a datablock,
#                 always created as an empty block
#  DEFAULT_DEVICE_PREFIX: This can be set to
#       hd        IDE prefix
#       sd        SCSI
#       xvd       XEN Virtual Disk
#       vd        KVM virtual disk
#*******************************************************************************

IMAGE_REPOSITORY_PATH = /srv/cloud/var/images
DEFAULT_IMAGE_TYPE    = "OS"
DEFAULT_DEVICE_PREFIX = "hd"

#*******************************************************************************
# Information Driver Configuration
#*******************************************************************************
# You can add more information managers with different configurations but make
# sure it has different names.
#
#   name      : name for this information manager
#
#   executable: path of the information driver executable, can be an
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
#
#   arguments : for the driver executable, usually a probe configuration file,
#               can be an absolute path or relative to $ONE_LOCATION/etc (or
#               /etc/one/ if OpenNebula was installed in /)
#*******************************************************************************

#-------------------------------------------------------------------------------
#  KVM Information Driver Manager Configuration
#-------------------------------------------------------------------------------
IM_MAD = [
      name       = "im_kvm",
      executable = "one_im_ssh",
      arguments  = "kvm" ]
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#  XEN Information Driver Manager Configuration
#-------------------------------------------------------------------------------
#IM_MAD = [
#    name       = "im_xen",
#    executable = "one_im_ssh",
#    arguments  = "xen" ]
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#  EC2 Information Driver Manager Configuration
#-------------------------------------------------------------------------------
IM_MAD = [
      name       = "im_ec2",
      executable = "one_im_ec2",
      arguments  = "im_ec2/im_ec2.conf" ]
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#  Dummy Information Driver Manager Configuration
#-------------------------------------------------------------------------------
#IM_MAD = [ name="im_dummy", executable="one_im_dummy"]
#-------------------------------------------------------------------------------

#*******************************************************************************
# Virtualization Driver Configuration
#*******************************************************************************
# You can add more virtualization managers with different configurations but
# make sure it has different names.
#
#   name      : name of the virtual machine manager driver
#
#   executable: path of the virtualization driver executable, can be an
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
#
#   arguments : for the driver executable
#
#   default   : default values and configuration parameters for the driver, can
#               be an absolute path or relative to $ONE_LOCATION/etc (or
#               /etc/one/ if OpenNebula was installed in /)
#
#   type      : driver type, supported drivers: xen, kvm, xml
#*******************************************************************************

#-------------------------------------------------------------------------------
#  KVM Virtualization Driver Manager Configuration
#-------------------------------------------------------------------------------
VM_MAD = [
    name       = "vmm_kvm",
    executable = "one_vmm_ssh",
    arguments  = "kvm",
    default    = "vmm_ssh/vmm_ssh_kvm.conf",
    type       = "kvm" ]
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#  XEN Virtualization Driver Manager Configuration
#-------------------------------------------------------------------------------
#VM_MAD = [
#    name       = "vmm_xen",
#    executable = "one_vmm_ssh",
#    arguments  = "xen",
#    default    = "vmm_ssh/vmm_ssh_xen.conf",
#    type       = "xen" ]
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#  EC2 Virtualization Driver Manager Configuration
#    arguments: default values for the EC2 driver, can be an absolute path or
#               relative to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was
#               installed in /).
#-------------------------------------------------------------------------------
VM_MAD = [
    name       = "vmm_ec2",
    executable = "one_vmm_ec2",
    arguments  = "-u http://fcl002.fnal.gov:4567 vmm_ec2/vmm_ec2.conf",
    type       = "xml" ]
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#  Dummy Virtualization Driver Configuration
#-------------------------------------------------------------------------------
#VM_MAD = [ name="vmm_dummy", executable="one_vmm_dummy", type="xml" ]
#-------------------------------------------------------------------------------

#*******************************************************************************
# Transfer Manager Driver Configuration
#*******************************************************************************
# You can add more transfer managers with different configurations but make
# sure it has different names.
#   name      : name for this transfer driver
#
#   executable: path of the transfer driver executable, can be an
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
#
#   arguments : for the driver executable, usually a commands configuration file
#               , can be an absolute path or relative to $ONE_LOCATION/etc (or
#               /etc/one/ if OpenNebula was installed in /)
#*******************************************************************************

#-------------------------------------------------------------------------------
# NFS Transfer Manager Driver Configuration
#-------------------------------------------------------------------------------
#TM_MAD = [
#    name       = "tm_nfs",
#    executable = "one_tm",
#    arguments  = "tm_nfs/tm_nfs.conf" ]
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
# SSH Transfer Manager Driver Configuration
#-------------------------------------------------------------------------------
TM_MAD = [
    name       = "tm_ssh",
    executable = "one_tm",
    arguments  = "tm_ssh/tm_ssh.conf" ]
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
# Dummy Transfer Manager Driver Configuration
#-------------------------------------------------------------------------------
#TM_MAD = [
#    name       = "tm_dummy",
#    executable = "one_tm",
#    arguments  = "tm_dummy/tm_dummy.conf" ]
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
# LVM Transfer Manager Driver Configuration
#-------------------------------------------------------------------------------
#TM_MAD = [
#    name       = "tm_lvm",
#    executable = "one_tm",
#    arguments  = "tm_lvm/tm_lvm.conf" ]
#-------------------------------------------------------------------------------

#*******************************************************************************
# Hook Manager Configuration
#*******************************************************************************
# The Driver (HM_MAD), used to execute the Hooks
#   executable: path of the hook driver executable, can be an
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
#
#   arguments : for the driver executable, can be an absolute path or relative
#               to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was installed
#               in /)
#
# Virtual Machine Hooks (VM_HOOK) defined by:
#   name      : for the hook, useful to track the hook (OPTIONAL)
#   on        : when the hook should be executed,
#               - CREATE, when the VM is created (onevm create)
#               - RUNNING, after the VM is successfully booted
#               - SHUTDOWN, after the VM is shutdown
#               - STOP, after the VM is stopped (including VM image transfers)
#               - DONE, after the VM is deleted or shutdown
#   command   : path can be absolute or relative to $ONE_LOCATION/share/hooks
#               case of self-contained installation or relative to
#               /usr/share/one/hooks in case of system-wide installation
#   arguments : for the hook. You can access to VM template variables with $
#               - $ATTR, the value of an attribute e.g. $NAME or $VMID
#               - $ATTR[VAR], the value of a vector e.g. $NIC[MAC]
#               - $ATTR[VAR, COND], same of previous but COND select between
#                 multiple ATTRs e.g. $NIC[MAC, NETWORK="Public"]
#   remote    : values,
#               - YES, The hook is executed in the host where the VM was
#                 allocated
#               - NO, The hook is executed in the OpenNebula server (default)
#-------------------------------------------------------------------------------

HM_MAD = [
    executable = "one_hm" ]

#-------------------------------- Image Hook -----------------------------------
# This hook is used to handle image saving and overwriting when virtual machines
# reach the DONE state after being shutdown.

VM_HOOK = [
    name      = "image",
    on        = "DONE",
    command   = "image.rb",
    arguments = "$VMID" ]

#-------------------------------------------------------------------------------

#-------------------------------- Hook Examples --------------------------------
#VM_HOOK = [
#    name      = "dhcp",
#    on        = "create",
#    command   = "/bin/echo",
#    arguments = "$NAME > /tmp/test.$VMID" ]
#-------------------------------------------------------------------------------
#VM_HOOK = [
#    name      = "ebtables",
#    on        = "running",
#    command   = "/usr/local/one/bin/set_net",
#    arguments = '$NIC[MAC, Network = "Private"]',
#    remote    = "yes" ]
#-------------------------------------------------------------------------------
#VM_HOOK = [
#    name      = "mail",
#    on        = "running",
#    command   = "/usr/local/one/bin/send_mail",
#    arguments = "$VMID $NAME",
#    remote    = "no" ]
#------------------------------------------------------------------------------

#*******************************************************************************
# Auth Manager Configuration
#*******************************************************************************
# The Driver (AUTHM_MAD) that will be used to authenticate and authorize
# OpenNebula requests. If not defined OpenNebula will use the built-in auth
# policies
#   executable: path of the auth driver executable, can be an
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
#
#   arguments : for the driver executable, can be an absolute path or relative
#               to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was installed
#               in /)
#-------------------------------------------------------------------------------

#AUTH_MAD = [
#    executable = "one_auth_mad" ]

Fri Oct 29 10:46:21 2010 [DiM][I]: New VM state is ACTIVE.
Fri Oct 29 10:46:21 2010 [LCM][I]: New VM state is PROLOG.
Fri Oct 29 10:50:10 2010 [TM][I]: tm_clone.sh: 
fcl002.fnal.gov:/scratch/images/slf-55-x86_64.img 
fcl006:/srv/cloud/one/var/5/images/disk.0
Fri Oct 29 10:50:10 2010 [TM][I]: tm_clone.sh: DST: 
/srv/cloud/one/var/5/images/disk.0
Fri Oct 29 10:50:10 2010 [TM][I]: tm_clone.sh: Creating directory 
/srv/cloud/one/var/5/images
Fri Oct 29 10:50:10 2010 [TM][I]: tm_clone.sh: Executed "/usr/bin/ssh fcl006 
mkdir -p /srv/cloud/one/var/5/images".
Fri Oct 29 10:50:10 2010 [TM][I]: tm_clone.sh: Cloning 
fcl002.fnal.gov:/scratch/images/slf-55-x86_64.img
Fri Oct 29 10:50:10 2010 [TM][I]: tm_clone.sh: Executed "/usr/bin/scp 
fcl002.fnal.gov:/scratch/images/slf-55-x86_64.img 
fcl006:/srv/cloud/one/var/5/images/disk.0".
Fri Oct 29 10:50:10 2010 [TM][I]: tm_clone.sh: Executed "/usr/bin/ssh fcl006 
chmod a+rw /srv/cloud/one/var/5/images/disk.0".
Fri Oct 29 10:50:17 2010 [TM][I]: tm_mkswap.sh: Creating 2048Mb image in 
/srv/cloud/one/var/5/images/disk.1
Fri Oct 29 10:50:17 2010 [TM][I]: tm_mkswap.sh: Executed "/usr/bin/ssh fcl006 
mkdir -p /srv/cloud/one/var/5/images".
Fri Oct 29 10:50:17 2010 [TM][I]: tm_mkswap.sh: Executed "/usr/bin/ssh fcl006 
/bin/dd if=/dev/zero of=/srv/cloud/one/var/5/images/disk.1 bs=1 count=1 
seek=2048M".
Fri Oct 29 10:50:17 2010 [TM][I]: tm_mkswap.sh: Initializing swap space
Fri Oct 29 10:50:17 2010 [TM][I]: tm_mkswap.sh: Executed "/usr/bin/ssh fcl006 
/sbin/mkswap /srv/cloud/one/var/5/images/disk.1".
Fri Oct 29 10:50:17 2010 [TM][I]: tm_mkswap.sh: Executed "/usr/bin/ssh fcl006 
chmod a+w /srv/cloud/one/var/5/images/disk.1".
Fri Oct 29 10:50:17 2010 [TM][I]: Command execution fail: 
/usr/lib/one/tm_commands/ssh/tm_context.sh /var/lib/one/5/context.sh 
/srv/cloud/one/one-templates/init.sh /srv/cloud/one/one-templates/k5login 
/srv/cloud/one/one-templates/keytabs/fgitbse-krb5.keytab 
/srv/cloud/one/one-templates/certificates/fgitbse.fnal.gov-hostcert.pem 
/srv/cloud/one/one-templates/certificates/fgitbse.fnal.gov-hostkey.pem 
fcl006:/srv/cloud/one/var/5/images/disk.2
Fri Oct 29 10:50:17 2010 [TM][I]: STDERR follows.
Fri Oct 29 10:50:17 2010 [TM][I]: ERROR MESSAGE --8<------
Fri Oct 29 10:50:17 2010 [TM][I]: mkdir: cannot create directory 
`/var/3cb1d12e1d6b27d0b173e73f63a19317': Permission denied
Fri Oct 29 10:50:17 2010 [TM][I]: ERROR MESSAGE ------>8--
Fri Oct 29 10:50:17 2010 [TM][I]: ExitCode: 1
Fri Oct 29 10:50:17 2010 [TM][I]: tm_context.sh: ERROR: Command "mkdir -p 
/var/3cb1d12e1d6b27d0b173e73f63a19317/isofiles" failed.
Fri Oct 29 10:50:17 2010 [TM][I]: tm_context.sh: ERROR: mkdir: cannot create 
directory `/var/3cb1d12e1d6b27d0b173e73f63a19317': Permission denied
Fri Oct 29 10:50:17 2010 [TM][E]: Error excuting image transfer script: mkdir: 
cannot create directory `/var/3cb1d12e1d6b27d0b173e73f63a19317': Permission 
denied
Fri Oct 29 10:50:17 2010 [DiM][I]: New VM state is FAILED
Fri Oct 29 10:50:19 2010 [TM][W]: Ignored: LOG - 5 tm_delete.sh: Deleting 
/srv/cloud/one/var/5/images

Fri Oct 29 10:50:19 2010 [TM][W]: Ignored: LOG - 5 tm_delete.sh: Executed 
"/usr/bin/ssh fcl006 rm -rf /srv/cloud/one/var/5/images".

Fri Oct 29 10:50:19 2010 [TM][W]: Ignored: TRANSFER SUCCESS 5 -

_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to