[one-users] Hash does not match - can't import image with sunstone

Daniel Molina dmolina at opennebula.org
Fri Oct 25 02:13:08 PDT 2013


Hi,

Could you try removing the MD5 section of your template, and check if the
image is correctly created.

Cheers


On 23 October 2013 13:40, Wojciech Giel <wojciech.giel at cimr.cam.ac.uk>wrote:

> Hi,
> here is the output as well as logs:
>
> oneimage show 3 -x
> <IMAGE>
>   <ID>3</ID>
>   <UID>0</UID>
>   <GID>0</GID>
>   <UNAME>oneadmin</UNAME>
>   <GNAME>oneadmin</GNAME>
>   <NAME>Ubuntu12.04 - ISO</NAME>
>   <PERMISSIONS>
>     <OWNER_U>1</OWNER_U>
>     <OWNER_M>1</OWNER_M>
>     <OWNER_A>0</OWNER_A>
>     <GROUP_U>0</GROUP_U>
>     <GROUP_M>0</GROUP_M>
>     <GROUP_A>0</GROUP_A>
>     <OTHER_U>0</OTHER_U>
>     <OTHER_M>0</OTHER_M>
>     <OTHER_A>0</OTHER_A>
>   </PERMISSIONS>
>   <TYPE>1</TYPE>
>   <DISK_TYPE>0</DISK_TYPE>
>   <PERSISTENT>0</PERSISTENT>
>   <REGTIME>1382527868</REGTIME>
>   <SOURCE/>
>   <PATH>/var/tmp/thin-**body20131023-2332-w4j25y-0</**PATH>
>   <FSTYPE/>
>   <SIZE>685</SIZE>
>   <STATE>5</STATE>
>   <RUNNING_VMS>0</RUNNING_VMS>
>   <CLONING_OPS>0</CLONING_OPS>
>   <CLONING_ID>-1</CLONING_ID>
>   <DATASTORE_ID>1</DATASTORE_ID>
>   <DATASTORE>default</DATASTORE>
>   <VMS/>
>   <CLONES/>
>   <TEMPLATE>
>     <DEV_PREFIX><![CDATA[hd]]></**DEV_PREFIX>
>     <DRIVER><![CDATA[raw]]></**DRIVER>
>     <ERROR><![CDATA[Wed Oct 23 12:32:17 2013 : Error copying image in the
> datastore: Error copying /var/tmp/thin-body20131023-**2332-w4j25y-0 to
> /var/lib/one/datastores/1/**4ce680205b50163201fe59d1d779a5**ad]]></ERROR>
> <MD5><![CDATA[**80d4bb65e41335df051a9d5d43c3e9**0d]]></MD5>
>   </TEMPLATE>
> </IMAGE>
>
> Wed Oct 23 12:32:16 2013 [ReM][D]: Req:6880 UID:0 ImageInfo invoked, 3
> Wed Oct 23 12:32:16 2013 [ReM][D]: Req:6880 UID:0 ImageInfo result
> SUCCESS, "<IMAGE><ID>3</ID><UI..."
> Wed Oct 23 12:32:17 2013 [ImM][I]: Command execution fail:
> /var/lib/one/remotes/**datastore/fs/cp PERTX0RSSVZFUl9BQ1RJT05fREFUQT**
> 48SU1BR0U+PElEPjM8L0lEPjxVSUQ+**MDwvVUlEPjxHSUQ+**
> MDwvR0lEPjxVTkFNRT5vbmVhZG1pbj**wvVU5BTUU+**PEdOQU1FPm9uZWFkbWluPC9HTkFNRT
> **48TkFNRT5VYnVudHUxMi4wNCAtIElT**TzwvTkFNRT48UEVSTUlTU0lPTlM+**
> PE9XTkVSX1U+**MTwvT1dORVJfVT48T1dORVJfTT4xPC**
> 9PV05FUl9NPjxPV05FUl9BPjA8L09X**TkVSX0E+PEdST1VQX1U+**
> MDwvR1JPVVBfVT48R1JPVVBfTT4wPC**9HUk9VUF9NPjxHUk9VUF9BPjA8L0dS**
> T1VQX0E+PE9USEVSX1U+**MDwvT1RIRVJfVT48T1RIRVJfTT4wPC**
> 9PVEhFUl9NPjxPVEhFUl9BPjA8L09U**SEVSX0E+**PC9QRVJNSVNTSU9OUz48VFlQRT4wPC**
> 9UWVBFPjxESVNLX1RZUEU+**MDwvRElTS19UWVBFPjxQRVJTSVNURU**
> 5UPjA8L1BFUlNJU1RFTlQ+**PFJFR1RJTUU+**MTM4MjUyNzg2ODwvUkVHVElNRT48U0**
> 9VUkNFPjwvU09VUkNFPjxQQVRIPi92**YXIvdG1wL3RoaW4tYm9keTIwMTMxMD**
> IzLTIzMzItdzRqMjV5LTA8L1BBVEg+**PEZTVFlQRT48L0ZTVFlQRT48U0laRT**
> 42ODU8L1NJWkU+**PFNUQVRFPjQ8L1NUQVRFPjxSV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PFRZUEU+**
> MDwvVFlQRT48RElTS19UWVBFPjA8L0**RJU0tfVFlQRT48Q0xVU1RFUl9JRD4x**
> MDA8L0NMVVNURVJfSUQ+**PENMVVNURVI+**ZGlsPC9DTFVTVEVSPjxUT1RBTF9NQj**
> 4xOTIyNDc5PC9UT1RBTF9NQj48RlJF**RV9NQj4xNzgyNTIyPC9GUkVFX01CPj**
> xVU0VEX01CPjcxNDI8L1VTRURfTUI+**PElNQUdFUz48SUQ+MDwvSUQ+**
> PElEPjE8L0lEPjxJRD4yPC9JRD48L0**lNQUdFUz48VEVNUExBVEU+**
> PERTX01BRD48IVtDREFUQVtmc11dPj**wvRFNfTUFEPjxUTV9NQUQ+**
> PCFbQ0RBVEFbc2hhcmVkXV0+**PC9UTV9NQUQ+PFRZUEU+**
> PCFbQ0RBVEFbSU1BR0VfRFNdXT48L1**RZUEU+**PC9URU1QTEFURT48L0RBVEFTVE9SRT**
> 48L0RTX0RSSVZFUl9BQ1RJT05fREFU**QT4= 3
> Wed Oct 23 12:32:17 2013 [ImM][I]: cp: Copying local image
> /var/tmp/thin-body20131023-**2332-w4j25y-0 to the image repository
> Wed Oct 23 12:32:17 2013 [ImM][E]: cp: Command "/var/lib/one/remotes/**datastore/fs/../downloader.sh
> --md5 80d4bb65e41335df051a9d5d43c3e9**0d /var/tmp/thin-body20131023-**2332-w4j25y-0
> /var/lib/one/datastores/1/**4ce680205b50163201fe59d1d779a5**ad" failed:
> Hash does not match
> Wed Oct 23 12:32:17 2013 [ImM][E]: Error copying
> /var/tmp/thin-body20131023-**2332-w4j25y-0 to /var/lib/one/datastores/1/**
> 4ce680205b50163201fe59d1d779a5**ad
> Wed Oct 23 12:32:17 2013 [ImM][I]: ExitCode: 255
> Wed Oct 23 12:32:17 2013 [ImM][E]: Error copying image in the datastore:
> Error copying /var/tmp/thin-body20131023-**2332-w4j25y-0 to
> /var/lib/one/datastores/1/**4ce680205b50163201fe59d1d779a5**ad
> Wed Oct 23 12:32:17 2013 [InM][I]: Monitoring datastore default (1)
> Wed Oct 23 12:32:17 2013 [ImM][I]: Datastore default (1) successfully
> monitored.
> Wed Oct 23 12:32:21 2013 [ReM][D]: Req:5120 UID:0 ImageInfo invoked, 3
> Wed Oct 23 12:32:21 2013 [ReM][D]: Req:5120 UID:0 ImageInfo result
> SUCCESS, "<IMAGE><ID>3</ID><UI..."
> Wed Oct 23 12:32:22 2013 [ReM][D]: Req:736 UID:0 GroupPoolInfo invoked
> Wed Oct 23 12:32:22 2013 [ReM][D]: Req:736 UID:0 GroupPoolInfo result
> SUCCESS, "<GROUP_POOL><GROUP><..."
>
> thanks
> Wojciech
>
>
>
> On 22/10/13 16:41, Daniel Molina wrote:
>
>> Hi,
>>
>>
>>
>> On 22 October 2013 15:02, Wojciech Giel <wojciech.giel at cimr.cam.ac.uk<mailto:
>> wojciech.giel at cimr.**cam.ac.uk <wojciech.giel at cimr.cam.ac.uk>>> wrote:
>>
>>     Hello,
>>
>>     I'm running opennebula 4.2 installed from rpm on centos 6.4
>>     (minimal install) . when I trying upload images (created in kvm)
>>     with sunstone getting error about hash:
>>     Error copying image in the datastore: Error copying
>>     /var/tmp/thin-body20131021-**2353-1sluvsm-0 to
>>     /var/lib/one/datastores/1/**d39ed100c4786d223d0a347fe7f510**b1
>>
>>     Mon Oct 21 15:03:51 2013 [ReM][D]: Req:3744 UID:0 ImageInfo result
>>     SUCCESS, "<IMAGE><ID>4</ID><UI..."
>>     Mon Oct 21 15:03:51 2013 [ImM][I]: Command execution fail:
>>     /var/lib/one/remotes/**datastore/fs/cp
>>     PERTX0RSSVZFUl9BQ1RJT05fREFUQT**48SU1BR0U+PElEPjQ8L0lEPjxVSUQ+**
>> MDwvVUlEPjxHSUQ+**MDwvR0lEPjxVTkFNRT5vbmVhZG1pbj**wvVU5BTUU+**
>> PEdOQU1FPm9uZWFkbWluPC9HTkFNRT**48TkFNRT5YdWJ1bnR1IDEyLjA0LjEg**
>> TFRTPC9OQU1FPjxQRVJNSVNTSU9OUz**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QRT48IVtD**
>> REFUQVtJTUFHRV9EU11dPjwvVFlQRT**48L1RFTVBMQVRFPjwvREFUQVNUT1JF**
>> PjwvRFNfRFJJVkVSX0FDVElPTl9EQV**RBPg==
>>     4
>>     Mon Oct 21 15:03:51 2013 [ImM][I]: cp: Copying local image
>>     /var/tmp/thin-body20131021-**2353-1sluvsm-0 to the image repository
>>     Mon Oct 21 15:03:51 2013 [ImM][E]: cp: Command
>>     "/var/lib/one/remotes/**datastore/fs/../downloader.sh --md5
>>     c339ea467ea35eec0d8af6f826c164**4a
>>     /var/tmp/thin-body20131021-**2353-1sluvsm-0
>>     /var/lib/one/datastores/1/**d39ed100c4786d223d0a347fe7f510**b1"
>>     failed: Hash
>>     does not match
>>     Mon Oct 21 15:03:51 2013 [ImM][E]: Error copying
>>     /var/tmp/thin-body20131021-**2353-1sluvsm-0 to
>>     /var/lib/one/datastores/1/**d39ed100c4786d223d0a347fe7f510**b1
>>     Mon Oct 21 15:03:51 2013 [ImM][I]: ExitCode: 255
>>     Mon Oct 21 15:03:51 2013 [ImM][E]: Error copying image in the
>>     datastore:
>>     Error copying /var/tmp/thin-body20131021-**2353-1sluvsm-0 to
>>     /var/lib/one/datastores/1/**d39ed100c4786d223d0a347fe7f510**b1
>>     Mon Oct 21 15:03:51 2013 [InM][I]: Monitoring datastore default (1)
>>     Mon Oct 21 15:03:51 2013 [ImM][I]: Datastore default (1) successfully
>>     monitored.
>>
>>     copied image and iso have the same checksum:
>>
>>     md5sum xubuntu-12.04.1-desktop-amd64.**iso
>>     16fea2603876247caf41f30066bc95**e4  xubuntu-12.04.1-desktop-amd64.**
>> iso
>>
>>     md5sum 79a98ed6be13387a15da3259ffbc1e**9f
>>     16fea2603876247caf41f30066bc95**e4  c339ea467ea35eec0d8af6f826c164**
>> 4a
>>     howto fix it.
>>
>>
>> Could you send us the output of 'oneimage show 4 -x'
>>
>> Cheers
>>
>>     thanks
>>     Wojciech
>>
>>
>>
>>
>>     ______________________________**_________________
>>     Users mailing list
>>     Users at lists.opennebula.org <mailto:Users at lists.**opennebula.org<Users at lists.opennebula.org>
>> >
>>
>>     http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
>>
>>
>>
>>
>> --
>> --
>> Daniel Molina
>> Project Engineer
>> OpenNebula - Flexible Enterprise Cloud Made Simple
>> www.OpenNebula.org <http://www.OpenNebula.org> | dmolina at opennebula.org<mailto:
>> dmolina at opennebula.org**> | @OpenNebula
>>
>
> --
> Wojciech Giel
> University of Cambridge
> JDRF/WT Diabetes and Inflammation Laboratory
> Cambridge Institute for Medical Research
> Wellcome Trust/MRC Building
> Addenbrooke's Hospital, Cambridge, CB2 0XY
> Tel: 44 (0) 1223 763228
>
>
>


-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131025/3a166100/attachment-0002.htm>


More information about the Users mailing list