Description
Agent auto upgrade depends on a correctly functioning platform for issuing a custom simili-inject type of command to execute that happens to trigger an upgrade script.
Change this logic to reimplement the auto upgrade routine to delegate the whole process to the agent process.
- query the platform for a binary hash corresponding to the proposed agent binary in the platform
- implement the auto upgrade command in agent based on stable platform APIs (get the upgrader, spawn process)
- implement a backoff in case of failed upgrade (hashes don't match)
Mind migration from old agents to new agents: keep the "upgrade command as inject" logic for this transition.
Environment
- OS (where OpenAEV server runs): { e.g. Mac OS 10, Windows 10, Ubuntu 16.4, etc. }
- OpenAEV version: { e.g. OpenAEV 1.0.2 }
- OpenAEV client: { e.g. frontend or python }
- Other environment details:
Reproducible Steps
Steps to create the smallest reproducible scenario:
- { e.g. Run ... }
- { e.g. Click ... }
- { e.g. Error ... }
Expected Output
Actual Output
Additional information
Screenshots (optional)
Description
Agent auto upgrade depends on a correctly functioning platform for issuing a custom simili-inject type of command to execute that happens to trigger an upgrade script.
Change this logic to reimplement the auto upgrade routine to delegate the whole process to the agent process.
Mind migration from old agents to new agents: keep the "upgrade command as inject" logic for this transition.
Environment
Reproducible Steps
Steps to create the smallest reproducible scenario:
Expected Output
Actual Output
Additional information
Screenshots (optional)