Thursday, 2017-09-21

*** LindaWang has joined #refstack00:52
*** claudiub|2 has joined #refstack04:40
*** Rockyg has joined #refstack04:46
*** markvoelker has quit IRC05:16
*** Rockyg has quit IRC06:03
*** claudiub has joined #refstack06:10
*** claudiub|2 has quit IRC06:12
*** xinliang has quit IRC06:57
*** xinliang has joined #refstack07:10
*** ChanServ sets mode: +o openstack07:13
*** markvoelker has joined #refstack07:18
*** markvoelker has quit IRC07:52
*** markvoelker has joined #refstack08:48
*** markvoelker has quit IRC09:21
*** markvoelker has joined #refstack10:19
*** markvoelker has quit IRC10:52
*** claudiub has quit IRC11:06
*** markvoelker has joined #refstack11:49
*** markvoelker has quit IRC11:54
*** markvoelker has joined #refstack11:56
*** LindaWang has quit IRC12:47
*** LindaWang has joined #refstack13:12
*** LindaWang has quit IRC16:18
*** catherineD has quit IRC16:24
*** catherineD has joined #refstack16:27
-openstackstatus- NOTICE: Gerrit OpenIDs have been accidentally overwritten and are in the process of being restored18:18
-openstackstatus- NOTICE: The Gerrit service on review.openstack.org is being taken offline briefly to perform database repair work but should be back up shortly18:25
*** ChanServ changes topic to "The Gerrit service on review.openstack.org is being taken offline briefly to perform database repair work but should be back up shortly"18:25
*** ChanServ changes topic to "#refstack now we're on storyboard: https://storyboard.openstack.org/#!/project/700"19:22
-openstackstatus- NOTICE: OpenIDs for the Gerrit service have been restored from a recent backup and the service is running again; before/after table states are being analyzed now to identify any remaining cleanup needed for changes made to accounts today19:22
*** annegentle has joined #refstack20:22
*** annegentle has quit IRC20:43
mguineyhowdy y'all!21:44
fungiokay, so starting to get prepared for the <thing> you need done to refstack.openstack.org21:45
mguineyso: we're currently taking a look at upgrading the refstack database, and need to make sure it is done as foundation admin, which requires the use of a "Foundation" group, as per the docs21:45
mguineyoops, sorry to reiterate21:46
fungiyeah, doc/source/refstack.rst says to create a group named "Foundation Group" group whereas we already have a "Group for OpenStack Foundation" group in the database21:46
fungiso wondering whether these serve different purposes or whether i'm supposed to use the latter21:47
*** beisner has quit IRC21:47
*** mrhillsman has quit IRC21:47
fungialso all the existing groups are named "Group for <something>" so creating a new group named "Foundation Group" would be completely counter to the existing naming convention, which makes me wonder whether the instructions there should be taken literally21:49
*** beisner has joined #refstack21:50
*** mrhillsman has joined #refstack21:50
fungilooks like Group for OpenStack Foundation currently just has hogepodge and mguiney in it21:53
fungialso, mguiney said something about "running a script" which requires foundation api permissions... what/where is the script in question?21:55
* fungi digs in meeting logs in search of clues21:55
mguineyah, let me link21:56
mguineywe are trying to get a patch merged for this real quick, but the script can be found here:21:57
mguineyhttps://github.com/openstack/refstack/blob/master/tools/update-rs-db.py21:57
fungihttps://git.openstack.org/cgit/openstack/refstack/diff/tools/update-rs-db.py is what i just found in the meeting log21:57
fungiahh, okay, same one21:57
mguineyit basically just grabs from a spreadsheet and adds in relevant data pertaining to the product to a given test result21:57
fungiand you were waiting for https://review.openstack.org/499956 to get approved i guess21:58
mguineythen, if all the updated data and links are valid, it verifies it21:58
mguineyyep.21:58
fungilooks like i'll need to pass it an api auth token; once i have a refstack account, how do i generate one of those?22:00
fungianyway, if it turns out we should use "Group for OpenStack Foundation" for this purpose, than there are already a couple people in that group who would ostensibly have permission to run the script in question... where are the acls for this defined?22:06
fungis/than/then/22:06
fungigrepping the source to see whether it's hard-coded to a specific group name or configurable22:08
fungiseems it looks for an organization with a type of 022:12
fungithere is only one organization with type=0, as expected22:13
fungiand its group_id does indeed match the id in the group table for "Group for OpenStack Foundation"22:14
fungiso i _think_ that means mguiney and hogepodge have the necessary permissions already?22:14
mguineyok so i just tracked some of it down22:15
mguineythe api uses a file found at $WORKING_DIR/refstack/refstack/api/constants.py to define ownership22:15
mguineythe default value, as defined in that file, on my install, is "foundation"22:16
mguineyit may be something different on the prod server22:16
fungiROLE_FOUNDATION is at least, but the permissions in refstack/db/sqlalchemy/api.py at least filter on group type FOUNDATION (which constants.py defines as 0)22:17
fungiand that maps to "Group for OpenStack Foundation" in the database22:17
fungifor the get_foundation_users() function22:19
mguineyexcellent, so we should(?) have perms after all :/22:19
mguineyi'm so sorry for the trouble22:19
fungino, it's no trouble, i just want to be reasonably sure i don't break something or create more cruft that needs cleaning up22:19
mguiney"role foundation" is 0 in mine as well, and i've successfully run the script22:20
fungiso, maybe try a fairly trivial operation that requires those permissions just to see?22:20
mguineyo722:20
fungiand if that doesn't work, then we can troubleshoot22:20
fungiand if someone shows up with a deeper knowledge of the codebase, maybe they can school us so we spend less time reverse-engineering this22:21
mguineycan you access, via a browser, refstack.org/v1/results ?22:22
mguineyrefstack.openstack.org, excuse me22:22
mguineyoh nevermind, hold on22:23
fungifwiw, refstack/api/controllers/products.py ProductsController.get() checks thusly: is_admin = user in db.get_foundation_users()22:24
fungiso i expect we're on the right track22:24
fungiand yes, https://refstack.openstack.org/ redirects to https://refstack.openstack.org/#/ for me and renders page content22:24
mguineyyeah, that's what i noticed when i did a bit of digging22:38
mguineytesting now22:38
*** markvoelker has quit IRC23:40

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