Skip to content

After removing a container-group Software from a device, the services contained in that software still remain in the UI #181

Description

@emibcn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions