08:01:37 #startmeeting Functest weekly meeting July 25th 2017 08:01:37 Meeting started Tue Jul 25 08:01:37 2017 UTC. The chair is jose_lausuch. Information about MeetBot at http://wiki.debian.org/MeetBot. 08:01:37 Useful Commands: #action #agreed #help #info #idea #link #topic. 08:01:37 The meeting name has been set to 'functest_weekly_meeting_july_25th_2017' 08:01:42 #topic role call 08:01:42 #info Jose Lausuch 08:01:46 #info agenda for today: https://wiki.opnfv.org/display/functest/Functest+5.+Meeting#Functest5.Meeting-25/07(8UTC) 08:01:57 #info SerenaFeng 08:02:51 #info Linda Wang 08:03:11 #info Delia Popescu (ENEA) 08:03:52 #info Jun Li 08:04:54 #topic Action Point follow up 08:04:59 #info AP: jose_lausuch: create a jenkins job that triggers a deployment + testing on this server with Alpine containers. Healthcheck+smoke for the momment 08:05:04 #info DONE: https://gerrit.opnfv.org/gerrit/#/c/37683/ 08:05:10 #info AP: jose_lausuch: prepare jenkins job to run alpine containers on ericsson-virtual-pod1bl01 08:05:15 #info DONE: https://build.opnfv.org/ci/view/functest/job/functest-alpine-fuel-ericsson-virtual-pod1bl01-daily-master/7/console 08:05:26 #info AP: Linda check for a free baremetal server to connect it to jenkins for Alpine testing in Compass 08:05:33 Done 08:05:34 #info Done. We will use huawei-virtual5 for that purpose. https://build.opnfv.org/ci/computer/huawei-virtual5/ 08:05:41 #info Jenkins job still not working, but work in progress: https://build.opnfv.org/ci/view/functest/job/functest-alpine-compass-huawei-virtual5-daily-master/ 08:05:51 we will fix that today 08:06:01 #info AP: All review Functest API proposal https://gerrit.opnfv.org/gerrit/#/c/36703/ 08:06:15 #info work in progress, some comments to be reviewed. Topic today about that 08:06:25 #info AP jose_lausuch: propose internship "Add Web portal to TestAPI" https://wiki.opnfv.org/display/functest/Internship+proposals 08:06:29 #info Done. Internship online: https://wiki.opnfv.org/display/DEV/Intern+Project%3A+Web+Portal+for+OPNFV+Test+API 08:06:39 I also added an intern project about kubernetes 08:06:48 to write test cases 08:06:57 and got already 1 request for interview 08:07:10 questions? 08:08:34 #topic Alpine testing status 08:09:11 #info the alpine containers trigger on the virtual pod on the fuel deployment, but they get stuck at some point in api_check 08:09:28 #info maybe it's due to a bug in Snaps, and Steven is looking into it 08:09:43 #info we will try this week again and also with Apex and Compass 08:09:55 but why is it run successfully manually? 08:10:03 I don't know 08:10:13 that's why we need CI 08:11:11 Steven's patch about fixing that issue has been merged once. 08:11:26 can you point to that pach? 08:11:43 https://gerrit.opnfv.org/gerrit/#/c/37873/ 08:11:49 is it this? 08:11:53 i am not sure :( 08:12:11 could be 08:12:15 we can try again today 08:12:32 #info there are some bugfixes in snaps repo that might fix the problems 08:13:05 my plan is to deploy apex on the pod I am using 08:13:07 and do the same 08:13:17 but before I will try 1 again with fuel 08:13:17 Here is the jira: https://jira.opnfv.org/browse/SNAPS-139 08:13:20 ok 08:13:38 #info Jira created addressing that issue https://jira.opnfv.org/browse/SNAPS-139 08:13:39 thanks 08:14:06 we can't say more about alpine 08:14:09 can we? 08:14:33 i am waiting for feedback about Funtest RestAPI 08:15:35 About Alpine, just try to run it in CI and expose issues asap. 08:16:34 And Cedric and Steven seem to be very helpful to fix. 08:16:49 #topic Rest API 08:16:58 let's discuss about the api now 08:17:05 I didn't see the latest comments 08:17:09 what's the status? 08:17:30 I have a comment 08:17:37 i have updated it according to Serena's suggestion. 08:18:01 Sorry in the last patch we have the problem of mingle api with cli, now we have another, is where to put the abstracted common methods, we cannot put it in cli, it is actually still mingled in this way. In my opinion the best solution should be put them either in the source code or we keep some replica code. Take list test case for example: 08:18:01 1) in the source code define a new method list_summary_tests()(naming is bad just for instance), then call it directly in CliTestcase and ApiTestcase 08:18:02 2) Keep CliTestcase untouched, do it again in ApiTestcase 08:18:02 What do you think Jose? 08:18:04 And my apology for didn't notice this in the first place 08:18:43 where to put the abstracted common methods? 08:18:51 as we can see in functest/api/actions/api_xx.py, we still import cli things 08:18:52 from functest.cli.commands.cli_env import Env 08:18:58 yes 08:19:15 which can not be said decoupled 08:19:31 from my side, there are two options 08:19:37 1) in the source code define a new method list_summary_tests()(naming is bad just for instance), then call it directly in CliTestcase and ApiTestcase 08:19:42 2) Keep CliTestcase untouched, do it again in ApiTestcase 08:20:01 serena-zte: if we keep CLItestcase untouched, we will return a table 08:20:06 I like this idea https://gerrit.opnfv.org/gerrit/#/c/36703/20/functest/cli/commands/cli_env.py 08:20:19 it returns env_info and CliEnv will create the table 08:20:25 and ApiEnv will return a dict 08:20:28 is that what you suggested? 08:20:29 yes 08:20:30 For option 2, there will be some codes replicated 08:20:42 but class Env() can not be put in cli_env 08:21:20 actually it can not be put neither under api directory/file or cli directory/file 08:21:27 you are right. 08:21:51 so the point is where to put it. 08:21:54 so personally I prefer option 1 08:22:24 in our case, I think the best place is to put in function code 08:23:12 env relevant to be put in prepare_env.py 08:24:26 hmmm 08:24:31 that complicates things 08:24:31 testcase relevant under tierBuilder 08:24:43 why do we have to decouple cli and api totally? 08:24:55 I kind of agree 08:24:56 because they are different things 08:25:01 but would like to do it step by step 08:25:09 they don't rely on each other 08:25:11 instead of a big patch changing everything 08:25:17 that's right 08:26:18 all tools code should rely on function code directly 08:27:03 could i update it in another patch? 08:28:25 I am ok with that 08:28:42 thanks :) 08:28:50 another question 08:28:54 api: 08:28:54 # Functest Rest API related configuration 08:28:54 success: 0 08:28:54 error: 1 08:29:13 what are these configurations used for? 08:30:32 to return different code according to request. 08:30:46 but i have not used these so fat 08:30:48 so far 08:30:58 i don't think these should be put here 08:31:12 we can leverage some exception code to address it 08:31:46 they are return value, not configurations 08:31:59 it is used here: 08:31:59 if not testcase: 08:31:59 return api_utils.result_handler( 08:31:59 CONST.__getattribute__('api_error'), 'case not exists') 08:32:26 ok, make sense. 08:32:59 in this case, you should raise http related exception 08:33:17 or in a list operation return empty list 08:33:39 sorry, make it clear, get operation, raise not found exception 08:33:49 list operation, return empty list 08:34:20 is there any difference between get and list? 08:34:37 yes, get usually mean get specific one thing 08:34:40 list is realized by get method. 08:35:13 fine. 08:35:27 list return a group of things, usually use a list 08:36:04 and if there are some configurations for api, I would prefer to put it in etc/functest-api/config.ini 08:36:22 I wouldn't recommend to put in config_functest.yaml 08:36:41 both are configurations but different dimensions 08:37:20 after installation etc/api/config.ini will but put into /etc/functest-api/config.ini 08:37:36 that's usually how APIs works 08:38:26 ok. 08:38:38 that's all I can come up with, currently 08:39:20 you are always helpful. :) 08:39:57 try to be helpful :) 08:40:45 :) 08:40:48 good discussiong 08:40:54 LindaWang: some things to update, right? 08:41:02 yes 08:41:15 thanks for the feedback serena-zte. More valuable than mine :) 08:44:16 so 08:44:24 I think we don't have more topics to talk about 08:44:24 so 08:44:27 #topic AoB 08:44:32 anyone wants to raise something? 08:44:59 no from me. 08:45:04 nope 08:46:15 I have something 08:46:20 I will take August off 08:46:35 will read emails from time to time 08:46:56 I will send you my private email address just in case something urgent comes up 08:47:11 so, maybe next week I do this meeting again (need to check) 08:47:18 that's very kind 08:47:18 but I will announce you before 08:48:20 ok, we can close the meeting if nothing else is to be discussed 08:48:24 thank you all 08:48:29 #endmeeting