Skip to content

Conversation

mcintyre94
Copy link
Contributor

  • CP-24688: Refactor with_pool_operation to be easily testable
  • Storage_impl: drop dead code
  • CA-271525: Log everything from the unit-test suite
  • CA-272147: Fix SR.set_name_label and _description for SMAPIv3
  • CA-277346: log backtrace when parsing HA liveset

The first commit needed a small fix due to the change in Datamodel, the others applied cleanly.

@coveralls
Copy link

coveralls commented Feb 23, 2018

Coverage Status

Coverage decreased (-0.003%) to 18.115% when pulling 26d3d49 on mcintyre94:CP-26970-master-misc into 0ea9cb4 on xapi-project:master.

@lindig
Copy link
Contributor

lindig commented Feb 27, 2018

This needs a rebase

Frezzle and others added 5 commits February 27, 2018 15:00
The `with_pool_operation` function, which handles the concurrency
of the pool's operations, has been moved to Xapi_pool_helpers to
make it easily testable via unit tests.

Signed-off-by: Frederico Mazzone <frederico.mazzone@citrix.com>

Note: The implementation of `with_pool_operation` in Xapi_pool_helpers changes slightly to reflect the new Datamodel layout.

Signed-off-by: Callum McIntyre <callum.mcintyre@citrix.com>
This module is not used from anywhere, and has no startup code, so drop the dead code.  It is confusing having so many rpc functions, especially if we also have ones that are never called.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
set_name_label and _description are supposed to work as follows for SMAPIv3:
1) XAPI calls SR.set_name_label on the SR plugin
2) XAPI calls SR.stat on the SR plugin
3) XAPI updates it's DB with the name/description received back in SR.stat
   (This is so the SR plugin has a chance to trim the name,
    to be restricted to a certain length or so. And so that the XAPI DB
    and the SR plugin are in sync.)

This commit fixes step 3.

Signed-off-by: Robert Breker <robert.breker@citrix.com>
Useful for debugging the new corosync based HA scripts.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
@mseri mseri merged commit deca137 into xapi-project:master Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants