<div dir="ltr">Hi,<div><br></div><div>Could you try removing the MD5 section of your template, and check if the image is correctly created.</div><div><br></div><div>Cheers</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On 23 October 2013 13:40, Wojciech Giel <span dir="ltr"><<a href="mailto:wojciech.giel@cimr.cam.ac.uk" target="_blank">wojciech.giel@cimr.cam.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
here is the output as well as logs:<br>
<br>
oneimage show 3 -x<br>
<IMAGE><br>
  <ID>3</ID><br>
  <UID>0</UID><br>
  <GID>0</GID><br>
  <UNAME>oneadmin</UNAME><br>
  <GNAME>oneadmin</GNAME><br>
  <NAME>Ubuntu12.04 - ISO</NAME><br>
  <PERMISSIONS><br>
    <OWNER_U>1</OWNER_U><br>
    <OWNER_M>1</OWNER_M><br>
    <OWNER_A>0</OWNER_A><br>
    <GROUP_U>0</GROUP_U><br>
    <GROUP_M>0</GROUP_M><br>
    <GROUP_A>0</GROUP_A><br>
    <OTHER_U>0</OTHER_U><br>
    <OTHER_M>0</OTHER_M><br>
    <OTHER_A>0</OTHER_A><br>
  </PERMISSIONS><br>
  <TYPE>1</TYPE><br>
  <DISK_TYPE>0</DISK_TYPE><br>
  <PERSISTENT>0</PERSISTENT><br>
  <REGTIME>1382527868</REGTIME><br>
  <SOURCE/><br>
  <PATH>/var/tmp/thin-<u></u>body20131023-2332-w4j25y-0</<u></u>PATH><br>
  <FSTYPE/><br>
  <SIZE>685</SIZE><br>
  <STATE>5</STATE><br>
  <RUNNING_VMS>0</RUNNING_VMS><br>
  <CLONING_OPS>0</CLONING_OPS><br>
  <CLONING_ID>-1</CLONING_ID><br>
  <DATASTORE_ID>1</DATASTORE_ID><br>
  <DATASTORE>default</DATASTORE><br>
  <VMS/><br>
  <CLONES/><br>
  <TEMPLATE><br>
    <DEV_PREFIX><![CDATA[hd]]></<u></u>DEV_PREFIX><br>
    <DRIVER><![CDATA[raw]]></<u></u>DRIVER><br>
    <ERROR><![CDATA[Wed Oct 23 12:32:17 2013 : Error copying image in the datastore: Error copying /var/tmp/thin-body20131023-<u></u>2332-w4j25y-0 to /var/lib/one/datastores/1/<u></u>4ce680205b50163201fe59d1d779a5<u></u>ad]]></ERROR><br>


<MD5><![CDATA[<u></u>80d4bb65e41335df051a9d5d43c3e9<u></u>0d]]></MD5><br>
  </TEMPLATE><br>
