/srv/irclogs.ubuntu.com/2017/04/05/#juju.txt

wesleymasonhttps://blog.timescale.com/when-boring-is-awesome-building-a-scalable-time-series-database-on-postgresql-2900ea453ee200:06
wesleymasondoh, wrong channel00:06
=== frankban|afk is now known as frankban
erik_lonrothGreat post!07:28
pranav_Hi. Need help on keystone:identity-admin relation.11:55
pranav_Getting a 403 error when trying to list service/user with the admin user11:55
pranav_# /usr/bin/openstack --os-username admin --os-password "openstack" --os-project-name admin --os-auth-url http://172.101.101.9:5000/v3 --os-identity-api-version 3 project show service You are not authorized to perform the requested action: identity:list_projects. (HTTP 403) (Request-ID: req-f62bf819-b814-4335-a019-fd8cac60d433)11:56
pranav_keystone charm set with preffered-api-version 311:56
tardimctardyfaceHi all. Any thoughts on the best way to "refresh" all the juju machines after I restored the controller from a backup. Each machine/service is working fine but all agents show up as "lost" and all machines are "down". From bug-reports/docs I understand it's because each agent/machine doesn't know about the new controller IP address, but how do I force them to check a new one? Will "juju upgrade-juju" work?12:04
pranav_Hi Folks. Getting 403 forbidden error when using admin user credentials.12:32
pranav_# /usr/bin/openstack --os-username admin --os-password root123 --os-project-name admin --os-auth-url http://172.101.101.9:5000/v3 --os-identity-api-version 3 project show service You are not authorized to perform the requested action: identity:list_projects. (HTTP 403) (Request-ID: req-f453f64b-aa53-42f9-be36-49b3442faf3e)12:33
pranav_my charm creates a identity-admin relation.12:33
urulamabdx: so, i tried the replicate the "big bundle deploy" on a 2.2 tip and it passed without problems deploying on 100 machines13:42
urulamabdx: i'll verify on 2.1 and 2.0.2 now13:42
petevgcory_fu: I've got a lonely PR here: https://github.com/juju/python-libjuju/pull/105 (feel free to pull me into a hangout if you want to grill me on the approach -- I think that it's the Right Thing to do, but I'm open to arguments against :-) )14:14
cory_fupetevg: Yep, I have been looking at PRs all morning and that is on my list.  :)14:15
petevgcory_fu: cool. Thx :-)14:15
=== scuttle|afk is now known as scuttlemonkey
=== scuttlemonkey is now known as scuttle|afk
cory_fupetevg: LGTM.  I added a comment, but I'm +1 to merging it15:47
petevgcory_fu: cool. Will read the comment. Thank you.15:47
cory_fupetevg: Comment'd16:41
petevgcory_fu: thx.16:41
petevgcory_fu: left a comment on your comment. I think that you're right. There's a reason that I went the way that I did -- it avoids some potentially messy bits -- but having Python code that a dev can read is probably worth the cost of doing a bit of naughty magic with import.16:50
cory_fupetevg: I had a follow-up comment about how to handle the changes in the object layer, if you missed that16:53
petevgcory_fu: I missed it. And that's a good point, too. I assumed that the object layer would have the job of maintaining backwards compatibility. We could technically version it, too.16:54
cory_fupetevg: I definitely don't want to see the object layer versioned.  :p  Either conditionals in the object layer, or if it contains enough application logic (which I think it does) then a proper facade over the versioned API interfaces (what we're currently calling facades but which I think is inaccurate)16:58
petevgcory_fu: yeah. I'm writing a comment, but it's getting complex.16:58
petevgcory_fu: I think that you vision is good. I think that, practically speaking, we may have to drop in add-hoc fixes in the object layer to patch over the places where our Facades aren't really Facades.16:59
cory_fupetevg: Also, for making the import logic easier, what if we generate an __init__.py for the "facades" with an __all__ that lists the versions?  Then we just do a single normal import and a getattr  with the version number?16:59
cory_fupetevg: Our "facades" definitely aren't facades and will require translation, so I think we should start calling them versioned API interfaces ASAP17:00
cory_fu:)17:00
petevgcory_fu: That sounds like a good idea, though if I can figure out a way to do it without calling getattr, I'll be happier :-)17:00
cory_fupetevg: Also, I wasn't thinking that we'd do any monkey patching.  Rather, I was thinking of something like a get_versioned_api factory method or something.  Again, this should probably be wrapped in actual facades17:02
petevgcory_fu: yeah. The factory thing I mentioned in the notes sounds better and better.17:02
petevgcory_fu: ... and that almost makes these things into proper facades. The one missing piece is that your object layer might want to pass in extra args that only work with a newer version of juju, or might want to access properties on an object that don't exist in earlier versions.17:03
cory_fupetevg: When I say factory, I still mean that the Python code would be pre-generated.  There would just be a method responsible for returning you an instance of the right class by version.17:03
petevgcory_fu: exactly.17:03
cory_fuOk17:03
cory_fuJust wanted to make sure we were talking about the same thing.  :)17:03
cory_fuAnyway, I have to run to an appointment17:03
cory_fubbiab17:03
petevgcory_fu: so you do something like action = Action.connect, and you get the right version of an Action facade.17:04
petevgcory_fu: cool. Thx for all the comments, feedback, and generally making my life harder by bringing up things that I didn't thin about :-)17:04
petevg*think17:04
stormmoreo/ juju world17:24
=== frankban is now known as frankban|afk
stormmorehey marcoceppi I think I have figured out that replicaset issue18:18
bdxurulama: thats awesome! the set of fixed bugs @anastasiamac listed looked pretty applicable to what we were seeing ... great news none the less18:49
bdxurulama: did you still experience the issue on 2.0.2 and 2.1?18:49
urulamabdx: yeah, 2.0.2 right now ... i need to manually remove around 100 machines from gce console :D18:49
urulamabdx: we'll upgrade controllers to 2.1.2 soon, and then to 2.2 in may when it's out18:50
urulamasoon = this or latest next week18:50
bdxurulama: niceeeeee18:50
bdxurulama: does that mean the beta controller will rev too then?18:51
urulamabdx: not sure i understand the question18:52
bdxurulama: the hosted controller .... when will it get receive the upgrade to 2.1.2?18:53
urulamabdx: this or latest next week18:53
bdxurulama: my bad I miss read above ... thx18:54
urulamabdx: the upgrade to 2.2 will happen when it's out, and that is planned end of month, early May18:55
bdxurulama: thats great news18:56
bdxurulama: thanks for looking into this18:56
urulamabdx: np, always looking to improve where we can scale better :)18:58
josemarcoceppi: hey, do you have time for a quick call?19:00
=== smgoller is now known as Guest74578
marcoceppistormmore: I'm interested21:19
stormmoremarcoceppi, I updated the ticket with my notes on the issue21:22
stormmoremarcoceppi, just seems odd that the install would cause heapster to be deployed 3 times21:22
marcoceppistormmore: linky? (for the lazy)21:22
stormmorehttps://github.com/juju-solutions/bundle-canonical-kubernetes/issues/24121:23
stormmoremarcoceppi, you lazy?!? :P21:24
marcoceppi;)21:25
stormmoreI thought lazyPower was the only lazy one in here21:25
stormmoremarcoceppi, let me if what I put in there makes sense as I have been pretty brain-foggy today21:26

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