-
Notifications
You must be signed in to change notification settings - Fork 60
Commits on Jun 17, 2020
-
Allow ECU re-registration to support changing Secondaries.
Works for Virtual Secondaries, but still a work in progress for IP Secondaries. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 66b2c85 - Browse repository at this point
Copy the full SHA 66b2c85View commit details -
Fix IP Secondary re-registration and some broken tests.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1ed4d38 - Browse repository at this point
Copy the full SHA 1ed4d38View commit details -
Expand Secondary registration tests.
Now they cover adding, remove, and replacing Secondary ECUs. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 57673c8 - Browse repository at this point
Copy the full SHA 57673c8View commit details -
Test adding, removing, and replacing IP Secondaries.
The logic for matching addresses to ECUs is not trivial, so it's worth being extra careful. Also test replacing an ECU that reuses the same address and port and that we correctly track an ECU that changes its address or port. Also note some the timeouts (and some ordering issues) that were necessary to get some of these tests to pass. These are more reasons why a proper connection manager would be nice to have; things like this really shouldn't be necessary. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a00ef7c - Browse repository at this point
Copy the full SHA a00ef7cView commit details -
Fix a bogus message about unregistered ECUs.
We no longer track unregistered ECUs, since that is no longer a problem. Still dump anything in the database with that flag, just in case, but it shouldn't happen. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b11a785 - Browse repository at this point
Copy the full SHA b11a785View commit details -
Add a comment about a semi-obscure almost-bug.
There's no real problem, just an ugly log message that will go away eventually on its own. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e473c86 - Browse repository at this point
Copy the full SHA e473c86View commit details -
Always read the device ID from the cert if available.
For device credential provisioning, it is still a fatal error if the cert is unavailable. For shared cred prov, we revert to the old behavior of generating a random pet name if the cert is unavailable. This is generally only observable if you attempt to replace a Primary ECU, which requires reusing the same device certificate. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9548b88 - Browse repository at this point
Copy the full SHA 9548b88View commit details -
Fall back to "unknown" image name instead of an empty string.
The backend does not accept empty filenames, but we have to say something. This comes up if you wipe a Secondary's database but keep the image file. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 64aac55 - Browse repository at this point
Copy the full SHA 64aac55View commit details -
uptane_serial_test: Get rid of unused input parameter.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3ca4e32 - Browse repository at this point
Copy the full SHA 3ca4e32View commit details -
Only store ECU changes if we successfully registered the ECUs.
If registration fails (due to the server complaining about an update in progress, for example), we want to make it easier to undo the changes and prevent re-registration. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d943cd9 - Browse repository at this point
Copy the full SHA d943cd9View commit details