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
[master] Define "__virtualname__" for transactional_update module #64369
[master] Define "__virtualname__" for transactional_update module #64369
Conversation
This prevent problems with LazyLoader when importing this module, which was wrongly exposing functions for this module under "state.*"
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.
Is this error only showing up on openSUSE MicroOS and SLE Micro, transactional systems ? If so why is that the case?
I'm wondering if we can add test coverage here easily or not.
This will certainly need a changelog though.
@Ch3LL sorry for the delay answering here.
Yes, that is the case atm. The "transactional_update" execution module is only available on transactional systems, where I think this might have some relation with the usage of the "transactional_update" executor, which is configured by default in Salt configuration for transactional systems:
This executor [1], contains a set of modules and functions that must be executed via "transactional_update" module, as they are expected to make changes on the readonly system and therefore a new transaction/snapshot is required. One of these function is As mentioned, without defining this One note: the
It doesn't seems straight forward, as it is not really clear yet what is triggering this behavior.
I've added it now 👍 [1] https://github.com/saltstack/salt/blob/master/salt/executors/transactional_update.py |
What does this PR do?
On openSUSE MicroOS and SLE Micro, transactional systems, this prevent problems with "LazyLoader" when importing
transactional_update
module, which was wrongly exposing functions for this module understate.*
on Salt >= 3005.Previous Behavior
The following exception is triggered by salt minion when calling
state.apply
:New Behavior
The
state.apply
works as expected.Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.