Dear squad developer
I used to squad docker of https://github.com/Linaro/squad.
And squad system running in my localhost. LAVA too.
I want check the submit test for squad.
Using a python script submit_for_testing.py in https://git.linaro.org/ci/job/configs.git
command is below : python submit_for_testing.py --device-type abc-abc-abc --build-number no1 --lava-server https://192.168.1.20:9099 --qa-server http://192.168.1.70:8000 --qa-server-project remote-lava-prj --qa-server-team remote-lava-team --test-plan lava-test-plan.yaml
response : "QA Reports submission failed"
What is that mean ? Squad system setup missing or wrong command?
If that command are success respone, something show on squad explore?
Thanks
kchhero
On Fri, 14 Dec 2018 at 09:16, Patrick.C Jeon kchhero@gmail.com wrote:
Dear squad developer
I used to squad docker of https://github.com/Linaro/squad.
And squad system running in my localhost. LAVA too.
I want check the submit test for squad.
Using a python script submit_for_testing.py in https://git.linaro.org/ci/job/configs.git
command is below : python submit_for_testing.py --device-type abc-abc-abc --build-number no1 --lava-server https://192.168.1.20:9099 --qa-server http://192.168.1.70:8000 --qa-server-project remote-lava-prj --qa-server-team remote-lava-team --test-plan lava-test-plan.yaml
Do you have 'remote-lava-prj' defined in your SQUAD instance? Do you have 'remote-lava-team' defined in your SQUAD instance? Does 'lava-test-plan.yaml' exist and is in the same path as submit_for_testing.py?
response : "QA Reports submission failed"
What is that mean ? Squad system setup missing or wrong command?
It can mean a couple of things. The message comes from submit_for_testing.py. Please check what is the offending test job. It might give some clue.
milosz
If that command are success respone, something show on squad explore?
Thanks
kchhero
-- *행동하지 않으면 변화는 없다* _______________________________________________ Squad-dev mailing list Squad-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/squad-dev
On Fri, Dec 14, 2018 at 05:45:46PM +0900, Patrick.C Jeon wrote:
Dear squad developer
I used to squad docker of https://github.com/Linaro/squad.
And squad system running in my localhost. LAVA too.
I want check the submit test for squad.
Using a python script submit_for_testing.py in https://git.linaro.org/ci/job/configs.git
command is below : python submit_for_testing.py --device-type abc-abc-abc --build-number no1 --lava-server https://192.168.1.20:9099 --qa-server http://192.168.1.70:8000 --qa-server-project remote-lava-prj --qa-server-team remote-lava-team --test-plan lava-test-plan.yaml
response : "QA Reports submission failed"
What is that mean ? Squad system setup missing or wrong command?
If that command are success respone, something show on squad explore?
Hi Patrick -
Are you setting --qa-token or QA_REPORTS_TOKEN?
If that's not the problem, you may need to patch submit_for_testing.py to get a better error; it looks like the try/except is a little broad and it could be a number of things. I don't know where your submit_for_testing.py is coming from, but you could try a patch like the following to try to narrow it down:
diff --git a/openembedded-lkft/submit_for_testing.py b/openembedded-lkft/submit_for_testing.py index 5cc137a0..b0ecb706 100644 --- a/openembedded-lkft/submit_for_testing.py +++ b/openembedded-lkft/submit_for_testing.py @@ -84,7 +84,7 @@ def _submit_to_squad(lava_job, lava_url_base, qa_server_api, qa_server_base, qa_ print(results.status_code) print(results.text) except requests.exceptions.RequestException as err: - print("QA Reports submission failed") + print("QA Reports submission failed: {}".format(str(err))) if not quiet: print("offending job definition:") print(lava_job)
Hope that helps, Dan
Thanks
kchhero
-- *행동하지 않으면 변화는 없다* _______________________________________________ Squad-dev mailing list Squad-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/squad-dev
Dear Dan
I tried to narrow it down as your comment.
Of course, the qa-token value matches the token value of the squad user, and qemu01.yaml also exists.
$ python configs/submit_for_testing.py \ --device-type qemu \ --build-number no1 \ --lava-server my.lava.server \ --qa-server http://192.168.1.20:8000 \ --qa-server-project my-prj \ --qa-server-team my-lava-team \ --test-plan qemu01.yaml \ --qa-token 6e8795e925a3a7a6568e463fb2fd98f6d80a1338
Response message was bellow.
------------------------------------------------------------------------------------------------
Submit to: http://192.168.1.20:8000/api/submitjob/my-lava-team/my-prj/no1/qemu QA Reports submission failed: HTTPConnectionPool(host='192.168.1.20', port=8000): Read timed out. (read timeout=31)
offending job definition: # Your first LAVA JOB definition for an x86_64 QEMU device_type: qemu job_name: QEMU pipeline, first job
timeouts: job: minutes: 15 action: minutes: 5 connection: minutes: 2 priority: medium visibility: public
...(snip)...
------------------------------------------------------------------------------------------------
I do not know what the problem is.
Please hep me.
thanks,
suker
On 18. 12. 15. 오전 2:12, Dan Rue wrote:
On Fri, Dec 14, 2018 at 05:45:46PM +0900, Patrick.C Jeon wrote:
Dear squad developer
I used to squad docker of https://github.com/Linaro/squad.
And squad system running in my localhost. LAVA too.
I want check the submit test for squad.
Using a python script submit_for_testing.py in https://git.linaro.org/ci/job/configs.git
command is below : python submit_for_testing.py --device-type abc-abc-abc --build-number no1 --lava-server https://192.168.1.20:9099 --qa-server http://192.168.1.70:8000 --qa-server-project remote-lava-prj --qa-server-team remote-lava-team --test-plan lava-test-plan.yaml
response : "QA Reports submission failed"
What is that mean ? Squad system setup missing or wrong command?
If that command are success respone, something show on squad explore?
Hi Patrick -
Are you setting --qa-token or QA_REPORTS_TOKEN?
If that's not the problem, you may need to patch submit_for_testing.py to get a better error; it looks like the try/except is a little broad and it could be a number of things. I don't know where your submit_for_testing.py is coming from, but you could try a patch like the following to try to narrow it down:
diff --git a/openembedded-lkft/submit_for_testing.py b/openembedded-lkft/submit_for_testing.py index 5cc137a0..b0ecb706 100644 --- a/openembedded-lkft/submit_for_testing.py +++ b/openembedded-lkft/submit_for_testing.py @@ -84,7 +84,7 @@ def _submit_to_squad(lava_job, lava_url_base, qa_server_api, qa_server_base, qa_ print(results.status_code) print(results.text) except requests.exceptions.RequestException as err:
print("QA Reports submission failed")
print("QA Reports submission failed: {}".format(str(err))) if not quiet: print("offending job definition:") print(lava_job)
Hope that helps, Dan
Thanks
kchhero
-- *행동하지 않으면 변화는 없다* _______________________________________________ Squad-dev mailing list Squad-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/squad-dev
Squad-dev mailing list Squad-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/squad-dev
On Fri, 4 Jan 2019 at 01:40, suker suker@nexell.co.kr wrote:
Dear Dan
I tried to narrow it down as your comment.
Of course, the qa-token value matches the token value of the squad user, and qemu01.yaml also exists.
$ python configs/submit_for_testing.py \ --device-type qemu \ --build-number no1 \ --lava-server my.lava.server \ --qa-server http://192.168.1.20:8000 \ --qa-server-project my-prj \ --qa-server-team my-lava-team \ --test-plan qemu01.yaml \ --qa-token 6e8795e925a3a7a6568e463fb2fd98f6d80a1338
Response message was bellow.
Submit to: http://192.168.1.20:8000/api/submitjob/my-lava-team/my-prj/no1/qemu QA Reports submission failed: HTTPConnectionPool(host='192.168.1.20', port=8000): Read timed out. (read timeout=31)
from the error message I'd assume it's not able to communicate to SQUAD. Did you try some simpler script to confirm you're able to submit a job? Example would be:
import requests QA_SERVER = "http://your_server_url/api" QA_TOKEN = "your secret token" TEAM = "my-lava-team" PROJECT = "my-prj" VERSION = "no1" ENVIRONMENT = "qemu" URL = "%s/submitjob/%s/%s/%s/%s" % (QA_SERVER, TEAM, PROJECT, VERSION, ENVIRONMENT) |
headers = { "Auth-Token": QA_TOKEN }
definition = """ your job definition goes here """
data = { "backend": "your-backend-name", "definition": definition }
response = requests.post(URL, data=data, headers=headers) print(response.status_code) print(response.text)
This should tell you whether you're able to submit a job via SQUAD.
milosz
offending job definition: # Your first LAVA JOB definition for an x86_64 QEMU device_type: qemu job_name: QEMU pipeline, first job
timeouts: job: minutes: 15 action: minutes: 5 connection: minutes: 2 priority: medium visibility: public
...(snip)...
I do not know what the problem is.
Please hep me.
thanks,
suker
On 18. 12. 15. 오전 2:12, Dan Rue wrote:
On Fri, Dec 14, 2018 at 05:45:46PM +0900, Patrick.C Jeon wrote:
Dear squad developer
I used to squad docker of https://github.com/Linaro/squad.
And squad system running in my localhost. LAVA too.
I want check the submit test for squad.
Using a python script submit_for_testing.py in https://git.linaro.org/ci/job/configs.git
command is below : python submit_for_testing.py --device-type abc-abc-abc --build-number no1 --lava-server https://192.168.1.20:9099 --qa-server http://192.168.1.70:8000 --qa-server-project remote-lava-prj --qa-server-team remote-lava-team --test-plan lava-test-plan.yaml
response : "QA Reports submission failed"
What is that mean ? Squad system setup missing or wrong command?
If that command are success respone, something show on squad explore?
Hi Patrick -
Are you setting --qa-token or QA_REPORTS_TOKEN?
If that's not the problem, you may need to patch submit_for_testing.py to get a better error; it looks like the try/except is a little broad and it could be a number of things. I don't know where your submit_for_testing.py is coming from, but you could try a patch like the following to try to narrow it down:
diff --git a/openembedded-lkft/submit_for_testing.py b/openembedded-lkft/submit_for_testing.py index 5cc137a0..b0ecb706 100644 --- a/openembedded-lkft/submit_for_testing.py +++ b/openembedded-lkft/submit_for_testing.py @@ -84,7 +84,7 @@ def _submit_to_squad(lava_job, lava_url_base, qa_server_api, qa_server_base, qa_ print(results.status_code) print(results.text) except requests.exceptions.RequestException as err:
print("QA Reports submission failed")
print("QA Reports submission failed: {}".format(str(err))) if not quiet: print("offending job definition:") print(lava_job)
Hope that helps, Dan
Thanks
kchhero
-- *행동하지 않으면 변화는 없다* _______________________________________________ Squad-dev mailing list Squad-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/squad-dev
Squad-dev mailing list Squad-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/squad-dev
Squad-dev mailing list Squad-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/squad-dev
Dear Milosz
I tried submit a job using simpler python script.
But, any response returned.
And other types of tests are the same.
($ curl --header "Auth-Token:6e8795e925a3a7a6568e463fb2fd98f6d80a1338" --form backend=my.lava.server --form definition="foo:1" http://192.168.1.20:8000/api/submitjob/my-lava-team/my-prj/no2/qemu)
Is there any more detail debugging methods?
Another question.
I use 'lavacli' when submitting a test job to the lava server,
(ex. |lavacli -i production jobs submit qemu01.yaml)|
but I can not find this part in the squad source.
thanks
suker
On 19. 1. 4. 오후 9:49, Milosz Wasilewski wrote:
On Fri, 4 Jan 2019 at 01:40, suker suker@nexell.co.kr wrote:
Dear Dan
I tried to narrow it down as your comment.
Of course, the qa-token value matches the token value of the squad user, and qemu01.yaml also exists.
$ python configs/submit_for_testing.py \ --device-type qemu \ --build-number no1 \ --lava-server my.lava.server \ --qa-server http://192.168.1.20:8000 \ --qa-server-project my-prj \ --qa-server-team my-lava-team \ --test-plan qemu01.yaml \ --qa-token 6e8795e925a3a7a6568e463fb2fd98f6d80a1338
Response message was bellow.
Submit to: http://192.168.1.20:8000/api/submitjob/my-lava-team/my-prj/no1/qemu QA Reports submission failed: HTTPConnectionPool(host='192.168.1.20', port=8000): Read timed out. (read timeout=31)
from the error message I'd assume it's not able to communicate to SQUAD. Did you try some simpler script to confirm you're able to submit a job? Example would be:
import requests QA_SERVER = "http://your_server_url/api" QA_TOKEN = "your secret token" TEAM = "my-lava-team" PROJECT = "my-prj" VERSION = "no1" ENVIRONMENT = "qemu" URL = "%s/submitjob/%s/%s/%s/%s" % (QA_SERVER, TEAM, PROJECT, VERSION, ENVIRONMENT) |
headers = { "Auth-Token": QA_TOKEN }
definition = """ your job definition goes here """
data = { "backend": "your-backend-name", "definition": definition }
response = requests.post(URL, data=data, headers=headers) print(response.status_code) print(response.text)
This should tell you whether you're able to submit a job via SQUAD.
milosz
offending job definition: # Your first LAVA JOB definition for an x86_64 QEMU device_type: qemu job_name: QEMU pipeline, first job
timeouts: job: minutes: 15 action: minutes: 5 connection: minutes: 2 priority: medium visibility: public
...(snip)...
I do not know what the problem is.
Please hep me.
thanks,
suker
On 18. 12. 15. 오전 2:12, Dan Rue wrote:
On Fri, Dec 14, 2018 at 05:45:46PM +0900, Patrick.C Jeon wrote:
Dear squad developer
I used to squad docker of https://github.com/Linaro/squad.
And squad system running in my localhost. LAVA too.
I want check the submit test for squad.
Using a python script submit_for_testing.py in https://git.linaro.org/ci/job/configs.git
command is below : python submit_for_testing.py --device-type abc-abc-abc --build-number no1 --lava-server https://192.168.1.20:9099 --qa-server http://192.168.1.70:8000 --qa-server-project remote-lava-prj --qa-server-team remote-lava-team --test-plan lava-test-plan.yaml
response : "QA Reports submission failed"
What is that mean ? Squad system setup missing or wrong command?
If that command are success respone, something show on squad explore?
Hi Patrick -
Are you setting --qa-token or QA_REPORTS_TOKEN?
If that's not the problem, you may need to patch submit_for_testing.py to get a better error; it looks like the try/except is a little broad and it could be a number of things. I don't know where your submit_for_testing.py is coming from, but you could try a patch like the following to try to narrow it down:
diff --git a/openembedded-lkft/submit_for_testing.py b/openembedded-lkft/submit_for_testing.py index 5cc137a0..b0ecb706 100644 --- a/openembedded-lkft/submit_for_testing.py +++ b/openembedded-lkft/submit_for_testing.py @@ -84,7 +84,7 @@ def _submit_to_squad(lava_job, lava_url_base, qa_server_api, qa_server_base, qa_ print(results.status_code) print(results.text) except requests.exceptions.RequestException as err:
print("QA Reports submission failed")
print("QA Reports submission failed: {}".format(str(err))) if not quiet: print("offending job definition:") print(lava_job)
Hope that helps, Dan
Thanks
kchhero
-- *행동하지 않으면 변화는 없다* _______________________________________________ Squad-dev mailing list Squad-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/squad-dev
Squad-dev mailing list Squad-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/squad-dev
Squad-dev mailing list Squad-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/squad-dev
On Mon, 7 Jan 2019 at 08:28, suker suker@nexell.co.kr wrote:
Dear Milosz
I tried submit a job using simpler python script.
But, any response returned.
And other types of tests are the same.
($ curl --header "Auth-Token:6e8795e925a3a7a6568e463fb2fd98f6d80a1338" --form backend=my.lava.server --form definition="foo:1" http://192.168.1.20:8000/api/submitjob/my-lava-team/my-prj/no2/qemu)
Is there any more detail debugging methods?
is your server running on 192.168.1.20? Do you have any server logs?
Another question.
I use 'lavacli' when submitting a test job to the lava server,
(ex. lavacli -i production jobs submit qemu01.yaml)
but I can not find this part in the squad source.
This isn't part of SQUAD. lavacli is part of LAVA.
milosz
thanks
suker
On 19. 1. 4. 오후 9:49, Milosz Wasilewski wrote:
On Fri, 4 Jan 2019 at 01:40, suker suker@nexell.co.kr wrote:
Dear Dan
I tried to narrow it down as your comment.
Of course, the qa-token value matches the token value of the squad user, and qemu01.yaml also exists.
$ python configs/submit_for_testing.py \ --device-type qemu \ --build-number no1 \ --lava-server my.lava.server \ --qa-server http://192.168.1.20:8000 \ --qa-server-project my-prj \ --qa-server-team my-lava-team \ --test-plan qemu01.yaml \ --qa-token 6e8795e925a3a7a6568e463fb2fd98f6d80a1338
Response message was bellow.
Submit to: http://192.168.1.20:8000/api/submitjob/my-lava-team/my-prj/no1/qemu QA Reports submission failed: HTTPConnectionPool(host='192.168.1.20', port=8000): Read timed out. (read timeout=31)
from the error message I'd assume it's not able to communicate to SQUAD. Did you try some simpler script to confirm you're able to submit a job? Example would be:
import requests QA_SERVER = "http://your_server_url/api" QA_TOKEN = "your secret token" TEAM = "my-lava-team" PROJECT = "my-prj" VERSION = "no1" ENVIRONMENT = "qemu" URL = "%s/submitjob/%s/%s/%s/%s" % (QA_SERVER, TEAM, PROJECT, VERSION, ENVIRONMENT) |
headers = { "Auth-Token": QA_TOKEN }
definition = """ your job definition goes here """
data = { "backend": "your-backend-name", "definition": definition }
response = requests.post(URL, data=data, headers=headers) print(response.status_code) print(response.text)
This should tell you whether you're able to submit a job via SQUAD.
milosz
offending job definition: # Your first LAVA JOB definition for an x86_64 QEMU device_type: qemu job_name: QEMU pipeline, first job
timeouts: job: minutes: 15 action: minutes: 5 connection: minutes: 2 priority: medium visibility: public
...(snip)...
I do not know what the problem is.
Please hep me.
thanks,
suker
On 18. 12. 15. 오전 2:12, Dan Rue wrote:
On Fri, Dec 14, 2018 at 05:45:46PM +0900, Patrick.C Jeon wrote:
Dear squad developer
I used to squad docker of https://github.com/Linaro/squad.
And squad system running in my localhost. LAVA too.
I want check the submit test for squad.
Using a python script submit_for_testing.py in https://git.linaro.org/ci/job/configs.git
command is below : python submit_for_testing.py --device-type abc-abc-abc --build-number no1 --lava-server https://192.168.1.20:9099 --qa-server http://192.168.1.70:8000 --qa-server-project remote-lava-prj --qa-server-team remote-lava-team --test-plan lava-test-plan.yaml
response : "QA Reports submission failed"
What is that mean ? Squad system setup missing or wrong command?
If that command are success respone, something show on squad explore?
Hi Patrick -
Are you setting --qa-token or QA_REPORTS_TOKEN?
If that's not the problem, you may need to patch submit_for_testing.py to get a better error; it looks like the try/except is a little broad and it could be a number of things. I don't know where your submit_for_testing.py is coming from, but you could try a patch like the following to try to narrow it down:
diff --git a/openembedded-lkft/submit_for_testing.py b/openembedded-lkft/submit_for_testing.py index 5cc137a0..b0ecb706 100644 --- a/openembedded-lkft/submit_for_testing.py +++ b/openembedded-lkft/submit_for_testing.py @@ -84,7 +84,7 @@ def _submit_to_squad(lava_job, lava_url_base, qa_server_api, qa_server_base, qa_ print(results.status_code) print(results.text) except requests.exceptions.RequestException as err:
print("QA Reports submission failed")
print("QA Reports submission failed: {}".format(str(err))) if not quiet: print("offending job definition:") print(lava_job)
Hope that helps, Dan
Thanks
kchhero
-- *행동하지 않으면 변화는 없다* _______________________________________________ Squad-dev mailing list Squad-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/squad-dev
Squad-dev mailing list Squad-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/squad-dev
Squad-dev mailing list Squad-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/squad-dev