Skip to content

Plugin openvswitch-config-update: fix python2ism in python3 migration #5918

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

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

ydirson
Copy link
Contributor

@ydirson ydirson commented Aug 7, 2024

PR #5261 made the switch to python3 but missed a dict.itervalues() call, which causes a failure with python3.

Should also be backported for XS8.

PR xapi-project#5261 made the switch to python3 but missed a dict.itervalues() call,
which causes a failure with python3.

Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
Copy link
Collaborator

@bernhardkaindl bernhardkaindl left a comment

Choose a reason for hiding this comment

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

@edwintorok AFAICS, the openvswitch-config-update plugin will crash due to this bug on XS8.

The condition this may be hit would be when attempting to replace the SDN controller returned by session.xenapi.SDN_controller.get_all()[0] at at the beginning of the update function with a different SDN controller

I don't know how often that happens but as it apparently may have hit, I would assume and agree with @ydirson that this is material that should be released as an XS8 bugfix.

Further information:

In general:

  • I ran 2to3 -x print to get a somewhat reviewable list of potential similar missed conversions in the python3 directory, and found no other similar not applied conversion done by 2to3 using this method.

@bernhardkaindl bernhardkaindl changed the title openvswitch-config-update: fix python2ism in python3 Plugin openvswitch-config-update: fix python2ism in python3 migration Aug 8, 2024
@liulinC liulinC merged commit ccf3882 into xapi-project:master Aug 8, 2024
15 checks passed
@ydirson ydirson deleted the fix-openvswitch branch August 8, 2024 08:26
@ydirson
Copy link
Contributor Author

ydirson commented Aug 8, 2024

What's the plan for XS8? Does it target following the 24.x line, or is a specific backport needed?

@psafont
Copy link
Member

psafont commented Aug 23, 2024

All commits currently end up in XS8. At some point, an LCM (LTSR) branch will be created for it, which is when it will need backports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants