See: https://sentry.ceph.com/share/issue/
21ed88d705854238bdafbf6711e795ee/
They're strings, not floats.
This surfaced as a result of https://github.com/ceph/teuthology/pull/1953
Signed-off-by: Zack Cerza <zack@redhat.com>
import yaml
import time
+from packaging.version import Version
+
from tasks import rbd
from tasks.util.workunit import get_refspec_after_overrides
from teuthology import contextutil
)
nfs_service_name = 'nfs'
- if remote.os.name in ['rhel', 'centos'] and float(remote.os.version) >= 8:
+ if (
+ remote.os.name in ['rhel', 'centos'] and
+ Version(remote.os.version.lower().removesuffix(".stream")) >= Version("8")
+ ):
nfs_service_name = 'nfs-server'
# make an nfs mount to use for logging and to