Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2203620

Summary: install FAIL with DNF error:Error in POSTIN scriptlet in rpm package insights-client
Product: Red Hat Enterprise Linux 9 Reporter: zzwxh123
Component: insights-clientAssignee: Nobody <nobody>
Status: CLOSED DUPLICATE QA Contact: Nobody <nobody>
Severity: high Docs Contact:
Priority: unspecified    
Version: 9.2CC: cmarinea, fjansen, jstodola, link, stomsa
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
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: 2023-05-16 13:58:59 UTC 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:
Attachments:
Description Flags
anaconda logs none

Description zzwxh123 2023-05-14 17:30:00 UTC
Description of problem:
install failed

Version-Release number of selected component (if applicable):
rhel9.2 boot iso

Steps to Reproduce:
install rhel9.2
 1.keyboard            "Chinese"
 2.language support    "Chinese(simplified)"
 3.time and date       "asia/shanghai"
 4.root user           "disabled"
 5.create admin user   "zzwxh"
 6.software selection  "workstation" (source redhat CDN)
 7.kdump               "disabled"
 8.hostname            "LAPTOP"  (eno1 dhcp and dhcpv6)
 9.disk - 50MiB         /boot/efi
        - 16GiB         /swap
        - about 400GiB  /


Actual results:
DNF error:Error in POSTIN scriptlet in rpm package insights-client

Expected results:
install success

Additional info:

Comment 1 zzwxh123 2023-05-15 03:49:54 UTC
sometimes install fail 
all the same install config

Comment 2 Jan Stodola 2023-05-15 07:21:16 UTC
Hello, could you please provide the installation logs when the installation fails? You can find them in /tmp during the installation. Please attach all /tmp/*log files, or /tmp/anaconda-tb-* if it exists.

Here you can find more details about getting the installation logs:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/performing_a_standard_rhel_9_installation/troubleshooting-at-the-start-of-the-installation_installing-rhel#using-installation-log-files_troubleshooting-at-the-start-of-the-installation

Thank you.

Comment 3 zzwxh123 2023-05-15 14:06:26 UTC
sorry its too hard for me
i have reproduced it in a vm (cockpit-machines firmware=UEFI,cpu=EYPC,memory=2GiB)
but i dont know how to config its network to copy the logs
just use the config below and you will get an error

 1.keyboard            "Chinese"
 2.language support    "Chinese(simplified)"
 3.time and date       "asia/shanghai"
 4.root user           "disabled"
 5.create admin user   "zzwxh"
 6.software selection  "workstation" (source redhat CDN)
 7.kdump               "disabled"
 8.hostname            "LAPTOP"  (eno1 dhcp and dhcpv6)
 9.disk                "auto"
 10.connect to redhat insights "disable"

Comment 4 zzwxh123 2023-05-15 14:11:55 UTC
Red Hat Enterprise Linux 9.2 Boot ISO 
    2023-04-25
SHA-256 Checksum:
    087f5387f28e6edf1f770ec7eb41e56823b6c3c4d4c3ef09b3b61f59440c229c

Comment 5 Jan Stodola 2023-05-16 10:05:56 UTC
Created attachment 1964860 [details]
anaconda logs

Reproduced using settings from comment 3, attaching installation logs.

Comment 6 Jan Stodola 2023-05-16 10:08:46 UTC
Reproduced on the installed system as well:

[root@localhost ~]# dnf install --installroot=/root/insights/ insights-client
...
  Installing       : python3-policycoreutils-3.5-1.el9.noarch                                         143/145 
  Installing       : policycoreutils-python-utils-3.5-1.el9.noarch                                    144/145 
  Installing       : insights-client-3.1.7-12.el9.noarch                                              145/145 
  Running scriptlet: insights-client-3.1.7-12.el9.noarch                                              145/145 
⚠ /proc/ is not mounted. This is not a supported mode of operation. Please fix
your invocation environment to mount /proc/ and /sys/ properly. Proceeding anyway.
Your mileage may vary.
⚠ /proc/ is not mounted. This is not a supported mode of operation. Please fix
your invocation environment to mount /proc/ and /sys/ properly. Proceeding anyway.
Your mileage may vary.
Created symlink /etc/systemd/system/multi-user.target.wants/insights-client-boot.service → /usr/lib/systemd/system/insights-client-boot.service.
ValueError: SELinux policy is not managed or store cannot be accessed.
warning: %post(insights-client-0:3.1.7-12.el9.noarch) scriptlet failed, exit status 1

Error in POSTIN scriptlet in rpm package insights-client
  Running scriptlet: filesystem-3.16-2.el9.x86_64                                                     145/145 


It looks like a RHEL-8 bug 2150908. Reassigning to insights-client.

Comment 7 Link Dupont 2023-05-16 13:58:59 UTC

*** This bug has been marked as a duplicate of bug 2196844 ***