Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-05-05

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

All times shown according to UTC.

Time Nick Message
00:00 noobiedubie joined #salt
00:07 mosen joined #salt
00:09 snarfy^ thanks guys. laters
00:12 renoirb_ joined #salt
00:17 cgiroua joined #salt
00:17 cgiroua joined #salt
00:24 asyncsec joined #salt
00:25 nidr0x joined #salt
00:33 Praematura joined #salt
00:39 woodtablet left #salt
00:41 asyncsec joined #salt
00:46 hoonetorg joined #salt
00:46 nidr0x joined #salt
00:48 shoemonkey joined #salt
01:00 jas02 joined #salt
01:02 Nahual joined #salt
01:13 edrocks joined #salt
01:16 shoemonkey joined #salt
01:17 brent_ joined #salt
01:18 jdipierro joined #salt
01:19 anthonyshaw joined #salt
01:21 Bock joined #salt
01:24 Bock joined #salt
01:33 nikdatrix joined #salt
01:39 DEger joined #salt
01:49 ilbot3 joined #salt
01:49 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.6, 2016.11.4 <+> Support: https://www.saltstack.com/support/ <+> SaltStack Webinar on Carbon, Nitrogen, and Enterprise 5.1 on May 18, 2017 https://goo.gl/PvsOvQ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic <+> We are volunteers and may not have immediate answers
01:55 shoemonkey joined #salt
02:00 DammitJim joined #salt
02:01 shoemonkey joined #salt
02:06 hemebond michaelb: Custom grain or mine function :-)
02:12 zerocoolback joined #salt
02:12 wangofett joined #salt
02:12 zerocoolback joined #salt
02:14 prg3 joined #salt
02:16 tharkun joined #salt
02:29 prg3 joined #salt
02:32 jdipierro joined #salt
02:32 wangofett joined #salt
02:36 miruoy joined #salt
02:43 wangofett joined #salt
02:50 prg3 joined #salt
02:51 londo_ joined #salt
02:52 evle joined #salt
02:54 wangofett joined #salt
03:01 wangofett joined #salt
03:07 wangofett joined #salt
03:16 wangofett joined #salt
03:19 renoirb joined #salt
03:20 renoirb_ joined #salt
03:23 wangofett joined #salt
03:28 wangofett joined #salt
03:34 nikdatrix joined #salt
03:37 wangofett joined #salt
03:38 Praematura joined #salt
03:43 wangofett joined #salt
03:56 wangofett joined #salt
04:03 wangofett joined #salt
04:09 wangofett joined #salt
04:13 ivanjaros joined #salt
04:27 LeProvokateur joined #salt
04:33 jdipierro joined #salt
04:37 sp0097 joined #salt
04:43 Tantagel joined #salt
04:52 golodhrim|work joined #salt
04:57 asyncsec joined #salt
04:57 fracklen joined #salt
05:00 jas02 joined #salt
05:16 edrocks joined #salt
05:34 rdas joined #salt
05:35 nikdatrix joined #salt
05:37 impi joined #salt
05:42 felskrone joined #salt
05:53 do3meli joined #salt
05:53 do3meli left #salt
06:12 LeProvokateur joined #salt
06:18 colttt joined #salt
06:20 wangofett joined #salt
06:22 IdoKaplan joined #salt
06:23 IdoKaplan Can someone please help me with pfx certificate ? see https://github.com/saltstack/salt/issues/40950
06:23 saltstackbot [#40950][OPEN] Import certificate | Description of Issue/Question...
06:25 Tantagel joined #salt
06:28 fracklen joined #salt
06:30 nidr0x joined #salt
06:31 wangofett joined #salt
06:32 Neighbour IdoKaplan: Well, it said "The specified network password is not correct." halfway...maybe that's causing it?
06:33 IdoKaplan Neighbour: I'm sure that the pfx password is correct.
06:35 mosen joined #salt
06:35 jdipierro joined #salt
06:40 jas02 joined #salt
06:44 wangofett joined #salt
06:45 Tantagel joined #salt
06:45 om2_ joined #salt
06:46 dubg joined #salt
06:50 wangofett joined #salt
06:59 Ricardo1000 joined #salt
07:02 wangofett joined #salt
07:03 fracklen joined #salt
07:04 pbandark joined #salt
07:05 o1e9 joined #salt
07:09 aldevar joined #salt
07:10 Trauma joined #salt
07:10 hemebond IdoKaplan: If they had an update to your issue they would have updated the issue on Github.
07:11 hemebond Just saying.
07:13 wangofett joined #salt
07:15 IdoKaplan hembond: I know, but i'm waiting a week so I was hoping that someone here maybe have an idea.
07:15 JohnnyRun joined #salt
07:18 fracklen joined #salt
07:29 XenophonF joined #salt
07:30 mikecmpbll joined #salt
07:32 BlackBishop joined #salt
07:32 BlackBishop hi peeps .. anyone can tell me what I'm doing wrong here: https://paste.fedoraproject.org/paste/OVE14x9AqIKXCA0oYzz1gF5M1UNdIGYhyRLivL9gydE= ? Trying to run a scheduled job ..
07:32 BlackBishop for some reason it fails .. Salt 2016.11.4
07:36 nikdatrix joined #salt
07:39 kleszcz left #salt
07:41 nikdatrix joined #salt
07:42 Rumbles joined #salt
07:42 dubg_ joined #salt
07:52 lasseknudsen2 joined #salt
07:56 impi joined #salt
07:56 oida_ joined #salt
07:58 mikecmpbll joined #salt
08:02 dubg_ cscf: thanks for your answer yesterday, i'll look into it
08:08 hemebond BlackBishop: KeyError: 'maxrunning'
08:08 hemebond Remove the "maxrunning" property/key
08:09 bdrung_work joined #salt
08:11 BlackBishop you mean Add ! since it's missing...
08:12 hemebond Oh, yeah :-)
08:23 ronnix joined #salt
08:38 lasseknudsen joined #salt
08:39 DEger joined #salt
08:42 fracklen joined #salt
08:43 greyeax joined #salt
08:46 Tantagel joined #salt
08:53 zerocoolback joined #salt
08:54 MTecknology I just broke a bunch of servers by implementing automatic highstates.
08:55 MTecknology I also just quickly fixed a very minor problem because highstates always run with every push and I was quickly notified of problems.
08:55 MTecknology http://tinyurl.com/mngaou2
09:01 lasseknudsen joined #salt
09:02 dubg_ did someone has already succeed to work salt-master profiling?
09:02 dubg_ with "killall -SIGUSR2 salt-master"
09:03 hemebond MTecknology: LOL, nice.
09:04 dubg_ when i follow the steps, there is nothing at /tmp
09:06 dubg_ it said this: "[DEBUG   ] Could not LazyLoad config.merge: 'config.merge' is not available."
09:06 Tantagel joined #salt
09:06 dubg_ idk if it is the problem
09:07 zerocoolback joined #salt
09:12 colegatron joined #salt
09:14 dubg joined #salt
09:14 rory joined #salt
09:26 Tantagel joined #salt
09:26 zerocoolback joined #salt
09:27 rory left #salt
09:30 colegatron joined #salt
09:33 candyman88 joined #salt
09:34 pbandark joined #salt
09:36 zerocoolback joined #salt
09:38 zerocoolback joined #salt
09:42 candyman88 joined #salt
09:52 theblazehen joined #salt
09:55 fracklen joined #salt
10:03 nikdatrix joined #salt
10:03 Rumbles joined #salt
10:07 ivanjaros joined #salt
10:13 candyman89 joined #salt
10:16 Trauma joined #salt
10:17 nikdatrix joined #salt
10:22 irated joined #salt
10:34 Rumbles joined #salt
10:37 jdipierro joined #salt
10:43 Reverend joined #salt
10:46 Trauma joined #salt
10:49 BlackBishop in states/top.sls matching if I have a 'G@role:something': - match: grain, what if the role grain is a list/dict ?
10:49 BlackBishop does it go through the list ? does it only look at the first one ? how does that go ?
10:49 root___ joined #salt
10:50 cyteen joined #salt
10:51 root joined #salt
10:52 cyteen joined #salt
10:52 cliluw joined #salt
11:00 cyteen joined #salt
11:02 zerocoolback joined #salt
11:04 cyborg-one joined #salt
11:05 amcorreia joined #salt
11:06 Mogget joined #salt
11:07 fracklen joined #salt
11:13 dubg u don't need -match: grain
11:13 dubg G@ does the job
11:15 lorengordon joined #salt
11:23 Alaniaris joined #salt
11:32 wangofett joined #salt
11:34 zerocoolback joined #salt
11:39 Rumbles joined #salt
11:44 wangofett joined #salt
11:55 lorengordon joined #salt
11:55 Trauma joined #salt
12:06 lorengordon joined #salt
12:08 nikdatrix joined #salt
12:09 jas02_ joined #salt
12:10 haarp joined #salt
12:12 Trauma joined #salt
12:16 Trauma joined #salt
12:17 fracklen joined #salt
12:18 zerocoolback joined #salt
12:18 fracklen joined #salt
12:22 golodhrim|work joined #salt
12:23 Trauma joined #salt
12:27 Neighbour Does jinja do variable scoping? And if so, how do I write to the outer-scope variable?
12:28 shoemonkey joined #salt
12:28 daemonkeeper joined #salt
12:30 noobiedubie joined #salt
12:30 Neighbour This example seems to imply that it does...but I don't want it to :)  https://pastebin.com/AjigdMkc
12:31 numkem joined #salt
12:31 Nahual joined #salt
12:35 thenut joined #salt
12:35 johnkeates joined #salt
12:38 Trauma joined #salt
12:41 thinkt4nk joined #salt
12:42 Trauma joined #salt
12:43 mdpolaris joined #salt
12:44 mdpolaris Is it possible to pass arguments to an execution module when calling it in Jinja: {% set rds_endpoint = salt['boto_rds.get_endpoint'](salt['config.get']('new_instance_name') ~ ' region=us-west-2') %}
12:45 mdpolaris this works from the CLI: salt 'salt-master' boto_rds.get_endpoint postgres-dev-2 region=us-west-2
12:46 babilen mdpolaris: Yes, you can pass arguments
12:46 jdipierro joined #salt
12:46 edrocks joined #salt
12:47 mdpolaris what is the proper syntax, i have tried a few diferent ways and so far no luck
12:47 mdpolaris simplified command i am trying to do: {% set rds_endpoint = salt['boto_rds.get_endpoint’](‘instance_name region=us-west-2') %
12:47 babilen Not sure why you use string concatenation there .. that would call boto_rds.get_endpoint with, literally, 'postgres-dev-2 region=us-west-2' as first argument, rather than specifying the region argument also
12:48 babilen You might want to pass both as keyword argument
12:48 babilen I haven't looked at the function signature, so pass arguments as applicable
12:49 babilen {% set rds_endpoint = salt['boto_rds.get_endpoint’](‘instance_name', region=us-west-2') %} might be what you are after
12:49 babilen (minus the stray ')
12:49 mdpolaris thank, i’ll try that now
12:52 Trauma joined #salt
12:52 babilen You will have to pass us-west-2 as string, so enclose it in ' or "
12:53 thinkt4n_ joined #salt
12:54 aldevar1 joined #salt
12:55 candyman89 joined #salt
12:56 mdpolaris ah, that’s probably where i was going wrong. I kept passing in region in the string: ‘region=us-west-2’
12:56 renoirb joined #salt
12:57 patrek joined #salt
13:01 asyncsec joined #salt
13:02 t00m0 joined #salt
13:03 jarvis_ joined #salt
13:06 Trauma joined #salt
13:09 Rumbles joined #salt
13:09 dxtr joined #salt
13:10 oida_ joined #salt
13:10 numkem joined #salt
13:10 ronnix joined #salt
13:11 dxtr Hi! How can I tell git.latest to not produce an error when local changes are discarded?
13:11 tom29739 joined #salt
13:13 renoirb_ joined #salt
13:13 asyncsec joined #salt
13:14 golodhrim|work joined #salt
13:14 daemonkeeper joined #salt
13:14 amcorreia joined #salt
13:14 BlackBishop joined #salt
13:14 prg3 joined #salt
13:14 ToeSnacks joined #salt
13:16 Brew joined #salt
13:16 Trauma joined #salt
13:19 mdpolaris babilen: that seems to be working properly, Thanks! I am having a weird issue where it fails when i use a variable for the instance name, but if i just put the actual string in the command it works
13:19 mrueg joined #salt
13:21 XenophonF dxtr: probably one of the force options to the git.latest state
13:23 dxtr XenophonF: I have set all of them to true
13:23 dxtr I mean it "succeeds" but it's printed as a failed state
13:24 cyteen joined #salt
13:24 mdpolaris GRR, stupid human mistake was the last issue. Thanks again!
13:24 Rumbles joined #salt
13:24 Kelsar joined #salt
13:24 Trauma joined #salt
13:25 mdpolaris turns out the name you set the var to be has to also be correct!
13:26 amcorreia joined #salt
13:26 BlackBishop joined #salt
13:26 cyteen joined #salt
13:27 ToeSnacks joined #salt
13:27 Kelsar joined #salt
13:27 daemonkeeper joined #salt
13:29 prg3 joined #salt
13:35 jdipierro joined #salt
13:39 cgiroua joined #salt
13:48 ssplatt joined #salt
13:52 edrocks joined #salt
14:08 wangofett joined #salt
14:08 shoemonkey joined #salt
14:08 swills joined #salt
14:09 kbaikov joined #salt
14:10 KennethWilke joined #salt
14:13 wangofett joined #salt
14:23 asyncsec joined #salt
14:25 Trauma joined #salt
14:27 KingJ joined #salt
14:32 wangofett joined #salt
14:32 PatrolDoom joined #salt
14:33 evle1 joined #salt
14:34 swills joined #salt
14:34 nickadam joined #salt
14:35 cyteen joined #salt
14:38 Sacert joined #salt
14:39 Sacert Hello
14:39 haarp left #salt
14:44 Trauma joined #salt
14:49 wangofett joined #salt
14:50 xet7 joined #salt
14:51 Pyro_ joined #salt
14:53 Trauma joined #salt
14:54 zerocoolback joined #salt
14:55 brousch__ joined #salt
14:59 lorengordon joined #salt
15:01 gtmanfred Ryan_Lane: or anyone else that uses the boto modules and elastic ips, could you help me figure this out? https://github.com/saltstack/salt/issues/41071
15:01 saltstackbot [#41071][OPEN] salt master unable to associate elastic ip addresses to instances in different region | Description of Issue/Question...
15:02 jdipierro joined #salt
15:03 zerocoolback joined #salt
15:05 tapoxi joined #salt
15:06 wangofett joined #salt
15:07 censorshipwreck joined #salt
15:09 Sacert joined #salt
15:12 wangofett joined #salt
15:15 five04tluv joined #salt
15:17 Pyro_ Are you sure your not running into a limitation of AWS?  EIP's are region bound, and can't be assigned to EC2 instances cross-region.
15:17 five04tluv ? about minion schedules. what is the proper way to update them? I updated my pillar info to add more jobs but it is not updating on the minion after pillar refresh or restart
15:18 wangofett joined #salt
15:18 tiwula joined #salt
15:19 Trauma joined #salt
15:23 jas02 joined #salt
15:25 Pyro_ file04luv: Did you issue a highstate run from the saltmaster?
15:25 Sacert joined #salt
15:27 censorshipwreck joined #salt
15:32 jas02 joined #salt
15:33 Trauma joined #salt
15:35 dezertol joined #salt
15:39 JohnnyRun joined #salt
15:39 five04tluv Pyro_: no my understanding is update the pillar info and/or restart the minion to get the new schedule and start it
15:40 alvinstarr joined #salt
15:40 five04tluv Pyro_: I had a working scheduling for one of my states and I simply wanted to add a few more to the same schedule
15:41 wangofett joined #salt
15:42 aldevar1 left #salt
15:42 five04tluv Pyro_: I think I might have it. Seems like you cannot have multiple job_args for one job schedule even though it is a list
15:42 hashwagon What's the best function to have a state wait for a directory to populate on a minion?
15:42 _JZ_ joined #salt
15:42 englishm_llnw joined #salt
15:49 fenlee joined #salt
15:52 wangofett joined #salt
15:55 cyborg-one joined #salt
15:55 zerocoolback joined #salt
15:57 greyeax joined #salt
15:58 Rumbles joined #salt
16:02 zerocoolback joined #salt
16:03 wangofett joined #salt
16:04 Pyro_ joined #salt
16:06 preludedrew joined #salt
16:08 wangofett joined #salt
16:10 five04tluv Pyro_: I don't have it
16:10 Pyro_ Doh.
16:13 impi joined #salt
16:15 wangofett joined #salt
16:20 Praematura joined #salt
16:22 asyncsec joined #salt
16:22 tapoxi joined #salt
16:24 hemebond joined #salt
16:29 prg3 joined #salt
16:31 mpanetta joined #salt
16:32 wangofett joined #salt
16:32 Inveracity joined #salt
16:33 mpanetta joined #salt
16:38 wangofett joined #salt
16:39 Eugene I would use onlyif with `test`
16:39 Nahual joined #salt
16:42 prg3 joined #salt
16:44 wangofett joined #salt
16:49 Pyro_ joined #salt
16:49 Pyro_ joined #salt
16:55 MTecknology Is it possible to kick off a manual orchestration run?
16:56 MTecknology (wrong question...)
16:58 MTecknology I mighta now answered a better question, though.   If I run "strace -f -o out salt-run state.orchestrate _orch.pingall", will I actually get the bit of orchestration execution 'n such, or will it tell the master to kick something off and wait for the return?
16:58 MTecknology (still not good, but hopefully intelligible)
16:59 asyncsec joined #salt
17:00 alvinstarr joined #salt
17:00 renoirb joined #salt
17:00 feld joined #salt
17:02 dfinn joined #salt
17:07 gtmanfred it runs out of salt-run, it does not communicate with the master to run that
17:07 wangofett joined #salt
17:07 gtmanfred well, it sends the localclient commands to the master
17:08 gtmanfred what are you trying to do?
17:08 Ryan_Lane gtmanfred: looking
17:09 Ryan_Lane ugh. why does it run modules rather than states?
17:09 gtmanfred is there an associate eip state?
17:09 gtmanfred Ryan_Lane: thanks!
17:09 gtmanfred appreciate the help
17:10 MTecknology gtmanfred: I'm looking at the automatic batching stuff and wanting to make that available from there as well.
17:10 Ryan_Lane hm. I think maybe it's in dev branch?
17:10 Ryan_Lane hell, may not be there at all
17:10 gtmanfred yeah, i did not see one
17:10 aneeshusa joined #salt
17:10 Ryan_Lane you can associate to an eni
17:11 Ryan_Lane and there's state support for private ips
17:11 MTecknology gtmanfred: but I don't think the runner/orchestrate stuff supports batching at all so that entire logic would need to be included (I think).. but I have absolutely no idea what I'm looking at, yet. Knowing it all stays in salt-run lets me at least follow the code path and figure out what's going on. :)
17:11 gtmanfred it does support passing batch through to the localclient but run commands cannot be batched because they run on the master?
17:11 Ryan_Lane boto_ec2.instance_present has something for associating IPs
17:11 gtmanfred i added passing batch through to the localclient some time ago
17:12 gtmanfred Ryan_Lane: would you mind pointing them in he right direction there?
17:12 Ryan_Lane I probably can't
17:12 Ryan_Lane I don't use any of these master/minion features
17:13 Ryan_Lane and I never call modules directly
17:13 Ryan_Lane I manage the full resource through a state
17:13 Ryan_Lane and in this case, if the instance was managed through a state, it would be possible to associate the EIP through that state
17:13 Ryan_Lane folks from saltstackinc really need to start working on these boto_* modules :)
17:13 wangofett joined #salt
17:14 Ryan_Lane salt's ec2 support is as good as terraform's, but it doesn't get any core support
17:14 Ryan_Lane s/ec2/aws/
17:20 colegatron joined #salt
17:20 wangofett joined #salt
17:21 edrocks joined #salt
17:23 MTecknology I love how much fun salt is!
17:24 MTecknology You can't even look at salt source withoun saying it!
17:27 tikhoa joined #salt
17:28 tikhoa Hello everyone!
17:29 nixjdm joined #salt
17:29 tikhoa I want to ask about copying files by salt - does it check hash sums of copied files? Especially interesting about copying directories recursively
17:32 tikhoa_ joined #salt
17:33 wangofett joined #salt
17:35 hasues joined #salt
17:37 gtmanfred it does not check them if they come from salt://
17:37 gtmanfred well
17:37 gtmanfred salt does check those hashes
17:37 gtmanfred because the master provides them
17:37 gtmanfred so it can tell if changes have been made
17:38 gtmanfred for using like http://, you have to provide a hash sum to cehck
17:38 gtmanfred but I do not believe there is a way to specify all the hash sums for all the files in a file.recurse, though salt:// should copy them to the cache, and then check them against the master
17:38 wangofett joined #salt
17:40 gtmanfred tikhoa_: this is where the fileserver hashes/stats the file on the master and gets the information back https://github.com/saltstack/salt/blob/develop/salt/fileclient.py#L1228
17:43 hasues left #salt
17:45 LeProvokateur joined #salt
17:48 mikecmpbll joined #salt
17:56 mikecmpbll joined #salt
17:59 quay joined #salt
18:01 jas02 joined #salt
18:02 ChubYann joined #salt
18:02 jas02 joined #salt
18:04 quay hi, after upgrading to 2016.11.4, none of the custom grains are added to the grains.items
18:05 quay manually running the python script in /srv/salt/_grains works fine and returns correctly.  Any suggestion on how to trouble shoot this?
18:06 gtmanfred run salt-call grains.items -l debug on the minion and see if it stacktraces somewhere in salt?
18:07 quay no errors
18:07 whytewolf have you tried forcing a sync
18:07 quay yep, saltutil.sync_grains and saltutil.sync_all
18:08 wangofett joined #salt
18:08 watered joined #salt
18:08 watered hey!
18:09 gtmanfred hi
18:09 gtmanfred quay: i don't know, but i have a hunch that something else is up, because i haven't seen any issues come through on the github tracker with this as an issue yet :/
18:09 watered gtmanfred: is this on freenode?
18:09 gtmanfred watered: yes
18:10 watered isn't salt supposed to be on i2pd?
18:10 quay @gtmanfred: the master log has the following when i try to get the grains.items
18:10 whytewolf huh
18:10 quay 2017-05-05 11:08:26,576 [salt.utils.templates][ERROR   ][13293] Rendering exception occurred: Jinja variable 'remote_syslog_server' is undefined 2017-05-05 11:08:26,577 [salt.pillar      ][CRITICAL][13293] Rendering SLS 'rsyslog.config.centos7' failed, render error: Jinja variable 'remote_syslog_server' is undefined 2017-05-05 11:08:26,758 [salt.pillar      ][CRITICAL][13293] Pillar render error: Rendering SLS 'rsyslog.config.centos7' fa
18:10 watered i2p*
18:11 quay but that is expected because remote_syslog_server requires the custom grain that is missing
18:11 gtmanfred watered: what?
18:11 cyteen joined #salt
18:12 gtmanfred watered: we are https://saltstack.com
18:13 quay are you aware of any special steps that are needed to upgrade from 2015.5.10 to 2016.11.4?
18:13 whytewolf quay: are you returning a dict?
18:13 quay yep
18:13 wangofett joined #salt
18:13 whytewolf none as far as custom grains go
18:14 whytewolf can we see your grain?
18:15 ahrs joined #salt
18:15 asyncsec joined #salt
18:15 quay https://paste.ubuntu.com/24518407/
18:15 hashwagon pyro_: do you use 'tomcat.war_deployed' in your states to deploy war's or do you just copy the war files to webapps?
18:16 MTecknology gtmanfred: Couldn't I write the logic to potentially break into an execution loop at state.py:def call_high() at line 2299. It seems there, it'd be very easy to just check the target and if it matches more than X then split in chunks of Y and do those.. simple. I also feel like that's pretty late in the game to make such a transition and could see it causing issues down the road, so..
18:16 MTecknology maybe in mixins.py:def _low() at about line 395 I could set that up and "inject globals" when I want to override the target down the line?
18:17 watered gtmanfred: Wait, what's this channel about?
18:17 whytewolf watered: a deploymeant software called saltstack
18:18 gtmanfred MTecknology: i am knee deep in openstack right now, and can't really look
18:18 MTecknology if 'override_target' in self.inject_globals:  in state.call_high()  and  the same logic I added to cli/salt.py into mixins.py inside of _low?
18:19 MTecknology gtmanfred: no worries. As long as what I said doesn't instantly sound dumb, I may give that a try.
18:19 gtmanfred worth a shot
18:19 gtmanfred ugh, i have to run to the grocery store to get stuff for lunch
18:22 whytewolf quay: just before your return you could try adding log.debug('ck_datacenter dict output'.format(grains)) you may need to import some things and setup the log class. which you should be able to use core as an example
18:22 whytewolf https://github.com/saltstack/salt/blob/develop/salt/grains/core.py
18:23 gtmanfred log = logging.getLogger()
18:23 cyteen joined #salt
18:23 gtmanfred or getLogger(__name__) if you wanna be real fancy
18:23 whytewolf yeah something like that. been awhile :P
18:24 whytewolf think you also need to import logging and salt.log
18:24 gtmanfred nah, you should only need to import logging
18:24 jas02 joined #salt
18:24 gtmanfred salt.log is just used for some windows stuff to check if logging is setup
18:24 watered left #salt
18:24 whytewolf ahhh
18:24 * whytewolf makes note to remove salt.log from things
18:25 gtmanfred once you get to custom grains, logging has already been setup
18:25 gtmanfred might not be true for core grains though
18:25 gtmanfred I also used logging.getLogger only when testing https://github.com/saltstack/salt/blob/develop/salt/grains/metadata.py
18:26 gtmanfred which i should totally add information about to the nitrogen release notes
18:27 whytewolf anyway long story short quay. add logging to your stuff. see if there is a break down of comunication. if you see the log but the data is wrong. fix the data. if you don't see the log.... something is wrong
18:28 gtmanfred and if something is wrong, please open an issue on github
18:28 whytewolf ^^^
18:28 gtmanfred because i have not seen an issue about this, and we are about to tag 2016.11.5.
18:29 whytewolf yeah custom grains being broke should be a huge bug.
18:29 gtmanfred whytewolf: this is basically me today trying to get devstack working.  If i can't get it working by the end of the day, i am just going to follow the basic install guide again and set it all up manually.
18:29 gtmanfred https://xkcd.com/303/
18:30 gtmanfred except instead of jumping on chairs, i am playing mario kart
18:30 whytewolf hehe
18:30 quay yeah, i also tried 2016.11.3 and it also have the same problem
18:31 MTecknology gtmanfred: I have proxmox deployments almost entirely automated at home! I also have a second server now so it's actually possible to re-deploy a vm host. :D
18:31 gtmanfred nice
18:31 brd hmm, I was wondering about logging something in my recipie because I use a lot of Jinja to check if pillar stuff is defined, and I thought it would be useful to have a else so I know that it isn't running due to a missing variable
18:31 MTecknology proxmox is trivial.. openstack is very much not that
18:31 gtmanfred wanna work on some proxmox bugs?
18:31 gtmanfred MTecknology: i am rewriting the openstack driver from scratch
18:31 quay maybe the file needs to be 755?
18:31 MTecknology oh.. ouch
18:32 whytewolf shouldn't need to be quay
18:32 whytewolf it is loaded not exacuted
18:32 gtmanfred MTecknology: https://github.com/saltstack/salt/issues/39755
18:32 saltstackbot [#39755][OPEN] salt-cloud verify_ssl: False not working | Description of Issue/Question...
18:32 quay k, when i roll back to the previous version, everything works
18:32 gtmanfred MTecknology: https://github.com/saltstack/salt/issues/40621
18:32 saltstackbot [#40621][OPEN] Command "salt-cloud --list-images" with Proxmox shows ISO images only on "local" storage | Description of Issue/Question...
18:34 gtmanfred MTecknology: i am the best delegator
18:34 MTecknology I still haven't used salt-cloud to deploy a VM on proxmox, but I'm getting /really/ close to being able to. I just need to figure out assigning a static IP address and vlan.
18:34 MTecknology gtmanfred: does nobody delegate like you?
18:34 gtmanfred some say i am the greatest
18:34 gtmanfred the best, bigly
18:34 MTecknology lol
18:35 whytewolf lol
18:36 MTecknology I may very well take a stab at those. (at least ssl_verify
18:36 MTecknology )
18:36 gtmanfred thanks!
18:36 gtmanfred I appreciate the help :)
18:42 nixjdm joined #salt
18:47 jas02 joined #salt
18:47 DEger joined #salt
18:51 fredvd joined #salt
18:55 DammitJim joined #salt
19:00 mpanetta Soo... In salt, what is the best way to get an sqlite3 sql file in to a db?  I was thinking file.manged to set perms and a cmd.run to create the file (IE cmd.run sqlite3 foo.sqlite3 < foo.sql) but not sure that is the best way...
19:03 mpanetta neither the sqlite3 state module nor the execution module really do what I want...
19:04 mpanetta Any ideas?
19:07 ivanjaros joined #salt
19:08 cyborg-one joined #salt
19:09 whytewolf does sqlite3.fetch not work with .read?
19:12 fracklen joined #salt
19:14 mpanetta Hmm let me see
19:15 ivanjaros joined #salt
19:16 mpanetta Docs don't specify: https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.sqlite3.html#module-salt.modules.sqlite3
19:17 whytewolf yeah... sometimes you just have to try.
19:21 mpanetta Ahh :)
19:33 sybix joined #salt
19:39 jas02 joined #salt
19:41 nixjdm joined #salt
19:42 jas02 joined #salt
19:43 noobiedubie joined #salt
19:44 jas02 joined #salt
19:49 mpanetta damn salt does not have a dirname filter for jinja...
20:00 cmarzullo mpanetta: but you can do it.
20:00 mpanetta using split and join I assume?
20:00 cmarzullo nope using salt modules.
20:00 cmarzullo Remember you can call any salt module within jija
20:00 cmarzullo I think I have an example
20:01 cmarzullo {{ salt.file.basename(s) }}
20:01 rewbycraft There is also file.dirname
20:02 rewbycraft Which I think should do what you need when combined with cmarzullo's example
20:02 cmarzullo yeah there's a whole bunch.
20:02 cmarzullo that was just from code I had handy.
20:02 rewbycraft My personal favorite is file.find
20:02 cmarzullo I do things like this: {% set ceph_sockets = salt.file.find('/var/run/ceph', **find_args) -%}
20:02 cmarzullo jinx
20:02 rewbycraft Yeah
20:02 rewbycraft I use it to delete old files
20:03 rewbycraft For example for nginx configs where there is 1 file per vhost
20:03 rewbycraft I use a, slightly awful, bit of jinja trickery to add a delete state when I remove a vhost from the pillar
20:03 rewbycraft Is it jinja abuse? Yep. Is it very convenient? Yep
20:05 mpanetta cmarzullo: Ahh!  I completely forgot about that, thanks!
20:06 mpanetta nice
20:06 mpanetta bah jinja likes being abused rewbycraft
20:07 rewbycraft It's really just because when I remove something from the pillar, I want it to vanish from the hosts
20:07 jas02 joined #salt
20:08 renoirb joined #salt
20:10 mpanetta makes sense to me
20:16 nikdatrix joined #salt
20:33 dfinn joined #salt
20:33 cyteen joined #salt
20:34 rem5 joined #salt
20:37 aneeshusa joined #salt
20:39 rem5 joined #salt
20:41 sarlalian joined #salt
20:41 nixjdm joined #salt
21:15 mpanetta Quick question... I have been working on the powerdns formula to add sqlite3 backend support.  Is it possible to put _modules and _states in a formula and have salt find them?
21:16 mpanetta want to add support for the pdnsapi python library...
21:17 lorengordon joined #salt
21:28 whytewolf there is a powerdns formula?
21:29 whytewolf also yes _modules and _states in formalas is totally doable. all you need to add to the instructions in letting them know to sync
21:30 pr0ph37 joined #salt
21:30 whytewolf humm. it only sets up an authoritive server
21:30 whytewolf my guess is it doens't do it behind a ip netns
21:30 whytewolf damn
21:31 ivanjaros joined #salt
21:35 whytewolf ok here is a formula that most likely doens't need to exist. it hasn't been touched in 3 years. AND it doesn't work https://github.com/saltstack-formulas/elasticsearch-logstash-kibana-formula
21:36 alem0lars joined #salt
21:38 cgiroua joined #salt
21:39 ivanjaros joined #salt
21:44 asyncsec_ joined #salt
21:47 ivanjaros joined #salt
21:52 mpanetta whytewolf: Yeah there is, does not do much though, other than install it.
21:54 ivanjaros3916 joined #salt
21:59 cdunklau joined #salt
22:09 raspado joined #salt
22:10 edrocks joined #salt
22:17 psyer joined #salt
22:19 ivanjaros3916 joined #salt
22:21 DEger joined #salt
22:33 shoemonkey joined #salt
22:42 wangofett joined #salt
22:47 rmelero joined #salt
22:59 jas02 joined #salt
22:59 wangofett joined #salt
23:01 jas02 joined #salt
23:06 wangofett joined #salt
23:09 quay @whytewolf and @gtmanfred: so i created another grain in /srv/salt/_grains and looks like version 2016.11.4 doesn't even process the file
23:09 quay i put logging on as you recommended
23:09 quay the older version print out the output whenever i do a highstate, which is expected
23:11 hemebond quay: Only one environment?
23:11 hemebond Just base?
23:11 wangofett joined #salt
23:15 quay i only have one environment
23:16 hemebond What about saltutils.sync_grains ?
23:16 quay yeah, i tried that before and nothing
23:16 quay when i try to get the grain
23:16 hemebond If you edit the file now and then sync_grains still nothing?
23:17 quay yep
23:17 quay it almost seems like it is ignorning the entire /srv/salt/_grains directory
23:18 hemebond Your base is /srv/salt/ ?
23:18 quay yep
23:19 hemebond Anything in the master logs about it?
23:19 quay nope
23:19 hemebond Master is running as root?
23:19 quay on the production env (old version of salt), i see the verbose loggging
23:19 NightMonkey joined #salt
23:19 quay yes, master is running as root
23:20 whytewolf does it show up in salt-call cp.list_master | grep _grains
23:20 quay trying now
23:20 quay nothing
23:21 quay old version returns results
23:21 whytewolf so it doens't see the directory
23:22 quay i do see it when i list the directory
23:23 quay the salt master config is pretty much the same after the upgrade
23:24 quay this is what i have in the master
23:24 quay file_roots:   base:     - /srv/salt-secrets     - /srv/salt     - /srv/states-corp
23:24 quay https://paste.ubuntu.com/24519968/
23:24 whytewolf does anything show up on the minion when you run cp.list_master
23:26 quay yes, lots of error
23:26 quay https://paste.ubuntu.com/24519976/
23:26 hemebond Those are regular state errors.
23:27 hemebond And would be errors in 2016.3 too.
23:27 whytewolf he upgraded from 2015.x
23:27 quay https://paste.ubuntu.com/24519979/
23:27 hemebond oh
23:28 quay yeah, upgrading from 2015 to 2016 latest
23:28 whytewolf but he shouldn't be getting template errors on a cp.list_master it just lists the fileserver backend
23:28 hemebond I'd be surprised if "template: False" ever worked.
23:28 quay basically, just installing the latest salt, salt-master, and salt-minion
23:29 wangofett joined #salt
23:30 quay https://paste.ubuntu.com/24519987/
23:30 quay but i would think that is expected since it can't get the grain
23:31 whytewolf no, that isn't expected.
23:31 whytewolf you shouldn't be seeing anyof that
23:31 hemebond The top part is expected. The bottom probably not.
23:31 quay 2017-05-05 16:29:20,117 [salt.pillar      ][CRITICAL][13293] Rendering SLS 'rsyslog.config.centos7' failed, render error: Jinja variable 'remote_syslog_server' is undefined
23:31 whytewolf not even the top is expected
23:31 whytewolf it is  cp.list_master
23:31 whytewolf not a highstate
23:31 hemebond Oh.
23:31 quay that is correct because remote_syslog_server
23:32 quay is not define?
23:32 hemebond What are you running to generate that error?
23:32 quay the salt-call cp.list_master
23:32 hemebond Are you doing the cp.list_master whytewolf asked for?
23:32 quay yep
23:33 druonysus joined #salt
23:33 hemebond Oh. Does cp.list_master not have to render the Jinja in case it includes other files?
23:33 whytewolf is this error on the master or the minion
23:33 quay when i run that, i get https://paste.ubuntu.com/24519987/ in the master log
23:33 hemebond Or is it supposed to just be a list of all files?
23:33 whytewolf it is supposed to just list files
23:33 whytewolf it doesn't render anything
23:34 whytewolf quay: I don't care about the master with a cp.list_master I want to know if you see things that should be in /srv/salt
23:34 quay running the cp.list_master doesn't show up anything in the minion logs
23:34 whytewolf what about the output of the command
23:34 quay local:
23:34 quay and that's it
23:35 whytewolf ...
23:35 whytewolf file_roots isn't sending
23:35 whytewolf which is why you don't have grains
23:35 whytewolf you don't have ANYTHING from your file_roots
23:35 quay what does that mean?
23:35 quay and how to fix?
23:36 hemebond What about salt-run fileserver.file_list | grep _grains
23:36 quay fyi, i'm just testing this on the salt machine
23:36 quay running now
23:36 zulutango joined #salt
23:37 quay https://paste.ubuntu.com/24520014/
23:37 hemebond Your master is broken.
23:37 whytewolf unicode
23:38 whytewolf in the filesystem
23:38 shoemonkey joined #salt
23:38 quay ?
23:39 whytewolf you have a filename or directory somewhere with a charicture that isn't in ascii
23:40 quay hmmm, how do i find that?
23:40 quay and why would 2015 version work?
23:40 demize That failing in this day and age is depressing.
23:41 whytewolf demize: that failing is what the upcoming release is working to fix. by moving to python 3 it should work better with unicode.
23:42 whytewolf part of the issue is some many disstros stayed on 2.6 and lower way to long
23:42 demize Sure, but that doesn't really justify that it being broken so far though.  It's really not that hard to deal with properly in py2.
23:42 hemebond Ceeeentooooooos!!
23:42 quay :)  we are on python 2.7.5
23:42 quay and yes, centos 7
23:43 jas02 joined #salt
23:44 quay do you know if 2016.11.5 address this issue?
23:44 quay if it is a known bug, then i'll wait for the next release
23:44 whytewolf quay: 2016.11.5 won't fix it.
23:44 demize Thankfully py34 is in epel, and I think IUS has py36
23:45 wangofett joined #salt
23:45 quay does this mean that i need to upgrade to py34?
23:47 carlwgeorge demize: IUS has 27, 33, 34, 35, and 36 :)
23:47 demize Yeah.
23:47 whytewolf quay: no. you need to find that file and rename it. or stay on 2015 for now
23:47 demize IUS has saved me on multiple accounts.
23:48 carlwgeorge glad to hear it
23:49 carlwgeorge FYI, we accept new package requests https://github.com/iuscommunity/wishlist
23:49 demize Cool
23:50 quay so i did this...
23:50 quay grep --color='auto' -P -n "[\x80-\xFF]" *
23:50 quay and it comes back with Binary file auth-admin/files/openid-connect-server-webapp.war matches
23:50 DEger joined #salt
23:50 quay looks llike we also put other binaries in salt
23:51 wangofett joined #salt
23:51 whytewolf quay: this isn't a file contents. this is filename
23:51 quay OH!
23:51 Eugene joined #salt
23:53 iggy lol @ "It's really not that hard to deal with properly in py2."
23:53 quay [root@salt001.dev.sjc1.ckint.io salt]# LC_ALL=C find . -name '*[! -~]*' ./.git/logs/refs/remotes/origin/??ISE-1821-fix_ckfiles ./.git/logs/refs/remotes/origin/revert-??4de545e8 ./.git/logs/refs/remotes/origin/??INFSUPPORT-8441_cj_api_config ./.git/logs/refs/remotes/origin/deploy-faketui-??1e2490acf926
23:53 quay https://paste.ubuntu.com/
23:53 quay https://paste.ubuntu.com/24520072/
23:53 quay but in our configuration, we ignore .git
23:54 whytewolf humm. thought salt ignores .git
23:54 quay file_ignore_regex:   - '/\.svn($|/)'   - '/\.git($|/)'
23:55 quay https://paste.ubuntu.com/24520082/
23:55 shoemonk_ joined #salt
23:56 wangofett joined #salt
23:56 whytewolf humm i wonder if that is the problem.
23:57 adelcast joined #salt
23:57 whytewolf anyway, file a bug.
23:57 quay k, will do
23:57 quay many thanks for your help
23:59 iggy it likely has to read everything before it can figure out what to ignore and falls over between the reading everything and ignoring steps

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