Skip to content

Azure InstanceIds exceed database limit of 64 #3259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spikecurtis opened this issue Jul 27, 2022 · 0 comments · Fixed by #3274
Closed

Azure InstanceIds exceed database limit of 64 #3259

spikecurtis opened this issue Jul 27, 2022 · 0 comments · Fixed by #3274
Assignees
Labels
api Area: HTTP API

Comments

@spikecurtis
Copy link
Contributor

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

  1. Create a workspace with resource "azurerm_linux_virtual_machine"
  2. Coder Server accepts the Agent with Instance ID.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Area: HTTP API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant