Sunday, 2016-11-27

*** salv-orlando has joined #openstack-sdks00:15
*** salv-orlando has quit IRC00:20
*** gouthamr has joined #openstack-sdks01:05
*** salv-orlando has joined #openstack-sdks01:16
*** salv-orlando has quit IRC01:21
*** salv-orlando has joined #openstack-sdks02:17
*** salv-orlando has quit IRC02:22
*** reedip_ has joined #openstack-sdks02:31
*** fzdarsky__ has joined #openstack-sdks02:45
*** fzdarsky_ has quit IRC02:49
*** salv-orlando has joined #openstack-sdks03:18
*** salv-orlando has quit IRC03:23
*** reedip_ has quit IRC03:48
*** gouthamr has quit IRC04:04
*** salv-orlando has joined #openstack-sdks04:19
*** salv-orlando has quit IRC04:24
*** salv-orlando has joined #openstack-sdks06:21
*** salv-orlando has quit IRC06:25
*** salv-orlando has joined #openstack-sdks07:22
*** salv-orl_ has joined #openstack-sdks07:23
*** salv-orlando has quit IRC07:27
*** salv-orl_ has quit IRC07:59
*** huanxuan has joined #openstack-sdks08:02
*** cdent has joined #openstack-sdks08:46
*** salv-orlando has joined #openstack-sdks09:00
*** salv-orlando has quit IRC09:05
*** GheRivero_vac is now known as GheRivero09:33
*** salv-orlando has joined #openstack-sdks10:01
*** salv-orlando has quit IRC10:05
*** kevo has quit IRC10:40
*** salv-orlando has joined #openstack-sdks11:02
*** salv-orlando has quit IRC11:06
openstackgerritImran Hayder Malik proposed openstack/golang-client: Fix the install guide to specify sub-package  https://review.openstack.org/40341511:31
*** salv-orlando has joined #openstack-sdks12:02
*** salv-orlando has quit IRC12:07
*** cdent has quit IRC12:19
*** salv-orlando has joined #openstack-sdks13:03
*** salv-orlando has quit IRC13:08
*** cdent has joined #openstack-sdks13:49
*** cdent_ has joined #openstack-sdks13:53
*** cdent has quit IRC13:53
*** cdent_ is now known as cdent13:53
*** huanxuan has quit IRC14:17
*** salv-orlando has joined #openstack-sdks14:49
*** salv-orlando has quit IRC14:54
*** salv-orlando has joined #openstack-sdks15:22
*** reedip_ has joined #openstack-sdks15:34
*** reedip_ has quit IRC15:47
*** edleafe- has quit IRC15:50
*** edleafe has joined #openstack-sdks15:50
*** cdent has quit IRC15:52
*** e0ne has joined #openstack-sdks16:12
*** gouthamr has joined #openstack-sdks17:35
*** kevo has joined #openstack-sdks17:38
*** e0ne has quit IRC17:40
*** salv-orlando has quit IRC18:04
*** salv-orlando has joined #openstack-sdks18:09
*** flwang1 has quit IRC18:18
*** e0ne has joined #openstack-sdks18:21
*** salv-orl_ has joined #openstack-sdks18:30
*** salv-orlando has quit IRC18:33
*** gouthamr has quit IRC18:33
*** flwang1 has joined #openstack-sdks19:50
*** salv-orl_ has quit IRC19:58
*** adriant has joined #openstack-sdks20:38
*** stream10 has joined #openstack-sdks21:24
*** kevo has quit IRC21:25
*** exploreshaifali has joined #openstack-sdks21:43
*** stream10 has quit IRC21:46
*** exploreshaifali has quit IRC21:51
*** e0ne has quit IRC22:17
*** jamielennox is now known as jamielennox|away22:21
*** spligak has joined #openstack-sdks22:26
spligakI'm having a heck of a time creating a project and associating a user with that project using keystoneclient. Are there any "project bootstrap" examples out there that I could reference? I've looked at horizon and the openstack cli, but I'm hoping something less muddied by scale/abstraction exists out there.22:28
spligakThe process is 1) create a role 2) create a project 3) create a user 4) grant the user the role on the project. Correct? Am I misunderstanding the basic process?22:30
*** jamielennox|away is now known as jamielennox22:34
jamielennoxspligak: typically you don't need to create a role in that sequence, but yes that's correct22:36
jamielennoxwhat's going wrong in the process?22:36
spligakjamielennox, once I get to the "grant role to user on project" step, keystoneclient is complaining that it can't find the role I'm trying to grant.22:43
spligakjamielennox, would it help if I put this in a gist? it's just a little script at this point.22:44
jamielennoxspligak: can i see what you've got? my first thought is that role there is an id and not the name you expect22:44
spligakjamielennox, https://gist.github.com/jasonjohnson/6a7b013eb523df5cb66ecac6f4870c8722:46
jamielennoxspligak: so this:22:47
jamielennox    print keystone.roles.grant(22:47
jamielennox        role="member",22:47
jamielennox        project="example",22:47
jamielennox        user="example"22:47
jamielennox)22:47
jamielennoxis not expecting a string name there but an id value22:47
jamielennoxbefore you have: role = keystone.roles.create(name='member')22:48
jamielennoxyou can pass that role object as a parameter to role=22:48
jamielennoxor you can pass role=role.id22:48
jamielennoxOSC does this for you behind the scenes, but you have to find the ids yourself when using hte client22:49
spligakjamielennox, okay. I'll fix that and try again.22:49
spligakjamielennox, a bit of progress. looks like the same issue with the "user" parameter. fixing that now, too.22:52
jamielennoxspligak: yep, it applies to pretty much everything22:52
spligakjamielennox, aaaaand project :) you're not kidding.22:53
spligakjamielennox, excellent. got that working - thank you.23:02
jamielennoxspligak: great - anything23:03
jamielennoxanytime23:03
jamielennoxfingers faster than brain today23:03

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