-
Notifications
You must be signed in to change notification settings - Fork 73
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
Salt Shaker: allow testing "python311-salt" in SLMicro and Tumbleweed #1778
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer an approach that does not require manual changes when Tumbleweed or MicroOS changes the primary Python version (assuming we'll start testing MicroOS as well at some point).
Zypper can use --capability
to work on rpm provides, for package installations that's the default fallback and does not require these changes. transactional-update pkg install
might take the same flag, that's something we can check.
@agraul I just took this other approach to not hardcode the primary interpreter version (which we are already using at https://github.com/uyuni-project/sumaform/blob/master/salt/salt_testenv/postinstallation.sls). For now, I just want to fix the current failures we have in our Jenkins jobs for SLMicro 6.0. What do you think? |
I still don't get the need to specify any version. Can you point me to a deployment failure log where I can see what's being installed and why that's not the right package? |
The current problem on SLMicro60, is that So, given this (remote-exec): Problem: 1: the installed python311-salt-3006.0-9.1.x86_64 obsoletes 'python3-salt < 3006.0-9.1' provided by the to be installed python3-salt-3006.0-8.1.x86_64
(remote-exec): Solution 1: Following actions will be done:
(remote-exec): deinstallation of python311-salt-3006.0-9.1.x86_64
(remote-exec): downgrade of salt-3006.0-9.1.x86_64 to salt-3006.0-8.1.x86_64
(remote-exec): downgrade of salt-minion-3006.0-9.1.x86_64 to salt-minion-3006.0-8.1.x86_64
(remote-exec): downgrade of salt-transactional-update-3006.0-9.1.x86_64 to salt-transactional-update-3006.0-8.1.x86_64
(remote-exec): Solution 2: do not install python3-salt-3006.0-8.1.x86_64
(remote-exec): Choose from above solutions by number or cancel [1/2/c/d/?] Jenkins job: https://ci.suse.de/user/manager/my-views/view/Salt%20Shaker/job/manager-salt-shaker-products-testing-slmicro60/ |
If I understand that output correctly, our problem is that we have an older release in our devel repository. That raises the question: don't we want to enforce that our package is installed? With your proposed changes, which Salt package will be installed at the end? The pre-installed package or the package from our |
Not exactly... indeed we have a higher version-release in our The SLMicro 6.0 sumaform image contains
Yes, sure, with my proposal I just want to get the |
Are you sure the version in
And this does not work with |
Yes, even it this sounds strange, it is actually the higher version: salt-shaker-products-testing-slmicro60:~ # zypper search -s python311-salt
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository
---+--------------------------+---------+-------------+--------+---------------------------------
v | python311-salt | package | 3006.0-78.1 | x86_64 | salt_testing_repo
i | python311-salt | package | 3006.0-9.1 | x86_64 | alp_sources_repo
i | python311-salt | package | 3006.0-9.1 | x86_64 | os_pool_repo
| python311-salt-test | package | 1.4-1.2 | noarch | salt_testsuite_dependencies_repo
| python311-salt-testsuite | package | 3006.0-78.1 | x86_64 | salt_testing_repo
| python311-salt-testsuite | package | 3006.0-9.1 | x86_64 | alp_sources_repo
Note: For an extended search including not yet activated remote resources please use 'zypper
search-packages'.
It doesn't work with It does not work with: # transactional-update -c -n pkg in --capability python3-salt-testsuite python3-salt-test python3-salt
-failed, it says nothing to update- # transactional-update -c -n pkg in --capability python3-salt-testsuite-3006.0-78.1 python3-salt-test python3-salt-3006.0-78.1
-successfull installation of python311-3006.0-78.1 using capabilities- I'll push an extra commit with an alternative approach based on |
@agraul with this latest change, we use |
14249b3
to
1aa55bb
Compare
What does this PR change?
This PR just enhances the mechanism to install the classic Salt package on Salt Shaker environments, so Python 3.11 is used for SLMicro and Tumbleweed