</IMAGE><br>
<br>
Wed Oct 23 12:32:16 2013 [ReM][D]: Req:6880 UID:0 ImageInfo invoked, 3<br>
Wed Oct 23 12:32:16 2013 [ReM][D]: Req:6880 UID:0 ImageInfo result SUCCESS, "<IMAGE><ID>3</ID><UI..."<br>
Wed Oct 23 12:32:17 2013 [ImM][I]: Command execution fail: /var/lib/one/remotes/<u></u>datastore/fs/cp PERTX0RSSVZFUl9BQ1RJT05fREFUQT<u></u>48SU1BR0U+PElEPjM8L0lEPjxVSUQ+<u></u>MDwvVUlEPjxHSUQ+<u></u>MDwvR0lEPjxVTkFNRT5vbmVhZG1pbj<u></u>wvVU5BTUU+<u></u>PEdOQU1FPm9uZWFkbWluPC9HTkFNRT<u></u>48TkFNRT5VYnVudHUxMi4wNCAtIElT<u></u>TzwvTkFNRT48UEVSTUlTU0lPTlM+<u></u>PE9XTkVSX1U+<u></u>MTwvT1dORVJfVT48T1dORVJfTT4xPC<u></u>9PV05FUl9NPjxPV05FUl9BPjA8L09X<u></u>TkVSX0E+PEdST1VQX1U+<u></u>MDwvR1JPVVBfVT48R1JPVVBfTT4wPC<u></u>9HUk9VUF9NPjxHUk9VUF9BPjA8L0dS<u></u>T1VQX0E+PE9USEVSX1U+<u></u>MDwvT1RIRVJfVT48T1RIRVJfTT4wPC<u></u>9PVEhFUl9NPjxPVEhFUl9BPjA8L09U<u></u>SEVSX0E+<u></u>PC9QRVJNSVNTSU9OUz48VFlQRT4wPC<u></u>9UWVBFPjxESVNLX1RZUEU+<u></u>MDwvRElTS19UWVBFPjxQRVJTS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wvT1dORVJfTT48T1dORVJfQT4wPC<u></u>9PV05FUl9BPjxHUk9VUF9VPjE8L0dS<u></u>T1VQX1U+PEdST1VQX00+<u></u>MDwvR1JPVVBfTT48R1JPVVBfQT4wPC<u></u>9HUk9VUF9BPjxPVEhFUl9VPjE8L09U<u></u>SEVSX1U+PE9USEVSX00+<u></u>MDwvT1RIRVJfTT48T1RIRVJfQT4wPC<u></u>9PVEhFUl9BPjwvUEVSTUlTU0lPTlM+<u></u>PERTX01BRD5mczwvRFNfTUFEPjxUTV<u></u>9NQUQ+c2hhcmVkPC9UTV9NQUQ+<u></u>PEJBU0VfUEFUSD4vdmFyL2xpYi9vbm<u></u>UvZGF0YXN0b3Jlcy8xPC9CQVNFX1BB<u></u>VEg+PFRZUEU+<u></u>MDwvVFlQRT48RElTS19UWVBFPjA8L0<u></u>RJU0tfVFlQRT48Q0xVU1RFUl9JRD4x<u></u>MDA8L0NMVVNURVJfSUQ+<u></u>PENMVVNURVI+<u></u>ZGlsPC9DTFVTVEVSPjxUT1RBTF9NQj<u></u>4xOTIyNDc5PC9UT1RBTF9NQj48RlJF<u></u>RV9NQj4xNzgyNTIyPC9GUkVFX01CPj<u></u>xVU0VEX01CPjcxNDI8L1VTRURfTUI+<u></u>PElNQUdFUz48SUQ+MDwvSUQ+<u></u>PElEPjE8L0lEPjxJRD4yPC9JRD48L0<u></u>lNQUdFUz48VEVNUExBVEU+<u></u>PERTX01BRD48IVtDREFUQVtmc11dPj<u></u>wvRFNfTUFEPjxUTV9NQUQ+<u></u>PCFbQ0RBVEFbc2hhcmVkXV0+<u></u>PC9UTV9NQUQ+PFRZUEU+<u></u>PCFbQ0RBVEFbSU1BR0VfRFNdXT48L1<u></u>RZUEU+<u></u>PC9URU1QTEFURT48L0RBVEFTVE9SRT<u></u>48L0RTX0RSSVZFUl9BQ1RJT05fREFU<u></u>QT4= 3<br>


Wed Oct 23 12:32:17 2013 [ImM][I]: cp: Copying local image /var/tmp/thin-body20131023-<u></u>2332-w4j25y-0 to the image repository<br>
Wed Oct 23 12:32:17 2013 [ImM][E]: cp: Command "/var/lib/one/remotes/<u></u>datastore/fs/../downloader.sh --md5 80d4bb65e41335df051a9d5d43c3e9<u></u>0d /var/tmp/thin-body20131023-<u></u>2332-w4j25y-0 /var/lib/one/datastores/1/<u></u>4ce680205b50163201fe59d1d779a5<u></u>ad" failed: Hash does not match<br>


Wed Oct 23 12:32:17 2013 [ImM][E]: Error copying /var/tmp/thin-body20131023-<u></u>2332-w4j25y-0 to /var/lib/one/datastores/1/<u></u>4ce680205b50163201fe59d1d779a5<u></u>ad<br>
Wed Oct 23 12:32:17 2013 [ImM][I]: ExitCode: 255<br>
Wed Oct 23 12:32:17 2013 [ImM][E]: Error copying image in the datastore: Error copying /var/tmp/thin-body20131023-<u></u>2332-w4j25y-0 to /var/lib/one/datastores/1/<u></u>4ce680205b50163201fe59d1d779a5<u></u>ad<br>
Wed Oct 23 12:32:17 2013 [InM][I]: Monitoring datastore default (1)<br>
Wed Oct 23 12:32:17 2013 [ImM][I]: Datastore default (1) successfully monitored.<br>
Wed Oct 23 12:32:21 2013 [ReM][D]: Req:5120 UID:0 ImageInfo invoked, 3<br>
Wed Oct 23 12:32:21 2013 [ReM][D]: Req:5120 UID:0 ImageInfo result SUCCESS, "<IMAGE><ID>3</ID><UI..."<br>
Wed Oct 23 12:32:22 2013 [ReM][D]: Req:736 UID:0 GroupPoolInfo invoked<br>
Wed Oct 23 12:32:22 2013 [ReM][D]: Req:736 UID:0 GroupPoolInfo result SUCCESS, "<GROUP_POOL><GROUP><..."<br>
<br>
thanks<br>
Wojciech<div class="im"><br>
<br>
<br>
On 22/10/13 16:41, Daniel Molina wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<div><div class="h5"><br>
<br>
<br>
On 22 October 2013 15:02, Wojciech Giel <<a href="mailto:wojciech.giel@cimr.cam.ac.uk" target="_blank">wojciech.giel@cimr.cam.ac.uk</a> <mailto:<a href="mailto:wojciech.giel@cimr.cam.ac.uk" target="_blank">wojciech.giel@cimr.<u></u>cam.ac.uk</a>>> wrote:<br>


