-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] yum remove salt removes undesired dependencies #67749
Comments
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
@investigatortart I wonder what else you have installed on your system, since I have not seen anything like those dependencies when uninstalling Salt, minion or master on Rocky Linux 9, esp. since Salt dependencies are internal to Salt itself and not the system. Wondering if you did a PyPI install previously for Salt, or salt-bootstrap ?, since on a clean system, would not see those dependencies. For example: Salt has no dependencies on gnome-shell-xxxx or chrome-gnome-shell, and hence wonder why else was going on your system. Can you retry duplicating this issue on a clean system. |
@dmurphy18 This was done on a brand new machine in Azure based on Rocky Linux 9.5. The only thing done to this machine is starting it up, install the agent using the RPM repository. After that we update CA certificates, disable the Nouveau graphics driver, update the kernel, install Gnome 3, install Nvidia driver, and update X11 configuration. After this we uninstall Salt as it is no longer required on the machine before we create an Azure Machine Image off of it. Oddly enough, we do not have this issue on an Amazon EC2 instance that is doing the exact same thing. |
@investigatortart Can only say, Salt has no dependencies on gnome or chrome, so no idea as to why they are getting uninstalled. But you are using Azure, and wondering if you are using the Salt Extension for Azure from here https://github.com/salt-extensions/saltext-azurerm, as that is the recommended extension to use with Azure for some time and more up to date than that from Salt. If not using it, please try that. The fact you are not seeing this on AWS highly suggests this is something to do with your Azure setup, since the latest Salt is pretty much self contained, even to the extent of it's own version of Python (3.10), since the same RPM runs regardless of the OS versions. This was due to having to live on ancient platforms, e.g. RedHat 7 and 8 with a long EOL Python 3.6. |
Description
When using Salt to create Azure Rocky Linux 9.5 machine images it uninstalls critical packages upon removal of Salt.
Setup
Using Salt in a masterless setup where states are uploaded to the machine and run locally.
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
Expected behavior
The salt and salt-minion packages are removed without removing critical packages that Salt shouldn't have dependencies on.
Screenshots
N/A
Versions Report
Salt Version: Salt: 3007.1
Python Version:
Python: 3.10.14 (main, Apr 3 2024, 21:30:09) [GCC 11.2.0]
Dependency Versions:
cffi: 1.16.0
cherrypy: 18.8.0
dateutil: 2.8.2
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 3.1.4
libgit2: Not Installed
looseversion: 1.3.0
M2Crypto: Not Installed
Mako: Not Installed
msgpack: 1.0.7
msgpack-pure: Not Installed
mysql-python: Not Installed
packaging: 23.1
pycparser: 2.21
pycrypto: Not Installed
pycryptodome: 3.19.1
pygit2: Not Installed
python-gnupg: 0.5.2
PyYAML: 6.0.1
PyZMQ: 25.1.2
relenv: 0.16.0
smmap: Not Installed
timelib: 0.3.0
Tornado: 6.3.3
ZMQ: 4.3.4
Salt Extensions:
saltext.vault: 1.3.0
Salt Package Information:
Package Type: onedir
System Versions:
dist: rocky 9.5 Blue Onyx
locale: utf-8
machine: x86_64
release: 5.14.0-503.23.2.el9_5.x86_64
system: Linux
version: Rocky Linux 9.5 Blue Onyx
The text was updated successfully, but these errors were encountered: