Skip to content

zypperpkg: ignore retcode 104 for search() - #58552

Closed
aplanas wants to merge 2 commits into
saltstack:masterfrom
aplanas:fix_search
Closed

aplanas wants to merge 2 commits into
saltstack:masterfrom
aplanas:fix_search

Conversation

@aplanas

@aplanas aplanas commented Sep 25, 2020 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Accept as a good return code 104 (not found) when zypper is searching for packages.

What issues does this PR fix or reference?

Fixes: #58551

Previous Behavior

ERROR entries are added in the log when we search for some asset that is missing in the zypper repository

New Behavior

Those entries are not showed, as 104 is considered a non-error return comde

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

@aplanas
aplanas requested a review from a team as a code owner September 25, 2020 13:27
@aplanas
aplanas requested review from cmcmarrow and removed request for a team September 25, 2020 13:27
@ghost
ghost requested a review from krionbsd September 25, 2020 13:27
@aplanas
aplanas force-pushed the fix_search branch 2 times, most recently from 100b976 to 33733c8 Compare September 25, 2020 14:08

@cmcmarrow cmcmarrow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Over all looks good just one question. Also thank you for the test and log.

Comment thread salt/modules/zypperpkg.py Resolved
krionbsd
krionbsd previously approved these changes Sep 25, 2020
@aplanas

aplanas commented Sep 25, 2020

Copy link
Copy Markdown
Contributor Author

I changed the approach, integrating the error code in the Zypper class and adding a parameter "ignore_not_found". Now is aligned with the way that the error code 106 is ignored (parameter "no_repo_failture")

@aplanas
aplanas force-pushed the fix_search branch 3 times, most recently from d490b5e to 38bb965 Compare July 19, 2021 07:32
@aplanas
aplanas force-pushed the fix_search branch 3 times, most recently from 90a62ea to 5d3837b Compare August 19, 2021 13:01
@aplanas

aplanas commented Aug 19, 2021

Copy link
Copy Markdown
Contributor Author

Is a low prio bug fix, but is old and green. Maybe we can give it a chance and merge it? We are using it in the openSUSE package since long and there are not problems.

@dwoz

dwoz commented Dec 10, 2023

Copy link
Copy Markdown
Contributor

Closing this due to inactivity. Anyone should feel free to re-open it if they want to see it through to the end in one release cycle.

@dwoz dwoz closed this Dec 10, 2023
@dwoz dwoz added help-wanted Community help is needed to resolve this Abandoned labels Dec 10, 2023
agraul pushed a commit to agraul/salt that referenced this pull request Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Abandoned help-wanted Community help is needed to resolve this

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] zypperpkg search() generate ERROR in the logs

4 participants