saltstack / saltstack/salt

[BUG] Boot strap installation of minion on Raspbian OS (Debian 10 Buster) provides wrong hostname

Open
#60,019 6 comments 0 reactions 1 assignee View on GitHub

@krionbsd is already working on this.

Since Apr 20, 2021.

bug raspberry-pi severity-medium
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Boot strap installation of minion on Raspbian OS (Debian 10 Buster) provides wrong hostname to master server as unaccepted key name.

On Minion Candidate...
$ sudo cat /etc/hostname
raspberypi

$ sudo hostname set-host pi.test.org
$ sudo hostname -f
pi.test.org

$ sudo hostname -d
test.org

$ sudo cat /etc/hostname
pi.test.org

$ curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io
$ sudo sh bootstrap-salt.sh -P

On master...
$ salt-key -L
Accepted Keys:
Denied Keys:
Unaccepted Keys:
raspberrypi <------ This not correct

Note that the host name has been changed and validated on the minion candidate, but the master receives the incorrect, previous host name.

Master Version...

 salt --versions-report
Salt Version:
          Salt: 3003

Dependency Versions:
          cffi: Not Installed
      cherrypy: Not Installed
      dateutil: 2.7.3
     docker-py: Not Installed
         gitdb: 2.0.5
     gitpython: 2.1.11
        Jinja2: 2.10
       libgit2: Not Installed
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 0.5.6
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     pycparser: Not Installed
      pycrypto: 2.6.1
  pycryptodome: 3.6.1
        pygit2: Not Installed
        Python: 3.7.3 (default, Jan 22 2021, 20:04:44)
  python-gnupg: Not Installed
        PyYAML: 3.13
         PyZMQ: 17.1.2
         smmap: 2.0.5
       timelib: Not Installed
       Tornado: 4.5.3
           ZMQ: 4.3.1

System Versions:
          dist: raspbian 10 buster
        locale: UTF-8
       machine: armv7l
       release: 5.10.27-v7+
        system: Linux
       version: Raspbian GNU/Linux 10 buster

Minion Version...

Salt Version:
          Salt: 3003

Dependency Versions:
          cffi: Not Installed
      cherrypy: Not Installed
      dateutil: 2.7.3
     docker-py: Not Installed
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 2.10
       libgit2: Not Installed
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 0.5.6
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     pycparser: Not Installed
      pycrypto: 2.6.1
  pycryptodome: 3.6.1
        pygit2: Not Installed
        Python: 3.7.3 (default, Jan 22 2021, 20:04:44)
  python-gnupg: Not Installed
        PyYAML: 3.13
         PyZMQ: 17.1.2
         smmap: Not Installed
       timelib: Not Installed
       Tornado: 4.5.3
           ZMQ: 4.3.1

System Versions:
          dist: raspbian 10 buster
        locale: UTF-8
       machine: armv6l
       release: 5.10.17+
        system: Linux
       version: Raspbian GNU/Linux 10 buster

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.