haasnA juju bootstrap got interrupted (failed connecting to the newly provisioned server via ssh due to a bad known_hosts entry), can I continue it or do I have to re-provision the server from scratch?05:20
rick_h___haasn: I think it's best to re-provision. It'll be hard to know how far it got and how best to recover.05:45
haasnIs it Juju's official error handling strategy that when something goes wrong, you nuke and start over again?08:48
haasnI'm running into errors like services being stuck on “failed hook” or machines being stuck on “pending” forever08:50
haasnAt an alarmingly often rate08:50
haasnAnd every time there does not seem to be a reliable solution other than nuking everything and starting over, at least in terms of the stuff I added08:50
BrunoRhaasn: you can try 'juju resolved --retry' https://jujucharms.com/docs/1.25/authors-hook-errors09:07
stubhaasn: For 'pending' stuckage, juju destroy-machine --force {machineno} is your best bet. I get this a lot with Juju 1.25 and the lxc provider.09:19
stubhaasn: For 'failed hook', 'juju resolved --retry unit/42' is your only option unless you want to debug the charm.09:19
jrwrenhaasn: no, that is not juju's official error handling strategy.09:44
sharanHow do i know last unit in the relation-joined?14:38
sharanwithout using relation-list14:39
marcoceppisharan: there's no way to really know since the model is always mutating. At anytime a user could add or remove unit and you no longer have a "last" unit :)14:43
sharanmarcoceppi: ok, so we are not able to find the last unit :( , if user adds only 4 units and he will not perform any operation by add or removing unit. At this scenario is their any possibilities??14:57
marcoceppisharan: no, not really. Juju is a fluid system there really is no expectation of idempotent state. What are you trying to solve ultimately?14:58
sharanmarcoceppi: in my Websphere extreme scale(WXS) charm i need to restart the server every time when it has a peer relation with another WXS. I am stopping the server if server is started in relation-joined and again starting the server in relation-changed hook.15:03
sharanmarcoceppi:is this the right way to restart the server?15:05
marcoceppisharan: yeah, there's really nothing you can do at this point except to use something like leadership to help coordinate. You can't really use relation-list because that's not a continued state of the environment and won't show all 4 right off the bat15:06
sharanmarcoceppi: you mean leadership concept is better over the relation-joined and relation-changed for restarting the server whenever it has a peer relation.15:18
marcoceppisharan: possibly, what information do you need in the peer relation?15:18
sharanmarcoceppi: is it possible to have peer relation between 2 products? i mean 1 product have peer relation and second product also have peer relation, is it possible to have again a realtion between these products?15:29
iceyhow hard is it to have two separate charms relate to the same database in Postgres?16:14
marcoceppiicey: not very16:20
iceyI just ran into an issue where the 2nd relation added did not have roles to acces the database -_-16:21
marcoceppiicey: thta's weird16:25
* marcoceppi takes a look16:25
iceymarcoceppi: trying to have the charm add roles as well as request the given database now16:25
smartbitMarco, after last weeks juju charm summit I failed to get juju to work https://bugs.launchpad.net/juju-gui/+bug/154265217:59
smartbitWhat can I do in the mean time to get started with juju?17:59
mupBug #1542652: juju-gui hangs on "Connecting to the Juju environment" <juju-gui:Triaged> <https://launchpad.net/bugs/1542652>17:59
marcoceppismartbit: you don't really need the gui to use Juju. If you ssh into the vagrant box you can just "juju status" or issue any other of the juju commands to start interacting with the environment18:01
smartbitI understand, but would like to get a hands-on with it. Particular on juju 2.0 alpha.18:03
smartbithands-on with the GUI18:04
marcoceppismartbit: hum, if you'd like you could apply here: https://developer.juju.solutions and we can give you AWS cloud run time18:04
marcoceppismartbit: that way you won't need to use vagrant and the GUI will work there18:05
smartbitseems resonable. I'll take the AWS route for now.18:05
haasnstub: retry on the unit just gave me the same error again, I had to physically destroy the machine it was on (because there's no way to force-destroy a unit afaik) and everything it was connected with and start over from scratch. Also “juju destroy-machine --force” is my definition if nuking it and starting over18:11
haasnEspecially when it means I'm trying to deploy, say, the “openstack-monitoring” solution, and afaik there's no way to “partially” add that solution except painstakingly and by hand, so I have to nuke every other service and start from scratch again18:13
haasn.. and of course if another machine gets stuck on ‘pending’ the second time around, again18:13
haasnand so on18:13
haasnIt just doesn't seem like a very reliable design18:13
smartbitmarco: submitted the request18:18
marcoceppismartbit: you should have an email in a few mins18:22
asanjarrandleman: hi there, are you going to be at IBM Interconnect20:05
=== natefinch is now known as natefinch-afk
lazypower|travelasanjar o/20:57
asanjarhi lazypower|travel, how are you my friend20:58
lazypower|travelReally good :) bumming around in Oxford UK on mini-cation. Dropped in to check messages20:58
asanjarlazypower|travel: wow Mr. traveler21:02
lazypower|travelTryin anyway :)21:02
asanjarlazypower|travel: are you enjoying the weather? you must go to an EPL game21:03
lazypower|travelWell, I saw a Rugby match yesterday at the pub where I went to watch an ice hockey game. The weather has been miserable since I arrived, but thats to be expected for the time of year21:04
marcoceppistub: you about?21:56
haasnHmm. I can so reliably reproduce this issue that I'm really struggling to think of what's going on22:49
haasnBasically I add a machine in juju (configured with a MAAS environment). It acquires a node and starts deploying it, and the deployment process completes + the machine shuts down afterwards22:50
haasnAnd.. that's it22:50
haasnThe machine never turns itself back on, and even if I turn it on manually again juju just sits there and does nothing22:50
haasnit's supposed to ssh into the machine and start running apt updates etc.22:50
haasnand it works on some machines, just inexplicably not others. The ones it fails on are all VMs, but I'm not sure if that's just a coincidence22:50
haasnbut it _has_ worked on VMs just fine, too22:51
haasnseems pretty random22:51
haasnHmm, I think I'm getting closer: ssh into the machine and `sudo reboot` also does not work, it just shuts down22:59

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