/srv/irclogs.ubuntu.com/2016/01/28/#juju.txt

donu7Hello, juju is giving me an error in the later stage of bootstrapping the environment. Is there a way to "resume" the bootstrap? I've been releasig the node from maas, deleting the environment and recreating it to try again00:04
donu7The node is up and commissioned according to maas; however, i can't ssh into it. if i reboot the node into single user, i see that the passwd file does not have any users and there appears to be no maas keys that were supposed to be set up in juju and maas00:21
donu7Also, running `juju status` or any `juju *` commands just hangs with no output — why is that?00:23
donu7actually, here's a different direction if anyone has any ideas - is there a resource on configuring network interfaces for the box that juju is trying to bootstrap?00:31
cloudgur_is the git repo for juju experiencing issues ?00:55
cloudgur_Nice pic of unicorn00:55
bolthole_mbruzek yeah looks good thanks :)01:07
bolthole_now I need to learn how to access webapp-path01:07
bolthole_https://jujucharms.com/docs/stable/authors-charm-writing is unbalanced. it shows bash using an apparent external command "relation-set", but doesnt show the corresponding other side accessing the value01:10
bolthole_mbruzek I just submitted https://code.launchpad.net/~s-phil-s/charms/trusty/tomcat-webapp/trunk03:14
bolthole_not fully tested, but figure the earlier I get feedback the better :)03:14
bolthole_oh he left. oops. well, feedback from anyone else would be appreciated too :)03:15
bolthole_there seems to be something wrong with instructions on https://jujucharms.com/docs/1.24/authors-charm-store04:12
bolthole_The instructions for (to main charm store) vs (to personal space), seem to say to push to the exact same URL04:12
bolthole_bzr push lp:~<your-lp-username>/charms/trusty/<your-charm>/trunk04:13
bolthole_vs04:13
bolthole_bzr push lp:~your-launchpad-username/charms/series/nagios/trunk04:13
bolthole_which. is. the. same. thing.04:13
bolthole_kwmonroe that tomcat code is bugged.04:37
bolthole_i updated https://bugs.launchpad.net/charms/+source/tomcat/+bug/1538715 with details04:37
mupBug #1538715: need relation webcontainer <tomcat (Juju Charms Collection):Fix Released by mbruzek> <https://launchpad.net/bugs/1538715>04:37
bolthole_lol04:37
bolthole_kwmonroe I submitted a merge request for a fix for that syntax err  in tomcat charm06:13
=== urulama__ is now known as urulama
=== stokachu_ is now known as stokachu
=== ionutbalutoiu_ is now known as ionutbalutoiu
D4RKS1D3Hi10:22
D4RKS1D3Someone has problems downloading charms?10:22
=== redelmann is now known as ridi|wfh
=== ridi|wfh is now known as rudi|wfh
marcoceppiD4RKS1D3: I haven't, what problems are you seeing?12:57
marcoceppicory_fu: do we have virtualenv for layers? instead of installing on the bare machine14:02
cory_fuNot yet14:15
cory_fuShouldn't be difficult to add, though14:15
=== xnox is now known as s390x
marcoceppistub: your leadership layer is badass! Thnks for uploading it15:08
stubYour about to get an apt layer too15:09
marcoceppiidk if I can handle all of this15:09
marcoceppiit's too much for my heart!15:09
stubAll the bits of behaviour shared between the PostgreSQL and Cassandra charms in fact.15:11
marcoceppistub: how very exciting15:27
=== s390x is now known as xnox
=== rudi|wfh is now known as rudi|wfh|brb
geethambruzek: Hi, I have got a comment for WebSphere Base product where its mentioned that we should add configuration options for profile options like profile name, path, and admin username and password. But once Websphere product installed and if user set new username and password through config option, there is no way to replace existing was admin username and password. So there is no benifit to the user if we provide config options for adm15:46
=== CyberJacob is now known as zz_CyberJacob
mbruzekgeetha: hrmm...16:03
mbruzekgeetha: It is strange that you can't change the admin user.  I will have to read the documentation for WAS on that.  The admin password can not be default, generate a password and save it to a file only root can read in the charm dir or something like that.  I still think the user will want to change the profile name, path and regular user.16:07
mbruzekgeetha: The point is we can not have default username/password for network services so people can not guess or know what the password is by reading the charm.16:08
mbruzekgeetha: The charm had very few configuration parameters and it will be more useful if you provide some of the things a user would change like profile or path and user/pass.  Can you change non-admin usernames and password?16:09
geethambruzek: Its not system admin user name and password..its specific to Websphere, once we create profile using username and password we can not change it, but we can create new profile with diffrent username and password16:13
mbruzekgeetha: https://www-01.ibm.com/support/knowledgecenter/SSYJ99_8.5.0/security/was_filereg.html16:13
mbruzekgeetha: If someone needs a specific profile. path and username I think that is reasonable that the old profile is removed/16:15
mbruzekIf you charm could control those values form the config that would be a useful charm, but setting all those values to default is not likely going to work for many users16:15
geethambruzeK: As per document, "websphere_install_directory/profiles" is the default directory for profiles. so  I am using that only to create profiles. And If we try to delete old profile, before deletion we have to stop the server with old username and password. If that is the case, how can we get old user name and password?16:26
mbruzekAgain if you wrote the password to a file readable only by root, the charm code could read that and use it to delete the old profile, and after you are done stopping/starting you could write the new password16:27
mbruzekThis all is seems possible with charm code.  I just want this charm to be useful to people, having only the default values will not be very useful.16:28
jmalcarazjamespage, D4RKS1D3 and jmalcaraz have been working hard these days, testings a lot your "odl" charms. We believe you would welcome this feedback. 1) Relationship  openvswitch-odl:neutron-plugin nova-compute:neutron-plugin. This relationship should be in charge of "removing any existing bridges in OVS", "population the ODL version of the ml2_conf.ini and setting the manager and controller to OVS and br-int. However, it only does the "manager in OVS". 2)16:28
jmalcaraz There is a conceptual missing relationship between openvswitch-odl and neutron-gateway. The problem is that the  neutron gateway does not provide the interface "neutron-plugin" and thus is cannot be applied. The aim is to achieve exactly what I decided in the prevision step but now over the neutron-gateway rather than over the nova-compute. We hope you find this feedback useful and hopefully you may like to address them in order to close a prototypical16:28
jmalcaraz integration using charms. Thanks a lot, in advance for the excellent work you are doing.16:28
kwmonroegeetha: you won't need the old user name and password.  if the user changes the configurable profile name, you would stop WAS, then run 'was_install_dir/bin/manageprofiles.sh -listProfiles' to get the profile name, then 'manageprofiles.sh -delete -profileName <profile', then create a new profile, then start the WAS with the new profile.  that should happen in config-changed.16:29
jmalcarazjamespage, sorry, I was refering to the relationship openvswitch-odl:neutron-plugin nova-compute:neutron-plugin16:29
jmalcarazjamespage, notice that in the own documentation of the charms the relationship between openvswitch and gateway is there. Literraly: "juju add-relation neutron-gateway openvswitch-odl", however the interfaces does not match in the metadata.yaml16:31
geethakwmonroe: To stop WAS we need usename and password. Because we have enabled security. we have to run command to stop server ./stopServer.sh server1 -username "user" -password "password"16:33
kwmonroeoh i see geetha - you're talking about changing the admin username/password.  i was thinking about how it would work to change the profile name.16:35
kwmonroelet me think about an admin user/pass change for a minute..16:35
geethakwmonroe: yes, if user change just profile name we can stop WAS, delete old profile and create new profile. but user change admin username/password also how can we do that? as matt said, we have to store it in a file and we can use it while stopping the server. After stopping again we have to rewrite the file with new username/password right?16:42
kwmonroegeetha: it seems like you can reset the WAS admin without knowing the old password.  run wsadmin and then perhaps an expect script to execute '$AdminTask changeFileRegistryAccountPassword -userId <newuser> -password <newpass>' (http://ibmdocs.com/2011/11/04/resetting-was-admin-password-when-the-browser-console-does-not-work-anymore/)16:51
kwmonroeonce the new user/pass has been set, you should be able to stop/start WAS using the newly configured user/pass.16:51
=== rudi|wfh|brb is now known as rudi|wfh
geethathank you Kevin & Matt...I will try this way.17:04
boltholei posted a question late last night but got disconnected, so I'll ask again :-/17:23
boltholeThe url at https://jujucharms.com/docs/stable/authors-charm-store describes "two methods" of putting up charms; one for the store, and one for personal space. however, they seem to tell me to do the same thing. what am I missing17:24
boltholeexample:17:24
boltholeto publish to charm store it says,17:24
boltholebzr push lp:~<your-lp-username>/charms/trusty/<your-charm>/trunk17:24
boltholebut to publish to personal name space, use17:25
boltholebzr push lp:~your-launchpad-username/charms/series/nagios/trunk17:25
boltholebut... that's the same thing, seems to me.17:25
marcoceppibolthole: yes, they are both published to the store, however one goes on to say how to get it "promulgated" or approved past the personal namespace17:28
marcoceppibolthole: these docs (and process) are pretty confusing, we have a more streamlined process coming on next month17:29
boltholewhie I remember: docs are out of date. they claim, "Name Spaced charms will be displayed under the other category in the GUI". but thre's no such category now, that i can see. I presume they mean in the search widget for the GUI17:31
boltholesuggestion for rewrite: make the first section a single unified, "[whether you plan for your charm to be in the store, or just in your personal area, you do the same first step: ... (details)]"17:33
boltholenow a followup question...17:33
boltholeI dont see what you describe, about something getting approved past the personal namespace.17:34
boltholei'm presuimg that getting in the store, is NOT the same thing as a "charmer team recommended charm"17:34
bloodearnestis there a way for a tool that is installed on a juju machine to query the units running on it?17:48
bloodearnest(this is for logging purposes)17:49
lazypower|travelbloodearnest i'm not sure i follow17:51
lazypower|travelwhat are you wanting to do?17:51
kwmonroebolthole: the Recommended Charms section of the doc you linked (authors-charm-store) is the process for going past personal namespace and making it "charmer recommended", which is indeed the same thing as "getting it in the store".18:03
boltholeokay thanks18:03
kwmonroebolthole: i like your rewrite suggestion -- i know marcoceppi already mentioned the docs were in transition, but that's an important one to clear up.  thanks!18:04
boltholei previously pushed my own charm, to "lp:~s-phil-s/blahblahblah".  This time, I tried just "bzr push". It said it was pushing to (...)//bazaar.launchpad.net/(...). Is there some difference between bazaar.lp, and.. the other stuff? more confusion :(18:04
marcoceppibolthole: that's just a limitation of bzr. "lp:" is basically bazzar.lp.net/...18:05
marcoceppibolthole: next month you'll be able to use whatever code hosting you'd like and publishing to the charm store is decopued from launchpad18:06
boltholecool. okay, soo... i finally have a charm that is "charm proof" clean. and I pushed it. that means in around an hour, I will finally be able to use    juju deploy lp:~s-phil-s/Mystuff ?  previously, i pushed it, but didnt have unique icon, so i guess it didnt allow that.18:07
bloodearnestlazypower|travel, I want to look in some file or similar to know what unit(s) are deployed on this machine. Would like to differentiate between primary and subordinate units18:09
bolthole(side comment.. it's... "interesting".. that I can view the same code tree, through both bazaar.lp.net and code.lp.net)18:10
kwmonroeyeah bolthole, if proof passes, it should ingest into the store in about an hour.  note that your invocation will be "juju deploy cs:~s-phil-s/trusty/Mystuff" though.  the 'cs' syntax tells juju that you want a trusty charm from the charmstore (cs), in ~s-phil-s's namespace.18:10
kwmonroeyou could skip waiting for ingestion with "juju deploy local:trusty/Mystuff", but i think you already knew that.18:11
kwmonroecs:blah is the right way to pull from the store18:11
boltholekmonroe: kewl. done and done. also, officially submitted topcat-webapp to charms. now, I just need someone to aprove my bugfix merge request for the mainline tomcat charm so it actually *works* ;-)18:15
boltholedoh... kwmonroe18:16
boltholebtw i'm going to try to change my lp id from s-phil-s to match my github name, bolthole18:19
kwmonroebloodearnest: you could do something like this on the machine: sudo find /var/lib/juju/agents/unit-* -name metadata.yaml -exec echo {} \; -exec grep subordinate {} \;18:19
bloodearnestkwmonroe, right. I was wondering if there was a better way than sniffing files18:20
kwmonroebloodearnest: even better (in caes you don't want to see pathnames..18:20
kwmonroesudo find /var/lib/juju/agents/unit-* -name metadata.yaml -exec grep name {} \; -exec grep subordinate {} \;18:20
kwmonroeah, i see bloodearnest.  i'm not sure of a utility on the juju deployed machine that can tell you that info (other than looking in /var/lib/juju/x)18:21
kwmonroebloodearnest: on the juju client machine, you can run 'juju status' and perhaps grep/awk your way to the data you'd like18:21
bloodearnestkwmonroe, yeah, I was wondering if I could query a juju agent or something18:21
bloodearnestkwmonroe, I want to discover it automatically on the unit itself18:22
bloodearnestfwiw, the use case is that I want to add a juju-unit tag to all log statements my app generates (and subsequently forwards to logstash)18:23
bloodearnestas the complete disconnect between hostname and juju-unit name is real PITA when debugging distributed failures18:23
bloodearnestI think I'll just have to get the each charm to set it explicitly in an env var, but I was hoping to avoid having to do that18:26
marcoceppibloodearnest: there's no way to really tell about other units if you're not related to them18:37
marcoceppiquerying /var/lib/juju directly will only end in pain18:37
bloodearnestmarcoceppi, I only really want to know which unit I am18:38
marcoceppibloodearnest: what do you mean18:38
marcoceppithe subordinates unit number?18:38
marcoceppior the primary attached to?18:38
bloodearnestmarcoceppi, the primary, in most cases18:39
bloodearnestwhich unit installed/configured me18:39
marcoceppibloodearnest: oh, that's easy. Create a relation for juju-info interface18:39
marcoceppithen during that relation you can do `JUJU_REMOTE_UNIT` which will give you the service/unit name you're related to18:39
bloodearnestI can't create a relation - I'm on a unit18:40
bloodearnestI don't have juju client/creds18:40
bloodearnestsome context: I already include the hostname automatically, which I don't need to explicitly configure18:41
boltholeHm.. is there some equivalent of "juju query cs:blah" to match "juju deploy cs:blah", where you dont want to deploy, you just want to verify or find out info on a charm in the store?18:41
boltholethe juju help stuff doesnt see to mention anything18:41
bloodearnestbolthole, charm search?18:42
bloodearnestcharm-tools pkg18:42
boltholejuju charm search works nice for my immediate needs. thanks. Although seems like it would be nice to have a "pull more details" varient of that.18:44
marcoceppibloodearnest: I don't understand.18:49
marcoceppiyou have to create a realtion to get a subordinate on to a machine18:49
=== marcoceppi is now known as marcoceppi|airpl
marcoceppi|airplnick marcoc|airplane18:57
=== marcoceppi|airpl is now known as marcoc|airplane
boltholehaving problems deploying from personal space.19:14
boltholejuju charm search tomcat, lists, among other things, lp:~bolthole/charms/trusty/tomcat/trunk19:15
boltholebut when I try to do,   juju deploy lp:~bolthole/charms/trusty/tomcat/trunk   it says invalid charm name?19:15
boltholedoesnt work if I use cs:~bolthole/charms/trusty/tomcat/trunk either19:16
boltholebzr branch lp:~bolthole/charms/trusty/tomcat/trunk works fine though19:18
marcoc|airplanebolthole: cs:~bolthole/trusty/tomcat is the url, that charm search is woefully out of date in how it performs lookups19:26
marcoc|airplanebolthole: https://jujucharms.com/u/bolthole/19:26
marcoc|airplanebolthole: it can take a few hours before showing up, once it does, you'll see it there19:27
marcoc|airplanebolthole: next month we'll have instant publishing! which doesn't help you now...19:27
boltholeoh. so reguardless of what "juju charm search" says.. it isnt REALLY available, until it shows up  in that special url?19:27
boltholethats kind of odd though, becuae I branched and pushed the thing hours and hours ago.19:29
marcoc|airplanebolthole: yeah, charm search search launchpad, which is instant, but it takes a few hours to go from launchpad to charm store19:30
boltholeIs there a magic incantation I can use to deploy direct from launchpad?19:30
marcoc|airplanebolthole: not really, as you can see this is one of the many reasons we're moving to the much more concise and quick publish tool next month19:31
boltholemkaaay.... sooo.. how many hours should it take? :-/19:32
kwmonroebolthole: juju deploy cs:~bolthole/trusty/tomcat should work for you19:42
marcoc|airplanebolthole: 1-6 :\19:42
kwmonroeit's listed in the store at the url marcoc|airplane referenced19:42
marcoc|airplanebolthole: oh look! it just showed up19:42
* marcoc|airplane wipes brow19:42
kwmonroecory_fu: if i have a @hook('start')\n def myfunc(), can i call myfunc from outside the start hook?19:44
cory_fuAbsolutely19:44
* kwmonroe wipes brow19:44
adam_gmachine-0: 2016/01/28 11:47:23 http: TLS handshake error from 192.168.122.115:53369: remote error: bad certificate20:02
adam_gmachine-0: 2016-01-28 19:47:23 ERROR juju.provisioner provisioner_task.go:655 cannot start instance for machine "2": kvm container creation failed: exit status 120:02
adam_gany debug tips for this?20:02
adam_gmy local env magically broke overnight20:02
aisraelcory_fu: lazypower|travel: The devel docs link to https://github.com/juju-solutions/layer-basic (from https://jujucharms.com/docs/devel/developer-layers) but that repo doesn't exist20:08
cory_fuDoes anyone have an objection to renaming the repo from reactive-base-layer to layer-basic?  That's more in line with the convention we've been using.20:14
cory_fuLooks like github does the reasonable thing with repo renames, and I'll update interfaces.juju.solutions, so it won't affect anyone.  I'm gonna do it.20:20
aisraelthanks, cory_fu!20:28
boltholemarcoc|airplane ha ha, strategic lunch break for the win! :)21:07
boltholei'm writing a subordinate charm. it requires a value to be set by relation-set by the master. But itseems (according to juju debug-log) that its install and config hooks are being called AFTER the primary's relation-joined hooks. What am i supposed to do about that?21:41
=== natefinch is now known as natefinch-afk
adam_g  "1":22:50
adam_g    agent-state: error22:50
adam_g    agent-state-info: 'kvm container creation failed: exit status 1'22:50
adam_g    instance-id: pending22:50
adam_g    series: trusty22:50
adam_gwhere do i debug this? local provider /w kvm22:50
boltholemy connection with juju debug-log keeps breaking if I leave it up. with errors like23:07
boltholeERROR: juu.apiserver debuglog.go:102 .... write tcp ... connection timed out23:07
boltholelast time I did a restart of the whole local juju service (juju-agent-$USER-local.service). Is there a shorter way to recover the log capabilities?23:08
boltholeokay... anyone awake still? :)   I just did another round of tests for my subordinate class andf23:19
boltholeprimary class... and it would seem that the primary "relation-joined" hook comes after even the SUBORDINATE relation-joined.23:20
boltholeBug, or feature?23:20
blahdeblahbolthole: I'm not an expert in this, but I'm pretty sure there is no guarantee on which order hooks will execute in, especially across units.23:43
boltholegenerally spekaing i can understand that. but inthe specific case of a subordinate container, I wuld think having deterministic behaviour is pretty crucial23:46

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