Open msandstedt opened 2 years ago
@tehampson @cecille It doesn't look like #17778 addresses this, right?
In particular, DeviceCommissioner needs to implement more ClusterStateCache::Callback
methods so it will be notified of failures, instead of just implementing OnDone
, as far as I can see...
@mrjerryjohns
Just providing initial comments, I will take a closer look later today
I don't think that https://github.com/project-chip/connectedhomeip/pull/17778 addresses this issue since it seems to be an error in commissioning step 'ReadCommissioningInfo' which is not something that is addressed in that PR.
I need to look into this a little more, but maybe we can use a similar mechanism. But also as I see inside DeviceCommissioner::OnDone()
we are not getting the error log Error parsing commissioning information
, so it could just be making sure that return_err
is actually set to an error.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Problem
At this rev:
And with these platforms:
Observed while trying to perform multi-admin commissioning.
From the second commissioner:
The interaction failed, but the commissioner ignores the failure. The failure is caused by this on commissionee side:
It appears that the scatter/gather from the commissioner is no longer viable because too few path segments are available in the commissionee. In this scenario, the first-ecosystem admin had only one single subscription path allocated. The second ecosystem commissioner attempted to consume 8 paths in a single read and the target could not support this with the code at that revision.
This leads to this spurious Attestation failure in the commissioner:
Proposed Solution
Note that at this rev, targets should be able to support the number of read paths the commissioner is attempting to consume:
Note that we have much more paths available at this rev:
So the only problem is that the read failure is ignored.