-
Notifications
You must be signed in to change notification settings - Fork 24
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
vRA Custom Resource push problem #552
Comments
@oporanski When you opeend up the bug, there was a template that you needed to fill, giving us important information we need. |
So, what you are seeing is actually correct. There is an error, but it's just a log. The execution actually continues and you should see: The logic for handling Custom resources is quite complex, but the thing that actually matters is that as you noticed you cannot delete a Custom Resource if it's in use. So what we attempt to do is "update" the Custom Resource with what you have locally and we hope it works. |
You can look at the VraNgCustomResourcesStore > importCustomResource for more info... it's complex but there are a lot of comments and logs for this |
Sorry i did not know that there is a template 02:21:27.290 [main] INFO com.vmware.pscoe.iac.artifact.store.vrang.VraNgCustomResourceStore - Trying to delete custom resource 'BMS' first. {"timestamp":"2024-12-03T01:21:27.338+0000","path":"/form-service/api/custom/resource-types/3f691877-1bbb-4ac8-bbc1-acd2220b71c0","status":400,"error":"Bad Request","message":"400 BAD_REQUEST "Resource type cannot be deleted as there are active resources attached to it: 'Custom.BMS'"","requestId":"be00e27d-1452895","@type":"org.springframework.web.server.ResponseStatusException"} |
Discussed in #550
Originally posted by oporanski December 2, 2024
Question
I'm stuck with version 2.39.0. every time i try to upgrade vRBT and i try to run my pipeline i always get the error below.
It seems that vRA project try to delete existing Dynamic Type (Custom Resource). vRA do not allow to delete Custom Resource if any instances exist. The error you see is a try to push back the code to this same instance it was taken form!
Is this a issue with my pipeline or a known issue with vRBT?
BTW is thee any build tools documentation and some more information what newer versions offer than what i can see in releases What's Changed If you are not a vRBT developer its not possible to understand this.
Error:
02:19:43.700 [main] INFO com.vmware.pscoe.iac.artifact.store.vrang.VraNgCustomResourceStore - Importing custom resource BMS...
02:19:43.749 [main] INFO com.vmware.pscoe.iac.artifact.store.vrang.VraNgCustomResourceStore - Custom resource 'BMS' already exists and has ID '3f691877-1bbb-4ac8-bbc1-acd2220b71c0'
02:19:43.750 [main] INFO com.vmware.pscoe.iac.artifact.store.vrang.VraNgCustomResourceStore - Trying to delete custom resource 'BMS' first.
02:19:43.750 [main] INFO com.vmware.pscoe.iac.artifact.rest.RestClientVraNg - Deleting custom resource with id '3f691877-1bbb-4ac8-bbc1-acd2220b71c0'
Exception in thread "main" java.lang.RuntimeException: Error executing POST to server: java.lang.RuntimeException : Could not delete custom resource with name 'BMS' (id:3f691877-1bbb-4ac8-bbc1-acd2220b71c0).
at com.vmware.pscoe.iac.artifact.store.vrang.VraNgCustomResourceStore.importCustomResource(VraNgCustomResourceStore.java:316)
at com.vmware.pscoe.iac.artifact.store.vrang.VraNgCustomResourceStore.importContent(VraNgCustomResourceStore.java:177)
at com.vmware.pscoe.iac.artifact.VraNgPackageStore.importPackage(VraNgPackageStore.java:274)
at com.vmware.pscoe.iac.artifact.VraNgPackageStore.importAllPackages(VraNgPackageStore.java:139)
The text was updated successfully, but these errors were encountered: