<div dir="ltr">Hi,<div class="gmail_extra"><br><br><div class="gmail_quote">On 3 September 2013 14:34, Steffen Claus <span dir="ltr"><<a href="mailto:steffen.claus@scai.fraunhofer.de" target="_blank">steffen.claus@scai.fraunhofer.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Am 02.09.2013 15:55, schrieb Daniel Molina:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">
<br>
<br>
<br>
On 19 August 2013 12:27, Steffen Claus <<a href="mailto:steffen.claus@scai.fraunhofer.de" target="_blank">steffen.claus@scai.<u></u>fraunhofer.de</a><br></div><div class="im">
<mailto:<a href="mailto:steffen.claus@scai.fraunhofer.de" target="_blank">steffen.claus@scai.<u></u>fraunhofer.de</a>>> wrote:<br>
<br>
    Am 16.08.2013 19:06, schrieb Daniel Molina:<br>
<br>
        Hi<br>
<br>
<br>
        On 16 August 2013 10:39, Steffen Claus<br></div>
        <steffen.claus@scai.__<a href="http://fraunhofer.de" target="_blank">fraunhof<u></u>er.de</a><br>
        <mailto:<a href="mailto:steffen.claus@scai.fraunhofer.de" target="_blank">steffen.claus@scai.<u></u>fraunhofer.de</a>><br>
        <mailto:<a href="mailto:steffen.claus@scai." target="_blank">steffen.claus@scai.</a>__<a href="http://fraunhofer.de" target="_blank">f<u></u>raunhofer.de</a><div><div class="h5"><br>
        <mailto:<a href="mailto:steffen.claus@scai.fraunhofer.de" target="_blank">steffen.claus@scai.<u></u>fraunhofer.de</a>>>> wrote:<br>
<br>
             Hi,<br>
             i went through the code and found the following lines in the<br>
             EC2QueryServer.rb:<br>
<br>
             def upload_image(params)<br>
                 image = ImageEC2.new(Image.build_xml,<br>
                                     @client,<br>
                                     params['file'],<br>
                                    {:type => "OS"})<br>
<br>
             This renders it impossible to upload files to a file datastore.<br>
<br>
             What would be the best way to handle this situation? Additional<br>
             parameters for the upload_image method, even though AWS doesn't<br>
             distingush between image types? Or one could check the TYPE<br>
        of the<br>
             datastore to define allowed IMAGE types for upload, e.g.:<br>
             type == "image" --> allowed: OS, CDROM, DATABLOCK<br>
             type == "file" --> allowed: KERNEL, RAMDISK, CONTEXT.<br>
<br>
             What do you think?<br>
<br>
<br>
        econe-upload is a nonofficial EC2 api call, it's just a helper<br>
        to upload<br>
        image to OpenNebula. So, you can add a new param type to the<br>
        request an<br>
        use it when creating the new image.<br>
<br>
    I know that econe is not supposed to support the whole range of EC2<br>
    functionalities. So you suggest I should change the server code?<br>
<br>
Yes<br>
</div></div></blockquote>
Ok. I'll think about it.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
<br>
        BTW, how are you going to use this files through EC2?<br>
<br>
    They are pre-configured to be used within VM templates. I just need<br>
    an automatic way of uploading them from outside the Cloud<br>
    infrastructure.<br>
<br>
<br>
BTW, you can upload any kind of file through Sunstone.<br>
</blockquote></div>
I know, but this would be a manual process. I am looking for a way to handle the upload automatically, e.g. by calling an interface of the Cloud (such as EC2, OCCI or OCA).<br></blockquote><div><br></div><div>It makes sense. It would be nice to a have a way to upload images and do not depend on cloud servers or gui interactions. I have opened a new feature request in our dev page to consider for upcoming release:</div>

<div><br></div><div><a href="http://dev.opennebula.org/projects/opennebula/issues/new">http://dev.opennebula.org/projects/opennebula/issues/new</a> </div><div><br></div><div>Cheers</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">
<br>
Cheers<br>
<br>
<br>
<br>
        Cheers<br>
