Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-11-23

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

All times shown according to UTC.

Time Nick Message
00:00 saltslackbridge joined #salt
00:01 GMAzrael joined #salt
00:01 alexlist joined #salt
00:02 justanotheruser joined #salt
00:11 mikecmpb_ joined #salt
00:18 Hybrid joined #salt
00:24 tiwula joined #salt
00:30 javis joined #salt
00:32 javis left #salt
00:36 kellyp joined #salt
00:55 GMAzrael joined #salt
00:55 wongster80 joined #salt
00:55 Drunk_admin joined #salt
01:18 _val_ joined #salt
01:49 ProT-0-TypE joined #salt
01:52 saltslackbridge1 joined #salt
01:58 GMAzrael joined #salt
02:03 mcqueenorama joined #salt
02:07 nomeed joined #salt
02:23 mcqueeno1ama joined #salt
02:28 mcqueeno1ama joined #salt
02:38 masber joined #salt
02:38 evle joined #salt
02:41 deuscapturus joined #salt
02:54 masuberu joined #salt
02:56 ilbot3 joined #salt
02:56 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.8, 2017.7.2 <+> 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
03:04 GMAzrael joined #salt
03:12 Hybrid joined #salt
03:14 Lenz joined #salt
03:32 Hybrid joined #salt
03:37 mcqueenorama joined #salt
03:37 Felgar joined #salt
03:38 bluenemo joined #salt
03:48 Oida joined #salt
03:54 threwahway__ joined #salt
03:58 GMAzrael joined #salt
04:05 justanotheruser joined #salt
04:12 threwahway_ joined #salt
04:22 threwahway__ joined #salt
04:28 mcqueenorama joined #salt
04:31 lompik joined #salt
04:41 onlyanegg joined #salt
04:49 Oida joined #salt
05:03 swa_work joined #salt
05:29 CrummyGummy joined #salt
05:35 jesusaur joined #salt
05:59 GMAzrael joined #salt
06:02 Ricardo1000 joined #salt
06:06 felskrone joined #salt
06:11 mcqueenorama joined #salt
06:16 impi joined #salt
06:18 LocaMocha joined #salt
06:21 tacoboy joined #salt
06:22 nku i need to run some cli commands in states, is there a good way to configure it so that some non-zero return codes are not considered failures?
06:27 mikecmpbll joined #salt
06:40 justan0theruser joined #salt
06:42 dvdmuckle joined #salt
06:55 threwahway_ joined #salt
07:01 jesusaur joined #salt
07:02 GMAzrael joined #salt
07:04 sh123124213 joined #salt
07:12 threwahway__ joined #salt
07:18 SkyRocknRoll joined #salt
07:24 do3meli joined #salt
07:24 do3meli left #salt
07:35 yuhl joined #salt
07:35 evle joined #salt
07:48 xet7 joined #salt
07:53 hemebond nku What are you using to run the commands?
07:53 nku hemebond: cmd.run right now
07:56 hemebond `ignore_retcode` ?
07:56 hemebond or do you just need it for some return codes?
07:56 hemebond Oh, that's just for the execution module.
07:56 hemebond You'll have to use some sort of wrapper.
07:57 nku hemebond: ok, yeah, i thought so
07:57 hemebond Either inline or a script.
07:57 nku just checking. thank you anyway
07:57 GMAzrael joined #salt
08:00 hemebond ūüĎć
08:09 aldevar joined #salt
08:11 aldevar joined #salt
08:16 pualj joined #salt
08:18 darioleidi joined #salt
08:21 Tucky joined #salt
08:28 jrenner joined #salt
08:29 v12aml joined #salt
08:30 wongster80 joined #salt
08:46 mikecmpbll joined #salt
08:47 jhauser joined #salt
08:56 GMAzrael joined #salt
08:57 Rumbles joined #salt
08:58 mikecmpbll joined #salt
08:58 ereslibre joined #salt
09:01 ereslibre hello! I have written my own external pillar inside _pillar folder along with _grains, _modules... All of them seem to be discovered by the master except the ext pillar in _pillar, is this normal?
09:01 ereslibre am I expected to run a saltutil.sync_pillar?
09:05 mcqueenorama joined #salt
09:09 Nei left #salt
09:18 flughafen joined #salt
09:19 pbandark joined #salt
09:23 Larri Hi,  does this command mean run orch function in state.py with argument ceph.stage.1??
09:23 Larri salt-run state.orch ceph.stage.1
09:27 cyteen joined #salt
09:31 Mattch joined #salt
09:42 flughafen I was use salt-ssh (masterless) to manage some systems, in testinga  new  system, it was working multiple times as i made changes to the state, then it just stopped working.
09:42 flughafen [ERROR   ] JSON Render failed for: \n [ERROR   ] No JSON object could be decoded
09:43 flughafen ithen it shows the foobar: and foobar: is from the roster
09:45 Rumbles joined #salt
09:45 flughafen i tried calling single states, which work for several machines that work ok. but fail for foobar, it cloned the repo on another machine and can apply to foobar without issue.  i'm kind of stuck as to what else i can try
09:46 mcqueenorama joined #salt
09:56 GMAzrael joined #salt
10:00 Elsmorian joined #salt
10:02 _KaszpiR_ joined #salt
10:07 mcqueenorama joined #salt
10:10 dagb anyone here using salt with proxy type junos? I am following the demo at https://youtu.be/QE1l8OMwjQU?t=422, and I am failing.
10:12 dagb when having configured a proxy, I should be able to do a test.ping towards the proxy, right?
10:12 dagb (after accepting the key)
10:13 dagb That is, I do not need to *also* configure the proxy as a regular minion, right?
10:18 obitech joined #salt
10:20 flughafen ok, so i managed to break it on another machine
10:25 Elsmorian joined #salt
10:27 mcqueenorama joined #salt
10:33 Hybrid joined #salt
10:37 _KaszpiR_ joined #salt
10:42 SkyRocknRoll_ joined #salt
10:46 felskrone joined #salt
10:46 pualj joined #salt
10:48 mcqueenorama joined #salt
10:55 GMAzrael joined #salt
10:57 pualj joined #salt
10:57 _KaszpiR_ joined #salt
11:08 whytewolf ereslibre: you want to run salt-run saltutil.sync_pillars so that the master syncs the code and not the minion
11:09 mcqueenorama joined #salt
11:09 whytewolf Larri: broken down to that level it means run the runner module state.py orch function with the argument cept.stage.1
11:10 ereslibre whytewolf: thank you
11:11 whytewolf now, why am i awake at 3:11am on Thanksgiving
11:12 coredumb lol
11:14 dagb whytewolf: seeing how you are awake anyway... care to suggest why my salt-proxy does not respond to a test.ping?
11:14 whytewolf have you accepted the key on the master?
11:15 dagb yes
11:15 oida joined #salt
11:15 dagb I am *assuming* a test.ping is responded to by the proxy, and not dependending on the device it is proxying for.
11:15 dagb is this assumption correct?
11:16 dagb depending, even
11:16 whytewolf ...
11:17 whytewolf proxy is kind of weird. the code that it runs is dependent on the proxy. so it may or may not have a test.ping function
11:17 whytewolf least iirc thats how it works
11:18 dagb ok. hang on, I'll pastebin something
11:18 whytewolf oh junos has a ping so yes it should respond to a test.ping
11:19 dagb https://pastebin.com/xAzjz2gT
11:19 dagb Trying to wrap my head around that one. '[CRITICAL] Unexpected error while connecting to salt-master'
11:20 dagb But last line says 'ConnectTimeoutError: ConnectTimeoutError(10.10.10.10)
11:20 dagb ....which refers to the device we are proxying for.
11:21 dagb It may be the junos device is configured not to accept mgmt traffic on the port in question, but that should not affect communications between master and proxy?
11:22 whytewolf well the test.ping thats built into junos.py actually does make a connection to the junos device to make sure that it is operational as part of the ping
11:22 whytewolf least from the code i am reading right now
11:23 whytewolf but that error you are getting makes it look like /etc/salt/proxy on that system has a bad master setting
11:23 dagb aha. so there may be a connection there. maybe the test.ping timeout is shorter than whatever timeout the proxy has
11:24 dagb the proxy manages to register with the master and obtain the configuration
11:25 darioleidi joined #salt
11:25 dagb otherwise, it has exactly one setting: 'master: salt-master'
11:26 whytewolf true. it is just strangly worded.
11:26 Larri whytewolf: thanks \o/
11:27 Reverend joined #salt
11:27 dagb I do get two other messages on the proxy startup whcih may or may not be relevant:
11:28 whytewolf dagb: you could start the proxy like any other salt process. in debug mode
11:28 Xenophon1 joined #salt
11:28 dagb [DEBUG   ] Unable to derive osmajorrelease from osrelease_info '('proxy',)'. The osmajorrelease grain will not be set.
11:28 dagb [DEBUG   ] Could not LazyLoad junos.grains: 'junos.grains' is not available.
11:28 whytewolf oh looks like you did
11:28 dagb yup
11:29 whytewolf oh those are fine. just debug messages. no junos.grains function to create grains
11:29 mcqueenorama joined #salt
11:30 whytewolf not many functions in this proxy really
11:30 dagb ok. so this may boil down to the junos device not responding and then the proxy fails.
11:31 whytewolf also. try junos.ping instead of test.ping ... just a guess. I could have sworn test.ping will map to a ping function. but i could be wrong about that
11:31 dagb one last question... the master got some lines of output indicating that it considers itself as a minion as well. Is that correct?
11:32 dagb [DEBUG   ] Found minion id from generate_minion_id(): hostname.of.salt-master
11:32 whytewolf yes, that is correct. the master does handle some minion functions. including tageting in pillar for master pillars
11:34 dagb ok. junos.ping does not fare any better. But when running the proxy in debug mode, should I not see tasks submitted to it by the master?
11:35 dagb I see stuff happening in the salt-master console, but salt-proxy is quiet.
11:35 whytewolf eh, not always. i get those more with trace or all.
11:36 whytewolf proxy is super thin compared to everything else.
11:37 dagb the 'host:' in the proxy config referes to the device we are proxying for, right?
11:37 whytewolf yes
11:38 whytewolf in the pillar you mean right?
11:38 dagb yes
11:38 whytewolf yeah that is the host
11:38 whytewolf of the junos device
11:39 XenophonF joined #salt
11:39 dagb so, neither 'trace' or 'all' on the proxy says anything at all when doing test.ping/junos.ping from the master.
11:39 dagb That can't be right
11:40 dagb will try tcpdump
11:43 flughafen i found the issue with my problem, i had forgot about the /var/tmp/.root-salt0babdfhshfadhf stuff,
11:43 flughafen but now i have to delete that everyt time i run the highstate
11:43 Tenyun[m] left #salt
11:44 whytewolf flughafen: add --refresh to you salt-ssh command
11:45 whytewolf dagb: it looks like the junos init function requires being able to connect. so you may not be able to get anything working until the junos device is listening
11:45 flughafen whytewolf: same porblem with refresh added
11:45 dagb whytewolf: ok. thanks. will look into that, then.
11:46 whytewolf flughafen: --regen-thin then? don't remeber which option forces that directory to refresh
11:46 flughafen whytewolf: same error with regen-thin too
11:47 whytewolf wait is this master side or minion side?
11:48 flughafen whytewolf: this is a masterless.
11:48 whytewolf it isn't masterless.
11:48 flughafen i'm calling it from my machine which we use salt-ssh to enforce states.
11:49 flughafen this particular machine is registered to another machine as a salt-minion, but we have lots of machines like that and it'snever an issue.
11:49 whytewolf salt-ssh is the master in this case. and the box you are connecting to is the minion.
11:49 flughafen ok.
11:50 dagb whytewolf: fixed it
11:50 whytewolf dagb: nice
11:50 flughafen whytewolf: so, i'm calling this from my macchine where I Have the repo checked out.
11:50 dagb https://docs.saltstack.com/en/latest/ref/proxy/all/salt.proxy.junos.html    references port 830. Totally threw me off.
11:50 mcqueenorama joined #salt
11:51 whytewolf ahh you use a different port
11:51 dagb whytewolf: port 22 at least makes the proxy module do something
11:52 dagb I was half expecting the junos proxy module to use some non-ssh interfaces.
11:52 dagb hence I did not question 'port: 830'
11:52 whytewolf it can only use the ports built into the box :P
11:53 whytewolf it isn't magic
11:53 dagb I require unicorns
11:54 GMAzrael joined #salt
11:54 * whytewolf hands you a horn and some white paint. you supply the horse
11:55 flughafen whytewolf: this is weird. i tried adding both --refresh and --regen-thin and it worked 3x or something, then i tried without, and got the json failure, fthen when i add the refresh and regen it failed again.
11:55 dagb :-)
11:55 evle joined #salt
11:55 whytewolf flughafen: that is weird. like. bug report levels of wierd.
11:57 whytewolf flughafen: are there a lot of uncleared directories in /var/tmp under the name salt?
11:57 flughafen whytewolf: right now, none.
11:58 flughafen running highstate, new one appeared,and it worked.
11:58 flughafen ok. hold on, this is just getting weirder.
11:58 flughafen ok, so, current state is 1 root dir under /var/tmp, and ran it without refresh/regen.
11:58 flughafen let's try to call it agin
11:58 flughafen without
11:59 flughafen now json error, 1 root dir.
11:59 flughafen ah.
12:00 flughafen i ran again with --refresh-regen-thin an deleted the the root dir, but still gave me a json error, and there is 0 root dirs.
12:01 flughafen ok, ran again, with refresh and it worked.  no root dir
12:01 flughafen though.
12:01 flughafen sorry for spam.
12:01 whytewolf so you deleted the root dir before running it? and you still got the json error?
12:01 whytewolf it's 4am, i don't think people mind.
12:01 flughafen no, i did not remove anything manually
12:01 flughafen that's what's weird. runnign with regen and refresh didn't leave a root dir
12:02 whytewolf ohhh, so the refresh and regen-thin clean up after themselves. but not before themselves
12:02 flughafen ah ok.
12:02 flughafen that makes sense.
12:04 whytewolf humm. if i was you i would still file a bug report on that though. cause both of those functions are for making sure it is a clean thin and a clean cache
12:06 flughafen ok. i can work with thisnow, and it wont be so annoying. thanks whytewolf . i'll talk to our salt guys and see about making a bug.
12:06 dagb whytewolf: aaand finally I have the python deps all in place. Now junos.ping also works. Yay. That didn't take 4 hours at all...   :-)
12:07 whytewolf dagb: gratz
12:07 dagb whytewolf: thank you for helping out
12:08 whytewolf no problem. helps the insomnia
12:11 mcqueenorama joined #salt
12:14 toanju joined #salt
12:16 usernkey joined #salt
12:20 GrisKo joined #salt
12:25 CrummyGummy joined #salt
12:46 CrummyGummy joined #salt
12:52 mcqueenorama joined #salt
12:56 CrummyGummy joined #salt
12:57 GMAzrael joined #salt
13:05 Hybrid joined #salt
13:09 CrummyGummy joined #salt
13:09 Tenyun[m] joined #salt
13:13 mcqueenorama joined #salt
13:16 CeBe joined #salt
13:18 CrummyGummy joined #salt
13:19 Hazelesque joined #salt
13:27 CrummyGummy joined #salt
13:34 mcqueenorama joined #salt
13:37 flughafen is the only way to make a file.managed file executable by setting the mode?
13:38 stooj joined #salt
13:40 flughafen the file is already executable, but for some reasson it's not transferring that way,
13:41 flughafen oh well, that worked with mode,
13:46 Manor joined #salt
13:54 mcqueenorama joined #salt
13:58 GMAzrael joined #salt
14:03 mikecmpbll joined #salt
14:15 mcqueeno1ama joined #salt
14:27 do3meli joined #salt
14:27 do3meli left #salt
14:36 mcqueeno1ama joined #salt
14:38 yuhl left #salt
14:56 GMAzrael joined #salt
14:57 mcqueenorama joined #salt
14:58 yuhl joined #salt
15:05 toanju joined #salt
15:05 yuhl joined #salt
15:17 mcqueeno1ama joined #salt
15:21 ereslibre joined #salt
15:21 ereslibre joined #salt
15:38 mcqueeno1ama joined #salt
15:42 syd_salt Any jinja ninjas in here?
15:43 syd_salt I'm trying to do a simple if file_exists which works, but I want to use a pillar in the filename
15:44 ooboyle joined #salt
15:44 syd_salt I'm not sure if I have to escape something or what, I've tried a few combinations
15:46 syd_salt Any example might be - {% if salt['file.file_exists']("/tmp/{{ pillar['name'] }}/file") %}
15:51 mcqueeno1ama joined #salt
15:54 coredumb syd_salt: personnaly I'd do it in two steps
15:56 syd_salt @coredumb, you mean you'd define the file name and then check if it exists? Like creating a variable?
15:57 coredumb syd_salt: https://gist.github.com/anonymous/63b35ae83433b34fec5888ea9a440209
15:57 coredumb yes
15:59 coredumb syd_salt: I find it nicer to read with string concatenation outside of the function call
15:59 coredumb s/nicer/easier/
16:00 syd_salt @coredumb, well it worked... I should have asked sooner haha. Thanks very much.
16:01 coredumb np
16:02 GMAzrael joined #salt
16:03 sjorge joined #salt
16:06 sjorge joined #salt
16:32 deuscapturus joined #salt
16:35 goal joined #salt
16:44 Hybrid joined #salt
16:46 impi joined #salt
16:57 GMAzrael joined #salt
16:59 snc joined #salt
17:01 aldevar left #salt

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