Earlier  
Posted Nick Remark
#openstack-nova - 2021-06-11
14:28:49 gibi lyarwood: or did I have a wrong signature?
14:29:55 gmann dansmith: i see. and that is say system admin want to update server?
14:30:29 gmann or any other project member want to update some other project server?
14:31:08 dansmith well, right, I'm thinking the case where you want to do something more powerful, like say "project X is under project Y, so let project Y people manage project X servers too"
14:31:27 gmann humm
14:31:32 dansmith which is kinda the point of the RBAC work eventually, right? to make the policy actually let people do more complicated things like that.. no?
14:33:56 gmann dansmith: I think that is separate things if we want to allow than current secure RBAC which does not allow these kind of things instead restricting access
14:34:23 gmann project isolation is one things in new secure rbac but your use case is opposite to that
14:34:44 dansmith hrm
14:35:09 lyarwood <gibi "lyarwood: or did I have a wrong "> Yeah that's correct, iirc c-vol also hit something like this so maybe that's the duplicate?
14:35:54 dansmith gmann: my case is just my interpretation of what I thought the end goal was, so maybe I'm being too broad
14:36:16 gibi lyarwood: I see that we hit this during update_available_resource that simply skips the update and does not cause the job failure
14:36:20 lyarwood Sorry gibi, ^ was for you, somehow replied in element (matrix) and I'm not sure what that looks like in vanilla irc.
14:36:39 gibi lyarwood: it quotes part of the original message so it work for me :)
14:36:46 gmann dansmith: yeah because in most of the case we pass instance.project_id as target to oslo policy
14:36:57 gibi lyarwood: so most of the logstash hits are actual job SUCCESS as it only hit the during periodic
14:37:09 gmann dansmith: if we want to allow cross project operation we have to change that model and db things too what you mentioned
14:37:13 lyarwood Cool cool, the nova-lvm failure I saw was during instance deletion
14:37:31 gibi lyarwood: yeah, if we hit it during other operation then the test fails
14:37:36 lyarwood So maybe we just need to retry on failure here
14:37:52 lyarwood As it's just a basic lvs command
14:37:56 gibi lyarwood: but the hit in the periodic shows that the underlying issue it temprorary as the next periodic succeeds
14:38:10 gibi lyarwood: yeah, so a retry could help
14:38:14 lyarwood Yup cool, I'll work on that on Monday
14:38:35 gibi cool
14:39:01 gibi lyarwood: should I open a bug report on it?
14:39:09 gibi I have the context now
14:39:22 gibi and still have time today :)
14:40:03 gmann dansmith: yes, too broad :). I think in that case they should allocate that user a system token and ask to do other project things. but system to do project servers operation is another challenge what we discussded in PTG
14:40:29 lyarwood I already have
14:40:31 opendevreview Merged openstack/nova master: docs: Add releases to libvirt distro support matrix https://review.opendev.org/c/openstack/nova/+/792415
14:40:41 lyarwood Tagged under gate-failure
14:40:52 lyarwood Sorry I thought that's what you were looking at
14:41:16 gibi no problem, then I go and add more info under that
14:46:05 lyarwood Cool thanks
14:47:43 opendevreview Pierre Riteau proposed openstack/nova master: Fix typos in minimum version policy docs https://review.opendev.org/c/openstack/nova/+/795575
14:50:31 gibi lyarwood: is this a new type of detach error https://zuul.opendev.org/t/openstack/build/02e6a99bf1574c978c663eb434705cbb/log/controller/logs/screen-n-cpu.txt?severity=0#34810 ?
14:51:11 gibi as far as I see it fails to detach from the live domain
14:51:20 gibi as the device is not there any more
14:51:44 gibi hmm, there is a DeviceRemovedEvent that was ignored :/
14:51:53 gibi sounds like a bug in the nova detach code
14:52:15 gibi I will file a bug and look into the root case
14:59:54 dansmith gmann: sorry I got pulled away
15:00:39 dansmith gmann: yeah, so I think I might be missing some keystone knowledge here.. and perhaps I'm trying to put too much capability in the projects for flexibility in terms of mapping people to abilities or somethin
15:03:41 gmann dansmith: afaik, one of the point to have system admin was this -to isolate project level stuff and remove project admin which was kind of global admin before new rbac
15:03:52 gmann as current project admin is admin to that project only
15:04:02 gmann current i mean after new rbac
15:05:08 dansmith yeah, I know that's one of the big tenets
15:40:45 dansmith gmann: okay I think I've straightened myself out on the cross-project thing
15:41:32 dansmith gmann: specifically related to enforcing policies in the api, I have another question
15:42:18 dansmith gmann: presumably if you have some role that lets you update a resource but not show it (possible if you configure policy that way), then you could not be able to show a resource, but make some trivial update to it and get a copy of it in the result of the PUT
15:42:57 dansmith I assume we would consider that acceptable because you gave that user update perms and the update call returns the resource...
15:43:19 dansmith just thinking of a case where you want some script to be able to reboot an instance but not see the metadata for it which contains a license key or something
15:44:00 gmann dansmith: yeah that's true. PUT has permission to show all info so they get.
15:44:39 dansmith okay, I figure that's the most straightforward thing to do -- not break the result of PUT just because you don't have get perms
15:44:40 gmann dansmith: in that case, we can introduce the new policy to restrict those metadata
15:45:15 dansmith yeah, sure, and that's legit, but I just wonder if someone would interpret restricting get to mean "they can never see this resource any way at all" which won't be the case
15:45:43 gmann dansmith: other way I think neutron does (need to check again) is check GET policy before PUT and deny if they do not have access to GET.
15:46:08 dansmith meaning require get and put perms to do a PUT, or just check get perms before returning the result?
15:46:38 gmann dansmith: I think yes, let me check. that is what i remember when i discussed it with amotoki in Toyko time.
15:46:47 dansmith the latter may make sense, but is probably not worth it, IMHO.. the former seems wrong
15:48:04 dansmith write-implies-read makes sense, write-requires-read does not, IMHO
15:56:57 gmann dansmith: cannot find that, will check later
15:57:13 dansmith gmann: no worries, not important at the moment, just curious
15:58:35 gmann dansmith: what we can do is restrict the PUT response if GET is not permit. GET-not-permit in this case (where PUT is allowed) means do not show server info instead of no access to server
15:59:23 dansmith gmann: yeah, that's the only thing that makes sense I think.. but I think you can argue that it's not worth that level of granularity
16:00:28 dansmith basically, three options: 1. PUT requires GET to work at all (bad) 2. PUT will show you the result even if you don't have GET (acceptable) 3. PUT will only show you the result if you also have GET (acceptable)
16:00:54 dansmith #2 is easy/default, #3 is doable
16:01:26 gmann yeah, we can do #3 if anyone ask for that and have that requirement of allow-write but no-read
16:02:05 dansmith ++
16:14:04 opendevreview Balazs Gibizer proposed openstack/nova master: Add debug log for device detach libvirt error https://review.opendev.org/c/openstack/nova/+/796043
16:16:27 gibi lyarwood: I think I found out that libvirt has an extra way to tell us that a device we try to detach is missing. So our handler in nova does not recognize it as VIR_ERR_DEVICE_MISSING but handles it as unexpected and blows
16:16:47 gibi lyarwood: I pushed a patch that adds a debug log to show what error code libvirt returns in this case
16:17:06 gibi https://bugs.launchpad.net/nova/+bug/1931716
16:23:31 gmann dansmith: i was wrong on neutron check GET permission to update resource. They check GET permission in PUT/DELETE just to decide whether to return 403 or 404 if PUT is not permitted. - https://github.com/openstack/neutron/blob/master/neutron/api/v2/base.py#L671-L685
16:23:52 dansmith gmann: ah, another interesting wrinkle
16:24:08 gmann yeah :)
16:27:03 opendevreview Ade Lee proposed openstack/nova master: Add check job for FIPS https://review.opendev.org/c/openstack/nova/+/790519
22:06:34 opendevreview Ghanshyam proposed openstack/nova stable/train: DNM: testing https://review.opendev.org/c/openstack/nova/+/796070
#openstack-nova - 2021-06-12
06:24:17 opendevreview Balazs Gibizer proposed openstack/nova master: Add debug log for device detach libvirt error https://review.opendev.org/c/openstack/nova/+/796043
11:55:12 opendevreview Merged openstack/nova master: zuul: Skip block migration with attached volumes tests due to bug #1931702 https://review.opendev.org/c/openstack/nova/+/795992
17:27:02 opendevreview Merged openstack/nova master: virt: Add destroy_secrets kwarg to destroy and cleanup https://review.opendev.org/c/openstack/nova/+/794252
20:55:32 opendevreview Merged openstack/nova master: requirements: Add types-paramiko https://review.opendev.org/c/openstack/nova/+/795533
#openstack-nova - 2021-06-13
01:33:24 opendevreview Wenping Song proposed openstack/nova master: Replaces tenant_id with project_id from List/Update Servers APIs https://review.opendev.org/c/openstack/nova/+/764292
01:34:22 opendevreview Wenping Song proposed openstack/nova master: Replace all_tenants with all_projects in List Server APIs https://review.opendev.org/c/openstack/nova/+/765311
05:49:34 opendevreview Merged openstack/nova master: libvirt: Do not destroy volume secrets during _hard_reboot https://review.opendev.org/c/openstack/nova/+/793463
05:58:02 opendevreview Merged openstack/nova master: Remove (almost) all references to 'instance_type' https://review.opendev.org/c/openstack/nova/+/778547
08:47:23 opendevreview Jorhson Deng proposed openstack/nova master: remove the redundantcode for attach interface https://review.opendev.org/c/openstack/nova/+/796208
08:54:13 opendevreview Jorhson Deng proposed openstack/nova master: remove the redundant code for attach interface https://review.opendev.org/c/openstack/nova/+/796208
08:57:23 opendevreview Jorhson Deng proposed openstack/nova master: recheck the attachment_id after the reschedule successful https://review.opendev.org/c/openstack/nova/+/796209
09:05:50 opendevreview Jorhson Deng proposed openstack/nova master: recheck the attachment_id after the reschedule successful https://review.opendev.org/c/openstack/nova/+/796209
09:07:05 opendevreview Jorhson Deng proposed openstack/nova master: recheck the attachment_id after the reschedule successful https://review.opendev.org/c/openstack/nova/+/796209
09:12:32 opendevreview Jorhson Deng proposed openstack/nova master: recheck the attachment_id after the reschedule successful reference: https://opendev.org/openstack/nova/src/branch/master/nova/compute/manager.py#L2897 https://review.opendev.org/c/openstack/nova/+/796209
#openstack-nova - 2021-06-14
05:16:49 gibi good morning
05:16:57 gibi early cores, can we turn on mypy now https://review.opendev.org/c/openstack/nova/+/795973 ?
05:17:17 gibi the missing requirement for mpyp 0.9 has been merged over the weekend
07:47:38 bauzas gibi: I could do it but...
07:47:47 gibi but? :)
07:47:52 gibi ahh, you are the author
07:47:55 bauzas ;)

Earlier   Later