/srv/irclogs.ubuntu.com/2013/07/26/#juju.txt

=== brandon is now known as Guest24204
Guest24204is anyone familiar with setting up node-app on AWS.  I am hitting a wall with the config.yaml for some reason00:05
sarnoldGuest24204: any chance you can pastebin the errors you're getting?00:11
sarnold(I'm not familiar with the charm, and only slightly familiar with node, but you never know :)00:11
Guest24204:)00:11
=== alexlist` is now known as alexlist
Guest24204Description of issue:  I am trying to set the config file first by --config had issues with that so tried to upload my own charm my own --repository and have issue there too.   Here is what I get  :00:15
Guest24204with --config:   juju deploy --config config.yaml node-app mongonode-app00:18
Guest24204error response00:18
Guest24204error: no settings found for "mongonode-app"00:18
Guest24204have the config file under http://github.com/TheMindCompany/mongonode-app but as mongonode-app.yaml00:19
Guest24204then with --repository:  juju deploy --repository ~/charms local:node-app mongonode-app -v00:20
Guest24204error: cannot get latest charm revision: charm not found in "/home/brandon/charms": local:precise/node-app00:20
Guest24204i followed mark mim's tutorial at for the --repository at http://markmims.com/cloud/2011/09/07/node-mongo-ubuntu.html00:22
Guest24204my issue is simple getting the up to aws.  If i set it up with "juju deploy node-app mongonode-app it will launch the instance but with no app files.00:23
Guest24204hope that was thorough enough :)  and thank you for at least attempting to help me in advance00:24
sarnoldGuest24204: hrm, the charm README suggests it is looking for a config/config.js .. yours has "name": "mongonode", but you've called the app "mongonode-app" on the command line and the config.yaml ...00:29
sarnoldGuest24204: if that's not it, maybe try changing "app_name: " to "app_name: mongonode-app"  in the config.yaml...00:30
Guest24204that is for the mongo module in node.js.  I do have this setup and use it in my node server file00:31
Guest24204you think I should remove the sub properties type: string00:33
Guest24204default: mongonode-app00:33
Guest24204description: Application Name  or just add that too?  Well trying both :)00:33
Guest24204nope neither way worked :x00:35
Guest24204<racking brain here < bang - bang - banging head against cement wall00:36
sarnoldGuest24204: maybe? (sorry...)00:38
Guest24204I know.  Thank you for trying though.00:39
=== Guest24204 is now known as weblife
sarnoldweblife: there's a fair number of questions about juju on askubuntu.com -- perhaps you can find some inspiration there?00:40
weblifebeen looking everywhere not many people have used juju with node.js.  Plenty on MongoDB.  Can't find any related error issues either :(  I am going to ask Mark Mims in hopes he might know.00:44
sarnoldm_3: ^^^ guest24204 / weblife has some node charm questions I'm useless with.. :)00:45
=== defunctzombie is now known as defunctzombie_zz
hazmatthumper, is local with restart supposed to restart mongo and machine agent?02:07
hazmathmm looks like it should02:17
thumperhazmat: yes it does02:32
=== defunctzombie_zz is now known as defunctzombie
weblifeI posted my issue in a more detailed format at http://askubuntu.com/q/324672/88546 .  Anyone think they can help me out with launching a node-app instance on AWS?02:53
AskUbuntuJuju node-app charm on AWS | http://askubuntu.com/q/32467202:55
weblifeThats cool.  Didn't know there was a bot in here for that stuff.02:59
weblifeyeahhhhhhh!!!!!   It was damn white spaces.04:59
=== CyberJacob|Away is now known as CyberJacob
=== brandon is now known as weblife
=== defunctzombie is now known as defunctzombie_zz
weblifeI just launched a node-app-22 from the charms repo and am getting the following: http://ec2-54-226-121-230.compute-1.amazonaws.com/  --- Any ideas before I get back to it in th morning?06:46
weblifeFirst guess is it isn't loading my git repo.  Check that out first I guess.06:49
=== CyberJacob is now known as CyberJacob|Away
=== mthaddon` is now known as mthaddon
=== teknico1 is now known as teknico
mectorsIs there any way to import the shift-D generated script with juju-core?10:43
marcoceppimectors: yes, with a tool called juju-deployer11:07
mectorshow do you install juju-deployer with juju-core11:07
marcoceppimectors: you can also deploy the juju-gui to your environment and drag-n-drop the deployment file to the juju-gui11:07
marcoceppimectors: you'll need to add a ppa to your system to install it. The final location for the deployer ppa hasn't been locked down yet11:09
* marcoceppi finds email post11:09
theJujuGuyHi, i try to get juju working with maas. I read the MaaS Juju Quickstart Guide and run into problems. If i try to get the juju status "juju status" i get an error: ERROR Unexpected HTTP 401 trying to GET http://myip:80/MAAS/api/1.0/files/?filename=provider-state&op=get12:42
theJujuGuyis this a common error? any hints?12:42
codybummarcoceppi: Are you online?13:00
marcoceppicodybum: yes13:00
marcoceppitheJujuGuy: Do you have a successful bootstrap? What version of juju are you using (juju version or juju --version)? Do you see at least one node in use in the maas master dashboard?13:01
codybummarcoceppi: Yesterday my nick was<privteStack>.  I changed nick to be the same as other ones, given I will likely be around for a while.13:02
marcoceppicodybum: welcome back o/13:02
codybummarcoceppi:  I figured out the problem you were helping me with yesterday.  I was user error. Specifically the index.json had the wrong port number.13:03
marcoceppicodybum: Oh no, glad you got that resolved!13:03
codybummarcoceppi:  I basically tore apart juju code and debugged until I noticed the constraints didn't match, and it was the port.13:03
theJujuGuymarcoceppi: i use juju-verison: 0.7; "juju bootstrap" gave the same error. In my dashboard are 1 "ready" node and 2 allocated to me13:04
codybummarcoceppi: I ran into some other stange things that you might know about.13:04
marcoceppicodybum: yes please!13:04
marcoceppitheJujuGuy: If bootstrap fails then status will also fail, could you run `juju destroy-environment` then run `juju bootstrap -v` and pastebin the output of the bootstrap command?13:05
codybummarcoceppi:  It looks like juju, when set to use floating ip, uses the nova API to set addresses.  I am using Quantum and unfortunately the floating addressed managed by quantum don't show up under the os_floating_ip api call for nova.13:05
marcoceppicodybum: I think this is a known issue with juju-core, that the openstack provider does not work well with quantum yet. Let me check the bugs for you real quick to confirm13:06
codybummarcoceppi:  Basically on bootstrap if floating_ip = true the process fails dude to an openstack error.  I would expect most people, especially HP use Quantum.  So I wonder if it is something strange on my side.13:06
marcoceppicodybum: Maybe I'm confusing the openstack charms with juju then. Let me double check13:07
marcoceppicodybum: could it be related to this? https://bugs.launchpad.net/juju-core/+bug/118812613:08
_mup_Bug #1188126: Juju unable to interact consistently with an openstack deployment where tenant has multiple networks configured <canonistack> <juju:New> <juju-core:Triaged> <https://launchpad.net/bugs/1188126>13:08
codybummarcoceppi:  That might be related since I do have two networks associated with the tenant.13:10
theJujuGuymarcoceppi: http://goo.gl/xn559h13:10
codybummarcoceppi:  I was actually able to bootstrap without using a floating_ip and have a bootstrap node running.13:10
marcoceppitheJujuGuy: Sorry, you'll need to run `juju -v bootstrap`, juju 0.7 is very picky about the order of commandline options.13:11
marcoceppicodybum: awesome, it's a bummer about the quantum issue you're experiencing though. If you think that bug is affecting you, you can subscribe to it an follow it's progress13:12
codybummarcoceppi:  I was able to deploy wordpress and mysql charms, and new VMs were created.  However, I was never able to successfully add a relation.13:12
marcoceppicodybum: did add-relation throw an error?13:13
theJujuGuymarcoceppi: http://goo.gl/oXZeAk13:13
codybummarcoceppi:  That is the question, what logs should I be reading once the system is boostrapped13:13
codybummarcoceppi:  on teh bootstrap node /var/log/juju/* contains few logs and nothing that I can see about node deployment13:14
marcoceppicodybum: each unit has it's own unit log. One simple way is to just check `juju status`, if you see a relations: key with a list of the relations added then juju knows about it. If not add-relation failed some how13:14
marcoceppiOtherwise /var/log/juju/unit-*.log on each node will contain the output from the charm hooks13:15
marcoceppitheJujuGuy: Sorry, 401 means it can't authorize. There's a chance that the maas-oauth isn't set correctly13:16
marcoceppitheJujuGuy: check the MAAS master to verify you've got the right key entered in to the environments.yaml file13:17
codybummarcoceppi:  Great Tip.. Let me rebuild the environment and come back :)  thanks13:17
marcoceppicodybum: also, if that bug is affecting you, feel free to subscribe to it on the right side of the page to get updates for it directly13:18
theJujuGuymarcoceppi: what about the user? is the user identified by the maas-oauth?13:27
marcoceppitheJujuGuy: So, when I did this I used the same user as my local username. So my local user account name is "marco" and I just created a "marco" account in the MAAS master, alloted units to that user, copied that MAAS key to my environments.yaml and used that13:29
theJujuGuymarcoceppi: thank you very much13:29
theJujuGuymarcoceppi: i am a step further13:30
marcoceppitheJujuGuy: Excellent. We really don't have the most stellar maas documentation, so during your process of using MAAS and Juju when you find any points of contention (like this one) if you could just record it and possibly send your experience using MAAS and juju to the mailing list (juju@lists.ubuntu.com) it'll really help us improve our documentation!13:31
theJujuGuyi tried to install juju with the Quick Start: now a get a new error by "juju -v bootstrap" : ERROR SSH authorized/public key not found.   http://goo.gl/YojmDj I insert my key to the dashboard-site, also i tried to delete it an lets bootstrap generate the key pair. The error is the same.14:06
marcoceppitheJujuGuy: Do you have an ssh keypair in you ~/.ssh folder?14:08
theJujuGuymarcoceppi: thx again. why i must set my pub-key in the dashboard, when it's need in the folder?14:11
marcoceppitheJujuGuy: I think it's because MAAS doesn't have a mechanism to seed an ssh key during "provisioning", most clouds allow you to push keys to a machine during spin up. So it needs to have the key in maas master as the same in .ssh so juju can drive the machine after provisioning by maas is done14:15
theJujuGuywho is mainting the juju quick start from the maas-website?14:20
marcoceppitheJujuGuy: not sure, though we'll probably want to move it to the juju doc14:22
marcoceppievilnick would know, but he's not online atm14:23
weblife@marcoceppi Doesn't node-app make a copy of the git repo that you set in you config.yaml  to a S3 bucket?14:57
weblifeor anyone else familiar with the charm.14:58
marcoceppiweblife: no, it simply clones it to the unit14:59
marcoceppiweblife: the charm itself is cached prior to deployment, but that cache won't have the git repo in it. Also, not all cloud providers have s3 or comprable object stores avaiable. So we try to make sure charms rely on as little of the cloud infrastructure as possible15:01
weblifeahh. Okay thank you.  I'm getting a 503: No server is available to handle this request.15:01
marcoceppiweblife: at what point of the deployment?15:01
weblifeafter I have complete the all relationships and exposing.15:02
weblifeNo server is available to handle this request.15:03
weblifeoops15:03
weblifeec2-54-226-121-230.compute-1.amazonaws.com15:03
weblifeAny idea why? Before I start my witch hunt.15:04
marcoceppiweblife: what service is this?15:07
marcoceppinode-app?15:08
weblifeSorry using ec2 with aws15:08
marcoceppiweblife: right, but what charm is this? node-app?15:08
webliferevision-22? using the following git repo @ https://github.com/TheMindCompany/mongonode-app15:09
weblife@marcoceppi that what you mean15:09
weblifeyes node-app15:10
weblife:)15:10
marcoceppiweblife: Okay, so there's a good chance that the node applciation itself didn't start. 503 means nginx can't connect to the backend.15:10
den_shelehI'm trying to bind my own charm and logstash-agent. As I can see logstash-agent use juju-info interface to connection, but when I try to declare that one(logstash-agent:   interface: juju-info   scope: container) in metadata of my charm I got error: "error: charm not found". Is it bug or I'm doing something wrong ?15:11
marcoceppiWhat you can do is `juju ssh node-app/0` (replace node-app if it's deployed under and alias) and look to see if the process is running, check logs for failures (/var/log/juju/unit-*.log, /var/log/node-app)15:11
marcoceppiweblife: the node-app makes quite a few assumptions, so it might not work with every node-applcaition. If there are changes needed to the charm to make it work with your application then you can patch and run the charm locally or submit it to be merged into the official charm, making it better for everyone :)15:12
marcoceppiden_sheleh: can you pastebin the steps you're taking? subordinates and logstash definintely work last I checked15:13
weblifeI am currently launching locally, but if I can fix this I will submit a patch.  Thank you for your help.15:14
marcoceppiweblife: np, if you need more help debugging let me know!15:15
dannfwould it be possible to get ppa:charmers/charm-helpers populated for raring?15:16
marcoceppidannf: I dont' see why not, let me take a look15:18
* dannf is testing on a maas cluster of hw that wasn't supported in previous releases, charms like wordpress fail when they can't find a compatible tools release15:18
dannfmarcoceppi: cool15:18
marcoceppidannf: Oh, you're talking about old charm-helpers15:18
den_shelehmarcoceppi: after adding section logstash-agent: interface: juju-info and trying to deploy my local charm I get error described early15:20
marcoceppiden_sheleh: can you paste your metadata.yaml file to paste.ubuntu.com?15:20
marcoceppidannf: I've kicked of the builders, should build in a few hours15:22
dannfmarcoceppi: you rock, thanks!15:23
den_shelehmarcoceppi: http://pastebin.com/fYnXLtQW15:23
arosalesnote Charm School "Infrastructure" is being deferred this week15:59
arosalesjcastro, was your OSCON charm school video'ed?15:59
jcastroyes16:05
jcastrowe still have to be invoiced though16:05
jcastrothey told me "a couple of days"16:05
=== defunctzombie_zz is now known as defunctzombie
weblife@marcoceppi I took your advice and re-installed nodejs.  I did from source though and not chris leas ppa, I always seem to have issues with his.  It is up and running but I get a 504: Gateway Time-out.  Node.js debug gives me connection error:  [Error: failed to connect to [localhost:27017]].   I think it may be my app code now because that is the mongodb port setting from config/config.js.  Before I mess with my code, would you possi16:43
weblifebly concur with this thought?  Also npm says I am missing the repository setting but I have never needed this on my local, is this specific to node-app?16:43
=== CyberJacob|Away is now known as CyberJacob
=== brandon__ is now known as weblife
=== defunctzombie is now known as defunctzombie_zz
hazmatSpamapS, still on sup?18:23
SpamapShazmat: yeah, but I'd love to find something better at what it does.18:24
SpamapSI'd swear it is getting slower and slower.. :-/18:24
hazmatSpamapS, there's https://github.com/pazz/alot18:25
=== defunctzombie_zz is now known as defunctzombie
SpamapShazmat: that might be worth a shot18:27
SpamapSall the notmuch frontends were horrible a year ago18:27
weblifeOkay,  not liking mongodb-cloud with nodejs.20:21
weblife@marcoceppi in your next screen cast session you think you can cover how node.js, mongodb, and haproxy work and communicate together a little?  I have my node app running with mongodb but only in a single instance.  I am trying to finish up a tutorial series on how to work with node and mongo on ubuntu and then deploy what you make localaly to aws with my sample app: http://ec2-54-226-87-136.compute-1.amazonaws.com20:25
weblifeI want to say that what ever you build is scalable.20:26
weblifebut cant at this moment with a single instance.20:27
weblifenevermind you inda do talk about it in yourlast one minus haproxy20:38
weblife@marcoceppi I believe your on the charm-tools team.  I installed it earlier it messed with my Juju version from the juju/devel PPA.  So I removed it and reinstalled it, works fine now but now charm-tools isn't creating all the files(ie. config.yaml, icon.svg, probably more)22:37
weblifeI can deal but thought you should know.  Im on 13.0422:43
marcoceppiweblife: did you install from ppa? that problem was good but not back ported yet22:55
marcoceppiwas fixed*22:56
* marcoceppi needs to open a back port request22:56
weblife@marcoceppi Cool, thank you.  DId you get my message earlier about possibly using the wget for nodejs.org - and build from source.  It would make things more universal.  Especially with 13.04 servers.23:04
marcoceppiyes. away from computer again but ping me any time after today and we can talk about the logistics of doing such a thing23:05
marcoceppiit would make a great conduit option weblife23:05
marcoceppiconfig*23:05
ahasenackhi, any charm reviewers lurking? A simple two-line one: https://code.launchpad.net/~ahasenack/charms/precise/rabbitmq-server/rabbitmq-server-juju-core-compat/+merge/17723123:08
ahasenackmarcoceppi: can you review that? It's simple, I promise23:15
ahasenacksame fix already existing in cinder23:15
ahasenackand I just deployed with two units of rabbit, worked23:16

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