Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-10-25

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

All times shown according to UTC.

Time Nick Message
00:00 murrdoc can u reinstall ?
00:01 murrdoc cos i have only tried it with python setup.py --salt-transport=raet
00:01 murrdoc skyler ^
00:05 pass_by_value joined #salt
00:05 murrdoc1 joined #salt
00:06 skyler murrdoc: It might be a bit messy, since I have a lot of minion. Perhaps I should just wait on a fix for the issue I am having. I am trying to figure out the issue right now, but I am pretty lost ATM.
00:06 BrendanGilmore joined #salt
00:06 mohae joined #salt
00:07 Ryan_Lane I wish someone made a coreos build with python, so that I could use salt directly on it (as well as diamond or collectd)
00:07 murrdoc1 what user are u running salt as
00:07 skyler murrdoc: The minions and the master would both have to be changed to RAET, right? I couldn't just change the master and be done.
00:07 murrdoc1 yes
00:07 skyler murrdoc1: root
00:07 thayne joined #salt
00:08 murrdoc1 does this run salt '*' saltutil.refresh_pillar
00:08 murrdoc1 or instead of '*'
00:08 murrdoc1 you can do one minion
00:10 skyler murrdoc: refresh_pillar ran fine.
00:10 murrdoc1 salt '*'  test.ping
00:10 murrdoc1 ?
00:11 skyler murrdoc1: salt '*' test.ping works sometimes. About half the time I get this error: Failed to authenticate!  This is most likely because this user is not permitted to execute commands, but there is a small possibility that a disk error ocurred (check disk/inode usage).
00:12 skyler so sometimes it works, sometimes it just gives that error, and sometimes it works for some minions then gets that error.
00:12 murrdoc1 thats weird
00:12 murrdoc1 up logging to debug on one of the minions
00:12 murrdoc1 that fails once in a while
00:13 murrdoc1 once u have that
00:13 murrdoc1 nuke the cache on that minion
00:13 murrdoc1 and run salt 'minion' test.ping a few times
00:14 bhosmer joined #salt
00:14 skyler Okay, so I have gotten a failure: http://pastebin.com/BHeSz9Q4
00:14 skyler How do I go about nuking the cache?
00:15 murrdoc1 stop salt-minion
00:15 murrdoc1 rm -vf /var/salt/cache ? or rm -rvf /var/cache/salt
00:15 murrdoc1 i forget which it is
00:16 murrdoc1 rm -rvf /var/cache/salt/minion
00:16 murrdoc1 that should be enough
00:19 skyler murrdoc1: I tried that, but I got the same error. I have been struggling with this one all day...
00:19 murrdoc1 damn
00:19 murrdoc1 thats interesting
00:19 murrdoc1 i mean it sucks
00:19 murrdoc1 but u know its interesting
00:20 skyler murrdoc1: Yeah. For a while I thought that my network was failing, but I can get the same kind of results with salt-call on the master.
00:20 murrdoc1 on this one minion
00:20 murrdoc1 have u tried nuking its' key and re adding
00:21 murrdoc1 again only if this is prod safe
00:22 skyler murrdoc1: Also, if you look in the issue I raised (https://github.com/saltstack/salt/issues/16900), it is odd that a value that should be a dict is actually a string...
00:22 murrdoc1 File "/usr/lib/python2.7/dist-packages/salt/transport/__init__.py", line 236, in crypted_transfer_decode_dictentry
00:22 murrdoc1 aes = key.private_decrypt(ret['key'], 4)
00:22 murrdoc1 that one
00:22 murrdoc1 ?
00:22 skyler murrdoc1: yeah
00:23 mapu joined #salt
00:23 skyler murrdoc1: I think all the minions have this problem, or the problem is on the master itself... I will have to see what key might be messed up.
00:23 murrdoc1 TypeError: string indices must be integers, not str
00:23 murrdoc1 did a config variable change
00:23 murrdoc1 between old version and new
00:24 mapu joined #salt
00:25 skyler murrdoc1: I am pretty sure that gitfs and master name are the only things that I have explicitly configged.
00:26 skyler The fact that it only happens some of the time is another confusing part.
00:26 murrdoc1 yeah
00:26 mapu joined #salt
00:28 mapu joined #salt
00:28 skyler murrdoc1: Also, it was even worse before I upgraded from rc3 to rc5. Basically, I was going along making normal changes to states, everything was peachy, then all hell broke loose.
00:28 murrdoc1 u have nuked master's cache
00:28 murrdoc1 and ran the sync_all command
00:28 murrdoc1 i mean i am just recommending stuff i have tried during debug
00:29 skyler I have tried nuking the master's cache, not sync_all though, what does sync_all do?
00:29 mapu joined #salt
00:31 murrdoc1 tell minions to pick up all modules , pillars
00:31 murrdoc1 returners and states too
00:31 mapu joined #salt
00:32 mapu joined #salt
00:34 mapu joined #salt
00:34 skyler murrdoc1: This is fucking with my brain. This just happened while I was screwing around trying to figure it out: http://pastebin.com/UyAcDaMt
00:34 skyler Basically, after I killed the cache, I thought it had changed to consistently produce the error.
00:34 skyler I also tried salt-call
00:34 skyler and I restarted the salt-master for good measure.
00:35 skyler and eventually... It successfully pinged...
00:35 murrdoc1 well shit
00:35 murrdoc1 it works now ?
00:35 murrdoc1 consistently
00:35 murrdoc1 ?
00:35 mapu joined #salt
00:37 mapu joined #salt
00:38 skyler murrdoc1: Oh my no. Now it works inconsistently.
00:38 murrdoc1 so thats a win
00:38 murrdoc1 :)
00:38 murrdoc1 update your ticket
00:39 mapu joined #salt
00:39 murrdoc1 let em know what fixed it
00:39 skyler I mean it is back to the same state of not working as before. As opposed to seeming to not work at all.
00:39 murrdoc1 oh
00:39 murrdoc1 well that sucks
00:40 skyler It had a huge run of failing, then suddenly went back to the old state of working really inconsistently.
00:40 mapu joined #salt
00:41 andrej joined #salt
00:42 glyf joined #salt
00:42 tafa2 joined #salt
00:42 murrdoc1 email the user group ?
00:42 murrdoc1 let em know what all u tried already
00:43 murrdoc1 https://groups.google.com/forum/#!forum/salt-users
00:43 mapu joined #salt
00:45 mapu joined #salt
00:47 skyler murrdoc1: I have been pretty disorganized so far. I think I will try to narrow the problem down on Monday. Right now I would sum it up as "Everything is screwed up."
00:47 murrdoc1 snafu
00:47 murrdoc1 i approve
00:47 murrdoc1 not that u asked
00:47 skyler lol
00:48 mapu joined #salt
00:49 bhosmer joined #salt
00:49 murrdoc1 but yeah
00:49 murrdoc1 if u really want to try something
00:50 murrdoc1 nvm wont work
00:50 murrdoc1 i was gonna recommend salt '*' saltutil.clear_cache
00:50 murrdoc1 then salt '*' saltutil.sync_all
00:51 murrdoc1 oh snap
00:51 murrdoc1 i just noticed this
00:51 murrdoc1 salt '*' saltutil.update
00:51 murrdoc1 thats baller
00:51 mapu joined #salt
00:51 skyler Oh yeah, that is super cool.
00:52 skyler Alright I am off for the weekend. Thanks for all the help. Have a good one!
00:53 mapu joined #salt
00:57 murrdoc1 :)
00:59 nitti joined #salt
01:11 ramishra joined #salt
01:13 DaveQB joined #salt
01:14 mgw joined #salt
01:17 ramishra_ joined #salt
01:30 ramishra joined #salt
01:31 anotherZero joined #salt
01:42 anotherZero joined #salt
01:45 ghanima joined #salt
01:45 NullWago_ joined #salt
01:49 SheetiS joined #salt
02:00 schimmy joined #salt
02:07 glyf joined #salt
02:20 nitti joined #salt
02:31 n8n joined #salt
02:36 bbnix joined #salt
02:38 bhosmer joined #salt
02:40 vincehu joined #salt
02:48 pass_by_value joined #salt
03:03 viq joined #salt
03:06 pdayton1 joined #salt
03:09 Mso150 joined #salt
03:34 ajolo joined #salt
03:34 cmthornton joined #salt
03:35 gmcwhistler joined #salt
03:36 mgw joined #salt
03:39 dude051 joined #salt
03:41 crocket joined #salt
03:42 aquinas joined #salt
03:42 Mso150_w joined #salt
03:42 crocket I need to choose between a masterless mode or a master when I provision a virtual machine image.
03:42 crocket Should I provision a virtual machine image without a master?
03:42 crocket If I plan to orchestrate virtual machines using master, I shouldn't provision a VM thoroughly without a master.
03:43 crocket If I don't plan to do so, I better stick to masterless salt-minion.
03:43 pdayton joined #salt
03:44 crocket master or no master
03:48 pdayton1 joined #salt
03:52 jonbrefe joined #salt
04:07 pdayton joined #salt
04:09 Gareth joined #salt
04:11 Gareth joined #salt
04:11 pdayton1 joined #salt
04:14 Gareth joined #salt
04:14 Obrit joined #salt
04:17 beneggett joined #salt
04:24 anotherZero joined #salt
04:26 bhosmer joined #salt
04:27 crocket Can I require a file in salt file system?
04:27 crocket The master's salt file system.
04:28 jalaziz joined #salt
04:31 beneggett joined #salt
04:34 yetAnotherZero joined #salt
04:41 thayne joined #salt
05:06 beneggett joined #salt
05:08 yes456 joined #salt
05:11 rjc joined #salt
05:11 TheThing joined #salt
05:12 berserk joined #salt
05:12 ramishra joined #salt
05:19 fragamus joined #salt
05:24 elfixit joined #salt
05:25 pdayton joined #salt
05:30 yomilk joined #salt
05:35 nitti joined #salt
05:42 mordonez joined #salt
05:50 kermit joined #salt
06:15 bhosmer joined #salt
06:16 bhosmer_ joined #salt
06:27 TheThing joined #salt
06:28 Guest19873 depends on what you mean by requiring it---there are a bunch of file.* states, such as file.managed that lets you copy a file from the salt master to the minion
06:35 ramishra joined #salt
06:58 cberndt joined #salt
07:22 thehaven joined #salt
07:23 dalibro joined #salt
07:26 shookees joined #salt
07:26 shookees joined #salt
07:31 schimmy joined #salt
07:36 schimmy joined #salt
07:44 crocket Guest19873, there?
07:44 crocket I want to know if I can require a file on the salt file system.
07:45 crocket If the file doesn't exist on the master salt file system, I want the master to generate the file in a way.
07:49 crocket salt://blah.fooh
07:49 crocket How can I check if salt://blah.fooh exists and make salt generate it if it doesn't?
08:04 bhosmer joined #salt
08:14 yes456_ joined #salt
08:20 cliff-hm joined #salt
08:20 crocket For example, I want to generate a qcow2 image by executing packer if it doesn't exist already.
08:21 crocket I want a qcow2 image to exist on the master salt file system as in "salt://blah.qcow2"
08:21 crocket Help?
08:22 dalibro joined #salt
08:27 linjan joined #salt
08:34 dsolsona joined #salt
08:38 al0 joined #salt
08:38 n8n joined #salt
08:41 doktor1g joined #salt
08:55 crocket Is it possible to write a state like http://pastebin.com/2pmUAySM ?
08:57 crocket Hello?
09:05 crocket Help
09:05 ntropy why are you repeating your self?
09:05 ntropy we can see what you wrote
09:05 ntropy if anyone wants to answer, they will
09:06 ntropy you can't write a state like that
09:10 crocket Oh man
09:12 crocket It seems I have to add the master host as a minion.
09:19 dalibro joined #salt
09:23 cberndt joined #salt
09:46 bbnix joined #salt
09:46 sectionme joined #salt
09:50 alex-mesos joined #salt
09:50 intellix joined #salt
09:52 dsolsona joined #salt
09:53 bhosmer joined #salt
09:56 Outlander joined #salt
10:01 CeBe joined #salt
10:07 dsolsona joined #salt
10:10 felskrone joined #salt
10:11 honestly crocket: that's a completely normal and expected thing.
10:17 dsolsona joined #salt
10:20 peters-tx joined #salt
10:24 dsolsona joined #salt
10:26 arno joined #salt
10:30 thayne joined #salt
10:37 crocket honestly, Is it ok to add the master as a minion to put files into the master salt file tree?
10:40 honestly it should be.
10:43 bbnix joined #salt
10:48 crocket How do I recognize the master's own minion?
10:49 crocket honestly, ^^
10:49 nkuttler add some grain?
10:49 dalibro joined #salt
10:50 crocket I"m thinking about it.
10:52 dsolsona joined #salt
10:55 akafred joined #salt
10:56 babilen crocket: Or check if grains['master'] == grains['fqdn']
10:56 crocket babilen, what
10:57 crocket babilen, They don't match on my system.
10:57 crocket Can I specify grains['master'] == grains['fqdn'] in top.sls minion targets?
10:57 babilen crocket: Why don't they match?
10:58 crocket babilen, Because I have multiple names for my host.
10:58 dsolsona joined #salt
10:58 crocket I guess fqdn_ip4 is a better deal.
10:59 babilen And you don't know the name of the master?
10:59 crocket babilen, fqdn_ip4
10:59 crocket babilen, In grains, fqdn is bleh.blah, and master is salt.
10:59 crocket The master has two names.
11:00 crocket However, fqdn_ip4 is 127.0.0.1 which is a sure sign of master.
11:00 babilen okay, why don't you simply target the minion by its id?
11:01 crocket babilen, fqdn_ip4:127.0.0.1 doesn't change, but minion id can change.
11:02 babilen Use whatever makes sense in your infrastructure.
11:04 crocket Can a minion match two environments in top file?
11:04 crocket Oh, it seems so
11:23 crocket How can I read file_roots.base[0] from master config in an sls file?
11:26 crocket I need to do thing on the master.
11:30 linjan joined #salt
11:32 crocket babilen, ^^
11:33 crocket I want to put files onto the master file system using salt.
11:33 crocket How would I do?
11:33 crocket The first step would be to read file_roots.base[0] from the master config
11:36 babilen Be explicit! Just put it in /srv/salt and make sure that it is part of file_roots or use GitFS or ...
11:37 crocket babilen, What if I decide to change file_roots.base[0] to something else?
11:37 crocket What if I forget to change the path in other sls files?
11:39 crocket Probably, I should use salt runners
11:41 crocket or syncidators
11:42 bhosmer joined #salt
11:50 babilen crocket: set it in a pillar?!
11:51 crocket babilen, It'll fail then.
11:51 crocket babilen, How would you avoid replicating master config?
11:53 crocket I'm searching the documentations crazily.
11:55 dsolsona joined #salt
11:57 bbnix joined #salt
12:02 crocket Oh
12:03 crocket The master config is added to pillar?
12:03 crocket The master config is added to pillar by default?
12:03 crocket This is crazy!!!
12:04 diegows joined #salt
12:05 babilen why?
12:13 crocket babilen, I can access master config in minions.
12:13 crocket That's great.
12:13 TyrfingMjolnir joined #salt
12:15 sxar_ joined #salt
12:15 cruatta joined #salt
12:16 hintss joined #salt
12:17 ramishra joined #salt
12:19 bhosmer joined #salt
12:20 crocket How do I access pillars in an execution module?
12:25 arno joined #salt
12:27 babilen crocket: http://docs.saltstack.com/en/latest/topics/development/dunder_dictionaries.html#pillar
12:27 fxhp joined #salt
12:27 fragamus joined #salt
12:28 babilen crocket: And what I meant earlier was: Manage your master's configuration with https://github.com/saltstack-formulas/salt-formula and set the respective values in a pillar (and then refer to that) rather than rely on http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.config.html#salt.modules.config.get
12:33 crocket I can't access executions modules in /srv/salt/_modules
12:33 crocket What the hell
12:36 jonbrefe joined #salt
12:36 crocket Yay
12:36 crocket It turns out I can't set a function name as "print" in python.
12:41 duncanmv joined #salt
12:44 babilen ... yes
12:47 babilen https://docs.python.org/release/2.5.4/ref/keywords.html (you might want to learn some python)
12:48 babilen https://docs.python.org/2/reference/lexical_analysis.html#keywords (up to date for 2)
12:51 crocket babilen, I finished reading python 3 tutorials a while ago
12:52 crocket It seems I need some practice to get used to it.
12:52 * babilen nods
12:52 crocket I could forget some reserved words without some practice.
12:56 crocket Are execution modules only found in _modules under base file root?
12:57 crocket If I put _modules under file_roots:master, salt-minion doesn't receive execution modules.
13:10 pdayton joined #salt
13:12 kalessin joined #salt
13:13 ipmb joined #salt
13:16 bhosmer joined #salt
13:17 tmh1999 joined #salt
13:21 crocket Is it possible for a state module to require some OS packages?
13:21 crocket Since a state module is a python module, I don't know a sure way for that.
13:21 crocket I could probably execute pkg.install
13:30 bhosmer_ joined #salt
13:43 TheThing joined #salt
13:48 crocket Is there an execution module that turns on a qemu virtual image and provisions it?
13:54 hasues joined #salt
13:54 crocket babilen, Do I always have to put _modules in base salt state tree?
13:57 hasues left #salt
14:03 n8n joined #salt
14:16 pdayton joined #salt
14:17 crocket It seems I should write a salt runner for building and deploying VMs.
14:20 ramishra joined #salt
14:22 srage_ joined #salt
14:24 yes456 joined #salt
14:24 crocket Where should I put custom runners?
14:29 nitti joined #salt
14:36 felskrone joined #salt
14:36 ndrei joined #salt
15:05 yes456 joined #salt
15:19 bhosmer_ joined #salt
15:28 duncanmv joined #salt
15:30 diegows joined #salt
15:35 thayne joined #salt
15:44 crocket left #salt
15:53 nitti joined #salt
16:05 ndrei joined #salt
16:22 duncanmv joined #salt
16:23 bhosmer joined #salt
16:25 aquinas joined #salt
16:34 fragamus joined #salt
16:35 felskrone joined #salt
16:37 scoates joined #salt
16:44 bbnix joined #salt
16:49 bastion2202 joined #salt
16:49 glyf joined #salt
16:53 mordonez joined #salt
16:56 mitsuhiko joined #salt
16:58 ajolo joined #salt
17:05 Kakwa joined #salt
17:08 bhosmer joined #salt
17:10 beneggett joined #salt
17:11 badon_ joined #salt
17:17 zlhgo_ joined #salt
17:29 ekristen joined #salt
17:35 linjan joined #salt
17:55 Mso150 joined #salt
17:56 ndrei joined #salt
18:00 zlhgo_ joined #salt
18:03 mordonez joined #salt
18:12 schimmy joined #salt
18:18 hintss joined #salt
18:20 scoates joined #salt
18:26 jrluis1 joined #salt
18:34 cliff-hm joined #salt
18:39 n8n joined #salt
18:44 ramishra joined #salt
18:45 ggoZ joined #salt
18:56 cads joined #salt
18:57 bhosmer joined #salt
18:59 ajolo joined #salt
19:01 bhosmer_ joined #salt
19:06 Mso150_e joined #salt
19:10 belak What in the world does this mean? http://pastie.org/private/pmfzzu8cgidlxxq8hotuzw
19:13 ramishra joined #salt
19:14 belak This is on a debian minion
19:22 ckao joined #salt
19:26 intellix joined #salt
19:32 schimmy joined #salt
19:34 schimmy1 joined #salt
19:35 max_ joined #salt
19:38 max_ joined #salt
19:50 nitti joined #salt
19:55 bezeee joined #salt
20:04 felskrone joined #salt
20:09 ioio joined #salt
20:10 TheThing joined #salt
20:13 ramishra joined #salt
20:30 bezeee joined #salt
20:34 ajolo joined #salt
20:40 linjan joined #salt
20:43 Mso150_e joined #salt
20:46 bhosmer joined #salt
20:50 Fl0o joined #salt
21:02 micko joined #salt
21:02 glyf joined #salt
21:03 thayne joined #salt
21:07 knot joined #salt
21:14 ramishra joined #salt
21:15 dvestal joined #salt
21:19 bhosmer joined #salt
21:33 TheThing joined #salt
21:37 bbnix joined #salt
21:39 badon_ joined #salt
21:41 jonbrefe joined #salt
21:49 cads joined #salt
21:49 max_ joined #salt
21:58 DaveQB joined #salt
21:58 knot joined #salt
22:15 ramishra joined #salt
22:18 glyf joined #salt
22:22 petan joined #salt
22:23 petan left #salt
22:34 bhosmer_ joined #salt
22:38 AmrMostafa joined #salt
22:45 bhosmer joined #salt
23:06 yomilk joined #salt
23:16 ramishra joined #salt
23:21 ajolo joined #salt
23:25 ajolo joined #salt
23:35 mordonez joined #salt
23:46 otter768 joined #salt
23:55 hintss joined #salt
23:55 scoates joined #salt
23:56 cruatta joined #salt
23:57 gmcwhist_ joined #salt
23:59 jonbrefe joined #salt

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