Skip to content
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

Open
2 of 9 tasks
investigatortart opened this issue Feb 18, 2025 · 4 comments
Open
2 of 9 tasks

[BUG] yum remove salt removes undesired dependencies #67749

investigatortart opened this issue Feb 18, 2025 · 4 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior info-needed waiting for more info

Comments

@investigatortart
Copy link

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.

  • on-prem machine
  • VM (Virtualbox, KVM, etc. please specify)
  • VM running on a cloud service, please be explicit and add details - Running in Azure
  • container (Kubernetes, Docker, containerd, etc. please specify)
  • or a combination, please be explicit
  • jails if it is FreeBSD
  • classic packaging
  • onedir packaging
  • used bootstrap to install

Steps to Reproduce the behavior

# Install Salt Minion
yum install -y -q salt-minion-3007.*

# RUN STATES SUCH AS INSTALLING GNOME DESKTOP, NVIDIA DRIVERS, ETC.
salt-call --local state.apply our_states

# Uninstall Salt and Salt-Minion
yum remove salt salt-minion
Dependencies resolved.
============================================================================================================================================================================================
 Package                                                            Architecture                    Version                                       Repository                           Size
============================================================================================================================================================================================
Removing:
 salt                                                               x86_64                          3007.1-0                                      @salt-rpm                           152 M
 salt-minion                                                        x86_64                          3007.1-0                                      @salt-rpm                            73 k
Removing dependent packages:
 chrome-gnome-shell                                                 x86_64                          42.1-1.el9                                    @appstream                          103 k
 gdm                                                                x86_64                          1:40.1-27.el9                                 @appstream                          4.7 M
 gnome-classic-session                                              noarch                          40.7-19.el9                                   @appstream                          231 k
 gnome-control-center                                               x86_64                          40.0-31.el9                                   @appstream                           20 M
 gnome-initial-setup                                                x86_64                          40.4-3.el9                                    @appstream                          1.7 M
 gnome-session-wayland-session                                      x86_64                          40.1.1-9.el9                                  @appstream                          2.4 k
 gnome-session-xsession                                             x86_64                          40.1.1-9.el9                                  @appstream                           11 k
 gnome-shell                                                        x86_64                          40.10-22.el9_5                                @appstream                          9.3 M
 gnome-shell-extension-background-logo                              noarch                          40.0~rc-4.el9                                 @appstream                           54 k
 gvfs-smb                                                           x86_64                          1.48.1-4.el9                                  @appstream                          113 k
 lsof                                                               x86_64                          4.94.0-3.el9                                  @baseos                             624 k
 open-vm-tools-desktop                                              x86_64                          12.4.0-2.el9                                  @appstream                          462 k
 quota                                                              x86_64                          1:4.09-2.el9                                  @baseos                             715 k
 sssd                                                               x86_64                          2.9.5-4.el9_5.4                               @baseos                              34 k