<br>
<br>
<br>
             BR,<br>
             Steffen<br>
<br>
<br>
             ----- Ursprüngliche Mail -----<br>
              > Hi,<br>
              > i am trying to upload a file via econe-upload to my file<br>
        datastore.<br>
              > However, i keep getting the following error:<br>
              ><br>
              > "econe-upload:<br>
              ><br>
<br></div>
        <Response><RequestId/><Errors><u></u>__<Error><Code>__<u></u>UnsupportedOperation</Code><__<u></u>Message>[ImageAllocate]<div class="im"><br>
              > Error allocating a new image. Only IMAGES of type<br>
        KERNEL, RAMDISK<br>
              > and CONTEXT can be registered in a FILE_DS<br></div>
              > datastore</Message></Error></_<u></u>_Errors></Response>".<div class="im"><br>
              ><br>
              > Is the current implementation of econe-upload incapable<br>
        of handling<br>
              > file datastores? Where can i change the image type?<br>
              ><br>
              > Is there another way of uploading files via<br>
        command-line/API? I<br>
              > haven't succeded with ec2-tools (ec2-import-volume) as<br>
        well. What<br>
              > about OCCI?<br>
              ><br>
              > BR,<br>
              > Steffen<br>
              ><br>
              ><br>
              ><br>
              > --<br>
              > Steffen Claus<br>
              ><br>
              > Fraunhofer-Institut für Algorithmen und<br>
        Wissenschaftliches Rechnen<br>
              > (SCAI)<br>
              > Schloss Birlinghoven<br>
              > D-53754 Sankt Augustin<br>
              > Tel: <a href="tel:%2B49%202241%2014-2511" value="+492241142511" target="_blank">+49 2241 14-2511</a> <tel:%2B49%202241%2014-2511><br></div>
        <tel:%2B49%202241%2014-2511><br>
              > steffen.claus@scai.fraunhofer.<u></u>__de<br>
        <mailto:<a href="mailto:steffen.claus@scai.fraunhofer.de" target="_blank">steffen.claus@scai.<u></u>fraunhofer.de</a>><br>
             <mailto:<a href="mailto:steffen.claus@scai." target="_blank">steffen.claus@scai.</a>__<a href="http://fraunhofer.de" target="_blank">f<u></u>raunhofer.de</a><br>
        <mailto:<a href="mailto:steffen.claus@scai.fraunhofer.de" target="_blank">steffen.claus@scai.<u></u>fraunhofer.de</a>>><br>
<br>
              > <a href="http://www.scai.fraunhofer.de" target="_blank">http://www.scai.fraunhofer.de</a><br>
              > ______________________________<u></u>___________________<div class="im"><br>
              > Users mailing list<br>
              > <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
        <mailto:<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.<u></u>opennebula.org</a>><br></div>
        <mailto:<a href="mailto:Users@lists." target="_blank">Users@lists.</a>__<a href="http://opennebula.org" target="_blank">opennebu<u></u>la.org</a><br>
        <mailto:<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.<u></u>opennebula.org</a>>><br>
<br>
              ><br>
        <a href="http://lists.opennebula.org/__listinfo.cgi/users-opennebula.__org" target="_blank">http://lists.opennebula.org/__<u></u>listinfo.cgi/users-opennebula.<u></u>__org</a> <<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a>><div class="im">

<br>
              ><br>
<br>
             --<br>
             Steffen Claus<br>
<br>
             Fraunhofer-Institut für Algorithmen und Wissenschaftliches<br>
        Rechnen<br>
             (SCAI)<br>
             Schloss Birlinghoven<br>
             D-53754 Sankt Augustin<br>
             Tel: <a href="tel:%2B49%202241%2014-2511" value="+492241142511" target="_blank">+49 2241 14-2511</a> <tel:%2B49%202241%2014-2511><br></div>
        <tel:%2B49%202241%2014-2511><br>
        steffen.claus@scai.fraunhofer.<u></u>__de<br>
        <mailto:<a href="mailto:steffen.claus@scai.fraunhofer.de" target="_blank">steffen.claus@scai.<u></u>fraunhofer.de</a>><br>
             <mailto:<a href="mailto:steffen.claus@scai." target="_blank">steffen.claus@scai.</a>__<a href="http://fraunhofer.de" target="_blank">f<u></u>raunhofer.de</a><br>
        <mailto:<a href="mailto:steffen.claus@scai.fraunhofer.de" target="_blank">steffen.claus@scai.<u></u>fraunhofer.de</a>>><br>
