eve icon indicating copy to clipboard operation
eve copied to clipboard

Start all services in parallel inside device-steps

Open giggsoff opened this issue 3 years ago • 1 comments

Refactor pillar to be able to start all services in parallel inside device-steps

giggsoff avatar Oct 06 '22 14:10 giggsoff

If I correctly understood the comment https://github.com/lf-edge/eve/pull/2839#issuecomment-1266149108, we should firstly try to refactor existence logic to be able to start services at some place in device-steps (after upgrade converter) and split device-steps later onto onboot and service part. Inside this PR I put required changes. Probably we can split the last commit (about Fix flags parsing in go routines) into separate PR.

giggsoff avatar Oct 06 '22 14:10 giggsoff

We can do this but to be safe we should add WaitForOnboarded() to the top of Run in agents which are currently started after client has run.

Well, seems it works, and handle certificate generation order as well (as we start client after all certs generated), thank you!

giggsoff avatar Oct 18 '22 12:10 giggsoff