Wednesday, 2021-08-04

opendevreviewGoutham Pacha Ravi proposed openstack/python-manilaclient master: Refactor code from oslo_incubator  https://review.opendev.org/c/openstack/python-manilaclient/+/80342106:08
opendevreviewGoutham Pacha Ravi proposed openstack/python-manilaclient master: Refactor code from oslo_incubator  https://review.opendev.org/c/openstack/python-manilaclient/+/80342106:12
opendevreviewArchana Kumari proposed openstack/python-manilaclient master: [OSC] Implement Share Group Commands  https://review.opendev.org/c/openstack/python-manilaclient/+/80174006:47
opendevreviewGoutham Pacha Ravi proposed openstack/python-manilaclient master: WIP: Metadata for all user facing resources  https://review.opendev.org/c/openstack/python-manilaclient/+/80342407:37
opendevreviewArchana Kumari proposed openstack/python-manilaclient master: [OSC] Implement Share Group Commands  https://review.opendev.org/c/openstack/python-manilaclient/+/80174008:04
fzzfHi, I'm doing tempest test on driver, I have encountered problem. https://paste.opendev.org/show/807879/  The first two are 'tempest run' show. In the end is m-api log. this occur when tearDownClass .But when I execute it alone, it all success. I have modify rest server performance params, but it doesn't work. I adjust requests method with timeout=None is no useless.09:29
gouthamrfzzf: when you see "Target share type still in use"; its usually an indication that a prior test failed, and we're unable to delete the share from that test failure - and re-attempts have failed as well; do you have the full tempest log?09:40
fzzfgouthamr: How to export tempest logs09:42
vkmcfzzf, o/ how are you running tempest? 09:43
vkmcredirecting the output of the command to a file should be enough09:43
fzzfvkmc: I run tempest run -r manila_tempest_tests.tests.api09:44
vkmcfzzf, oki, you can do "tempest run -r manila_tempest_tests.tests.api > tempest-output" and then paste the content of that file in paste.openstack.org09:45
vkmcso we get the full log09:45
fzzfvkmc:umm,I save screen as file. it's ok09:47
vkmcfzzf, not sure if I follow, what do you mean with save screen?09:49
fzzfvkmc: I can't paste it on paste.opendev.org. it show Could not submit your paste because your paste contains spam.09:52
vkmcfzzf, maybe that's because of the length09:53
vkmctry centos pastebin https://pastebin.centos.org/09:53
fzzfvkmc: ok. I paste it. https://paste.centos.org/view/22425b6a 09:55
vkmcawesome, thx09:55
vkmcfzzf, sorry, got in a meeting10:43
vkmcfzzf, so I see several timeouts, which might be related to 1. an unhealthy environment (check m-shr, m-sch and m-api logs) 2. not enough resources10:44
vkmcprobably 1. 10:44
vkmccould you check those logs?10:44
opendevreviewGoutham Pacha Ravi proposed openstack/python-manilaclient master: WIP: Metadata for all user facing resources  https://review.opendev.org/c/openstack/python-manilaclient/+/80342410:45
fzzfvkmc: it's fine. I check logs.there are error correspond to tempest log.https://paste.opendev.org/show/807882/ . But I have no idea to fix it. what is 2. mean?10:59
*** dviroel|out is now known as dviroel11:16
opendevreviewArchana Kumari proposed openstack/python-manilaclient master: [OSC] Implement Share Group Commands  https://review.opendev.org/c/openstack/python-manilaclient/+/80174011:32
vkmcfzzf, would need more information... from the logs 12:02
vkmcfzzf, try running a subset of tests12:02
vkmcfzzf, what is the output of "tempest run -r manila_tempest_tests.tests.api.test_shares_actions"?12:02
fzzfvkmc: when I run subset of tests. it all success exclude some skipped 12:11
fzzfhttps://paste.opendev.org/show/807884/12:12
vkmcfzzf, ok, so let's try "tempest run -r --concurrency 2 manila_tempest_tests.tests.api"12:27
vkmcif that doesn't work, I guess we can try running test serially... it might take more time, but should take less resources 12:29
fzzfvkmc: is this? tempest run -r --concurrency 2 manila_tempest_tests.tests.api12:32
fzzftempest run: error: argument --regex/-r: expected one argument12:32
fzzfwhen i run 12:32
vkmcfzzf, ah, sorry, "tempest run --concurrency 2 -r manila_tempest_tests.tests.api"12:32
vkmcthere12:32
fzzfok12:33
fzzfwhat is this params using12:34
fzzflimit thread?12:34
vkmcfzzf, https://docs.openstack.org/tempest/latest/run.html#test-execution12:35
vkmcyep12:35
fzzfvkmc:not enough resources is refer to manila's server or backend server12:42
vkmcfzzf, hmm, I'd try playing with those params, maybe trying the serial approach... seems it's a problem with resources you have, because the environment otherwise is healthy 12:43
fzzfvkmc: I don't understand. My tempest plugin is installed on the same computer as manila.Is this right? resources problem is refer to this computer or backend device computer?12:50
vkmcfzzf, is this a development environment? 12:55
fzzfvkmc:yes12:56
vkmcfzzf, I assume it is a virtual machine? 12:56
fzzfvkmc:no,it's a physical server12:57
vkmcfzzf, the deployment is fine, I mean, having tempest in the same place as you have manila 12:58
vkmcfzzf, but if we analyze a bit things, the deployment seems to be healthy if it's the one you are using and you don't see any error on the logs... running a subset of the tests succeed because it doesn't require so much compute power to run... running the full suite, though, starts throwing timeouts  13:00
vkmcso that makes me think there might be some resources constrains13:01
vkmcI might need more info to understand the real problem13:01
vkmcso that's why I advise you to try running the integration suite with lower concurrency/serially... since that might require less resources 13:02
vkmcsorry I cannot help more13:02
vkmcmaybe someone else has a better idea though ^13:02
fzzfvkmc:yes,it seem like computer resource is not enough. 13:03
vkmcfzzf, tempest is quite resource demanding :( 13:03
vkmcwe sometimes hit similar issues in our CI 13:04
fzzfI have not installed CI.Should CI be installed in the same place as manila?13:05
vkmcfzzf, oh no, I don't think you should have that in your development environment 13:06
fzzfvkcm: I have finsh tempest. it success13:06
vkmc\o/13:07
fzzfvkmc:sorry. it's a testing environment acutally13:07
vkmcawesome! 13:07
vkmcwith concurrency set to 2? 13:07
fzzfvkmc: yes13:07
vkmcsweet! 13:07
vkmcfzzf, so maybe you can try increasing concurrency a bit so next run doesn't take so much for you... I believe default is 8, so you can try with 4 or 6 13:08
fzzfvkmc: What do you mean by development environment? this environment is built to complete manila's driver test.13:10
vkmcfzzf, I mean an environment you/your team is using for bug fixes and/or feature development 13:11
vkmcor for testing some specific functionality 13:11
vkmcI get you are testing a manila driver13:11
fzzfvkmc: I'm doing new dirver test. I have asked you before If you remember. Should the CI environment and tempest be installed together?13:17
fzzfNow I only have installed manila and tempest in one server.13:18
vkmcfzzf, so... if you are developing a new driver then you need to submit a third party CI for your driver13:20
vkmcmaybe carloss can give more context on this ^13:20
fzzfvkmc: umm,yes,I have asked before. I just don't understand Should CI be installed in a new environment?13:21
vkmcfzzf, no, you don't need to install CI in a new environment13:22
fzzfI mean the environment don't have manila and tempest13:22
carlossiirc tempest will try to use all cores available in your machine, that's why we usually set a limit for it. The NetApp CI usually runs tempest using only 2 cores (--concurrency=2). It makes the execution last longer13:28
carlossgathering more information about third party CI, just a sec...13:32
carloss:)13:32
vkmcthanks carloss :) 13:32
vkmcI don't know much about third party CI, I thought we have a bit more of docs about that13:32
vkmcmaybe I'm looking on the wrong place13:33
fzzfcarloss: thanks. I'm recommend use Software Factory as the base for new CI system.https://wiki.openstack.org/wiki/CinderXenaPTGSummary#Using_Software_Factory_for_Cinder_Third_Party_CI13:35
carlossfzzf: here's some more information about the third party CI: https://docs.opendev.org/opendev/system-config/latest/third_party.html14:24
carlossYes, the software factory to deploy the third party CI is a great tool and people are using it a lot - it makes lives easier when deploying zuul, gerrit and other tools. It's higly recommended and Pure recently used it and document some steps, so it's worth reading their documentations and watching their presentation in the previous ptg14:24
carlossOne of the requirements to have your driver merged is that you have a third party CI running the tempest tests using your driver and your backend, so we can certify that the operations that were implemented are working properly. Also, the third party CI must be voting in the openstack/manila changes (not only the one that introduces the new driver - we require that because there are lots of changes happening at the same 14:24
carlosstime in manila and the third party CI output is a good thermometer to check if such changes are not going to break the drivers).14:24
carlossGiven that, here is a high level (very high level :p) overview of how the CI works for NetApp as an example14:24
carloss1. We keep listening to the upstream gerrit. As soon as we detected that zuul voted +1 in a change, we go to phase 2.14:24
carloss2. We get this change and we launch a new node (node = new VM in nodepool) or get one that was waiting to be used. The node is created using an operational system image we have configured previously14:24
carloss3. We configure our backends - we have a set of storages dedicated to running tests, so we get one device and add it in the local.conf of the devstack, and manila can do operations there14:24
carloss4. Set up devstack (we enable tempest in the installation)14:24
carloss5. When the setup is done, we run the tempest tests, and the backends that are going to be used to do so are NetApp backends, since they are the ones we kept in enabled_share_backends14:24
carloss6. We wait for the tests to be completed, get the logs and save them in a place where is available for everyone to see (people should be able to check the logs of the tests execution) - here's an example of a test result output: https://logs.openstack.netapp.com/logs/41/734041/15/upstream-check/manila-cDOT-ss/d9cc6a7/14:24
carloss7. Post the vote and the logs in the upstream gerrit14:24
carlossThere might be other ways to do it as well... In the way we do, it works quite okay, because whenever our zuul realizes a new change as added, we just launch a new vm and when tests are done, the vms are immediately dropped.14:24
carlossSo in a brief summary: we have the CI system, it launches nodes (VMs), we install devstack with tempest in those nodes, we collect the results of the tests, make them available and vote in the change14:24
carlosss/(node = new VM in nodepool)/(node = VM managed by nodepool, but created in a hypervisor dedicated to setup vms)14:27
carlosszuul/nodepool will automate a lot of this things for you :)14:28
*** dviroel is now known as dviroel|out20:38
opendevreviewAshley Rodriguez proposed openstack/manila master: WIP:Add Share Snapshot Metadata Resource  https://review.opendev.org/c/openstack/manila/+/80137222:44

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