<br>
    Hello,<br>
<br>
    I'm running opennebula 4.2 installed from rpm on centos 6.4<br>
    (minimal install) . when I trying upload images (created in kvm)<br>
    with sunstone getting error about hash:<br>
    Error copying image in the datastore: Error copying<br>
    /var/tmp/thin-body20131021-<u></u>2353-1sluvsm-0 to<br>
    /var/lib/one/datastores/1/<u></u>d39ed100c4786d223d0a347fe7f510<u></u>b1<br>
<br>
    Mon Oct 21 15:03:51 2013 [ReM][D]: Req:3744 UID:0 ImageInfo result<br>
    SUCCESS, "<IMAGE><ID>4</ID><UI..."<br>
    Mon Oct 21 15:03:51 2013 [ImM][I]: Command execution fail:<br>
    /var/lib/one/remotes/<u></u>datastore/fs/cp<br>
    PERTX0RSSVZFUl9BQ1RJT05fREFUQT<u></u>48SU1BR0U+PElEPjQ8L0lEPjxVSUQ+<u></u>MDwvVUlEPjxHSUQ+<u></u>MDwvR0lEPjxVTkFNRT5vbmVhZG1pbj<u></u>wvVU5BTUU+<u></u>PEdOQU1FPm9uZWFkbWluPC9HTkFNRT<u></u>48TkFNRT5YdWJ1bnR1IDEyLjA0LjEg<u></u>TFRTPC9OQU1FPjxQRVJNSVNTSU9OUz<u></u>48T1dORVJfVT4xPC9PV05FUl9VPjxP<u></u>V05FUl9NPjE8L09XTkVSX00+<u></u>PE9XTkVSX0E+<u></u>MDwvT1dORVJfQT48R1JPVVBfVT4wPC<u></u>9HUk9VUF9VPjxHUk9VUF9NPjA8L0dS<u></u>T1VQX00+PEdST1VQX0E+<u></u>MDwvR1JPVVBfQT48T1RIRVJfVT4wPC<u></u>9PVEhFUl9VPjxPVEhFUl9NPjA8L09U<u></u>SEVSX00+PE9USEVSX0E+<u></u>MDwvT1RIRVJfQT48L1BFUk1JU1NJT0<u></u>5TPjxUWVBFPjE8L1RZUEU+<u></u>PERJU0tfVFlQRT4wPC9ESVNL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09XTkVSX1U+PE9XTkVSX00+<u></u>MTwvT1dORVJfTT48T1dORVJfQT4wPC<u></u>9PV05FUl9BPjxHUk9VUF9VPjE8L0dS<u></u>T1VQX1U+PEdST1VQX00+<u></u>MDwvR1JPVVBfTT48R1JPVVBfQT4wPC<u></u>9HUk9VUF9BPjxPVEhFUl9VPjE8L09U<u></u>SEVSX1U+PE9USEVSX00+<u></u>MDwvT1RIRVJfTT48T1RIRVJfQT4wPC<u></u>9PVEhFUl9BPjwvUEVSTUlTU0lPTlM+<u></u>PERTX01BRD5mczwvRFNfTUFEPjxUTV<u></u>9NQUQ+c2hhcmVkPC9UTV9NQUQ+<u></u>PEJBU0VfUEFUSD4vdmFyL2xpYi9vbm<u></u>UvZGF0YXN0b3Jlcy8xPC9CQVNFX1BB<u></u>VEg+PFRZUEU+<u></u>MDwvVFlQRT48RElTS19UWVBFPjA8L0<u></u>RJU0tfVFlQRT48Q0xVU1RFUl9JRD4x<u></u>MDA8L0NMVVNURVJfSUQ+<u></u>PENMVVNURVI+<u></u>ZGlsPC9DTFVTVEVSPjxUT1RBTF9NQj<u></u>4yMDM4NDU2PC9UT1RBTF9NQj48RlJF<u></u>RV9NQj4xODk3NzU3PC9GUkVFX01CPj<u></u>xVU0VEX01CPjI5NzM3PC9VU0VEX01C<u></u>PjxJTUFHRVM+<u></u>PElEPjA8L0lEPjxJRD4<br>


    xPC9JRD48SUQ+MjwvSUQ+<u></u>PElEPjM8L0lEPjwvSU1BR0VTPjxURU<u></u>1QTEFURT48RFNfTUFEPjwhW0NEQVRB<u></u>W2ZzXV0+PC9EU19NQUQ+<u></u>PFRNX01BRD48IVtDREFUQVtzaGFyZW<u></u>RdXT48L1RNX01BRD48VFlQRT48IVtD<u></u>REFUQVtJTUFHRV9EU11dPjwvVFlQRT<u></u>48L1RFTVBMQVRFPjwvREFUQVNUT1JF<u></u>PjwvRFNfRFJJVkVSX0FDVElPTl9EQV<u></u>RBPg==<br>


    4<br>
    Mon Oct 21 15:03:51 2013 [ImM][I]: cp: Copying local image<br>
    /var/tmp/thin-body20131021-<u></u>2353-1sluvsm-0 to the image repository<br>
    Mon Oct 21 15:03:51 2013 [ImM][E]: cp: Command<br>
    "/var/lib/one/remotes/<u></u>datastore/fs/../downloader.sh --md5<br>
    c339ea467ea35eec0d8af6f826c164<u></u>4a<br>
    /var/tmp/thin-body20131021-<u></u>2353-1sluvsm-0<br>
    /var/lib/one/datastores/1/<u></u>d39ed100c4786d223d0a347fe7f510<u></u>b1"<br>
    failed: Hash<br>
    does not match<br>
    Mon Oct 21 15:03:51 2013 [ImM][E]: Error copying<br>
    /var/tmp/thin-body20131021-<u></u>2353-1sluvsm-0 to<br>
    /var/lib/one/datastores/1/<u></u>d39ed100c4786d223d0a347fe7f510<u></u>b1<br>
    Mon Oct 21 15:03:51 2013 [ImM][I]: ExitCode: 255<br>
    Mon Oct 21 15:03:51 2013 [ImM][E]: Error copying image in the<br>
    datastore:<br>
    Error copying /var/tmp/thin-body20131021-<u></u>2353-1sluvsm-0 to<br>
    /var/lib/one/datastores/1/<u></u>d39ed100c4786d223d0a347fe7f510<u></u>b1<br>
    Mon Oct 21 15:03:51 2013 [InM][I]: Monitoring datastore default (1)<br>
    Mon Oct 21 15:03:51 2013 [ImM][I]: Datastore default (1) successfully<br>
    monitored.<br>
