[00:35] hmm bellini is gone [00:36] bummer.. okay working on a workaround [00:54] fwiw.. workaround added as comment to relevant bugs.. https://gist.github.com/kapilt/a61efcb4eaef9e685397 === revagomes_ is now known as revagomes === CyberJacob|Away is now known as CyberJacob === tedg is now known as ted === Ursinha-afk is now known as Ursinha [06:49] ERROR cannot assign unit "nova-compute/0" to machine 0: machine "0" cannot host units [06:49] bye bye [06:49] :( === ted is now known as tedg === CyberJacob is now known as CyberJacob|Away [08:22] What types are allows in config.yaml in juju charms? | http://askubuntu.com/q/472802 [08:59] ^ what AskUbuntu said - does anyone know what config types are allowed? Is there a "dictionary" type? [10:01] nottrobin: click on the link, the question has been answered. The short answer is no dict type, int, float, string, boolean only at the moment [10:01] lol [10:02] marcoceppi: nottrobin is the questioner and answerer :) [10:02] * marcoceppi saunters away [10:02] marcoceppi: thanks =D [10:03] marcoceppi: I went and found the answer myself [10:03] cool [10:08] marcoceppi: is it possible to have timing issue (i.e. race condition) with the definition of relations when a 'relation-change' hooks kicks in ? [10:09] I'm debugging an openstack charm and if I print the result of a 'relation_get' at the beginning of the "-changed" hooks the value is present [10:10] caribou: there's a chance the relation data won't be available at the time of the hooks execution [10:10] if I don't print it (for debugging purpose), then it fails because the value is not defined [10:10] caribou: there's always a chance relation data won't be available during -changed relation, which is why you should build in verification that the values you need are present before continuing [10:11] hmm, how do I work around this ? wait for it to appear ? [10:11] since the hook will not get re-fired once it becomes available [10:11] caribou: most charms do an idempotency guard and just exit 0 until it's available [10:12] caribou: yes it will [10:12] relation-changed will always fire at least once during a relation creation event, then will execute each time data on the wire changes [10:12] marcoceppi: ah, ok. I was tempted to add such a guard but didn't know if it would get refired [10:12] marcoceppi: thanks I'll do that [10:13] most of the time this results in two relation-changed events being queued. one is the first one that will always happen (which may or may not have the data) then one for each subsequent run [10:13] caribou: cheers [10:13] marcoceppi: this explains why I got the data when running within debug-hooks and not when running live [10:13] caribou: right, there's enough latency that you don't need the second -changed event [10:14] marcoceppi: understood ! === vladk|offline is now known as vladk [10:24] Destroy a juju service and also its associated machine | http://askubuntu.com/q/472849 === vladk is now known as vladk|offline === Ursinha is now known as Ursinha-afk === vladk|offline is now known as vladk === vladk is now known as vladk|offline === vladk|offline is now known as vladk === tedg is now known as ted === Ursinha-afk is now known as Ursinha [11:39] anyone else is having issues with juju local provider ? [11:40] I was very happy with juju but it became unusable just about two months ago [11:41] ghartmann: Working for me [11:41] I can't get juju local to work anywhere, even with virtual machines. devel / stable [11:42] I can't seem to send syslog messages to a related rsyslog service. Anyone got it working in their charm? === ted is now known as tedg === vladk is now known as vladk|offline === vladk|offline is now known as vladk === TheMue is now known as TheMue_AFK [12:36] ghartmann, what symptons? [12:36] machine goes pending and it's not delivered [12:36] it seems to be related with the developer tools for saucy === vladk is now known as vladk|offline [13:48] Does charmhelpers CLOUD_ARCHIVE_POCKETS need to be updated for trusty? [14:01] hey lazyPower , what does 'store error on...' means on the review queue? (http://manage.jujucharms.com/tools/review-queue) [14:01] Thats a great question niedbalski__. marcoceppi can you shed some insight into that one? [14:02] niedbalski__ lazyPower it means that "charm proof" fails for that charm [14:02] err, the store error is something else [14:03] it means that the charm exists in a promulgated branch but isn't actually in the charm store [14:06] marcoceppi, there is a manual process for doing that ? [14:06] marcoceppi: is that basically the branch was pushed but charm promulgate was not run against the charm? [14:13] http://askubuntu.com/questions/tagged/juju?sort=newest&pageSize=15 [14:13] some new incoming questions! [14:16] yo lazyPower [14:16] sup jcastro [14:16] you're doing the review on elasticsearch? [14:16] I don't remember if that was you or just in "the pile" [14:16] its in the pile atm. [14:16] i've touched it, so has mbruzek === Topic unset by jcastro on #juju [14:17] * mbruzek waves [14:17] sigh, whoops === jcastro changed the topic of #juju to: Welcome to Juju! || Docs: http://juju.ubuntu.com/docs || FAQ: http://goo.gl/MsNu4I || Review Queue: http://goo.gl/9yBZuv || Unanswered Questions: http://goo.gl/dNj8CP || Weekly Reviewer: marcoceppi [14:22] lazyPower, is the outstanding issue with ES the peer relation thing? [14:23] whit: That was the last known issue. hazmat has some activity against the charm stating its good in his use cases. [14:23] that and there's some missing offline environment installation logic for feature parity with the existing charm [14:24] otherwise i think its all thumbs up from here [14:24] whit, which peer relation issue? [14:24] whit, it doesn't have any that i'm aware of [14:25] hazmat, we are talking about the ansible branch? [14:25] whit, yeah.. simple offline and website relation needs port set were the items of note i had. [14:25] whit, yes [14:25] whit, also some philosophical discussion about removing either cluster or rest named relation [14:25] but that's legacy from the charms impl [14:26] from the old impl [14:26] hazmat, yeah, bw [14:26] but its needless confusion imo [14:26] yeah [14:27] hazmat: so the charm embedded relationship exchange works? We don't need to worry about the multicast workaround thats going on there? [14:28] lazyPower, that stuff was garbage [14:28] needed ec2 credentials or multi-cast support.. its stuff that never should have been in the charm [14:29] lazyPower, relations hooks can configure the address set for peers automatically.. and the ansible version of the charm does just that, its much more universal and simpler. [14:30] welp thats duly noted then. All we are missing is offline support, and that could easily be added as an issue to be fixed post promulgation - but I don't know that we want to set the precident for removal of features to be promoted in the store. [14:30] ergo: what if someone is in an offline environment and has this deployed? we just broke it for them. [14:30] also note its currently breaking the interface on 'http' for the website rel [14:30] it needs to pass the port [14:30] one liner [14:32] ah right, and that. [14:32] * lazyPower glosses over the obvious === tedg is now known as ted === swebb is now known as zz_swebb === vladk|offline is now known as vladk [14:57] marcoceppi: ping [14:57] mhall119: pong [14:57] marcoceppi: hey, we have a cloud devops track for UDS/UOS June 10-12, can you be a track lead for it? jcastro is already one [14:57] mhall119: uh, sure [14:58] marcoceppi: jcastro: I'd also like a track lead from the community, any recommendations? [14:58] is there a spec for the actions work? === zz_swebb is now known as swebb [15:32] is it possible in one juju deployer file to be using precise and trusty for different charms? [15:33] cjohnston: yes [15:34] cjohnston: remove the series: key, then put the series in all the charm: lines [15:34] ack [15:34] ta [15:34] ie, charm: cs:trusty/mysql [15:34] er.. charm_url: cs:trusty/mysql [15:34] you can keep the series at the top level, and just override on the ones you need it as well [15:35] what if I'm not using cs charms? charm: graphite for example [15:36] cjohnston, series: trusty [15:36] ack.. sweet [15:36] cjohnston, or charm_url: local:trusty/mysql .. [15:36] cjohnston, this might be post trusty version btw. (0.3.6) .. latest is 0.3.8 on pypi [15:37] ok === psivaa is now known as psivaa-sprint === TheMue_AFK is now known as TheMue === hatch__ is now known as hatch === vladk is now known as vladk|offline [15:54] marcoceppi: jcastro: so far you two are the only track leads I have picked for DevOps, it would be nice to have a third, can you recommend somebody? [15:55] someone from gaughen's team [15:55] how do I give a juju charm instance a specific public address? - rather than just an IP address? [15:55] also Is there any way to run bundles directly without starting a "juju-gui" instance? (I'm following https://juju.ubuntu.com/docs/charms-bundles.html) [15:56] juju-deployer -c bundle.yaml will do the bundle without the gui === vladk|offline is now known as vladk [15:58] gaughen: ping [15:58] jcastro: anybody from the community side? [15:58] mhall119, pong [15:58] let me read a bit of the history here [15:58] gaughen: I'm looking for a 3rd track lead for Cloud DevOps in the upcoming UDS/UOS [15:58] mhall119, I can do that [15:58] count me in [15:59] awesome, thanks, will send out an email with instructions [16:01] jcastro: thanks, that looks perfect [16:01] mhall119, jose' [16:01] s been doing a bunch of work lately if he's interested [16:02] jcastro: can't, jose's already a lead for community track [16:02] thief! [16:02] he was ours first! [16:05] mhall119: if it's possible I can help with both [16:06] jose: ok, you're on both now [16:06] mhall119: cool, thanks :) [16:06] no, thank you :) [16:07] :) === Ursinha is now known as Ursinha-afk [16:46] hello there.. [16:46] i'm just getting started with juju and have some questions [16:46] i have a MAAS server which has 30 nodes.. (Dell PowerEdge) [16:47] i installed juju on the MAAS controller [16:47] when I try juju status it, just hangs [16:48] here is the strace output [16:48] setsockopt(4, SOL_TCP, TCP_NODELAY, [1], 4) = 0 read(4, 0xc200407000, 4096) = -1 EAGAIN (Resource temporarily unavailable) write(4, "GET /MAAS/api/1.0/nodes/?agent_n"..., 494) = 494 epoll_wait(5, {}, 128, 0) = 0 futex(0x11a0d38, FUTEX_WAIT, 0, NULL) = 0 epoll_wait(5, {}, 128, 0) = 0 epoll_wait(5, [16:51] khuss: did juju return a routeable address for the bootstrap node? [16:53] LazyPower: that's the part I am confused with [16:54] there are 30 nodes but I want to install an app only on some nodes [16:54] when we do juju status, does it have to contact all nodes [16:55] here is the yaml file === vladk is now known as vladk|offline [16:55] environments: maas: type: maas maas-server: 'http://localhost:80/MAAS' maas-oauth: '' admin-secret: topsecret default-series: precise [16:59] here is the output from the deploy [16:59] juju deploy wordpress -v verbose is deprecated with the current meaning, use show-log 2014-05-27 16:59:04 INFO juju.state open.go:68 opening state; mongo addresses: ["node17.master:37017"]; entity "" [17:00] khuss: no, it should only contact teh bootstrap node when running status. [17:01] is the bootstrap node is different from the node where I installed juju [17:01] i'm installing juju on the same node where maas cluster and regional controllers are running [17:02] in other words, how does juju determine which node to use as a bootstrap node [17:07] khuss: When youd efined your MAAS provider, if ti has any units enlisted, it will spin one of those nodes up and return it as teh bootstrap node. [17:07] how do I know which node has been configured as the bootstrap node === isviridov is now known as isviridov|away [17:12] khuss: do you have more than one unit allocated to a user in your MAAS control panel? [17:13] khuss: in this instance, it would be difficult to discern the bootstrap node, and i'm assuming this is why you're asking - http://i.imgur.com/mWrBIbo.png [17:14] but if you look in your environment's .jenv file [17:14] in $HOME/.juju/environments/env-name.jenv [17:14] there is a line that states state-servers: [17:15] and it has an array of nodes defined as the state server. This is the unit that MAAS gave back to Juju as the bootstrap node during that provisioning request [17:15] yes.. there are many allocated to the user [17:15] http://paste.ubuntu.com/7530723/ <- it will look similar to that [17:15] it shoudl have a defined hostname, and the public-ip of the unit [17:16] or maybe i've got it backwords and the hostname is the public address, and the ip listed is private - i'm not positive on the order - i do know that it returns more than a single address though. [17:16] user: "" password: "" state-servers: [] ca-cert: "" [17:16] if neither of those addresses are routeable, your juju status call will fail. [17:16] in my case, state-servers is set to [] [17:16] Looks like it didn't finish provisioning the bootstrap node if there are no state servers defined. Was there any output from your bootstrap? [17:17] it just came out [17:17] if i run it now, it says the following: [17:17] juju bootstrap ERROR environment is already bootstrapped [17:17] i think i need to take a step back [17:17] I've close to 42 servers on this Dell Rack [17:18] I added them on MAAS [17:18] and close to 20 of them are allocated to the admin user [17:18] in fact, I didn't allocate them but I just powered the nodes up and they go allocated to the admin user [17:18] khuss: it may be prudent to add another user to the system so you can discern which nodes are assigned to a 'manual' provisioning system and which are under the control of juju. [17:18] the names given to these nodes are not resolvable [17:19] s/system/maas/ [17:19] you mean add a juju user in maas [17:19] correct [17:19] and then just allocate one node to that user? [17:19] and then do bootstrap again? [17:20] you shouldn't need to do that. the idea is the user's api credentials would handle the allocation, and become immediately identifiable in MAAS if juju is managing the machine. [17:20] how do I remove the current juju bootstrap === vladk|offline is now known as vladk [17:20] juju destroy-environment [17:20] ok.. [17:20] does the name given to node be resolvable for the bootstrap to work [17:21] if it gets fussy with you, add --force [17:21] in other words, shd I add them in /etc/hosts file [17:21] yes. Juju reaches out over ssh to install the state server components [17:21] you should be able to add your MAAS region controller as a dns provider to your /etc/resolv.conf and those nodes should become resolveable [17:21] thats a good tip.. [17:22] in my case, i added 10.0.10.2 as a nameserver, and set search maas, and everything maas produces is resolveable for me. [17:22] one more question though.. what does it mean when maas says a node is allocated to admin [17:22] it is not something that I did manually [17:22] it means that the admin user requested the units power to be on. [17:22] so therefore, nobody else can interact with that machine through maas, its occupied [17:23] got it.. may be the problem is with the DNS [17:23] if you'ev tried bootstrapping a few times [17:23] i will destroy the bootstrap [17:23] and none of them have succeeded, the unit is technically allocated in maas, and wont be dallocated - reason being - juju didnt' complete and it *should* have sent a destroy command to maas to return teh machine to the pool. [17:24] if thats not the behavior you're seeing, it may be time to file a bug once we've sussedo ut why you cant resolve your nodes. The networking portion of maas can be tricky at first, it took me a day to figure out my networking for the VMAAS setup i have here. [17:25] i will try a few things.. [17:25] first, I will fix the DNS [17:25] so that juju can resolve the names [17:26] juju is going to pick a node that is allocated to the user right? [17:26] may be there should be only one of such nodes.. [17:26] could you print your /etc/resolv.conf === vladk is now known as vladk|offline [17:32] actually no [17:33] khuss: juju will make the request to allocate a node when you issue the bootstrap command [17:34] ok. that means none of them need to be in the allocated state [17:34] currently, I've close to 10 in the allocated state [17:34] is there a way to return them to the pool [17:35] power them down from the maas admin interface [17:36] http://i.imgur.com/26doez3.png [17:37] ok got it [17:38] one more thing about the DNS server [17:38] currently my region/cluster/juju - all in one node [17:38] this node is not a DNS server [17:38] it has /etc/resolv.conf pointing to 8.8.8.8 [17:39] do I need to make this as a DNS server for juju to resolve nodes? [17:39] khuss: maas will setup a DNS server for you [17:40] marcoceppi: i'm not sure if it did [17:40] how do I check it [17:40] your nodes will need to point to it, it however, doesn't nessisarily need to point to it, though you may need to configure the DNS server to forward DNS lookups to another serer (like 8.8.8.8) [17:40] khuss: is this on 14.04 [17:40] 13.10 [17:41] khuss: hum, there's quite a big difference in the maas versions between 13.10 and 14.04 [17:41] khuss: Since you're just getting started it would make a good turning point to go ahead and bump that up to an LTS if you have the option. [17:41] i could probably do that [17:42] i can probably do an upgrade.. right [17:42] khuss: if you do ps -aef | grep bind you should see a running process [17:43] bind 1339 1 0 May21 ? 00:03:13 /usr/sbin/named -u bind [17:43] it is running [17:43] can i upgrade from 13.10 and 14.04 [17:43] without doing a reinstall [17:43] khuss: of course [17:44] just do the upgrade using apt-get right? [17:44] khuss: sudo do-release-upgrade is the best path forward [17:45] i also had some weird issues with not powering on the nodes.. hopefully the new version will help [17:45] once I do the upgrade, do I need to rebuild the nodes [17:46] or can I leave them or do I need to add them again [17:46] brb [17:47] khuss: they would probably still be in there [18:14] marcoceppi: i just updated to 14.04 === vladk|offline is now known as vladk === vladk is now known as vladk|offline [18:43] marcoceppi: hey! o/ [18:44] hey sebas538_ [18:44] khuss: cool, is maas still running? [18:44] marcoceppi: do you know if constraints are working in local env type? === sebas538_ is now known as sebas5384 [18:44] sebas538_: which constraints? [18:44] hardware [18:44] like cpu, mem, etc.. [18:44] Most probably won't work (like arch, mem, cpu, etc) since it's LXC [18:45] :9 [18:45] :( [18:46] sebas5384: since LXC uses shared resource, i dont think that would lend itself well to constraints. [18:47] but cgroups isn't for that === CyberJacob|Away is now known as CyberJacob [18:48] ah, good point. I dont know that we have support for them yet. [18:49] that may be worth asking in #juju-dev to see if that's on the roadmap, already there, et al. [18:49] http://www.mattfischer.com/blog/?p=399 [18:49] yeah! i will ask about that [18:49] :) [18:59] https://bugs.launchpad.net/juju-core/+bug/1323446 [18:59] <_mup_> Bug #1323446: constraints on local provider [19:20] marcoceppi: yes maas is still running. will try creating the juju bootstrap [19:33] anyone know of a good example of a python charm that uses charmhelpers but doesn't symlink hooks back to a single python source file? [19:36] anybody have experience on installing Maas on a Dell PowerEdge [19:37] I see a problem where the server is not getting powered on when I change the status to "commissioned" from "declared" [19:37] there is no error message in any of the log files [19:50] khuss: this is a juju channel... but okay... you have entered the ipmi credentials? [19:58] tvansteenburgh, not really [19:58] tvansteenburgh, there's a few but there not great examples [19:58] hazmat: thanks [20:00] sebas5384, so.. i have a jury rigged local provider you could do constraints on.. [20:00] sebas5384, its actually manual provider, where i create the containers [20:03] its not very user friendly.. but its what i use day to day.. https://github.com/kapilt/juju-lxc [20:10] hmmm nice hazmat [20:12] hey hazmat nice work man! [20:15] sebas5384, most of the tricks in there have been added to the local provider.. [20:15] yeah! nice the lxc-clone for example? [20:15] sebas5384, the only real feature delta there is its easy to mod the lxc creation with cgroup constraints.. i've got it modded for apparmor profile selection (nested containers) [20:15] sebas5384, yup [20:16] well, hazmat thanks :) [20:16] sebas5384, aufs is off by default due to compatiblity issues, but you can enable it via an environments.yaml flag.. btrfs is automatically used if found on /var/lib/lxc [20:16] hazmat++ [20:16] hehe [20:16] last line re local provider in core === alexisb is now known as alexisb_bbl [21:46] i'm having problems in doing juju bootstrap. Could anybody help [21:46] the bootstrap is failing with the following message [21:47] juju bootstrap Launching instance WARNING picked arbitrary tools &{"1.18.3-precise-amd64" "https://streams.canonical.com/juju/tools/releases/juju-1.18.3-precise-amd64.tgz" "c7dee5df130e242c436c43c21278a3f24997d23ca48ee02b93b8126d2f415cd7" %!q(int64=5359855)} - /MAAS/api/1.0/nodes/node-ce3ce5d8-e1ba-11e3-85bd-b8ca3a5bc3f8/ Waiting for address Attempting to connect to node12.master:22 Attempting to connect to 10.209.0.134:22 ERROR bootst === CyberJacob is now known as CyberJacob|Away [22:30] Hrm. I'm having trouble coming up with a good reason to ever do anything in the start hook in a charm. [22:31] Even if you don't have any dependencies on a relation, you're likely going to be re/starting the service in the config-changed hook, so why bother doing anything in start as well? === sebas538_ is now known as sebas5384 [22:42] cory_fu: I like to put all the start/restart logic in the start hook [22:43] cory_fu: then in all my other hooks just call "hooks/start" [22:43] Hrm. Fair enough [22:43] it's there to model the event, it may also be called when a unit "wakes up" (in the event ofa suspend) [22:44] Though, a well written charm should set up the services such that a suspend or restart of the instance should bring the service back up, no? [22:50] cory_fu: depends [22:50] On? === swebb is now known as zz_swebb === thumper is now known as thumper-otp