Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-12-27

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

All times shown according to UTC.

Time Nick Message
00:00 pipps99 joined #salt
00:00 saltslackbridge joined #salt
00:03 sh123124213 joined #salt
00:04 justanotheruser joined #salt
00:07 pipps joined #salt
00:14 nona joined #salt
00:20 threwahway joined #salt
00:24 scbunn_ joined #salt
00:35 nebuchadnezzar joined #salt
00:40 pipps99 joined #salt
00:48 pipps joined #salt
01:07 Felgar joined #salt
01:11 sh123124213 joined #salt
01:30 threwahway_ joined #salt
01:33 threwahway joined #salt
01:54 threwahway_ joined #salt
01:56 threwahway joined #salt
02:01 zxizi joined #salt
02:21 scbunn joined #salt
02:38 pipps joined #salt
02:40 nomeed joined #salt
02:41 pipps99 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 pipps joined #salt
03:16 pipps joined #salt
03:41 justan0theruser joined #salt
03:42 justan0theruser joined #salt
04:55 aldevar joined #salt
05:26 pipps joined #salt
05:39 shripadr joined #salt
05:41 threwahway_ joined #salt
05:50 threwahway joined #salt
06:03 pipps joined #salt
06:20 pipps joined #salt
06:36 c06 joined #salt
06:36 c06 hi all
06:37 c06 how to get only three characters from jinja variable. like from grains['id']
06:38 hemebond c06: Python list notation, e.g., [:3]
06:40 c06 hemebond: ty.. :)
06:47 doubletwist joined #salt
06:51 nona_ joined #salt
07:01 Rr4sT joined #salt
07:09 aldevar joined #salt
07:13 shripadr_ joined #salt
07:23 xet7 joined #salt
07:28 threwahway_ joined #salt
07:44 threwahway joined #salt
07:46 pmcx Hipikat all
07:47 pmcx is mine.get supported in pillars?
07:50 MTecknology probably?
07:51 MTecknology I know I use it in states
07:54 Ricardo1000 joined #salt
07:55 iggy it is, but keep in mind that pillars are rendered on the master
07:56 major joined #salt
07:57 pmcx MTecknology  yup, states are no prob.
07:58 pmcx iggy  hm, taht might be it.
07:58 MTecknology it takes too long for HE.net to update DNS :(
08:10 shiranaihito joined #salt
08:12 shripadr joined #salt
08:20 Hybrid joined #salt
08:23 shripadr_ joined #salt
08:35 sh123124213 joined #salt
08:42 _KaszpiR_ joined #salt
09:05 major joined #salt
09:08 evle joined #salt
09:17 saltslackbridge <james> Does PillarStack _replace_ regular pillar/top.sls?
09:17 saltslackbridge <james> or just extend it?
09:19 saltslackbridge <james> I guess it has to apply second because it can use pillar
09:20 saltslackbridge <james> therefore extending
09:20 saltslackbridge <james> erp
09:20 saltslackbridge <james> derp too
09:25 coredumb up to you
09:25 coredumb you can replace it completely as well
09:28 bdrung_work joined #salt
09:35 babilen And you can decide if external pillars are evaluated first
09:44 threwahway_ joined #salt
09:47 saltnoob58 joined #salt
09:47 saltnoob58 joined #salt
09:48 saltnoob58 joined #salt
09:49 saltnoob58 joined #salt
09:49 saltslackbridge <james> Goddamn PillarStack is what i've been looking for, for so long
09:49 saltslackbridge <james> I swear I discover something new about Salt every day
09:52 saltnoob58 is that a good thing or a bad thing? the discovering something new every day
09:53 saltnoob58 hi. i want to run an execution module with module.run inside an sls file. i can do that after lots of reading, but it returns TRUE every time, i guess because the module runs every time. But how can I get the execution module's result? The one that i get if i run from the commandline?
09:54 saltslackbridge <james> It's great
09:54 saltslackbridge <james> I have SaltStack doing what I need it to do
09:54 saltslackbridge <james> which is way more than what I had with Ansible
09:55 saltnoob58 great? i'd rather be frontloaded on the knowledge, because discovering something new every day means there's so much stuff you dont know and wont for a long time that you might need :)
09:55 saltslackbridge <james> But now I'm discovering the intricacies
09:55 saltnoob58 imagine if you knew about pillarstack from day1
09:55 saltslackbridge <james> Yeah, but you can't shove things like external pillars down people's throats because they're get turned off
09:55 saltslackbridge <james> I knew about external pillars, I just never knew this particular one was available
09:56 saltslackbridge <james> but yeah, a nice cultivated index of 'awesome salt things' would be good
09:56 saltslackbridge <james> but when do you stop adding to it?
09:57 saltnoob58 hidden anything is bad. which is why im upset that i dont know how to get an execution module's result :)
09:57 saltslackbridge <james> within a state run?
09:58 saltslackbridge <james> I disagree with that. It's not like it was hidden, it's right there in the docs
09:58 saltslackbridge <james> there's just a lot of features and a lot of docs for Salt
09:58 saltnoob58 yes. in an sls file. i want to run an execution module, and if it's result is true, do a thing
09:58 saltslackbridge <james> and it's a community-contributed feature
09:58 saltslackbridge <james> I don't think you can
09:58 saltslackbridge <james> besides using cmd.run and stateful: True to emulate the execution module
09:59 saltslackbridge <james> or you wrap it into a state
09:59 saltnoob58 well i used the 'module' 'state' and i can run the execution module inside the sls file. Just not get the execution module's own result, just the module state's result
09:59 saltslackbridge <james> Don't think module.run can wrap the result into a 'stateful' outcome
10:00 saltslackbridge <james> yeah, that's one of the things I couldn't wrap my head around coming from Ansible
10:00 saltslackbridge <james> but I don't think that's actually possible
10:00 saltslackbridge <james> I think I've asked the same before
10:00 saltslackbridge <james> what's the module?
10:00 saltnoob58 but not being able to automate a native feature that works from commandline is terrible
10:01 saltslackbridge <james> Well module.run is kinda a shim to let you use execution modules
10:01 saltnoob58 zabbix module
10:01 saltslackbridge <james> but really Salt expects states because of the more information you get
10:02 saltslackbridge <james> changed, etc.
10:02 threwahway joined #salt
10:02 babilen You can run {% set foo = salt['some_module.function']('bar', ....) %}
10:02 saltslackbridge <james> I mean, it'd be a nice feature
10:02 saltslackbridge <james> Yeah, you can run it within jinja, but I feel like that could be shifting your issue elsewhere
10:03 saltslackbridge <james> I don't like running anything that has impact within Jinja
10:03 babilen Why not?
10:03 saltslackbridge <james> because it's ultimately not part of your state result
10:03 saltnoob58 it's not a nice feature, it's a vital feature. both modules and states are identical python scripts, just the way they are treated is different or something?
10:03 saltslackbridge <james> An execution module isn't idempotent
10:03 saltslackbridge <james> whereas states (generally) are
10:04 saltslackbridge <james> And states wrap execution modules generally
10:04 babilen saltslackbridge: If you want a "proper" state, then you'll have to write it yourself. For easy things its a few lines of Python and fairly straightforward if you have the execution module in place already
10:04 saltslackbridge <james> but add the logic
10:04 saltnoob58 well i need an execution module to make the state idempotent in a way useful to me this time :D
10:04 babilen But I see no problem in running execution module functions from states in jinja .. Naturally you wouldn't want to replace an entire state module with that
10:05 saltslackbridge <james> Each to their own I guess
10:05 saltslackbridge <james> I'd rather write a wrapper in Python
10:05 saltslackbridge <james> and have it clear cut in my state output
10:05 saltslackbridge <james> because its' really easy to do
10:05 babilen SaltStack should have adopted a markup language that allows for easy integration of literal Python blocks such as mako
10:05 saltslackbridge <james> that would be pretty cool
10:06 saltslackbridge <james> I guess you can just use a different renderer though?
10:06 babilen saltslackbridge: Well, that's exactly what I'm saying .. if you want to have a proper state, then write one rather than hack something together with Jinja
10:07 babilen You can use a different renderer, but almost everything out there is written in Jinja and SLS files don't even have to specify the renderer, but rely on the default one ..
10:07 babilen Which means that you can't easily switch
10:07 babilen (as that would break all files that rely on the default being jinja)
10:08 saltslackbridge <james> I'm not following
10:08 saltslackbridge <james> You can 'include' non-yaml/jinja files into other files still?
10:08 saltslackbridge <james> Is that not what you meant?
10:08 babilen The default renderer is jinja|yaml -- If you change that to mako|yaml a lot of code will break as SaltStack doesn't force you to start every SLS with a shebang
10:09 saltslackbridge <james> I'm considering rewriting some states in PyObjects because some of my Jinja is a bit gross to get the job done
10:09 saltslackbridge <james> oh, right, you mean changing the default renderer
10:09 saltslackbridge <james> I meant just a single state with a shebang at the top
10:09 saltslackbridge <james> for the particular issue
10:09 babilen You can, naturally, always change the default on a per-file basis .. and in the end all files should contain a shebang
10:09 saltslackbridge <james> but I see what you mean - you have to then evaluate how complex each state is and us e a different renderer
10:10 saltslackbridge <james> s/state/sls/g
10:10 saltslackbridge <james> but then each sls is a different renderer and you have another issue :P
10:10 babilen It's just that jinja|yaml is the default and most people use it .. Many issues could have been addressed better in literal Python and something like mako allows you to integrate that easily
10:10 babilen due to the default we have a lot of code in jinja|yaml
10:11 saltslackbridge <james> Maybe there should be a requierment for github formulas to all contain a shebang
10:11 saltnoob58 but people dont want to use literal python, that's why they use ansible and salt?
10:11 saltslackbridge <james> as part of the PR
10:11 babilen Yeah, I was mostly thinking about the "We use mako here and set is as the default" rather than "let's mix everything .. you'll learn it after a while"
10:11 saltslackbridge <james> You still get all of the abstraction of Salt, and the power of Python
10:11 saltslackbridge <james> or use PyObjects and you get a DSL like Puppet
10:11 saltslackbridge <james> abstractions/power/scalability of Salt
10:12 babilen It's just that some things would be incredibly easy in Python if you had access to the entire stdlib, while they require a lot of code now
10:12 saltslackbridge <james> yeah, or writing a custom module just to get access to it
10:12 saltslackbridge <james> I've a couple of util modules that I use that are just pieces of stdlib
10:12 babilen It took forever to get RE matching "filters" in Jinja, for example .. that should have been easy from day one :)
10:12 saltslackbridge <james> and then they have to be synced
10:13 saltslackbridge <james> That's one i had to add until recently ;P
10:13 babilen The fact is that Salt doesn't even make it easy to define custum jinja filters
10:13 saltslackbridge <james> ^ would also be great
10:13 saltnoob58 is there anything salt does make easy? :p
10:14 saltslackbridge <james> It's not Salt that's the limitation
10:14 saltslackbridge <james> It's the default renderer imo
10:14 babilen https://github.com/saltstack/salt/issues/28236 -- tell me about it, saltslackbridge
10:14 saltslackbridge <james> It's a tradeoff for readability/low learning curve
10:14 babilen exactly
10:15 saltslackbridge <james> and I tried a jinja macro once
10:15 saltslackbridge <james> never again
10:15 babilen Salt itself is very powerful and extensible (which, I think, intimidates people and causes a feeling of "I have no idea how to do things, as there are at least 10 ways")
10:15 saltslackbridge <james> It's crossing the line between templating and pseudo-coding
10:16 saltslackbridge <james> > As all execution modules are already available inside the Jinja templates, this is the recommended way to add extension filters. Other implementations would reduce the performances and/or would introduce additional bugs without any real value.
10:16 saltnoob58 salt is powerful because it "can do" anything you can write in python?
10:16 saltslackbridge <james> I guess that does make sense, but then maybe there needs to be more utility modules out the box
10:18 saltslackbridge <james> Salt's powerful for a host of reasons, but I guess that's an overlooked one
10:18 saltslackbridge <james> Well, not so much overlooked, as it's obvious
10:18 saltslackbridge <james> I need more coffee. I don't want to be back at work today
10:19 babilen https://github.com/saltstack/salt/pull/37952
10:19 babilen Ah, the wonders of not having to work between the years :)
10:23 saltnoob58 i've been reading more github tickets related to what i want to do and omg why is the answer to anything always "just write a custom state module yourself, dont expect slat to actually do anything ever for you"
10:23 saltnoob58 i've been reading more github tickets related to what i want to do and omg why is the answer to anything always "just write a custom state module yourself, dont expect salt to actually do anything ever for you"
10:25 saltnoob58 god, i need either more coffee, or to lay off the coffee
10:59 threwahway_ joined #salt
11:10 mikecmpbll joined #salt
11:24 zerocool_ joined #salt
11:26 zerocoolback joined #salt
11:55 c06 joined #salt
11:56 c06 hi
11:56 c06 i am facing error when granting privileges to database
11:57 c06 " Failed to execute: "GRANT ALL PRIVILEGES ON watchmen.* TO watchmen@%" (MySQL Error 1133: Can't find any matching row in the user table"
11:58 c06 for state sls file: http://paste.openstack.org/show/632381/
11:58 c06 any suggestions.!?
11:58 sh123124213 where do pillars and states get rendered ? master or minion ?
11:58 sh123124213 I suppose master for both ?
12:03 c06 GRANT ALL PRIVILEGES ON (..) IDENTIFIED BY 'test'; ?? IDENTIFIED is not there in the call. any suggestions or how to add identified parameter.??
12:15 sh123124213 c06: did you try to run the command from cli ?
12:16 sh123124213 nvm
12:19 sh123124213 c06: you should probably create the user first and then grant ?
12:19 c06 i am able to see the user in mysql.user list
12:20 evle1 joined #salt
12:22 sh123124213 I would try to print the query being sent, probably its already printed if you set logs to debug or trace then try to run the query through the database cli
12:24 babilen sh123124213: Where did you get the "connection_" arguments from?
12:25 sh123124213 babilen: ?
12:25 sh123124213 which connection ?
12:25 babilen You pass "connection_host" and other parameters
12:26 sh123124213 its c06 who is asking
12:26 sh123124213 just trying to help :)
12:26 babilen c06: ^
12:26 babilen Yeah, ENICK
12:28 sh123124213 babilen: but maybe you can answer my question ? where do pillars and/or states get rendered ? master/minion/both/seperately ? :)
12:29 babilen master and minion respectively
12:29 sh123124213 I'm talking about jinja rendering
12:29 sh123124213 ahm, thnx
12:30 babilen Ah, I found the bit that explains the connection_ prefixing
12:30 babilen Looks as if that's not working well
12:31 shripadr joined #salt
12:42 c06 babilen: sh123124213 thanks for reply. i will delete the user then i ll try to create user and grant permissions
12:50 c06 babilen: sh123124213 yeah its working now for localhost but for '%' same error exists.!! GRANT ALL PRIVILEGES ON watchmen.* TO 'watchmen'@'%' IDENTIFIED BY 'watchmen';
12:51 bluenemo joined #salt
12:54 cyteen joined #salt
12:56 saltnoob58 joined #salt
12:58 sh123124213 maybe you need some escaping there
12:59 c06 sh123124213: in salt minion log i am getting the command as 'Failed to execute: "GRANT ALL PRIVILEGES ON watchmen.* TO watchmen@%" (MySQL Error 1133: Can't find any matching row in the user table)'
13:00 sh123124213 https://stackoverflow.com/questions/17597144/cant-find-any-matching-row-in-the-user-table
13:04 c06 sh123124213: but i created new user for this . you can refer the following state file -> http://paste.openstack.org/show/632425/
13:05 sh123124213 - host: '%'
13:05 jespada joined #salt
13:05 sh123124213 try escaping that
13:05 sh123124213 '\%'
13:06 bluenemo joined #salt
13:07 sh123124213 salt.states.mysql_grants.present(name, grant=None, database=None, user=None, host='localhost', grant_option=False, escape=True, revoke_first=False, ssl_option=False, **connection_args)
13:08 c06 sh123124213 means we cant able to send '%' characters.?
13:09 sh123124213 I dunno :)
13:09 sh123124213 I remember I had issues with escaping
13:09 sh123124213 and that state
13:09 oida joined #salt
13:10 stewgoin joined #salt
13:11 sh123124213 https://github.com/saltstack/salt/blob/develop/salt/modules/mysql.py#L1712
13:11 c06 sh123124213: tried escape characters but it got append with hostname(\%) i think its taking string inputs
13:12 c06 sh123124213: nice dude ^^ for sharing the code link
13:14 c06 sh123124213: if i run manually like GRANT ALL PRIVILEGES ON watchmen.* TO 'watchmen'@'%'; in  mysql facing same error (cant find any (..))
13:15 c06 GRANT ALL PRIVILEGES ON watchmen.* TO 'watchmen'@'%' IDENTIFIED BY 'watchmen'; but this one running fine.
13:22 sh123124213 you can append to that line of the module if you want
13:22 sh123124213 I don't want to comment on why this is required .. probably some mysql thing which I'm not very familiar with
13:26 c06 sh123124213: while creating user i am mention host as 'localhost' so its not working for '%'; i removed localhost and mentioned host as '%
13:27 c06 its working but localhost getting failed.. :-D
13:27 sh123124213 but does it make sense to have both ?
13:28 c06 i tried passing as host: ['%', 'localhost'] while creating user
13:31 c06 but still its failing..
13:34 rem5_ joined #salt
13:37 sh123124213 I mean, if you define % user is allowed from all addresses
13:37 sh123124213 including localhost as far as I remember
13:38 sh123124213 so you don't need both % and localhost
13:40 edrocks joined #salt
13:41 Nahual joined #salt
13:42 c06 sh123124213: but in https://docs.openstack.org/ocata/install-guide-ubuntu/keystone-install.html they are running with both 'localhost' and '%' so only getting confused
13:43 sh123124213 maybe you can try it from mysql cli
13:44 sh123124213 my guess is it should work but dunno why the module doesn't like it
13:46 c06 sh123124213: ty for suggestions i ll try it 2morrow dude.. running out of time. have to move
13:46 c06 sh123124213: have a nice day .. :)
13:47 Hybrid joined #salt
13:48 _JZ_ joined #salt
13:49 sayyid9000 joined #salt
13:57 Trauma_ joined #salt
14:05 Hybrid joined #salt
14:05 ThomasJ|d joined #salt
14:37 Trauma__ joined #salt
14:37 bluenemo joined #salt
14:41 ouemt joined #salt
14:52 mike25de joined #salt
14:53 rem5_ joined #salt
14:55 baikal joined #salt
15:01 icedev joined #salt
15:11 icedev joined #salt
15:13 oida joined #salt
15:21 RandyT joined #salt
15:21 RandyT joined #salt
15:24 sjorge joined #salt
15:24 jespada joined #salt
15:34 bluenemo joined #salt
15:39 pipps joined #salt
15:49 saltslackbridge <george.taranis> Hello all, I have been fighting for a while trying to figure out what is the causing the syntax error on ```{% set kernelmodule_dir = salt['cmd.run'] ('ls -lv /home/support/sep/src/ | tail -1 | awk '{print $9}'') %}``` ` expected token ',', got '{'`. Perhaps the `{` on the awk statement is causing the issue? Any ideas?
15:53 dfinn joined #salt
15:53 saltslackbridge <randy> `'ls -lv /home/support/sep/src/ | tail -1 | awk '{print $9}''`
15:53 saltslackbridge <randy> you can’t do that
15:53 saltslackbridge <randy> it thinks it ends here: `'ls -lv /home/support/sep/src/ | tail -1 | awk '`
15:53 saltslackbridge <randy> then hits the `{` and craps on itself
15:54 saltslackbridge <randy> you’d need something like `'ls -lv /home/support/sep/src/ | tail -1 | awk "{print $9}"'`
15:57 edrocks joined #salt
16:04 saltslackbridge <george.taranis> i see...but in this case `#` will be read as such?
16:05 saltslackbridge <george.taranis> as the awk statement is not going to work with the hash it required the `'`
16:05 saltslackbridge <george.taranis> perhaps there is a way to escape it?
16:17 whytewolf use " for the outer quotes.
16:20 Aleks3Y joined #salt
16:21 Pomidora I want Salt to react to an incoming webhook. How do I do that?
16:26 bluenemo joined #salt
16:33 Sauvin joined #salt
16:37 tiwula joined #salt
16:40 Nahual Is there a way to marry the gitfs fileserver backend with pillar stack? Right now our stack is contained within a git repo and I would rather not have to cron laying it down on the filesystem if I can just have the salt git mechanics do that for free.
16:41 mrBen2k2k2k joined #salt
16:48 coredumb Nahual: just use an event/reactor to fetch the git repo when push happen on the server
16:51 Trauma_ joined #salt
16:52 sjorge joined #salt
17:13 onlyanegg joined #salt
17:26 zerocoolback joined #salt
17:31 LocaMocha joined #salt
17:34 Trauma_ joined #salt
17:37 cyteen joined #salt
17:45 scbunn joined #salt
18:05 pipps joined #salt
18:08 zer0def hum… am i getting it right that by setting minion's 'proxy' pillar, i'm able to turn it into a proxy-minion?
18:09 zer0def this question mostly stems from the fact there's no dedicated salt-proxy service or package
18:12 Trauma_ joined #salt
18:12 major joined #salt
18:20 pipps joined #salt
18:21 socket- joined #salt
18:30 nethershaw joined #salt
18:42 Pomidora Does anyone know of a good guide to implement scaling based on events in Salt?
18:43 MTecknology zer0def: there isn't? My apt seems to disagree.
18:43 zer0def MTecknology: try installing it
18:43 MTecknology k.. and then?
18:43 zer0def on ubu 16.04 it tries pulling in salt-minion served by upstream ubuntu, not saltstack
18:43 swills joined #salt
18:43 swills joined #salt
18:44 zer0def Pomidora: have you tried using engines?
18:44 MTecknology zer0def: apt-cache show salt-proxy salt-minion
18:45 MTecknology Pomidora: you can use the reactor system for it. I know either gtmanfred or whytewolf (or both) have a github repo with an example of auto-scaling that I totally planned on looking at someday.
18:46 zer0def i was actually doing something in relation to autoscaling based on influxdb metrics, but that's a year old and probably requires cleanup
18:49 zer0def MTecknology: https://ghostbin.com/paste/6rrdf
18:50 nidr0x joined #salt
18:51 MTecknology ah.. I guess salt-proxy is included in the salt-minion package now
18:52 zer0def aight, let me just double-check, pretty sure i didn't see any salt-proxy services there
18:52 zer0def oh, i do
18:53 zer0def it's just lacking in arch's packaging
19:07 MTecknology joined #salt
19:11 whytewolf wasn't me that had the autoscaling :P
19:15 whytewolf um
19:15 whytewolf did a freenode server die?
19:17 dober joined #salt
19:17 dober joined #salt
19:18 fullstop joined #salt
19:20 MTecknology probably
19:25 Pomidora MTecknology, zer0def thanks. MTecknology: I'll check the repos.
19:25 nethershaw joined #salt
19:25 Bryson joined #salt
19:26 hemebond joined #salt
19:27 hemebond left #salt
19:30 NightMonkey joined #salt
19:31 pipps joined #salt
19:33 phtes joined #salt
19:36 hemebond joined #salt
19:38 supermike___ joined #salt
19:39 davedash joined #salt
19:39 ymasson joined #salt
19:39 munhitsu__ joined #salt
19:40 m0nky joined #salt
19:40 phobosd__ joined #salt
19:41 tcolvin joined #salt
19:41 dragon788 joined #salt
19:42 mihait joined #salt
19:42 kwmiebach joined #salt
19:42 Ryan_Lane joined #salt
19:43 ToeSnacks joined #salt
19:43 simonmcc joined #salt
19:44 poige joined #salt
19:45 djural joined #salt
19:45 simondodsley joined #salt
19:45 petems joined #salt
19:46 bbhoss joined #salt
19:46 linovia joined #salt
19:46 futuredale joined #salt
19:46 SteamWells joined #salt
19:47 johtso joined #salt
19:48 cyteen_ joined #salt
19:48 jhill_ joined #salt
19:49 carlwgeorge joined #salt
19:49 frdy joined #salt
19:50 doriftoshoes__ joined #salt
19:52 copelco__ joined #salt
19:53 nahkiss joined #salt
19:53 Awesomecase joined #salt
20:00 RandyT joined #salt
20:00 RandyT joined #salt
20:02 nidr0x joined #salt
20:12 nidr0x joined #salt
20:20 NightMonkey joined #salt
20:35 JawnAuz joined #salt
20:41 bluenemo joined #salt
20:47 nidr0x joined #salt
20:55 ouemt I've got a machine that insists it's hostname is localhost.localdomain via the fqdn grain, /etc/hosts /etc/hostname hostname -f all agree that the real fqdn is correct, and not localhost.localdomain... any idea where this could be coming from?
20:56 hemebond ouemt: Salt uses the Python methods for fetching the hostname.
20:57 hemebond Is there an entry in /etc/hosts for localhost.localdomain?
20:58 ouemt hemebond: yes, for 127.0.0.1 and ::1
20:58 f3d joined #salt
21:16 swills_ joined #salt
21:17 demize ouemt: What does `python2 -c 'import socket; print socket.getfqdn()'` say?
21:26 czchen joined #salt
21:27 ouemt demize: the correct FQDN
21:27 daxroc joined #salt
21:29 iggy put the correct entry in /etc/hosts and I'll bet it works
21:29 astronouth7303 joined #salt
21:29 Gareth joined #salt
21:29 s0undt3ch joined #salt
21:30 alkyl joined #salt
21:31 ecdhe joined #salt
21:33 gareth__ joined #salt
21:33 fl3sh joined #salt
21:35 ouemt iggy, it's in there
21:36 demize hmm, what about `python2 -c 'import socket; print socket.getaddrinfo(socket.gethostname(), 0, socket.AF_UNSPEC, socket.SOCK_STREAM,socket.SOL_TCP, socket.AI_CANONNAME)'`?
21:36 ouemt demize:  several numbers, the correct fqdn, the ip and another number
21:36 cyteen__ joined #salt
21:37 demize Hmm.
21:39 demize And nothing weird in the logs?
21:41 fl3sh joined #salt
21:41 ouemt demize: which log?
21:42 demize master/minion logs.
21:45 ecdhe joined #salt
21:46 hemebond Tried restarting the minion?
21:46 ouemt hemebond: rebooted even
21:47 ouemt demize: nothing in minion
21:47 iggy ouemt: make sure it's first?
21:48 ouemt iggy: how do you mean, ip fqdn short as first line in the file, above 127.0.0.1?
21:49 iggy yeah
21:49 iggy or just first on that line
21:49 iggy or just take out the localhost.localdomain bit comptelely
21:49 iggy I can't think of any reason you'd actually need that
21:51 ouemt demize: nothing relevant in the master log
21:52 ouemt iggy: but why only one machine with this problem? my /etc/hosts file is managed via salt, and is identical across all the machines, this is the only one that's acting up
21:52 iggy no clue really
21:52 ouemt also: just reordered the /etc/hosts file and it didn't fix it
21:53 ouemt iggy: disregard, restarted minion after that change and it works
21:53 ouemt just want to point out that this fix requires ignoring a standard file format for a major config file :/
21:54 iggy destroy it and redeploy!
21:55 iggy I really have no clue why that happens sometimes
21:55 iggy I've seen it before
21:55 iggy never bothered to figure out the actual reason
22:11 ririom12 joined #salt
22:11 Bryson joined #salt
22:36 Bryson joined #salt
22:55 Trauma_ joined #salt
23:01 nidr0x joined #salt
23:10 evle1 joined #salt
23:52 nidr0x joined #salt
23:55 AvengerMoJo joined #salt
23:58 sh123124213 joined #salt
23:59 nidr0x joined #salt

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