[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13868518#comment-13868518
 ] 

Marcus Sorensen commented on CLOUDSTACK-5843:
---------------------------------------------

Tracked this down.  The template call makes a URL request from the mgmt server 
to get the remote size of the template, in order to check resource limits. This 
can time out if the mgmt server is not public (or cannot access the template 
location, which it shouldn't ever need to). I'll add a timeout to the 
HttpURLConnection as a temporary workaround.

> registering templates/isos should be either async or changed to non-blocking
> ----------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-5843
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5843
>             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, 4.3.0, 4.4.0
>            Reporter: Marcus Sorensen
>             Fix For: 4.4.0
>
>
> The call to register templates and isos does more than most sync calls do, it 
> seems to talk to the ssvm and have it run commands that can potentially time 
> out. I ran into this in a test system when we tried to register a template 
> with a non-routable URL. The cloudstack API call just hung. I realize that 
> there was a problem (ssvm could not reach the template host), but no sync 
> call should do anything like this that would block.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to