<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.17095" name=GENERATOR><LINK
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}"
rel=stylesheet></HEAD>
<BODY style="FONT-SIZE: 10pt; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana size=2>
<DIV><FONT face=Verdana size=2>Hi,All</FONT></DIV>
<DIV> </DIV>
<DIV style="TEXT-INDENT: 2em">When I call
one.image.allocate of xml-rpc API
,the new image file can't be created .</DIV>
<DIV style="TEXT-INDENT: 2em">but,oneimage register is no problem!</DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV style="TEXT-INDENT: 2em"> oneimage list command ,the following:</DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV style="TEXT-INDENT: 2em"><FONT face=Verdana
size=2> 35 oneadmin 0328_mkImg_1 OS Mar 28, 2011 02:12 Yes No disa 0
</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV style="TEXT-INDENT: 2em"> oneimage show 35, the f</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<BLOCKQUOTE style="TEXT-INDENT: 2em">
<DIV>IMAGE INFORMATION </DIV>
<DIV>ID : 35 </DIV>
<DIV>NAME : 0328_mkImg_1 </DIV>
<DIV>TYPE : OS </DIV>
<DIV>REGISTER TIME : 03/28 10:12:57 </DIV>
<DIV>PUBLIC : Yes </DIV>
<DIV>PERSISTENT : No </DIV>
<DIV>SOURCE : /opt/nebula/images/afa5ebb70546e3786197e607b4092f1e13c5a5e4</DIV>
<DIV>STATE : disa </DIV>
<DIV>RUNNING_VMS : 0 </DIV>
<DIV></DIV>
<DIV>IMAGE TEMPLATE </DIV>
<DIV>DESCRIPTION=0328_mkImg_1 desc</DIV>
<DIV>DEV_PREFIX=hd</DIV>
<DIV>NAME=0328_mkImg_1</DIV>
<DIV>PATH=/one_images/8/images/disk.0</DIV>
<DIV>TYPE=OS</DIV>ollowing:</BLOCKQUOTE></BLOCKQUOTE>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV style="TEXT-INDENT: 2em"> the file name is
"afa5ebb70546e3786197e607b4092f1e13c5a5e4", the directory
" /opt/nebula/images" has not the file!;</DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV style="TEXT-INDENT: 2em"> I packing the image template String is
:</DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<BLOCKQUOTE dir=ltr style="TEXT-INDENT: 2em; MARGIN-RIGHT: 0px">
<DIV>StringBuffer template = new StringBuffer();</DIV>
<DIV>template.append("NAME=").append("\"").append(name).append("\"").append("\n"); </DIV>
<DIV>template.append("DESCRIPTION=").append("\"").append(desc).append("\"").append("\n");</DIV>
<DIV>template.append("PUBLIC = ").append("YES").append("\n"); </DIV>
<DIV>template.append("TYPE=").append("OS").append("\n"); </DIV>
<DIV>template.append("PERSISTENT=").append("NO").append("\n"); </DIV>
<DIV>template.append("DEV_PREFIX=").append("\"hd\"").append("\n"); // ¿ÉÑ¡. </DIV>
<DIV>//template.append("BUS=").append("").append("\n"); </DIV>
<DIV>template.append("PATH=").append("/one_images/").append(vminfo.getVmId()).append("/images/disk.0").append("\n"); </DIV></BLOCKQUOTE>
<DIV dir=ltr> </DIV>
<DIV dir=ltr style="TEXT-INDENT: 2em">opennebula.org document say£º</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV dir=ltr style="TEXT-INDENT: 2em"><FONT
style="BACKGROUND-COLOR: #6e7406">When a new image template is allocated, the
core will insert the image in the system in <CODE>DISABLED</CODE> state. The
developer has to request the extended information for the new image, and copy
(or create) the file to the <CODE>SOURCE</CODE> attribute (added by the core).
After the file is copied (or created), the image has to be enabled.
</FONT></DIV>
<DIV dir=ltr style="TEXT-INDENT: 2em"><FONT
style="BACKGROUND-COLOR: #ff6600">but the file is not created, Why? oneimage
register is ok!</FONT></DIV></BLOCKQUOTE>
<DIV dir=ltr> </DIV>
<DIV dir=ltr> Thank for your answering!</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr style="TEXT-INDENT: 2em">Hope to get quickly reply£¡</DIV>
<DIV dir=ltr style="TEXT-INDENT: 2em"> </DIV>
<DIV dir=ltr style="TEXT-INDENT: 2em">Thanks and Regars£¡</DIV>
<DIV dir=ltr style="TEXT-INDENT: 2em">david.</DIV></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV align=left><FONT face=Verdana color=#c0c0c0 size=2>2011-03-29
</FONT></DIV><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN>liudewei</SPAN>
</FONT></DIV></FONT><font face="monospace">---------------------------------------------------------------------------------------------------<br>
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) <br>
is intended only for the use of the intended recipient and may be confidential and/or privileged of <br>
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is <br>
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying <br>
is strictly prohibited, and may be unlawful.If you have received this communication in error,please <br>
immediately notify the sender by return e-mail, and delete the original message and all copies from <br>
your system. Thank you. <br>
---------------------------------------------------------------------------------------------------</font></BODY></HTML>