-
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
2014.7.5 - Windows - pkg.list_pkgs - "nxlog" never shows up in output. #23004
Comments
@b18 Offhand, I don't see anything here that looks like you're doing anything wrong. I don't know the windows code very well, but I bet your intuition is correct. There might be a bug in @twangboy and @UtahDave: Have either of you com across this before? |
Your installer and uninstaller paths look strange to me. The path doesn't correctly resolve in windows. The windows software repository is /srv/salt/win/repo. You put all your installation files in that directory. The minion doesn't see that directory. To reference that in your sls file, use "salt://". That tells the minion that it's in the master's windows repository. You can also point to a file on the internet using the url. So instead of:
you should have something like:
The same would apply for the uninstall path. See the documentation for more examples: http://docs.saltstack.com/en/latest/topics/windows/windows-package-manager.html#usage Let me know if this helps. |
Yep, you're absolutely correct on that. I'll fix up my SLS file. That being said, even with the software installed and not having a winrepo SLS in play, just a list.pkgs still never shows the software installed on the minion. Thanks! |
@b18 I have NXLOG listed correctly on my winrepo
I have queried some boxes I have where nxlog was installed through another non-salt method and it shows up as this which is why I called everything NXLOG-CE as I am using the community version.
I also seem to be getting the same problem as you:
|
After some further investigation I suspect there are just bugs across various versions. I've got multiple different versions of minions across the data center. 2014.1.0, 2014.7.0 2014.7.1 and 2014.7.5 is the latest which it seems i need to upgrade to. When I upgraded the minions that had issues to 2014.7.5 then I was able to install NXLOG correctly, it doesnt show up in output
NXLog also doesnt show up:
A 2014.1.0 minion lists NXLOG correctly:
|
Thanks for all the work you've done hunting this down. I believe the patch I submitted yesterday should fix the problem with nxlog not showing up properly. I just tested it on my 32bit test minion. nxlog shows up whether it was installed via salt, administrator, or another user. It's a pretty big change so I need to have more eyes on it before it gets merged. |
No problem, glad to help with more bugreports. Thanks for pointing out the patch report, next time I will look further for patch submissions. I was actually looking into something completely different and thought I would contribute to what @b18 was experiencing. |
Nice @dariusjs ! - I was in the process of implementing some logging stuff and trying to simplify the management of NXLog across hundreds of systems. Thanks to everyone for the help! |
@b18, look through my gist GitHub for further examples of you need them. I've got a windows nxlog config and sending all of that to logstash/ELK stack. https://gist.github.com/dariusjs I haven't gotten around to trying to write a module as i am doing everything through state files and pillars so not doing anything too fancy. I can put those up if you need them on Monday. |
#23433 was merged on May 11. The fix should be included in 2014.7.6 and 2015.5.1+. Please let me know if the issue is NOT resolved. I am closing this ticket. |
Thanks for the assistance! |
Salt-Master: 2014.7.5 - Ubuntu 14.04 LTS
Salt-Minion: 2014.7.5 - Windows Server 2008 R2 Enterprise
NXLog is an x86 application that runs on both x86 & AMD64 Windows Server platforms that parses log messages and sends to a syslog server. I'm trying to utilize SaltStack's Windows repo feature to manage this application on my minions to keep it & its related configuration up to date. When I run..
I get output such as...
...with my packages listed, except that NXLog-CE NEVER shows up. The only thing that I can think of is the fact that it's an x86 package on an AMD64 cpuarch system, possibly causing the issue. I've got NXLog (version 2.9.1347) running on lots of Windows systems, and it does not show up in the pkg.list_pkgs output for any of these systems (all Server 2008).
In regards to the actual SaltStack setup on my master, my SLS for this package looks as follows for the moment:
I have confirmed that running "nxlog.msi /quiet /norestart" runs successfully on the server. When I try to run:
I get the following:
The last thing of note that is that my salt-minion's log file is completely empty, so I don't see anything relevant there. Also, uninstalled/reinstalled the package, all that good stuff - to no avail. I'm just curious if I'm doing something incorrectly (very possible), or if this is a bug of some sort. Thanks!
The text was updated successfully, but these errors were encountered: