Skip to content

qa/tasks/qemu: Fix OS version comparison - #58055

Merged
idryomov merged 1 commit into
ceph:mainfrom
zmc:qemu-task-version
Jun 20, 2024
Merged

idryomov merged 1 commit into
ceph:mainfrom
zmc:qemu-task-version

Conversation

@zmc

@zmc zmc commented Jun 14, 2024

Copy link
Copy Markdown
Member

See: https://sentry.ceph.com/share/issue/21ed88d705854238bdafbf6711e795ee/
They're not floats.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@zmc
zmc requested a review from a team as a code owner June 14, 2024 19:39
@idryomov

Copy link
Copy Markdown
Contributor

Is this caused by ceph/teuthology#1953? Asking because nothing in the commit message indicates that it's something recent and yet it worked just a couple of days ago:

https://qa-proxy.ceph.com/teuthology/dis-2024-06-10_19:09:24-rbd-wip-dis-testing-distro-default-smithi/7748383/teuthology.log

@idryomov idryomov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

They're not floats.

They were until

-        version = cls._get_value(str_, 'VERSION_ID')
+        elif name == 'centos':
+            if parse_version(version) >= Version("8.0"):
+                version = f"{version}.stream"

in ceph/teuthology@e1d3a97, right? Could you please mention that in the commit message, file a tracker ticket add include Fixes tag with the link in the commit message? The tracker ticket would be needed for backporting all the way to quincy.

@idryomov

idryomov commented Jun 15, 2024 •

Copy link
Copy Markdown
Contributor

Looks like this is not quite there yet:

2024-06-15T06:09:58.415 ERROR:teuthology.contextutil:Saw exception from nested tasks
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_teuthology_052f8db984c35627d88561260ced2e5d9140e0bf/teuthology/contextutil.py", line 30, in nested
    vars.append(enter())
  File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "/home/teuthworker/src/github.com_idryomov_ceph_4617fdc2a8724543afd07dcba492aa9768a127c4/qa/tasks/qemu.py", line 499, in run_qemu
    Version(remote.os.version.lower().removesuffix(".stream")) >= Version(8)
  File "/home/teuthworker/src/git.ceph.com_teuthology_052f8db984c35627d88561260ced2e5d9140e0bf/virtualenv/lib/python3.10/site-packages/packaging/version.py", line 198, in __init__
    match = self._regex.search(version)
TypeError: expected string or bytes-like object

https://qa-proxy.ceph.com/teuthology/dis-2024-06-15_05:49:47-rbd-wip-dis-testing-squid-distro-default-smithi/7757497/teuthology.log

@idryomov

Copy link
Copy Markdown
Contributor

@zmc Ping -- this is blocking the RBD suite in all releases...

@zmc
zmc force-pushed the qemu-task-version branch from 1f3b92b to 260a45a Compare June 19, 2024 02:18
@zmc

zmc commented Jun 19, 2024

Copy link
Copy Markdown
Member Author

@idryomov Apologies for the delayed response! I can't reply to your comments for some reason, but:

  • Yes, the changes are necessary because of that PR - I updated the commit message to reflect that
  • Versions weren't and aren't floats - they're strings - e.g. "13.2.1" != "13.2.10".
  • In my haste I did indeed forget quotes around the 8 in the original commit. 🫣

@zmc
zmc requested a review from idryomov June 19, 2024 02:23
@idryomov

Copy link
Copy Markdown
Contributor

jenkins test make check

@idryomov

Copy link
Copy Markdown
Contributor

make check keeps failing on flap.sh -- obviously unrelated.

@idryomov

Copy link
Copy Markdown
Contributor

jenkins test make check

1 similar comment
@idryomov

Copy link
Copy Markdown
Contributor

jenkins test make check

@idryomov

idryomov commented Jun 20, 2024 •

Copy link
Copy Markdown
Contributor

[...] file a tracker ticket add include Fixes tag with the link in the commit message? The tracker ticket would be needed for backporting all the way to quincy.

This wasn't done but I'm merging as is to avoid blocking on make check again. Backports will be done manually.

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.

2 participants