Hi, Team,
Background/Purpose: *I want to make storage gone automatically when I
delete its instances in Scalr.*
I added extra storages shown in the attachment. and set its *"Delete on
termination" to "True"* instead of the default "False" using Boto. The flag
changed when I refreshed it. *But those extra storages are still there
after the termination of my instance by Scalr.*
*Why?*
And what's interesting is that *when I was terminating my instance manually
on AWS console, those storages were gone. Everything was right.*
*Anything missing on my side? *
*Looking forward to you reply ASAP. Thanks!*
FYI, What I've done in python2.
>>> import boto.ec2
>>> conn = boto.ec2.connect_to_region(
... "ap-southeast-1",
... aws_access_key_id="***",
... aws_secret_access_key="***"
... )
>>> all_insts = conn.get_only_instances()
>>> inst = all_insts[6]
>>> {dev: bd.delete_on_termination for dev, bd in
inst.block_device_mapping.items()}
{u'/dev/sdg': False, u'/dev/sda1': True, u'/dev/sdh': False, u'/dev/sdi':
False}
>>> inst.modify_attribute('blockDeviceMapping', ['/dev/sdg=1'])
True
>>> inst.modify_attribute('blockDeviceMapping', ['/dev/sdh=1'])
True
>>> inst.modify_attribute('blockDeviceMapping', ['/dev/sdi=1'])
True
>>> {dev: bd.delete_on_termination for dev, bd in
inst.block_device_mapping.items()}
{u'/dev/sdg': False, u'/dev/sda1': True, u'/dev/sdh': False, u'/dev/sdi':
False}
Best Wishes,
Brant
On Thursday, July 28, 2016 at 8:29:02 AM UTC-7, Michael Lochead wrote:
>
> Actually, this was released with 6.0, so this feature is not yet available
> within the open source distribution.
>
> Best,
> Michael
>
> On Wed, Jul 27, 2016 at 9:43 PM, 'Hass-SEA' via scalr-discuss <
> [email protected] <javascript:>> wrote:
>
>> Hi Brant, I think you need to upgrade to the latest Open Source
>> version: 5.11.22 to get the feature
>>
>> https://github.com/Scalr/scalr
>>
>>
>> On Wednesday, July 27, 2016 at 2:57:35 PM UTC-7, Brant Fortest wrote:
>>>
>>> Our version now is 5.10.21 (Community Edition).
>>>
>>>
>>> On Wednesday, July 27, 2016 at 2:47:38 PM UTC-7, Brant Fortest wrote:
>>>>
>>>> Hi, Marc,
>>>> Thanks for your answer.
>>>> But I cannot find the Garbage Collector in the main menu as you
>>>> mentioned.
>>>> I've found this doc. "
>>>> https://scalr-wiki.atlassian.net/wiki/display/docs/Garbage+Collector",
>>>> checked, still no luck.
>>>> So what's the minimum version for this function?
>>>>
>>>> Best Wishes,
>>>> Brant
>>>>
>>>> On Wednesday, July 27, 2016 at 9:21:08 AM UTC-7, Marc O'Brien wrote:
>>>>>
>>>>> Hi Brant,
>>>>>
>>>>> There is not a way to change the size of ephemeral storage. However,
>>>>> volume size for persistence storage can be changed from the Farm
>>>>> Designer>Farm Role>Storage tab. There is presently no option to
>>>>> automatically delete persistent storage after the instance is terminated.
>>>>>
>>>>> However, any orphaned storage volumes may easily be cleaned up via the
>>>>> Garbage Collector function in the main menu.
>>>>>
>>>>> Many thanks,
>>>>> Wm. Marc O'Brien
>>>>> Scalr Technical Support
>>>>>
>>>>> On Tuesday, July 26, 2016 at 6:28:29 PM UTC-6, Brant Fortest wrote:
>>>>>>
>>>>>> Hi, Team,
>>>>>> How to delete a persistent storage automatically after the instance
>>>>>> is terminated?
>>>>>> Or How to change the size of ephemeral storage?
>>>>>>
>>>>>> Looking forward to your reply ASAP. Thanks!
>>>>>>
>>>>>> Best Wishes,
>>>>>> Brant
>>>>>>
>>>>> --
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
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.