Skip to content
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

Snapper install fails #5

Closed
rdouman opened this issue Jul 28, 2020 · 2 comments
Closed

Snapper install fails #5

rdouman opened this issue Jul 28, 2020 · 2 comments

Comments

@rdouman
Copy link

rdouman commented Jul 28, 2020

I'm trying to install a new kubic node using the yomi installation scripts and I'm experiencing failures when snapper installs.

My salt master is a newly installed kubic master node installation:

NAME="openSUSE MicroOS"
VERSION="20200720"
ID="opensuse-microos"
ID_LIKE="suse opensuse opensuse-tumbleweed"
VERSION_ID="20200720"
PRETTY_NAME="openSUSE MicroOS"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:microos:20200720"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
LOGO="distributor-logo"

And the worker node is booted from:
openSUSE-Tumbleweed-Yomi.x86_64-1.0.0-livecd-Build108.22.iso

The installation step fails with the following error message:

 ID: snapper_step_two_/dev/sda2
Function: snapper_install.step_two
  Result: False
 Comment: An exception occurred in this state: Traceback (most recent call last):
            File "/usr/lib/python3.8/site-packages/salt/state.py", line 1987, in call
              ret = self.states[cdata['full']](*cdata['args'], **cdata['kwargs'])
            File "/usr/lib/python3.8/site-packages/salt/loader.py", line 2031, in wrapper
              return f(*args, **kwargs)
            File "/var/cache/salt/minion/extmods/states/snapper_install.py", line 97, in wrapper
              device = kwargs['device']
          KeyError: 'device'
 Started: 09:47:46.330177
Duration: 3.079 ms
 Changes:   

The configuration that I've updated in the yomi pillar's installer.sls
{% set efi = False %}
{% set partition = 'gpt' %}
{% set device_type = 'sd' %}
{% set root_filesystem = 'btrfs' %}
{% set home_filesystem = False %}
{% set snapper = True %}
{% set swap = False %}
{% set mode = 'kubic' %}

Please find attched the output from running : salt 'kubenodetst05' state.apply yomi
salt_output_28-07-2020.2.txt

@aplanas
Copy link
Collaborator

aplanas commented Jul 28, 2020

Indeed. This issue and #4 comes from the same upstream change.

Update the formula in the master node from the devel project (https://build.opensuse.org/package/show/systemsmanagement:yomi/yomi-formula).

For reference, the fix was here: cd0d447

@rdouman
Copy link
Author

rdouman commented Aug 11, 2020

Using the devel yomi formula fixed my snapper installation issue. the installation completed but new the system, however did not boot . I'll log a new ticket accordingly.

@rdouman rdouman closed this as completed Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants