Hi Alex,

I have done a bit of digging in to this and have encountered the same 
issues that you describe.  It would be preferrable to set this 
"dest=volume" as a default on the Openstack side but I have been unable to 
find any reasonable way to achieve this.  As this capability does not 
presently exist within Open Source Scalr, you may need to do some code 
modification to adjust these nova calls as you had suggested.  The 
following appears to be the best place for you to start:

https://github.com/Scalr/scalr/blob/master/app/src/Scalr/Service/OpenStack/Services/ServersService.php#L128

https://github.com/Scalr/scalr/blob/3f2b1f07768c773be890c88f3a2a2d197c7eabc9/app/src/Scalr/Service/OpenStack/Services/Servers/V2/ServersApi.php#L173

The $options variable appears to have the actuall request JSON, so you may 
be able to add something to achieve your desired result here.  Perhaps 
something like " $options['server']['destination_type '] = 'volume'; " 
before this line of code 
<https://github.com/Scalr/scalr/blob/3f2b1f07768c773be890c88f3a2a2d197c7eabc9/app/src/Scalr/Service/OpenStack/Services/Servers/V2/ServersApi.php#L210>.
  
Please be advised any such modification is untested on our side and may 
have unintended consequences elsewhere in Scalr.  Any modification is done 
at your own risk with no expectation of supportability.  Keep in mind that 
any such modification would be overwritten by any future updates to Scalr 
and would need to be re-applied.  Likewise, please be aware that our 
capability to assist with this type of issue or Feature Request is greatly 
enhanced for Enterprise Scalr customers.  Please reach out to us if you 
would like more information on Enterprise Scalr and what such an engagement 
would entail.

Cheers,
Wm. Marc O'Brien
Scalr Technical Support

On Monday, August 22, 2016 at 6:18:57 PM UTC-6, Alex Smith wrote:
>
> Hi,
>
> I've been trying out the 5.11 version connected to OpenStack and have run 
> into a small issue.
>
> We don't provision any storage locally on our compute hosts, instead 
> preferring to boot from volume all our instances. We normally do this 
> either by selecting the option in Horizon or providing the "dest=volume" 
> option in our calls to Nova.
>
> I've had a look around and I've been unable to find anywhere in Scalr that 
> we can define this as an option (there also seems to be a lack of making 
> this the default in OpenStack too). In the "Storage" section on the farms 
> it states this "Root device configuration is not available for this Farm 
> Role (the root device may not be a volume)" however in this case, with 
> dest=volume that is not true and I would have thought we should be able to 
> configure that.
>
> I have tried adding another volume in storage and optimistically telling 
> it to use / for the mount but that failed (as you'd expect).
>
> I'm not adverse to adjusting the call it makes to Nova as this is the 
> default for us, if that's an option.
>
> Thanks,
>
> Alex
>

-- 
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to