Sending to LocalHostEndpoint, Is there any resolution for this?

2013-10-31 Thread Darren Shepherd
Edison, Min, When creating a Zone and there is no SSVM so it sends to LocalHostEndPoint. I always get the below error. Is there some fix for this? ERROR [o.a.c.s.r.NfsSecondaryStorageResource] (pool-4-thread-1:ctx-fb095de0) Unable to create local folder for:

Re: Sending to LocalHostEndpoint, Is there any resolution for this?

2013-10-31 Thread Wei ZHOU
Please check if you can create /var/cloudstack/mnt/secStorage/64d6e26f-e656-3ba3-908f-ce6610ede011, and mount nfs point.

Re: Sending to LocalHostEndpoint, Is there any resolution for this?

2013-10-31 Thread Darren Shepherd
It's happening when I first create the zone. I'll debug it further to tell you exactly what its happening. But I don't understand how the following code in DefaultEndpointSelector could be correct. If I have a zone, and I delete/stop/crash the SSVM, and at the same time register a new template,

Re: Sending to LocalHostEndpoint, Is there any resolution for this?

2013-10-31 Thread Min Chen
Yes, that is true, it is a bug in that case. The logic of choosing endpoint to send Command will not work properly for destroying/Stopping VM case. Our assumption is that registering template is done when ssvm is up and running. Otherwise, it will send to LocalHost to execute command. In your

Re: Sending to LocalHostEndpoint, Is there any resolution for this?

2013-10-31 Thread Darren Shepherd
The behaviour should be to delay until there is a SSVM available. I don't know if that is even possible in CloudStack, I don't want you to sleep(). Is there any way to delay? Something else in the system should be ensuring that a SSVM is running and available (what I don't know...). If you

Re: Sending to LocalHostEndpoint, Is there any resolution for this?

2013-10-31 Thread Min Chen
Delaying them until ssvm is up may not that easy to handle in current CloudStack. We may be able to send an error in this case by distinguishing S3 register template case from other scenarios. Would you mind filing a JIRA bug on this? Your issue seems different from the issue filed by Daan

Re: Sending to LocalHostEndpoint, Is there any resolution for this?

2013-10-31 Thread Darren Shepherd
Does this issue exist in 4.2/4.2.1? I'm going to put the bug as blocker, if you disagree we can lower it. I really think it is quite a bad scenario to mount NFS to the mgmt server. Darren On Thu, Oct 31, 2013 at 10:48 AM, Min Chen min.c...@citrix.com wrote: Delaying them until ssvm is up

Re: Sending to LocalHostEndpoint, Is there any resolution for this?

2013-10-31 Thread Min Chen
Yes, this issue exist in 4.2/4.2.1 since DefaultEndpointSelector was introduced in 4.2. Thanks -min On 10/31/13 10:56 AM, Darren Shepherd darren.s.sheph...@gmail.com wrote: Does this issue exist in 4.2/4.2.1? I'm going to put the bug as blocker, if you disagree we can lower it. I really think