Bug #44292
closedopensuse 15.2 FOG image lacks rsyslog package
0%
Description
With the new opensuse_15.2 FOG image tests are failing with:
2020-02-25T16:57:21.217 INFO:teuthology.run_tasks:Running task internal.syslog... 2020-02-25T16:57:21.236 INFO:teuthology.task.internal.syslog:Starting syslog monitoring... 2020-02-25T16:57:21.237 INFO:teuthology.orchestra.run.smithi017:> mkdir -p -m0755 -- /home/ubuntu/cephtest/archive/syslog 2020-02-25T16:57:21.240 INFO:teuthology.orchestra.run.smithi109:> mkdir -p -m0755 -- /home/ubuntu/cephtest/archive/syslog 2020-02-25T16:57:21.268 INFO:teuthology.orchestra.run.smithi017:> install -m 666 /dev/null /home/ubuntu/cephtest/archive/syslog/kern.log 2020-02-25T16:57:21.340 INFO:teuthology.orchestra.run.smithi017:> install -m 666 /dev/null /home/ubuntu/cephtest/archive/syslog/misc.log 2020-02-25T16:57:21.370 INFO:teuthology.orchestra.run.smithi017:> sudo sh -c 'cat > /etc/rsyslog.d/80-cephtest.conf' 2020-02-25T16:57:21.407 INFO:teuthology.orchestra.run.smithi017.stderr:sh: /etc/rsyslog.d/80-cephtest.conf: No such file or directory 2020-02-25T16:57:21.410 DEBUG:teuthology.orchestra.run:got remote process result: 1
Ensuring that the rsyslog package is installed in the image should be sufficient to fix this.
NOTE: this was done for the opensuse 15.1 image. Is there any way to automate this step so it happens automatically every time a new opensuse FOG image is created?
Updated by David Galloway about 4 years ago
You just need to make a copy of https://github.com/ceph/ceph-cm-ansible/blob/master/roles/testnode/vars/opensuse_leap_15.1.yml naming it opensuse_leap_15.2.yml
Alternatively, if the package names remain the same across minor version numbers, you could just combine 15.0 and 15.1 into a opensuse_leap_15.yml
.
Once that change is done in ceph-cm-ansible, you're good to do. No need to capture a new FOG image.
Updated by Nathan Cutler about 4 years ago
- Status changed from New to Fix Under Review
- Assignee changed from David Galloway to Nathan Cutler
@David - OK, opened https://github.com/ceph/ceph-cm-ansible/pull/536
(I was under the impression that the packages defined in that file get installed by a task that runs later in the process than the internal.syslog task. If we don't need to add the packages to the underlying image, so much the better!)
Updated by David Galloway about 4 years ago
Nathan Cutler wrote:
@David - OK, opened https://github.com/ceph/ceph-cm-ansible/pull/536
(I was under the impression that the packages defined in that file get installed by a task that runs later in the process than the internal.syslog task. If we don't need to add the packages to the underlying image, so much the better!)
I don't actually know when internal.syslog gets run. ceph-cm-ansible should run pretty much immediately after FOG reimages the machine and before all Ceph testing.
Updated by David Galloway about 4 years ago
David Galloway wrote:
Nathan Cutler wrote:
@David - OK, opened https://github.com/ceph/ceph-cm-ansible/pull/536
(I was under the impression that the packages defined in that file get installed by a task that runs later in the process than the internal.syslog task. If we don't need to add the packages to the underlying image, so much the better!)
I don't actually know when internal.syslog gets run. ceph-cm-ansible should run pretty much immediately after FOG reimages the machine and before all Ceph testing.
:( I probably should have looked a job before having you go to this trouble. internal.syslog does run before ceph-cm-ansible. I just captured a new FOG image for 15.2 that includes rsyslog.
Updated by Nathan Cutler about 4 years ago
- Status changed from Fix Under Review to Resolved