[one-users] Cannot open deployment file after generating
GIANG NGUYENVAN
mvnli_giang at yahoo.com
Sun May 16 21:12:20 PDT 2010
Hello.
When I try to run the ttylinux example in opennebula homepage, I got stuck with the error like that "Error deploying virtual machine: Can not open deployment file " although I have successfully created that file. I don't understand what Oned want?
And also, to create the deployment file, I must change some code in the Lib folder. This code cause One cannot find the deployment file (I have reported this error about 1 month ago). The code is like:
def get_local_deployment_file(rfile)
lfile = nil
one_location = ENV["ONE_LOCATION"]
if one_location == nil
var_location = "/var/lib/one/"
else
var_location = one_location + "/var/"
end
m = rfile.match(/.*?\/(\d+)\/images\/(deployment.\d+)$/)
lfile = "#{var_location}#{m[1]}/#{m[2]}" if m
lfile = nil if lfile and !File.exists?(lfile)
return lfile
end
I changed the highlighted line to lfile = "#{var_location}#{m[1]}#{m[2]}" if m (remore the symbol "/" as you see)
Also, this is the Vm log file about that stupid error.
Mon May 17 10:55:12 2010 [DiM][I]: New VM state is ACTIVE.
Mon May 17 10:55:13 2010 [LCM][I]: New VM state is PROLOG.
Mon May 17 10:55:13 2010 [VM][I]: Virtual Machine has no context
Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: nguyenlinh:/srv/cloud/ttylinux/ttylinux.img 172.29.70.92:/srv/cloud/one/var/3/images/disk.0
Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: DST: /srv/cloud/one//var/3/images/disk.0
Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Creating directory /srv/cloud/one//var/3/images
Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Executed "mkdir -p /srv/cloud/one//var/3/images".
Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w /srv/cloud/one//var/3/images".
Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Cloning /srv/cloud/ttylinux/ttylinux.img
Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Executed "cp /srv/cloud/ttylinux/ttylinux.img /srv/cloud/one//var/3/images/disk.0".
Mon May 17 10:55:13 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w /srv/cloud/one//var/3/images/disk.0".
Mon May 17 10:55:13 2010 [LCM][I]: New VM state is BOOT
Mon May 17 10:55:13 2010 [VMM][I]: Generating deployment file: /srv/cloud/one/var/3/deployment.0
Mon May 17 10:55:13 2010 [VMM][E]: Error deploying virtual machine: Can not open deployment file
Mon May 17 10:55:14 2010 [DiM][I]: New VM state is FAILED
Mon May 17 10:55:15 2010 [TM][W]: Ignored: LOG - 3 tm_delete.sh: Deleting /srv/cloud/one//var/3/images
Mon May 17 10:55:15 2010 [TM][W]: Ignored: LOG - 3 tm_delete.sh: Executed "rm -rf /srv/cloud/one//var/3/images".
Mon May 17 10:55:15 2010 [TM][W]: Ignored: TRANSFER SUCCESS 3 -
Mon May 17 11:05:19 2010 [DiM][I]: New VM state is DONE.
Anyone please help me. Thanks everyone for reading :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100517/f9c8de6d/attachment-0002.htm>
More information about the Users
mailing list