-
Notifications
You must be signed in to change notification settings - Fork 146
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
Cannot update workspace with custom address space #3691
Comments
@jlabhard-sg thanks for reporing. Not many people use custom address spaces as far as I am aware. Updating should not be possible as you can't change the address space once it has things on it. Do you agree? Can you try changing: To false and see if that sorts things out? |
Hi @marrobi , |
@marrobi Setting the address_spaces properties to non-updateable did not solve the issue. |
Ok, it will need further debugging/time to look for an appropriate solution. If you can come up with a working solution, welcome a contribution, it's unlikely we will have chance to dig into it for a while. I tend to think not validating the address space if it has not changed/is and update , makes most sense. |
@jlabhard-sg just taking a look at this, I'm trying to work out the code path that results in It is called in II will try to reproduce myself, but confused as to why this would occur. |
@marrobi It is possible that I mixed the error message from two different issues when looking for them in the app insights. "Does not fit in the current network" probably happened when trying to create a workspace with an address space that was used by a deleted workspace. I believe this is still undesirable. However, updating a workspace with custom address space also doesn't work. But the only error message I can find is "Unevaluated properties <address_space> is not allowed". Currently, I am able to bypass it by updating the resource in CosmosDB and using the swagger UI to update the workspace. |
Ok, other than the excluding deleted the issue is as
AzureTRE/api_app/services/schema_service.py Lines 51 to 54 in 63aa23d
We are only iterating through the top level properties and making fields read only, not the |
@jlabhard-sg any change you can build the image in #3714 and give it a go and see if the issue is resolved. I've given it a go and is good for me. Thanks. |
Great, might take a little while to get it merged in, but good to know it works. |
Describe the bug
Creating a workspace with a custom address space and then updating it will fail with
The custom 'address_space' you requested does not fit in the current network.
This is because the methodworkspaces.validate_address_space()
will check the allocated network on update, find that the network is already allocated (to the current workspace), and return the error.The same error arises when creating a workspace and specifying a custom address space which overlaps with a workspace that has been deleted.
Steps to reproduce
Suggested changes
The text was updated successfully, but these errors were encountered: