/srv/irclogs.ubuntu.com/2017/07/12/#juju.txt

=== frankban|afk is now known as frankban
NotDavidHi. I'm having an issue bootstrapping juju on a private openstack environment. It seems to be unable to initiate the mongodb replicaset. Anyone had this problem before?08:40
cnfmorning08:43
NotDavidAnyone know where I can find juju's bootstrap logs? Bootstrapping keeps failing.08:58
admcleodNotDavid: hrm, well juju debug-log may show something, but otherwise you can --debug and --verbose the bootstrap?09:06
NotDavidI've tried --verbose, trying --debug now09:06
NotDavidThanks!09:14
NotDavidI've found the command that gives me an error09:14
NotDavidIt seems to fail on this action: juju.worker.peergrouper initiate.go:42 Initiating mongo replicaset; dialInfo &mgo.DialInfo{Addrs:[]string{"localhost:37017"}, Direct:false, Timeout:300000000000, FailFast:false, Database:"", ReplicaSetName:"", Source:"", Service:"", ServiceHost:"", Mechanism:"", Username:"", Password:"", PoolLimit:0, DialServer:(func(*mgo.ServerAddr) (net.Conn, error))(0xae73a0), Dial:(func(net.Addr) (net.Conn, error))(nil)}; memberHostport09:14
NotDavid"10.0.0.12:37017"; user ""; password ""}09:14
NotDavidResulting in this: 2017-07-12 09:13:05 INFO juju.worker.peergrouper initiate.go:64 finished InitiateMongoServer09:15
NotDavidERROR failed to start mongo: cannot initiate replica set: cannot dial mongo to initiate replicaset: no reachable servers09:15
admcleodNotDavid: hmm. well, im going to assume its a networking related thing09:19
admcleodNotDavid: do the instances automatically get external ips? and, can they automatically connect to the internet? (maybe to download a package or something)09:20
NotDavidMy instances can communicate with the internet. Openstack NAT's them. They're not accessible from outside the cloud, but my bootstrapping machine is in the same openstack project, so it's able to reach all the instances it creates.09:22
NotDavidIf they do need to be externally accessible they'd need to have floating ip's assigned to them and juju would then have to know about them. I'm not sure how I would do that09:23
admcleodNotDavid: shouldnt need that no..09:24
NotDavidRight, especially since juju's already ssh'ed into the new controller instance.09:24
admcleodNotDavid: and does 10.0.0.12 check out?09:24
NotDavidYeah, it creates itself an instance. That instance is called 10.0.0.1209:25
admcleodNotDavid: are you able to ssh into it? maybe see if mongo is running and bound to that ip?09:25
NotDavidIt is fully able to update and install packages09:25
NotDavidI would log into it, but the instance gets destroyed when the bootstrap fails09:26
NotDavidCould it be a timeout issue. Mongo can take a while to initialize.09:27
admcleodhrrrrm.....it could be, but it shouldnt be or it would be more frequently reported. what version of juju?09:27
NotDavid2.2.1-xenial-amd6409:28
NotDavidI'm going to re-check my secgroups, might be some blockages there. Shouldn't be though09:33
NotDavidThe correct ports should be open. But i've added ingress rules for all TCP and UDP traffic.09:34
NotDavidI'm gonna rerun the bootstrap now09:35
admcleodnod09:35
NotDavidNope ... same error09:44
NotDavidSo it's definitely not a network or firewalling issue09:44
NotDavidwell ... I'm stumped. Can't see why it shouldn't work09:46
admcleodjamespage: tinwood any ideas ^^?09:47
admcleodNotDavid: well. i guess you could try bootstrap-timeout09:52
admcleodNotDavid: https://jujucharms.com/docs/2.0/controllers-creating09:53
ak_devHello all, I am developing a charm for kubernetes with OVN using this documentation : https://github.com/openvswitch/ovn-kubernetes09:53
ak_devThe charm I have developed is : cs:~aakashkt/ovn-209:53
ak_devThis acts as a subordinate charm to the already existing kubernetes-master and kubernetes-worker, much like flannel09:53
ak_devThe problem is everything installs correctly, but in the end, the master stalls at "waiting for kube-system pods to start"09:53
ak_devWhat I could figure out is that the worker is not registering with the master for some reason09:53
admcleodNotDavid: bottom of the page09:53
NotDavidfound it09:53
NotDavidtrying it now09:53
ak_devHere is the bundle file for the deployment https://usercontent.irccloud-cdn.com/file/U1pzdevl/bundle.yaml09:53
admcleodkjackal___: you around?09:53
NotDavidI've set the timeout to ten minutes and rerunning it09:54
admcleodak_dev: i think kjackal___ may be able to help or point you in the right direction but not sure if he's around09:55
ak_devadmcleod: Hey, thanks for the reply09:57
ak_devwill wait for him to come around :-)09:57
admcleodak_dev: there are other kubes guys here but they're US timezone09:57
ak_devadmcleod: oh, will have to be around at night for them then, thanks, need to fix this soon10:00
admcleodSaMnCo: around?10:01
NotDavidadmcledo: Getting the same error after the same time duration with a longer timeout. So it's not a timeout issue10:01
NotDavidadcleod*10:02
admcleodNotDavid: can you pastebin the full bootstrap output?10:02
NotDavidadmleod*10:02
admcleodhaha10:02
NotDavidTiny keyboard, giant hands, major issues10:02
admcleodlol10:03
kjackal___admcleod: hi, give me 2 mins10:04
* tinwood reading scrollback10:06
kjackal___hi admcleod, ak_dev let me see10:07
ak_devkjackal___:  Hey, thanks, one more thing, I talked to Guru from ovn-kubernetes, he told me that I need to pass the correct options to kubelet, kube-apiserver, kube-scheduler and kube-controller manager10:09
tinwoodadmcleod, NotDavid it looks like you're looking at everything I would have checked.  Anything else in the logs?10:09
admcleodNotDavid: oh yeah, pastebin?10:10
NotDavidYeah, rerunning it with a longer scrollback. Give me a sec10:11
NotDavidThe problems of not working on your normal workstation10:11
kjackal___ak_dev: this looks great! Deploying your bundle on aws now10:13
kjackal___ak_dev: a couple of questions why would you deploy 1.5 kubernetes? We just released 1.710:14
ak_devyes, that was because the recommended version to use with this was 1.5, told to me by the openvswitch guy10:15
ak_devglad you liked the charm :-)10:15
ak_devoh, you will have to give access to all ports in aws firewall rules, i had to do that in GCE10:18
kjackal___ak_dev: waitup... kubernete-master and worker are patched locally by you so I cannoot deploy (/home/aakash/Desktop/k8s-official-charms/xenial/kubernetes-master)10:20
NotDavidadmcleod: Here's the pastebin log: https://pastebin.com/YFFT0Aub10:20
kjackal___So... ak_dev we will have to do this remote ly10:20
ak_devoh, sorry for that, forgot to change them10:21
ak_devcs:~containers/kubernetes-master-3510:21
ak_devcs:~containers/kubernetes-worker-4010:21
ak_devsorry for the mistake10:21
kjackal___ak_dev: you can juju ssh on the master and kubectl get no to see why/if the nodes are up10:21
kjackal___updating he bundle now10:22
admcleodNotDavid: can you try (long shot) --config use-default-secgroup=true10:23
admcleodNotDavid: and perhaps use-floating-ip=true (after)10:23
NotDavidnow that i'm looking at it ... I notice it's trying to connect to mongo on port 37017. Isn't 27017 the default monogdb port10:24
kjackal___ak_dev: I need to give access to which ports on which nodes?10:25
stubtinwood: Do you know the status of moving charm-helpers to github?10:25
ak_devkjackal___: 6641, 6642 on master, 8080 on both master and worker10:26
stubor anyone really (I think it was alex?)10:26
tinwoodstub, I don't sorry.  I know the work has started (jamespage) but it got hung up on transferring the history and email addresses.  I don't know the status though.10:26
ak_devi think that should be enough, I actually allowed all ports so can't say exactly which10:26
kjackal___admcleod:10:27
stubtinwood: I'm not sure why historic data needs to match to current email addresses, but I'll land this on LP then10:27
tinwoodstub, jamespage will know more.  what's 'this'?  the nrpe change?10:28
admcleodNotDavid: pretty sre 37017 is ok10:28
stubhttps://code.launchpad.net/~peter-sabaini/charm-helpers/bcache-helpers/+merge/323616 , which just became ready10:29
jamespagetinwood, stub: just target the bzr branch on LP for now; the export/import takes seconds to complete so we'll do that right before switchover10:29
NotDavidadmcleod: Trying your suggestion now10:29
kjackal___ak_dev: there is the juju run --application kubernetes-master open-port 6641/tcp that we might be able to use10:30
tinwoodjamespage, kk.10:30
ak_devkjackal___:  oh, I was not aware of that10:31
kjackal___ak_dev: it _might_ do what we want, not sure for now. Still deploying10:33
NotDavidadmcleod: No luck, i'm afraid.10:34
NotDavidamdcleod: Anyway, i've got a meeting now. I'll pick this back up tomorrow10:35
NotDavidamdcleod: If you have any sudden realisations please let me know10:36
admcleodNotDavid: hmm ok sure, will do10:36
kjackal___ak_dev: if you look at the /var/log/syslog on workers, do you see any thing suspicius?10:43
ak_devkjackal___: hm, I don't know what to look for to find anything suspicious though10:44
ak_devi am going to redeploy in some time, made some changes10:45
kjackal___ak_dev: I have an error on the juju unit of ovn10:45
kjackal___http://pastebin.ubuntu.com/25074590/10:46
kjackal___ak_dev: ^10:46
ak_devkjackal___: oh sorry i should have mentioned before, there is an config option in the OVN unit10:47
ak_devgateway-physical-interface10:47
ak_devyou will have to set it to the default interface the machine uses10:47
ak_devin GCE, it is ens410:47
ak_devip route | grep default shoud give u the interface name I suppose10:48
ak_devkjackal___: my sincere apologies, I know its a pain to redeploy everything again and again10:49
magicaltrout  /join #maas10:53
magicaltroutmeh10:53
admcleodhugs11:01
kjackal___ak_dev: redeployed only ovn and got http://pastebin.ubuntu.com/25074659/11:03
kjackal___should be an easy fix11:04
ak_devthat mkdir error is okay11:04
ak_devno problem with that11:04
kjackal___ak_dev: the node did not register11:07
ak_devyes, that was the problem I was facing, don't know why it isn't registering11:07
ak_devis the master stuck on "waiting for kube-system pods to start" ?11:09
ak_devthe network OVN creates is fine, the guy from openvswitch tested it11:12
ak_devI have no idea about why the node isn't registering11:13
ak_devkjackal___:  ^11:14
kjackal___ak_dev: do we need to start the node services using extra params?11:14
kjackal___Cynerva: and ryebot may be interested in this ovn work11:15
ak_devyes, there are some he has mentioned in the readme, which I couldn't see passed in the charm code11:15
kjackal___ak_dev: ah, the README! Let me read!11:15
ak_devI am trying that out now11:15
ak_devyes just a sec11:16
ak_devhttps://github.com/openvswitch/ovn-kubernetes11:16
ak_devthis is the overall readme11:16
ak_devhttps://github.com/openvswitch/ovn-kubernetes/blob/master/docs/INSTALL.K8S.md11:16
ak_devthis is for setting up k8s11:16
ak_devkjackal___:  ^ (sorry keep forgetting to tag you)11:17
kjackal___ak_dev: on the master if you go to /var/snap/kube-apiserver/current/args you can add the params manually and restart the respective service like  systemctl restart snap.kube-apiserver.daemon11:28
kjackal___the same goes for kube-controller-manager and kube-scheduler on the master11:29
ak_devkjackal___: oh thanks, that will help a lot! Will try and set the proper args and see if it works11:30
ak_devso in args, how do i specify the arguments?11:30
ak_devlike how we normally do in command line or is there any other format?11:31
kjackal___ak_dev: for example --master "http://127.0.0.1:8080"11:32
ak_devkjackal___: ah okay, that way then11:32
kjackal___ak_dev: as soon as you have the right params in place please go ahead and submit a PR so we add them on the charms. There is also a PR to add a config option for custom params...11:33
ak_devkjackal___: oh, that config option thing will be great11:34
ak_devi will once I am able to get this up and running11:34
kjackal___ak_dev: What you are doing is really interesting. If you get into trouble and you do not find anyone in this room open an issue here: https://github.com/juju-solutions/bundle-canonical-kubernetes so we follow up11:35
ak_devkjackal___: sure will do, thanks for helping out :-)11:36
kjackal___Usualy eu timezone I am around and later us hours you can ping Cynerva or ryebot11:37
SaMnCoadmcleod: yes back11:40
SaMnCowhat's up?11:40
ak_devkjackal___: will do11:43
iguezHi all. Juju has the feature of setting an APT mirror URL in the model config, which affects sources.list in LXC containers (juju model-config apt-mirror="URL"). Does anyone here know how to set a custom apt gpg key along with this mirror URL?11:55
ak_devkjackal___: i put in my args for kube-apiserver, and restarted the daemon, but it quits just after restart12:06
ak_devany reason why this is happening?12:07
ak_deveverything else restarted correctly12:07
kjackal___there is nothing in the service logs?12:07
kjackal___ak_dev: /var/log/syslog ? anything interesting there?12:08
ak_devkjackal___: looks like apparmor denied starting service12:09
ak_devhttps://www.irccloud.com/pastebin/blb6zoKf/12:10
kjackal___ak_dev: can you try restarting again?12:11
ak_devhttps://www.irccloud.com/pastebin/SNV9V6MA/12:13
ak_devkjackal___: ^12:13
kjackal_ak_dev: we need to look into this in more detail. Can you start kubeapi-server from the commandline: like /snap/kube-apiserver/77/kube-apiserver with --v 912:18
kjackal_ak_dev: and all your args12:18
ak_devkjackal_: oh okay, will do that now12:20
ak_devkjackal_: okay i think it started12:22
ak_devwill do the same for worker and see if it connectws12:22
kjackalak_dev: nice12:22
ak_devkjackal: curious, what is the --v 9 for?12:23
ak_devin my args, he has specified --v 212:23
ak_devkjackal: okay, so i restarted with my args12:28
ak_devand kubectl get pods returned the worker12:28
ak_devlooks like it is running then?12:28
ak_devkjackal: 'kubectl get nodes' i mean12:29
ak_devthis is a confirmation of sorts, that it runs ! all i need to do is now modify kubernetes-master and kubernetes-worker code with my args i guess12:30
=== mpontillo_ is now known as mpontillo
=== icey_ is now known as icey
=== nottrobin_ is now known as nottrobin
=== mup_ is now known as mup
ak_devkjackal: kjackal___: i need to figure out how to add parameters to the charms, how do i do that?12:47
ak_devI am not sure what i did differently when i restarted12:48
ak_devexcept that i restarted without the SSL12:48
kjackal__ak_dev: nice to hear you got it working!12:55
kjackal__for args... let me show you....12:55
kjackal__ak_dev: https://github.com/kubernetes/kubernetes/blob/master/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py#L833 here is where we set the params for some services12:58
kjackal__Since you are adding a new cni that replaces flannel it might make sence to start a discussion on how we do this the right way...12:59
kjackal__ak_dev: I will bring it up to the rest of the team. We should discuss this. I think the best place for this would be an issue on the bundle13:01
ak_devkjackal__: I did add some things at the place you mentioned, but I couldnt see my args when it actually ran13:02
ak_devkjackal__: yes, we can discuss this in an issue13:03
ak_devgreat idea :-)13:03
ak_devjust for reference, I am working with Narinder Gupta from canonical, my mentor for the OPNFV project13:03
ak_devunder JOID13:03
kjackalak_dev: would you be able to open an issue describing exactly what params you need available on which services? It would also be nice to have some pointers on the charms you have including the source so we can see exaxtly what is happening. For example opening specific ports should be easy.14:24
ak_devkjackal: yes, I am writing it up right now14:24
ak_devwill ping you once done :)14:24
kjackalthank you14:27
ak_devkjackal: kjackal__ : done15:01
ak_devhere is the link : https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/35015:02
kjackalak_dev: awesome thank you15:02
ak_devdo tell me if you require me to edit anything, and thank you the most :-)15:02
ak_devyou helped a lot15:02
kjackalAnytime ak_dev. We have some more things to do. Thank you for your work15:07
ak_dev:-)15:11
=== frankban is now known as frankban|afk
catbusHi, how long does it take for charms to show up on jujucharms.com? I tried both charm and bzr, still don't see the charm on jujucharms.com18:35
rick_hcatbus: the charmstore no longer uses ingestion to pull from bzr. The charm command is used to push things up. Once up you need to publish them and set the permissions such that everyone can see them18:41
rick_hcatbus: let me find the docs page real quick18:41
rick_hcatbus: https://jujucharms.com/docs/stable/authors-charm-store#submitting-a-new-charm18:42
catbusrick_h: ok, I will try it with 'charm' again.18:43
catbusthanks.18:43
catbusrick_h: it works now, thanks.18:56
rick_hcatbus: <3 good to hear18:56

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