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

=== frankban|afk is now known as frankban
kjackalhi ak_dev, are you ok with the peer relation problems? Reading your post on the ovn issue07:31
anrahIs there a way to mock reactive-decorators when writing unit-tests for charms?09:53
anrahI mean by that that somehow to write test without actually deploying the unit to make sure that spesific method is called09:54
ak_devkjackal: hey, sorry had to go out for classes10:11
ak_devI still have an issue there, are you free to talk?10:12
armaanjamespage: hello, i have deployed mitaka and just noticed that neutron.conf in compute and network node starts with #kilo line while neutron.conf in neutron-api container starts with #mitaka10:12
armaanjamespage: Is that intentional?10:12
jamespagearmaan: that line indicates the earliest release that version of the template that generate the file supports10:13
jamespageso its not always the same as the series you're deploying10:13
armaanjamespage: ok. I asked because all agents logs are filled with either rabbit timeout messages or pymysql db errors. I can spawn VMs but i cannot ping them10:14
armaanjamespage: The rpc messages are very similar to this bug https://bugs.launchpad.net/oslo.messaging/+bug/133873210:15
mupBug #1338732: Timed out waiting for a reply via rabbit <icehouse-backport-potential> <in-stable-icehouse> <in-stable-juno> <verification-needed> <Ubuntu Cloud Archive:Fix Released> <oslo.messaging:Fix Released by sileht> <oslo.messaging (Ubuntu):Fix Released> <oslo.messaging (Ubuntu Trusty):Fix10:15
mupReleased by james-page> <oslo.messaging (Ubuntu Utopic):Won't Fix by niedbalski> <oslo.messaging (Ubuntu Vivid):Fix Released> <https://launchpad.net/bugs/1338732>10:15
kjackal_ak_dev: I am here!10:17
ak_devkjackal_: hey great! So the issue is with me getting stale data over the relation10:18
ak_devjust a sec10:18
ak_devthis is the interface : https://github.com/AakashKT/ovn-kubernetes-charm/tree/lenovo-pod/interfaces/master-config10:19
ak_devthe setup works fine with one master / OVN and one worker / OVN10:19
ak_devOVN being the subordinate to master and worker10:19
ak_devand I am using the above interface to pass some data from master OVN to the worker OVN10:20
ak_devthe data being sent is for that particular worker instance10:20
kjackal_wait up ak_dev this does not sound right10:20
ak_devkjackal_: oh alright, did I follow a wrong approach?10:21
kjackal_the peer relation is for a relation established among units of the same application10:21
kjackal_for example if you have many masters and you want them to talk to eachother one option is to use a peer interface10:22
ak_devkjackal_: in this case, I will have many OVN units subordinate to either master or worker10:23
kjackal_if you have a master-worker relation you should be using an interface with provides/requires parts10:23
kjackal_ak_dev: can you show me where this interface is used?10:23
ak_devkjackal_: oh, so I need to exchange data between different OVN charms10:23
ak_devyeah10:23
ak_devhttps://www.irccloud.com/pastebin/NHnDb9tG/10:24
kjackal_ah, that sounds better :)10:24
ak_devah okay :-)10:25
ak_devI am not sure whether I have implemented the interface right, but I get the wrong data when I add another unit10:25
kjackal_ak_dev: you have a single ovn unit acting as a master to all the rest or are all ovn subordinates equal?10:26
ak_devkjackal_: oh, we can set one to be master? I have not set anything as such, so all are equal10:27
kjackal_ok10:27
ak_devhttps://github.com/AakashKT/ovn-kubernetes-charm/blob/lenovo-pod/layers/ovn/reactive/ovn.py#L14610:28
ak_devkjackal_: for the master side of the data10:29
ak_devhttps://github.com/AakashKT/ovn-kubernetes-charm/blob/lenovo-pod/layers/ovn/reactive/ovn.py#L38910:29
ak_devhttps://github.com/AakashKT/ovn-kubernetes-charm/blob/lenovo-pod/layers/ovn/reactive/ovn.py#L41310:29
ak_devworker side10:29
kjackal_ak_dev: help me understand something10:37
kjackal_ak_dev: you start with a single ovn charm10:37
kjackal_ak_dev: you add a second peer and this causes the connected state to be set:https://github.com/AakashKT/ovn-kubernetes-charm/blob/lenovo-pod/interfaces/master-config/peers.py#L10910:38
kjackal_then the worker side will send its data over https://github.com/AakashKT/ovn-kubernetes-charm/blob/lenovo-pod/layers/ovn/reactive/ovn.py#L41310:39
kjackal_and will set the 'worker.cert.sent' state10:39
ak_devkjackal_: yeah10:39
kjackal_ak_dev: then the master will recieve the data: https://github.com/AakashKT/ovn-kubernetes-charm/blob/lenovo-pod/layers/ovn/reactive/ovn.py#L38910:41
kjackal_ak_dev: and will set the 'worker.data.registered' state10:42
ak_devkjackal_: this part is for worker to receive data again from master10:42
ak_devhttps://github.com/AakashKT/ovn-kubernetes-charm/blob/lenovo-pod/layers/ovn/reactive/ovn.py#L14610:43
ak_devhere is where master receives the data just sent10:43
kjackal_ak_dev: ok I think I get it10:51
kjackal_ak_dev: so what goes wrong with this interface?10:51
kjackal_Some exception ?10:51
ak_devno, so for the first two units, one subordinate to master and one subordinate to worker, this works fine10:52
ak_devwhen I add another unit subordinate to another worker unit, things go wrong10:52
ak_devhere, by worker and master I mean kubernetes-worker and kubernetes-master10:52
kjackal_"go wrong" how?10:52
kjackal_ak_dev: what happens10:53
kjackal_?10:53
ak_devin the new unit, I get the same data that was sent to the first unit from master10:53
ak_devnow in the new unit, the state "worker.cert.sent" does get set10:53
ak_devkjackal_: so I am not sure where its going wrong10:55
ak_devis there any way you can connect via juju to my controller? I have this setup already, with the error10:57
ak_devon GCE10:57
ak_devkjackal_: ^^10:57
=== disposable3 is now known as disposable2
=== zeus is now known as Guest75507
=== Guest75507 is now known as zeus`
=== zeus` is now known as zeus
=== frankban is now known as frankban|afk
tychicuswhat is the difference between charms and bundles maintained by openstack-charmers vs openstack-charmers-next?17:53
rick_htychicus: the -next are the in dev charms/bundles for the next release of openstack17:54
rick_htychicus: they might include new charms for a new service in the openstack or new config/behaviors that are going to be setup/allowed to be tweaked17:54
tychicusok, so those should be avoided for production environments17:54
rick_htychicus: yes, they're useful for preparing for what's coming in the future but they're in dev17:55
tychicusrick_h: thank you. I will keep that in mind17:56
tychicusI am looking at adding the ceph fs charm https://jujucharms.com/ceph-fs/ to my existing ceph deployment.  the documentation mentions "In my example deployments on EC2 the following ceph.yaml will work:" I don't see the afore mentioned ceph.yaml, is there something I am missing?18:00
rick_htychicus: not sure, beisner do you know about the ceph-fs stuff there? ^18:01
beisner_hi rick_h tychicus - looking at that ceph-fs doc issue now18:37
beisner_fyi, it seems to be erroneous line left in the readme18:38
tychicusbeisner_: so I should just be able to juju deploy ceph-fs and juju add-relation ceph-fs ceph-mon18:41
beisner_tychicus - indeed.  the charms have config options which can be adjusted to fit your needs.  osd device names, for example.  also, whether or not to unmount ephemeral devices.18:43
tychicusright, I already have the ceph cluster up and running, just looking to add ceph fs18:44
beisner_i've raised a docfix review to remove that bit of confustion on the ceph-fs charm.  thanks for raising that here, tychicus & rick_h19:46
beisner_confusion, even ;-)19:46
=== rick_h changed the topic of #juju to: OUTAGE: jaas issue with add-model (https://lists.ubuntu.com/archives/juju/2017-July/009256.html) | #juju Juju as a Service Beta now available at https://jujucharms.com/jaas | https://review.jujucharms.com/ | https://jujucharms.com/docs/ | http://goo.gl/MsNu4I || https://www.youtube.com/c/jujucharms

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