/srv/irclogs.ubuntu.com/2013/11/08/#juju.txt

=== thumper-gym is now known as thumper-hacking
=== vednis is now known as mars_f
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== thumper-hacking is now known as thumper
ehwhey, guys, where are the docs for juju's command-line switches? things like --config= --debug -v that kind of stuff04:23
matt_BI do not see it in $juju help commands04:24
ehwmanpage also doesn't have it, or https://juju.ubuntu.com/docs/commands.html04:24
* ehw just wants to specify which environment he's using04:25
matt_BYou found the ones I have used, --debug and -v04:25
ehwmatt_B: completely incidental; just passed along through oral history04:25
matt_BIs anyone able to issue juju debug-log with a local setup?  I get an error and found a bug report for it, but no workaround.04:26
matt_Bhttps://bugs.launchpad.net/juju-core/+bug/120268204:27
_mup_Bug #1202682: debug-log doesn't work with lxc provider <cts-cloud-review> <debug-log> <local-provider> <papercut> <ssh> <ui> <juju-core:Triaged> <https://launchpad.net/bugs/1202682>04:27
ehwmatt_B: dug a bit more, switches are documented in the different commands; i.e. juju help deploy04:27
matt_BThanks _mup_ got that number too, was wondering if any of the smart people here have worked around that04:27
matt_Bthanks ehw, I will add that to my oral history04:28
ehwhehe04:28
ehwand for the record, juju switch is what I was looking for04:28
matt_BWhen I sing tails of juju I will include juju help deploy04:28
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== _mup__ is now known as _mup_
=== freeflying is now known as freeflying_away
=== axw_ is now known as axw
=== CyberJacob|Away is now known as CyberJacob
=== freeflying_away is now known as freeflying
_mup_Bug #1249248 was filed: juju-charms for Wordpress doesnt work-Wordpress agent status reported as  "install-error" <charms> <juju> <maas> <wordpress> <pyjuju:New> <https://launchpad.net/bugs/1249248>09:11
=== freeflying is now known as freeflying_away
andreas__hi, could I inderest someone into reviewing this one liner diff from the apache2 charm12:02
andreas__that is causing hook errors for me?12:02
andreas__https://code.launchpad.net/~ahasenack/charms/precise/apache2/apache2-no-failing-juju-log/+merge/19440312:02
=== andreas__ is now known as ahasenack
ahasenackit fixes #124901612:04
ahasenackand this silly error12:04
_mup_Bug #1249016: Shouldn't log the relation data <apache2 (Juju Charms Collection):In Progress by ahasenack> <https://launchpad.net/bugs/1249016>12:04
ahasenack2013-11-07 16:39:39 INFO juju.worker.uniter context.go:255 HOOK OSError: [Errno 7] Argument list too long12:04
marcoceppiahasenack: I'll take a look today12:56
ahasenackmarcoceppi: thanks12:58
=== gary_poster|away is now known as gary_poster
nesusvethello everyone!14:03
nesusvetI am adding the hosts manually, but after I run the "juju bootstrap", I see the following message:14:04
nesusvetERROR cannot create new info for environment "null": chown /home/allods/.juju/environments: operation not permitted14:04
marcoceppinesusvet: run `ls -lah | pastebinit`14:35
nesusvetmarcoceppi, http://pastebin.com/hfEzJJR114:41
marcoceppinesusvet: interesting. Can you rename "null" to something else in the environments.yaml? Say "manual" or another name other than null?14:43
nesusvetok, I will14:43
nesusvethttp://pastebin.com/6DXthB4u14:45
nesusvetthe result is http://pastebin.com/Rs59pU4H14:46
marcoceppinesusvet: I've not seen that before14:47
marcoceppirogpeppe: thoughts? ^^14:47
nesusvetstrace result: http://pastebin.com/FPiDJmtJ14:51
marcoceppinesusvet: run juju destroy-environment, then try to bootstrap again14:53
nesusvetERROR environment has no bootstrap configuration data14:54
marcoceppinesusvet: rm -f ~/.juju/environments/my.jenv, try to bootstrap again14:54
nesusvetallods@a1base:~/.juju$ rm -f ~/.juju/environments/my.jenv14:55
nesusvetallods@a1base:~/.juju$ juju bootstrap14:55
nesusvetERROR cannot create new info for environment "my": chown /home/allods/.juju/environments/my.jenv: operation not permitted14:55
nesusvetjuju version14:56
nesusvet1.16.3-precise-amd6414:56
marcoceppi:\ nesusvet one second, let me try to replicate14:57
nesusvetmarcoceppi, ok15:02
rogpeppemarcoceppi: looking15:16
rogpeppenesusvet: what user are you running as?15:18
nesusvetwhat do you mean by "running as"15:19
rogpeppenesusvet: what does "id -a" print?15:19
nesusvetuid=60001(allods) gid=60001(allods) groups=60001(allods),27(sudo)15:19
rogpeppenesusvet: ha, thought so15:19
rogpeppenesusvet: what does "echo $SUDO_USER" print?15:20
rogpeppenesusvet: hmm, actually i'm probably wrong15:20
nesusvetnothing )15:20
rogpeppenesusvet: i am15:20
rogpeppe:-\15:20
nesusvetwhat does "echo $SUDO_USER" print? - nothing15:21
rogpeppenesusvet: yeah, i wondered if some particular logic was kicking in, but it seems it probably isn't15:21
nesusvetso, as far as I understand we are still looking for a reason )15:22
nesusvetrogpeppe, I appologize, I don't know English well ). And afraid that I could miss something important15:23
rogpeppenesusvet: what do you see if you do: "chown allods.allods ~/.juju/environments/my.jenv" ?15:23
rogpeppenesusvet: ah, hold on15:24
rogpeppenesusvet: what do you see if you do "env | grep SUDO" ?15:24
nesusvetSUDO_USER=nesusvet15:25
nesusvetSUDO_UID=100015:25
nesusvetSUDO_COMMAND=/bin/su allods15:25
nesusvetSUDO_GID=100015:25
rogpeppeah ha!15:25
rogpeppei thought so15:25
rogpepperight15:25
rogpeppethat's a bug in our code15:25
rogpeppenesusvet: for the time being there's an easy workaround15:26
rogpeppenesusvet: export SUDO_UID=""15:26
rogpeppenesusvet: it's strange that your "echo $SUDO_USER" printed nothing, BTW15:26
marcoceppirogpeppe: interesting, is this if someone does a sudo su - <user> ?15:27
nesusvetSo, what should I do next? )15:27
rogpeppenesusvet: i will propose a fix15:27
nesusvet(handshake)15:27
rogpeppenesusvet: do what i said - that will cause your bootstrap to work ok15:27
marcoceppithanks rogpeppe!15:28
rogpeppemarcoceppi: yes15:28
nesusvetYeah, thanks you very much )15:28
rogpeppemarcoceppi: we are assuming that if SUDO_UID is set then the effective user id is root15:28
rogpeppemarcoceppi: it's actually a nasty hack caused by the fact that the local provider needs to run as root15:28
marcoceppiah, instead of trying to use that value?15:28
rogpeppemarcoceppi: it should check the euid15:29
rogpeppemarcoceppi: the whole situation is unfortunate - we shouldn't need to run as root, but it's not easy because lxc requires root.15:29
nesusvetrogpeppe, I did chown allods.allods ....15:30
nesusvetbut still can the same15:30
rogpeppenesusvet: yeah, that's not the problem i'm afraid15:30
nesusvetjuju bootstrap15:31
nesusvetERROR environment has no bootstrap configuration data15:31
rogpeppenesusvet: the problem is that juju is trying to do the equivalent of: chown nesusvet.nesusvet my.jenv15:31
rogpeppenesusvet: ah, yes, sorry, you'll need to remove the .jenv file15:31
rogpeppenesusvet: or run juju destroy-environment my15:31
nesusvetI sshed under allods and everything works fine )15:35
nesusvetso there is a reason definitely15:36
nesusvetin sudo15:36
rogpeppenesusvet: cool15:37
gnuoyhi, I've just used maas to deploy the boostrap node with bonded nics. However, I see no sign of juju on the server. Mongo startsup if I start it manually but ENABLE_MONGODB=no is set in /etc/default/mongodb15:55
gnuoyWhere should I look next to figure out whats happened /15:55
gnuoy?15:55
gnuoyI see these: git lxc mongodb-server15:56
gnuoyinstalled15:56
gnuoyand no package seems to be in an error state from dpkgs point of view15:56
gnuoythe dir /var/log/juju is empty15:57
marcoceppignuoy: what does sudo initctl list | grep juju show?15:59
gnuoynothing15:59
gnuoymarcoceppi, it looks like /var/log/juju is the only sign of juju. I see no juju package16:00
marcoceppignuoy: you won't see a juju package, juju doesn't get install from the archives16:00
gnuoyah, ok16:00
marcoceppignuoy: if there are no upstart jobs, then something went wrong durint the setup. Check the output of /var/log/cloud-init16:00
marcoceppi(I think that's where the file is)16:01
gnuoymarcoceppi, thanks, looks like a dns problem https://pastebin.canonical.com/100172/16:02
gnuoymarcoceppi, ta, I'll have a dig around16:02
marcoceppignuoy: it looks like it's trying to find the maas server to download the juju tools, and failing16:02
gnuoymarcoceppi, yep, an empty resolv.conf probably isn't helping.16:04
nesusvetIt seems I have a new issue. After bootstrapping server was unable to deploy successfully16:09
nesusvetTarget server could't connect to mongoDB16:10
nesusvetand now I don't know what to do next.16:10
marcoceppinesusvet: so you were able to bootstrap without issue?16:12
nesusvetyes16:12
marcoceppinesusvet: can you descrive what you've done from bootstrapping to getting the error?16:13
nesusvetbut the target machine shown a lot of spam that could't connect to localhost16:13
nesusvet2013-11-08 15:50:47 DEBUG juju.state open.go:88 connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused16:13
marcoceppinesusvet: what does your environments.yaml stanza for "my" environment look like?16:13
nesusvethttp://pastebin.com/CwGjuaCG16:15
marcoceppinesusvet: what is GPT-bart-IM?16:16
nesusvetis target host16:17
nesusveton which I should install agent16:17
nesusvetmanually16:17
marcoceppinesusvet: is it your machine? Does that address actually resolve on your machine if you type `dig GPT-bart-IM`?16:17
nesusvetYes, I can ping it16:17
nesusvetit's localhost16:18
nesusvetI mean I added this name into the /etc/hosts file on both servers16:18
marcoceppinesusvet: you shouldn't use your local machine as the bootstrap node16:18
nesusvetNo, it's not local machine, it's target standalone server16:18
nesusvetping GPT-bart-IM16:19
nesusvetPING GPT-bart-IM (192.168.206.63) 56(84) bytes of dat16:19
marcoceppinesusvet: where are you running these juju commands? From your desktop or that server?16:19
nesusvetfrom server, the server hostname is GPT-base16:19
marcoceppinesusvet: you shouldn't be running the juju commands from the nodes you indend to use. You should be running the juju commands from your computer16:20
nesusvetohh.16:20
nesusvetso what should I do with server which has been deployed incorrectly16:21
marcoceppinesusvet: uninstall juju-core, run `sudo initctl list | grep juju- | awk '{system("sudo stop " $1)}'; sudo rm -f /etc/init/juju*`16:23
nesusvetthanks16:26
nesusvetI will16:26
rogpeppenesusvet, marcoceppi: could one of you please report the above problem as a bug, so i can refer to it when i'm proposing my fix?16:31
marcoceppirogpeppe: ack16:31
rogpeppemarcoceppi: ta!16:32
nesusvethere On the lunchepad?16:32
marcoceppinesusvet: I'll create one on launchpad with the details from above16:35
nesusvetPlease describe the bug in a few words, for example, "weather applet crashes on logout":16:35
nesusvet"JuJu bootstrap doesn't work under sudo environment" is it ok?16:36
marcoceppinesusvet: Yup, that'll work16:37
nesusvethttps://bugs.launchpad.net/juju-core/+bug/1249418 here is16:45
_mup_Bug #1249418: JuJu bootstrap doesn't work under sudo environment <juju-core:New> <https://launchpad.net/bugs/1249418>16:45
jcastrohttp://askubuntu.com/questions/373161/juju-boostrap-for-ec2-fails-with-access-denied-but-working-credentials19:18
jcastroI wonder if this is one of those env file issues again19:18
marcoceppijcastro: maybe19:23
mbruzekHello juju community I have a question, hope this is the right place.  I have a Java WAR file that I want to add to a charm.  Would the best practice be to copy the Tomcat charm and just add this WAR file to the appropriate directory thus making a new charm.  Or is it best practice to install the Tomcat charm and somehow use the WAR in a different charm.20:38
mbruzekI guess I don't know if that last option is possible, and looking for a little help.20:39
jcastroIt'd be cool to add a config option to the tomcat charm to allow you to bundle WARs20:55
jcastroeither via URL or in a war/ directory or something20:55
jcastrobut if you want quick and dirty fork the tomcat charm and just embed the WAR file20:55
mbruzekThank you jcastro20:56
mbruzekEach charm runs in its own server/container/instance right?20:56
mbruzekSo making a tomcat charm point at a different WAR charm would not work?20:57
marcoceppimbruzek: So there are several things you could do21:11
mbruzekmarcoceppi, Which one would you suggest?21:13
marcoceppimbruzek: internet is a little flakey, one min21:13
marcoceppimbruzek: So, one option would be to create a configuration option, like "war_location" which would be an address that people could configure. Another, more interesting option, would be to create a tomcat-war subordinate charm. Subordinates are charms that don't get deployed as standalone, but instead get attached to existing deployed services. So what you could theoretically do, is juju deploy tomcat; juju deploy tomcat-war my-war-service; juju21:17
marcoceppiadd-relation tomcat my-war-service21:17
marcoceppiin doing so, you could have multiple WARs deployed to a single tomcat server, which I feel like is something that's done in practice already21:17
mbruzekCan charms read each other's file systems?21:18
marcoceppithen the generic tomcat-war charm would have a few configuration options, like "war_location", "path", "service_name", whatever would make sense for needing to deploy a war21:18
marcoceppimbruzek: yes and no. A subordinate charm can, because it's deployed alongside that service it's attached to21:18
marcoceppiso tomcat-war as a subordinate, could read/modify anything the tomcat charm would because subordinates are co-located on the same server21:19
mbruzeka subordinate charm can, but can the master charm read the subordinate's ?21:19
arosalesmbarnett, hello welcome here21:19
marcoceppimbruzek: yes, they're both on the same system. You tell juju where to "deploy" the subordinate via the add-relation command, as such no only are the on the same system but they also have an established relation to each other which they can use to communicate21:20
arosalesmbruzek, https://juju.ubuntu.com/docs/authors-subordinate-services.html21:23
marcoceppimbruzek: the only real seperation you have with a suboridinate and a regular service, is they each have a different $CHARM_DIR21:23
mbruzekOK21:23
arosalesmbruzek, subordinates do require some thought to get your mind wrapped around21:23
mbruzek_charms_ themselves have taken me some thought to wrap my head around.21:24
arosalesmbruzek, :-)21:24
* arosales thinks of sub example ...21:25
arosalesrsyslog may be a good example21:26
arosaleshttp://manage.jujucharms.com/charms/precise/rsyslog-forwarder is the sub in this case21:27
marcoceppithere are no good examples, only zuul21:27
arosalesmarcoceppi, your thoughts on rsyslog-forwarder?21:28
marcoceppiarosales: aside from the fact that, iirc, it's broken?21:29
marcoceppimbruzek: here's a list of all the subordinates in the charm store: https://manage.jujucharms.com/charms/precise?sub=121:32
marcoceppia simple one, like ntp or unattended-upgrades, might give you a better idea of their purpose21:32
mbruzekthanks marcoceppi21:32
arosalesmarcoceppi, I haven't deployed it lately, just recall it being a sub21:35
arosalesmarcoceppi, mainly looking for a code example on subs21:35
marcoceppiarosales: mm, but if you try to deploy, at least if I recall what kirkland said, it doesn't actually work21:35
kirklandmarcoceppi: deploy what?21:37
arosalesrsyslog-forwarder21:37
marcoceppikirkland: rsyslog/rsyslog-forwarder. IIRC a month or two ago you trued and it failed to work properly21:37
arosalesmarcoceppi, I trust you :-)21:37
arosalesjust the one I remember off hand21:37
kirklandmarcoceppi: ah, yeah, failed21:38
arosalesmarcoceppi, your link to the list of subs is much better to look at code examples21:38
marcoceppiarosales: :) trying to remember if it was actually broken. We should file some bugs aginst it and fix it. Or something ;)21:38
marcoceppihum, this is one clint was maintaining, so it's maintainerless as well21:39
* arosales was just looking for a bug on it21:39
arosaleshttps://bugs.launchpad.net/charms/+bug/1078147 had a merge request from a while ago21:40
_mup_Bug #1078147: rsyslog and rsyslog-forwarder charm review/merge <canonical-webops-juju> <Juju Charms Collection:New> <https://launchpad.net/bugs/1078147>21:40
* marcoceppi facepalm. Both are marked as needs fixing, but it looks like both were updated recently21:41
marcoceppiarosales: they need to have ~charmers re-assigned to them for a review in order to show up in the queue again. We need to make that policy when communicating to people who need to fix their merges21:41
arosalesthat and be a non "closed" state21:42
marcoceppiHaw even made himself a maintainer of the charm21:42
marcoceppiarosales: well, the merge requests are what matter, we don't see the bugs21:42
marcoceppiarosales: https://code.launchpad.net/~hloeung/charms/precise/rsyslog/trunk/+merge/13402421:42
arosalesgood point21:42
marcoceppiIf it's not assigned to charmers for review we effectively don't know about it21:42
arosalesyup21:43
marcoceppiarosales: what might be a better course of action is. After a charmer reviews it, they move the merge proposal from "Ready for review" to "In Progress", then re-assign charmers. That way the author only needs to move it to ready to review and not mess with assiging it again21:43
* marcoceppi makes task to talk about review process on the list21:43
marcoceppiarosales: do you see two "bip" charms on this page? https://manage.jujucharms.com/charms/precise21:45
arosalesstays on our radar then21:45
* arosales looks21:46
arosalesmarcoceppi, I do, one looks blank21:46
arosalessame with bonne21:46
arosalessame url end point21:47
* marcoceppi files bug21:47
arosalesmarcoceppi, thanks thas a juju-gui bug in charm world21:47
arosalessinzui, ^ fyi21:47
arosalessinzui, sorry I think the juju-gui maintains that code now21:48
arosalesjuju-gui team21:48
marcoceppihttps://bugs.launchpad.net/charmworld/+bug/124949621:48
_mup_Bug #1249496: Charms listed multiple times <charmworld:New> <https://launchpad.net/bugs/1249496>21:48
sinzuiarosales, We are in that code too to support the charmers. The gui team added versioned charms recently, and that has caused problems for code that thinks there is only one version of each charm21:49
arosalessinzui, thanks for the info and marcoceppi thanks for the filing the bug21:50
arosalesand bonnie just needs a readme, ugh21:51
marcoceppiarosales: the impending audit should resolve that21:52
* marcoceppi piles on more tasks21:52
* arosales files bug for bonnie21:53
arosalessinzui, on a different not mbruzek also ran into https://bugs.launchpad.net/juju-core/+bug/120268221:59
_mup_Bug #1202682: debug-log doesn't work with lxc provider <cts-cloud-review> <debug-log> <local-provider> <papercut> <ssh> <ui> <juju-core:Triaged> <https://launchpad.net/bugs/1202682>21:59
mbruzekI found the bug on launchpad, and asked if there was a way around it22:00
mbruzekNo known workarounds?22:01
arosalesnot that I see22:01
marcoceppimbruzek arosales: yes22:02
marcoceppimbruzek: all local logs are in ~/.juju/local/log22:02
mbruzekahh.22:02
marcoceppimbruzek: they're loopback mounted in to the containers22:02
marcoceppimbruzek: arosales: the only two commands that dont' work with local right now are juju debug-log (see above) and juju ssh <machine-number> the latter can be solved with juju ssh <unit> though22:03
* marcoceppi doesn't like debug-log that much anyways; too much information22:03
marcoceppimbruzek: you'll be interested in the log files prefixed with unit-22:03
arosalesmarcoceppi, ah interesting22:05
arosalesI saw stokachu also commented on 'juju debug-log' not working with some attempts to workaround the problem22:07
marcoceppiarosales: posted a comment to that bug with the workaround22:07
marcoceppiarosales: this and juju ssh need to be documented on the local provider page asap if it isn't already22:07
* marcoceppi thought it was22:07
=== JoseeAntonioR is now known as jose
arosalesmarcoceppi, thanks for https://bugs.launchpad.net/juju-core/+bug/1202682/comments/522:10
_mup_Bug #1202682: debug-log doesn't work with lxc provider <cts-cloud-review> <debug-log> <local-provider> <papercut> <ssh> <ui> <juju-core:Triaged> <https://launchpad.net/bugs/1202682>22:10
mbruzekmarcoceppi, Thanks for your help today I can see the log files now.22:31
marcoceppi\o/22:31
marcoceppimbruzek: thanks for reminding me that still exists, I'm updating the docs to reflect these caveats22:31
mbruzekI am sorry if that added anything to your task list22:32
arosalesmarcoceppi, feel free to also log a quick bug in juju-core and tag it with "docs" so we can follow up on it later too22:35
marcoceppimbruzek: worse things have happened22:35
marcoceppiarosales: ack22:35
marcoceppigoing to finish logging these other bugs22:35
arosalesmarcoceppi, thanks22:36
jason955So, I've been browsing the charms lately and it looks like a lot of charms use a VCS (git, bzr, svn, etc).  When I have been designing charms, I like to pull from a VCS and I prefer Git.  I realize that the charms I want to use don't have a Git options.  Also the charms I make, I only offer Git.22:48
jason955So my thinking is that it would be nice to create a VCS relationship that allow a service create a subordinate VCS charm, which pulls from a repository and updates it.  The parent charm can just expose a folder to pull to.  I really think this would help with the modularity of the charms.22:48
jason955Take for example the LAMP charm.  It only uses Bzr for its repo.  What if it just required a VCS charm, that way I can use whatever I want (git, bzr, svn, ftp, http, S3, etc). Is there anything like this already?  What do you think about this?22:48
=== freeflying_away is now known as freeflying
marcoceppio/ jason955 I just replied to your mailing list post, didn't see the messages here23:29
jason955got it.  Thanks Marco23:29
=== freeflying is now known as freeflying_away
=== CyberJacob is now known as CyberJacob|Away

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