Bug 2212830

Summary: [TPS] Consistent Delete and Upgrade Test Failure with error: user 'cephadm' does not exist
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Aditya Ramteke <aramteke>
Component: BuildAssignee: Ken Dreyer (Red Hat) <kdreyer>
Status: NEW --- QA Contact: Vivek Das <vdas>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: cephqe-warriors, saraut
Target Milestone: ---   
Target Release: 7.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aditya Ramteke 2023-06-06 13:34:40 UTC
Description of problem:

Delete and Upgrade TPS test is failing consistently with the following error and this can be fixed.

=== DeleteTest =====================
Error|Fail string detected in rpmOutput, although package state is 'none'.
Delete test FAILED
Output from RPM Command:
warning: file /var/lib/cephadm/.ssh/authorized_keys: remove failed: No such file or directory
warning: file /var/lib/cephadm/.ssh: remove failed: No such file or directory
userdel: user 'cephadm' does not exist
Glob pattern passed to enable, but globs are not supported for this.
Invalid unit name "ceph-immutable-object-cache@*.service" escaped as "ceph-immutable-object-cache@\x2a.service".
Removed "/etc/systemd/system/multi-user.target.wants/ceph.target".
Removed "/etc/systemd/system/ceph.target.wants/ceph-crash.service".
skipping the directory /sys
skipping the directory /proc
skipping the directory /mnt
skipping the directory /var/tmp
skipping the directory /home
skipping the directory /root
skipping the directory /tmp
warning: file /etc/ceph: remove failed: No such file or directory


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Perform errata tps-rpmtest


Actual results:
Test should not show any errors

Expected results:
Test Fails with following error: 
Invalid unit name "ceph-immutable-object-cache@*.service" escaped as "ceph-immutable-object-cache@\x2a.service".
Removed "/etc/systemd/system/multi-user.target.wants/ceph.target".
Removed "/etc/systemd/system/ceph.target.wants/ceph-crash.service".

Additional info:
Test Result can be found here:
http://nest.test.redhat.com//mnt/qa/scratch/kvm-01-guest23/2023:112314/tps/tps-rpmtest.html