Skip to content

Add File & Block replication commands and output#752

Merged
sudorandom merged 2 commits intosoftlayer:masterfrom
kyubifire:replication
Aug 18, 2016
Merged

Add File & Block replication commands and output#752
sudorandom merged 2 commits intosoftlayer:masterfrom
kyubifire:replication

Conversation

@dpickle2
Copy link
Copy Markdown

This pull request includes several new commands and updates
to CLI output for supporting File and Block volume replication.

Code developed collaboratively by:
ccorales95 Cristina Corales ccorales95@gmail.com
kyubifire Nilo Lisboa nilo_bl@hotmail.com
VuKevin Kevin Vu VuKevin@icloud.com
dpickle2 David Pickle dpickle29@gmail.com

  • Add support for ordering replicant volumes [Block & File]
  • Add support for replicant failover & failback [Block & File]
  • Add additional output for commands:
    Add replicant info to volume-detail output [Block & File]
    Show replicant volumes in volume-list output [Block & File]

Code developed collaboratively by:
    ccorales95  Cristina Corales <ccorales95@gmail.com>
    kyubifire   Nilo Lisboa <nilo_bl@hotmail.com>
    VuKevin     Kevin Vu <VuKevin@icloud.com>
    dpickle2    David Pickle <dpickle29@gmail.com>

* Add support for ordering replicant volumes [Block & File]

* Add support for replicant failover & failback [Block & File]

* Add additional output for commands:
    Add replicant info to volume-detail output [Block & File]
    Show replicant volumes in volume-list output [Block & File]
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.5%) to 81.507% when pulling 8a62c2c on kyubifire:replication into b07a190 on softlayer:master.

replicant_id
)

if success:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If success is False, shouldn't we return some kind of error message to the user? I'm not sure what conditions False would be returned over returning an exception.

* Add checks for failure in failover and failback commands;
  updated unit tests accordingly

* Update of CONTEXT_SETTINGS assignments to use dict syntax

* Utilize utils.lookup() function for os_type lookup;
  updated use of optional arguments for order_replicant_volume()
  functions and adjusted unit tests accordingly

* snapshot-create crashed when a volume was failed over to
  its replicant (API returned an empty array); updated logic
  for command line output to prevent crashing and adjusted
  unit tests accordingly
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.5%) to 81.522% when pulling d15c8d4 on kyubifire:replication into b07a190 on softlayer:master.

@dpickle2
Copy link
Copy Markdown
Author

Thank you for your feedback! I have addressed the items you mentioned above. Please let me know if I have missed anything else.

[The failover/failback commands resulted in exceptions raised by the SL API for us, but I have added else clauses to each of these commands to address the possibility of False being returned by the API.]

[Thank you for pointing out the use of default values for arguments. I have updated the order_replicant_volume() functions in both File and Block managers to make 'tier' and 'os_type' optional with default values.]

@sudorandom sudorandom merged commit 5420784 into softlayer:master Aug 18, 2016
@dpickle2 dpickle2 deleted the replication branch August 18, 2016 18:14
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.

4 participants