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

=== revagomes_ is now known as revagomes
=== thumper-otp is now known as thumper
=== zz_swebb is now known as swebb
=== rektide_ is now known as rektide
=== jono is now known as Guest50754
=== ted is now known as tedg
=== CyberJacob|Away is now known as CyberJacob
=== tedg is now known as ted
=== ted is now known as tedg
=== Ursinha-afk is now known as Ursinha
=== MmikeDOMA is now known as Mmike
=== vladk|offline is now known as vladk
=== CyberJacob is now known as CyberJacob|Away
=== isviridov|away is now known as isviridov
cjohnstonmornin... /1509:17
=== luca__ is now known as luca
AskUbuntuUnable to access MAAS nodes | http://askubuntu.com/q/47335009:44
=== vladk is now known as vladk|offline
ejatERROR bootstrap failed: cannot start bootstrap instance: could not create hosted service: POST request failed: BadRequest - The hosted service is not valid. (http code 400: Bad Request)10:35
ejatitry to bootstrap in azure10:35
ejatanyone can help me ?10:35
ejat$ juju status -e azure10:36
ejatERROR Unable to connect to environment "azure".10:36
ejatPlease check your credentials or use 'juju bootstrap' to create a new environment.10:36
ejatError details:10:36
ejatenvironment is not bootstrapped10:36
=== vladk|offline is now known as vladk
=== Ursinha is now known as Ursinha-afk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== Ursinha-afk is now known as Ursinha
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
jcastroanyone see this? http://manage.jujucharms.com/~fgimenez/precise/cakephp14:11
lazyPowerjcastro: i saw it in the rev queue yesterday. Looks interesting14:18
=== vladk|offline is now known as vladk
dvr077\quit14:21
=== alexisb_bbl is now known as alexisb
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
dpb1Hi -- how do get this into the charm store? bzr+ssh://bazaar.launchpad.net/~landscape-charmers/charms/trusty/landscape-client/trunk/14:43
dpb1I want to be able to do juju deploy cs:trusty/landscape-client and have it work14:44
khussmaas is failing to power on sever. I am using Dell PowerEdge. Any ideas on where to look for why this is happening14:44
dpb1Right now I get: $ juju deploy cs:trusty/landscape-client14:45
dpb1ERROR charm not found: cs:trusty/landscape-client14:45
dpb1khuss: look in the /var/log/maas/celery* logs14:47
dpb1khuss: iirc14:48
=== swebb is now known as zz_swebb
khussi don't see anything in the celery logs14:48
khussiirc?14:48
khussthe celery log shows power on request14:49
khussbut the server is not powering on14:49
dpb1iirc = if i remember correctly14:49
khussgot it14:49
dpb1khuss: good.  and what did you configure for power settings in the page for this server?14:50
khussIPMI214:50
khussthe power off is working14:50
khussbut not power on14:50
lazyPowerdpb1: you don't have a trusty branch promulgated. There's only a precise branch afaict14:50
dpb1lazyPower: how do I get that done?  I have to submit for review?14:51
lazyPowerdpb1: has anyone reviewed landscape against trusty? I know that when I looked at the precise charm, it was g2g after some minor tweaks. if you just pushed to the landscape-charmers branch of trusty, and it wasn't promulgated into teh store API - it wont show up in the store.14:51
lazyPowerdpb1: yep. A charmer will need to look at it and ack the branch then promulgate it.14:52
dpb1khuss: sec, let me check14:52
khussdbp1: ok14:52
dpb1khuss: my next step would be to try 'ipmipower' with the right options.  The script is just a shell script and it's in /etc/maas/templates/power/ipmi.template  You can see the commmands that it sends and try them by hand.14:54
dpb1lazyPower: ok, let me put that up then.  We know of no changes necessary for trusty and have been using it there for a while now14:55
khussdbp: sure let me check ipmipower14:56
dpb1lazyPower: ok, put up the bug: https://bugs.launchpad.net/charms/+bug/1324163  thanks!15:00
_mup_Bug #1324163: Please promulgate landscape-client to trusty <Juju Charms Collection:Fix Committed by davidpbritton> <https://launchpad.net/bugs/1324163>15:00
=== zz_swebb is now known as swebb
khussis it possible to have maas server and juju bootstrap server on the same machine15:47
khussi guess i don't understand why we need a separate juju instance for deploying services15:48
=== vladk is now known as vladk|offline
=== psivaa-sprint is now known as psivaa
lazyPowerkhuss: seperation of concerns. You can achieve what you're looking for if you do run a manual environment. but that quickly gets cumbersome if you're managing > 10 machines.15:54
dpb1khuss: no, you cannot.  but you can deploy a service "--to 0" which will put that service on the bootstrap node.15:54
khussdpb1: lets say we have 10 nodes in the MAAS. how to tell juju to use the first node as the bootstrap node15:59
dpb1khuss: look at 'juju help constraints'.  You can even do things like "tags=foo", which will allow fine-grained placement, if you need it.16:00
khusscan we tag a machine from MAAS and then ask juju to use that machine for bootstrapping16:01
dpb1yup16:01
dpb1works16:01
khussdpb1: i don't see an option to tag a node from MAAS GUI16:02
dpb1khuss: let me check where it's at16:02
dpb1khuss: my mistake.  tagging maas nodes is only available through the api (maas-cli package).   'maas <profile> tag -h' will give you more details.16:07
dpb1khuss: I personally like to use constraints like memory/cpu/etc if possible.16:07
khussdpb1: thats not very useful when you have homogenous nodes16:10
dpb1khuss: agreed16:10
dpb1khuss: I actually have a script that adds a tag of the machine name to each node, which allows you to select whatever you like.16:11
dpb1khuss: FYI: http://paste.ubuntu.com/7537513/  it's pretty simple16:12
khussdpb1: ok thanks16:12
khussdpb1: found the problem with the ipmi power on issues. The Dell iDRAC is not reachable from MAAS server. There is a networking problem. Thanks for the tip on using ipmipower command16:17
dpb1khuss: great.  hit that many times myself. :)16:20
=== Ursinha is now known as Ursinha-afk
hackedbelliniI'm writing a charm here that connects to a db relation and provides another one. In that other relation hook, I want to be able to do a 'relation-get' for the properties defined in the db relation. Is it possible? AFAIK, if I do a relation-get inside a xxx-relation-changed, it will get those values for the xxx relation, not the db.17:08
lazyPowerhackedbellini: you'll have to cache them somewhere on disk on the host, you cannot receive the values from another relation's context through relation-get.17:11
hackedbellinilazyPower: hrm, I see. It's exactly that workaround I was trying to avoid =P17:12
=== sebas538_ is now known as sebas5384
lazyPowerhackedbellini: yeah, i'm sorry I don't have better news for you. I think that's more of a scoping thing than anything else. It's reasonable to say that relationship contexts are isolated though17:14
hackedbellinilazyPower: np :)17:15
lazyPowerhackedbellini: however, if you're using charmhelpers, theres a really nice caching class that just got merged in last week.17:16
lazyPowerso it makes your cache lookups fairly inexpensive17:17
hackedbellinilazyPower: hrm, seems very nice! Where can I find it? I don't know exactly what is charmhelpers, although the name is familiar somehow17:21
lazyPowerhackedbellini: charmhelpers is a suite of python modules that aid charm creators. Its in the config class, it auto-caches to a dictionary on disk and willc heck there first before pulling data down otw17:23
lazyPowertvansteenburgh is the man to talk to about the feature. He proposed it lastweek17:24
hackedbellinilazyPower: very nice! I'll take a look at it, lets see if it solves my problems :)17:25
tvansteenburghhackedbellini: this is a good intro to charmhelpers: http://www.youtube.com/watch?v=6kWfLujVwNI17:30
tvansteenburghhackedbellini: and here's the Config lazyPower mentioned, with some sample usage: http://bazaar.launchpad.net/~charm-helpers/charm-helpers/devel/view/head:/charmhelpers/core/hookenv.py#L15817:32
hackedbellinitvansteenburgh: ahhh cool! I'll take a look at the video. And the example seems very simple! So, I can import charmhelpers directly inside the hook, if I understood correctly? No need to change PYTHONPATH or include anything?17:33
tvansteenburghhackedbellini: yes, you'll need to get it on your path. the video covers a way to do that from within your hooks module17:34
hackedbellinitvansteenburgh: nice! Thank you for the links :)17:34
tvansteenburghhackedbellini: you're welcome!17:35
=== vladk|offline is now known as vladk
mhall119jcastro: where can I get the latest vagrant packages from?18:35
mhall119you mentioned the one in the archives is a bit out of date18:35
jcastrohttp://www.vagrantup.com/downloads.html18:36
mhall119no PPA?18:37
jcastroI don't think so18:37
mhall119ok18:37
jcastroyou only need it until the next ubuntu release, heh18:37
mhall119that's what they always say :)18:39
lazyPowermhall119: if you're on precise, you'll want to get it from upstream18:42
lazyPowerotherwise, teh trusty package is only .1 release behind last i checked.18:42
marcoceppimhall119: I tried backporting the trusty vagrant to precise in a ppa, it ended up being a mess18:48
lazyPowerThere's a nice ruby dependency chain there that needs some love18:50
mhall119lazyPower: I'm on trusty, but already installed from upstream18:57
lazyPowerits not a bad idea to use the latest and the greatest. hashicorp is known for making decent products. Their newer stuff with integrated proxy'ing is really nice.18:59
lazyPowerjcastro discovered it shortly after our last charm school and was demo'ing it to the team. Deploy juju-gui, let other people deploy to your VM environment.18:59
khussi've only one environment setup in juju but the juju status gives the following message20:09
khussERROR Unable to connect to environment "". Please check your credentials or use 'juju bootstrap' to create a new environment.  Error details: environment is not bootstrapped20:09
khussit doesn't show the environment name20:09
marcoceppikhuss: what does juju switch say?20:11
khussmarcoceppi: juju switch says "maas"20:12
khussmarcoceppi: which is the enviornment name20:12
khussmarcoceppi: i did juju bootstrap -e maas20:12
khussmarcoceppi: it is doing the power cycle of the blade and going thru the install20:13
marcoceppikhuss: is the node on right now?20:13
marcoceppiit might still be bootstrapping20:13
marcoceppihow long ago did you run the bootstrap20:13
marcoceppican you ssh in to the machien?20:13
khussmarcoceppi:  it failed the first time and I just started it again20:14
khussmarcoceppi: this is what I got at the first time - curl: (7) couldn't connect to host tools from http://localhost:80/MAAS/api/1.0/files/?key=aedd9246-e6a1-11e3-af69-b8ca3a5bc3f8&op=get_by_key downloaded: HTTP 000; time 0.000s; size 0 bytes; speed 0.000 bytes/s ERROR bootstrap failed: rc: 1 Stopping instance... Bootstrap failed, destroying environment20:14
khussmarcoceppi: i did resync-tools and then just tried the bootstrap20:15
marcoceppikhuss: your mass might not be configured properly. it shouldn't say localhost for URLs20:15
khussmarcoceppi: i did that configuration because the cluster controller is on the same machine.. shd I give the IP address instead20:15
marcoceppikhuss: definitely, you can run sudo dpkg-reconfigure maas-region-controller to set the IP address again20:16
khussmarcoceppi: do I need to reconfigure the region-controller? it is just on the juju environment file right? What if i change from localhost to the ip of the machine20:17
marcoceppikhuss: OH, this is in your environments.yaml20:17
khussmarcoceppi: yes20:18
marcoceppithat should be fine20:18
marcoceppimisunderstood20:18
khussmarcoceppi: let me see how the bootstrap goes this time..  i tried curl on that link (in the error message above) and it didn't work20:18
marcoceppikhuss: well it'll probably give you a new bucket id20:19
khussmarcoceppi: failed again. 2014-05-28 20:20:03 INFO juju.cmd supercommand.go:302 running juju-1.18.3-precise-amd64 [gc] 2014-05-28 20:20:03 DEBUG juju.agent agent.go:384 read agent config, format "1.18" 2014-05-28 20:20:03 DEBUG juju.provider.maas environprovider.go:30 opening environment "maas". 2014-05-28 20:20:03 ERROR juju.cmd supercommand.go:305 Get http://localhost:80/MAAS/api/1.0/nodes/?agent_name=b4a4c73b-29e3-4333-8e0b-8f8207489620:20
marcoceppikhuss: set that to the IP address that both you and the machines can get to20:21
marcoceppikhuss: once you do that, run `rm ~/.juju/environments/maas.jenv`20:21
marcoceppithen sync-tools20:22
marcoceppithen do a bootstrap20:22
khussmarcoceppi: ok20:22
khussmarcoceppi: docs http://maas.ubuntu.com/docs/juju-quick-start.html seems to be wrong.. juju ---sync-tools doesnt work.. "juju sync-tools" does20:23
marcoceppikhuss: thanks for the heads up! I'll file a bug20:24
khussmarcoceppi: np20:26
khussmarcoceppi: bootstrap completed without error. however, juju status gives this error - ERROR state/api: websocket.Dial wss://1-10-2.master:17070/: dial tcp: lookup 1-10-2.master: no such host20:38
khussmarcoceppi: may be a DNS problem?20:38
khussmarcoceppi:  juju status still doesn't work20:48
khussmarcoceppi: actually it worked after adding the host to /etc/hosts.. may be there is a better way to use the local DNS server20:51
lazyPowerkhuss: have you added the maas master node to your /etc/resolv.conf along with a search declaration for the local domain? in this case it appears to be search 'master'20:54
lazyPowerwithout quotes20:54
khusslazyPower: no i've not .. let me try that20:54
=== Ursinha-afk is now known as Ursinha
khusslazyPower: i added it on the /etc/resolv.conf.. looks like i need to edit some other files in Ubuntu21:09
=== Ursinha is now known as Ursinha-afk
lazyPowerkhuss: it wont persist past a reboot21:42
lazyPowerif it works, then add it to /etc/resolve.conf.d/head (i think) and it should fix you up and persist after a reboot.21:43
khusslazyPower: ok. thanks21:54
=== CyberJacob|Away is now known as CyberJacob
=== vladk is now known as vladk|offline
=== CyberJacob is now known as CyberJacob|Away
=== swebb is now known as zz_swebb
=== zz_swebb is now known as swebb

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