This repository was archived by the owner on Oct 17, 2022. It is now read-only.
Commit deb58e9
Mark Ryan
Add debug connection information
With the addition of multiple instance support it became difficult to
debug buggy cloud-init files. The reason is that if cloud-init fails
to complete, the creation command will also not complete. As ccloudvm
serialises the commands it sends to a given instance, no other commands,
e.g., connect, can be issued on that instance until create has completed,
making it difficult to connect to instances with buggy cloud-init files
to debug them.
This commit works around the issue by providing the user with ssh
connection details for the instance being created if they pass
the --debug option to create. Connect's still not going to work but
at least the user will have a way to connect to their VM to debug it.
Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>1 parent 7f4b2b9 commit deb58e9
1 file changed
+30
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
189 | 217 | | |
190 | 218 | | |
191 | 219 | | |
| |||
243 | 271 | | |
244 | 272 | | |
245 | 273 | | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 274 | + | |
250 | 275 | | |
251 | | - | |
| 276 | + | |
252 | 277 | | |
253 | 278 | | |
254 | 279 | | |
| |||
0 commit comments