Bug #58491
lsb_release: command not found (centos stream 9)
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):
Description
teuthology relies on the lsb_release command, which no longer exists in centos 9. https://bugzilla.redhat.com/show_bug.cgi?id=2012924
2022-12-14T21:32:37.493 DEBUG:teuthology.orchestra.run.smithi090:> cat /etc/os-release 2022-12-14T21:32:37.546 INFO:teuthology.orchestra.run.smithi090.stdout:NAME="CentOS Stream" 2022-12-14T21:32:37.547 INFO:teuthology.orchestra.run.smithi090.stdout:VERSION="9" 2022-12-14T21:32:37.547 INFO:teuthology.orchestra.run.smithi090.stdout:ID="centos" 2022-12-14T21:32:37.547 INFO:teuthology.orchestra.run.smithi090.stdout:ID_LIKE="rhel fedora" 2022-12-14T21:32:37.547 INFO:teuthology.orchestra.run.smithi090.stdout:VERSION_ID="9" 2022-12-14T21:32:37.547 INFO:teuthology.orchestra.run.smithi090.stdout:PLATFORM_ID="platform:el9" 2022-12-14T21:32:37.547 INFO:teuthology.orchestra.run.smithi090.stdout:PRETTY_NAME="CentOS Stream 9" 2022-12-14T21:32:37.547 INFO:teuthology.orchestra.run.smithi090.stdout:ANSI_COLOR="0;31" 2022-12-14T21:32:37.548 INFO:teuthology.orchestra.run.smithi090.stdout:CPE_NAME="cpe:/o:centos:centos:9" 2022-12-14T21:32:37.548 INFO:teuthology.orchestra.run.smithi090.stdout:HOME_URL="https://centos.org/" 2022-12-14T21:32:37.548 INFO:teuthology.orchestra.run.smithi090.stdout:BUG_REPORT_URL="https://bugzilla.redhat.com/" 2022-12-14T21:32:37.548 INFO:teuthology.orchestra.run.smithi090.stdout:REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 9" ... 2022-12-14T21:44:14.268 INFO:teuthology.run_tasks:Running task install... 2022-12-14T21:44:14.276 DEBUG:teuthology.task.install:project ceph 2022-12-14T21:44:14.276 DEBUG:teuthology.task.install:INSTALL overrides: {'ceph': {'flavor': 'default', 'sha1': 'c8074fd8d6d64f6c296e0ce90dc529fc36fb331c'}} 2022-12-14T21:44:14.276 DEBUG:teuthology.task.install:config {'extra_system_packages': {'deb': ['s3cmd'], 'rpm': ['s3cmd']}, 'flavor': 'default', 'sha1': 'c8074fd8d6d64f6c296e0ce90dc529fc36fb331c'} 2022-12-14T21:44:14.276 INFO:teuthology.task.install:Using flavor: default 2022-12-14T21:44:14.283 DEBUG:teuthology.task.install:Package list is: {'deb': ['ceph', 'cephadm', 'ceph-mds', 'ceph-mgr', 'ceph-common', 'ceph-fuse', 'ceph-test', 'ceph-volume', 'radosgw', 'python3-rados', 'python3-rgw', 'python3-cephfs', 'python3-rbd', 'libcephfs2', 'libcephfs-dev', 'librados2', 'librbd1', 'rbd-fuse'], 'rpm': ['ceph-radosgw', 'ceph-test', 'ceph', 'ceph-base', 'cephadm', 'ceph-immutable-object-cache', 'ceph-mgr', 'ceph-mgr-dashboard', 'ceph-mgr-diskprediction-local', 'ceph-mgr-rook', 'ceph-mgr-cephadm', 'ceph-fuse', 'ceph-volume', 'librados-devel', 'libcephfs2', 'libcephfs-devel', 'librados2', 'librbd1', 'python3-rados', 'python3-rgw', 'python3-cephfs', 'python3-rbd', 'rbd-fuse', 'rbd-mirror', 'rbd-nbd']} 2022-12-14T21:44:14.283 INFO:teuthology.task.install:extra packages: [] 2022-12-14T21:44:14.283 DEBUG:teuthology.orchestra.run.smithi090:> sudo lsb_release -is 2022-12-14T21:44:14.310 INFO:teuthology.orchestra.run.smithi090.stderr:sudo: lsb_release: command not found 2022-12-14T21:44:14.310 DEBUG:teuthology.orchestra.run:got remote process result: 1 2022-12-14T21:44:14.311 ERROR:teuthology.contextutil:Saw exception from nested tasks Traceback (most recent call last): File "/home/teuthworker/src/git.ceph.com_teuthology_19d18db866afdc31fd6586f558fc29b95a87ccfb/teuthology/contextutil.py", line 31, in nested vars.append(enter()) File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__ return next(self.gen) File "/home/teuthworker/src/git.ceph.com_teuthology_19d18db866afdc31fd6586f558fc29b95a87ccfb/teuthology/task/install/__init__.py", line 218, in install install_packages(ctx, package_list, config) File "/home/teuthworker/src/git.ceph.com_teuthology_19d18db866afdc31fd6586f558fc29b95a87ccfb/teuthology/task/install/__init__.py", line 80, in install_packages system_type = teuthology.get_system_type(remote) File "/home/teuthworker/src/git.ceph.com_teuthology_19d18db866afdc31fd6586f558fc29b95a87ccfb/teuthology/misc.py", line 1188, in get_system_type system_value = remote.sh('sudo lsb_release -is').strip() File "/home/teuthworker/src/git.ceph.com_teuthology_19d18db866afdc31fd6586f558fc29b95a87ccfb/teuthology/orchestra/remote.py", line 96, in sh proc = self.run(**kwargs) File "/home/teuthworker/src/git.ceph.com_teuthology_19d18db866afdc31fd6586f558fc29b95a87ccfb/teuthology/orchestra/remote.py", line 525, in run r = self._runner(client=self.ssh, name=self.shortname, **kwargs) File "/home/teuthworker/src/git.ceph.com_teuthology_19d18db866afdc31fd6586f558fc29b95a87ccfb/teuthology/orchestra/run.py", line 455, in run r.wait() File "/home/teuthworker/src/git.ceph.com_teuthology_19d18db866afdc31fd6586f558fc29b95a87ccfb/teuthology/orchestra/run.py", line 161, in wait self._raise_for_status() File "/home/teuthworker/src/git.ceph.com_teuthology_19d18db866afdc31fd6586f558fc29b95a87ccfb/teuthology/orchestra/run.py", line 181, in _raise_for_status raise CommandFailedError( teuthology.exceptions.CommandFailedError: Command failed on smithi090 with status 1: 'sudo lsb_release -is'
History
#1 Updated by Casey Bodley 2 months ago
- Priority changed from High to Urgent
raised to urgent, as this blocks support for centos 9 in the reef release
#2 Updated by Zack Cerza about 2 months ago
- Status changed from New to Fix Under Review
- Assignee set to Zack Cerza
The lab is down so I can't schedule test runs for this (or even view the full log for yours), but I do have a fix I believe will address this:
#3 Updated by Zack Cerza about 1 month ago
- Status changed from Fix Under Review to Resolved