Commit e6d7b4d
Add blue-green AgentUpgrade for host daemon binary (#127)
* Initial plan
* Implement AgentUpgrade blue green daemon flow
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/09199dde-d498-4fd1-a4d0-d878fdf19099
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Render daemon recovery asset paths
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/09199dde-d498-4fd1-a4d0-d878fdf19099
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Address AgentUpgrade review feedback
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/c95ee777-56f9-4c29-9f15-326834a9cec4
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Apply validation review cleanups
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/c95ee777-56f9-4c29-9f15-326834a9cec4
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Address sequential AgentUpgrade comments
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/7a8119d9-3cfb-4aa3-821d-921a7ea952cd
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Apply final AgentUpgrade review fixes
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/7a8119d9-3cfb-4aa3-821d-921a7ea952cd
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Use AgentUpgrade goal state
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/112cde94-4091-4914-b11f-82988ba56a14
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Clean up AgentUpgrade path resolution
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/112cde94-4091-4914-b11f-82988ba56a14
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Move daemon binary link bootstrap into agent
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/2b499ab5-34e0-4c2a-b02d-5b5eb6a55429
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Cover daemon binary bootstrap helpers
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/2b499ab5-34e0-4c2a-b02d-5b5eb6a55429
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Reject broken AgentUpgrade binaries before switch
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/08325264-b1c3-4e9d-b447-486a9efad21f
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Address AgentUpgrade validation review cleanup
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/08325264-b1c3-4e9d-b447-486a9efad21f
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Publish AgentUpgrade daemon rollback failures
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/edc4c352-13dc-484e-bdea-4b161949f179
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Address AgentUpgrade rollback review cleanup
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/edc4c352-13dc-484e-bdea-4b161949f179
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Address AgentUpgrade utilio path review
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/ac48a39d-eabb-4a09-b1ef-bb94b02a8f7c
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Clean up AgentUpgrade helper refactor
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/ac48a39d-eabb-4a09-b1ef-bb94b02a8f7c
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Address helper validation feedback
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/ac48a39d-eabb-4a09-b1ef-bb94b02a8f7c
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Clarify symlink helper cleanup
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/ac48a39d-eabb-4a09-b1ef-bb94b02a8f7c
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Move env fallback helper to utilio
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/ac48a39d-eabb-4a09-b1ef-bb94b02a8f7c
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Align resolve symlink parameter naming
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/ac48a39d-eabb-4a09-b1ef-bb94b02a8f7c
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Address final helper review nits
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/ac48a39d-eabb-4a09-b1ef-bb94b02a8f7c
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Cover empty env fallback helper
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/ac48a39d-eabb-4a09-b1ef-bb94b02a8f7c
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Keep path resolution in goalstates
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/ac48a39d-eabb-4a09-b1ef-bb94b02a8f7c
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Merge main into AgentUpgrade branch
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/def5036d-70af-4f08-b578-a8983e5131b4
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Clean up MachineOperation merge resolution
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/def5036d-70af-4f08-b578-a8983e5131b4
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Address AgentUpgrade signal and validation feedback
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/9efcbd8b-30d7-4b49-a22d-dcbf0bd0d8b7
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Harden AgentUpgrade review updates
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/9efcbd8b-30d7-4b49-a22d-dcbf0bd0d8b7
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Move recovery signal writing into agent command
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/d9377198-b9dc-41bd-9011-8d1f797f1b35
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Preserve pending signal on helper failure
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/d9377198-b9dc-41bd-9011-8d1f797f1b35
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
* Refactor AgentUpgrade signal handling
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/210b8bc3-61ce-49ce-bbd4-00b30cb5d811
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Document AgentUpgrade signal helpers
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/210b8bc3-61ce-49ce-bbd4-00b30cb5d811
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Simplify AgentUpgrade state handling
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/4b19be89-cdcd-4468-912d-c9434a0ae545
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Clarify AgentUpgrade helper names
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/4b19be89-cdcd-4468-912d-c9434a0ae545
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Document AgentUpgrade state machine
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/3c6d7854-c651-4217-9887-6ddef30c67c6
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Address AgentUpgrade review feedback
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/449c899b-b874-449d-b613-8c99409731d1
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Log ignored AgentUpgrade signals
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/80a53899-c9be-4e4c-97b2-72d1caf02b7e
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Remove blue-green install script checks
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/2ad3ccca-4671-4562-a84a-19317ddd0fbe
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Move daemon binary link setup to agentbinary
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/920acaad-c356-47e2-ba72-5f74a6615c80
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Clarify agentbinary test path setup
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/920acaad-c356-47e2-ba72-5f74a6615c80
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
* Consolidate AgentUpgrade signal publishing
Agent-Logs-Url: https://github.com/Azure/unbounded/sessions/103e2b54-b156-48a4-879b-c4dafbee3331
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
Co-authored-by: hbc <bahe@microsoft.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>1 parent 409be1a commit e6d7b4d
27 files changed
Lines changed: 2166 additions & 24 deletions
File tree
- .github/workflows
- cmd/agent/internal
- cmd
- daemon
- assets
- designs
- docs/content/reference
- hack/agent/e2e-kind
- internal/provision/assets
- pkg/agent
- agentbinary
- goalstates
- internal/utilio
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
182 | 188 | | |
183 | 189 | | |
184 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
0 commit comments