/srv/irclogs.ubuntu.com/2020/11/10/#smooth-operator.txt

Chipacagood morning all09:12
bthomasmorning09:12
facubatista¡Muy buenos días a todos!10:18
bthomashola10:19
facubatistahola bthomas10:19
Chipacafacubatista: mantantirulirulá10:52
facubatistahola Chipaca :)10:52
mthaddonChipaca, facubatista: not sure if you saw as it was a little buried in https://discourse.charmhub.io/t/telegraf-charm-for-k8s/3791 but we have an MP adding functional tests to charm-k8s-telegraf - https://code.launchpad.net/~sajoupa/charm-k8s-telegraf/+git/charm-k8s-telegraf/+merge/393340 - would be interested in your thoughts on this11:07
Chipacamthaddon: ack. i'll try to get to it today.11:08
mthaddonfantastic, thanks11:08
facubatistamthaddon, thanks for reminding it to us11:22
mthaddonnp11:22
JoseMassonGood morning!12:06
facubatistahola JoseMasson12:09
bthomasMorning JoseMasson : I added replica_set_name to mongodb peer relation data and also ensured that the replicated variable was a string. I pushed my changes to my development branch. Please delete you local copy of development branch before pulling because I did some rebaseing. I would generally not do this but hey it is a development branch :-).12:12
JoseMassonGreat bthomas I'll see it!12:13
mupPR operator#444 closed: Improve and extend README.md with operator intro <Created by markshuttle> <Merged by chipaca> <https://github.com/canonical/operator/pull/444>14:08
* bthomas -> craving tea16:12
dstathisbthomas Are any of the charms you have written using hostnames to talk to each other?17:06
dstathisI'd like to look at some example code17:06
* facubatista -> bbl17:07
bthomasdstathis: Elasticsearch charm uses hostnames to setup the elasticsearch seed hosts configuration. I am not sure of an example of using that to talk between charms but do not see why not.17:07
bthomashttps://github.com/canonical/elasticsearch-operator17:09
justinclarkbthomas, do you have a few to jump on the Graylog call?17:48
justinclarkQuestion about mongodb17:48
bthomasjustinclark: going to standup link now17:50
bthomasjustinclark: am there17:51
justinclarkbthomas: https://meet.google.com/jac-ghof-sdn17:51
* Chipaca EODs18:02
Chipacattfn!18:02
bthomasjustinclark: any luck ?19:23
justinclarkbthomas, taking a quick lunch break - I'll let you know in a bit19:23
* facubatista is back19:26
justinclarkbthomas, no luck using the master branch, but it looks like the issue may have something to do with the mongodb defaults. In particular, one log line sticks out to me (trying with standalone mode)20:25
justinclark2020-11-10 20:21:21,472 INFO : org.mongodb.driver.cluster - Cluster created with settings {hosts=[mongo:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=5000}20:25
justinclarkThe default "hosts=[mongo:27017]" might be the issue because that's what cannot be connected to by Graylog20:26
justinclark2020-11-10 20:21:21,605 INFO : org.mongodb.driver.cluster - Exception in monitor thread while connecting to server mongo:2701720:26
justinclarkcom.mongodb.MongoSocketException: mongo: Name or service not known20:26
bthomasThere may be multiple problems here. 1) Bind address 2) Mongodb configuration not support slave reads 3) possibly others.20:27
bthomasIf you like I can get on a call with you and JoseMasson now . I will ofcourse look into this first thing tomorrow now that I have a better understanding.20:28
bthomasjustinclark: One thing will help here. Do you know why Graylog is assuming that the name of the mongodb host is "mongo" ?20:29
justinclarkI'm not sure, because we're explicitly setting the standalone/replicaset URI in server.conf20:30
bthomasjustinclark: I am not on my work PC. May I request you to post that replica set URI here.20:31
justinclarkbthomas: directly from the pod's server.conf:20:32
justinclarkmongodb_uri = mongodb://mongodb-0.mongodb-endpoints:27017,mongodb-1.mongodb-endpoints:27017,mongodb-2.mongodb-endpoints:27017/graylog?replicaSet=rs020:32
bthomasHmm... I am surprised . I do not see how Graylog can be picking up the host name of "mongo". Event if it did "mongodb-0" or "mongodb-1" ... I could understand.20:33
justinclarkI'm in the same boat. I'll send you the logs directly.20:34
bthomasThanks justinclark : as mentioned above the one thing I worry about is the mongodb bind address. I will dig further tomorrow, and let you have all the fun till then :-)20:36
bthomasI am online for an hour or two in case I can be of any service but will be winding down, perhaps go watch spitting images https://www.youtube.com/channel/UCCov3Uxwgh6Fq_2F7oW9-hA20:37
bthomasjustinclark: Just a hunch. That if you compare hostnames such as "mongodb-0.mongodb-endpoints" given in the replica set URI with the kind of host names we use in elasticsearch, you may note it is missing a suffix, someting like ".svc. ..." . I wonder if the Graylog is not able to resolve the replica set URI's and falling back to the default "mongo". I guess on can confirm if this is the case by using a shell in the Graylog cont20:47
bthomaschecking if the the host "mongodb-0.mongodb-endpoints" is indeed accessible or not.20:47
* bthomas off for today21:25
* facubatista eods21:32
mupIssue operator#445 opened: Testing Harness to provide a way to remove relation <Created by ed1000> <https://github.com/canonical/operator/issues/445>21:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!