saltstack-formulas / lxd-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
21 stars 18 forks source link

Problems with saltification #13

Open rmader opened 6 years ago

rmader commented 6 years ago

Hej there, I'm trying to get the saltification working, but I hit the following error:

          ID: lxd_container_local_ae-adhocracy4-dev_bse_3
    Function: module.run
        Name: lxd.container_execute
      Result: True
     Comment: Module function lxd.container_execute executed
     Started: 17:21:10.234416
    Duration: 2405.501 ms
     Changes:   
              ----------
              ret:
                  ----------
                  exit_code:
                      2
                  stderr:
                      [ERROR   ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
                  stdout:
                      Minion failed to authenticate with the master, has the minion key been accepted?

The new key gets listed in salt-key -L as unaccepted.

Maybe related to that I get another error earlier:

          ID: lxd_container_local_ae-adhocracy4-dev_check_executed
    Function: module.run
        Name: lxd.container_file_get
      Result: False
     Comment: Module function lxd.container_file_get threw an exception. Exception: [Errno 2] No such file or directory: '/tmp/salt_lxd_bootstraped_local_ae-adhocracy4-dev/salt_lxd_bootstraped'
     Started: 17:20:01.547593
    Duration: 15.675 ms
     Changes:

Any ideas?

Salt: 2017.7.4 Ubuntu 18.04 Beta lxd: 3.0.0

jochumdev commented 6 years ago

Yeah, you need either auto_accept: True or some other way to transfer the key to your container.

Or you wait for: https://github.com/saltstack/salt/issues/46233