Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-07-16

| Channels | #salt index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:00 childc2 fwiw, I'm happy to write up whatever I figure out to be the issue here on github if it does turn out to be a bug with this release
00:01 childc2 it was detecting the platform before on 2015.8.7 (Beryllium)
00:06 mapu joined #salt
00:21 amcorreia joined #salt
00:23 iggy childc2: did you check the issue tracker to see if it had already been reported?
00:24 preludedrew joined #salt
00:27 childc2 iggy: yeah, I searched around a little yesterday when I first ran into this (which is how I ended up wandering into looking through the python that generates those grains). I was kinda hoping this would be a known issue I just missed
00:27 kevinquinnyo1 joined #salt
00:29 childc2 I also don't really see any major changes to the gains in the release notes other than the __proxyenabled__ handling, but that shouldn't apply here
00:55 flowstate joined #salt
01:04 edrocks joined #salt
01:21 catpigger joined #salt
01:23 racooper joined #salt
01:29 west575 joined #salt
01:46 The_Ball joined #salt
01:47 ilbot3 joined #salt
01:47 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.5.10, 2015.8.10, 2016.3.1 | Support: https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | See also: #salt-devel, #salt-offtopic | Ask with patience as we are volunteers and may not have immediate answers
01:55 flowstate joined #salt
02:10 justanotheruser joined #salt
02:21 squishypebble1 joined #salt
02:22 onlyanegg joined #salt
02:37 keys left #salt
02:45 bastiand1 joined #salt
02:54 aberdine joined #salt
03:26 treaki_ joined #salt
03:38 badon joined #salt
03:39 iceyao joined #salt
04:05 edrocks joined #salt
04:22 POJO joined #salt
04:28 nethershaw joined #salt
04:32 xenoxaos joined #salt
04:39 stupidnic joined #salt
05:02 rickflare2 joined #salt
05:03 DEger joined #salt
05:30 nethershaw joined #salt
06:20 mrBen2k2k2k joined #salt
06:44 impi joined #salt
07:08 felskrone joined #salt
07:11 beardedeagle joined #salt
07:40 ruxu joined #salt
07:44 goldielox joined #salt
07:45 felskrone joined #salt
07:47 ALLmightySPIFF joined #salt
07:50 ruxu joined #salt
07:51 beardedeagle dumb question but I have had no sleep for going on 24+ hours now, beacons in masterless?
07:51 hemebond beardedeagle: I don't think so, but I've never thought about it. How would it work?
07:52 hemebond Doesn't masterless mean there are no processes running?
07:52 hemebond No salt-master, no salt-minion.
07:52 hemebond Nothing to hear the event.
07:53 beardedeagle you're right
07:53 beardedeagle I need sleep
07:53 hemebond g'night :-)
08:05 ageorgop joined #salt
08:07 iggy ^ wisdom is correct
08:11 futuredale joined #salt
08:37 pcdummy iggy: Development of the LXD stuff now happens here: https://github.com/pcdummy/saltstack-lxd-module
08:52 DEger joined #salt
09:03 ajw0100 joined #salt
09:07 pcdummy Anyone here got best practices and tips on modules and state development?
09:17 fracklen joined #salt
09:29 felskrone joined #salt
09:30 djural joined #salt
09:32 bmcorser joined #salt
09:36 m0nky joined #salt
09:38 ribx joined #salt
09:45 colegatron joined #salt
10:03 colegatron joined #salt
10:10 nidr0x joined #salt
10:27 deniszh joined #salt
10:37 XenophonF pcdummy: take a look through https://github.com/saltstack-formulas, or https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
10:37 XenophonF you're also welcome to browse the states/formulas I've published at https://github.com/irtnog
10:40 SpX joined #salt
10:40 SpX joined #salt
10:40 garphy joined #salt
10:55 west575 joined #salt
10:56 pcdummy XenophonF: not interested in formulas but _states and _modules.
10:57 pcdummy XenophonF: thanks though!
11:05 TyrfingMjolnir joined #salt
11:10 KingJ joined #salt
11:17 nidr0x joined #salt
11:18 mikecmpbll joined #salt
11:27 iceyao joined #salt
11:28 Junka joined #salt
11:28 Junka justanotheruser; open your blood pressure for me
11:37 ribx joined #salt
11:45 _JZ_ joined #salt
12:08 edrocks joined #salt
12:13 impi joined #salt
12:14 squishypebble1 joined #salt
12:17 ribx joined #salt
12:26 ninjada joined #salt
12:44 pcdummy Howto check in a formula if an execution module is available?
12:54 DEger joined #salt
12:58 babilen pcdummy: if 'foo.bar' in salt or something along those lines
12:58 JPT joined #salt
13:06 BlackBishop anyone saw some issues with many connections to 1 minion ?
13:08 lightus joined #salt
13:09 BlackBishop I got the connections graphed .. every hour or so another connection or two pop-up ...
13:12 BlackBishop the weird thing is that the connections are ESTABLISHED only on master .. I don't see them on the minion
13:20 fredvd joined #salt
13:21 amcorreia joined #salt
13:44 linovia Is there a recommended UI for salt ? I'd like to allow some people to launch some commands without granted them shell access to the salt master
13:44 hemebond BlackBishop: Many connections to 1 _minion_?
13:47 BlackBishop hemebond: from one minion .. yeah ...
13:47 BlackBishop I'm saying from since I see the destination port is the master 4505 .. so that must be the minion connecting to the master
13:48 BlackBishop ( and a random port on the minion side )
13:48 BlackBishop but if I ssh in the minion .. there's only 1 connection
13:48 BlackBishop I have 10 minions .. only one has this issues
13:50 BlackBishop I have restarted the master .. shall wait a lil' bit and see if they increase again
13:54 mrBen2k2k2k joined #salt
13:55 shoemonkey joined #salt
14:03 hemebond BlackBishop: I don't understand.
14:03 hemebond The minion is connected to the master, yeah?
14:03 hemebond Is there supposed to be more than one connection?
14:04 hemebond Oh, one on 4505 and one on 4506?
14:04 bluenemo joined #salt
14:04 hemebond Oh, no. It differs.
14:05 BlackBishop hemebond: nope, alot of them from minion:random_port to master:4505
14:05 hemebond I have a minion with only one established connections to the master.
14:05 BlackBishop and the number increases every hour or so
14:05 BlackBishop hemebond: yep, I have 9 other minions like that .. there is only 1 that's giving me this headache
14:05 hemebond Oh, lots of connections on 4505 and increasing.
14:05 hemebond Sounds familiar.
14:06 BlackBishop yep, but only 1 minion is doing that ...
14:06 BlackBishop and I see them on the master but not on the minion
14:06 hemebond Oh.
14:06 hemebond Could your process be dying/restarting and leaving old connections open?
14:07 debian112 joined #salt
14:07 BlackBishop which one ?
14:07 BlackBishop the minion ?
14:07 hemebond Yeah
14:08 BlackBishop nope ..
14:08 BlackBishop and even if that would be the case .. I don't see the established connections on the minion, I only see them on the master
14:08 hemebond Anything customised in the master or minion configs?
14:09 hemebond Have you tried running the minion in debug mode?
14:09 BlackBishop on the minion I have master: id: master_alive_interval: hash_type:
14:09 hemebond or the master?
14:10 BlackBishop on the master I have interface: ipv6: open_mode: hash_type
14:10 BlackBishop ( ipv6 false, open_mode false .. which are the defaults anyway I think )
14:10 hemebond https://github.com/saltstack/salt/issues/28640
14:10 saltstackbot [#28640][OPEN] Stale connections to master return port 4506 | I noticed that on one of my masters  there are piling up stale TCP connections from minions (Linux, Windows) to ```return``` port 4506.  There is  more than 1 such connection per minion.  There shouldn't be any if there is no job running on it....
14:10 hemebond Which versions?
14:11 BlackBishop latest
14:12 BlackBishop will try to yum remove zeromq3 and see what happens
14:12 hemebond Hmm, the latest uses 0mq 4
14:13 BlackBishop yeah, I had that zmq4 and 3 installed
14:13 BlackBishop remove 3 just to be sure
14:13 hemebond Ah
14:13 BlackBishop dunno why I had it anyway
14:14 hemebond Maybe just a leftover dependency?
14:14 hemebond Not sure when Salt changed to 4.
14:16 BlackBishop shall see how this goes
14:17 Trauma joined #salt
14:17 BlackBishop I seem to have zeromq3 on the other machines too .. and they don't have issues
14:18 hemebond Debug logging is the only other thing I can think of.
14:19 BlackBishop Will set it on debug and see how that goes
14:21 ninjada joined #salt
14:24 M-necronian joined #salt
14:26 pcdummy https://github.com/pcdummy/saltstack-lxd-formula <-- :-)
14:28 pcdummy gtmanfred: this formula can get added to saltstack-formulas? https://github.com/pcdummy/saltstack-lxd-formula
14:28 pcdummy iggy: ping :)
14:28 pcdummy gtmanfred: ofc once i removed the WIP flag.
14:29 pcdummy theblazehen: ping
14:40 POJO joined #salt
14:43 futuredale joined #salt
14:55 shoemonkey joined #salt
15:00 KingJ joined #salt
15:12 shoemonkey joined #salt
15:12 barajasfab joined #salt
15:13 theblazehen Hey pcdummy. Checking it out now
15:13 KingJ joined #salt
15:17 theblazehen pcdummy, iggy I have some ideas regarding layout of salt contrib repos, which can address the problems with external modules that get required if you make your own modules etc.  I want to test my concepts fully, create a kind of example contrib repo, and then I'll write some docs. Would be glad to get some feedback on my ideas there.
15:20 ronnix joined #salt
15:34 nyx joined #salt
15:37 iggy pcdummy: sup?
15:39 pcdummy iggy: just wanna get feedback :)
15:40 iggy theblazehen: mock something up and we can have a few people look at it
15:40 theblazehen iggy: Yeah, that's the plan
15:40 pcdummy theblazehen: not sure what you mean.
15:41 pcdummy iggy: lxd.init and "lxd config set" already works, working on "lxd_profile.managed"
15:41 pcdummy Not sure it should be called "lxd.profile_managed" or lxd_profile.managed"
15:41 GreatSnoopy joined #salt
15:42 iggy dependencies are hard (ask rpm developers)
15:42 theblazehen pcdummy: I'm not involved in the salt formulas organization, but in new salt contribs one
15:42 pcdummy salt-contribs ? *exited*
15:43 pcdummy theblazehen: do you mean that: https://github.com/saltstack/salt-contrib _
15:43 pcdummy ?
15:44 pcdummy ahh i need my LXD stuf fin salt-contrib :/
15:45 iggy we started a saltstack-contrib org yesterday... it's a complement to saltstack-formulas (not a replacement)
15:45 shoemonkey joined #salt
15:46 iggy (saltstack/salt-contrib has been slow to merge, etc)
15:47 iggy pcdummy: fwiw, you can put _modules and _states in a formula (see postgres-formula)
15:47 ruxu joined #salt
15:48 pcdummy iggy: thats best! TA
15:48 pcdummy hehe! :)
15:50 pcdummy iggy: so _modules and _states of that formula get loaded by salt?
15:51 pcdummy even if i put them in salt/base/lxd/(_modules|_states) ?
15:53 pcdummy theblazehen, iggy: so "saltstack-contrib" is there for stuff that isn't read for "saltstack-formulas", right?
15:53 pcdummy ready
15:57 iggy it's more for stuff that isn't necessarily a formula per se
15:57 pcdummy I have that: https://github.com/pcdummy/saltstack-resources
15:57 iggy like all the stuff that's currently in saltstack/salt-contrib... grains, modules, states (without associated sls files that would make up a formula), etc
15:59 iggy blazehen wants to work on some more complete modules/states I think (rather than minimal states/modules with a metric butt ton of jinja/yaml/pillar data around them)
15:59 iggy (correct me if I'm wrong)
16:05 colegatron joined #salt
16:08 macheck left #salt
16:08 theblazehen Yeah, want to do more complex states mainly
16:08 macheck joined #salt
16:09 amcorreia joined #salt
16:09 theblazehen And I also wabt to use my states as I normally would with the official ones, not only with pillar data.
16:09 theblazehen s/wabt/want/
16:12 pcdummy theblazehen: i don't understand your last sentence, can you reword it please.
16:14 pcdummy My states with the official ones...
16:14 pcdummy not only with pillar data.
16:15 theblazehen pcdummy: Eg, with the built in files.managed state you would pass the parameters to it directly as part of your sls file (I kind of think of the current built in states as building blocks for my own things basically), whereas formulas try to be an all in one setup where you just pass variables in
16:15 scoates joined #salt
16:15 pcdummy ahh, thats what i do
16:16 pcdummy https://rene.jochums.at/having-fun-with-saltstack-and-ext_pillar-mongo <-- like here the 3rd code block.
16:16 pcdummy A generator which generates states from variables.
16:19 theblazehen Ah, okay
16:19 afics joined #salt
16:20 theblazehen That _could_ be workable up to a point, but I think a seperation of "building blocks" (_states, _modules, _renderers etc) and finished solutions (formulas) would be good
16:21 iggy we're all figuring this stuff out together :)
16:21 pcdummy Very nice!
16:21 iggy salt's flexibility is sometimes a curse, I doubt a single solution works for everyone anyways
16:22 iggy the one thing we don't want to do is duplicate effort
16:24 theblazehen I'm not sure if I should have formulas included into the salt-contrib repos as well. For one I feel like it allows people to provide formulas that can do complex logic without needing to put it in the .sls files, and the salt-contrib repos could provide a kind of example usage if they include a formula with it, but like iggy says, that duplicates effort.
16:26 * theblazehen is going to work on an example that (hopefully) uses multiple salt resources (if I can call it that), and see how you all think of it?
16:28 iggy code is often easier than words
16:30 theblazehen Yeah. Exactly why I'm going to write this thing, and then base documentation off what is implemented in the end after feedback :)
16:33 iggy I forgot to ask if anyone else wanted in on the saltstack-contrib thing? babilen, etc (don't see any other formulas peeps on irc, but I didn't check super well)
16:33 pcdummy Would love to get saltstack-resources there
16:34 pcdummy But only if others wanna contrib.
16:41 catpig joined #salt
16:41 shoemonkey joined #salt
16:55 ALLmightySPIFF joined #salt
16:55 DEger joined #salt
16:56 nyx joined #salt
16:58 BlackBishop https://paste.fedoraproject.org/391749/46868826/
16:58 BlackBishop hemebond: here's the trace .. it still happens
16:59 BlackBishop and if I wait long enough .. it'll get into hundreds of connections
17:02 BlackBishop if anybody else cares to take a look .. the issue is that 1 ( out of 10 other minions identical except the alive_interval part ) makes some connections and the master sees them as alive for some reason while not on the minion
17:10 iggy :flowchart:
17:10 iggy (i.e. blame network)
17:12 BlackBishop iggy: ok, still, I'm sure there a way on the master to close those connections
17:12 iggy that's wallpapering
17:12 iggy fix the real issue
17:15 BlackBishop iggy: it's a dumb azure machine .. clean as a whistle ..
17:15 BlackBishop deployed just as the rest using the same ansible playbook
17:16 BlackBishop and in the last 10 minutes .. two more connections appeared :|
17:17 iggy did you try killing it and redeploying?
17:17 fracklen joined #salt
17:18 BlackBishop iggy: yep
17:24 cyborg-one joined #salt
17:27 Rumbles joined #salt
17:29 ponyofdeath joined #salt
17:35 shoemonk_ joined #salt
17:38 POJO joined #salt
17:38 POJO joined #salt
17:55 deus_ex joined #salt
17:56 impi joined #salt
18:10 brotatochip joined #salt
18:13 subsignal joined #salt
18:14 armyriad joined #salt
18:26 beardedeagle joined #salt
18:28 Nahual joined #salt
18:30 Shirkdog joined #salt
18:30 Shirkdog joined #salt
18:32 aw110f joined #salt
18:34 shoemonkey joined #salt
18:41 aw110f_ joined #salt
18:44 zer0def joined #salt
18:46 ALLmightySPIFF joined #salt
18:46 flowstate joined #salt
18:52 subsignal joined #salt
19:06 justanotheruser joined #salt
19:17 DEger joined #salt
19:20 babilen iggy: I'd be happy to take a look every now and then, yeah
19:40 alinuxninja joined #salt
19:54 flowstate joined #salt
20:06 bilal80 joined #salt
20:12 kus joined #salt
20:30 alinuxninja joined #salt
20:31 Exapiper joined #salt
20:43 kevinquinnyo1 joined #salt
20:51 garphy joined #salt
20:55 flowstate joined #salt
20:57 garphy joined #salt
21:03 ruxu joined #salt
21:05 ruxu joined #salt
21:06 ruxu joined #salt
21:08 TomJepp joined #salt
21:11 shoemonkey joined #salt
21:14 ruxu joined #salt
21:15 JamieH joined #salt
21:15 supermike_ joined #salt
21:16 ruxu joined #salt
21:28 Rumbles joined #salt
21:31 pcdummy iggy: https://github.com/pcdummy/saltstack-lxd-formula#id5 <-- thanks for your initial review!
21:31 pcdummy iggy: will document all formulas like this.
21:31 pcdummy s/formulas/states/
21:36 impi joined #salt
21:46 shoemonkey joined #salt
21:54 ruxu joined #salt
21:55 flowstate joined #salt
22:06 alinuxninja joined #salt
22:11 badon joined #salt
22:17 Shirkdog_ joined #salt
22:20 wm-bot4131 joined #salt
22:27 _JZ_ joined #salt
22:31 lero joined #salt
22:38 onlyanegg joined #salt
22:42 shoemonkey joined #salt
22:48 johnkeates joined #salt
22:53 flowstate joined #salt
22:53 kevinquinnyo1 joined #salt
22:54 amcorreia joined #salt
22:55 colegatron joined #salt
22:56 Rumbles joined #salt
23:02 andi- joined #salt
23:03 andi- ohai, is there a way to register a customer jinja2 filter with salt?
23:05 Rumbles joined #salt
23:07 shoemonkey joined #salt
23:10 wm-bot4 joined #salt
23:45 DEger joined #salt
23:48 shoemonkey joined #salt
23:49 scottcrooks joined #salt
23:50 sc250024 Is it possible to override a pillar value from within a state?
23:51 johnkeates yes, just don't use the pillar data
23:51 sc250024 Hmmm
23:52 johnkeates pillar data in itself doesn't do anything
23:52 johnkeates it's the state that pulls it in
23:52 sc250024 Right
23:52 johnkeates if you mean manipulate one state with another state, then no
23:52 sc250024 I'm writing a formula, user has the option to specify the configuration directory in pillars using a `lookup`
23:52 johnkeates ah
23:52 johnkeates then, also use 'defaults'
23:52 johnkeates as in the template-formula
23:52 johnkeates then you can have sane defaults, overridden loopup values and pillar values
23:52 johnkeates cover all use cases that way
23:53 sc250024 Yes, I have that now, map.jinja with default value for config dir, override using 'formula:lookup' Pillar
23:54 sc250024 You guys know OpenVPN NL? It's a hardened version of OpenVPN, and it uses the dir /etc/openvpn-nl instead of /etc/openvpn
23:55 sc250024 Basically I want to set that pillar from the state file if it's not defined
23:55 johnkeates yes
23:55 flowstate joined #salt
23:55 sc250024 Because otherwise all the configs go in the wrong place
23:55 johnkeates it's better to set it using defaults
23:55 johnkeates and then only not use it if it's overridden
23:55 johnkeates if you simply want to cover 2 cases, use jinja and an if-statement
23:58 sc250024 Would you mind taking a look at what I have? I'm actually forking an official SaltStack formula for OpenVPN
23:58 sc250024 Adding the OpenVPN-NL option

| Channels | #salt index | Today | | Search | Google Search | Plain-Text | summary