Thursday, 2020-11-26

*** baojg has joined #openstack-manila01:49
*** baojg has quit IRC02:39
*** LinPeiWen62 has quit IRC02:42
*** LinPeiWen has joined #openstack-manila02:56
*** ivan_lin has joined #openstack-manila02:59
*** baojg has joined #openstack-manila03:02
*** jv has quit IRC03:16
*** baojg has quit IRC04:18
*** vishalmanchanda has joined #openstack-manila04:22
*** baojg has joined #openstack-manila05:04
*** ivan_lin has quit IRC05:56
*** ivan_lin has joined #openstack-manila05:57
openstackgerrithaixin proposed openstack/manila master: Extend share will go through scheduler  https://review.opendev.org/c/openstack/manila/+/70039306:07
*** baojg has quit IRC06:14
*** baojg has joined #openstack-manila06:17
openstackgerritLiron Kuchlani proposed openstack/manila-tempest-plugin master: Manila threading  https://review.opendev.org/c/openstack/manila-tempest-plugin/+/76428608:06
openstackgerritLiron Kuchlani proposed openstack/manila-tempest-plugin master: Update share access to "ro" during writing operation  https://review.opendev.org/c/openstack/manila-tempest-plugin/+/76428708:06
openstackgerritLiron Kuchlani proposed openstack/manila-tempest-plugin master: Update share access to "ro" during writing operation  https://review.opendev.org/c/openstack/manila-tempest-plugin/+/76429008:28
*** tosky has joined #openstack-manila08:37
openstackgerrithaixin proposed openstack/manila master: Extend share will go through scheduler  https://review.opendev.org/c/openstack/manila/+/70039309:24
*** LinPeiWen has quit IRC09:36
*** lpetrut has joined #openstack-manila10:39
*** LinPeiWen has joined #openstack-manila10:39
*** raildo has joined #openstack-manila11:45
*** dviroel has joined #openstack-manila12:05
*** ianychoi_ has joined #openstack-manila12:35
*** ianychoi has quit IRC12:36
*** lpetrut has quit IRC13:08
*** lpetrut has joined #openstack-manila13:10
*** baojg has quit IRC14:11
*** iurygregory has quit IRC15:02
*** lpetrut has quit IRC15:33
*** lpetrut has joined #openstack-manila15:48
*** baojg has joined #openstack-manila16:19
*** jv has joined #openstack-manila16:29
*** jv has quit IRC16:30
*** tosky has quit IRC17:17
*** lpetrut has quit IRC20:02
*** jmlowe has joined #openstack-manila20:06
*** ivan_lin has quit IRC20:15
*** ivan_lin has joined #openstack-manila20:16
*** tosky has joined #openstack-manila21:09
*** raildo has quit IRC21:31
vkmccarloss, hey, still around?22:00
vkmcI have an api question22:00
vkmcmaybe you can help me22:00
carlossyes vkmc :)22:00
vkmc:D22:00
vkmcmaybe it's silly, but I'm confused22:01
vkmccan we retrieve share-types by name by directly hitting the api?22:01
vkmcaccording to the api ref, we always pass the share-type-id https://docs.openstack.org/api-ref/shared-file-system/?expanded=show-share-type-detail-detail,list-default-share-types-detail#share-types22:02
vkmcbut we have a tempest test in which we pass a name22:02
carlossyeah, as far as I remember the api ref is correct22:05
vkmcI wonder *how* this tempest test is working though22:05
vkmcin the gate22:05
vkmcat least22:05
carlosshehe, it is a good question22:06
vkmchttps://github.com/openstack/manila-tempest-plugin/blob/master/manila_tempest_tests/tests/scenario/manager_share.py#L454-L45622:06
vkmcthis specifically22:06
vkmcwhen the default share type is picked, we use the name to define the default share type in the config file22:06
vkmcwe usually call it "default" in the gates22:07
vkmcand we perform a get with the name... not the uuid22:07
vkmccarloss, thanks for confirming the api ref22:07
carlossyw vkmc22:08
carlossI'm trying to understand why it is working as is22:08
carlossit makes me curious22:08
vkmcunless we put the uuid instead of the name in the conf file22:09
vkmcbut... I haven't seen that in the deployments we usually create with devstack22:09
carlossyep...22:16
carlossperformed some tests specifying -d in the python-manilaclient to check the requests that were made, and found out that the requests aren't using the share-type name22:17
vkmcwe get the id in the client22:18
vkmchttps://github.com/openstack/python-manilaclient/blob/master/manilaclient/v2/share_types.py#L134-L14122:19
vkmcbut in tempest22:19
vkmcwe use a different client22:19
vkmchttps://github.com/openstack/manila-tempest-plugin/blob/master/manila_tempest_tests/services/share/json/shares_client.py#L635-L63822:20
vkmcand just taking as an example one scenario test... we never retrieve the id for the default share type22:21
vkmcI wonder why we don't use our client for that... instead of using that implementation22:21
*** vishalmanchanda has quit IRC22:21
carlossyeah, i get your point22:29
vkmcI'll submit a test patch and see what happens :)22:36
vkmcthanks carloss++22:36
carlossyw vkmc22:38
carlossbtw, vkmc, i noticed a weird behavior22:38
vkmcwhere?22:39
carlosswas trying some requests in postman and realized that if we specify /types/default, the request returns an objecty22:39
carlossbut if it is another share type, i received 40422:40
carlossso get /types/default works just fine, but a request to get a share type i have (dummy_dhss_false) /types/dummy_dhss_false returns 40422:41
carlossso the test that specifies the share type named default will always work22:42
carlossbut if the name is different from default, it won't22:42
vkmcoh wait22:42
vkmcthat's because we have an endpoint22:42
vkmchttps://docs.openstack.org/api-ref/shared-file-system/?expanded=show-share-type-detail-detail,list-default-share-types-detail#list-default-share-types22:43
vkmcthis one :D22:43
vkmcthat makes sense then22:43
carlossoh, that's true :)22:43
carlossyes, makes sense :)22:43
vkmcbut it's a bug22:43
vkmcbecause if you create a default share type that is name carlos_default22:43
vkmcthen it breaks22:43
vkmcso we need to fix the get_share_type in the tempest client AND we need to add a get_default_share_type that leverages that endpoint22:45
carlossoh, actually it will try to get the share type that is set as default in the manila.conf - https://github.com/openstack/manila/blob/master/manila/api/v2/share_types.py#L10522:49
vkmcyes :)22:49
vkmcoh wait22:49
carlossthen, if I create a default share type called carlos_default and set in the manila.conf, it will work :)22:49
vkmcI get it now22:49
vkmcperfect22:49
vkmcstill there is a bug22:50
vkmcbecause we are passing the share type name to a function that expects the share_type id22:51
vkmcand there is no function calling the share-type/default endpoint22:52
carlossyes22:56
carlossif the share type we use for the test comes to have another name, it'd fail constantly22:57
vkmc++23:02
openstackgerritVictoria Martinez de la Cruz proposed openstack/manila-tempest-plugin master: Adds get default share type function  https://review.opendev.org/c/openstack/manila-tempest-plugin/+/76439223:33

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