<br>
        <a href="http://www.scai.fraunhofer.de" target="_blank">http://www.scai.fraunhofer.de</a><br>
             ______________________________<u></u>___________________<div class="im"><br>
             Users mailing list<br>
        <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a> <mailto:<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.<u></u>opennebula.org</a>><br></div>


        <mailto:<a href="mailto:Users@lists." target="_blank">Users@lists.</a>__<a href="http://opennebula.org" target="_blank">opennebu<u></u>la.org</a><br>
        <mailto:<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.<u></u>opennebula.org</a>>><br>
        <a href="http://lists.opennebula.org/__listinfo.cgi/users-opennebula.__org" target="_blank">http://lists.opennebula.org/__<u></u>listinfo.cgi/users-opennebula.<u></u>__org</a> <<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a>><div class="im">

<br>
<br>
<br>
<br>
<br>
        --<br>
        Join us at OpenNebulaConf2013 <<a href="http://opennebulaconf.com/" target="_blank">http://opennebulaconf.com/</a>> in<br>
        Berlin,<br>
<br>
        24-26 September, 2013<br>
        --<br>
        Daniel Molina<br>
        Project Engineer<br>
        OpenNebula - The Open Source Solution for Data Center Virtualization<br>
        <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> <<a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a>><br>
        <<a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a>> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a><br>
        <mailto:<a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a><u></u>><br></div>
        <mailto:<a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a><br>
        <mailto:<a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a><u></u>>__> | @OpenNebula<div class="im"><br>
<br>
<br>
<br>
    --<br>
    Steffen Claus<br>
<br>
    Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen<br>
    (SCAI)<br>
    Schloss Birlinghoven<br>
    D-53754 Sankt Augustin<br></div>
    Tel: <a href="tel:%2B49%202241%2014-2511" value="+492241142511" target="_blank">+49 2241 14-2511</a> <tel:%2B49%202241%2014-2511><br>
    steffen.claus@scai.fraunhofer.<u></u>__de<br>
    <mailto:<a href="mailto:steffen.claus@scai.fraunhofer.de" target="_blank">steffen.claus@scai.<u></u>fraunhofer.de</a>><div class="im"><br>
    <a href="http://www.scai.fraunhofer.de" target="_blank">http://www.scai.fraunhofer.de</a><br>
<br>
<br>
<br>
<br>
--<br>
Join us at OpenNebulaConf2013 <<a href="http://opennebulaconf.com/" target="_blank">http://opennebulaconf.com/</a>> in Berlin,<br>
24-26 September, 2013<br>
--<br>
Daniel Molina<br>
Project Engineer<br>
OpenNebula - The Open Source Solution for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> <<a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a>> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a><br>


<mailto:<a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a><u></u>> | @OpenNebula<br>
</div></blockquote><div class=""><div class="h5">
<br>
<br>
-- <br>
Steffen Claus<br>
<br>
Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen (SCAI)<br>
Schloss Birlinghoven<br>
D-53754 Sankt Augustin<br>
Tel: <a href="tel:%2B49%202241%2014-2511" value="+492241142511" target="_blank">+49 2241 14-2511</a><br>
<a href="mailto:steffen.claus@scai.fraunhofer.de" target="_blank">steffen.claus@scai.fraunhofer.<u></u>de</a><br>
<a href="http://www.scai.fraunhofer.de" target="_blank">http://www.scai.fraunhofer.de</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Join us at <a href="http://opennebulaconf.com/" target="_blank">OpenNebulaConf2013</a> in Berlin, 24-26 September, 2013<br></div>

<div>--</div>Daniel Molina<br>Project Engineer<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula</div>


</div></div>