Removing unused dependencies:
 accountsservice                                                    x86_64                          0.6.55-10.el9                                 @appstream                          364 k
 accountsservice-libs                                               x86_64                          0.6.55-10.el9                                 @appstream                          350 k
 adcli                                                              x86_64                          0.9.2-1.el9                                   @baseos                             338 k
 bind-libs                                                          x86_64                          32:9.16.23-24.el9_5                           @appstream                          3.5 M
 bind-license                                                       noarch                          32:9.16.23-24.el9_5                           @appstream                           18 k
 bind-utils                                                         x86_64                          32:9.16.23-24.el9_5                           @appstream                          644 k
 colord-gtk                                                         x86_64                          0.2.0-7.el9                                   @appstream                           74 k
 cyrus-sasl-gssapi                                                  x86_64                          2.1.27-21.el9                                 @baseos                              44 k
 dbus-daemon                                                        x86_64                          1:1.12.20-8.el9                               @appstream                          509 k
 evolution-data-server                                              x86_64                          3.40.4-9.el9                                  @appstream                          7.8 M
 evolution-data-server-langpacks                                    noarch                          3.40.4-9.el9                                  @appstream                          9.3 M
 evolution-data-server-ui                                           x86_64                          3.40.4-9.el9                                  @appstream                          237 k
 fstrm                                                              x86_64                          0.6.1-3.el9                                   @appstream                           55 k
 gnome-control-center-filesystem                                    noarch                          40.0-31.el9                                   @appstream                            0  
 gnome-keyring                                                      x86_64                          40.0-4.el9_4                                  @appstream                          3.8 M
 gnome-keyring-pam                                                  x86_64                          40.0-4.el9_4                                  @appstream                           31 k
 gnome-session                                                      x86_64                          40.1.1-9.el9                                  @appstream                          1.5 M
 gnome-shell-extension-apps-menu                                    noarch                          40.7-19.el9                                   @appstream                           24 k
 gnome-shell-extension-common                                       noarch                          40.7-19.el9                                   @appstream                          1.1 M
 gnome-shell-extension-desktop-icons                                noarch                          40.7-19.el9                                   @appstream                          131 k
 gnome-shell-extension-launch-new-instance                          noarch                          40.7-19.el9                                   @appstream                          993  
 gnome-shell-extension-places-menu                                  noarch                          40.7-19.el9                                   @appstream                           21 k
 gnome-shell-extension-window-list                                  noarch                          40.7-19.el9                                   @appstream                           79 k
 gnome-tour                                                         x86_64                          40.1-2.el9                                    @appstream                          2.6 M
 gsound                                                             x86_64                          1.0.2-15.el9                                  @appstream                           81 k
 gstreamer1-plugins-good-gtk                                        x86_64                          1.22.1-3.el9_5                                @appstream                           72 k
 highcontrast-icon-theme                                            noarch                          3.28-14.el9                                   @appstream                          4.2 M
 ibus                                                               x86_64                          1.5.25-6.el9                                  @appstream                           89 M
 ibus-gtk3                                                          x86_64                          1.5.25-6.el9                                  @appstream                           40 k
 ibus-setup                                                         noarch                          1.5.25-6.el9                                  @appstream                          243 k
 libdecor                                                           x86_64                          0.1.1-1.el9                                   @appstream                           96 k
 libgnomekbd                                                        x86_64                          3.26.1-7.el9                                  @appstream                          629 k
 libical-glib                                                       x86_64                          3.0.14-1.el9                                  @appstream                          1.7 M
 libipa_hbac                                                        x86_64                          2.9.5-4.el9_5.4                               @baseos                              61 k
 libmspack                                                          x86_64                          0.10.1-0.7.alpha.el9                          @appstream                          144 k
 libnma                                                             x86_64                          1.8.40-1.el9                                  @appstream                          1.2 M
 libsmbclient                                                       x86_64                          4.20.2-2.el9_5                                @baseos                             174 k
 libuv                                                              x86_64                          1:1.42.0-2.el9_4                              @appstream                          396 k
 libwbclient                                                        x86_64                          4.20.2-2.el9_5                                @baseos                              73 k
 libxcvt                                                            x86_64                          0.1.2-2.el9                                   @appstream                           18 k
 libxkbcommon-x11                                                   x86_64                          1.0.3-4.el9                                   @appstream                           40 k
 libxklavier                                                        x86_64                          5.4-20.el9                                    @appstream                          154 k
 mobile-broadband-provider-info                                     noarch                          20210805-2.el9                                @appstream                          498 k
 mutter                                                             x86_64                          40.9-22.el9_5                                 @appstream                           12 M
 nm-connection-editor                                               x86_64                          1.26.0-2.el9                                  @appstream                          4.6 M
 open-vm-tools                                                      x86_64                          12.4.0-2.el9                                  @appstream                          3.3 M
 pciutils                                                           x86_64                          3.7.0-5.el9                                   @baseos                             213 k
 pinentry                                                           x86_64                          1.1.1-8.el9                                   @appstream                          118 k
 pinentry-gnome3                                                    x86_64                          1.1.1-8.el9                                   @appstream                           81 k
 power-profiles-daemon                                              x86_64                          0.21-1.el9                                    @@System                            174 k
 quota-nls                                                          noarch                          1:4.09-2.el9                                  @baseos                             274 k
 rocky-backgrounds                                                  noarch                          90.15-2.el9                                   @appstream                           63 M
 samba-client-libs                                                  x86_64                          4.20.2-2.el9_5                                @baseos                              20 M
 samba-common                                                       noarch                          4.20.2-2.el9_5                                @baseos                             199 k
 samba-common-libs                                                  x86_64                          4.20.2-2.el9_5                                @baseos                             282 k
 setxkbmap                                                          x86_64                          1.3.2-5.el9                                   @appstream                           31 k
 sssd-ad                                                            x86_64                          2.9.5-4.el9_5.4                               @baseos                             453 k
 sssd-common-pac                                                    x86_64                          2.9.5-4.el9_5.4                               @baseos                             241 k
 sssd-ipa                                                           x86_64                          2.9.5-4.el9_5.4                               @baseos                             729 k
 sssd-krb5                                                          x86_64                          2.9.5-4.el9_5.4                               @baseos                              87 k
 sssd-krb5-common                                                   x86_64                          2.9.5-4.el9_5.4                               @baseos                             222 k
 sssd-ldap                                                          x86_64                          2.9.5-4.el9_5.4                               @baseos                             181 k
 sssd-proxy                                                         x86_64                          2.9.5-4.el9_5.4                               @baseos                             165 k
 switcheroo-control                                                 x86_64                          2.4-4.el9                                     @appstream                          102 k
 xmlsec1                                                            x86_64                          1.2.29-13.el9                                 @appstream                          596 k
 xmlsec1-openssl                                                    x86_64                          1.2.29-13.el9                                 @appstream                          281 k
 xorg-x11-server-Xwayland                                           x86_64                          23.2.7-1.el9                                  @appstream                          2.3 M

Transaction Summary
============================================================================================================================================================================================
Remove  83 Packages

Freed space: 433 M
Is this ok [y/N]: 

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

@investigatortart investigatortart added Bug broken, incorrect, or confusing behavior needs-triage labels Feb 18, 2025
Copy link

welcome bot commented Feb 18, 2025

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.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

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.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

@dmurphy18 dmurphy18 self-assigned this Feb 19, 2025
@dmurphy18
Copy link
Contributor

@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 dmurphy18 added the info-needed waiting for more info label Feb 19, 2025
@investigatortart
Copy link
Author

@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.

@dmurphy18
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior info-needed waiting for more info
Projects
None yet
Development

No branches or pull requests

2 participants