/srv/irclogs.ubuntu.com/2013/10/30/#juju.txt

thumpermarcoceppi: no, I don't recall and answer00:27
thumpermarcoceppi: just weirdness00:27
thumpermarcoceppi, sarnold: we have on our roadmap the ability to use juju where there is no storage api00:28
thumperbut it is down the line, closer to feb/mar next year at least00:28
sarnoldthumper: cool :)00:28
marcoceppithumper: for juju-plugins is the -e flag parsed in core or are all flags now passed to the plugin? (and is JUJU_ENV set by juju-core anymore)?00:52
BrianHHey guys, I'm really new to this and I'm running into a problem.  I have a MAAS server setup, and when I try to bootstrap juju, it keeps erroring with "ERROR could not access file 'provider-state': Get http://[old ip]/MAAS/api/1.0/files/provider-state/: dial tcp [old ip]:80: no route to host.00:59
thumpermarcoceppi: not sure, someone has "tweaked it"01:00
BrianHThe juju yaml file was changed to the new IP, but it's wanting to look at the old IP for some reason.  Thoughts?01:00
marcoceppiBrianH: what version of juju?01:00
BrianHmarcoceppi: 3.201:01
marcoceppiBrianH: that version of juju does not exist, what does `juju version` say?01:01
BrianHOooh, sorry, 1.16.0-saucy-amd6401:02
BrianHSetting up a Zentyal 3.2 server at the same time :P01:03
marcoceppiBrianH: no worries! :)01:03
marcoceppiBrianH: have you run `juju destroy-environment` ?01:03
marcoceppirather, try running that again01:03
marcoceppithen bootstrap with --debug flag01:03
BrianHSame error, but with the debug spam.01:05
BrianHI'd have to switch my IRC client to the machine to pastebin the results.01:05
marcoceppiBrianH: run destroy again, then tell me what the contents of ~/.juju/environments/ directory looks like01:06
BrianHit has a maas.jenv file01:07
marcoceppiBrianH: that's where it's getting the settings from. thumper shouldn't destroy-environment delete that? BrianH, delete that jenv file then bootstrap again01:07
thumperyes destroy-environment should delete the jenv file01:08
marcoceppialso, thumper, if I should bother someone else let me know. You're just an easy nick to remember ;)01:08
thumper:)01:08
* thumper is just writing emails ATM01:08
BrianHIt's not deleting it.  Looks like it's filled with tons of old info in there (catted the file before deleting).  1 sec ...01:08
sarnoldBrianH: btw, the pastebinit package and program is really helpful :)01:10
BrianHit attempted to retrieve tools, then errors out "ERROR cannot start  bootstrap instance: cannot run instances: somaasapi: got error back from server: 409 CONFLICT"01:11
BrianHerr, gomaasapi*, not somaasapi01:11
thumperhah01:11
thumperBrianH: we know what you meant01:12
marcoceppi409 conflict can mean a ton of things, likely it means there are no instances available for your user01:12
BrianHinstances on the MAAS?01:13
marcoceppiBrianH: yes01:13
marcoceppiBrianH: make sure you've got nodes enlisted and available for your user in the dashboard. Make sure you have your ssh keys, user authentication, etc all configured. Run destroy environment again (for good measure) make sure the jenv is deleted (if it's not we'll need to talk about getting that filed as a bug), bootstrap again with --debug and pipe it to pastebinit (which can be installed on all ubuntu distros)01:13
BrianHI've done plenty of virtualization before (KVM, etc.) but this cloud stuff is so confusing, haha.01:14
marcoceppiBrianH: the maas stuff can be a bit dodgy to get up and running at first01:14
BrianHI haven't setup any nodes on the MAAS yet.  Do I need to do that first?01:14
marcoceppiBrianH: yeah01:14
marcoceppiBrianH: so, the way this works with MAAS+Juju is it's not like EC2 or openstack where juju will tell the provider to create a machine01:15
marcoceppiBrianH: maas is designed to solve the problem "I have all this hardware and I want to use juju to drive it"01:15
marcoceppiBrianH: so you must tell maas about your hardware/machines first, then juju will use the pool of available machines to deploy stuff to it01:16
BrianHAh, gotcha.01:16
BrianHIt's so hard to find "for dummies" tutorials on this stuff. :)01:16
marcoceppibootstraping requires a machine in the provider to do the orchestration. So if you don't have a machine inlisted you'll get a conflict from the maas api, aka "YOU ASKED ME TO DO SOMETHING AND I CAN'T"01:16
marcoceppiBrianH: yeah, maas still has a bit of a learning curve to it unfortuantely01:17
hazmatmarcoceppi, how'd the reboot debug turn out?01:17
hazmat marcoceppi there's a bug in the last release re plugins not recieving JUJU_ENV01:18
marcoceppihazmat: I just realized that I have 1.15 bootstrapped, the log is basically empty01:19
hazmatatm its a four layer lookup  (cli, env var, home env, env file default)01:19
hazmatthat gets duplicated in every plugin01:20
marcoceppihazmat: yeah, I was about to start writing a python plugin helper01:20
marcoceppithat you can call to inherit an argparse that has the same stuff that the juju cli does, but I wanted to make sure that was expected behavior now and not a regression01:21
hazmatolafura, if you need some guidance let me know.. but in truth things would probably be easier with a core plugin, pyjuju dev is basically dead, and support is questionable, but either way i'd be happy to help get you started.01:22
hazmatmarcoceppi, its a documented regression01:22
hazmatmarcoceppi, future plan versions should get JUJU_ENV var passed01:23
marcoceppihazmat: awesome01:23
BrianHHmm, the node is stuck "Commissioning".  Does this usually take a while?01:23
marcoceppiBrianH: it can take a bit of time, IIRC this is maas doing some pxe booting stuff01:24
hazmatmarcoceppi, although they also need to support -e in that context,  core isn't parsing their args for them01:24
marcoceppihazmat: well it'd be easier to just write an argparse that read -e and default value was os.environ['JUJU_ENV']01:24
hazmatmarcoceppi, definitely01:25
hazmatmarcoceppi, didn't see a bug just filed 1246156 to ref the issue01:26
marcoceppihazmat: bug?01:26
marcoceppihazmat: awesome01:26
AskUbuntuNeed help configuing juju on Windows 8 | http://askubuntu.com/q/36823201:26
olafurahazmat:  thank you for that, pyjuju is great for debugging at least for me. I want to get it into core plugin when I have worked out the kinds. I think a fork of goamz with Cloud Stack specific quirks and a juju provider with some ec2_uri and s3_uri configuration options is the best way to go.01:29
olafurahazmat: I might commit some in logging functions through out juju-core so I can better see whats going wrong.01:35
marcoceppiolafura: I think that's what --debug and --show-log are for01:36
BrianHmarcoceppi: I changed the IP address of my MAAS server and the web interface is barfing with an Internal Server error.  Any way I can fix this?01:41
BrianHI tried restarting avahi-daemon, but still the same.01:41
marcoceppiBrianH: uh, it's a django application, there's a configuration for it somewhere. It's been a wee bit of time since I've used maas01:41
marcoceppiBrianH: you can try to run `sudo dpkg-reconfigure mass-cluster-controller`01:42
marcoceppiBrianH: that should allow you to re-enter the settings01:42
olafuramaroceppi: I know  and they are very helpful, I was just warning that if I find somewhere it's missing and would help then I would commit. It looks like the Go code might have a better debugging code then the python version.01:43
marcoceppiBrianH: err, maybe just run dpkg-reconfigure maas01:43
BrianHHmm, I ran the first one, entered the IP, still same error.01:44
BrianHSame after dpkg-reconfigure maas01:44
marcoceppiBrianH: what about dpkg-reconfigure python-django-maas01:45
BrianHSame.01:45
BrianHI'll try rebooting it.01:46
marcoceppiBrianH: is there an /etc/maas* file/directory?01:46
BrianHYes01:46
marcoceppiYou managed to catch me just a few days before trying to build my own small maas cluster :\01:46
marcoceppiBrianH: try searching through those files for the old IP and replace with the new ip01:46
BrianHmarcoceppi: Will do. I appreciate all the help. :)01:47
sarnoldheh, I'm lazy enough I'd aim for dpkg --purge and just start with a clean slate, hehe01:47
marcoceppisarnold: thought about that, but didn't want to bork anything he's got enlisted01:47
marcoceppisarnold: not sure how maas would handle that, though I guess it would just re-enlist it01:47
BrianHmarcoceppi: I don't have anything enlisted at the moment.  It's all virtualized, so it's easy to setup something too01:48
sarnoldmarcoceppi: yeah, that'd be painful if much were using it.. but I figured renumbering the maas contrller wouldn't happen after it'd been in use for a while :)01:48
marcoceppiBrianH: if that doesn't resolve it, then sarnold's suggestion of purge and start again might not be a bad idea01:48
BrianHCool beans.  I might just do that. :)01:48
marcoceppiBrianH: also, what distro is the maas-master? precise?01:48
sarnoldmarcoceppi: your approach has the benefit of -learning- how it works. :)01:48
marcoceppis/distro/release/01:48
BrianHNo, it's on saucy01:49
marcoceppiBrianH: cool, saucy has a "better" version of maas01:49
BrianHAh, good to know. :)01:50
BrianHI read there were lots of improvements from the LTS release, so I figured I'd try getting it running with Saucy first.01:50
hazmatolafura, sounds good01:50
marcoceppiBrianH: you can use the cloud-tools archive to get the most recent version of maas/juju on precise, but if you're on saucy that's fine (for now)01:51
BrianHI'm just a poor college student trying to learn all this cool, amazing cloud stuff, haha.01:51
mhall119is there any easy trick to make something run only on the first time a db-relation-joined happens for a particular database?01:52
marcoceppiBrianH: ah, in which case, saucy will do fine for you01:52
hazmatolafura, there's a sample bare-bones skeleton provider for core in https://code.launchpad.net/~fwereade/juju-core/provider-skeleton/+merge/18963801:52
mhall119so that if I remove-relation and then add-relation again, it doesn't run again01:52
mhall119this is for populating a database with initial data, but not over-writing existing data if it happens to rejoin01:52
hazmatmhall119, store local state01:52
mhall119or adding another unit01:52
marcoceppimhall119: you can use files in the $CHARM_DIR to indicate this, for instance after doing the operations `touch .db-populated` then have a check in for that file01:52
olafurahazmat: Thank you I'll look at that01:52
BrianHI probably have the most high tech home networks in my entire town (probably better than most small business around here too).01:53
hazmatmhall119, ie. store some local state the first time x happens, and check if state before doing x again.01:53
mhall119ok, so that's the usual way of doing it?01:53
mhall119and what's the hook that is called when remove-relation happens?01:53
hazmatmhall119, general case yes, specifics vary based on problem at hand.01:54
mhall119dp-relation-removed?01:54
marcoceppimhall119: it gets a little trickier in a multi-unit layout. You'll probably need to devise a way to check the database if that's done01:54
hazmatmhall119, db-relation-broken01:54
mhall119thanks01:54
mhall119marcoceppi: yeah, I have at least 2 instances of the django app connecting to one instance of the db01:54
hazmatmhall119, what marcoceppi is key.. ie check the db as source of truth / sync between multiple units.01:54
marcoceppimhall119: I had this problem in the discourse charm, I ended up just having the charm run a query against postgresql to see if it had done the seed or not01:55
mhall119only one set to be an admin node though, and only admin nodes setup the database, so that should be okay01:55
marcoceppimhall119: ah, then just touching a file to track state should suffice01:55
mhall119marcoceppi: I can do that, write a custom django management command that checks the db and updates it if needed01:55
marcoceppimhall119: that'd be the fool proof, multi-peer, way of doing it01:56
marcoceppibut if you design the charm to only have one admin node ever, then local state should suffice01:56
mhall119it's designed to *expect* one admin node ever01:57
marcoceppithe more I think about it, the more I want to recommend you write a task. What if you want to HA your admin nodes?01:57
mhall119if somebody were to make two, it would behave in undefined buy very likely undesirable ways01:57
marcoceppimhall119: okay, well that parts up to you then, if admin isn't design to scale there's probably bigger issues to worry about01:57
mhall119marcoceppi: If I understand the webops correctly, the admin node doesn't actually get exposed to the outside world, so it would never need HA01:57
marcoceppimhall119: well, it might want HA if the instance were to go away, then you'd possibly want failover so the nodes can talk to a new admin. But I'm just speculating, you know the service better than me (want to make sure you ahve all the info to make an informed descision)01:58
mhall119marcoceppi: the code is the same, the only thing that makes the admin node the admin node is juju set admin_node=True that tells the charm to run syndb, migrate, and other DB setup commands01:59
mhall119the non-admin doesn't talk to the admin, or vice-versa02:00
marcoceppimhall119: cool02:00
marcoceppimhall119: gotchya02:00
mhall119so a state file should suffice for now02:00
marcoceppisounds like it02:00
BrianHmarcoceppi: heh, I just scratched the VMs for my server and node and rebuilding it from scratch.  I'll set the static IP from the getgo so this doesn't happen again.02:05
BrianHmarcoceppi: Btw, while setting up this new server, I discovered it's dpkg-reconfigure maas-region-controller for address changes.02:32
sarnold:)02:33
marcoceppiBrianH: awesome! good to know02:40
marcoceppiBrianH: I know you mentioned a complicated home networking setup, so you may already know that maas will basically try to own it's own network and does addressing for nodes via dhcp02:41
BrianHmarcoceppi: Yep, I have my dhcp server running on a Zentyal server.02:41
marcoceppiBrianH: right, but maas runs its own and assumes it is the controller of the network02:42
hazmatmaas can use an external dhcp server02:42
marcoceppihazmat: oh, cool. I wasn't sure02:42
hazmatmarcoceppi, afaicr its just don't install maas-dhcp and configure next-server for dhcp to point to maas or use avahi02:43
BrianHmarcoceppi: Ok, I have a new server and node setup.  It's still saying "Commissioning" under the status, but the node won't fire up (It's a VirtualBox VM, so I imaging I need to start it manually?).  When I start it and it attempts to PXE boot, I get an error about "Nothing to boot: No such file or directory"03:05
marcoceppiBrianH: yeah, VirtualBox and maas don't play together because VirtualBox doesn't pxe boot03:06
BrianHIt sees the Next server and gets it's own IP.03:06
marcoceppiBrianH: I tried this over a year ago with poor results: http://marcoceppi.com/2012/05/juju-maas-virtualbox/03:06
BrianHIsn't there a VirtualBox PXE boot image?  I think it was iPXE?03:06
BrianHI'm using that tutorial.03:07
marcoceppiBrianH: right, it has PXE boot but not WOL03:07
marcoceppigot those two mixed up03:07
BrianHAh, gotcha.03:07
marcoceppiIt's getting late over here, brain is slowing down03:08
marcoceppiBrianH: I need to update this article with how to use vMAAS instead. Since MAAS has better virtual support build in (KVM/libvirt support)03:08
BrianHmarcoceppi: Nice, I'll keep an eye on it then.  I gotta crash for the evening (early day of classes tomorrow).  I appreciate all the help you've given.  Thank you. :)03:12
marcoceppiBrianH: o/ have a good one03:16
sodreHi, I am trying to get juju to bootstrap on a fresh private OpenStack. I am having issues at the bootstrap level .03:20
marcoceppisodre: what version of juju are you using? `juju version`03:20
hazmatsodre, could you pastebin your juju bootstrap -v --debug03:20
hazmatoutput03:20
sodreone sec.... its uploading ...03:22
sodrehttp://pastebin.com/t0H8DVVG03:26
sodrehazmat, the pastbin link is up.03:34
hazmatsodre, thanks03:34
sodremarcoceppi, it is 1.1603:34
sodreI am running on saucy and trying to bootstrap a precise image.03:35
hazmatsodre, and you have a precise image loaded into glance?03:37
sodreI've used smoser's scripts to load up images into open stack.03:37
sodreIt created a bucket called simplestreams03:37
sodreand yes, a bunch of images on glance.03:38
sodrefrom oneiric to saucy. Both daily and released images.03:39
hazmatsodre, can you try running $ juju sync-tools03:40
sodreit failed, can I paste the error here ?03:41
hazmatsodre, sorry could you re-run with -v  --debug and pastebin it03:42
hazmatunless its a one liner.. its generally nicer to pastebin blocks03:42
sodreokay. it goes in pastebin then.03:43
sodrehttp://pastebin.com/BJJUrasS03:43
hazmatsodre, so basically juju needs to find two pieces of info.. tools which it uploads and an image to run them on03:43
marcoceppisodre: there's a command pastebinit that you can install and pipe output to03:43
hazmatboth are located in a file format called simpelstreams03:44
hazmathmm03:44
hazmatthere's two commands .. one to generate tools simple streams, and another to generate the image simple stream.03:45
sodrelet me install pastebininit...03:45
sodreokay.03:45
sodrehow do these two commands work ?03:46
hazmatsodre, they basically stick a file into ostack swift with contents from either the upload or listing of tools (in the case of tools) or the an explictly passed in image id in the case of the image command03:47
hazmatthe image command is done as a plugin.. juju metadata -h03:47
hazmatbut... holding off on that for a moment03:47
sodreokay.03:47
hazmatsodre, the inability to list the bucket looks suspect in the last pastebin03:48
hazmatsodre, how'd you install openstack?03:48
sodreagreed . I can list them using swift without problems.03:48
sodreI installed using JUJU/MAAS03:49
hazmathmm03:49
sodrethe only difference is that I am using radosgw03:49
hazmatsodre, so from the first pastebin the issue is the need for cloud images for juju to find03:50
sodreI agree, I can post the output of glance list-images.03:51
hazmatthe fact that its uploading tools again on bootstrap is suspect imo, but i think is just because of the lack of simplestreams metadata for the tools, but its not the fatal issue just annoying03:51
sodreyes. I faced the same issue when bootstrapping MAAS03:52
sodreglace image-list > http://paste.ubuntu.com/6327950/03:52
hazmatsodre, try this (precise amd64 image) juju metadata generate-image -i 907ca55d-a2e4-47c5-b26b-4be12bd78ecc -r http://m1basic-05.vm.draco.metal.as:5000/v2.003:55
sodreokay03:57
sodreboilerplace image metadata written to .juju...03:57
sodrewhat is my "public" bucket ?03:58
hazmatsodre, 'juju-dist' bucket03:58
sodreokay.03:59
hazmatsodre, from the first pastebin it looks like its looking here.. http://m1basic-04.vm.draco.metal.as:80/swift/v1/admin-juju/streams/v1/index.json03:59
sodrethat was the control-bucket03:59
sodreI can create a juju-dist03:59
hazmatsodre, it doesn't look like your public-bucket is setup correctly.. i believe juju is introspecting keystone metadata here.. the url its getting back is.. sodre, let's try that first04:00
hazmater.. is04:01
hazmatswift://simplestreams/data/streams/v1/index.json04:01
hazmatwhich isn't valid, so its not really  looking in juju-dist in this case04:01
sodreokay..04:01
hazmatsodre, we can try and fix that later, but first we can just drop the simplestreams data into your control-bucket at that location04:02
wallyworld_hazmat: that genetate image command above is wrong04:02
wallyworld_-r is region04:02
wallyworld_-u is endpoint04:02
wallyworld_looks like -r was being used with an endpoint url04:03
sodre:) should i start again ?04:03
hazmatwallyworld_, cool, maybe we should document it ;-)04:03
hazmatwallyworld_, so -r RegionOne and -u http://m1basic-05.vm.draco.metal.as:5000/v2.004:03
wallyworld_hazmat: the doco is currently in the command when you do help, but real doco is a wip04:03
wallyworld_yes04:04
hazmatwallyworld_, cli help output sadly isn't an example of what a user needs to do.04:04
wallyworld_yeah i know. doco is on the todo list04:04
hazmati'm way past EOD so i'm going to wander into the night.. sodre your in good hands with wallyworld_04:05
sodreokay. Thanks hazmat!04:05
sodrewallyworld_ : I am in the process of rerunning juju bootstrap. After that I'll upload the generated image metadata.04:07
wallyworld_bootstrap won't work without the correct image metadata04:07
wallyworld_both tools and image metadata needs to be in place for bootstrap to work04:07
sodrecorrect. That is what hazmat was trying to fix for me.04:07
sodredo you have a different way to go about it ?04:09
wallyworld_tl;dr; you need to generate image metadata and upload to your private storage. tools will be synced automatically if not present and bootstrap should run04:09
wallyworld_or you could upload the tools yourself, but best to let juju do it. i assume you are running 1.16?04:10
sodrecorrect.04:10
sodreI have a bucket called simplestreams04:10
wallyworld_cool. so "juju metadata generate-images -i xxxxx -r region -u endpoint"04:10
wallyworld_no04:10
wallyworld_upload streams/v1/* to private storage04:10
sodreany bucket in particular ?04:11
wallyworld_the dir structure is analogoues to cloud-images.canonical.com04:11
wallyworld_the root of the private storage i *think* from memorty04:11
wallyworld_so when you run generate, you will have a streams/v1 dir somewhere04:12
wallyworld_upload that tree to private storage04:12
sodreit just gave out the .json files directly04:12
wallyworld_then use validate-image command to ensure it is correct04:12
sodrebut I know what you mean now.04:12
wallyworld_it has changed in recent builds so i might be misremembering exactly what 1.16 does04:13
wallyworld_use validate-images before you bootstrap to make sure it is all ok, save wasting time04:13
sodreit came back with an error.04:13
sodreERROR index file has no data for cloud {RegionOne http://m1basic-05.vm.draco.metal.as:5000/v2.0} not found04:14
sodreERROR exit status 104:14
wallyworld_is that from juju metadata validate-images?04:14
sodreyes04:14
wallyworld_can you paste your index file?04:14
hazmatpower2_mine.04:15
wallyworld_also run with --debug04:15
wallyworld_so i can see where it is trying to look04:15
hazmat power2_mine.04:15
sodreokay04:15
hazmatwhoops04:15
hazmatsorry04:15
wallyworld_what's power2_mine?04:16
hazmatatm its an old password ;-)04:16
sodreindex.json > http://paste.ubuntu.com/6328011/04:16
wallyworld_lol04:16
hazmatscreen saver and multi-monitor fail04:16
wallyworld_hazmat: i need to validate your account details and current password, can you send to me :-P04:17
wallyworld_sodre: that index file looks ok, so it seems it is not being uploaded to the right place04:18
wallyworld_sodre: can you run validate-images with --debug?04:18
sodrevalidate-images --debug > http://paste.ubuntu.com/6328025/04:19
wallyworld_sodre: where did swift://simplestreams.... come from? that's not right04:20
sodreyeah.. good point.04:20
sodremaybe I should clean my env again.04:20
hazmatwallyworld_, that's probably from keystone as a default unconfigured value04:20
sodreahhhhh04:21
sodreI had an old openstack.jenv laying around.04:21
wallyworld_oh ok. keystone should not be returning anything for product-streams endpoint else juju will use it04:21
wallyworld_yeah, those jenv files are a bit of a trap04:21
sodreyeap.04:21
hazmatwallyworld_, it looks like he could upload directly to the control-bucket 'admin-juju' not optimal but functional04:22
hazmatugh.. stale jenvs..04:22
wallyworld_hazmat: yeah, right now, you do need to upload to control bucket04:22
sodrealright. should I just get rid of the image-metadata-url from .jenv ?04:22
wallyworld_yep04:22
jamwallyworld_: sodre: wallyworld_: sodre: https://bugs.launchpad.net/goose/+bug/120900304:23
_mup_Bug #1209003: juju bootstrap fails with openstack provider (failed unmarshaling the response body) <openstack> <Go OpenStack Exchange:Triaged> <juju-core:Triaged> <https://launchpad.net/bugs/1209003>04:23
jamI'm off for a sec, but will be back in ~ 1 hr04:23
wallyworld_jam: right now it's a simplestreams config issue. hopefully goose bug won't matter once that gets sorted04:24
sodrejam: that  looks like some of the errors I am seeing as well.04:25
sodrealright. Let me try again with a clean jenv.04:25
sodreit looks like I posted it to the wrong place...04:26
wallyworld_sodre: you only need image-metadata-url if you want to get tools from a place other than 1) your private cloud storage, 2) the configured endpoint in keystone04:28
sodrelatest validate-images --debug http://paste.ubuntu.com/6328061/04:29
sodreIdeally I would like to host it internally. But right now I just want it to work :)04:29
wallyworld_sodre: so, it looks like it can find the index file now. but there's a mismtach on region/endpoint. looks like endpoint in the json is http:// . are you sure it should not be https://04:32
sodreI don't think the default install used https04:32
wallyworld_it should be the same as your auth_url04:32
sodrelet me double check.04:32
sodreit is http04:33
wallyworld_hmmm. can you paste the whole output without the truncation?04:34
sodreas per keystone catalog04:34
wallyworld_it is expecting to match what is in your env file04:34
wallyworld_are you using auth-url setting in env file?04:35
sodreOkay. do you want the output of export ?04:35
sodreor the output from openstackrc.sh ?04:35
wallyworld_just the --debug when running the validate-images04:35
sodrethat was the whole output, 17 lines.04:36
wallyworld_btw, the generate-images command in 1.16 was a prototype tool for developers, it wasn't intended for end users. but there's no easy way to do private clouds without it. it's much better in next release04:36
wallyworld_sodre: looks like the log is truncated on the right edge though04:37
wallyworld_oh wait04:37
wallyworld_i missed the scrol bar04:37
wallyworld_doh04:37
sodre:)04:37
wallyworld_sodre: so just to check, can you paste the content of http://m1basic-04.vm.draco.metal.as:80/swift/v1/admin-juju/streams/v1/index.json for me?04:39
sodrethis is the output after calling swift download admin-juju ....  > http://paste.ubuntu.com/6328095/04:41
wallyworld_sodre: can you see the problem?04:42
wallyworld_i can :-)04:42
sodreohhh04:42
sodre:)04:42
sodreRegion region region :)04:42
wallyworld_yeah :-)04:42
sodrethat's strange..04:42
wallyworld_looks like that file was from the earlier wrong command04:43
sodreargh...04:43
wallyworld_where -r <endpoint> was used04:43
sodrealright... getting better04:44
sodreodre@ubuntu:~/.juju$ juju metadata validate-images04:44
sodrematching image ids for region "RegionOne":04:44
sodre907ca55d-a2e4-47c5-b26b-4be12bd78ecc04:44
sodreyay04:44
wallyworld_yay \o/04:44
sodreso, should I bootstrap now ?04:45
wallyworld_why not. i can't recall if 1.16 had the tools syncing stuff in it04:45
wallyworld_cause you could get the tools set up first04:45
wallyworld_save the upload04:45
wallyworld_i think it did04:45
sodreit has some in there.04:46
wallyworld_so, you can get the tarball you want04:46
wallyworld_save locally to <dir>/tools/releases04:46
wallyworld_juju sync-tools --source=<dir> --destination=<dir>04:46
wallyworld_then upload <dir> tree to private storage04:47
wallyworld_so private storage will have a tools dir in it04:47
wallyworld_or you could just bootstrap with --upload-tools :-)04:48
sodreI think it has one from the left-over bootstrap we did earlier04:48
wallyworld_you could run validate-tools then04:48
wallyworld_to see if juju can find them04:48
sodrevalidated :)04:48
wallyworld_\o/04:48
wallyworld_so bootstrap should work hopefully04:49
wallyworld_unless that goose bug gets in the way04:49
sodrealright...04:50
sodreI forgot to run with debug04:50
wallyworld_oh, did it fail?04:50
sodrewell..04:51
sodreit tried to start it with a m1.tiny.04:51
sodreand that gave an error.04:51
sodrebut we had a lot of progress.04:51
wallyworld_yeah, there's a potential bug selecting a large enough instance type. use a constraint04:52
wallyworld_--constraint mem=1024 for example04:52
wallyworld_add that to bootstrap command04:52
sodreokay, if I control-c  bootstrap how do I get it to run again ?04:52
wallyworld_bootstrap should return quite quickly04:52
wallyworld_you could juju destroy-environment, BUT that will also delete tools and image metadata04:53
wallyworld_what i would do is04:53
wallyworld_kill the bootstrap machine manually using nova cli04:53
wallyworld_then remove the provider-state file which juju put in private storage04:54
wallyworld_that will allow you run run bootstrap again04:54
hazmatsodre, wallyworld_, and kill the  jenv again04:55
sodreokay.04:55
wallyworld_the jenv can stay i think?04:55
hazmatwallyworld_, it refs the old instance id i think04:55
wallyworld_cause it has cached the env stuff, no need to delete it04:55
wallyworld_ok, won't hurt04:55
sodrejenv gone.04:56
wallyworld_in the past, i haven't needed to delete it i don't think, but better be safe04:56
hazmatwallyworld_, your right, its fine for this provider type04:57
sodrehow is juju handling neutron networks? Does it create one by default ?04:57
wallyworld_ok. so many gotchas to keep track of :-)04:58
hazmatwallyworld_, manual provider was the one it caused issues with for me in this same context.04:58
wallyworld_sodre: we haven't done anything to support neutron yet afaik. it's a work in progress04:58
wallyworld_unless i'm misunderstanding the current state of play04:58
hazmatsodre, its not really doing anything with them atm, it assumes a private network for the instances to talk among, and a public net (or floating ips)..04:59
sodreokay. so every instance will connect directly to the ext-net04:59
hazmatwe've got plans to address for 14.04 with first class network support (vpc, neutron, vlan, etc)04:59
lifelessnova can be setup so that neutron is transparent04:59
lifelessshould keep things working for people05:00
wallyworld_lifeless: !05:00
hazmatlifeless, long time :-)05:00
wallyworld_hi05:00
lifelesswallyworld_: hazmat: o/05:00
hazmatlifeless, see you next week :-)05:00
lifelesshazmat: most excellent05:00
sodrei guess my setup is not that way yet.  the instance only got a floating ip05:00
wallyworld_what openstack release supports neutron transparently?05:00
lifelesssodre: no internal address ?05:00
lifelesswallyworld_: Grizzly and Havana and Icehouse05:01
wallyworld_excellent, thanks05:01
lifelesswallyworld_: it's a config issue though05:01
lifelesswallyworld_: see the default_floating_pool nova setting05:01
sodrelifeless: yes,05:01
wallyworld_yeah, in the past we've had to assume lcd05:01
lifelessif thats wrong, and the default value is 'nova' but the example used in the all the admin guides for neutron calls it 'ext-net', then nova will refuse to do floating ip operations05:02
lifelesswallyworld_: separately there is a nova setting to auto-allocate floating ips to instances05:02
lifelessthat defaults off05:02
wallyworld_ok05:02
lifelesswithout that instances by default end up with no floating/public ip05:02
sodrehere is the pastebin http://paste.ubuntu.com/6328157/05:03
wallyworld_sodre: i've not seen that error before. openstack networking is not my strong point05:03
wallyworld_sodre: you could try use-floating-ip=false05:04
wallyworld_in juju env config05:04
sodreyeah, let me try again.05:04
lifelessNo nw_info cache associated with instance <- thats a new one05:06
lifelessit's being thrown from the nova virt rpcapi manager05:06
lifeless[or near tere, I haven't grepped for it yet]05:06
sodreI just needed to have a local network setup before calling bootstrap05:06
sodreGuys, Thank you so much.05:10
sodreI would not have been able to figure all this out on my own .05:11
sodreI am having issues with the image booting up but I think they are all on my end05:11
wallyworld_sodre: no problem. the tooling and doco associated with setting up a private cloud is very much a work in progress. it works if done correctly, but the doco is not finished yet. next release will be better05:12
sodrewallyworld_: Thanks a lot. Is there a place where the wip document is located?05:13
wallyworld_sodre: right now, wip = no doc except for "juju help <foo>" sorry05:13
sodrenp.05:13
wallyworld_so the commands have help but there's no end user task oriented doc05:14
sodreic... well .. thanks again !05:14
wallyworld_anytime05:14
sodreabout moving the tools and and streams to their own dedicated buckets...05:15
sodreonce that is done, it is just a matter of changing tools-url and image-metadata-url , right ?05:16
wallyworld_yeah05:16
sodreis there an easy script to mirror the s4 juju-dist bucket ?05:16
wallyworld_set up a publicly readable bucket05:16
sodres/s4/s3/05:16
wallyworld_that is going away real soon, and streams.canonical.com will take its place05:17
wallyworld_and mirroing will just be an rsync05:17
sodrenice.05:17
wallyworld_if you can hang on a week or so.....05:17
wallyworld_not sure the exact time, but rsn05:17
wallyworld_it will coincide with release of juju 1.1805:18
sodrewhen is 1.17 coming out ?05:18
melmothhola juju crowd.. I have a problem with 1.14.0-0ubuntu1~ubuntu12.04.1~juju1. I need to set a config-flag for the nova-cloud-controller charm.05:18
wallyworld_soon. we will release that as a 1.18 beta if you like05:19
melmothi try: juju set nova-cloud-controller config-flags="scheduler_default_filters=AggregateInstanceExtraSpecsFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter"05:19
melmothbut nova.conf on the machine end up with only scheduler_default_filters=AggregateInstanceExtraSpecsFilter05:19
wallyworld_try using "" around the filters value?05:19
wallyworld_just a guess05:20
melmothi first try \, , and this was a disaster05:20
sodrewallyworld_: have a good rest of day back in your TZ.05:20
wallyworld_sodre: will do :-) let us know if you need anything else05:20
melmoththere are 2 nova-cloud-controller (haclustercharm subordinate), and one unit ended up with config error that i could not sovled (no realtion id error each time i try a new juju set)05:20
sodrethanks I'll stop by again.05:21
melmothi had to destroy the unit and redeploy it again.05:21
wallyworld_melmoth: i'm not sure of the answer to your question. marcoceppi  are you around to help out?05:21
melmothmarcoceppi, if you are around this is with some folk you already met (remember the land of the rising sun ? :-) )05:22
=== CyberJacob|Away is now known as CyberJacob
=== dosaboy_ is now known as dosaboy
smosersodre, wallyworld hazmat, fwiw, the 'example-sync' that sodre ran specifically creates metadata in swift bucket.12:59
smoserso that juju should just need to be pointed at that.12:59
smoser(or the target 'swift' output  made to match)13:00
smoseralso an option is to register that endpoint in keystone (swift path) and then juju will find it there.13:00
smoserthat is how canonistack works.13:00
=== zz_paulczar is now known as paulczar
adeuringsinzui: https://code.launchpad.net/~adeuring/charmworld/more-heartbeat-info/+merge/19324814:04
sinzuithank you adam_g14:04
sinzuithank you adeuring14:04
=== paulczar is now known as zz_paulczar
smoserso in ceph charm, where does 'charm' command come from (in Makefile).14:13
ehwracedo:/win 2714:13
smoserjamespage, ^ ?14:13
ehwdoh14:13
jamespagesmoser, oh14:14
jamespagesmoser, charm-helpers itself - that bit sucks alot right now14:14
jamespagesmoser, no14:14
jamespagesorry14:14
jamespagecharm-tools14:14
jamespagecharm proof right?14:14
freephileI have a "local" environment but I can't connect to it - and I think it's because I ran out of disk space.  How can I clean up if I can't connect?14:14
freephileprovider-state: dial tcp 10.0.3.1:8040: connection refused14:15
marcoceppismoser: the charm command is from charm-tools14:16
marcoceppifreephile: that means that the API service or db service isn't running, what does `initctl list | grep juju` show?14:16
smosermarcoceppi, so install that from archive ?14:16
marcoceppismoser: in saucy it's good, otherwise install from ppa:juju/stable14:17
freephilemarcoceppi: juju-db-root-local stop/waiting juju-agent-root-local start/running, process 114514:17
smosersaucy... pfft.14:17
smosertrusty man.14:17
marcoceppismoser: trusty is good too :)14:17
rick_h__lol smoser14:17
marcoceppismoser: basically you want charm-tools > 1.014:17
smosercharm tools depends on juju core ?14:17
marcoceppismoser: recommends, I believe14:18
smoserah. probably.14:18
marcoceppisince it's also a juju plugin, via `juju charm`14:18
smoserrecommends == depends for all practical purposes14:18
* marcoceppi nods14:18
freephilemarcoceppi: do I start with (as root) 'service juju-db-root-local start'14:20
marcoceppifreephile: sorry, yes sudo start juju-db-root-local14:20
marcoceppithen run juju status again14:21
marcoceppior whatever command failed14:21
freephileif I start the db service, it immediately stops (because I'm out of disk space).14:28
=== zz_paulczar is now known as paulczar
freephileI tried 'start juju-db-root-local && juju ssh opengrok/0 initctl stop opengrok-index'14:28
freephileto no avail14:29
marcoceppifreephile: ohh, you're going to need to free up some disk space14:29
marcoceppifreephile: if you can't trim files (say, zeroing out ~/.juju/local/log/*.log files) etc, you can just destroy the opengrok unit with lxc commands14:30
sinzuiadeuring, r=me. coordinate your change to Approved with bac. he is giving trunk to juju-gui-bot now14:36
sinzuiadeuring, I had some suggestions for a follow branch14:37
adeuringsinzui: thanks14:37
jcastroevilnickveitch, hey, apparently you got a submission on bundles for the docs?14:37
freephilemarcoceppi: thanks, I zeroed out the log files (was wondering about that) but it wasn't enough apparently to get the db to stay up.  I'll check into lxc commands14:37
marcoceppifreephile: you'll want `sudo lxc-ls --fancy`, then `sudo lxc-destroy -n <name from ls command>`14:38
adeuringsinzui: featured is already covered by "API(2|3) interesting", I think14:38
marcoceppifreephile: after you clear up disk space, start the juju db then run juju destroy-environment to get the rest of the deployment cleaned up14:39
evilnickveitchjcastro, i do, yes14:39
sinzuiadeuring, it is not14:39
jcastroevilnickveitch, do you have it anywhere I can look at it? branch or something?14:39
adeuringsinzui: so, you think it should get its own status? Or am I missing something else?14:39
sinzuiadeuring, API2/3 can fail for 3 or more reasons. Knowing specifically that featured is empty on staging is fast fix.14:40
evilnickveitchjcastro, i have a google doc14:40
bacadeuring: please do not land to charmworld right now.14:41
adeuringbac: ok, tell me hwen i can land it14:41
sinzuiadeuring, juju-gui (staging and production) needs to fail when those collections are empty. We we setup a new env, charmworld is still in a bad state after the first ingest because we are often missing human created data14:41
=== paulczar is now known as zz_paulczar
=== zz_paulczar is now known as paulczar
freephilemarcoceppi: Success!!! `lxc-ls -l; lxc-stop -n root-local-machine-2; lxc-destroy -n root-local-machine-2; start juju-db-root-local; juju status;`14:50
marcoceppifreephile: cool, you'll find that opengrok service is in a down state (obviously, as you destroyed it) but you should be able to destroy the environment and recreate it14:52
marcoceppietc14:52
bacadeuring: go ahead and land charmworld as before.  then hold off any more.14:57
adeuringbac: ok, thanks14:57
adeuringbac: done14:58
=== natefinch is now known as natefinch-afk
smoserhey.15:54
smoserso i just manually manage 'revision' file ?15:54
marcoceppismoser: no15:54
marcoceppirevision file is only used for local deployments, and it should be incremented automatically by juju15:54
marcoceppismoser: infact you can add it to .bzrignore15:55
marcoceppijcastro: CHARM SYNC15:55
marcoceppio/15:55
jcastroyep15:55
jcastrofiring it up15:55
jcastrowanna seed the pad?15:55
marcoceppiwoo who15:55
marcoceppijcastro: yup15:55
mthaddonevilnickveitch: https://juju.ubuntu.com/docs/authors-charm-writing.html "The README is a good place to make nots about how the charm works" <-- should I file a bug about that, or is it okay to have just mentioned it here?15:57
jcastroevilnickveitch, misfire, one sec.15:57
jcastrohttps://plus.google.com/hangouts/_/7acpicbshl5mtk1tqjntg4g30k?authuser=0&hl=en15:58
jcastroevilnickveitch, arosales ^^15:59
marcoceppijcastro: http://pad.ubuntu.com/7mf2jvKXNa15:59
=== rogpeppe2 is now known as rogpeppe
=== paulczar is now known as zz_paulczar
=== mwhudson- is now known as mwhudson
smosermarcoceppi, i asked about 'revision' because 'charm proof' complained 'ERROR' in its absense.17:14
mhall119halp!17:37
mhall119mhall@mhall-thinkpad:~$ juju status17:37
mhall119ERROR Unable to connect to environment "local".17:37
mhall119Please check your credentials or use 'juju bootstrap' to create a new environment.17:37
mhall119Error details:17:37
mhall119Get http://10.0.3.1:8040/provider-state: dial tcp 10.0.3.1:8040: connection refused17:37
adam_gsinzui, are there PPA builds of 1.16.1 somewhere?17:37
mhall119mhall@mhall-thinkpad:~$ sudo juju bootstrap17:37
mhall119Swipe your right index finger across the fingerprint reader17:37
mhall119ERROR Get http://10.0.3.1:8040/provider-state: dial tcp 10.0.3.1:8040: connection refused17:37
sinzuiadam_g, they are not yet. We are looking into an azure issue that first blocked the test, and now looks like a fix is needed for 1.16.117:39
sinzuiadam_g, I am off to lunch. I can arrange a package for you if you need one today17:39
mhall119jcastro: juju is broken17:45
jcastrowhat's up?17:45
mhall119see my errors above17:45
mhall119I can't even bootstrap a local env17:45
jcastrocan you pastebin the `sudo juju --debug bootstrap`?17:45
jcastromhall119, you're in luck, marco and I are working on a troubleshooting the local provider document17:46
jcastroand by luck I mean "haha".17:46
mgzmhall119: a good first step is to delete any misc .jenv files in ~/.juju/environments and try again17:46
mhall119mgz: \o/ that seems to have done the trick17:47
jcastro\o/17:47
* mhall119 tries deploying again17:49
=== zz_paulczar is now known as paulczar
marcoceppismoser: that's been fixed in 1.1 which should be released tomorrow18:04
marcoceppimhall119: jcastro: https://bugs.launchpad.net/juju-core/+bug/124642918:05
_mup_Bug #1246429: destroy-environment no longer removes .jenv <juju-core:New> <https://launchpad.net/bugs/1246429>18:05
mhall119thanks marcoceppi18:06
=== natefinch-afk is now known as natefinch
marcoceppiI was about to say "Hey I can't replicate this!" But then I realized I'm on 1.15.1 :)18:09
sodresmoser: can I talk to you about simplestreams18:49
smosersodre, i've got a few minutes.18:53
smoserwhats up?18:53
sodreI was trying to run your script last night. The found an issue with the integration with radosgw18:54
sodres/The/I18:54
smoserhm.. ok.18:54
sodremy question: is there a particular issue whey you call _strip_version?18:54
sodres/whey/why/18:54
sodrethis is on line openstack.py:9818:55
smosersodre, that is copied from other clients that do it.18:58
smoserwhat is the problem with doing that ?18:58
sodreIt does not work with the default ( juju deployed ) ceph-radosgw charm.18:59
sodreIf I don't strip the version, then your code works fine.19:00
smoserhm..19:01
=== paulczar is now known as zz_paulczar
sodresmoser: still thinking ?19:22
smosersodre, sorry. on a call now.19:26
sodrealright np.19:26
sodrelet me know when we can chat about that bug.19:26
mhall119jcastro: is there any easy way to condense 'juju status' to just the really useful details?19:27
mhall119I want to 'watch "juju status"' to see things changing, but it's more than will fit on my terminal19:27
sodremhall119: same problem here ....19:27
marcoceppimhall119: sounds like you want to write a plugin19:28
marcoceppimhall119: like what, you just want a list of units and their status?19:28
mhall119yeah19:28
marcoceppimhall119: hold up, let me try something19:28
sodrehave you tried watch 'juju status | grep state' ?19:29
sodrethe quotes are important.19:31
mhall119sodre: that doesn't give me the unit though19:32
sodreyeah, we need a better 'grep' '19:33
marcoceppimhall119: sodre: it's time to introduce you to plugins, give me just a few more mins I'll have a working example19:33
sodre:) nice19:34
jcastromhall119, I do `juju status wordpress` or whatever to get each one19:35
jcastroI have long wanted19:35
jcastrojuju top19:35
jcastrowith an htop looking view of stuff19:35
mhall119+119:40
marcoceppimhall119 jcastro sodre drop this in a directory in your path: http://paste.ubuntu.com/6331880/19:43
marcoceppionce it's in path, juju prettyprint will produce that, you should be able to watch it from there19:43
marcoceppicome onnnnnnn pastebin19:44
marcoceppimhall119: sodre https://gist.github.com/marcoceppi/723896419:45
marcoceppiWith more time you could easily make a juju top command which could poll the API and present useful data about services, units and machines much like htop19:46
jcastroyeah, it's just a manpower issue19:47
jcastrono one's going to drop working on HA to work on juju top, heh19:47
marcoceppiexactly. So I have just empowered two users to use and abuse plugins19:47
=== zz_paulczar is now known as paulczar
jcastroIt'd be a nice low hanging fruit for a new person though19:48
marcoceppinow we just need to wait for mhall119 to submit his juju top plugin :)19:48
marcoceppi(python-jujuclient exists as a pyton library for talking to the API, hint hint wink wink)19:48
jcastrostealing client people won't happen either, I've already tried that19:48
* marcoceppi twiddles thumbs19:48
sodreI like it :)19:49
sodreit crashes at first since I have nothing on open-ports. but I got the gist.19:50
marcoceppisodre: ahh, yeah public-address will mess it up too. You'd just have to add sanity checks in there19:51
* marcoceppi does the quick and dirty script19:51
marcoceppi"use at your own risk"19:51
sodrethanks for pointing out how I can put it together.19:51
marcoceppisodre: yeah, you can run `juju help plugins` to get an idea of plugins you have installed and what not19:52
marcoceppithey're an under publicised feature of juju19:53
sodreahhh19:53
sodrethat's where the metadata and deployer show up.19:53
marcoceppisodre: same with charm-tools if you have that installed `juju charm`, etc19:54
marcoceppireally it's basically juju-<subcommand> if it doesn't exist in core but that binary exists, juju core just passes everything on to it19:55
marcoceppiexactly like git and bazaar plugins19:55
sodreic19:55
arosalesjcastro, so to double confirm on charm bundles20:00
marcoceppiso bundles are pretty cool20:00
jcastrook so I have .... 5 bundles right now20:00
jcastroliferay20:01
arosaleswhile policy is properly defined bundles will be "featured" in the gui but just under your name space. Is my understanding correct?20:01
arosalesjcastro, ^20:01
jcastro"scalable jenkins" which is one jenkins with 3 slaves20:01
jcastroscalable mediawiki with a load balancer20:01
jcastroa simple mediawiki20:01
jcastroand wordpress20:01
jcastroarosales, yes, I'm about to push the first one20:01
jcastroand then we'll see how it gets indexed20:01
arosalesjcastro, cool thanks for confirming on that20:01
marcoceppijcastro: will you be able to promote non "promulgated" bundles?20:04
jcastroI am asking bac that now20:05
marcoceppijcastro: dude, can you test charm-tools 1.1 for me?20:06
marcoceppiand just `charm proof --bundle` each of the bundles you're writing?20:07
jcastrooh, yeah!20:07
jcastroPPA?20:07
marcoceppijcastro: because you're definitely doing it wrong20:07
marcoceppijcastro: it'll be a manual install, let me update the URL and I'll give you a link20:07
jcastrook guys, so featuring a bundle will be the same as a charm20:07
jcastrowe go into manage.jujucharms.com and check the box20:07
jcastroit'll ingest the first bundle in ~15 or so, then we can mess with it20:07
jcastromarcoceppi, hey so bac tells me that we'll also need to promulgate the bundles20:10
jcastroso we'll need charm tools updated20:10
marcoceppiit has promulgate support20:11
marcoceppi<320:11
jcastrofor bundles?20:11
jcastro<320:11
marcoceppiyes20:11
bacsweet20:11
jcastrooh, you mentioned it during the status call, I remember now20:11
jcastromarcoceppi, ok so I'll test your proof tool20:12
jcastrothen push20:12
jcastrowe'll wait 15 for them to seed in the store20:12
jcastrothen you can promulgate?20:12
marcoceppiyes20:12
marcoceppijcastro:20:12
jcastroI'll push my discourse one up too, but not promulgate it20:12
marcoceppibzr branch lp:~marcoceppi/charm-tools/bundle-support charm-tools; cd charm-tools; python setup.py install20:13
marcoceppierr20:13
marcoceppibzr branch lp:~marcoceppi/charm-tools/bundle-support charm-tools; cd charm-tools; sudo python setup.py install20:13
marcoceppijcastro: then you should be able to juju charm proof --bundle /path/to/bundle/directory20:13
marcoceppiwell, you can ommit the --bundle flag, it'll detect a bundle automatically20:13
rick_h__and then the fury of the proof'er will come down upon you!20:14
marcoceppirick_h__: I was looking over his branch, saying to myself "yeah, this is a great test case for proof"20:14
rick_h__lol20:14
rick_h__marcoceppi: so heads up, we're actually going to work on pulling in the deployer to do bundle proofing. Share the same exact bits as much as possible. So heads up that new stuff should pop up even though you don't update the charm-tools20:15
marcoceppirick_h__: that's fine and perfect20:15
jcastromarcoceppi, http://pastebin.ubuntu.com/6331983/20:16
jcastroI tried different permutations20:16
rick_h__lol20:16
marcoceppirick_h__: the only thing I'm really checking for in the deployer file is annotations20:16
marcoceppijcastro: because it's not a valid bundle20:16
rick_h__marcoceppi: rgr, just more an FYI because people will fail proof and probably come chat with you/this channel20:16
marcoceppithe error message isn't clear though, it looks for "bundle.json or bundle.yaml"20:16
marcoceppiwhich are the only two files supported20:17
marcoceppirick_h__: I'll make sure it displays warnings as well20:17
marcoceppifrom the api20:17
rick_h__marcoceppi: cool20:17
jcastroso is that a bug in the tool or are we expecting everyone to name things bundle.yaml20:17
marcoceppijcastro: I'll update so that when you use --bundle flag and it detects not a bundle it'll say "Not a bundle because no bundle file (.json or .yaml) found"20:17
rick_h__jcastro: expecting them to name it bundle.yaml20:17
marcoceppijcastro: the GUI expects bundle.*20:18
marcoceppiit's a bug in that the message to the user is misleading (and ugly exception traceback)20:18
jcastrosame errors when I rename it to bundle.yaml20:18
jcastroalso, daddy needs autocompletion!20:19
marcoceppijcastro: well daddy can submit a merge req :)20:19
marcoceppijcastro: one second, let me branch your branch20:19
jcastroI hope the bundle is valid, because I got it from the gui20:19
jcastroif not, we have other problems, heh20:19
marcoceppijcastro: where is your branch?20:20
rick_h__jcastro: no, we've got chances to excel :)20:20
rick_h__jcastro: rename the envExport to 'wordpress' as well please20:20
marcoceppirick_h__: yeah, I was hoping proof would pick that up20:21
rick_h__jcastro: we've got a bug to change that to ask you for a name on export, but must not have made it yet20:21
marcoceppijcastro: please don't name it wordpress20:21
rick_h__marcoceppi: we don't, it's valid20:21
marcoceppirick_h__: my proof will20:21
rick_h__marcoceppi: but yea, we want to fix the gui export to not keep reusing the same name20:21
rick_h__marcoceppi: oh, cool then.20:21
jcastrohttps://code.launchpad.net/~jorge/charms/bundles/wordpress/bundle20:21
jcastrobranch is here20:21
jcastrosorry it's so convoluted. I miss _one lousy_ session20:21
jcastroand this is what you come up with rick20:21
jcastromight as well add some plusses and whitespace to the url20:22
rick_h__lmao, to which url? the LP branches?20:22
jcastroyeah, seriously, who is going to remember this url?20:22
jcastrothis is bws-readme all over again20:22
marcoceppijcastro: it needs be called bundles.yaml20:22
marcoceppirick_h__: correct?20:22
jcastrobundles with an s?20:22
marcoceppiwhat's the file name plurarl or singular?20:22
marcoceppiI'm currently looking for pluarl20:23
marcoceppiI'm also looking for a new spell checker20:23
jcastroplural doesn't work either20:23
rick_h__marcoceppi: bundles.yaml20:23
rick_h__is that we're looking for20:23
rick_h__in ingest20:23
rick_h__jcastro: user's should never see the url tbh20:23
marcoceppijcastro: it works for me but I get a weird error from remote proof20:24
jcastrook so what will the final cli command look like for deploying a bundle?20:24
rick_h__jcastro: they go to the gui and either get a UI to pick the one, or they get a bundle:~jcastro/wordpress/5/wordpress url20:24
jcastroalso, if not wordpress, what do I name envExport?20:24
marcoceppijcastro: something more descriptive than wordpress, you're creating a solution20:24
marcoceppijcastro: so if it's just wordpress + msyql and default config you've created a solution not many people would want imo20:25
marcoceppiwordpress-simple is a good start20:25
jcastrogot it20:25
jcastrorick_h__, but the gui doesn't support colocation yet20:25
marcoceppithe name should describe what you've solved20:25
jcastroso for a bunch of these one shot bundles they'll need to CLI20:25
rick_h__jcastro: not showing it no, but it should 'work'20:25
jcastromarcoceppi, got it20:25
jcastromarcoceppi, that's what I was naming the yaml files20:26
jcastrolike simple-wordpress.yaml20:26
marcoceppijcastro: yeah20:26
marcoceppithis is what I was talking about20:26
marcoceppithat bundles.yaml file can have MULTIPLE bundles in it20:26
jcastrorick_h__, is there a way I can do `juju deploy bundle:~jorge/wordpress` without all the other stuff?20:26
marcoceppiso you can have a wordpress branch, with a bundles.yaml that has simple-wordpress, scaled-out-wordpress, etc20:26
jcastrooh!20:27
rick_h__jcastro: yes, that's what quickstart is for20:27
rick_h__juju quickstart bundle:~jcastro/...20:27
jcastrobut I can't make that in the GUI, I'd have to make them individually and them combine them into one file20:27
rick_h__jcastro: right20:27
jcastrorick_h__, right, so when does that land in relation to bundles?20:27
rick_h__jcastro: the gui only handles one at a time20:27
rick_h__jcastro: along-side-ish? I'm not 100% sure. It's almost working now20:27
jcastrook so what happens as of today if I drag a multiple environment yaml file into the GUI?20:27
rick_h__jcastro: it tries to deploy them20:28
rick_h__until they collide "You've already got a wordpress installed" and then dies20:28
bcsallerno, it fails if there is more than one target in the file20:28
bcsallerit can ask for a named target, but there is no UI around that now20:28
jcastrook so for now they'll have to be individual bundles20:29
rick_h__bcsaller: oh, right. I was thinking if you did multiple drags20:29
jcastrosimple-wordpress, HA-wordpress, and so on?20:29
rick_h__jcastro: yes20:29
marcoceppijcastro: fixed charm-tools, bzr pull, run install again20:29
jcastromarcoceppi, got it20:29
jcastroW: No readme file found20:31
jcastroE: envExport is the default export name. Please use a unique name20:31
jcastroE: envExport: Could not find charm: wordpress20:31
jcastroE: envExport: Could not find charm: mysql20:31
jcastroYeah!20:31
jcastronow we're getting somewhere20:31
marcoceppijcastro: I'm working with rick_h__ on why it says can not find charm20:31
marcoceppithe first two are valid issues20:32
jcastroon it20:32
jcastrorick_h__, man, if at some point today I have to add a -HEAD to the end of one of these commands .... *eyes narrow*20:33
smoserok.20:33
smoserstupid person here.20:33
smoser$ bzr push lp:~smoser/charms/precise/maas-region20:33
smoserbzr: ERROR: Permission denied: "~smoser/charms/precise/maas-region/": : Cannot create branch at '/~smoser/charms/precise/maas-region'20:33
rick_h__jcastro: not at all20:33
smoserwhat shoudl that be ?20:33
marcoceppismoser: add /trunk to the end of it20:33
rick_h__jcastro: it's a new feature, bug is in there.20:33
smoserah.20:33
smosergracias20:33
marcoceppiit's user/project/series/package/branch20:33
jcastrook wordpress is done, hopping on a call with kirkland, and I'll finish up the rest.20:34
* kirkland high fives jcastro 20:34
jcastrorick_h__, what url can I monitor to see when the bundle gets ingested?20:34
rick_h__jcastro: http://manage.jujucharms.com/search?search_text=jcastro&op=20:35
rick_h__jcastro: right now it will have failed due to the file name20:35
jcastrorick_h__, sorry for being annoying, you know how near and dear simple URLs are to my heart.20:35
jcastroI just commited a fix with the rename20:36
rick_h__jcastro: so a push up with that fixed should get it ingested20:36
rick_h__jcastro: cool20:36
* jcastro nods20:36
rick_h__jcastro: I'm with you, but the urls for branches in the series and crap is waaaay out of my hands.20:36
jcastroyeah I get it20:37
marcoceppithumper: is there a short flag for --debug?20:44
marcoceppior is it only in long form?20:44
thumperonly long at this stage20:45
marcoceppiack20:45
rick_h__jcastro: the versionless cs: urls are breaking it atm. We *want* to support it so will have to update charmworld20:47
rick_h__jcastro: if you put the versions back in it'll work ok and proof. I'm starting a branch to figure out a way around the versionless issue now20:48
rick_h__marcoceppi: ^20:48
marcoceppirick_h__: ack, thanks!20:59
rick_h__marcoceppi: have a fix, Will get it reviewed and landed tomorrow. Can verify on staging sometime then21:00
marcoceppirick_h__: cool cool, I'll release charm-tools regardless after I iron out a few things here21:00
marcoceppisince that's all remote proof21:00
rick_h__marcoceppi: +1 appreciate it21:00
jcastrorick_h__, ok so is it ok if I push versionless now?21:19
rick_h__jcastro: yea, we're not proofing, just it'll continue to fail marcoceppi's proof tool until this lands on production21:19
jcastrothat's fine21:19
jcastrohmm, no ingestion yet?21:21
=== txwikinger is now known as txwikinger2
=== txwikinger2 is now known as txwikinger
mrammthumper's blog post about his logging library for Go is now up on hacker news: https://news.ycombinator.com/item?id=664380522:13
=== paulczar is now known as zz_paulczar
=== zz_paulczar is now known as paulczar
marcoceppihazmat: How does juju-deployer determine the bootstrap IP addresses for using the jujuclient?22:48
hazmatmarcoceppi, its going to move to api-endpoints in the future22:49
hazmatmarcoceppi, atm its using juju status22:49
marcoceppihazmat: ah, gotchya22:49
hazmatmarcoceppi, you trying to use the api direct?22:49
hazmater jujuclient direct22:49
marcoceppihazmat: yeah, was going to try to22:49
hazmatmarcoceppi, cool22:49
marcoceppihazmat: but I don't know how to find the bootstrap IP address without first running juju status22:50
marcoceppiis it in the jenv file?22:50
hazmatmarcoceppi, juju api-endpoints22:50
marcoceppimagic22:50
marcoceppihazmat: thank you!22:50
hazmatmarcoceppi, i added that for explicitly this purpose ...22:50
hazmatnp22:50
marcoceppi<322:50
sodreguys, I am facing an issue with juju bootstrap  not setting up my password22:54
hazmatsodre, you mean your ssh key?22:54
sodreyes22:54
sodreI can paste the vm boot-log22:54
sodrehttp://paste.ubuntu.com/6332775/22:55
=== paulczar is now known as zz_paulczar
hazmatsodre, that's a nice one..22:57
sodreyeah :)22:57
hazmatsodre, that's a go panic trying to set the mongodb password. its basically your admin-secret from the environments.yaml22:57
sodreahhh22:57
sodreit needs to be complicated, right ?22:57
hazmatsodre, well not really, it needs to be sized under 30 characters i think22:58
sarnold(note there's a "-----BEGIN RSA PRIVATE KEY-----" in that paste, I hope it's ephemeral data...)22:58
hazmatits just a random string in this mostly..22:58
hazmatsarnold, it is.. if the environment is.22:59
sodreyes, the environment was random22:59
sarnoldyay :)22:59
sodresarnold: thanks for pointing it out.22:59
hazmatits part of the auto generated ca and server cert juju setups for th enev22:59
hazmatsodre, i'd re-try with a random 10 digit string23:00
sodreyeap. I am doing that right now. I think I had read about that ''feature'' before.23:00
hazmatsodre, i thought it was size validated.. but maybe not..23:02
sodreMost people don't see this issue because the environment is generated.23:02
sodreI wrote mine by hand, so that is why it happened.23:02
sodrehumm... same error23:05
hazmatsodre, hmm23:05
sodrelet me do a generate23:05
sodreand try again.23:05
hazmatsodre, its get stored in jenv23:06
hazmatif your yanking23:06
hazmatdestroy-env clears that though23:06
sodreI deleted that by hand, I think23:07
sodrehazmat: same issue even with a random long password23:29
wallyworld__sodre: maybe you can update the bug with any additional info?23:42
sodrewill do23:44
sodrewhat would you need ?23:44

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