Closed
Description
Problem
Azure InstanceIds are longer than our database table allows: auth_instance_id character varying(64)
Details:
022-07-27 23:13:29.518 [INFO] <./provisionerd/runner/runner.go:843> (*Runner).runWorkspaceBuild provision successful; marked job as complete {"resource_count": 5, "resources": [{"name": "main", "type": "azurerm_linux_virtual_machine", "agents": [{"id": "5b0e9649-1c28-434b-8b78-79e42c6ff9d3", "name": "main", "operating_system": "linux", "architecture": "amd64", "Auth": {"InstanceId": "/subscriptions/05e8b285-4ce1-46a3-b4c9-f51ba67d6acc/resourceGroups/coder-spike-spikeaz-resources/providers/Microsoft.Compute/virtualMachines/coder-spike-spikeaz-vm"}}]}, {"name": "main", "type": "azurerm_network_interface"}, {"name": "main", "type": "azurerm_resource_group"}, {"name": "internal", "type": "azurerm_subnet"}, {"name": "main", "type": "azurerm_virtual_network"}], "state_length": 16756}
2022-07-27 23:13:29.681 [ERROR] <./provisionerd/runner/runner.go:140> (*Runner).Run send CompletedJob {"job_id": "48af24f7-4fd2-463b-8891-85488407f601"} ...
"error": complete job: execute transaction: insert provisioner job: insert agent: pq: value too long for type character varying(64)
storj.io/drpc/drpcwire.UnmarshalError:26
storj.io/drpc/drpcstream.(*Stream).HandlePacket:198
storj.io/drpc/drpcmanager.(*Manager).manageReader:216
Acceptance Criteria
- Create a workspace with
resource "azurerm_linux_virtual_machine"
- Coder Server accepts the Agent with Instance ID.