Skip to content

Conversation

dpickle2
Copy link

@dpickle2 dpickle2 commented Jul 6, 2017

**Includes updates to logic for ordering volumes, replicas,
and snapshot space. The storage_as_a_service package is used
as a default for new volume orders, but customers can specify
older packages for use. The package associated with the
existing primary volume is used in replica and snapshot orders.

**Also includes a refactoring of a number of the unit tests
for File and Block manager functions.

Issue #832 should be addressed by this pull request.

**Includes updates to logic for ordering volumes, replicas,
and snapshot space. The storage_as_a_service package is used
as a default for new volume orders, but customers can specify
older packages for use. The package associated with the
existing primary volume is used in replica and snapshot orders.

**Also includes a refactoring of a number of the unit tests
for File and Block manager functions.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 84.672% when pulling 195bb3a on dpickle2:feature/file-block-ordering-updates into 172964c on softlayer:master.

@@ -1,4 +1,4 @@
DUPLICATABLE_VOLUME = {
SAAS_TEST_VOLUME = {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be STAAS?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, SAAS was meant to represent "Storage As A Service". This test volume object is intended for use in tests relating to the Storage As A Service package. If it would help clear up possible misunderstanding, I am happy to add a comment to the source to indicate that SAAS corresponds to the Storage As A Service offering/package.

Copy link
Member

@allmightyspiff allmightyspiff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks pretty good.

:param snapshot_size: The size of optional snapshot space,
if snapshot space should also be ordered (None if not ordered)
if snapshot space should also be ordered (None if not ordered)
:param service_offering: Requested offering package to use in the order
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we enumerate the possible options for service_offering here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will update this. Thanks!

'the order [optional, default is \'storage_as_a_service\'',
type=click.Choice([
'storage_as_a_service',
'enterprise',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be endurance instead of enterprise?

Copy link
Author

@dpickle2 dpickle2 Jul 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I chose "enterprise" to correspond to the name of the SoftLayer_Container_Product_Order_Network_Storage_Enterprise order container (http://developer.softlayer.com/reference/datatypes/SoftLayer_Container_Product_Order_Network_Storage_Enterprise). Calling it "endurance" instead of "enterprise" might be more clear within the SLCLI, though. Should I go ahead and update this as well @allmightyspiff ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, since that corresponds with how the datatype is named "enterprise" is fine.

storage_type = storage_type.lower()

if service_offering is None:
service_offering = 'storage_as_a_service'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you able to use default='storage_as_a_service' on click.option here instead?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be cleaner. I will change this to use a default value.

'the size (in GB) of snapshot space to order')
@click.option('--service-offering',
help='The service offering package to use for placing '
'the order [optional, default is \'storage_as_a_service\'',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bracket isn't closed in this help text, as well as the others below.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I missed that. Thank you for pointing that out!

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 84.664% when pulling e3b3d24 on dpickle2:feature/file-block-ordering-updates into 172964c on softlayer:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 84.684% when pulling 76be081 on dpickle2:feature/file-block-ordering-updates into 172964c on softlayer:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 84.711% when pulling 15abd82 on dpickle2:feature/file-block-ordering-updates into 172964c on softlayer:master.

@allmightyspiff allmightyspiff merged commit fe1d00d into softlayer:master Aug 9, 2017
@dpickle2 dpickle2 deleted the feature/file-block-ordering-updates branch August 9, 2017 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants