Skip to content

Conversation

@siddharthv
Copy link
Contributor

Signed-off-by: Siddharth Vinothkumar [email protected]

@siddharthv
Copy link
Contributor Author

I am not sure if we could reuse Db_gc.detect_rolling_upgrade to fix the problem.

@johnelse
Copy link
Contributor

Hi Siddharth, I think we should extract the code that determines whether all host versions are the same into a new function which just returns true or false.

This function could then be used both from Xapi_pool.enable_ha (to determine whether the user can enable HA) and from Db_gc.detect_rolling_upgrade (to determine whether to add or remove the Pool.other_config flag).

use it before enabling HA.
Signed-off-by: Siddharth Vinothkumar <[email protected]>
Copy link
Contributor

Choose a reason for hiding this comment

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

Could I suggest a tiny change? Since the platform_versions variable is now unused except in a single debug line, how about moving this line to just before that debug call?

@ghost ghost assigned thomassa May 30, 2013
@jonludlam
Copy link
Contributor

Assigning to @thomassa for review

thomassa added a commit that referenced this pull request May 30, 2013
CA-102761: To check if RPU is actually in progress before enabling HA
@thomassa thomassa merged commit f450d25 into xapi-project:master May 30, 2013
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