/srv/irclogs.ubuntu.com/2016/06/09/#juju.txt

=== natefinch-afk is now known as natefinch
=== thumper is now known as thumper-afk
=== frankban|afk is now known as frankban
gnuoytinwood, got a sec for https://github.com/openstack-charmers/charms.openstack/pull/10 ?10:48
tinwoodgnuoy, lemme take a look.10:48
gnuoyta10:48
tinwoodgnuoy, done.10:53
gnuoytinwood, thanks10:53
gnuoytinwood, updated10:59
tinwoodgnuoy, looks good to me +111:02
gnuoytinwood, can you hit the button?11:12
tinwoodgnuoy, I don't know - I'll give it a go.11:12
tinwoodgnuoy, sadly not.  I don't have write access tot he openstack-charmers repo.  I probably need to be elected to a group?11:13
tinwoodgnuoy, thanks for the invite :)12:21
beisnero/12:46
gnuoynarindergupta, https://review.openstack.org/#/c/327638/12:51
shruthimahi kwmonroe , I have tried to deploy the IBM-IM charm that you have proposed for merge request but facing some issues..Please can we have a discussion for 5-10 min on these..13:03
shruthimahi mbruzek/kwmonroe , I have tried to deploy the IBM-IM charm that you proposed for merge request but facing some issues..Please can we have a discussion for 5-10 min on these..13:59
mbruzekSure13:59
mbruzekshruthima: What error did you see?13:59
shruthimaactually when we deploy is is not asking for license to accept14:00
shruthimaand it is gng to unknown state14:00
mbruzekshruthima: please run "juju list-agreements" and pastebin the output14:01
shruthimaroot@ptcvm2:~# juju list-agreements Press return to select a default value. Username:  (it is asking for username and password)14:02
shruthimawhen we use launchpad id it is showing incorrect email/password14:03
mbruzekshruthima: what launchpad id are you using?14:04
shruthimambruzek:ERROR failed to list user agreements: cannot get discharge from "https://api.jujucharms.com/identity/v1/discharger": cannot start interactive session: cannot get token: Provided email/password is not correct.14:04
shruthimasalmavar14:05
mbruzekhttps://launchpad.net/~salmavar shows the user is "Shruthima" is the email wrong on this page?14:07
beisnerhi bcsaller, interested in your take on this behavior we're seeing:  https://github.com/juju/charm-tools/issues/220    tldr;  while trying to automate charm build in openstack ci, we're seeing lower layer ignores impact higher layer files.14:09
shruthimambruzek: username is Shruthima .. email is salmavar14:09
mbruzekbeisner: bcsaller is on the west coast, and it is 6 am there. I would not expect him in yet.14:10
mbruzekbeisner: sorry 7am14:11
beisnermbruzek, ah thx.  :)  do you have any ideas on that^?14:11
mbruzekbeisner: I saw this bug come in, no idea why the dot files don't make it to the built charm. Ben told us we could look at "Tactics" to handle different kinds of files. We can include Tactics files in our layers that will govern how to copy, compose specific file types. Look at the code regarding Tactics14:13
beisnermbruzek, actually the dotfile is a separate issue14:14
beisnermbruzek, that dotfile (hidden files) issue is @ https://github.com/juju/charm/issues/20114:14
beisnerhttps://github.com/juju/charm-tools/issues/220 is what we're blocked on14:15
mbruzekbeisner: Ah I see14:16
mbruzekshruthima: what version of juju do you have? "juju version"14:22
shruthimajuju 2.014:22
mbruzekshruthima: What specific version? For example I am on 2.0-beta8-xenial-amd6414:24
mbruzekbeisner: perhaps you can overwrite that ignore statement in the base layer. I wouldn't know how to do that (of course) but there might be away14:25
mbruzeka way14:25
shruthima2.0-beta7-xenial-amd6414:25
beisnermbruzek, i think the expected behavior is that each layer should be able to declare its own set of ignores, and layers above it should operate only on their own declared ignores.14:26
mbruzekbeisner: Yeah that makes sens, but something tells me Ben had though of this, and you can remove ignores or overwrite them somehow.14:26
shruthimambruzek: Now iam able to authenticate  juju list-agreements command is showing []14:26
mbruzekshruthima: What commands did you run to get to that state?14:27
shruthimai was checking juju status14:28
shruthimaand iam checking juju debug-log it is not gng to reactive even14:28
jcastroSo the jenkins charm, on the store page points to launchpad, but the branch itself lives upstream14:30
jcastroare we manually syncing these because the one from the store seems old?14:31
mbruzekshruthima: Can you deploy ibm-im now? Does it ask for terms?14:31
marcoceppibeisner: dot files were a known issue, I thought they had sorted it though14:31
shruthimayup after authentication i have tried it is not asking for terms14:32
mbruzekmarcoceppi: His current problem is the README.md not makign it to the final charm14:32
shruthimai have used juju deploy /root/charms/trusty/ibm-im  --series trusty --resource ibm_im_installer=/root/repo/agent.installer.linux.gtk.x86_64_1.8.3000.20150606_0047.zip14:32
marcoceppimbruzek: I'm aware, but it might not be a build issue14:32
mbruzekshruthima: pastebin the juju list-agreements command after you authenticate14:33
beisnermarcoceppi, so the hidden dot file thing is an issue, but not a current blocker.  our blocker is that lower layer ingore declarations are causing higher layers to drop files (it appears).14:33
marcoceppibeisner: right, which makes sense in our current design but might not be the end goal.14:33
marcoceppibeisner: why even bother having the ignore in the first place? since it'll just be overwritten with the top layer14:33
shruthimambruzek: root@ptcvm2:~/charms/trusty# juju list-agreements []14:33
shruthimait is displaying []14:34
beisnermarcoceppi, this seems inert (just a readme file), but we also need to ignore unit tests from lower layers so they don't make it into higher layers or the built charm.14:34
marcoceppibeisner: that's a bigger issue14:34
beisnermarcoceppi, it is.14:35
shruthimamruzek: http://paste.ubuntu.com/17144275/14:41
mbruzekshruthima: Ah!14:44
marcoceppibeisner: going to work on a fix today for 2.1.314:45
marcoceppierr, 2.1414:45
marcoceppi2.1.414:45
beisnermarcoceppi, rock on.  much appreciated :)14:48
shruthimambruzek: juju debug-log http://paste.ubuntu.com/17144408/14:48
shruthimaactually not understanding were it is getting struck bec deploy is gng smooth but installtion is not happening even reactive is not getting called according to logs what i have checked14:49
shruthimaterms is not displying though ,could u please suggest what may be the reason?14:50
mbruzekshruthima: Paste bin a juju status14:50
gnuoyjamespage, https://review.openstack.org/#/c/327638/14:51
shruthimambruzek : http://paste.ubuntu.com/17144275/14:51
mbruzekshruthima: The reason you didn't get prompted to agree to the terms is because you are deploying the local charm. Terms is only prompted by charms deployed from the charm store.14:54
mbruzekshruthima: If you reset that environment and juju deploy cs:~kwmonroe/trusty/ibm-im  you should be prompted for the terms14:55
shruthimais there any way to check local charms with terms14:56
shruthimaok il check14:56
kwmonroeshruthima: it doesn't make much sense to enforce a term with a local charm, because if you have the charm locally, you could just edit metadata.yaml and remove the "terms" key.14:57
cmarsshruthima, distribution of a charm through the charmstore is gated by capturing user agreement to terms14:57
kwmonroeso terms are only enforced when deploying from the charm store14:57
jamespagegnuoy, two nits14:57
kwmonroeheh cmars, i was just about to make you jump in :)14:57
cmarsshruthima, we can't effectively gate distribution if that distribution is happening out of band with a local charm deploy14:58
cmarsshruthima, nor would we have any legal basis for knowing who's agreed to what terms for a given charm deployment14:58
cmarsshruthima, i recommend publishing the charm to the charmstore, possibly with access permissions restricted if it's not ready for general public consumption14:59
shruthimayes i agree it wont make sense for local charms but i mean in terms of testing juju terms before deploying charms15:00
shruthimathanks for making me clear15:01
gnuoyjamespage, nits swatted15:01
cory_fubcsaller: Can you take a look at beisner's issue above (https://github.com/juju/charm-tools/issues/220)?  I'm not really familiar with the intended behavior of "ignores"15:51
beisnerhi cory_fu, bcsaller - fyi marcoceppi is also looking.  i think this is where that behavior change was introduced:  https://github.com/juju/charm-tools/issues/8515:55
cory_fuFrom a quick glance at the code, though, the ignore property uses rget (https://github.com/juju/charm-tools/blob/master/charmtools/build/config.py#L90) which seems pretty explicit that ignores are combined from all layers before being handled, rather than being per-layer like the issue expects.15:55
marcoceppicory_fu: yes, but I think the issue is valid15:55
* marcoceppi has a suggestion he's writing in the bug15:56
cory_fubeisner: I'm not sure.  From the implementation of the ignores property, it seems like it was that way from the begining.  I do think your interpretation of how it should work is better, though15:56
bcsallermaybe it should work that way, sure, but having to ignore a file you intend/expect to override in a later layer is also a little much since overwrite is the default behavior15:58
cory_fuAlthough, there's also some ambiguity in whether an ignore in a given layer should ignore that file from only the current layer (and allow the same file from a lower layer to come through), or if it should block the file from only lower layers (i.e., preventing merges with the file as defined in the current layer), or block it from the current layer and below, having no file be given to higher layers15:58
bcsallerlike a base layer shouldn't have to say ignore: readme15:58
bcsallerthats just a dead chicken15:58
cory_fuThat's also a good point15:59
beisnerbcsaller, we would like to ignore the unit_tests dir.  that's a little more concrete example than a readme file.16:00
marcoceppicory_fu: https://github.com/juju/charm-tools/issues/220#issuecomment-22494177616:00
marcoceppibcsaller: ^^16:01
cory_fuThat removes the ambiguity, I like it16:01
cory_fuDo we need to change the key name, though?  Why not just change the behavior of "ignore"?16:02
marcoceppicory_fu: because how would I distinguish between ignoring on my layer and ignoring on layers below me?16:04
marcoceppiI suppose if the key is a string vs a dict16:04
marcoceppibut then it's a list of things16:04
cory_fuYeah, I guess I'm saying the current behavior isn't really useful, and I don't think it's used much at all, so just change it to be a map and re-use the existing key name16:05
cory_fuI guess if we want to be backwards compatible, we can detect list vs map16:06
marcoceppicory_fu: that's fine, I suppose we could create a tactic that rewrote the key if it was a list?16:06
marcoceppiand gave a warning16:06
cory_fuPerhaps, though I'm think the value might be processed before a tactic has a chance to rewrite it16:06
marcoceppicory_fu: good point16:07
marcoceppiso just do it transparently to the user?16:07
cory_fuYeah.  I don't think that feature is even documented anywhere.  It's certainly not in https://github.com/juju/charm-tools/blob/master/doc/source/build.md16:08
bcsalleronly apply ignores to layers previous to itself? then clear the list16:08
bcsallermaybe16:08
kwmonroeadmcleod: you were right about zeppelin getting trigger happy.  it does indeed fail because it thinks hadoop is ready earlier than it actually is.  i didn't notice it before because it does eventually become ready.. is this similar to what you saw? http://paste.ubuntu.com/17146568/16:09
beisnerbcsaller, that seems like a useful and simple default behavior.   i like marcoceppi 's idea of having finer granularity with a different thing - but that can be a different thing, yah?16:10
beisnerbcsaller, well <= self actually16:11
beisnerstrike -1 prev statement ;-)16:14
kwmonroeanyone (kjackal?) have thoughts on bundle naming conventions?  for big data specifically, i'm thinking <engine>-<task>-<highlight>, like hadoop-analytics-hive, or spark-processing-kafka, or ignite-visualization-zeppelin17:28
=== frankban is now known as frankban|afk
beisnercoreycb, some overdue housekeeping along with a cleaner way to split legacy (precise):  https://code.launchpad.net/~1chb1n/openstack-charm-testing/pxc-vs-mysql-vs-precise-config-options/+merge/296963     validating @ osci (will retrigger your precise proposed test run as one of those steps of validation).17:35
coreycbbeisner, thanks!17:38
beisnercoreycb, yw17:38
marcoceppikwmonroe: why not the other way? <engine>-<highlight>-<task> ?17:38
marcoceppispark-kafka-processing17:39
marcoceppithe <task> in the middle feels weird17:39
beisnerthedac can you also do the honors on this? - (fyi: jamespage tinwood ) need to unignore things for now to proceed with automating things.   https://github.com/openstack-charmers/charm-layer-openstack/pull/718:10
thedacsure18:10
beisnerthedac, thanks again18:12
thedacbeisner: merged18:14
beisneroff to the races then, thx thedac :)18:14
kwmonroeack marcoceppi, thx.  <task> may be superflous too.. like if you already know what spark and kafka are, you probably don't need somebody to say "processing" or whatever18:23
kwmonroeyes cory_fu, i misspelled superfluous ^ get over it18:24
marcoceppicory_fu: I've got questions18:29
marlincI'm currently trying to run OpenStack in LXD containers (just to try it out). I'm currently running into the following error: RuntimeError: Exit code: 1; Stdin: ; Stdout: ; Stderr: mount --make-shared /var/run/netns failed: Permission denied19:05
marlincI'm not sure how to allow the LXC container to create that mount point19:05
=== ericsnow is now known as ericsnow-afk
cory_fumarcoceppi: Sorry, I was out for a bit.  What question do you have?19:11
cory_fukwmonroe, petevg, kjackal, admcleod: Any objection to me creating a Jira and a patch for the Spark charm layer?19:13
petevgcory_fu: sounds good to me.19:13
=== redir is now known as redir_afk
kwmonroe+1 cory_fu19:27
cory_fukwmonroe: For https://github.com/juju-solutions/layer-openjdk/issues/5 do we need to be worried about the non-zero exit code?  The test failure doesn't look like it was actually choking on the output19:27
cory_fuAlso, if the grep does fail, maybe we should report something more useful than "Unexpected return code"19:29
kwmonroehmph, you're right cory_fu.. we weren't testing the output for anything, so the ssh host warning shouldn't have mattered.19:31
kwmonroei wonder if the rest of that output was "warning...java not found"19:31
cory_fuI don't actually even understand why the command exited non-zero.19:32
cory_fukwmonroe: Actually, looking at the code, that print dumps all of the output, so it doesn't look like the `java -version` command even generated any output19:32
kwmonroeyeah, agreed19:33
cmarscherylj, didn't see test timeouts due to npipe listener Close, but I also forgot to capture stderr. However, I did find some other test failures -- which I also saw when testing in my own KVM. Opened LP:#159094720:18
mupBug #1590947: TestCertificateUpdateWorkerUpdatesCertificate failures on windows <juju-core:New> <https://launchpad.net/bugs/1590947>20:18
cmarsrunning again, this time with stderr redirected properly...20:19
xilet_So, I can't find much documentation on it so far, can anyone explain how expose is supposed to work? (Trying to expose openstack-dashboard)20:19
cheryljthanks, cmars20:19
=== thumper is now known as thumper-afk
cory_fuxilet_: It should be pretty straightfoward.  The charm has to call `open-port <port>` to open a port, which would then be listed in `juju status`.  If you call `juju expose <service>` on that service, then you should be able to connect to that unit's public address (also listed in juju status) on any of the ports the charm opened.20:41
xilet_Yeah, I see exposed: yes, but no public addresses listed20:41
xilet_I am using 2.0-beta7-xenial-amd6420:41
arosalesxilet_: are you using maas or lxd as the cloud?20:42
xilet_http://pastebin.com/StVS70z5  [for juju status]20:43
xilet_lxd20:43
cory_fuxilet_: The public-address for openstack-dashboard/0 is 10.125.232.7220:44
cory_fuxilet_: It's listed under [Units]20:44
arosalesxilet_: what I see also20:44
arosalesand exposed is true20:44
arosalesunder [Services]20:44
arosalesIP under [Units]20:45
xilet_Right, the question I had is what does it actually 'do', because it was on that IP before I exposed it20:45
cory_fuAnd it has ports 80 and 443 open, so you should be able to go to http://10.125.232.72/ or https://10.125.232.72/20:45
xilet_some of the documentation mentioned doing the firewall rules to make it publically available20:45
cory_fuxilet_: It was on that IP before, but the firewall rules blocked all external trafic to it20:45
xilet_ah ok, so you need to manually set up a bridge to the network to acutally make expose work?20:45
cory_fuYou shouldn't.  The lxd provider should manage the bridge for you20:46
* cory_fu hasn't used the lxd provider, though.20:46
magicaltroutexpose has not effect on lxd local20:47
xilet_Ok, because right now nothing else on the general network (10.19.40.0/24) can reach that (10.125.232.0/24) subnet20:47
magicaltroutbut you will have to do some funky bridging on ports for stuff on that box which you want making pubic20:48
cory_fumagicaltrout: I know that's true with the 1.25 local provider, but I thought it was needed for 2.0 lxd provider20:48
cory_fuIf that's true, it seems like a bug in the lxd provider20:48
magicaltroutdunno then, I run beta7 and I do some IPtables natting to get local services exposed on the box20:49
magicaltroutthe networking for LXD is on a 10.x subnet20:49
magicaltroutwhich isn't available to external processes20:49
magicaltroutof course i could have just missed something in a release note or similar20:50
cory_fumagicaltrout: Oh, are you talking about getting lxd provided services to be accesible from outside the machine that it's bootstrapped on?  I was assuming access directly from the machine that did the bootstrap20:50
magicaltroutah no20:50
magicaltroutthat is certainly fine20:50
magicaltroutbut if you have a remote box running lxd local, and want that service "exposed"20:51
magicaltroutyou do some iptables natting20:51
magicaltroutbut my understanding is "expose" in juju does nothing in lxd local because there is no firewall unlike AWS etc20:51
xilet_Yeah, that is what I am trying to accomplish: remote server, everything running contained on that system, wanting direct https access without a ssh tunnel to reach it from other systems20:51
magicaltroutyeah you'll need to do some natting xilet_20:52
magicaltroutthat said, i just slapped openvpn on the box to make my life easier20:52
=== xilet_ is now known as xilet
magicaltroutcory_fu: demoed some juju big datastuff to the JPL guys this week, they loved it20:53
xiletmagicaltrout: thanks, I just wanted to make sure I was not missing something obvious.20:53
magicaltroutnot that i'm aware of xilet20:53
magicaltroutxilet: https://www.digitalocean.com/community/tutorials/getting-started-with-lxc-on-an-ubuntu-13-04-vps20:53
magicaltroutthat was my reference20:53
magicaltroutthe iptables call down the bottom20:54
magicaltroutthere may be other/better ways20:54
xiletThanks it is a start. I was thinking of being really lazy and setting up apache proxies20:54
cory_fumagicaltrout: Awesome.  :)  Did they have any specific feedback?20:55
magicaltroutmostly stuff like "this is freaking awesome, look how quickly all that stuff is configured" ;)20:56
magicaltroutthe usual20:56
magicaltrouti've sent a few of them jcastro 's charmer summit mailshot20:57
magicaltroutas they're in the same place I'm hoping to drag a few alng20:57
magicaltroutalong20:57
=== natefinch is now known as natefinch-afk
xiletmagicaltrout: worked like a charm, thank you!21:00
cory_fuThat would be awesome21:00
magicaltroutno problem xilet21:00
magicaltroutcory_fu: https://github.com/SciSpark/SciSpark they make a lot of use of scispark at JPL21:00
magicaltroutI'll see if we can get them to build a charm for it, as they stand up scispark, hadoop and ipython/zeppelin stuff21:01
xiletso one more stupid question, again on 2.0beta7 of openstack, there was never a prompt for setting a user account for horizon,  keystone user-list does show an admin user, if I just reset the password for that one user account is that the best way to gain access or did I miss a default password somewhere?21:29
xiletNevermind, did the smart thing and just added a new user.21:33
=== ericsnow-afk is now known as ericsnow
=== thumper-afk is now known as thumper
=== redir_afk is now known as redir
=== zz_CyberJacob is now known as CyberJacob
xiletSorry for the set of openstack questions, but if any of you have it working, how do you attach cinder to a lvm group local to the physical machine? The host can see it fine.22:34
=== CyberJacob is now known as zz_CyberJacob

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