semanage is not found in the system path, including after a sudo su - to ensure all sbin directories are included in the search.
From: Victor Zhestkov via Uyuni Users
Sent: Sunday, May 8, 2022 12:51 PM
To: General discussion related to the openSUSE Uyuni project
Cc: Victor Zhestkov
Subject: Re: venv-salt-minion failing to install as part of bootstrap script
Hi Paul-Andre.
The script is inside the package, on installing it's expanding from the package, don't remember exact path on the system. But I've already checked it and it seems it can only fail in case of presence `semanage` on the system while selinux is not configured.
Try to check if `which semanage` returns the path to the binary, if so, rename it temporary or remove the package it's shipped with.
Victor
________________________________
From: Paul-Andre Panon mailto:ppanon@sierrawireless.com>
Sent: Sunday, May 8, 2022 10:26:28 PM
To: General discussion related to the openSUSE Uyuni project mailto:users@lists.uyuni-project.org>
Subject: Re: venv-salt-minion failing to install as part of bootstrap script
That said, any chance you could point me at the script that is actually being run in post install so I can investigate what else might be failing if it's not SELinux?
Get Outlook for Androidhttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2FAAb9ysg&data=05%7C01%7Cppanon%40sierrawireless.com%7Cdcc1ff4590094b094c7708da312c1eaa%7C08059a4c248643dd89e33a747e0dcbe8%7C0%7C0%7C637876362831060631%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Q8KwQJXQuPlBjGZvB7KaT53PSOvoqjgunjrVqXT4Nek%3D&reserved=0
________________________________
From: Victor Zhestkov via Uyuni Users mailto:users@lists.uyuni-project.org>
Sent: Saturday, May 7, 2022 9:43:41 AM
To: users@lists.uyuni-project.orgmailto:users@lists.uyuni-project.org mailto:users@lists.uyuni-project.org>
Cc: Victor Zhestkov mailto:Victor.Zhestkov@suse.com>
Subject: Re: venv-salt-minion failing to install as part of bootstrap script
Hi Paul-Andre.
Most probably root cause is related to selinux.
Try to rename semanage before running the bootstrap and rename it back
after installation. The root cause that bash script is failing on
failing one of the commands inside it on Debian based distros.
Will fix it in next releases. Thanks for the notification.
Victor
On Sat, 2022-05-07 at 02:40 +0000, Paul-Andre Panon wrote:
Hi,
We're trying to bootstrap an ubuntu 20.04 server with the same
bootstrap script that we've used on many other servers. However on
this server the package install is failing in the post-install
script.
...
FINISHED --2022-05-06 19:08:52--
Total wall clock time: 0.007s
Downloaded: 1 files, 1.1K in 0s (223 MB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnupg is already the newest version (2.2.19-3ubuntu2.1).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up venv-salt-minion (3002.2-47.3.uyuni) ...
dpkg: error processing package venv-salt-minion (--configure):
installed venv-salt-minion package post-installation script
subprocess returned error exit status 1
Errors were encountered while processing:
venv-salt-minion
E: Sub-process /usr/bin/dpkg returned an error code (1)
OK
...
Looks like it's trying to do something with dpkg so perhaps there's a
missing or conflicting dependency. With Uyuni's cross-platform build,
I haven't been able to figure out what that post-install script is to
figure out what it might be trying to do. Any suggestions?
Thanks,
Paul-Andre