| Posted | Nick | Remark | |
|---|---|---|---|
| #openstack-nova - 2019-11-26 | |||
| 15:21:51 | efried | that's perhaps a culture we should seek to amend in light of falling numbers. | |
| 15:22:56 | efried | What's your alternative? Hang out in IRC and pounce on someone? Or just wait and pray? | |
| 15:23:08 | mriedem | adding the entire core team to lots of reviews isn't going to make people start reviewing things | |
| 15:23:19 | efried | I've always thought that was kind of a crappy expectation for casual contributors. | |
| 15:23:20 | mriedem | if it's important, yes, ask in irc or in the meeting | |
| 15:23:32 | mriedem | you can post things on the meeting for awareness without actually attending | |
| 15:23:57 | openstackgerrit | John Garbutt proposed openstack/nova master: WIP: Enforce unified limits using oslo.limit https://review.opendev.org/615180 | |
| 15:24:00 | mriedem | we've said multiple times that most if not all cores are ok with people asking for reviews in here (within reason) | |
| 15:24:01 | efried | "lots of reviews" principle applies regardless of the method | |
| 15:24:24 | efried | anyway, sorry, /me crawls back into hole | |
| 15:31:40 | mriedem | stephenfin: another way to get eyes on that series is putting it in runways - which has basically been empty all of ussuri | |
| 15:31:47 | mriedem | so i'm not sure why we're even doing runways anymore | |
| 15:32:20 | artom | mriedem, playing devil's advocate for a bit, a new contributor might now even know runways are a thing | |
| 15:32:25 | artom | *not even | |
| 15:32:38 | mriedem | i was going to tell dpawlik but they left | |
| 15:32:52 | mriedem | is dpawlik red hat? | |
| 15:33:16 | artom | mriedem, not to my knowledge | |
| 15:33:53 | artom | If they are, they're not Nova | |
| 15:34:02 | mriedem | at least they are documented https://docs.openstack.org/nova/latest/contributor/process.html#runways | |
| 15:36:16 | mriedem | ok dpawlik is ovh https://www.stackalytics.com/?user_id=daniel-pawlik | |
| 15:36:25 | mriedem | ovh devs aren't new to openstack or nova | |
| 15:36:26 | artom | mriedem, so, putting myself in the shoes of a new contributor, that link doesn't tell me "put your series in this etherpad and monitor it. When it hits a runway, be available to respond to feedback quickly and iterate fast." | |
| 15:36:33 | mriedem | so i'd hope that within their dev team they can explain how things work | |
| 15:36:47 | mriedem | artom: so write up some contributor docs | |
| 15:36:48 | sean-k-mooney | i added https://review.opendev.org/#/c/674072/ to the runway queue for what its worth. i thought i already had but i guess not | |
| 15:36:55 | artom | mriedem, can't argue with that :) | |
| 15:37:14 | mriedem | writing up stuff like this is near impossible, because it's either too much or not enough content | |
| 15:37:27 | mriedem | i'm pretty sure there are summit videos on this topic but people would have to find and watch them | |
| 15:37:40 | mriedem | within an organization of decent size with multiple developers there should also be mentoring | |
| 15:37:46 | mriedem | that's what we had at ibm when i was new to openstack | |
| 15:37:47 | artom | I know there are no magic bullets | |
| 15:37:47 | sean-k-mooney | speaking of which are there any from china? | |
| 15:37:48 | efried | mdbooth: it looks like mriedem was expecting you to weigh in on https://review.opendev.org/#/c/693537/ before it goes. Might you have a chance to hit that soon? | |
| 15:38:17 | mriedem | sean-k-mooney: any what from china? | |
| 15:38:24 | artom | mriedem, it's been a while since we've had someone entirely new to openstack join RH, but we did try to help francoisp get up to speed when he came in | |
| 15:38:26 | sean-k-mooney | ya it looks liek they start going up last week | |
| 15:38:31 | sean-k-mooney | mriedem: summit videos | |
| 15:38:32 | artom | That was really the only example I can think of | |
| 15:38:40 | artom | Everyone else we hired from upstream, so to speak | |
| 15:38:47 | mriedem | sean-k-mooney: the vidoes i saw posted were sparse - mostly keynotes and some vendor things | |
| 15:39:43 | mriedem | i'm pretty sure there is also a welcome wagon sig or something in openstack | |
| 15:39:49 | mriedem | so there are resources, but people need to do some work to find them | |
| 15:43:38 | artom | stephenfin, hey, so https://review.opendev.org/#/c/672595/ is still around. Can I help in any way to get another round of review from you on that? | |
| 15:43:49 | artom | Split it? Take over something of yours? | |
| 15:44:37 | stephenfin | nah, I just need to do it, but I have my head stuck into the removal of the nova-network security group driver. Could I look at it tomorrow? | |
| 15:44:54 | artom | stephenfin, sure - no huge rush, at this point. | |
| 15:45:09 | artom | I wanted to backport it to Train, but I probably missed the train (zing!) on that | |
| 15:45:19 | artom | I'll try anyways when it merges, see how it goes | |
| 15:58:47 | openstackgerrit | John Garbutt proposed openstack/nova master: WIP: Enforce unified limits using oslo.limit https://review.opendev.org/615180 | |
| 16:20:24 | gmann | tssurya: but we do not know whether it is wrong or right. if keystone permissions to GET project is more strict than nova user, then project might exist but not shown to nova | |
| 16:22:58 | tssurya | gmann: sure but the problem with the current implementation is that it treats everything as "right". Even if the project is invalid, we end up giving the user the right to feed anything into the flavor_projects table | |
| 16:28:14 | gmann | tssurya: but it is 403, in case of invalid it will hit 404 condition. not 404 means project is there | |
| 16:34:49 | openstackgerrit | Merged openstack/nova master: api-guide: remove empty sections about inter-service interactions https://review.opendev.org/695774 | |
| 16:35:19 | openstackgerrit | Eric Fried proposed openstack/nova master: DNM: Test openstacksdk weakrefs https://review.opendev.org/695934 | |
| 16:35:32 | tssurya | gmann: not really there can be a 403 on a case where the project doesn't exist right ? | |
| 16:35:52 | tssurya | because tenant doesn't have permission to verify if the project exists ? | |
| 16:39:19 | gmann | tssurya: not sure keystone does that and return 404 instead of 403. I know neutron return otherway- any PUT/DELETE request first call the GET and return 404 even resource exist and no permissions to GET(they do not return 403 because that is somehow telling resource exit). | |
| 16:40:23 | tssurya | gmann: yea I guess keystone is returning 403 which nova is silently ignoring | |
| 16:40:28 | gmann | i think keystone return 403 for permissions denied on GET project not 404. lbragstad ? | |
| 16:40:44 | gmann | lbragstad can confirm this for us. | |
| 16:40:47 | lbragstad | gmann it depends | |
| 16:41:09 | lbragstad | if you're technically authorized to get a project (e.g., you're a system administrator) you'll get a 404 | |
| 16:41:30 | lbragstad | if you don't have the right authorization - then you get a 403 | |
| 16:41:58 | gmann | yeah that is what nova assume- https://github.com/openstack/nova/blob/fd67f69cfdaf04620f2e8a5f1fbf5737096965d8/nova/api/openstack/identity.py#L26 | |
| 16:42:22 | lbragstad | gmann ok - yeah, that looks right | |
| 16:42:24 | gmann | 403 means project is valid and exist and its only permission issue | |
| 16:42:35 | gmann | lbragstad: thanks for quick confirmation. | |
| 16:42:47 | lbragstad | well - the project may exist, but your first problem is that you're hitting a permission issue | |
| 16:43:00 | tssurya | gmann: I don't think 403 ensures project exists | |
| 16:43:19 | lbragstad | if you hit a 403, you should fix the permission issue and eventually retry | |
| 16:43:37 | tssurya | because we have a couple of non-existing entries in our flavor_projects | |
| 16:43:55 | tssurya | non-existing project entries* | |
| 16:44:14 | lbragstad | a 403 isn't conclusive that the project exists | |
| 16:44:20 | gmann | tssurya: but in those cases, we will get 404 right | |
| 16:44:26 | tssurya | lbragstad: yea that makes sense | |
| 16:44:31 | tssurya | gmann: nope we don't get the 404 | |
| 16:45:01 | tssurya | I had a user inject "ABCD" project into the database :D | |
| 16:45:09 | gmann | tssurya: yeah it is 'may' exist | |
| 16:45:11 | tssurya | which doesn't exist | |
| 16:45:14 | tssurya | hehe | |
| 16:46:08 | openstack | Launchpad bug 1854053 in OpenStack Compute (nova) "_add_tenant_access silently ignores 403" [Undecided,New] | |
| 16:46:08 | tssurya | I've opened a bug here: https://bugs.launchpad.net/nova/+bug/1854053 | |
| 16:46:42 | tssurya | probably nova should raise for a 403 or prompt user to retry or something | |
| 16:49:29 | gmann | tssurya: with default policy which is admin only should work but if overridden then yes it can make non-exist project entry in flavor access | |
| 16:50:11 | tssurya | gmann: yea that's true, in this case it was done from a service project by a user having admin role | |
| 16:50:51 | mriedem | tssurya: without reading all of the scrollback, "sure but the problem with the current implementation is that it treats everything as "right". Even if the project is invalid, we end up giving the user the right to feed anything into the flavor_projects table" is exactly how that api worked before that change to validate the project id provided | |
| 16:50:56 | tssurya | nevertheless allowing "ok" and then feeding whatever value is coming from the user is not ok | |
| 16:51:12 | mriedem | the project id validation is best effort | |
| 16:51:47 | tssurya | mriedem: aha, I didn't know the history | |
| 16:52:17 | gmann | tssurya: mriedem i think we should only proceed the request for 2xx case and rest all return 400 with error message of what we get from keystone | |
| 16:52:24 | mriedem | so in this case we're using the token from the request context or the configurable keystone auth in nova? | |
| 16:52:44 | mriedem | gmann: which is an api change | |
| 16:53:33 | mriedem | by configurable keystone auth in nova i mean this https://docs.openstack.org/nova/latest/configuration/config.html#keystone | |
| 16:53:37 | gmann | yeah | |
| 16:53:39 | mriedem | service user configured in nova to talk to keystone | |
| 16:53:44 | mriedem | like we do for neutron and cinder | |
| 16:54:21 | mriedem | so doesn't that just mean the service user configured in nova to talk to keystone doesn't have enough permissions to know if the given project_id exists? | |
| 16:54:40 | tssurya | mriedem: right | |
| 16:54:45 | tssurya | exactly | |
| 16:55:07 | tssurya | https://github.com/openstack/nova/blob/fd67f69cfdaf04620f2e8a5f1fbf5737096965d8/nova/api/openstack/identity.py#L62 | |