Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2018-05-17

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

All times shown according to UTC.

Time Nick Message
00:00 onslack joined #salt
00:10 sayyid9006 joined #salt
00:18 KevinAn275773 joined #salt
00:32 dxiri joined #salt
00:37 Deadhand joined #salt
00:42 dxiri joined #salt
00:56 KevinAn275773 joined #salt
01:01 joshin joined #salt
01:09 stooj joined #salt
01:40 noobiedubie joined #salt
01:57 ilbot3 joined #salt
01:57 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2017.7.5, 2018.3.0 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic, and https://saltstackcommunity.herokuapp.com (for slack) <+> We are volunteers and may not have immediate answers
02:14 cgiroua joined #salt
02:25 shiranaihito joined #salt
02:28 bluenemo joined #salt
02:43 nixjdm joined #salt
02:52 masber joined #salt
02:58 Deadhand joined #salt
03:13 noobiedubie joined #salt
03:23 noobiedubie joined #salt
03:41 nixjdm joined #salt
03:45 Deadhand joined #salt
03:56 masuberu joined #salt
04:02 masber joined #salt
04:08 hrumph joined #salt
04:37 Deadhand joined #salt
04:42 jesusaur joined #salt
04:58 ProT-0-TypE joined #salt
05:06 Deadhand joined #salt
05:17 tiwula joined #salt
05:18 Deadhand joined #salt
05:21 stooj joined #salt
05:23 sauvin joined #salt
05:34 orichards joined #salt
05:42 dezertol joined #salt
05:53 nidr0x joined #salt
05:57 fuhry joined #salt
06:05 noobiedubie joined #salt
06:11 gmoro_ joined #salt
06:17 dxiri joined #salt
06:32 exarkun joined #salt
06:34 cbosdonnat joined #salt
06:41 DanyC joined #salt
06:48 dxiri joined #salt
06:48 Ricardo1000 joined #salt
06:49 Ricardo1000 joined #salt
06:53 briner joined #salt
06:58 awerner joined #salt
07:14 tom[] joined #salt
07:17 Hybrid joined #salt
07:27 tom[] joined #salt
07:30 orichards joined #salt
07:32 dxiri joined #salt
07:33 mikecmpbll joined #salt
07:34 rollniak joined #salt
07:35 arlyon joined #salt
07:37 jrenner joined #salt
07:48 miruoy joined #salt
07:51 DanyC joined #salt
08:04 mikecmpbll joined #salt
08:06 toanju joined #salt
08:15 eseyman joined #salt
08:32 mavhq joined #salt
08:46 Mattch joined #salt
08:46 eseyman joined #salt
08:58 briner joined #salt
09:03 dxiri joined #salt
09:04 zulutango joined #salt
09:14 xet7 joined #salt
09:20 cyteen_ joined #salt
09:27 briner joined #salt
09:48 dxiri joined #salt
09:49 sh123124213 joined #salt
09:57 dezertol joined #salt
09:57 briner joined #salt
10:02 briner_ joined #salt
10:12 Naresh joined #salt
10:33 dxiri joined #salt
10:51 xet7 joined #salt
10:52 miruoy joined #salt
11:00 hoonetorg joined #salt
11:21 darioleidi joined #salt
11:22 darioleidi joined #salt
11:27 nku joined #salt
11:35 miruoy joined #salt
11:35 UForgotten joined #salt
11:38 stooj joined #salt
11:40 oida joined #salt
11:43 Tucky joined #salt
11:44 Tucky joined #salt
11:44 justanotheruser joined #salt
11:46 noobiedubie joined #salt
11:47 dendazen joined #salt
11:48 dxiri joined #salt
11:54 crux-capacitor joined #salt
12:14 ExtraCrispy joined #salt
12:22 Nahual joined #salt
12:40 DammitJim joined #salt
12:55 LostSoul joined #salt
13:05 bluenemo joined #salt
13:10 xist joined #salt
13:13 exarkun joined #salt
13:14 briner_ joined #salt
13:17 mchlumsky joined #salt
13:25 briner joined #salt
13:34 wavded joined #salt
13:35 bluenemo joined #salt
14:15 sjorge joined #salt
14:18 tiwula joined #salt
14:26 sjorge joined #salt
14:27 cgiroua joined #salt
14:27 _xor joined #salt
14:28 openstacking_123 joined #salt
14:28 noobiedubie joined #salt
14:29 dxiri joined #salt
14:30 briner joined #salt
14:36 jxs1 joined #salt
14:53 Kelsar joined #salt
14:54 racooper joined #salt
14:58 dxiri joined #salt
15:14 whytewolf joined #salt
15:26 aanriot joined #salt
15:30 wavded joined #salt
15:34 arlyon joined #salt
15:49 bluenemo joined #salt
15:51 stooj joined #salt
16:05 pentabular joined #salt
16:22 DanyC joined #salt
16:31 briner joined #salt
16:36 MichaelRomig joined #salt
16:37 wavded joined #salt
16:52 hiroshi joined #salt
17:04 Eugene joined #salt
17:08 jrj_ joined #salt
17:18 _maniac_ joined #salt
17:18 DanyC joined #salt
17:26 racooper any update on the status for 2018.3.1?
17:34 Eugene joined #salt
17:38 summers joined #salt
17:39 summers Hello, anyone using salt-ssh and git ext_pillars at any sort of scale notice that the git operations are really numerousm and if one is using github for pillar repos, can result in rate limiting and breakage of runs?
17:40 summers I see that for each minion in my target expression, it does a git update type deal for each pillar repo defined
17:40 summers so in my case, where I have max_procs=8, and 8 pillar repos, it appears to be doing 64 git ops
17:41 summers this seems a little odd.
17:41 summers besides the fact that I get lock file contention, github is unhappy
17:42 summers I am very curious if using pillar cache would fix this sort of thing
17:42 summers or if there are other strategies available that might aleviate this sort of behavior
17:47 ymasson joined #salt
17:49 dxiri joined #salt
17:51 motherfsck joined #salt
17:52 wavded joined #salt
17:55 mikecmpbll joined #salt
17:59 cliluw joined #salt
17:59 toanju joined #salt
18:04 SneakyPhil joined #salt
18:05 SneakyPhil Hi everybody. Does anybody know how to use the haproxy module? I keep getting     'haproxy.get_sessions' is not available.
18:05 SneakyPhil I cannot import haproxy.cmds or haproxy.conn and am unsure where to find those.
18:06 miruoy joined #salt
18:16 SneakyPhil Ah, you need a specific pip package that isn't referenced except in this closed PR https://github.com/saltstack/salt/pull/25679
18:24 onovy joined #salt
18:33 hemebond joined #salt
18:52 dendazen joined #salt
19:02 pentabular joined #salt
19:15 onovy joined #salt
19:27 lordcirth_work joined #salt
19:30 lordcirth_work joined #salt
19:36 miruoy joined #salt
19:46 dxiri joined #salt
19:46 arlyon joined #salt
19:54 dave_den joined #salt
20:02 getSomethingGood joined #salt
20:13 csmule joined #salt
20:13 wavded joined #salt
20:23 defsdoor joined #salt
20:43 DanyC joined #salt
20:53 woodtablet joined #salt
20:55 dendazen joined #salt
20:57 woodtablet hello
20:58 woodtablet can anyone help me figure out why my custom grain isnt working after an salt and salt-minion upgrade ? I found the grain python module on the minion and ran it by hand and still works. I upgraded salt from 2016.x.x to 2017.7.5.
20:59 woodtablet i did this too : salt '*' saltutil.sync_all && salt-run saltutil.sync_all
20:59 woodtablet but when i run grains.items on the master, my grain isnt in the dict
21:01 woodtablet the grain is something like here /srv/salt/_grains/foo.py
21:16 sayyid9006 joined #salt
21:16 k1412 joined #salt
21:17 bildz joined #salt
21:18 bildz left #salt
21:23 _maniac_ hah, latest shade and os-client-config broke salt
21:25 _maniac_ you can't just put provile: <vendorname> in your cloud config, you have to fetch them from deleted json files: https://git.openstack.org/cgit/openstack/os-client-config/commit/?id=5c2eae8f8242332aff59d18b45a7d17f01524aaa
21:26 _maniac_ otherwise you get something like: [ERROR   ] Failed to get the output of 'openstack.avail_images()': 'module' object has no attribute 'vendors'
21:27 _maniac_ I'm telling you all that because I'm not sure where should I report it: either saltstack to set maximum shade/os-client-config versions (and probably bunch of other deps) or openstack projects
21:37 whytewolf that sounds like a major issue that shade/os-client-config should know about
21:37 whytewolf :P
21:37 mindo joined #salt
21:39 hemebond woodtablet: You would need to paste the code to the grain I think.
21:39 hemebond Or put the minion into debug logging and test the grain there.
21:40 whytewolf add lots of loggin to your grain
21:43 Psi-Jack what about the noggin in the brain?
21:43 Psi-Jack :)
21:46 _maniac_ whytewolf: fix is trivial though, I'll try sending them a patch right now
21:46 _maniac_ them = openstack
21:46 whytewolf sounds good.
22:13 sh123124213 joined #salt
22:33 mikecmpbll joined #salt
22:47 arlyon joined #salt
22:48 dendazen joined #salt
22:49 arlyon joined #salt
22:49 woodtablet whytewolf: i am actually using the grain example now, and its still not working (this one:) https://docs.saltstack.com/en/latest/topics/grains/
22:49 woodtablet hemebond: see "my_grains" here, under loading custom grains: https://docs.saltstack.com/en/latest/topics/grains/
22:50 woodtablet i have the grain in salt/_grains and /etc/salt/grains, no luck
22:53 iggy woodtablet: for changes to /etc/salt/grains , you need to restart the minion
22:55 woodtablet iggy: so just so i am clear, i put the new example grain in /etc/salt/grains on the master, ran this on the minions: saltutil.sync_grains, saltutil.refresh_modules. i ll try restarting the minion now too
22:55 iggy that's not how grains work
22:55 iggy grains are per minion
22:55 woodtablet iggy: ? i want all minions to resolve this grain
22:56 woodtablet iggy: my custom grain (not the one in the example) is just a boolean. hehe
22:56 iggy then you need to set it on all the minions
22:57 woodtablet iggy: yep, that is what i want
22:57 woodtablet iggy: my grain was working on all minions prior to my upgrade of salt
22:58 woodtablet hemebond: i have the minion in debug mode, but the minion is acting like its not see it it.
22:58 iggy I've never seen a minion set on a master carry over on the minions
22:59 iggy it would be set in the master context, so might resolve in pillars (due to pillars being rendered on the master) and would be available in runners (because they run in the master context
23:00 hemebond I thought it was a script.
23:00 woodtablet hemebond: it is, a simply python script
23:01 hemebond Oh, so it's under /srv/salt/states/base/_grains/?
23:01 woodtablet hemebond: i just trying to add the example grain to help me resolve my issue, but the example isnt loading either
23:01 hemebond (or equivalent)
23:01 woodtablet hemebond: yep!
23:01 whytewolf salt://_grains
23:01 iggy then I'm super confused
23:01 hemebond If you want to set a grain manually on the minion you need to edit the /etc/salt/grains file on the minion.
23:01 hemebond And restart the minion.
23:02 hemebond But if you want help with the script, then you need to check that the grain script is on the minion (check the cache) and then use `salt-call grains.get` on the minion and check the logs for errors.
23:02 iggy what distro?
23:02 woodtablet rhel7
23:02 whytewolf actually check /var/cache/salt/minion/extmods/grains/ on the minion
23:02 woodtablet i see it in the cache
23:02 iggy I think the salt packages changed from py2 to py3
23:03 woodtablet on the minion it is here: /var/cache/salt/minion/files/base/_grains
23:03 iggy so you probably have some py2 code in there breaking it?
23:03 hemebond rhel7 uses Python3 for Salt?
23:03 whytewolf woodtablet: that is not where it gets loaded from. that is where it is cached for file transfer
23:05 iggy oh, not by default
23:05 iggy I misread something the other day I guess
23:05 woodtablet whytewolf: ok i ll check there
23:05 iggy but there are py2 and py3 packages for rhel
23:06 mindo joined #salt
23:06 woodtablet whtyewolf: i dont have the grains dir, i have this: /var/cache/salt/minion/extmods/
23:06 woodtablet i have py2.7 for salt it looks like
23:07 hemebond Are you using environments?
23:07 hemebond Or do you just have `base`?
23:07 woodtablet yes
23:07 whytewolf what is the name of the file in salt://_grains
23:07 woodtablet iggy: yes, i have a few of enviroments
23:07 hemebond Does your minion have an entry for the environment that contains this grain?
23:07 hemebond An entry in the top.sls
23:08 woodtablet whytewolf: how do i list all the grains ? it should be envtypeawsvpcgrain.py
23:09 woodtablet hemebond: i didnt know my grain had an environment, my minion is in base yes
23:09 hemebond woodtablet: The grain is in whichever state environment you've put it.
23:09 woodtablet hemebond: i have a nodegroup, and my minion is in the nodegroup, how do i see if my grain has that env ?
23:09 woodtablet hemebond: ahh ok, then yes it is in base
23:09 hemebond Okay and your minion has states in base?
23:09 woodtablet hemebond: yes
23:11 iggy salt-call cp.list_master | grep '_grains'
23:14 woodtablet hemebond: ohh
23:14 inetpro joined #salt
23:14 woodtablet hemebond: you found my problem, my coworker introduce new environments, and my grain wasnt in my environment base
23:14 woodtablet iggy: yesssssssssssssssssssssssssssssssssssss
23:14 hemebond woodtablet: As long as the grain is in an environment the minion uses it should be fine.
23:15 woodtablet hemebond, iggy, whytewolf: thank you !!
23:15 pentabular joined #salt
23:16 woodtablet hemebond: hmm.. should it be fine if it is in an enviroment that doesnt use it in a state ?
23:16 hemebond woodtablet: As long as the minion uses a state in that environment, the grain will be synced.
23:17 hemebond That's how I understand it.
23:17 woodtablet hemebond: ahh ok, thanks!
23:17 hemebond e.g., I have an AWS environment with AWS-specific states (applied to all EC2 instances) and AWS-specific custom grains.
23:18 woodtablet that is exactly what i am doing ^o^
23:18 hemebond So any minion in AWS uses the AWS states and automatically gets the AWS grains.
23:18 woodtablet ohhh
23:21 woodtablet i see, i love grains, just so easy. love it.
23:44 arlyon joined #salt
23:53 woodtablet left #salt
23:59 zerocoolback joined #salt

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