Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • L lavacli
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • lava
  • lavacli
  • Merge requests
  • !54

Open
Created May 19, 2023 by Chase Qi@chase-qiContributor
  • Report abuse
Report abuse

lab: allow to retire/unretire worker/device

  • Overview 4
  • Commits 2
  • Pipelines 5
  • Changes 3

Allow user to set worker/device health status directly is a bit dangerous as it can be changed automatically by HC/test job or manually by admin.

Introducing non-filed retire attribute to allow user to retire/unretire worker/device. It hides the slightly different logic behind worker/device health status and unifies the usage for lavacli user.

retire: true sets worker/device health to RETIRED; While retire: false sets worker heath to ACTIVE and device health to UNKNOWN respectively to bring them back.

The same as devices, retired workers are imported as well so that they can be un-retired easily.

Only when device/worker deleted or not defined in configure file but exists on lava-server, they will be deleted. This will need another change.

Signed-off-by: Chase Qi chase.qi@linaro.org

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: lab-cleanup