From Support ticket CST-3187.
In some circumstances, after removing a container-group Software from a device, the services contained in that software (containers) still remain in the UI. This can be mitigated by unassigning the software using the cli:
DEVICE_NAME="MY-DEVICE-ID"
c8y devices list \
--name "${DEVICE_NAME}" \
| c8y devices get --raw \
| jq -r '.childAdditions.references[] | .managedObject.id' \
| c8y inventory delete
The circumstances in which it has been detected to happen is (verified):
- Remove a software
- Immediately after, stop the
tedge-mapper-c8y.service in the device:
systemctl stop tedge-mapper-c8y.service
- Wait for all the software to be removed (for example, watching the logs).
- Restart the service:
systemctl start tedge-mapper-c8y.service
The operation is marked as finished in the very same moment the mapper is started.
- The software has been removed from the UI/inventory, but the containers not.
From Support ticket CST-3187.
In some circumstances, after removing a
container-groupSoftware from a device, the services contained in that software (containers) still remain in the UI. This can be mitigated by unassigning the software using the cli:The circumstances in which it has been detected to happen is (verified):
tedge-mapper-c8y.servicein the device: