Friday, 2020-04-03

carlosshey, gouthamr... I was still curious about the thing we just talked, and I remembered I haven't seen any database migration for share_group quotas and in the share_network quotas implementation...00:14
carlossthen, after further investigations I found out what was happening00:15
gouthamrcarloss: yeah this one is special, because we didn't introduce quotas along with the resources00:15
carlossI think it was my mistake, and here is why:00:16
gouthamr...00:16
carlosswhen we ask manila to reserve some quota for a given resource, the quota system will call a function in the db to reserve the quotas. Then if a quota usage record with that resource name is not yet created, a new record is going to be created in the db00:16
carlossotherwise it will not be created and a sync with the existing resources is not going to be performed00:17
carlosswhen creating this new record, manila checks of there is need to refresh - https://github.com/openstack/manila/blob/3be50ced7a57ab84fcc2b65c52213d339424ec17/manila/db/sqlalchemy/api.py#L99400:17
carlossIf so, it will call the _sync_usages function for a given resource, _sync_replica_gigabytes, for example. If this query is executed, the usages for the resource are going to be updated and the resources are going to be synchronized according to the current usages00:17
carlossHere is my mistake: I have tested this patch in my env some days ago, then I worked in another branch and then went back to the quota tests.00:18
carlossWhen I applied the patch again, the records for 'share_replicas' and 'replica_gigabytes' were already created in my db, so they were not being synchronized :)00:19
carlossthen, if you get an environment that never had the quotas for share replicas before, it will work just fine00:19
carlossi've performed tests again to confirm this behavior. I've deleted all the entries for that spcific quota_usages in my database, so I was able to simulate an environment that neved had quotas for share replicas before00:21
gouthamroh, nice - so you had quotas, and then for a brief period didn't, and created stuff, and now you have them again?00:21
carlossyep... basically because I used a single environment to test different changes00:23
gouthamrcool, i was thinking we were persisting usage in the db (which i think cinder currently does)00:23
gouthamrand had no refresh mechanism, but this makes sense00:24
carlossyep. my mistake :p00:24
carlosssry00:25
dviroelawesome!00:39
openstackgerritMerged openstack/manila master: Increase MANILA_SERVICE_VM_FLAVOR_DISK  https://review.opendev.org/71710400:41
dviroeloh, great!00:41
carloss:)00:42
openstackgerritDouglas Viroel proposed openstack/manila master: [NetApp] Improve create share from snapshot functionality  https://review.opendev.org/71264200:42
openstackgerritGoutham Pacha Ravi proposed openstack/manila stable/train: Increase MANILA_SERVICE_VM_FLAVOR_DISK  https://review.opendev.org/71715900:55
openstackgerrithaixin proposed openstack/manila-tempest-plugin master: Add function to test user messages query by timestamp  https://review.opendev.org/71684801:58
openstackgerritMerged openstack/manila master: Hacking: Fix E731  https://review.opendev.org/71656303:34
openstackgerrithaixin proposed openstack/manila-tempest-plugin master: Add function to test user messages query by timestamp  https://review.opendev.org/71684803:45
openstackgerritMerged openstack/manila-specs master: the message-list command now support filter since and before.  https://review.opendev.org/71646704:32
*** brinzhang has joined #openstack-manila05:16
*** brinzhang_ has quit IRC05:16
openstackgerritMerged openstack/manila master: Hacking: Fix W605  https://review.opendev.org/71657305:39
openstackgerrithaixin proposed openstack/manila-tempest-plugin master: Add function to test user messages query by timestamp  https://review.opendev.org/71684805:41
*** maaritamm has joined #openstack-manila05:51
*** haixin has joined #openstack-manila05:52
*** haixin_inspur has joined #openstack-manila05:56
*** haixin has quit IRC05:58
openstackgerritMerged openstack/manila-tempest-plugin master: Update hacking for Python3  https://review.opendev.org/71655907:13
*** brinzhang_ has joined #openstack-manila07:17
*** haixin__ has joined #openstack-manila07:18
*** brinzhang has quit IRC07:21
*** haixin_inspur has quit IRC07:21
*** maaritamm has quit IRC07:34
*** tosky has joined #openstack-manila07:44
*** brinzhang has joined #openstack-manila08:33
*** haixin_inspur has joined #openstack-manila08:33
*** brinzhang_ has quit IRC08:36
*** haixin__ has quit IRC08:36
openstackgerritTakashi Kajinami proposed openstack/puppet-manila stable/train: Fix rabbitmq dependency  https://review.opendev.org/71724708:37
openstackgerritTakashi Kajinami proposed openstack/puppet-manila stable/stein: Fix rabbitmq dependency  https://review.opendev.org/71724808:38
*** maaritamm has joined #openstack-manila08:42
*** rmart04 has joined #openstack-manila08:49
*** haixin__ has joined #openstack-manila08:49
*** haixin_inspur has quit IRC08:52
*** maaritamm has quit IRC09:05
*** maaritamm has joined #openstack-manila09:06
*** haixin_inspur has joined #openstack-manila09:23
*** haixin__ has quit IRC09:26
*** haixin__ has joined #openstack-manila09:38
*** haixin_inspur has quit IRC09:41
*** maaritamm has quit IRC10:00
*** maaritamm has joined #openstack-manila10:06
*** brinzhang has quit IRC10:09
*** haixin__ has quit IRC10:19
*** maaritamm has quit IRC10:31
*** maaritamm has joined #openstack-manila10:48
*** andrebeltrami has joined #openstack-manila12:48
*** zigo has quit IRC12:48
*** zigo has joined #openstack-manila12:51
*** maaritamm has quit IRC13:11
*** maaritamm has joined #openstack-manila13:13
*** maaritamm has quit IRC13:55
*** maaritamm has joined #openstack-manila14:13
openstackgerritMerged openstack/puppet-manila stable/stein: Fix rabbitmq dependency  https://review.opendev.org/71724814:20
openstackgerritMerged openstack/puppet-manila stable/train: Fix rabbitmq dependency  https://review.opendev.org/71724714:27
openstackgerritMerged openstack/manila master: Revert "Remove provisioned calculation on non thin provision backends"  https://review.opendev.org/71668314:37
*** maaritamm has quit IRC15:18
*** maaritamm has joined #openstack-manila15:28
openstackgerritVictoria Martinez de la Cruz proposed openstack/manila-ui master: Use unittest.mock instead of third party mock  https://review.opendev.org/71732515:40
*** maaritamm has quit IRC16:10
*** maaritamm has joined #openstack-manila16:18
*** maaritamm has quit IRC16:32
openstackgerritDouglas Viroel proposed openstack/manila master: [NetApp] Improve create share from snapshot functionality  https://review.opendev.org/71264216:44
openstackgerritVictoria Martinez de la Cruz proposed openstack/manila-ui master: Use unittest.mock instead of third party mock  https://review.opendev.org/71732517:48
openstackgerritMerged openstack/manila master: Support query user message by timestamp  https://review.opendev.org/70643818:11
*** maaritamm has joined #openstack-manila18:19
*** rmart04 has quit IRC18:38
dviroelhey gouthamr19:03
gouthamrdviroel: sup19:04
dviroelgouthamr: what do you think of updating the features changes with the following microversion: quotas 2.53 and create share from snap another pool to 2.5419:04
gouthamrdviroel: sure, good idea, are there no other code conflicts?19:05
dviroela few I think, messages for example. easy to deal it19:05
dviroelgouthamr: the idea is to merge quotas first, do you agree them19:06
dviroelthen19:07
dviroelquotas has less dependencies than the other patches..19:07
gouthamrdviroel: yeah, i've no issue with it19:10
dviroelgouthamr: ack, ty19:10
dviroelcarloss: 2.53 for you :)19:10
carlossack. ty dviroel gouth19:11
*** maaritamm has quit IRC19:17
*** maaritamm has joined #openstack-manila19:19
* carloss realizes now that the autocomplete haven't worked :p19:22
*** maaritamm has quit IRC19:36
*** maaritamm has joined #openstack-manila19:40
openstackgerritMerged openstack/python-manilaclient master: Support query user message by timestamp  https://review.opendev.org/70880720:37
openstackgerritDouglas Viroel proposed openstack/manila master: Create share from snapshot in another pool or backend  https://review.opendev.org/70969720:47
gouthamrtbarron: hey, how about constraining the version of manila tempest plugin in older python 2 jobs?21:05
gouthamrtbarron: something else that's python3 specific could potentially break next, no?21:05
openstackgerritDouglas Viroel proposed openstack/manila master: [NetApp] Improve create share from snapshot functionality  https://review.opendev.org/71264221:07
tbarronwe could but I think we should also/first fix the test-requirement for hacking to by py3 specific21:07
tbarronrequires less philosopy than constraining tempest to a tag b/c it's branchless, etc.21:08
gouthamrtbarron: hmmm, yeah either fix will work, but, we specifically created a tag for python221:09
gouthamror we didn't for manila-tempest-plugin21:13
openstackgerritTom Barron proposed openstack/manila-tempest-plugin master: Fix hacking test requirement  https://review.opendev.org/71739521:13
tbarrongouthamr: I don't object to the approach you are advocating (if we find or make a tag).21:14
tbarronmaybe some tempest purists would?21:14
tbarronBut the proposed fix ^^^ would not be incompatible with it, and this one should be quick.21:15
gouthamrtbarron: figured that was the route when i was exploring the neutron-tempest-plugin issue21:15
tbarrongouthamr: we might as well just branch the plugin :D then, wouldn't really break anything, right?21:16
tbarrona tag is like a branch that never grows21:16
gouthamrtbarron: sigh, we need a drink21:16
tbarronmorphine21:16
gouthamrlol21:17
vkmco.o21:17
* vkmc sends coffee21:17
tbarronshouldn't have said, that, I might summon carlos' tramydol friend21:17
dviroellol21:18
gouthamrnot irc police, but carloss has a friend that sells tramadol?21:19
vkmcaahaha21:19
carlosslol21:19
vkmcI remember that21:19
vkmcthe tramadol guy even reported a bug in manila21:19
gouthamrmanila can serve your pharmacy needs21:20
vkmcwell, commented in a reported bug21:20
vkmcxD21:20
carlosshaha21:21
vkmcdo you want storage? or you mean... drugs?21:21
carlossthat bug modifications/comments were completely unexpected21:21
tbarronwe kept fixing this bug carloss owned, but the t-guy kept changing it into an advertisement for his wares21:26
carlossfound the bug link, tbarron :p21:29
carlosshttps://bugs.launchpad.net/manila/+bug/182011821:29
openstackLaunchpad bug 1820118 in Manila "Manila unexpectedly attempts to delete a share server when deleting a share network" [Medium,Fix released] - Assigned to Carlos Eduardo (silvacarlose)21:29
gouthamrgood times21:29
tbarroncarloss: seems like yesterday21:30
carlossyes, tbarron... time flies21:31
vkmchahaha21:31
tbarrongouthamr: i had a merge conflict and chose the wrong combo, sec21:32
tbarrongouthamr: mordred was suggesting just skipping the hacking requirement when python < 3, just21:35
tbarronomitting that line21:36
gouthamrtbarron: oh21:36
tbarronI'm gonna post it that way but if you want to do that we can21:36
gouthamrtbarron: no you're right, we don't run pep8 jobs21:36
tbarrons/I'm gonna/I was going to/21:36
gouthamrtbarron: so its okay to skip it since we won't test manila-tempest-plugin itself with py2 linters21:37
gouthamror in a py2 env21:37
tbarrondo you prefer ">'3'" or ">='3'" ?21:37
tbarronwe wont run with exactly 321:37
gouthamrtrue, >3 would do i think21:37
tbarronkk21:38
openstackgerritTom Barron proposed openstack/manila-tempest-plugin master: Fix hacking test requirement  https://review.opendev.org/71739521:38
tbarronlets see what I can mangle this time21:38
tbarronthere is no python vesion21:38
tbarrondviroel: ty, sec21:39
openstackgerritTom Barron proposed openstack/manila-tempest-plugin master: Fix hacking test requirement  https://review.opendev.org/71739521:41
dviroel:)21:43
*** maaritamm has quit IRC22:07
openstackgerritMerged openstack/manila-tempest-plugin master: Fix hacking test requirement  https://review.opendev.org/71739522:23
*** andrebeltrami has quit IRC22:57
*** tosky has quit IRC23:16

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