[BUG] Boot strap installation of minion on Raspbian OS (Debian 10 Buster) provides wrong hostname
@krionbsd is already working on this.
Since Apr 20, 2021.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.