Repository navigation
Closed
Labels
P1Priority 1PackagingRelated to packaging of Salt, not Salt's support for package management.PlatformRelates to OS, containers, platform-based utilities like FS, system based appsbugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work aroundstale
Milestone
Description
# wget -O install_salt.sh https://bootstrap.saltstack.com
# bash install_salt.sh
* INFO: PIPED THROUGH install_salt.sh -- Version 2015.05.07
* INFO: System Information:
* INFO: CPU:
* INFO: CPU Arch: armv6l
* INFO: OS Name: Linux
* INFO: OS Version: 3.18.11+
* INFO: Distribution: Debian 7.8
<snip>
* INFO: Running install_debian_check_services()
* INFO: Running install_debian_restart_daemons()
Starting salt minion control daemon: salt-minion.
* INFO: Running daemons_running()
* INFO: Salt installed!
After bootstrap trying to start
# salt-minion -l debug
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: pi.home.local
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: pi.home.local
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: pi.home.local
[DEBUG ] Reading configuration from /etc/salt/minion
etc etc
Version
# dpkg -l | egrep "zmq|salt"
ii libzmq3:armhf 3.2.3+dfsg-2~bpo70+1 armhf lightweight messaging kernel (shared library)
ii libzmq3-dev:armhf 3.2.3+dfsg-2~bpo70+1 armhf lightweight messaging kernel (development files)
ii python-zmq 13.1.0-1~bpo70+1 armhf Python bindings for 0MQ library
ii salt-common 2015.5.0+ds-1~bpo70+1 all shared libraries that salt requires for all packages
ii salt-minion 2015.5.0+ds-1~bpo70+1 all client package for salt, the distributed remote execution system
I also tried with an empty minion config, but the problem remains.
I am assuming(ohoh) that it should work out of the box after bootstrapping.
Am I doing something wrong ? Or doesn't this version work on a PI ?
Metadata
Metadata
Assignees
Labels
P1Priority 1PackagingRelated to packaging of Salt, not Salt's support for package management.PlatformRelates to OS, containers, platform-based utilities like FS, system based appsbugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work aroundstale
Activity
jfindlay commentedon Jun 25, 2015
@damonnk, is there another minion process running when you try to start a new process?
damonnk commentedon Jun 26, 2015
@jfindlay , no there is not.
Just to be sure, i double checked.
jfindlay commentedon Jun 27, 2015
@damonnk, this looks like a really strange issue. Salt itself is as portable as python, so as long as its dependencies are installed, it should work. The best I can think of is that there may be a dependency problem that is causing the minion process to erroneously loop as you've demonstrated. Is there any more interesting output with
salt-minion -l trace? Also, will you post the output fromsalt-minion --versions-report? Thanks.r0zar commentedon Jul 16, 2015
I'm seeing similar results on my RPi.
jfindlay commentedon Jul 16, 2015
@Heshuge, would you mind posting the output from
salt-minion -l traceandsalt-minion --versions-report? Thanks.r0zar commentedon Jul 17, 2015
(Also, this was output 3x during bootstrapping)
jfindlay commentedon Jul 17, 2015
There may be some dependency, upstream issues here. Salt is pure python and I'm sure nothing in python or its standard lib could cause an
illegal instruction. It may be that a raspberry pi (at least an older one) may be too underpowered to run a salt minion, but I am doubtful of this. I have been able to successfully run a salt minion on hardware with lesser capacity.neilr8133 commentedon Sep 8, 2015
I have observed the same behaviors during a reinstall on a previously-working Raspberry Pi B+.
Previously I installed a Salt minion on the Pi on 2015-02-22 (I believe I also upgraded it via apt-get on 2015-04-06 although it's unclear from my notes if the new version "took effect" or not). ((EDIT: 2015-09-07): Regardless of whether the oldest version was still running or not, it was definitely talking to the Salt Master.)
Due to filesystem corruption, on 2015-08-15 I was forced to reformat and reinstall the OS (NOOBS v1.4.1), and I noticed that running
sudo salt-call --local key.fingerseemed to hang: no response, but no error. Since then I've been trying various combinations of installing and reformatting, and even upgraded the Salt master, but the minion is not working properly and displays many of the behaviors commented above.For demonstration purposes, I begin with:
Download and install the bootstrap script:
Run the installer using
sudo sh install_salt.sh -Pand it does a bunch of stuff before ending:I then try (unsuccessfully) to confirm the versions of the installed software (I hit CTRL-C after about a minute of waiting):
Attempt to stop the minion and restart in debug mode:
Eh? It's still running?
Force quit, confirm it's not running:
Now run the minion in a debug mode (hit CTRL-C after several minutes):
Checking the contents of
/tmp/bootstrap-salt.logshows the following:Note the presence of warnings about
There is no public key available for the following key IDs: 7638D0442B90D010as was mentioned by others in this thread.During debugging, at various times I too received errors about "Illegal operation". At the time I thought I had debuged that to be a matter of not running the command as sudo but I have not been able to reliably reproduce this behavior.
I have also tried (and failed) to use the documented instructions to install the second-most-recent version, but it might be better to stop here and keep the focus on the current problem.
Any suggestions?
r0zar commentedon Sep 8, 2015
We ended up switching from Raspbian to Arch. We got it working with a Pi 2
on Raspbian, but in order to support both platforms we had to move to Arch.
On Sep 8, 2015 12:21 AM, "neilr8133" [email protected] wrote:
8 remaining items
virtualguy commentedon Jan 26, 2016
I just hit this, I had been bootstrapping pi's just fine, albeit with an older version of salt-bootstrap (2015.08.06 + mods). It seems to only be broken on the raspbian lite image for me. I've been using the offical Raspbian jessie images:
2015-09-24-raspbian-jessie (works)
2015-11-21-raspbian-jessie-lite (fails)
So its probably a dependency issue or a botched build of some package in the lite image.
Running:
python -vvv /usr/bin/salt-callgives the following output which may point to openssl, of course I might be on the wrong track....virtualguy commentedon Feb 29, 2016
When following the latest install instructions here: https://github.com/saltstack/salt/blob/2015.8/doc/topics/installation/debian.rst
It will fail to run on a raspberry pi (Illegal Instruction). But after running another apt-get upgrade which unpacks python-tornado 4.2.1-1+b2 (from stretch) over 4.2.0-1~bpo8+1 (from jessie-backports) it magically works.
I think the issues are from using the standard debian repo for binary packages instead of raspbian. The python-tornado package from the standard debian archive doesn't seem to want to run on armv6 which makes sense. I'll test a fresh install without using jessie-backports and if that works i'd suggest we update the documentation for install on raspbian.
vutny commentedon Mar 1, 2016
@damonnk For now, Salt Bootstrap doesn't support automatic installation on Raspbian. Try to follow installation instruction that @virtualguy has suggested.
I guess this issue could closed as a duplicate of saltstack/salt-bootstrap#695.
Thanks!
vutny commentedon Mar 9, 2016
Ping @jfindlay
damon-atkins commentedon Mar 9, 2016
The Raspberry Pi 1 and 2 range are an old ARM 32 bit chip 99% of distros have dropped support for this old ARM chip. Most (if not all) of the other single board chips run the current ARM 32bit chip So for Raspberry Pi 1 and 2 you must get any binaries for the Raspberry Repo and not any other source. Raspberry Pi 3 just release is current 64bit chip which will see the Raspberry Pi being able to run more distros. I run fedora on a WandBoard which uses current 32bit chip and point the repo at the x86 https://repo.saltstack.com/yum/redhat/latest/x86_64/latest/ and run dnf install salt* it picks up the noarch from salt the the binaries come from fedora.
arthurzenika commentedon Mar 9, 2016
I think it's a real shame that salt-bootstrap does not support raspbian and all raspberry pi's out of the box. At our salt meetup (Paris), we often have people complaining about this. Note that often people want to try out at home this technology before recommending it to their boss or at work, so in my humble opinion, theses users should get the best UX possible, and for all versions of the Pi. Seeing that a project considers Pi1 or 2 as "old" platforms is usually perceived as "oh, so it's meant to run on some cutting edge hardware". I would like to keep on encouraging hobbyists to try out salt for things such as home automation like suggested in https://docs.saltstack.com/en/latest/topics/proxyminion/index.html ... it's getting harder and harder.
vutny commentedon Mar 9, 2016
@arthurlogilab I think you're very welcome to submit PR to https://github.com/saltstack/salt-bootstrap/pulls
As for now, you're able to install Salt manually from Raspbian testing repo:
https://docs.saltstack.com/en/latest/topics/installation/debian.html#installation-from-the-debian-raspbian-official-repository
Very simple script (few lines of Bash) could be written following this guide to perform bootstrapping exclusively for Raspbery Pi.
damon-atkins commentedon Mar 9, 2016
I got Puppet running on ARM, logged a case for better support and got back not supported at all, and no plans to support. SaltStack have a good attitude towards ARM Platform. If the main distro's do not support it older ARM chips its a bit hard for Salt Stack. But no-arch repo for common distros should be enough.
cprima commentedon Jan 3, 2017
TLDR: Use -P
Ran into the same problem, tried the approach "few lines of bash" but there is also a even simpler workaround. First the bash approach:
(The keyserver lines are necessary at least in the current Raspbian 2016-11-25-raspbian-jessie)
But as seen in https://github.com/saltstack/salt-bootstrap/blob/a8e6b950c755779957355fc5c7f1c6ca04024ed8/bootstrap-salt.sh#L3031 , the current default-development-branch's commit, it is already enough to specify the -P option
-P Allow pip based installations.
as then the required version will be satisfied.
So this is then the currently working bash script to install salt master and minion on a Raspberry:
Tested on Raspbian version 2016-11-25-rasbian-jessie.
stale commentedon Aug 16, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.