-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Problem re-installing salt-minion #42656
Comments
I cant give you a salt --version report, that info no longer exists after I backed out the change to the snapshot. |
Is this related to this #42604 (comment) |
I dont think so directly anyway. After the salt-master broke on the server mentioned in #42604 I moved the salt master to a new RHEL7 server which is Python 2.7.4 (from memory) and then migrated my 150 clients to the new server. All of them migrated without a problem except this one. I dont know how long its been broken as I dont do day to day maintainance on the servers that is the ops team normally. I just found this while trying to migrate it. So far, a) Googling has not turned anything up that is of help b) as far as I can tell the OS and Redhat Repos work Ok ie I can install packages from redhat's repos OK. |
Ah got confused I can give you a versions on this one |
[root@vuwunicorhsat01 salt]# salt --version report |
The salt team will be after |
Sounds likes a combination of the original attempt to remove the package and then subsequent reinstall colliding. @dmurphy18 have you ever seen anything like this? |
[root@vuwunicorhsat01 salt-files]# salt --versions-report Dependency Versions: System Versions: [root@vuwunicorhsat01 salt-files]# |
This may be related to #42604 (comment) since I see satellite scripts referenced above. I have not seen the salt.scripts going missing due to an installed and I have been able to install and uninstall and reinstall salt-minion and salt-api without problems as stated in the other issue. |
Hmm, we have about 160 servers, all other salt-minon's are working, bar this one. I have tried to un-install and re-install still wont run. |
[root@vuwunicocatd001 ~]# yum remove salt-minion
[root@vuwunicocatd001 ~]# yum --setopt=tsflags=noscripts remove salt-minion
[root@vuwunicocatd001 ~]# rpm -q salt-minion |
So lets try and install salt-minion, [root@vuwunicocatd001 ~]# rpm -q salt-minion
[root@vuwunicocatd001 etc]# cat /etc/redhat-release
[root@vuwunicocatd001 salt]# |
@gzcwnk The %preun code is very simple 451 %preun minion I believe errors from it are due to conf issues with salt-minion in /etc/salt. I believe something is impairing the install and values expected to be installed in /etc/salt or not occurring. Best to restart clean, can you remove salt-minion again as follows: and then try to re-install salt-minion: and let me know the results of then configuring /etc/salt/minion for the salt-minion and service salt-minion restart. |
[root@vuwunicocatd001 etc]# service salt-minion status :( |
@gzcwnk Can you provide a list of directory /etc/salt and the contents of /etc/salt /minion |
ERROR: Unable to look-up config values for /etc/salt |
[root@vuwunicocatd001 etc]# more /etc/salt/minion
[root@vuwunicocatd001 etc]# |
I am left thinking its more like the environment has been stuffed up in some way? |
Pls do this to all your post of output #42656 (comment) so they can be read. |
@gzcwnk After setting the appropriate values for master and id in /etc/salt/minion, can you run the following: and report the output, it might help see why configuration values are not been seen. |
Hi, Ok a run with no changes, [root@vuwunicocatd001 etc]# bash -x /etc/init.d/salt-minion restart
|
what is "id"? |
So setting the salt master explicitly and I get no difference, [root@vuwunicocatd001 etc]# bash -x /etc/init.d/salt-minion restart
|
set id, made no difference, [root@vuwunicocatd001 salt]# !969
|
@gzcwnk Issues with satellite scripts were fixed with the latest release of Salt 2017.7.1. Wondering if this release resolved this issue for you |
Hi, Still cannot get the salt-minion to run. :( "on vuwunicocatd001 I have updated salt and salt-minion to 2017.7.1-1, but this did not help. [root@vuwunicocatd001 ~]# /etc/rc.d/init.d/salt-minion start |
@gzcwnk Wonder about the access rights along all of the path /etc/salt/minion, that is, minion might be accessible but wonder about etc and salt access rights ? |
Well on a working server, [jonesst1@vuwunicossj0001 ~]$ cd /etc/ On the non-working server, [root@vuwunicocatd001 ~]# cd /etc/ |
[root@vuwunicocatd001 etc]# getenforce |
Nothing in logs high lighting a denial of access |
trying a debug and I get, [root@vuwunicocatd001 ~]# salt-minion -l debug |
[root@vuwunicocatd001 ~]# bash -x /etc/init.d/salt-minion restart
|
@gzcwnk Given this is Redhat 6, wondering if you use PYTHONPATH ?. The files salt.scripts should be available from /usr/lib/python2.7/site-packages but if PYTHONPATH is set to something other than defaults then that could prevent these scripts from being reached. Can you try adding /usr/lib/python2.7/site-packages to PYTHONPATH and try again. |
[root@vuwunicocatd001 ~]# echo $PYTHONPATH [root@vuwunicocatd001 ~]# |
I have no idea what python path is |
@gzcwnk The issue can be due to not having the older support for Redhat 6 totally removed (it uses Python 2.6). Starting with 2017.7.x, salt uses Python 2.7 on Redhat 6. Some other users have reported issues with not finding the scripts too and it was found that it was due to their environment having python 2.7 already installed, for example in /usr/local/lib. Salt 2017.7.x installs a version of Python 2.7 in /usr/lib and it is this version which must be available to use with salt so that the correct scripts can be located /usr/lib/python2.7/site-packages/salt/scripts.py [root@localhost salt]# /usr/bin/python2.7 --version Hopefully this information helps to resolve your issue. |
@gzcwnk Can this issue be considered resolved and if so closed |
Closing this issue but feel free to re-open the issue if the problem still exists |
Description of Issue/Question
I found the salt-minion on a server broken, I had to un-install it with,
yum --setopt=tsflags=noscripts remove salt-minion
As I kept getting,
So when I try to install it and run it I get,
Setup
(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)
Steps to Reproduce Issue
(Include debug logs if possible and relevant.)
Versions Report
(Provided by running
salt --versions-report
. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: