Skip to content
This repository was archived by the owner on Jul 16, 2020. It is now read-only.
This repository was archived by the owner on Jul 16, 2020. It is now read-only.

Confusing error message when changing subnet bits #1613

Description

@markdryan

I created a few instances, delete them all and tried to change the number of bits in my subnet network mask. This attempt failed:

$ CIAO_CLIENT_CERT_FILE=/etc/pki/ciao/auth-admin.pem ciao-cli tenant update --for-tenant b5445274-0f15-4425-9e5c-899f2ea86e9f --cidr-prefix-size 30
F1201 10:25:29.862842   12476 main.go:192] ciao-cli FATAL: HTTP Error [500] for [PATCH https://singlevm:8889/tenants/b5445274-0f15-4425-9e5c-899f2ea86e9f]: {"error":{"code":500,"name":"Internal Server Error","message":"Unable to update with active instances"}}
goroutine 1 [running]:
$ ciao-cli instance list
$

I guess the active instance here is the CNCI. I waited 5 minutes for it to die and then I was able to change the number of subnet bits. The problem here is, this is confusing from the user's point of view. They're told that they cannot update the number of subnet bits as there are active instances but when then enumerate their instances they see nothing.

Also, is it really not possible to update the number of subnet bits when one or more tenant CNCIs are running? I can see how this would mess things up but I just wanted to check.

Metadata

Metadata

Assignees

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