-
Notifications
You must be signed in to change notification settings - Fork 196
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
improve update systems via recurring states #8227
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.
Lgtm. thank you for implementing this one.
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.
How is the mgr_reboot_if_needed
pillar set?
I think there is no automatic way yet. So by default nothing change compared to what we have now. reboot is always executed if needed. But a customer can manual set it via |
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.
Thanks. LGTM 👍
Related issue just for reference: https://github.com/SUSE/spacewalk/issues/22483
When using custom info, it would look like this:
And I think "False" is here a string. I think we can enhance the check to also react on this. |
I am also looking for some hints if the UI configuration is complete? AFAIK there is somewhere a description which I cannot identify where it comes from. |
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 am also looking for some hints if the UI configuration is complete? AFAIK there is somewhere a description which I cannot identify where it comes from.
Oh right, descriptions are translated strings in java/StringResource_en_US.xml
.
The UI picks it up automatically, looking at the message key internal_state.<state_label>
So you need to add the following:
<trans-unit id="internal_state.update-salt">
<source>...</source>
</trans-unit>
53b321b
to
ac95eec
Compare
👋 Hello! Thanks for contributing to our project. If you are unsure the failing tests are related to your code, you can check the "reference jobs". These are jobs that run on a scheduled time with code from master. If they fail for the same reason as your build, it means the tests or the infrastructure are broken. If they do not fail, but yours do, it means it is related to your code. Reference tests: KNOWN ISSUES Sometimes the build can fail when pulling new jar files from download.opensuse.org . This is a known limitation. Given this happens rarely, when it does, all you need to do is rerun the test. Sorry for the inconvenience. For more tips on troubleshooting, see the troubleshooting guide. Happy hacking! |
@parlt91 @cbbayburt I added the translation and I have added handling of pillar created via custom_info. |
.../susemanager-schema-5.0.3-to-susemanager-schema-5.0.4/100-add-internal-state-update-salt.sql
Outdated
Show resolved
Hide resolved
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.
Tested it out and it looks good to me. Just left one comment about the schema upgrade dir above.
IMO yes. https://github.com/SUSE/spacewalk/issues/22483 is also going to be implemented on top of this. |
ac95eec
to
f114db4
Compare
Generally, we plan not to add anything major in 4.3 anymore. But in this case, this would be a nice change to add in 4.3. It's not that big from code wise so less chance of introducing any regressions. |
@admd @mcalmer @cbbayburt I was discussion this with MC on the chat. COnsidering that update salt with salt is the a root of problems, and MC (thank you so much) added this state to address the issue, would make sense to keep updating salt on the |
custom_info produce only string values
f114db4
to
14acbc6
Compare
What does this PR change?
Implement some improvements to update systems via recurring states.
GUI diff
No difference.
Documentation
Not needed, but added https://github.com/SUSE/spacewalk/issues/23573
DONE
Test coverage
No tests: already covered
DONE
Links
Issue(s): https://github.com/SUSE/spacewalk/issues/22483
Ports(s): https://github.com/SUSE/spacewalk/pull/23577
Changelogs
Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository
If you don't need a changelog check, please mark this checkbox:
If you uncheck the checkbox after the PR is created, you will need to re-run
changelog_test
(see below)Re-run a test
If you need to re-run a test, please mark the related checkbox, it will be unchecked automatically once it has re-run:
Before you merge
Check How to branch and merge properly!