You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Marco Giovannini <us...@gmail.com> on 2017/04/12 17:15:49 UTC

issue downloading a copy template to different zone

Hi guys,


I'm using the cloustack 4.6.2 and I'm hitting the following issue.

I created a new  secondary storage:

add imagestore zoneid=xxxx-xxxx-xxx-xxx name=xxxx_Secondary_SATA1
provider=NFS url=nfs://ixxxxx/vol/xxxxx_Secondary_SATA1/ESX


When I create a new template which end up on this SS and I try to download
I get an error /userdata/xxxxxxxxxxxxx   access denied.


After investigating I found out the issue.


During the SS creation the field parent in the image_store table is not
initialized leaving the default value to NULL.


This value is used by the SSVM  in the path of the  link to download the
template.


Broken link:

lrwxrwxrwx 1 root root  84 Apr  5 09:06
e55f5761-2dab-4095-b426-fe72c296150e.ova ->
/mnt/SecStorage/null/template/tmpl/875/1603/8ce602e5-e920-335a-bb24-b9595722a49f.ova


Working link:

lrwxrwxrwx 1 root root 116 Jan 23 11:01
e64820a2-dc45-48f6-b17e-bdeb6d47e650.ova ->
/mnt/SecStorage/5597b498-9507-3df2-ad46-ca9da35c7f7d/template/tmpl/173/1516/7f07df49-a26f-3833-85da-68c89c97daa



This can be fixed by updating the table manually and fixing the broken link
created so far but it will reappear again when as new SS will be created.


Does anyone have this issue or know if it is fixed an next releases ?


I didn't find anyone reporting it so far.



Regards,
Marco

Re: issue downloading a copy template to different zone

Posted by Marco Giovannini <us...@gmail.com>.
Hi

I created the issue https://issues.apache.org/jira/browse/CLOUDSTACK-9881
and attaches a doc with additional findings.

Regards,
Marco

On Thu, Apr 13, 2017 at 11:39 PM, ilya <il...@gmail.com> wrote:

> Marco,
>
> I've seen this b4 but never really bothered as to why it does not work..
>
> Thanks for figuring out the solution
>
> Would you please file a JIRA issue so we can fix this in the future.
>
> https://issues.apache.org/jira/browse/CLOUDSTACK
>
> Regards
> ilya
>
> On 4/12/17 10:15 AM, Marco Giovannini wrote:
> > Hi guys,
> >
> >
> > I'm using the cloustack 4.6.2 and I'm hitting the following issue.
> >
> > I created a new  secondary storage:
> >
> > add imagestore zoneid=xxxx-xxxx-xxx-xxx name=xxxx_Secondary_SATA1
> > provider=NFS url=nfs://ixxxxx/vol/xxxxx_Secondary_SATA1/ESX
> >
> >
> > When I create a new template which end up on this SS and I try to
> download
> > I get an error /userdata/xxxxxxxxxxxxx   access denied.
> >
> >
> > After investigating I found out the issue.
> >
> >
> > During the SS creation the field parent in the image_store table is not
> > initialized leaving the default value to NULL.
> >
> >
> > This value is used by the SSVM  in the path of the  link to download the
> > template.
> >
> >
> > Broken link:
> >
> > lrwxrwxrwx 1 root root  84 Apr  5 09:06
> > e55f5761-2dab-4095-b426-fe72c296150e.ova ->
> > /mnt/SecStorage/null/template/tmpl/875/1603/8ce602e5-e920-
> 335a-bb24-b9595722a49f.ova
> >
> >
> > Working link:
> >
> > lrwxrwxrwx 1 root root 116 Jan 23 11:01
> > e64820a2-dc45-48f6-b17e-bdeb6d47e650.ova ->
> > /mnt/SecStorage/5597b498-9507-3df2-ad46-ca9da35c7f7d/
> template/tmpl/173/1516/7f07df49-a26f-3833-85da-68c89c97daa
> >
> >
> >
> > This can be fixed by updating the table manually and fixing the broken
> link
> > created so far but it will reappear again when as new SS will be created.
> >
> >
> > Does anyone have this issue or know if it is fixed an next releases ?
> >
> >
> > I didn't find anyone reporting it so far.
> >
> >
> >
> > Regards,
> > Marco
> >
>

Re: issue downloading a copy template to different zone

Posted by ilya <il...@gmail.com>.
Marco,

I've seen this b4 but never really bothered as to why it does not work..

Thanks for figuring out the solution

Would you please file a JIRA issue so we can fix this in the future.

https://issues.apache.org/jira/browse/CLOUDSTACK

Regards
ilya

On 4/12/17 10:15 AM, Marco Giovannini wrote:
> Hi guys,
> 
> 
> I'm using the cloustack 4.6.2 and I'm hitting the following issue.
> 
> I created a new  secondary storage:
> 
> add imagestore zoneid=xxxx-xxxx-xxx-xxx name=xxxx_Secondary_SATA1
> provider=NFS url=nfs://ixxxxx/vol/xxxxx_Secondary_SATA1/ESX
> 
> 
> When I create a new template which end up on this SS and I try to download
> I get an error /userdata/xxxxxxxxxxxxx   access denied.
> 
> 
> After investigating I found out the issue.
> 
> 
> During the SS creation the field parent in the image_store table is not
> initialized leaving the default value to NULL.
> 
> 
> This value is used by the SSVM  in the path of the  link to download the
> template.
> 
> 
> Broken link:
> 
> lrwxrwxrwx 1 root root  84 Apr  5 09:06
> e55f5761-2dab-4095-b426-fe72c296150e.ova ->
> /mnt/SecStorage/null/template/tmpl/875/1603/8ce602e5-e920-335a-bb24-b9595722a49f.ova
> 
> 
> Working link:
> 
> lrwxrwxrwx 1 root root 116 Jan 23 11:01
> e64820a2-dc45-48f6-b17e-bdeb6d47e650.ova ->
> /mnt/SecStorage/5597b498-9507-3df2-ad46-ca9da35c7f7d/template/tmpl/173/1516/7f07df49-a26f-3833-85da-68c89c97daa
> 
> 
> 
> This can be fixed by updating the table manually and fixing the broken link
> created so far but it will reappear again when as new SS will be created.
> 
> 
> Does anyone have this issue or know if it is fixed an next releases ?
> 
> 
> I didn't find anyone reporting it so far.
> 
> 
> 
> Regards,
> Marco
>