<< Back to previous view |
![]() |
[QB-3861] Unalbe to create Cloud Profile with podCustomization via REST API
|
|
Status: | Closed |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | 12.0.2 |
Fix Version/s: | None |
Type: | Bug | Priority: | Major |
Reporter: | Robert Saladra | Assigned To: | Robin Shen |
Resolution: | Won't Fix | Votes: | 4 |
Remaining Estimate: | Unknown | Time Spent: | Unknown |
Original Estimate: | Unknown | ||
Environment: | Ubuntu 22.04 LTS, OpenJDL 11.0.15, QuickBuild 12.0.2 |
File Attachments: |
![]() ![]() |
Description |
I've tried creating Cloud Profile on Kubernetes Node Launcher with custom podCustomization field via REST API (XML version). When doing so, server responses with HTTP 500 error. Server log reports duplicate-field error, indicating that QuickBuild add this fields without checking if it's already provided in request. Both example XML and cropped server log attached.
Also updating this field in existing Cloud Profile does not work as expected. I've tried similar XML but with added ID of CP to update. CP is updated without error, but podCustomization field is all written in single line. I'm not sure is it parsing correctly later on, but for sure it's no readable. I've not tried JSON version of REST API, but I expect both of them are facing same issues. |
Comments |
Comment by Robert Saladra [ 26/May/22 01:02 PM ] |
cropped server log with duplicate-field error |
Comment by Robert Saladra [ 26/May/22 01:02 PM ] |
example XML with podCustomization field filled in |
Comment by Robin Shen [ 27/May/22 02:12 AM ] |
Please modify revision attribute of element "com.pmease.quickbuild.plugin.cloud.kubernetes.KubernetesNodeLauncher" to be "0.0.2". The restful api input can not be migrated and always expect to be current version (you may check the version by creating a cloud profile via GUI, and then get the XML via restful api).
Also please use --data-binary to preserve the line breaks. The document has been updated: https://wiki.pmease.com/display/QB12/Interact+with+Cloud+Profiles |
Comment by Robert Saladra [ 30/May/22 11:20 AM ] |
Works now, thanks a lot. Please close the ticket |