Marco created CLOUDSTACK-9881:
---------------------------------

             Summary: issue downloading a copy template to different zone
                 Key: CLOUDSTACK-9881
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9881
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Infra
    Affects Versions: 4.6.2
            Reporter: Marco
            Priority: Minor


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 temporary 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.

Regards,
Marco



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to