Tuesday, 2021-08-31

opendevreviewVida Haririan proposed openstack/python-manilaclient master: [OSC] Implement Share Limits Show command  https://review.opendev.org/c/openstack/python-manilaclient/+/80508801:10
opendevreviewGoutham Pacha Ravi proposed openstack/manila stable/wallaby: Add documentation for share server limits  https://review.opendev.org/c/openstack/manila/+/80669007:13
opendevreviewGoutham Pacha Ravi proposed openstack/manila stable/train: fixes  availability zone filter when creating a share from snapshot  https://review.opendev.org/c/openstack/manila/+/80669107:14
opendevreviewGoutham Pacha Ravi proposed openstack/manila stable/wallaby: handle replica state on migration complete  https://review.opendev.org/c/openstack/manila/+/80669207:15
opendevreviewGoutham Pacha Ravi proposed openstack/manila stable/wallaby: Add missing [oslo_reports] options  https://review.opendev.org/c/openstack/manila/+/80669307:15
opendevreviewGoutham Pacha Ravi proposed openstack/manila stable/victoria: Use oslo-config-generator conf to load options from libraries  https://review.opendev.org/c/openstack/manila/+/80669407:16
opendevreviewVida Haririan proposed openstack/python-manilaclient master: [OSC] Implement Share Limits Show command  https://review.opendev.org/c/openstack/python-manilaclient/+/80508807:53
opendevreviewhaixin proposed openstack/manila master: Manila share support Recycle Bin  https://review.opendev.org/c/openstack/manila/+/80075310:23
opendevreviewFelipe Rodrigues proposed openstack/manila master: [NetApp] Add readable replication type support  https://review.opendev.org/c/openstack/manila/+/80362110:40
opendevreviewFelipe Rodrigues proposed openstack/manila master: [NetApp] Add FlexGroup volume support  https://review.opendev.org/c/openstack/manila/+/80362211:46
opendevreviewFelipe Rodrigues proposed openstack/manila master: [NetApp] Add FlexGroup volume support  https://review.opendev.org/c/openstack/manila/+/80362212:46
opendevreviewNahim Alves de Souza proposed openstack/manila master: [NetApp] Fix list of mandatory services for CIFS share creation  https://review.opendev.org/c/openstack/manila/+/80676415:26
opendevreviewNahim Alves de Souza proposed openstack/manila master: [NetApp] Fix list of mandatory services for CIFS share creation  https://review.opendev.org/c/openstack/manila/+/80676415:30
opendevreviewAshley Rodriguez proposed openstack/manila master: [WIP] Replace retrying with tenacity  https://review.opendev.org/c/openstack/manila/+/80191115:39
*** dviroel|out is now known as dviroel|ruck16:54
ashrodrihey are you around?16:59
ashrodrigouthamr16:59
opendevreviewkiran pawar proposed openstack/manila master: Add Share Affinity/Anti-Affinity Scheduler Filters  https://review.opendev.org/c/openstack/manila/+/77520117:04
gouthamrashrodri: ssup?17:29
ashrodrineed some assistance with the user_mod + policy unit test17:31
* gouthamr gets out of a meeting17:47
gouthamrashrodri: sure, is this on gerrit already?17:47
ashrodriyeah, https://review.opendev.org/c/openstack/manila/+/80664717:51
gouthamryou're referring to https://review.opendev.org/c/openstack/manila/+/806647/1/manila/tests/api/v1/test_share_metadata.py#230 ?17:54
ashrodriyeah, and line #33617:58
opendevreviewNahim Alves de Souza proposed openstack/python-manilaclient master: Implement OSC share instance export location commands  https://review.opendev.org/c/openstack/python-manilaclient/+/80530718:12
gouthamrashrodri: hey, i don't see code setting the "user_modifiable" field in the database18:19
gouthamrfor example: mod = {'user_modifiable': False}18:20
gouthamr        ref = db.share_metadata_get_item(18:20
gouthamr            self.userctxt, self.share_id, 'key11')18:20
gouthamr        ref.update(mod)18:20
gouthamr^ that update won't update the db18:20
ashrodrithe default value is True, that ^^ wont change it to False, how do I update it?18:22
gouthamrthe db update method could do that18:23
gouthamrin the "_share_metadata_update" method in sqlalchemy/api.py, check each of the "metadata" members if they specify a "user_modifiable" field18:24
gouthamrcurrently, metadata can look like this: {'foo': 'bar', 'qux': 'baz'}18:26
ashrodriso lines 3480-3484 in manila/db/sqlalchemy/api.py wouldnt work?18:26
ashrodriit checks if user_mod is false, then checks the policy. otherwise it updates metadata as it normally would18:27
gouthamryes, that part looks correct18:28
gouthamri meant, you're treating "key11" as non-usermodifiable metadata in your unit test18:29
ashrodriright18:29
gouthamrhowever, "key11" is user modifiable by default - you've not yet created a provision to override it 18:29
ashrodriohhhh, so I should make a new function that changes user_mod to False if the policy req is met?18:30
gouthamrnot a new function18:30
gouthamrlemme take a stab, i was thinking you could add some more logic to how the metadata dict is parsed18:30
ashrodricould we add a user_mod=True to the _share_metadata_update function, and allow only admins to set it to False?18:31
ashrodrias an argument I mean18:31
gouthamrashrodri: https://paste.opendev.org/show/808479/18:38
gouthamra kwarg wouldn't work since metadata is a dictionary of possibly more than one key=value pair18:38
ashrodriin "for meta_key, meta_value in metadata.items():" what is meta_key and meta_value supossed to be?18:46
ashrodrilike how it is parsing metadata.items?18:46
ashrodriwhen would meta_value be a dict, and not the value part of "key: value" which is what we expect to see in metadata?18:48
gouthamr> 11:48:18 AM <ashrodri> when would meta_value be a dict, and not the value part of "key: value" which is what we expect to see in metadata?18:59
gouthamrWhen you/someone specifies “user_modifiable” for a metadata item 19:00
gouthamrThis functionality wouldn’t be exposed to the metadata API19:00
gouthamrbut, I’m asking that you make it so that it’s available for use internally - you could use it to test for example19:01
gouthamrand we’ll soon use it in the affinity/anti-affinity scheduler hints19:01
ashrodriwhat do you mean by make it available internally? 19:11
opendevreviewVictoria Martinez de la Cruz proposed openstack/python-manilaclient master: [OSC] Implement Share Group Type Commands  https://review.opendev.org/c/openstack/python-manilaclient/+/80506419:14
gouthamrashrodri: unsure if i understand the question - a manila developer can make up service specific metadata that is not supposed to be end user modifiable19:23
gouthamrashrodri: examples of there are in the metadata spec (one currently in code is: "preferred" on export_locations), and we recently discussed the possibility of storing scheduler hints as metadata 19:25
gouthamrashrodri: such metadata is made up by the service, not an end user - so there's no need to allow end users any ability to set the "user_modifiable" attribute on metadata19:25
gouthamrashrodri: however, by rewriting the code like in https://paste.opendev.org/show/808479/, you allow for a possibility where the service can set that attribute on certain metadata items19:26
gouthamrashrodri: and, right now, in your unit test, you want to be able to create "key11" as metadata that's not user modifiable - but you need a way to set the "user_modifiable" key on the database -> since unit tests can use the internal sqlalchemy/db API directly, this is easy/possible19:28
ashrodriin your paste, you have "user_modifiable = meta_value.pop('user_modifiable', True)" wouldnt this mean that user_modfiable is always True? Even if a service tries to set it to False by submitting a dict like {'key': {'user_modifiable': False}} as metadata? unless im misinterpreting what you wrote19:46
gouthamrashrodri: try it in a python interpreter :)19:52
opendevreviewArchana Kumari proposed openstack/python-manilaclient master: [OSC] Implement Share Group Commands  https://review.opendev.org/c/openstack/python-manilaclient/+/80174020:02
opendevreviewAshley Rodriguez proposed openstack/manila master: [WIP] Add user_modifiable to share metadata  https://review.opendev.org/c/openstack/manila/+/80664720:02
opendevreviewAshley Rodriguez proposed openstack/manila master: Replace retrying with tenacity  https://review.opendev.org/c/openstack/manila/+/80191120:09
opendevreviewNahim Alves de Souza proposed openstack/python-manilaclient master: Implement OSC share instance export location commands  https://review.opendev.org/c/openstack/python-manilaclient/+/80530720:21
opendevreviewGoutham Pacha Ravi proposed openstack/manila master: [Optimise] Use ThredGroup to manage periodic tasks  https://review.opendev.org/c/openstack/manila/+/78970220:48
opendevreviewGoutham Pacha Ravi proposed openstack/python-manilaclient master: Manila client suppot recycle bin  https://review.opendev.org/c/openstack/python-manilaclient/+/80142420:55
opendevreviewGoutham Pacha Ravi proposed openstack/manila-ui master: Add update share-type name description and/or public access  https://review.opendev.org/c/openstack/manila-ui/+/68333621:04
opendevreviewGoutham Pacha Ravi proposed openstack/manila master: Fix api-ref for access rules  https://review.opendev.org/c/openstack/manila/+/78388521:10
gouthamrreviewers, https://etherpad.opendev.org/p/manila-xena-review-focus is updated with all the current/active changes prioritized by the ones that affect the API/clients and requirements files21:22
gouthamr^ does not mean things can't merge out of order - but having something above in the list just means we need to get stuff related to it merged, or we risk pushing it out of the release21:23
opendevreviewArchana Kumari proposed openstack/python-manilaclient master: [WIP] [OSC] Implement Share Server commands  https://review.opendev.org/c/openstack/python-manilaclient/+/80510721:31
carlossack gouthamr :)21:34
opendevreviewMerged openstack/manila master: [NetApp] Fix list of mandatory services for CIFS share creation  https://review.opendev.org/c/openstack/manila/+/80676422:26
opendevreviewMerged openstack/manila master: [doc] add since and before parameter to message-list cli  https://review.opendev.org/c/openstack/manila/+/80654822:26

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!