Migration to venv-salt-minion does not copy grains information
This document (000020729) is provided subject to the disclaimer at the end of this document.
Until a fix will be provided with a regular maintenance update, please add these lines to /usr/share/susemanager/salt/util/mgr_switch_to_venv_minion.sls:
- name: /etc/venv-salt-minion/grains
- source: /etc/salt/grains
- pkg: mgr_venv_salt_minion_pkg
- test -f /etc/salt/grains
This will copy /etc/salt/grains to /etc/venv-salt-minion during the migration. For already completed migrations please copy the file manually.
1. On SUSE Manager:
cp /usr/share/susemanager/salt/util/mgr_switch_to_venv_minion.sls /usr/share/susemanager/salt/util/mgr_switch_to_venv_minion.sls.backup
2. Edit the file and add the lines mentioned in the Resolution section of this article.
3. When done, compare the files using diff. The output returned should be similar to:
diff /usr/share/susemanager/salt/util/mgr_switch_to_venv_minion.sls /usr/share/susemanager/salt/util/mgr_switch_to_venv_minion.sls.backup
< - name: /etc/venv-salt-minion/grains
< - source: /etc/salt/grains
< - require:
< - pkg: mgr_venv_salt_minion_pkg
< - onlyif:
< - test -f /etc/salt/grains
4. Continue with the migration as outlined in the documentation.
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020729
- Creation Date: 19-Aug-2022
- Modified Date:19-Aug-2022
- SUSE Manager Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com