<br>
    copied image and iso have the same checksum:<br>
<br>
    md5sum xubuntu-12.04.1-desktop-amd64.<u></u>iso<br>
    16fea2603876247caf41f30066bc95<u></u>e4  xubuntu-12.04.1-desktop-amd64.<u></u>iso<br>
<br>
    md5sum 79a98ed6be13387a15da3259ffbc1e<u></u>9f<br>
    16fea2603876247caf41f30066bc95<u></u>e4  c339ea467ea35eec0d8af6f826c164<u></u>4a<br>
    howto fix it.<br>
<br>
<br>
Could you send us the output of 'oneimage show 4 -x'<br>
<br>
Cheers<br>
<br>
    thanks<br>
    Wojciech<br>
<br>
<br>
<br>
<br>
    ______________________________<u></u>_________________<br>
    Users mailing list<br></div></div>
    <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>><div class="im">

<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><br>
<br>
<br>
<br>
<br>
-- <br>
--<br>
Daniel Molina<br>
Project Engineer<br>
OpenNebula - Flexible Enterprise Cloud Made Simple<br>
</div><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> <mailto:<a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a><u></u>> | @OpenNebula<span class="HOEnZb"><font color="#888888"><br>


</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Wojciech Giel<br>
University of Cambridge<br>
JDRF/WT Diabetes and Inflammation Laboratory<br>
Cambridge Institute for Medical Research<br>
Wellcome Trust/MRC Building<br>
Addenbrooke's Hospital, Cambridge, CB2 0XY<br>
Tel: 44 (0) 1223 763228<br>
<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>--<br></div>Daniel Molina<br>Project Engineer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<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>