You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After Fixing the imgadm config, I aborted the migration and ran it again this time we error on "Invalid VM parameters"
Here is filteredNetworks and nics being []
Error message rightly insists we have Invalid VM parameters, but I think we can do better in Validation to say Which Key is Invalid to better point the operator into knowing which VM parameter.
I wasted some time trying to realize that the NICs went missing (lol), which ultimately required me to add console.log and reading the original error. I don't believe this is logged from what I can tell, might be easy for folks to waste time here.
After adding the NIC back and migrating it went through.
The text was updated successfully, but these errors were encountered:
Abort tells the system to just abandon everything and let the operator deal with the state. So in that regard, it did what you asked it to.
However, the correct action in this case would have been to execute a rollback which should have moved the nics back to the original instance and cleaned up the failure on the new CN.
I went to Migrate a VM to a newly provision CN, in the process we failed on the first attempt due to imgadm being misconfigured on the target CN.
Error from Migrate Begin:
Error from provision:
Showing NICs existed on this first attempt:
Root Caused Error from imgadm: (we deployed without the latest GZ tools and needed to remove unresolvable imgapi server.
After Fixing the imgadm config, I aborted the migration and ran it again this time we error on "Invalid VM parameters"
Here is filteredNetworks and nics being []
Error message rightly insists we have Invalid VM parameters, but I think we can do better in Validation to say Which Key is Invalid to better point the operator into knowing which VM parameter.
Here is where we wrap up errors coming from migration:
https://github.com/TritonDataCenter/sdc-vmapi/blob/master/lib/workflows/vm-migration/begin.js#L477
Here is where we handle validation and return Invalid VM Parameters and the original error up.
https://github.com/TritonDataCenter/sdc-vmapi/blob/master/lib/common/validation.js#L1371
I wasted some time trying to realize that the NICs went missing (lol), which ultimately required me to add console.log and reading the original error. I don't believe this is logged from what I can tell, might be easy for folks to waste time here.
After adding the NIC back and migrating it went through.
The text was updated successfully, but these errors were encountered: