/srv/irclogs.ubuntu.com/2014/03/26/#juju.txt

=== jono is now known as Guest43238
lemaoI am looking for pointers on how to use juju OSX client with a local VagrantBox00:25
lemaoI see that I have to juju switch manual (the ~/.juju/environment.yml contains a "null"  instead of "manual", though(00:26
sarnoldlemao: I think the 'null' provider is renamed 'manual' in a development branch. probably 'null' still works for whatever you've got installed..00:27
lemaosarnold: ok. It seems that my initial problem is that vagrant boxes use port 2222 instead of port 22 for ssh. How can I change the default ssh port in the environment?00:28
sarnoldlemao: hrm, I don't know for certain, but probably ~/.ssh/config could be omdified to use the port 222200:28
lemaosarnold: true. Forgot about that. It would be nice though to have a self-contained configuration for juju ... Let me try that for now00:29
arosaleslemao: there is also this workflow https://juju.ubuntu.com/docs/howto-vagrant-workflow.html00:42
sarnoldlemao: yeah, I know what you mean...00:42
sarnoldlemao: did you get it sorted out?00:43
arosalesand the folks at altoros whipped up https://github.com/Altoros/juju-dev-box00:43
arosalesthough sarnold may have gotten you what you need too :-)00:43
sarnoldheh, the Altoros thig looks pretty cool00:44
lemaosarnold: sorry, stepped out for dinner. Let me take take a look at the urls02:28
lemaosarnold, arosales: I was trying something slightly different: using juju OSX to interface with a Vagrant JujuBox, but just vagrant ssh may be the simplest route.02:39
lemaosarnold, arosales: but the link is superb since it covers the next question: how to create charms in this env02:39
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== CyberJacob|Away is now known as CyberJacob
=== zchander_work is now known as zchander
josehey guys, does `unit-get public-address` give the public address? or that command doesn't exist?08:17
=== CyberJacob is now known as CyberJacob|Away
yolandajamespage, what should i do about keystone and postgresql? what branch should i use as base?09:18
=== vladk|offline is now known as vladk
jamespageyolanda, hmm10:06
jamespageone second - just reviewing branches atm10:06
jamespagemarcoceppi, if you have time - https://code.launchpad.net/~openstack-charmers/charm-helpers/ssl-everywhere/+merge/20930110:31
jamespageI think that is the last big branch for this cycle; once we have that landed I can start landing ssl-everywhere and icehouse branches for the charms10:31
=== Overmind is now known as overm1nd
marcoceppijamespage: ack, will review in 3011:14
zchanderWhat would be the best way to test for an existing relation (e.g. a relation to a MySQL charm is required), so I can keep the charm stopped until the relation established?11:14
jamespagemarcoceppi, thanks11:17
jamespagezchander, you can query relations from any relation context - so you could write a check to see if a) mysql relation is present and b) mysql has provided credentials11:17
jamespagewhich would indicate its all good to work11:17
zchanderjamespage: Thanks. Going to search for that… (maybe I am going to ask a über-noob question, but where can I find documentation about all available relation/etc context keys I can query from my shell scripts?)11:19
jamespagezchander, juju docs (http://juju.ubuntu.com/docs)11:20
jamespagethe commands you need are11:20
jamespagerelation-ids <relation-name>11:20
jamespagerelation-list -r <relation_id>11:20
jamespageand relation-get -r <realtion_id> attribute <unit>11:20
jamespagerelation-list gives you a list of related service units.11:21
jamespagezchander, this is written in python but it give you and idea - http://bazaar.launchpad.net/~charm-helpers/charm-helpers/devel/view/head:/charmhelpers/core/hookenv.py#L29511:22
tvansteenburghso i'm working on a Meteor charm. Meteor is basically a node app that requires mongodb (won't run without it, as far as i know). my thought is to make the "start" hook a no-op until/unless the mongodb relation is joined. is there a better way?13:05
marcoceppitvansteenburgh: you could create a dot file, like .db-added, which the start hook checks, if it exists, start the service, if it doesn't exit 013:07
marcoceppitvansteenburgh: so every hook could call hooks/start which wouldn't actually happen until it was ready13:07
marcoceppiatlernatively, just having the service start in the db-hooks is fine too13:07
tvansteenburghok cool, thanks13:08
tvansteenburghand all the hooks run as root right?13:10
marcoceppiyup13:12
tvansteenburghis there a preferred place for installing stuff (stuff that doesn't come from apt)13:12
tvansteenburghlike /opt or other?13:12
tvansteenburghor no one cares? :)13:12
=== roadmr_afk is now known as roadmr
marcoceppitvansteenburgh: well, IS says /srv/<service>13:23
marcoceppitvansteenburgh: but anywhere outside of $CHARM_DIR is good, follow whatever the community expects13:23
marcoceppithe community of the service you're setting up*13:24
tvansteenburghok13:24
rbasakfrankban: around? Thanks for the reply. Can we keep this conversation in the bug, please?14:04
rbasakfrankban: specifically then, I think think mterry's question is that for juju-quickstart installed on Ubuntu from the official archive, why is its behaviour not to install juju also from the same archive?14:04
arosalesmarcoceppi: any chance meteor would run in node app14:05
marcoceppiarosales: maybe, haven't tried14:05
arosalestvansteenburgh: ^14:05
arosalestvansteenburgh: we do have a node.js framework charm, "node-app"  that can wrap node apps . .  .14:06
rbasakfrankban: and if we could do that for the on Ubuntu from archive special case, then it could be done via dependencies in packaging, and so eliminate a need for a sudo call for that.14:06
rbasakrick_h_: ^^14:07
tvansteenburgharosales: meteor uses node to run the app, but you still need the meteor framework14:07
rick_h_rbasak: otp the moment but will catch up14:07
arosalestvansteenburgh: ah ok so mabye not a good fit for the node-app charm, but thought I would check14:08
tvansteenburgharosales: if the app was already bundled i guess you could run it on node/mongodb14:08
zchanderJust a ‘quick’ non-juju question (not directly)………. I am strugling to replace a line in a php file (config) file using sed (in bash).14:11
rick_h_rbasak: have time to chat real quick? I'm not 100% following the question there14:19
frankbanrbasak, rick_h_ : I'll copy observations on the bug. I think the point is that quickstart wants to set up a working juju installation independently from how you obtained the application. E.g. in saucy the PPA is required because the juju version we support (and other dependencies) is not in the official archives. In general, the idea is that we set up the code sources we require, and put there the things we want to ins14:19
frankbantall. In trusty, quickstart currently installs the juju-core located in universe (since it is the most recent version), and that's fine, but we'd like to have the ability to keep that under control, so that we can guarantee the same user experience on different times and series.14:19
rick_h_rbasak: I think we're walking a line of company wishes vs packaging rules/standards and might need to get a better idea on those rules14:20
rbasakrick_h_, frankban: sure. Hangout?14:22
rick_h_rbasak: sure thing, sec I'll get a url14:22
rbasakrick_h_: I need to reboot. Five minutes. Please can you see if you can find me and send me an invite from within the app? I can't c&p the URL to my hangout machine :(14:23
rick_h_rbasak: https://plus.google.com/hangouts/_/7acpidcv17rkrcgi24kle76rpk?authuser=1&hl=en14:23
rick_h_rbasak: will do14:23
rick_h_frankban: will redo in 5min14:24
rick_h_sorry about the confusion there14:25
frankbannp14:25
rick_h_frankban: https://plus.google.com/hangouts/_/7ecpjtb43orhuo5sivafe2e6m814:28
=== hatch__ is now known as hatch
=== vladk is now known as vladk|offline
=== Darkwing_ is now known as Darkwing
joselazyPower: hey, mind if I ask a little question?15:21
lazyPowersure, whats up jose?15:21
joseerm, give me a couple mins so I can try this again and make sure it *is* failing15:22
lazyPowerjose: ack. Ping when ready15:28
joselazyPower: disregard, looks like yesterday tiredness was playing a trick on me :)15:34
lazyPowerjose: fatigue is a developers 'best friend' </sarcasm>15:34
jose:P15:34
joselazyPower: now an actual question: what should be done in case a charm has no copyright file? just file a bug and assign the maintainer?15:39
marcoceppijose which charm doesn't have a copyright?15:42
marcoceppiit must be an old one15:42
josemarcoceppi: correct, 2011, cf-mongodb, cf-mysql and cf-redis afaict15:42
josehaven't looked further15:43
josethey don't have a README nor an icon or categories, but those I can fix15:43
marcoceppijose those are negronjl charms I think15:43
joseyep15:43
marcoceppiyou can ping him and have him update with copyright files15:44
marcoceppithere shouldn't be many others floating around15:44
joseok, I found another 2 charms15:44
joseI'll send him an email in a while, then :)15:44
marcoceppijose any other you find just ping me with the names15:45
josecool15:45
josethanks15:45
josejcastro: hey, don't forget to push your own fix to the postfix charm (Markdown), I have no permissions16:00
wesleymasonlazyPower: btw - haven't forgotten about giving you feedback on relations / docs, just ended up being massively busy last night, feel free to give me a poke if I don't get round to it ;)16:06
=== vladk|offline is now known as vladk
josemarcoceppi: to push a fix for the juju gui I need to have signed Canonical's Contributor Level Agreement, right?16:23
lazyPowerwesleymason: perfect, no rush :)16:24
=== roadmr is now known as roadmr_afk
_sEBAs_hi!17:25
_sEBAs_im trying to connect juju with our openstack using lxc as a hypervisor17:26
_sEBAs_but im getting an error at the time to get the container at the bootstrap17:27
_sEBAs_open.go:278 failed to write bootstrap-verify file: cannot make Swift control container: failed to create container: juju-cece0b9817a68cba4780784bf0663e4517:27
_sEBAs_Im stuck in this like a day now17:27
_sEBAs_someone knows whats the problem here?17:27
_sEBAs_i sow some issues related to this, where i have to do a "juju metadata generate-image......"17:28
_sEBAs_but I thought juju bootstrap was doing that already :P17:28
jose_sEBAs_: are you doing the bootstrap with sudo?17:31
_sEBAs_ow17:31
_sEBAs_not17:31
_sEBAs_jose: I will try that!17:31
joseafaik when bootstrapping to lxc you need to do sudo, otherwise juju won't have enough permissions to create the container17:32
_sEBAs_but in the openstack provider?17:32
josemaybe yes?17:32
josegive it a try17:32
_sEBAs_ok, I would thanks!!17:33
_sEBAs_now something changed, 2014-03-26 17:35:11 ERROR juju.cmd supercommand.go:300 failed to GET object provider-state from container juju-cece0b9817a68cba4780784bf0663e4517:38
_sEBAs_caused by: Authentication response not received in 1m0s.17:39
_sEBAs_thats wired17:39
_sEBAs_i think i have all the info for authentication right17:40
_sEBAs_i'm trying to introduce private cloud with juju here in a big company at Brazil, but I'm more than a day now stuck in this problem17:55
_sEBAs_jose, jcastro or marcoceppi some light, please! :)17:56
jose_sEBAs_: maybe sudo was expecting a password?17:58
joseit actually shouldn't require sudo, but I'm wondering why it's not able to create the container17:59
josemaybe others may be able to guide you better, I've personally not used openstack :)18:00
marcoceppi_sEBAs_: run juju bootstrap with --debug18:00
badahi guys. Is it mandatory to have a Swift infrastructure to une Juju ?18:01
_sEBAs_jose: maybe, but it isn't asking for one18:02
marcoceppibada: if you're doing openstack, yes18:02
marcoceppijose _sEBAs_ you don't need sudo for any prodvider other than local18:02
_sEBAs_marcoceppi: im running bootstrap with --debug18:02
_sEBAs_greate!18:02
_sEBAs_i was expecting something like that18:02
badamarcoceppi : OK and it should use x509 certificat ? Because i have an error x509: cannot validate certificate for xxxxxxx because it doesn't contain any IP SANs18:03
marcoceppibada: so juju creates a x509 cert, iirc, for secure communication with the bootstrap server18:03
marcoceppibada: when are you getting this error18:03
badamarcoceppi : when i run the bootstrap command18:03
badamarcoceppi : i'm not the only one https://bugs.launchpad.net/juju-core/+bug/126178018:04
_mup_Bug #1261780: go 1.1.2 TLS-enabled client does not accept our CACert <security> <tech-debt> <juju-core:Triaged> <https://launchpad.net/bugs/1261780>18:04
badayep18:04
bada:)18:04
sarnoldnote that we've removed CACert from the certificates packages18:05
sarnoldif you want to trust CAcert, you'll have to install the certificate manually18:05
=== roadmr_afk is now known as roadmr
badasanrnold : how and where ?18:06
sarnoldbada: even though this is about intermediate certs I suspect it would work for top-level certs as well: http://yob.id.au/2013/02/06/trusting-new-ssl-certificates-in-debian.html18:08
badasarnold: Ok i'll try this. Thanks18:09
_sEBAs_marcoceppi: can i show you the debug log of the bootstrap ?18:10
marcoceppi_sEBAs_: yeah, just make sure to scan it for any private information first18:11
lazyPowermake18:21
_sEBAs_marcoceppi: http://pastebin.com/UFmBgAG718:23
_sEBAs_marcoceppi: thanks in advance ;)18:23
=== vladk is now known as vladk|offline
hazmatallomov, greetings :-)18:37
allomovHello %)18:37
=== allomov is now known as allomo
=== allomo is now known as allomov
=== allomov is now known as code1n
_sEBAs_marcoceppi: any ideias? maybe my openstack credentials?18:49
=== CyberJacob|Away is now known as CyberJacob
tvansteenburghi deployed my service (forgot to run `juju debug-log`) and my service is now in error state. wondering about the best path forward to determine what went wrong.19:25
tvansteenburghdestroy the service and rerun with debug-log?19:26
josetvansteenburgh: juju ssh [unit], logs are stored in /var/log/juju19:28
tvansteenburghjose: thanks!19:28
josesure :)19:28
Fishy_Q about virsh and maas19:30
Fishy_http://askubuntu.com/questions/292061/how-to-configure-maas-to-be-able-to-boot-virtual-machines/295976#295976   says to use the url:   qemu:///system19:30
_mup_Bug #295976: LTSP Fat client unable to mount network shares in fstab <mountall (Ubuntu):Expired> <https://launchpad.net/bugs/295976>19:30
Fishy_is /system the real system name19:30
Fishy_or literally ///system19:30
jcw4I expect that 'qemu://' is the scheme and '/system' is the path19:33
jcw4just like file:///etc/blah/blah19:34
jcw4resolves to /etc/blah/blah19:34
Fishy_Ok so real machine dns name19:35
Fishy_cool19:35
=== timrc is now known as timrc-afk
jcw4I think /system is a path on a default name (probably localhost)19:37
jcw4otherwise qemu://dns_name_of_machine.com/system19:37
Fishy_hum  ok19:37
Fishy_trying to make power on work for a local guy19:37
Fishy_think thats whats blockin me19:38
jcw4Well, I'm at my limit; nothing more to contribute :)19:38
jcw4sorry19:38
Fishy_haha thanks anyway i have some more ideas to guess and check19:39
jcw4good luch19:39
jcw4luck19:39
Fishy_i have resorted to naming all my juju machines prefixed with turd_19:40
_sEBAs_here is someone using juju with openstack? and working?20:01
_sEBAs_I tried everything and i'm with two errors, "GET object provider-state from container juju-..." is given and apache time out, and the second one "failed to write bootstrap-verify file: cannot make Swift control container"20:04
Fishy_openstack is complicated20:22
_sEBAs_Fishy_: tell me about it20:26
_sEBAs_took me like 3 days to install and configurate with lxc hypervisor ¬¬20:27
Fishy_been trying for 3 days to get juju status to return20:30
Fishy_for maas20:30
Fishy_still failure20:30
Fishy_no useful logs20:30
_sEBAs_Fishy_: i feel you bro20:32
_sEBAs_im stuck with an error trying to connect openstack to juju20:33
_sEBAs_ops juju to openstack20:33
Fishy_we need a juju emotional support group20:33
_sEBAs_hehe20:44
marcoceppisounds like you need an openstack emotional support group20:49
marcoceppi;)20:49
Fishy_OT, but does anyone know why a maas configurd bind9 dns proxy would fail 66% of the time, but succeed 33% of the time.. on a dns request to a random website like google.com ?20:54
Fishy_i set a forwarder to a real working dns server20:54
marcoceppiFishy_: that's, fishy.. ;) what does the logs in /var/log/maas/<bind or seomthing> show?20:56
Fishy_logs there are:  celery.log  celery-region.log  maas.log  maas.log.1.gz  oops  pserv.log  pserv.log.1.gz  rsyslog  txlongpoll.log  txlongpoll.log.1.gz20:57
marcoceppiFishy_: huh, none of those are helpful20:57
marcoceppiFishy_: is there a dns-y log in /var/log ?20:57
Fishy_nope20:58
Fishy_oo i think I see it in syslog20:59
Fishy_Mar 26 15:57:47 cgta-dev-6 named[27714]:   validating @0x7fa468022410: com SOA: got insecure response; parent indicates it should be secure Mar 26 15:57:47 cgta-dev-6 named[27714]: error (no valid RRSIG) resolving 'google.com/DS/IN': 192.168.78.202#5320:59
marcoceppiFishy_: that seems to be your issue20:59
Fishy_dnssec-enable no; and dnssec-validation no;    worth a try!20:59
Fishy_marcoceppi: fixed it yay thanks21:01
_sEBAs_\o/21:02
_sEBAs_marcoceppi: i sent an email to explain my issue with juju and openstack, any help would be appreciated :)21:03
marcoceppi_sEBAs_: thanks, a bit busy at the moment, will look a little later today. Sorry!21:04
_sEBAs_to the juju group :)21:04
marcoceppi_sEBAs_: perfect21:04
_sEBAs_marcoceppi: I imaging that!! sorry to bug you, and thanks!21:05
=== timrc-afk is now known as timrc
=== roadmr is now known as roadmr_afk
mbruzekSo I deployed a charm to hp-cloud that provides a web page.  Without exposing the charm I am able to view the web page.  Can someone explain why that is?  According to juju status  exposed: false and no open ports21:34
thumpermbruzek: no21:40
thumpermbruzek: I don't think so, the firewall needs to have ports opened21:40
mbruzekthumper I am checking the charm... I don't see firewall config, apache config yes, but no firewall configuration21:40
thumpermbruzek: juju handles the firewall by the charm opening ports21:41
mbruzekthumper, yeah but open-port is not called in the hooks that I can see21:41
thumperthat may well be the problem21:42
mbruzekthumper, So I would not expect that I could have got to the 80 port on this system if there are no open-port commands.  Is it possible to confiure a charm to be open without calling open-ports?21:44
thumperI'm not sure, but I don't think so21:44
thumperperhaps jcastro knows21:44
thumperor marcoceppi21:45
marcoceppithumper: does juju reuse sec groups?21:47
marcoceppithat could explain it21:47
* thumper shrugs21:47
marcoceppiif a sec group was left behind machine-0-secgruop21:47
marcoceppiwhatever21:47
marcoceppietc21:47
marcoceppiyadda21:47
josehey lazyPower, mind a PM?22:15
lazyPowerjose: not atm, brb22:15
joseok!22:15
smarterIs there any way to get juju working on Debian currently? Here's what I get when I try to bootstrap with the local environment: http://sprunge.us/ZCMC22:46
marcoceppismarter: you /can/ but it requires a bit of work22:50
marcoceppismarter: and I don't think it'll work with local at all, only a "real" cloud22:51
marcoceppiI tried earlier, and got pretty far, but had to stop because of time constraints22:51
smarterI see, thanks for the information22:53
josehey marcoceppi, still around? I heard back from negronjl23:03
marcoceppijose yo23:03
negronjlwho dares mention my name :)23:03
jose:P23:03
marcoceppi<3 negronjl23:03
negronjlmarcoceppi, the cf-* charms should be shot ... they are old stuff :)23:03
marcoceppinegronjl: shot as in unpromulgated?23:03
negronjlmarcoceppi: yup23:04
marcoceppinegronjl: ack, will remove from store23:04
negronjlmarcoceppi, thx man23:04
joseI also mentioned the cloudfoundry ones23:04
josethose too?23:04
=== CyberJacob is now known as CyberJacob|Away
Fishy_when I "accept an commision" a new node.. should MAAS use WOL to wake that node up and start the process?23:45
Fishy_right now i need to boot each node 3 times.. one to get registered.. once to get comissioned.. and a third time to actually do what he is suppsed to23:46

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