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

CA-115035: mpath-boot and multipathed host other-config keys missing #57

Closed
wants to merge 1 commit into from

Conversation

germanop
Copy link
Contributor

@germanop germanop commented Dec 5, 2013

Before upgrading to the new kernel, the output of
multipath -k"show maps"
and
echo "show maps" |multipathd -k
were different.

Now they are the same but previous code in mpathcount.py was
relying exclusively on the wrong output in the previous version.

Now it is fixed in both cases

Signed-off-by: Germano Percossi germano.percossi@citrix.com

Before upgrading to the new kernel, the output of
multipath -k"show maps"
and
echo "show maps" |multipathd -k
were different.

Now they are the same but previous code in mpathcount.py was
relying exclusively on the wrong output in the previous version.

Now it is fixed in both cases

Signed-off-by: Germano Percossi <germano.percossi@citrix.com>
@ghost ghost assigned chandrikas Dec 5, 2013
@@ -223,6 +223,9 @@ def _add(key, val):
session.xenapi.host.add_to_other_config(localhost,key,val)
config = session.xenapi.host.get_other_config(localhost)
maps = mpath_cli.list_maps()
# Ensure output headers are not in the list
if 'name' in maps:
maps.remove('name')
Copy link
Contributor

Choose a reason for hiding this comment

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

Not very comfortable hard-coding the "name" string for parsing. Is there another way to get around this problem?

Copy link
Contributor

Choose a reason for hiding this comment

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

Since it doesn't really break anything else at the moment, let's go ahead with this. Could we please put a note in the code to revisit the problem?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you think that putting "memo" in the code will help?

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's check this in as is. We can create a follow-up ticket to find a better way (if any)

@germanop germanop closed this in ede80be Dec 6, 2013
@germanop germanop deleted the CA-115035 branch December 6, 2013 13:24
andrey-podko referenced this pull request in andrey-podko/sm Aug 16, 2022
Before upgrading to the new kernel, the output of
multipath -k"show maps"
and
echo "show maps" |multipathd -k
were different.

Now they are the same but previous code in mpathcount.py was
relying exclusively on the wrong output in the previous version.

Now it is fixed in both cases

Reviewed-by: Chandrika Srinivasan <chandrika.srinivasan@citrix.com>

GitHub: closes xcp-ng#57 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