/srv/irclogs.ubuntu.com/2014/05/27/#juju.txt

hazmathmm bellini is gone00:35
hazmatbummer.. okay working on a workaround00:36
hazmatfwiw.. workaround added as comment to relevant bugs.. https://gist.github.com/kapilt/a61efcb4eaef9e68539700:54
=== 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
sebas5384ERROR cannot assign unit "nova-compute/0" to machine 0: machine "0" cannot host units06:49
sebas5384bye bye06:49
sebas5384:(06:49
=== ted is now known as tedg
=== CyberJacob is now known as CyberJacob|Away
AskUbuntuWhat types are allows in config.yaml in juju charms? | http://askubuntu.com/q/47280208:22
nottrobin^ what AskUbuntu said - does anyone know what config types are allowed? Is there a "dictionary" type?08:59
marcoceppinottrobin: click on the link, the question has been answered. The short answer is no dict type, int, float, string, boolean only at the moment10:01
sarnoldlol10:01
sarnoldmarcoceppi: nottrobin is the questioner and answerer :)10:02
* marcoceppi saunters away10:02
nottrobinmarcoceppi: thanks =D10:02
nottrobinmarcoceppi: I went and found the answer myself10:03
marcoceppicool10:03
cariboumarcoceppi: is it possible to have timing issue (i.e. race condition) with the definition of relations when a 'relation-change' hooks kicks in ?10:08
caribouI'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 present10:09
marcoceppicaribou: there's a chance the relation data won't be available at the time of the hooks execution10:10
caribouif I don't print it (for debugging purpose), then it fails because the value is not defined10:10
marcoceppicaribou: 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 continuing10:10
caribouhmm, how do I work around this  ? wait for it to appear ?10:11
caribousince the hook will not get re-fired once it becomes available10:11
marcoceppicaribou: most charms do an idempotency guard and just exit 0 until it's available10:11
marcoceppicaribou: yes it will10:12
marcoceppirelation-changed will always fire at least once during a relation creation event, then will execute each time data on the wire changes10:12
cariboumarcoceppi: ah, ok. I was tempted to add such a guard but didn't know if it would get refired10:12
cariboumarcoceppi: thanks I'll do that10:12
marcoceppimost 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 run10:13
marcoceppicaribou: cheers10:13
cariboumarcoceppi: this explains why I got the data when running within debug-hooks and not when running live10:13
marcoceppicaribou: right, there's enough latency that you don't need the second -changed event10:13
cariboumarcoceppi: understood !10:14
=== vladk|offline is now known as vladk
AskUbuntuDestroy a juju service and also its associated machine | http://askubuntu.com/q/47284910:24
=== 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
ghartmannanyone else is having issues with juju local provider ?11:39
ghartmannI was very happy with juju but it became unusable just about two months ago11:40
stubghartmann: Working for me11:41
ghartmannI can't get juju local to work anywhere, even with virtual machines. devel / stable11:41
stubI can't seem to send syslog messages to a related rsyslog service. Anyone got it working in their charm?11:42
=== 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
hazmatghartmann, what symptons?12:36
ghartmannmachine goes pending and it's not delivered12:36
ghartmannit seems to be related with the developer tools for saucy12:36
=== vladk is now known as vladk|offline
cjohnstonDoes charmhelpers CLOUD_ARCHIVE_POCKETS need to be updated for trusty?13:48
niedbalski__hey lazyPower , what does 'store error on...' means on the review queue? (http://manage.jujucharms.com/tools/review-queue)14:01
lazyPowerThats a great question niedbalski__. marcoceppi can you shed some insight into that one?14:01
marcoceppiniedbalski__ lazyPower it means that "charm proof" fails for that charm14:02
marcoceppierr, the store error is something else14:02
marcoceppiit means that the charm exists in a promulgated branch but isn't actually in the charm store14:03
niedbalski__marcoceppi, there is a manual process for doing that ?14:06
lazyPowermarcoceppi: is that basically the branch was pushed but charm promulgate was not run against the charm?14:06
jcastrohttp://askubuntu.com/questions/tagged/juju?sort=newest&pageSize=1514:13
jcastrosome new incoming questions!14:13
jcastroyo lazyPower14:16
lazyPowersup jcastro14:16
jcastroyou're doing the review on elasticsearch?14:16
jcastroI don't remember if that was you or just in "the pile"14:16
lazyPowerits in the pile atm.14:16
lazyPoweri've touched it, so has mbruzek14:16
=== Topic unset by jcastro on #juju
* mbruzek waves14:17
jcastrosigh, whoops14:17
=== 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
whitlazyPower, is the outstanding issue with ES the peer relation thing?14:22
lazyPowerwhit: That was the last known issue. hazmat has some activity against the charm stating its good in his use cases.14:23
lazyPowerthat and there's some missing offline environment installation logic for feature parity with the existing charm14:23
lazyPowerotherwise i think its all thumbs up from here14:24
hazmatwhit, which peer relation issue?14:24
hazmatwhit, it doesn't have any that i'm aware of14:24
whithazmat, we are talking about the ansible branch?14:25
hazmatwhit, yeah.. simple offline and website relation needs port set were the items of note i had.14:25
hazmatwhit, yes14:25
hazmatwhit, also some philosophical discussion about removing either cluster or rest named relation14:25
hazmatbut that's legacy from the charms impl14:25
hazmatfrom the old impl14:26
whithazmat, yeah, bw14:26
hazmatbut its needless confusion imo14:26
whityeah14:26
lazyPowerhazmat: so the charm embedded relationship exchange works? We don't need to worry about the multicast workaround thats going on there?14:27
hazmatlazyPower, that stuff was garbage14:28
hazmatneeded ec2 credentials or multi-cast support.. its stuff that never should have been in the charm14:28
hazmatlazyPower, 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:29
lazyPowerwelp 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
lazyPowerergo: what if someone is in an offline environment and has this deployed? we just broke it for them.14:30
hazmatalso note its currently breaking the interface on 'http' for the website rel14:30
hazmatit needs to pass the port14:30
hazmatone liner14:30
lazyPowerah right, and that.14:32
* lazyPower glosses over the obvious14:32
=== tedg is now known as ted
=== swebb is now known as zz_swebb
=== vladk|offline is now known as vladk
mhall119marcoceppi: ping14:57
marcoceppimhall119: pong14:57
mhall119marcoceppi: hey, we have a cloud devops track for UDS/UOS June 10-12, can you be a track lead for it? jcastro is already one14:57
marcoceppimhall119: uh, sure14:57
mhall119marcoceppi: jcastro: I'd also like a track lead from the community, any recommendations?14:58
james_w`is there a spec for the actions work?14:58
=== zz_swebb is now known as swebb
cjohnstonis it possible in one juju deployer file to be using precise and trusty for different charms?15:32
marcoceppicjohnston: yes15:33
marcoceppicjohnston: remove the series: key, then put the series in all the charm: lines15:34
cjohnstonack15:34
cjohnstonta15:34
marcoceppiie, charm: cs:trusty/mysql15:34
hazmater.. charm_url: cs:trusty/mysql15:34
hazmatyou can keep the series at the top level, and just override on the ones you need it as well15:34
cjohnstonwhat if I'm not using cs charms? charm: graphite for example15:35
hazmatcjohnston, series: trusty15:36
cjohnstonack.. sweet15:36
hazmatcjohnston, or charm_url: local:trusty/mysql ..15:36
hazmatcjohnston, this might be post trusty version btw. (0.3.6) .. latest is 0.3.8 on pypi15:36
cjohnstonok15:37
=== 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
mhall119marcoceppi: 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:54
jcastrosomeone from gaughen's team15:55
nottrobinhow do I give a juju charm instance a specific public address? - rather than just an IP address?15:55
nottrobinalso 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:55
jcastrojuju-deployer -c bundle.yaml will do the bundle without the gui15:56
=== vladk|offline is now known as vladk
mhall119gaughen: ping15:58
mhall119jcastro: anybody from the community side?15:58
gaughenmhall119, pong15:58
gaughenlet me read a bit of the history here15:58
mhall119gaughen: I'm looking for a 3rd track lead for Cloud DevOps in the upcoming UDS/UOS15:58
gaughenmhall119, I can do that15:58
gaughencount me in15:58
mhall119awesome, thanks, will send out an email with instructions15:59
nottrobinjcastro: thanks, that looks perfect16:01
jcastromhall119, jose'16:01
jcastros been doing a bunch of work lately if he's interested16:01
mhall119jcastro: can't, jose's already a lead for community track16:02
jcastrothief!16:02
mhall119he was ours first!16:02
josemhall119: if it's possible I can help with both16:05
mhall119jose: ok, you're on both now16:06
josemhall119: cool, thanks :)16:06
mhall119no, thank you :)16:06
jose:)16:07
=== Ursinha is now known as Ursinha-afk
khusshello there..16:46
khussi'm just getting started with juju and have some questions16:46
khussi have a MAAS server which has 30 nodes.. (Dell PowerEdge)16:46
khussi installed juju on the MAAS controller16:47
khusswhen I try juju status it, just hangs16:47
khusshere is the strace output16:48
khusssetsockopt(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:48
lazyPowerkhuss: did juju return a routeable address for the bootstrap node?16:51
khussLazyPower: that's the part I am confused with16:53
khussthere are 30 nodes but I want to install an app only on some nodes16:54
khusswhen we do juju status, does it have to contact all nodes16:54
khusshere is the yaml file16:55
=== vladk is now known as vladk|offline
khussenvironments:   maas:     type: maas     maas-server: 'http://localhost:80/MAAS'     maas-oauth: ''     admin-secret: topsecret     default-series: precise16:55
khusshere is the output from the deploy16:59
khuss 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 ""16:59
lazyPowerkhuss: no, it should only contact teh bootstrap node when running status.17:00
khussis the bootstrap node is different from the node where I installed juju17:01
khussi'm installing juju on the same node where maas cluster and regional controllers are running17:01
khussin other words, how does juju determine which node to use as a bootstrap node17:02
lazyPowerkhuss: 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
khusshow do I know which node has been configured as the bootstrap node17:07
=== isviridov is now known as isviridov|away
lazyPowerkhuss: do you have more than one unit allocated to a user in your MAAS control panel?17:12
lazyPowerkhuss: 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.png17:13
lazyPowerbut if you look in your environment's .jenv file17:14
lazyPowerin $HOME/.juju/environments/env-name.jenv17:14
lazyPowerthere is a line that states state-servers:17:14
lazyPowerand 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 request17:15
khussyes.. there are many allocated to the user17:15
lazyPowerhttp://paste.ubuntu.com/7530723/ <- it will look similar to that17:15
lazyPowerit shoudl have a defined hostname, and the public-ip of the unit17:15
lazyPoweror 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
khussuser: "" password: "" state-servers: [] ca-cert: ""17:16
lazyPowerif neither of those addresses are routeable, your juju status call will fail.17:16
khussin my case, state-servers is set to []17:16
lazyPowerLooks like it didn't finish provisioning the bootstrap node if there are no state servers defined. Was there any output from your bootstrap?17:16
khussit just came out17:17
khussif i run it now, it says the following:17:17
khuss juju bootstrap ERROR environment is already bootstrapped17:17
khussi think i need to take a step back17:17
khussI've close to 42 servers on this Dell Rack17:17
khussI added them on MAAS17:18
khussand close to 20 of them are allocated to the admin user17:18
khussin fact, I didn't allocate them but I just powered the nodes up and they go allocated to the admin user17:18
lazyPowerkhuss: 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
khussthe names given to these nodes are not resolvable17:18
lazyPowers/system/maas/17:19
khussyou mean add a juju user in maas17:19
lazyPowercorrect17:19
khussand then just allocate one node to that user?17:19
khussand then do bootstrap again?17:19
lazyPoweryou 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
khusshow do I remove the current juju bootstrap17:20
=== vladk|offline is now known as vladk
lazyPowerjuju destroy-environment <env>17:20
khussok..17:20
khussdoes the name given to node be resolvable for the bootstrap to work17:20
lazyPowerif it gets fussy with you, add --force17:21
khussin other words, shd I add them in /etc/hosts file17:21
lazyPoweryes. Juju reaches out over ssh to install the state server components17:21
lazyPoweryou should be able to add your MAAS region controller as a dns provider to your /etc/resolv.conf and those nodes should become resolveable17:21
khussthats a good tip..17:21
lazyPowerin 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
khussone more question though.. what does it mean when maas says a node is allocated to admin17:22
khussit is not something that I did manually17:22
lazyPowerit means that the admin user requested the units power to be on.17:22
lazyPowerso therefore, nobody else can interact with that machine through maas, its occupied17:22
khussgot it.. may be the problem is with the DNS17:23
lazyPowerif you'ev tried bootstrapping a few times17:23
khussi will destroy the bootstrap17:23
lazyPowerand 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:23
lazyPowerif 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:24
khussi will try a few things..17:25
khussfirst, I will fix the DNS17:25
khussso that juju can resolve the names17:25
khussjuju is going to pick a node that is allocated to the user right?17:26
khussmay be there should be only one of such nodes..17:26
khusscould you print your /etc/resolv.conf17:26
=== vladk is now known as vladk|offline
lazyPoweractually no17:32
lazyPowerkhuss: juju will make the request to allocate a node when you issue the bootstrap command17:33
khussok. that means none of them need to be in the allocated state17:34
khusscurrently, I've close to 10 in the allocated state17:34
khussis there a way to return them to the pool17:34
lazyPowerpower them down from the maas admin interface17:35
lazyPowerhttp://i.imgur.com/26doez3.png17:36
khussok got it17:37
khussone more thing about the DNS server17:38
khusscurrently my region/cluster/juju - all in one node17:38
khussthis node is not a DNS server17:38
khussit has /etc/resolv.conf pointing to 8.8.8.817:38
khussdo I need to make this as a DNS server for juju to resolve nodes?17:39
marcoceppikhuss: maas will setup a DNS server for you17:39
khussmarcoceppi: i'm not sure if it did17:40
khusshow do I check it17:40
marcoceppiyour 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
marcoceppikhuss: is this on 14.0417:40
khuss13.1017:40
marcoceppikhuss: hum, there's quite a big difference in the maas versions between 13.10 and 14.0417:41
lazyPowerkhuss: 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
khussi could probably do that17:41
khussi can probably do an upgrade.. right17:42
marcoceppikhuss: if you do ps -aef | grep bind you should see a running process17:42
khussbind      1339     1  0 May21 ?        00:03:13 /usr/sbin/named -u bind17:43
khussit is running17:43
khusscan i upgrade from 13.10 and 14.0417:43
khusswithout doing a reinstall17:43
marcoceppikhuss: of course17:43
khussjust do the upgrade using apt-get right?17:44
marcoceppikhuss: sudo do-release-upgrade is the best path forward17:44
khussi also had some weird issues with not powering on the nodes.. hopefully the new version will help17:45
khussonce I do the upgrade, do I need to rebuild the nodes17:45
khussor can I leave them or do I need to add them again17:46
khussbrb17:46
marcoceppikhuss: they would probably still be in there17:47
khussmarcoceppi: i just updated to 14.0418:14
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
sebas538_marcoceppi: hey! o/18:43
marcoceppihey sebas538_18:44
marcoceppikhuss: cool, is maas still running?18:44
sebas538_marcoceppi: do you know if constraints are working in local env type?18:44
=== sebas538_ is now known as sebas5384
marcoceppisebas538_: which constraints?18:44
sebas5384hardware18:44
sebas5384like cpu, mem, etc..18:44
marcoceppiMost probably won't work (like arch, mem, cpu, etc) since it's LXC18:44
sebas5384:918:45
sebas5384:(18:45
lazyPowersebas5384: since LXC uses shared resource, i dont think that would lend itself well to constraints.18:46
sebas5384but cgroups isn't for that18:47
=== CyberJacob|Away is now known as CyberJacob
lazyPowerah, good point. I dont know that we have support for them yet.18:48
lazyPowerthat may be worth asking in #juju-dev to see if that's on the roadmap, already there, et al.18:49
sebas5384http://www.mattfischer.com/blog/?p=39918:49
sebas5384yeah! i will ask about that18:49
sebas5384:)18:49
sebas5384https://bugs.launchpad.net/juju-core/+bug/132344618:59
_mup_Bug #1323446: constraints on local provider <constraints> <local-provider> <lxc> <juju-core:Triaged> <https://launchpad.net/bugs/1323446>18:59
khussmarcoceppi: yes maas is still running. will try creating the juju bootstrap19:20
tvansteenburghanyone 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:33
khussanybody have experience on installing Maas on a Dell PowerEdge19:36
khussI see a problem where the server is not getting powered on when I change the status to "commissioned" from "declared"19:37
khussthere is no error message in any of the log files19:37
Mosibikhuss: this is a juju channel... but okay... you have entered the ipmi credentials?19:50
hazmattvansteenburgh, not really19:58
hazmattvansteenburgh, there's a few but there not great examples19:58
tvansteenburghhazmat: thanks19:58
hazmatsebas5384, so.. i have a jury rigged local provider you could do constraints on..20:00
hazmatsebas5384, its actually manual provider, where i create the containers20:00
hazmatits not very user friendly.. but its what i use day to day.. https://github.com/kapilt/juju-lxc20:03
sebas5384hmmm nice hazmat20:10
sebas5384hey hazmat nice work man!20:12
hazmatsebas5384, most of the tricks in there have been added to the local provider..20:15
sebas5384yeah! nice the lxc-clone for example?20:15
hazmatsebas5384, 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
hazmatsebas5384, yup20:15
sebas5384well, hazmat thanks :)20:16
hazmatsebas5384, 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/lxc20:16
sebas5384hazmat++20:16
sebas5384hehe20:16
hazmatlast line re local provider in core20:16
=== alexisb is now known as alexisb_bbl
khussi'm having problems in doing juju bootstrap. Could anybody help21:46
khussthe bootstrap is failing with the following message21:46
khuss 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 bootst21:47
=== CyberJacob is now known as CyberJacob|Away
cory_fuHrm.  I'm having trouble coming up with a good reason to ever do anything in the start hook in a charm.22:30
cory_fuEven 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?22:31
=== sebas538_ is now known as sebas5384
marcoceppicory_fu: I like to put all the start/restart logic in the start hook22:42
marcoceppicory_fu: then in all my other hooks just call "hooks/start"22:43
cory_fuHrm.  Fair enough22:43
marcoceppiit's there to model the event, it may also be called when a unit "wakes up" (in the event ofa suspend)22:43
cory_fuThough, 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:44
marcoceppicory_fu: depends22:50
cory_fuOn?22:50
=== swebb is now known as zz_swebb
=== thumper is now known as thumper-otp

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