Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CP-6337: Remove explicit mapping patch in multipath and move it into sm #54

Closed
wants to merge 4 commits into from

Conversation

germanop
Copy link
Contributor

@germanop germanop commented Nov 8, 2013

There are surely 2 things to be addressed:

  • Bad name of wwid manipulator function
  • add_wwid is used in 2 cases with and without its potential exceptions being trapped

@ghost ghost assigned krpetley Nov 8, 2013
@@ -51,8 +51,8 @@ def resize_map(m):
mpexec("resize map %s" % m)

# Don't reconfigure!!
Copy link

Choose a reason for hiding this comment

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

Did you mean to leave this comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No :(

I left it by mistake

@germanop
Copy link
Contributor Author

germanop commented Nov 8, 2013

  • License
    Addressed the following
  • function name changed from "add_wwid" to "edit_wwid"
  • Old "reconfigure" comment removed
  • add_mode Boolean
  • Exceptions from edit_wwid (if any) are logged now
  • is_blacklisted returns Boolean
  • Boolean arguments for edit_wwid

@krpetley
Copy link

Looks good - ship it!

This script is a basic multipath.conf to add and remove
WWIDs in the blacklist_exceptions section

Signed-off-by: Germano Percossi <germano.percossi@citrix.com>
Signed-off-by: Germano Percossi <germano.percossi@citrix.com>
This patch ensure the new mechanism for explicit multipath
mapping is active.
The corresponding patch in dm-multipath can be removed.

Signed-off-by: Germano Percossi <germano.percossi@citrix.com>
Once started the multipath daemon does not load the needed
kernel modules.
In the past it was not a problem because they are loaded as soon as
a device is added using the CLI.
Now we need some checks before doing this and they fail if this modules
are not loaded.

Loading modules while starting multipath is the standard behaviour in
more recent versions of multipath.
We just ensure this is always true.

Signed-off-by: Germano Percossi <germano.percossi@citrix.com>
# but we do not care about it.
if len(stdout) != 0:
rc = 0
return rc != False
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I replaced "rc and True or False" with this. Is it more readable?

Choose a reason for hiding this comment

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

Looks better - keep it.

@germanop germanop closed this in 670946c Nov 11, 2013
@germanop germanop deleted the CP-6337 branch December 3, 2013 17:16
andrey-podko referenced this pull request in andrey-podko/sm Aug 16, 2022
GitHub: closes xcp-ng#54 on xapi-project/sm
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.

2 participants