/srv/irclogs.ubuntu.com/2014/06/04/#juju.txt

josemarcoceppi: around?01:20
=== menn0 is now known as menno0-afk
=== urulama is now known as uru-LJ
jamespage_lazyPower, designated: I do have a plan to work on that this cycle - we had some work done for a customer to enable this but I was not happy it was up for general use.05:51
jamespage_I have a proposed reference network topology and approach - basically you would be able to specify which network is used for each type:05:52
jamespage_admin-network: 10.5.5.0/2405:52
jamespage_for example05:52
jamespage_and the charm will figure out which configured network interface should be used for internal/admin traffic05:52
jamespage_there is already stuff in charm-helpers to discover network interfaces by cidr05:53
jamespage_I think its still up to MAAS/juju to actually configure the nics... the charms will not do that05:53
=== CyberJacob|Away is now known as CyberJacob
Mosibidesignated lazyPower jamespage :: that's functionality we also like to have in the openstack charms. We are working with the openstack charms and for example we have a VLAN interface where we want the tenant/neutron traffic to go/flow over06:44
MosibiBesides that, in our previous (pre-juju) deployment, we used vlan for the tenant networks. We would love to have that possibility in the charms.06:45
MosibiAs i mentioned yesterday on this channel, a colleage started working on the charms (for some other things we need) and when he has working code, he will submit it06:47
jamespageMosibi, sounds good - I have a design in mind for a reference network architecture based on best practices I've seen06:48
jamespageMosibi, once I have a little more polished I'll circulate it06:49
jamespageMosibi, juju + MAAS are due to grow first class support for managing network connectivity which will help alot06:49
jamespageMosibi, configuring the charms themselves is not actually that hard - the work done before was implemented on a deployment with bonded 10G nics, with traffic separation via VLAN06:50
=== CyberJacob is now known as CyberJacob|Away
=== vladk|offline is now known as vladk
=== gmb`` is now known as gmb
stubFreshly bootstrapped local provider with 1.18.4, I get a happy machine 0, status etc. working. But I can't deploy a service. The new machine just hangs 'pending', and there are no logs.10:52
stubAny hints on diagnosing this further?10:53
stubThe jujud process is regularly kicking in chewing a little CPU, but no idea what it is doing.10:53
stubLooks like the machine is created, but ssh is failing. All my keys being refused, including ~/.juju/ssh/juju_id_rsa10:59
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
stubmachine-0: no kvm containers possible ?11:45
=== vladk|offline is now known as vladk
=== psivaa is now known as psivaa-lunch
stubSo for those reading along at home, ufw had been enabled and my lxc stuff on 10.0.3.* was unable to talk to my main lxc IP, including the log messages.12:21
lazyPowerjamespage: thats awesome to hear. Thank you for the follow up12:50
lazyPowerstub: ah, good catch. I haven't heard of any UFW based issues in a bit. Looks like its back to haunting around and stirring up trouble.12:51
lazyPowerstub: did you see jorge's fix for rsyslog-forwarder? https://code.launchpad.net/~niedbalski/charms/precise/rsyslog-forwarder/lp-1323627/+merge/22190313:04
stubyeah. I was copying from the charm, as it seemed to be the only place the syslog interface was documented13:05
stubI'd review it but I have no idea what the double @@ or lack thereof would do13:07
lazyPowerstub: i'm looking at it myself - it appears to just change the port on the destination13:08
lazyPowerfrom 10514 to 51413:08
lazyPowerniedbalski_: any light wrt the @@ in the config change proposed for rsyslog-forwarder?13:11
=== tedg is now known as ted
=== psivaa-lunch is now known as psivaa
=== ted is now known as tedg
stublazyPower: https://bugs.launchpad.net/ubuntu/+source/ufw/+bug/573461 , fixed in utopic but trouble for me13:32
_mup_Bug #573461: UFW blocks libvirt bridged traffic <amd64> <apport-bug> <lucid> <ufw (Ubuntu):Fix Released> <https://launchpad.net/bugs/573461>13:32
lazyPowerbizarre. Apparently I'm running the devel release13:33
lazyPoweri thought i was on 1.18.4, nope. 1.19.313:33
niedbalski__lazyPower, ,@host is udp, @@host is TCP, now by default is forwarding to UDP  (ref: http://www.rsyslog.com/doc/rsyslog_conf_examples.html)13:34
lazyPowerahhhhh ok.13:34
stubI knew that.13:38
=== alexisb_out is now known as alexisb
lazyPowerstub: haha :)14:41
lazyPowerthat's amusing. I got bit by that earlier today too. knowing something but not knowing it.14:42
khussi am installing havana openstack on Ubuntu 12.04 using juju. How do I find the compatible ceph version14:44
khussdoes a juju charm install the actual package or is it done outside the charm?15:14
lazyPowerkhuss: the charm is responsible for installing any packages required to run the service.15:17
khusslazyPower:  the cs:precise/ceph is installing the very old version of ceph..15:18
khusslazyPower:  the charm is the latest though... i;m wondering how to upgrade the ceph itself15:19
khusslazyPower: the readme doesn;t say what version of the ceph is installed by this charm15:19
lazyPowerkhuss: it may be prudent to open a bug against the precise ceph charm to have the ceph version updated.15:19
lazyPowerI know the openstack charmers are really responsive on the bug tracker.15:19
khusslazyPower: is there a way to manually update the ceph version15:20
lazyPowerkhuss: it's recommended that you use the charm to perform any upgrades, to keep support consistent. If a newer version of ceph breaks the charm functionality, teh charm itself would need to be upgraded. I'm not that familiar with ceph, so its hard for me to say what the implications are with just cowboying an update.15:21
khusslazyPower: are you aware about any irc channel for juju openstack charms15:21
lazyPowerkhuss: they are in #juju15:24
khusslazyPower: if I can find them :)15:24
lazyPowerniedbalski_: approved LP22190315:26
elarsonwould a charm be the correct unit to release an app? I say "app" in the sense that "services" deployed with juju might be mongo or hadoop where as the "app" would be an application that is used by the organization and is their code.15:39
* elarson is just starting with juju and trying to understand where it fits15:40
khusslazyPower: i've a charm in a weird state. there are no machines associated it with. juju destroy-service doesn't remove it so I'm not able to deploy the new charm. here is the output from juju status: ceph:     charm: cs:precise/ceph-26     exposed: false     life: dying     relations:       client:       - glance15:44
lazyPowerkhuss: is there a dependent service that's related to ceph in an error state?15:55
lazyPowerif hook relations fail, the charm will be stuck in a dying state pending you resolving them.15:55
khusslazyPower: well there is a broken relationship but it is almost like a deadlock. Both services can't be killed16:00
lazyPowerkhuss: have tried resolving on the service its related to?16:01
lazyPowerjuju resolved service/#16:01
lazyPowerthats kind of risky if you're in ap roduction setup - as it may leave behind some traces that the charms departed hook performs. YMMV if you go this route.16:01
lazyPowerit would probably be better to debug-hooks into the service and re-execute the hook to determine why its failing if its a production system.16:01
khusslazyPower: i tried resloved but it didn't work.. may be I will do juju destroy-environment and start all over16:04
designatedjamespage, That sounds awesome.  You have already figured it all out or you'll be working on it?  I'm interested in whatever information you can provide.16:32
themonki am facing a problem with config-changed and relation-chabged, problem in i have a template in this template a variable is ip, this ip is dependent on relation-changed, when relation happen it comes from other service, but that template has other variable which are comes from config.yaml so if i change config after relation-changed ip will change to default 'localhost' and relation will bw broken, how do i fix this?16:34
themonklazyPower: hi16:35
themonkmarcoceppi: hi16:36
lazyPowerthemonk: you need to set some kind of a sentinel value, like touch $CHARM_DIR/relation-lock, and check for the presence of that sentinel to determine of the value should be updated.16:44
lazyPowerthats one method, but this makes me pause to ask "Why are you exposing a configuration value that comes from a third party? Shouldn't this by definition be opinionated in the point its nto exposed to the user and only updated via relationship?.16:45
themonklazyPower: my problem is elation related variables and config related variables both are in same config file template :( i cant change it16:48
themonklazyPower: about the sentinel value method, in this way after relation happen, i cant change config values ryt16:49
lazyPowerthemonk: you're giving me a catch 22 that your config variable is overriding the incoming value from a remote service. You either need to unexpose teh configuration variable, or change the relationship variable. it's 'OK' to be opinionated in charm development.16:51
lazyPowerwe encourage it, as its spoon feeding the end user best practices with their deployments.16:51
lazyPowerbut without further context, i cant comment - if you have a branch to look at i'll be more than happy to review whats happening and make a proper suggestion.16:52
james_w`themonk: I think you need to store the relation variables in a file in relation-changed16:53
james_w`and then generate the template using that file and the config values16:53
james_w`and you can do that from both relation-changed and config-changed, and they both have all the values that they need16:54
james_w`unless you are talking about the relation value being for the same thing as one of the config values16:54
james_w`in which case it will be more work to get the behaviour you want16:55
themonklazyPower: i cant show my code right now :(16:55
themonkjames_w`: i concidered this option too like make a json file :)16:58
EgoistHello16:58
Egoisti have a question, where is store information what hook is executed after start hook?16:59
=== salgado_ is now known as salgado
lazyPowerEgoist: depends on the next action that is triggered.  The typical hook flow during deployment:  install => config-changed => start -- afterwords, its dependent on the action that is taken. It could be any *-relation-joined, config-changed, or upgrade-charm hooks that are fired.17:04
lazyPoweror stop, if the service is destroyed.17:04
Egoistis there any imformation stored about what happend when you deploy more than 1 instance?17:09
Egoisti mean something like this:17:09
Egoistjuju deploy mysql -n 317:09
lazyPowerEgoist: after the traditional deployment hook sequence is executed, the peer-relationship hook will be triggered on all 3 instances.17:10
Egoistis it possible to make changes in peer-relationship?17:11
lazyPowercan you refine that a bit more? as 'make changes' is kind of open and broad, and could mean many things.17:11
Egoisti don't want to make relationship beetween this mysql instances that I mentioned earlier17:14
EgoistI just want to have 3 separate instance17:14
lazyPowerEgoist: to that end, it would be better to deploy them as juju deploy mysql "alias"17:15
lazyPowerthey then become independent service units, without a peering relationship.17:15
Egoistok, i get it17:16
lazyPowerand can be independently scaled/managed17:16
Egoistmay I ask one more question17:16
lazyPowersure17:16
Egoistwhy juju sometimes don't have relation in list, even if relation-set was executed? Is it possible that relation-set is return false because few instances try to executed this command in the same time?17:17
lazyPowerEgoist: do you have an example? i'm not sure what you're saying.17:20
lazyPowers/saying/asking/17:20
Egoistwhen i want to try make a relation beetwen two instance, and each instance execute relation-get and it's return nothing17:24
gQuigsI'm just curious and couldn't find backstory on the decision to move from lp to github, anyone know where it took place?17:29
marcoceppigQuigs: for juju-core?17:29
gQuigsmarcoceppi: yup17:30
lazyPowerEgoist: relation-get returning nothing means it wasn't set on the other side. During which hook is this call being executed? It should be the relationship-changed hook and not the joined, as joined is pre-setup work like archiving an existing database provider or installing pre-req packages.17:30
marcoceppigQuigs: it's been decided for a few months. Discussion would have happened on juju-dev mailing list17:30
gQuigsmarcoceppi: yea, I've been looking over the mailing list... went back to oct 201317:31
Egoistohh, ok, i get it. Thank you very much17:32
Egoist:_17:32
Egoist:)17:32
marcoceppigQuigs: ask in #juju-dev they should be able to enlighten17:32
gQuigsmarcoceppi: ok, thanks!17:32
jcastro... and all my stuff is stuck on pending today17:38
lazyPowerjcastro: stub ran into an issue last night with UFW blocking his deployments.17:41
lazyPowerhave you disabled UFW to validate that's not the over-arching issue? his was specific to 1.18.4 i believe, as i'm on 1.19.x and haven't seen teh same behavior.17:41
jcastromy ufw is off17:41
khusslazyPower: I've filed a bug regarding the ceph issue we are seeing - https://bugs.launchpad.net/juju-core/+bug/132646617:42
_mup_Bug #1326466: Openstack install failing because of outdated Ceph charm? <juju-core:New> <https://launchpad.net/bugs/1326466>17:42
lazyPowerkhuss: brilliant. thanks for the bug report!17:43
lazyPowerjcastro: boo :(17:43
ahasenack$ charm get ntp17:55
ahasenack(...)17:55
ahasenackbzr: ERROR: Transport operation not possible: http does not support mkdir()17:55
ahasenackreally, no anonymous charm get?17:55
jcastrogit clone https://github.com/charms/ntp.git17:59
jcastro:)17:59
jcastroahasenack, that sucks though, can you file a bug on charm-tools?17:59
ahasenackok18:00
ahasenackjcastro: I would need the ntp charm to be available on trusty, what are the steps to get that done?18:02
jcastroahasenack, currently, ask marcoceppi to push it to trusty18:03
ahasenackmarcoceppi: hi, are you in a position to do that? ^^^18:04
marcoceppiahasenack: have you tested it on trusty?18:05
ahasenackabout to18:06
ahasenackhitting issues with charm get, and now a overzealous firewall that doesn't allow connections to bazaar.lp.net18:06
ahasenackmarcoceppi: I can give both (ntp and ntpmaster) a shot and report back, then you can promote them to trusty if no blockers are found? Is that more or less the procedure?18:07
marcoceppiwriting tests for it is the fastest way to get it in to trusty18:07
ahasenackoh, that18:07
* marcoceppi looks at the charm18:07
ahasenackI'd say it's a bit lacking in the unit test area18:09
jcastroahasenack, yeah that's why we haven't mass-moved the charm store to trusty18:28
ahasenackstill, it says "recommended" in the charm store ;)18:28
jcastroprecise is recommended18:30
nookyHello, I've a question about the Bundle import using charms that are local, when I try to import the bundle I'm getting errors on invalid configs. For example: An error occurred while deploying the bundle: Invalid config charm precise/true-node-app-1 app_url=https://github.com/zarffg/prototype Invalid config charm precise/true-node-app-1 app_name=prototype Invalid config charm precise/true-node-app-1 app_port=300018:34
=== roadmr is now known as roadmr_afk
jcastronooky, can you pastebin your bundle somewhere?19:22
nookyjcastro: yes, wait a minute19:23
=== roadmr_afk is now known as roadmr
nookyjcastro: http://pastebin.com/PPAdNe8P19:30
jcastroI have  " " around my charm: local/blah stuff19:32
jcastroI don't think that's your problem though19:33
jcastromarcoceppi, ideas? ^19:33
nookyjcastro: yes, I've tried with double quotes around the charm definition, but isn't working19:33
rick_h_nooky: what is 'bundle import'? How are you importing?19:33
nookyrick_h_: via juju gui19:34
rick_h_nooky: the gui doesn't support deploying bundles with local charms currently19:34
nookyoh19:34
nookyrick_h_: juju deployer ?19:35
nookyor quickstart ?19:35
rick_h_nooky: yep19:35
nookyfine19:35
nookylet me check19:35
rick_h_sorry, juju has an issue we need to correct for that to work properly from the GUI at the moment19:35
nookyrick_h_: I've tried to deploy via juju-deployer and didn't work, the errors are the same that importing using juju-gui19:52
rick_h_nooky: ok, well at least now have an idea that it's something that will work once the issue is worked out.19:53
nookyrick_h_:  i need to use double quotes to charm and options definition?19:53
rick_h_nooky: can try it. Not sure. It fussed about all three config options. Stuff like port shouldn't need the quotes, but it complained about that as well.19:55
rick_h_does those cross refence to the charm itself exactly?19:56
nookyrick_h_: look at this: https://bugs.launchpad.net/juju-deployer/+bug/129794019:57
_mup_Bug #1297940: deployer does not support a local: prefixed charm url.  <api> <charms> <state-server> <juju-core:Triaged> <juju-deployer:Confirmed for hatch> <https://launchpad.net/bugs/1297940>19:57
hazmatnooky, its a different syntax20:00
hazmatnooky, that deployer file you pasted is wrong in a few ways20:01
hazmatnooky, s/charm: local:precise/true-varnish-0/charm: true-varnish20:01
hazmatyou can also point to github repos as the charm branch20:01
nookyhazmat: ok, thanks, I'll try to replace the charm definition in the bundle file20:03
hazmatnooky, charm: <charm_name> should do the trick20:03
nookygreat20:03
nookyhazmat: using the way charm: <charm_name>, I'm getting  this error, 2014-06-04 20:06:58 Invalid charm specification true-varnish20:08
nookyhazmat: Is possible that the errors are because I'm using a new environment and not the environment where I've exported the Bundle?20:16
hazmatnooky, well with local charms you have to access to them... locally there not in the bundle20:17
hazmatgui exports of local charms are not functional20:17
hazmatnooky, i'd also toss a series: precise  right under envExport20:18
hazmatyou can specify branch: https://github.com/name/repo.git for the charms to pull them straight from vcs20:19
nookyhazmat: ok ok20:19
nookyso, can  i define in this way? charm:  https://github.com/name/repo.git20:20
marcoceppinooky: not quite20:21
marcoceppiyou would have to change charm to branch20:21
nookymarcoceppi: ok, thanks20:21
* hazmat signs off20:41
=== vladk is now known as vladk|offline
=== menno0-afk is now known as menn0
l1la mysql charm that sets up blank databases with no tables21:03
=== wallyworld is now known as Guest56344
=== wallyworld is now known as Guest68975
=== sebas538_ is now known as sebas5384

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