kthcloud / go-deploy

Creation and management of resources on kthcloud
https://api.cloud.cbh.kth.se/deploy
MIT License
3 stars 1 forks source link

Update VM v2 returns 500 #485

Closed pierrelefevre closed 5 months ago

pierrelefevre commented 5 months ago

POST https://api.cloud.cbh.kth.se/deploy/v2/vms/81529695-9b9f-4c03-8db4-c8a7b9c6847a

returns 500 {"errors":[{"code":"error","msg":"internal error"}]}

saffronjam commented 5 months ago

Hmm, when I try to reproduce with this body it works.

{
    "cpuCores": 10,
    "ram": 10
}   
pierrelefevre commented 5 months ago

Updated vm 63d56940-f97f-40d8-8806-964f4ceb984f

with body

{"cpuCores":3,"ram":4}

and got 500

{"errors":[{"code":"error","msg":"internal error"}]}
pierrelefevre commented 5 months ago

(user is b54f2daa-cadb-49ce-9d83-7895e9cd3ef5)

pierrelefevre commented 5 months ago

Still getting this issue, also with updating ports

user id

b54f2daa-cadb-49ce-9d83-7895e9cd3ef5
POST https://api.cloud.cbh.kth.se/deploy/v2/vms/63d56940-f97f-40d8-8806-964f4ceb984f

payload

{"ports":[{"name":"testing","port":8080,"externalPort":20016,"protocol":"tcp","httpProxy":{"name":"mynamejeff"}}]}

returns 500 Internal Server Error

saffronjam commented 5 months ago

Possible fix in https://github.com/kthcloud/go-deploy/pull/515