History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-3861
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Robin Shen
Reporter: Robert Saladra
Votes: 4
Watchers: 0

If you were logged in you would be able to see more operations.

Unalbe to create Cloud Profile with podCustomization via REST API

Created: 26/May/22 01:01 PM   Updated: 30/May/22 11:23 AM
Component/s: None
Affects Version/s: 12.0.2
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. XML File new-cloud-profile.xml (1.0 kb)
2. Text File server.log (7 kb)

Environment: Ubuntu 22.04 LTS, OpenJDL 11.0.15, QuickBuild 12.0.2

 Description  « Hide
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.

 All   Comments   Work Log   Change History      Sort Order:
Robert Saladra [26/May/22 01:02 PM]
cropped server log with duplicate-field error

Change by Robert Saladra [26/May/22 01:02 PM]
Field Original Value New Value
Attachment server.log [ 10920 ]

Robert Saladra [26/May/22 01:02 PM]
example XML with podCustomization field filled in

Change by Robert Saladra [26/May/22 01:02 PM]
Attachment new-cloud-profile.xml [ 10921 ]

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:

Robert Saladra [30/May/22 11:20 AM]
Works now, thanks a lot. Please close the ticket

Change by Robin Shen [30/May/22 11:23 AM]
Status Open [ 1 ] Closed [ 6 ]
Resolution Won't Fix [ 2 ]