/srv/irclogs.ubuntu.com/2015/03/16/#juju.txt

=== kadams54 is now known as kadams54-away
=== urulama is now known as urulama|kids
=== urulama|kids is now known as urulama
=== Murali_ is now known as Murali
Muntanergood morning guys o/10:15
MuntanerI'm having a little issue with security groups10:16
Muntanerwhen I delete the charm that I'm developing, the relative security group in nova isn't destroyed10:16
Muntanerhow can I do this?10:16
=== kadams54 is now known as kadams54-away
=== zz_CyberJacob is now known as CyberJacob
=== TimNich_ is now known as TimNich
=== kadams54 is now known as kadams54-away
Muntanerhello guys15:36
Muntanerhow can I tell to a juju charm which image should it run in his VM when the service is deployed?15:37
lazyPowerMuntaner: that is denoted by the series of the charm15:37
lazyPowerMuntaner: eg: juju deploy trusty/mysql - will tell juju to allocate a trusty VM, and then deploy the charm on top of trusty.15:38
MuntanerlazyPower, thanks15:41
jrwrenMuntaner: juju has a "default-series" option which you can set in environments.yaml so that if you don't specify a series when deploying, and there are charms in both, it will default to this settings.15:46
R1ckit states here: https://news.ycombinator.com/item?id=5738252 "I tested juju a few months ago and found it to be buggy and unreliable." this was however from almost 2 years ago. does anybody agree with that statement still?15:59
AskUbuntu_Adding network to machine deployed by Juju | http://askubuntu.com/q/59751416:02
beunoR1ck, not at all, we use it for plenty of production services in Canonical, as do many customers16:23
bdxHello, I am wondering if anyone can give any insight as to what charm or service parameters determine what interface compute nodes talk to storage on16:31
bdx??16:31
jcastromarcoceppi, around?17:02
marcoceppiyes17:02
jcastroso I have a card that's l ike17:03
jcastro"provide examples to what a good charm looks like"17:03
jcastroand I'm going through the links in the docs17:03
jcastroother than ones that should link to new charms, like say, services framework, is there anything in these examples ones like the vanilla forum ones that need to be fixed?17:04
marcoceppiprobably17:05
jcastroevilnickveitch, heya17:14
evilnickveitchjcastro, hi17:14
jcastrothe review queue link is 40417:14
jcastroso I fixed them and pushed but I think you merged before17:14
jcastrohttp://review.juju.solutions instead of manage.blah17:14
evilnickveitchokay, will take a look17:15
bdxmarcoceppi, jcastro: How can I configure nova-compute to use ~(os-admin-network) for storage traffic?17:15
jcastroI am unfamiliar with the nova-compute charm17:16
jcastrowe have a list for those iirc?17:16
evilnickveitchjcastro, done17:16
bdxOhhh really?17:16
jcastrothanks17:16
jcastrojamespage, ^^^17:17
jcastroevilnickveitch, we should make it so like if a 404 is detected when we build the docs or something it yells at us17:18
jamespagebdx, hello17:18
jamespagenova-compute -> ceph?17:18
bdxjamespage: Hi, hows it going??17:18
bdxyes!17:18
jamespageso you're using the public and admin network configuration in the ceph charms right?17:18
evilnickveitchjcastro, yes, well we had that lint tool before, but that was before we switched to markdown.17:19
bdxjamespage: Correct17:19
evilnickveitchit is on my list of things to add to the new universal build tool17:19
jamespagebdx, ok so the nova-compute nodes will access ceph over the public network IP's  - so if you make the ceph public-network == os-admin-network that should work17:19
evilnickveitchjcastro, but to be honest, it may take a while until that gets done, looking at all the stuff I have to do17:20
jamespagethis assumes that both ceph and nova-compute are both physically or logically attached to the same networks17:20
bdxjamespage: Thats what I currently have....17:20
evilnickveitchjcastro, however, we can probably cobble together a script to do it17:20
jamespagebdx, what are you seeing?17:21
bdxThats the problem....my admin network is 1G....I get bottleneck on the 1G interface17:21
jcastroevilnickveitch, ok I'll mention it at the sprint, see if someone is willing to have a go17:21
jamespagebdx, do your compute and ceph nodes have 10G's or alternative 1G's that can be used?17:21
bdxYes, I have 2x 1G and 2x 10G on each node17:22
jamespagebdx, ok - so in that config I'd probably bond the 2 x 1G's and run control plan traffic over that network17:22
bdxjamespage: Here is what my 1G os-admin-network interface looks like on my compute node17:22
bdxhttps://www.dropbox.com/s/ws3g577yjzq6v0v/Screenshot%202015-03-12%2011.55.35.png?dl=017:22
jamespageand do the same for the 10G's and run os-data-network and ceph-public-network over that17:23
bdxjamespage: Here is my 10G os-data-network interface on compute node17:23
bdxhttps://www.dropbox.com/s/vqt3z5dauyiewjj/Screenshot%202015-03-12%2011.55.14.png?dl=017:23
bdxjamespage: I now realize that os-data-network doesn't need to be 10G17:24
jamespagebdx, well it might depending on how busy your tenants get17:24
jamespagebdx, are you using the ceph nova backend for instance storage?17:25
R1ckbeuno: well yes but seeing as its Canonical thats developing it, you should say that.. I'm looking for independant opinions ;)17:25
bdxjamespage: Yes17:25
jamespagebdx, right - so that is going to get pretty busy with all the io17:25
jamespageyou def want that running over the 10G17:26
bdxTotally, but that means I need a 10G switch for os-admin17:26
jamespagebdx - so you need to configure the ceph-public-network with the network CIDR for the 10G nics you have17:26
jamespagebdx: ceph-public-network does not have to be the same as os-admin-network17:27
jamespagebdx: the compute units just need to have a network connection to ceph-public-network - preferably over the 10G links :-)17:27
bdxjamespage: now we are getting somewhere17:27
jamespagebdx, the network support across the charms is endpoint driven - the services when related will say 'connect to me over XXX' - ceph public network for ceph17:28
jamespageclients will just use the most direct link they have17:28
bdxjamespage: I understand that....but how does compute know what interface to talk to ceph-public-network?17:29
jamespagebdx, by the magic that is linux network routing17:29
jamespagebdx, linux will just make the best choice - 1) the interface attached to the network 2) an explicit route via a gateway 3) the default route17:30
jamespagebdx, netstat -rn will tell you which of those will happen17:30
jamespage1) or 3) are most likely17:30
jamespagedon't ever do storage traffic via a router - the latency will suck17:30
jamespagebdx, does that make sense?17:32
bdxjamespage: Ok, so I create ceph-public-network: 10.50.0.0 (10G), ceph-cluster-network: 10.60.0.0 (10G), os-admin-network: 10.70.0.0 (1G), os-data-network: 10.80.0.0 (1G), os-internal-network: 10.90.0.0 (1G), os-public-network: 10.100.0.0 (1G)17:32
bdxnova-compute only has params for os-data-network17:32
jamespageyup17:32
jamespagenova compute does not have any endpoints - it just consumes them17:33
bdxSo how does compute know to talk to 10.50.0.0 for storage trafficH17:33
jamespagebdx, because it must have a 10.50.0.0 network connection17:33
jamespagebdx, note the charms do not setup and configure network interfaces17:33
beunoR1ck, I understand, I was just commenting on the stability, given that we run our most critical services on it (SSO, the software store, payments, etc)17:33
jamespagebdx, they just detect and consume what's already there17:34
beunoyou would know fairly quickly if it wasn't stable   ;)17:34
jamespagebdx, MAAS + Juju are developing features to support network interface configuration (discover is already supported)17:34
bdxjamespage: Ahh, ok....so nova-compute will know to talk to ceph-public-network for storage traffic even if I do not specify 10.50.0.0 anywhere?17:34
bdxok17:34
R1ckbeuno: awesome :)17:34
jamespagebdx, yup - cause the ceph charm will pass it some 10.50 addresses - these get configured into /etc/ceph/ceph.conf and used that way17:35
bdxjamespage: Phewwww, this is great news!17:36
bdxjamespage: Thank you for taking the time to explain that.....it has been driving me crazy.17:36
jamespagebdx, hey - its a little complex right now as neither maas or juju exposes networking in a consumable way by end-users or charms - that is coming - but the openstack charms jumped the gun on this due to requirement todo what you're doing17:37
jamespagebdx, you can use a special charm to config up your boxes first - I've seen people use the 'ubuntu' charm with some extra scripts called from config-changed hook to configure the network17:38
jamespagethat's a stop-gap until everything hooks up between MAAS/Juju/Charms17:38
bdxjamespage: Ahhh totally, thats a great idea.17:39
bdxjamespage: I have a feeling what you advised is going to be exactly the fix I am looking for...for the time being.17:40
jamespagebdx, once everything is up and networked, you can then use the "--to" syntax to target services are particular machines17:40
jamespagebdx, erm so you will have to re-deploy your ceph cluster - its not possible to switch the public network post deployment17:40
jamespagedue to the way inter-mon communication works17:40
bdxjamespage: Entirely.17:42
jamespagebdx, now that would be a neat trick but I feel I could waste alot of midnight hours trying to make that work17:42
jamespagebdx, are you using lxc containers for any of the services? that's particularly tricky with the network split support right now17:43
bdxjamespage: Totally....I am using the openstack-installer as our means of deployment here as DarkHorseComics17:43
jamespagebdx, ok so the lxc containers juju creates will only get networked to eth0 via a bridge17:44
bdxI am using nucs in my testlab for supporting services that aren't compute, quantum-network, and storage(ceph)17:44
jamespageso that does limit what you can do17:44
jamespagebdx, you can if you are feeling brave create the lxc containers with the right bridges/networking and then manually introduce them to your environment - but its a bit fiddly17:45
jamespagebdx, I've also seen people use KVM machines networked up and then registered into MAAS for deployment - the power control is still manual (maas has some rudimentary virsh support - but its not for remote machines - just tesing).17:46
bdxjamespage: Totally......I just need to finish defining our deployment methodology....getting storage traffic off the os-admin-network/interface is one of my last issues to resolve.17:47
jamespagebdx, awesome - hope this conversation unblocks you17:48
bdxjamespage: I'm pretty sure you can use the "virsh" power type in maas17:48
jamespagequite likely17:49
bdxThats what I use in my kvm labs...17:49
bdxThanks again for your support17:49
jamespagebdx, btw which type of tenant networks are you going to use?17:50
jamespageone of the overlay network types? (gre/vxlan)17:50
bdxgre17:50
bdxjamespage: Yea, gre...why?17:51
jamespagebdx, oh wait - your using os-data-network - that helps17:52
jamespagebdx, packet fragmentation can be awkward - make sure you configure the DHCP server for that network (or your static network config) to use a MTU higher that 1500 - preferably 900017:52
jamespagebdx, GRE carries some overhead - using a higher mtu ensures that you don't get packet fragmentation which can impact performance and cause network issues with nofrag packets17:53
jamespagebdx; the ceph network would also benefit from that17:53
bdxjamespage: Totally, I was thinking about opening up all interface to mtu 900017:54
bdxjamespage: Do you see any issue with that?17:54
jamespagebdx, that's a good idea17:54
jamespage"       option interface-mtu 9000;"17:54
jamespagedoes the trick in isc-dhcp-server17:54
jamespageyou can edit the template for that in MAAS (on the assumption you are using MAAS for DHCP)17:55
bdxEntirely, I am17:55
bdxjamespage: I have edited my curtin_userdata to bring up my extra interfaces...do you think this is a reasonable way of doing this?17:57
bdxjamespage: http://paste.ubuntu.com/10611047/17:57
jamespagebdx, absolutely17:57
* jamespage looks at the details17:57
jamespagebdx, hows that working for you?17:58
bdxjamespage: Excellent!17:59
jamespagebdx, maas curtin preseeds are not my strong point17:59
jamespagebdx, you could use /etc/network/interfaces.d to fragment the config a bit - but that's my only comment17:59
bdxI couldn't figure out how else to bring up my extra interfaces.....that was the only thing other than making a puppet class for them17:59
jamespageeth1.cfg eth2.fg etc...17:59
jamespagebdx, this is where I've seen folk use a special charm to configure the networks up18:00
bdxjamespage: Ok, I'll keep that in mind.18:01
jamespagebdx, well good luck - I'm EOD18:01
jamespagettfn18:01
bdxjamespage: Ok, thanks again!!18:03
=== roadmr is now known as roadmr_afk
=== kadams54_ is now known as kadams54-away
jcastrohey rick_h_19:55
jcastrohttp://readme.io/19:55
=== roadmr_afk is now known as roadmr
=== kadams54 is now known as kadams54-away
marcoceppidear hatch, THANK YOU https://github.com/juju/juju-gui/pull/70720:25
hatchmarcoceppi: :D20:26
hatchmarcoceppi: it hasn't yet been QA'd by third parties so don't thank me YET ;)20:26
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away

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