Commit 8f3ba91
authored
[fast/warm reboot] improve new image installation code (#877)
* [fast/warm reboot] improve new image installation code
- Allow new_sonic_image being defined as empty string. It causes skipping image installation.
- Rename new_image_location to a generic name.
- Display defined new image url.
Signed-off-by: Ying Xie <[email protected]>
* [fast/warm reboot] allow DUT to stay in the warm/fast reboot target release
This feature is needed in order to test ugprade path. Where we might upgrade from one version
to another, and more. We want the system to stay in target release for next steps.
Signed-off-by: Ying Xie <[email protected]>
* Address review comments, test issues and some minor touch-ups
Signed-off-by: Ying Xie <[email protected]>
* [fast/warm reboot] add knob to clean up old iamges on DUT before warm/fast reboot
When new image is specified for fast/warm reboot. The new image will be installed.
However, if the specified image is already installed on the target DUT, then
sonic_install will fail and fast/warm reboot will reboot into current image.
Add a knob to cleanup old images so that the installing of new image will have a
better chance to succeed.
Signed-off-by: Ying Xie <[email protected]>
* address review issue1 parent 19bc309 commit 8f3ba91
1 file changed
+30
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
109 | 116 | | |
110 | 117 | | |
111 | 118 | | |
112 | 119 | | |
113 | 120 | | |
114 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
115 | 127 | | |
116 | 128 | | |
117 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
118 | 132 | | |
119 | 133 | | |
120 | 134 | | |
| |||
124 | 138 | | |
125 | 139 | | |
126 | 140 | | |
127 | | - | |
128 | | - | |
| 141 | + | |
| 142 | + | |
129 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
130 | 149 | | |
131 | | - | |
132 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
133 | 153 | | |
134 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
135 | 159 | | |
136 | 160 | | |
137 | 161 | | |
| |||
0 commit comments