Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-1761

Provision newly accepted devices inventory via conductor, instead of creating new inventory from deviceauth

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:

      Description

      Instead of directly adding a new device to inventory via deviceauth, as done here: 
      https://github.com/mendersoftware/deviceauth/blob/9ba7316e7d2bdda01c3d442f870d124d708d5cb8/devauth/devauth.go#L134

      perform this step from conductor:

      https://github.com/mendersoftware/deviceauth/blob/master/client/inventory/client_inventory.go#L62

      This new "device provisioning" step is required in order to provision new devices for billing related services.

       

      Acceptance critera:

      • Remove new device adding in device auth
      • Create event that triggers an open-source workflow that:
        • Creates a new device via the inventory API 
        • Remove new device adding in deviceauth

       

      <ignore>

      sequenceDiagram
      device>> device_auth:new request-
      device_auth>>device_adm: request-
      device_adm>>device_auth: accepted!
      device_auth>>conductor: provision new device-
      Note right of conductor: previously deviceauth would add the device to inventory
      conductor->> inventory: create new devic-e

      </ignore>

        Attachments

          Activity

            People

            • Assignee:
              kjaskiewicz Krzysztof Jaƛkiewicz
              Reporter:
              a10061 Gregorio Di Stefano
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel