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

Confusing error message when changing subnet bits #1613

Open
markdryan opened this issue Dec 1, 2017 · 0 comments
Open

Confusing error message when changing subnet bits #1613

markdryan opened this issue Dec 1, 2017 · 0 comments

Comments

@markdryan
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants