Thanks Milosz. Does that mean that a lava-docker-worker is designed to only run jobs which use "docker"? I would not like to modify all my legacy jobs which do not use the new "docker" thing. Also, I understood that this new "docker" in LAVA jobs was mainly aimed at Android testing. For Linux/yocto, that sounds like useless extra complexity (unless I miss something).
-----Original Message----- From: Lava-users lava-users-bounces@lists.lavasoftware.org On Behalf Of Milosz Wasilewski Sent: Thursday, October 29, 2020 11:03 AM To: Philippe Mazet (OSS) philippe.mazet@oss.nxp.com Cc: lava-users@lists.lavasoftware.org lava-users@lavasoftware.org Subject: [EXT] Re: [Lava-users] lava-docker-worker: how to customize?
Caution: EXT Email
On Thu, 29 Oct 2020 at 10:00, Philippe Mazet (OSS) philippe.mazet@oss.nxp.com wrote:
Hi All,
I was exploring the new lava-docker-worker released with 2020.09. It is pretty handy to start a slave, but I am wondering how to customize the slave image: I need to add inside my own tools (like uuu), config files (like ser2net.conf), and also install additional packages. How do you do this on your side?
I think you're confusing 2 things here. The lava-docker-worker image is not supposed to run the jobs. For that you use 'docker: <image name>: in the job definition actions. This is the image that should contain flashing tools like uuu.
As for ser2net I'm not sure what is the recommendation (Antonio, could you comment?). We're stil using host based ser2net.
milosz
Finally, I noticed that if I don't do a "service tftpd-hpa restart", TFTP does not work. Is it a known issue?
Thanks,
Philippe Mazet
Lava-users mailing list Lava-users@lists.lavasoftware.org https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist s.lavasoftware.org%2Fmailman%2Flistinfo%2Flava-users&data=04%7C01% 7Cphilippe.mazet%40nxp.com%7Cde6159fe8c1e43cfcc0008d87bf1f211%7C686ea1 d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C637395626367151208%7CUnknown%7CTW FpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6 Mn0%3D%7C3000&sdata=gElRt2xv5DouqTeQUF6nPlP33MUKUs68ZT8LWmB67%2Fc% 3D&reserved=0
_______________________________________________ Lava-users mailing list Lava-users@lists.lavasoftware.org https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.lava...
On Thu, 29 Oct 2020 at 10:19, Philippe Mazet (OSS) philippe.mazet@oss.nxp.com wrote:
Thanks Milosz. Does that mean that a lava-docker-worker is designed to only run jobs which use "docker"?
no, it should run all jobs
I would not like to modify all my legacy jobs which do not use the new "docker" thing. Also, I understood that this new "docker" in LAVA jobs was mainly aimed at Android testing.
not really. The aim is to replace LXC as means to use custom tools (like uuu) for deployment and running tests. So if you use uuu for deployment and then run test-definitions on the target, the 'docker:' only shows up in 'deploy' action but not 'test' action. Tests are executed on the target. All actions which include 'docker' are executed on the dispatcher inside docker container.
milosz
For Linux/yocto, that sounds like useless extra complexity (unless I miss something).
-----Original Message----- From: Lava-users lava-users-bounces@lists.lavasoftware.org On Behalf Of Milosz Wasilewski Sent: Thursday, October 29, 2020 11:03 AM To: Philippe Mazet (OSS) philippe.mazet@oss.nxp.com Cc: lava-users@lists.lavasoftware.org lava-users@lavasoftware.org Subject: [EXT] Re: [Lava-users] lava-docker-worker: how to customize?
Caution: EXT Email
On Thu, 29 Oct 2020 at 10:00, Philippe Mazet (OSS) philippe.mazet@oss.nxp.com wrote:
Hi All,
I was exploring the new lava-docker-worker released with 2020.09. It is pretty handy to start a slave, but I am wondering how to customize the slave image: I need to add inside my own tools (like uuu), config files (like ser2net.conf), and also install additional packages. How do you do this on your side?
I think you're confusing 2 things here. The lava-docker-worker image is not supposed to run the jobs. For that you use 'docker: <image name>: in the job definition actions. This is the image that should contain flashing tools like uuu.
As for ser2net I'm not sure what is the recommendation (Antonio, could you comment?). We're stil using host based ser2net.
milosz
Finally, I noticed that if I don't do a "service tftpd-hpa restart", TFTP does not work. Is it a known issue?
Thanks,
Philippe Mazet
Lava-users mailing list Lava-users@lists.lavasoftware.org https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist s.lavasoftware.org%2Fmailman%2Flistinfo%2Flava-users&data=04%7C01% 7Cphilippe.mazet%40nxp.com%7Cde6159fe8c1e43cfcc0008d87bf1f211%7C686ea1 d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C637395626367151208%7CUnknown%7CTW FpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6 Mn0%3D%7C3000&sdata=gElRt2xv5DouqTeQUF6nPlP33MUKUs68ZT8LWmB67%2Fc% 3D&reserved=0
Lava-users mailing list Lava-users@lists.lavasoftware.org https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.lava...
Thanks a lot for the details.
Few more questions/comments: - I confirm that ser2net can run from host (good!) - same for TFTP - the server now rejects workers if slave version differs. Although I understand the purpose, I find this (too) aggressive. Not all teams around the world can synchronize upgrades of their slaves with the frequent updates of the master. Moreover, in the past we never had any problem running slave with versions <= master's version. Would it be possible to allow bypassing this version check?
Philippe
-----Original Message----- From: Milosz Wasilewski milosz.wasilewski@linaro.org Sent: Thursday, October 29, 2020 11:27 AM To: Philippe Mazet (OSS) philippe.mazet@oss.nxp.com Cc: lava-users@lists.lavasoftware.org lava-users@lavasoftware.org Subject: Re: [Lava-users] lava-docker-worker: how to customize?
On Thu, 29 Oct 2020 at 10:19, Philippe Mazet (OSS) philippe.mazet@oss.nxp.com wrote:
Thanks Milosz. Does that mean that a lava-docker-worker is designed to only run jobs which use "docker"?
no, it should run all jobs
I would not like to modify all my legacy jobs which do not use the new "docker" thing. Also, I understood that this new "docker" in LAVA jobs was mainly aimed at Android testing.
not really. The aim is to replace LXC as means to use custom tools (like uuu) for deployment and running tests. So if you use uuu for deployment and then run test-definitions on the target, the 'docker:' only shows up in 'deploy' action but not 'test' action. Tests are executed on the target. All actions which include 'docker' are executed on the dispatcher inside docker container.
milosz
For Linux/yocto, that sounds like useless extra complexity (unless I miss something).
-----Original Message----- From: Lava-users lava-users-bounces@lists.lavasoftware.org On Behalf Of Milosz Wasilewski Sent: Thursday, October 29, 2020 11:03 AM To: Philippe Mazet (OSS) philippe.mazet@oss.nxp.com Cc: lava-users@lists.lavasoftware.org lava-users@lavasoftware.org Subject: [EXT] Re: [Lava-users] lava-docker-worker: how to customize?
Caution: EXT Email
On Thu, 29 Oct 2020 at 10:00, Philippe Mazet (OSS) philippe.mazet@oss.nxp.com wrote:
Hi All,
I was exploring the new lava-docker-worker released with 2020.09. It is pretty handy to start a slave, but I am wondering how to customize the slave image: I need to add inside my own tools (like uuu), config files (like ser2net.conf), and also install additional packages. How do you do this on your side?
I think you're confusing 2 things here. The lava-docker-worker image is not supposed to run the jobs. For that you use 'docker: <image name>: in the job definition actions. This is the image that should contain flashing tools like uuu.
As for ser2net I'm not sure what is the recommendation (Antonio, could you comment?). We're stil using host based ser2net.
milosz
Finally, I noticed that if I don't do a "service tftpd-hpa restart", TFTP does not work. Is it a known issue?
Thanks,
Philippe Mazet
Lava-users mailing list Lava-users@lists.lavasoftware.org https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fli st s.lavasoftware.org%2Fmailman%2Flistinfo%2Flava-users&data=04%7C0 1% 7Cphilippe.mazet%40nxp.com%7Cde6159fe8c1e43cfcc0008d87bf1f211%7C686e a1 d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C637395626367151208%7CUnknown%7C TW FpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVC I6 Mn0%3D%7C3000&sdata=gElRt2xv5DouqTeQUF6nPlP33MUKUs68ZT8LWmB67%2F c% 3D&reserved=0
Lava-users mailing list Lava-users@lists.lavasoftware.org https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist s.lavasoftware.org%2Fmailman%2Flistinfo%2Flava-users&data=04%7C01% 7Cphilippe.mazet%40nxp.com%7Cde6159fe8c1e43cfcc0008d87bf1f211%7C686ea1 d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C637395626367151208%7CUnknown%7CTW FpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6 Mn0%3D%7C3000&sdata=gElRt2xv5DouqTeQUF6nPlP33MUKUs68ZT8LWmB67%2Fc% 3D&reserved=0
lava-users@lists.lavasoftware.org