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

=== natefinch-afk is now known as natefinch
=== Spads_ is now known as Spads
=== Spads_ is now known as Spads
=== Spads_ is now known as Spads
=== frankban|afk is now known as frankban
admcleodkwmonroe: yep that similar08:56
jamespagelukasa, thanks for approving the switch to apache 2.009:43
lukasajamespage: No problem. =)09:43
jamespagebeisner, https://code.launchpad.net/~james-page/charms/trusty/mongodb/ch-resync-newton/+merge/29704610:55
=== zz_CyberJacob is now known as CyberJacob
beisnerjamespage, ack, will watch for tests to complete.11:28
xiletI am running into issues connecting the cinder container to local block devices, was curious if anyone has that working. (beta7)11:32
beisnerjamespage, merged11:48
jamespagexilet, is that with cinder/iscsi?11:55
jamespageand with which provider? LXD/local or MAAS?11:55
beisnerjamespage, that's landed11:56
xiletlxd11:56
xiletand honestly I am not sure with iscsi or not,  I got the services fixed on the cinder container but I still can't see any of the volume groups passed through from the host11:57
xilet(I am new to juju and cinder so I may be missing something fundemental)11:58
jamespagebeisner, also https://code.launchpad.net/~james-page/openstack-charm-testing/ext-port-configuration/+merge/29703512:15
jamespagexilet, atm its not possible to consume block devices from within a container in the way I think you are trying todo12:16
jamespagexilet, so the only option at the moment are cinder backends that are 100% userspace - like ceph for example12:17
jamespagexilet, so for cinder/iscsi (the defautl) you have to run the cinder-volume service outside of containers...12:17
xiletAhh ok12:17
jamespageapi and scheduler can be run in container still12:17
jamespagexilet, the cinder charm supports this type of split - its a config option12:17
jamespageso you can deploy it twice - once for schedule/api in lxd container, once for volume on hardware12:18
xiletIs there harm in living the container volume service running?12:18
jamespagexilet, well for ceph its still required - it just manges the ceph backend rather than trying todo stuff locally with lvm + iscsi12:20
xiletThanks, I can dig through the docs, just curious if you know offhand, is there is a decent guide out there about adding additional duplicated services to openstack?12:21
xiletAh ok, there is one already.12:27
jamespagerick_h_, marcoceppi: is there some sort of flag to ensure that test usage of the charm store does not get registered into the stats? we're about to switch our amulet testing to use cs:xxxxx but I don't want to bloat out the stats.12:43
rick_h_rogpeppe1: do you know the flaf and how it would work from a bundle, cli, and the querystring? ^12:54
rick_h_flag that is12:54
rogpeppe1rick_h_, jamespage: yeah, one mo, i'll check12:55
rogpeppe1jamespage, rick_h_: make the request with &stats=012:56
rogpeppe1jamespage: ah, but is this using the charm tool?12:56
rick_h_rogpeppe1: right how would we get that through the tooling, bundle format so a bundle deploy, juju deploy, etc don't count12:58
rogpeppe1rick_h_: currently I don't think there's a way to do that12:59
rogpeppe1rick_h_: we could support an environment variable to disable stats, i guess12:59
rick_h_rogpeppe1: yea, something like that12:59
rogpeppe1rick_h_: i'm not entirely sure we want to enable anyone to do it, but i'm not sure there's an alternative13:00
rick_h_rogpeppe1: taking this to the other channel to include uros13:00
rick_h_jamespage: how much of this is juju1 vs juju2? (is any of it juju2?)13:02
jamespagerick_h_, well right now its both :-)13:03
rick_h_jamespage: ok, yea just thinking of the patch we need and going ruh roh...prolly need it on juju1  as well13:03
rick_h_jamespage: so I'd say go ahead please and we'll work with the teams to get you a way to set it, but it's on the API but not exposed through clients atm :(13:03
rogpeppe1jamespage: looks like you can disable stats by including a "test-mode: true" field in the model config13:08
jamespagebeisner, hey - for the switch to cs I'm going to deal with the fact that some other charms don't support all series, by testing with the closest match13:08
jamespagerogpeppe1, I thought there was something like that!13:08
jamespagebeisner, ^^ we'll need to turn that on!13:08
beisnerjamespage, so, we'll need to have the amulet helper add &stats=0 to the cs: charm url;  and do the same when we update mojo/o-c-t bundles, yah?13:09
jamespagebeisner, no we can just set this in the environments.yaml for the overall environment13:10
jamespagetest-mode: true13:11
beisnerjamespage, ok i missed something in backscroll then13:11
beisnerboom right there it is :)13:11
beisnerjamespage, ok i can add that to all of our enviros13:11
jamespagesounds like a plan13:11
beisnerjamespage, ok test-mode is true everywhere13:18
jamespage\o/13:18
rick_h_awesome beisner13:19
beisnerjamespage, thx for the ext port fixup (merged)13:20
jamespagebeisner, np13:20
beisnerjamespage, rick_h_ - curious, since juju-deployer (and amulet + bundletester) fetch the charm ahead of deploy, will that model config be effective?13:23
rick_h_beisner: no, that only effects calls to juju client itself13:23
beisneryep makes sense rick_h_13:23
rick_h_beisner: if other clients fetch the charm they need to update the query string for getting the archive13:23
beisnerjamespage, seems like a juju-deployer test-mode flag needs to grow, and be plumbed upward to amulet, bundletester and mojo.13:25
beisnerthat, or we hackily munge the heck out of things on the fly13:25
beisnerrick_h_, jamespage - 100% of os-charm testing currently has src ip of our company's known wan IPs.  do you know if are we already excluding ourselves from cs stats?13:28
kjackalpetevg: Hey are you around?13:30
petevgkjackal: I am. What's up?13:30
kjackalJust saw you comment on the failing test13:30
kjackalhow do you run the test?13:30
petevgWith bundletester.13:31
petevgThe exact invocation: bundletester -t ~/Code/charms/trusty/kafka13:31
rick_h_beisner: no, we're not removing those from stats, just the long running juju usage numbers13:31
petevgIt actually seems to successfully deploy -- I have a kafka server running that is not in an errored state.13:32
petevgkjackal: I suspect that there's a timing issue in the test -- maybe it gets past the point where it has that message too quickly?13:32
rick_h_beisner: I'm of two minds of just excluding ourselves, might be coming time to do that though13:32
kjackalpetevg: did you change this line before running the test: https://github.com/juju-solutions/bigtop/blob/kafka/bigtop-packages/src/charm/kafka/layer-kafka/tests/01-deploy.py#L1813:33
kjackal ?13:33
beisnerrick_h_, yah ditto.  there are deploys happening for real production workloads, so that may not be best.  it'd be an easy big hammer though ;-)13:33
petevgkjackal: I did not.13:33
kjackalpetevg: So let me explain what might be going wrong13:34
kjackalpetevg: this test says, go to the store and fetch the kafka charm that should be the same as cs:trusty/kafka13:34
kjackalso this test is supposed to run when we have the charm in the right place13:35
kjackalif we are to test this right now we should change it to something like local:trusty/kafka13:35
kjackalso that it picks-up the charm you are building/reviewing....13:36
petevgkjackal: Hmmm ... bundletester seems to be smart enough to just go and grab the charm locally if you pass the local path to -t.13:36
kjackalit does? Nice, didnt know that13:36
kjackalok then it is a real error, I will take a look13:37
petevgCool.13:37
petevgNow I know why the team has been giving me funny looks when I've been talking about running bundletester from a locally built charm -- maybe it's not widespread knowledge that it works :-)13:39
kjackal:)13:40
kjackalpgrep of java in a kafka deployment gives this output: https://pastebin.canonical.com/158511/13:41
jamespagebeisner, https://code.launchpad.net/~james-page/charm-helpers/amulet-switch-to-cs/+merge/29706013:41
beisnerjamespage, that looks like it will do the trick.   did you see the convo ^ re: test-mode only applying to juju proper cmds, and not juju-deployerisms (amulet, mojo)?13:46
jamespagebeisner, I've tested precise/trusty/xenial with with that in keystone - raised https://review.openstack.org/#/c/328305/ to test in full13:46
jamespagebeisner, hmm does deployer collect the charms itself?13:47
beisnerjamespage, awesome i was just thinking:  we should sync this and push a thing or two through the pipeline.  :)  good deal13:47
beisnerjamespage, yes i believe so13:47
beisnerjamespage, at least for all non cs: it does.13:47
jamespagebeisner, it downloads cs ones directly to a local cache dir13:53
beisnerjamespage, seems like a juju-deployer test-mode flag needs to grow, and be plumbed upward to amulet, bundletester and mojo.13:54
beisner<beisner> that, or we hackily munge the heck out of things on the fly13:54
* beisner refers to self in the third person ;-)13:54
beisnerso glad it's friday13:54
beisnerjamespage, but since we're in control of that cs url in the amulet helper, we could also address it there and fix one test-mode path13:56
jamespagebeisner, oh - btw I poked at a few instances I got doing manual testing that did not bootstrap as juju nits14:00
jamespageunits rather14:00
jamespagebeisner, I did a rebuild on the existing machines, and post rebuild they got metadata and joined OK14:00
jamespagewhich is frustrating14:00
jamespageso its some sort of race between the instance booting and metadata being present/provided.14:01
beisnerjamespage, interesting.  any clues in timing on serverstack hosts?14:03
beisner(logs on hosts i mean of course)14:04
jamespagebeisner, no waiting to hit another so I can log dive at the same time14:04
beisnerjamespage, can you review / button poke @?:  https://github.com/openstack-charmers/bot-control/pull/1    ... fyi: https://github.com/openstack-charmers/bot-control/blob/charm-what/tools/README.charm-what.md14:10
jamespagestokachu, does conjure-up have a KVM option for the all-in-one under LXD deployment?14:14
stokachujamespage: not by default, i wanted to make openstack-base conjure-up enabled which would provide that14:14
jamespagebeisner, lgtm14:14
jamespagestokachu, also does the LXD deployment include cinder atm?14:15
stokachujamespage: yea14:15
jamespagestokachu, that's not going to be functional with nova-lxd14:15
jamespagenova-lxd does not support persistent block storage options atm14:15
jamespageas lxd can't do it securely just yet14:15
kjackalpetevg: I cannot confirm the error you see in kafka . This is what my test run got me https://pastebin.canonical.com/158519/14:15
stokachujamespage: this is the bundle im using https://github.com/battlemidget/openstack-novalxd/blob/master/bundle.yaml14:15
stokachujamespage: should i remove cinder?14:16
jamespageyes14:16
stokachujamespage: ok14:16
petevg@kjackal: Hmmm ... I'll run the tests again, and do some more digging.14:16
stokachujamespage: https://github.com/battlemidget/openstack-novalxd/tree/master/conjure i was going to propose something similar for openstack-base14:17
kjackalpetevg: I will redo the test again14:17
beisnerthx jamespage14:17
petevgHopefully, we are not looking at something unique to my machine.14:17
jamespagestokachu, I think you adapted the nova-lxd bundle from my original kvm one right?14:18
stokachujamespage: yea14:18
kjackalpetevg: it is strange that your test did run.... but the assertion failed....14:21
kjackali suspect some race condition there.... let me add a wait for the Ready message14:22
aisraeltvansteenburgh: Do you know anything about limitations in testing juju storage via amulet?14:24
tvansteenburghaisrael: nop.14:28
tvansteenburghnope14:28
tvansteenburghaisrael: that doesn't mean there aren't some though, i just don't know. haven't really done anything with storage14:32
aisraeltvansteenburgh: Thanks. I'll get some clarification on what they mean14:39
aisraeltvansteenburgh: This is the issue: https://github.com/juju/amulet/issues/11214:40
tvansteenburgh1marcoceppi: ^14:43
=== tvansteenburgh1 is now known as tvansteenburgh
aisraeltvansteenburgh: An unrelated amulet/bundletester question. If a test should be skipped because some requirement isn't met (env variables, running on lxc, etc), is there a way tell bundletester to consider the test skipped vs. failing it?14:44
tvansteenburghmarcoceppi: shall i carve out a little time for that?14:44
marcoceppitvansteenburgh: yes14:44
tvansteenburghaisrael: bt doesn't have the notion of skip, only pass/fail. you can control which tests are run with the tests key in tests.yaml though14:48
aisraeltvansteenburgh: ack, thanks14:50
tvansteenburghaisrael: feel free to open a bug for the skip feature though, if you want14:50
aisraeltvansteenburgh: will do!14:51
jamespageicey, I will look in detail at charms.storage but can you add the testr/tox configuration as per https://github.com/openstack-charmers/charms.openstack15:17
jamespageand drop all the legacy makefile stuff15:17
jamespageicey, this will ease migration under /openstack15:17
iceyjamespage: I can work on that; first time intentionally using tox :-P15:17
jamespageicey, essential for migration to openstack infra15:17
jamespageicey, we also need to get setup with publishing these modules to pypi and doing propoper releases; some of that we shoudl defer until we migration as there is alot of automation we can leverage there...15:18
=== arturt__ is now known as arturt
marcoceppicory_fu: I have a crazy idea wrt tactics15:39
marcoceppinvm15:40
cory_fuThat was quick15:40
aisraeltvansteenburgh1: Another bundletester question. If a charm requires a kernel module be loaded (local provider/lxd, so must be loaded on host), is that an option? There's nothing explicit in tests.yaml, but what about a makefile target to do it?15:40
marcoceppicory_fu: I wanted to do something crazy, but then I thought about it and changed my mind15:41
cory_fuIndeed15:41
tvansteenburgh1aisrael: sure15:41
=== tvansteenburgh1 is now known as tvansteenburgh
tvansteenburghaisrael: you can run whatever code you want, either in a make target or in a test itself15:42
aisraeltvansteenburgh: k, thanks. It may not be an issue if we're able to skip certain environments (like local)15:43
iceyjamespage: build is passing, using the tox settings and travis settings from charms.openstack :)16:32
jamespage\o/16:39
=== frankban is now known as frankban|afk
thedacDNS HA charm helpers ready for review https://code.launchpad.net/~thedac/charm-helpers/dnsha/+merge/29700917:01
rick_h_beisner: can I bug you a second on connecting to an openstack please?18:19
beisnerhowdy rick_h_18:19
rick_h_beisner: I'm poking at someone running a hosted openstack cloud and tring to figure out how I'd setup juju config to talk to it18:19
rick_h_They've got me creating an application and having an application key and a secret key, sound familiar at all?18:20
beisnerrick_h_, generally you'll need the keystone endpoint address of their cloud, plus your tenant username, password and region name.18:26
natefinchcan anyone give me a simple example of a bundle that deploys units to lxc containers?18:42
rick_h_natefinch: not off the top of my head but built one with the machine view on demo.jujucharms.com and exported it here: https://pastebin.canonical.com/158543/18:48
rick_h_just made up something18:48
cheryljnatefinch: here's one I had for a bug a while ago:  http://paste.ubuntu.com/17180954/18:48
mattraehi, is it possible to upgrade-charm, going from the charm store to a local charm? it doesn't seem to work to specify --path https://pastebin.canonical.com/158545/18:54
natefinchrick_h_, cherylj: thanks.18:54
rick_h_mattrae: normally you have to update-charm --switch18:54
rick_h_mattrae: that will let you go from one charmstore url to another.../me hasn't tested if that lets you go to local?18:55
mattraethanks rick_h_ yeah looks like for a local charm you may need to use --path rather than --switch.. according to the help --path and --switch are mutually exclusive, so i thought it may not work18:58
=== Spads_ is now known as Spads
=== Spads_ is now known as Spads
cory_fuOh, hey, kwmonroe.  I forgot that I got the bundle_deploy added to bundletester.  That was to fix an issue we had in one of our bundles, to give us more control over the initial deploy.  I forget what the issue was, though.20:17
cory_fuHowever, we could use that to manage the deployer timeout ourselves20:18
kwmonroecory_fu: i dont recall what you mean by 'bundle_deploy added to bundletester'20:21
kwmonroeoh, yes i do20:22
cory_fukwmonroe: https://github.com/juju-solutions/bundletester#testsyaml20:22
kwmonroehttps://github.com/juju-solutions/bundletester/issues/4320:22
cory_fuYeah, that20:22
kwmonroewhy the heck aren't we using that?20:22
cory_fuOk, so it was to fix something where we needed to reset the env.  Hrm.  Wish I could remember what the failure was20:22
=== natefinch is now known as natefinch-afk
iceyjamespage: the hardening one has me stumped, it's now using tox but still no module named apt: https://travis-ci.org/ChrisMacNaughton/charms.hardening21:04
cory_fuCan someone remind me how to run bundletester with a bundle from the store?21:34
cory_fuAh, never mind.  I remembered how to read21:34
cory_fuThough the --help output on BT could be better (I would never have guessed TESTDIR is what I wanted)21:35
cory_fukwmonroe: Hey, how is BT not failing every time on hadoop-processing given that it doesn't contain a Makefile?21:39
kwmonroecory_fu: what happens if you run bt from a local copy of the bundle?21:48
kwmonroeso like, bundletester -vF -c bundle.yaml21:48
kwmonroealso cory_fu, i don't see any of our bundles with Makefiles21:49
kwmonroeexhibit a: https://jujucharms.com/realtime-syslog-analytics/, b: https://jujucharms.com/apache-analytics-sql/, etc21:50
cory_fuRight.  I'm trying to figure out why I'm getting this: http://pastebin.ubuntu.com/17188103/21:50
kwmonroedunno cory_fu, i always run like this: ubuntu@a5d019db9619:~/charms/bigtop/bigtop-deploy/juju/hadoop-processing$ bundletester -Fvl DEBUG -t tests22:03
kwmonroei'm guessing cwr does too22:03
cory_fukwmonroe: cwr runs it from the store, but it uses bundle:hadoop-processing instead of cs:hadoop-processing22:05
cory_fuOh, drat.  That didn't actually fix it22:06
cory_fukwmonroe: Apparently, running bundletester with Juju 2.0 hits that issue but 1.25 does not22:14

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