Likitha Shetty created CLOUDSTACK-3955:
------------------------------------------

             Summary: During RegisterTemplate/UploadVolume/TemplateSync get the 
template size from the URL in SSVM instead of management server
                 Key: CLOUDSTACK-3955
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3955
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Management Server
    Affects Versions: 4.2.0
            Reporter: Likitha Shetty
             Fix For: Future


Steps to reproduce
---------------------------
1. Disable internet connection for the management server
1. Set the account limit to say x
2. Say the current secondary storage resource for the account is y
3. Register a template or Upload a volume to the storage that has size greater 
than x-y 

Expected behavior
--------------------------
RegisterTemplate/UploadVolume should fail with ResourceAllocationException 
because the account limit has been exceeded.

Observed behavior
-----------------------
The current template registration or volume upload will be successful and only 
the next template creation or upload volume will fail with 
ResourceAllocationException

Solution
-----------
Before the template download retrieve the template size from the URL in SSVM. 
Use this size to check if the resource limit will be breached upon download.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to