Bug 1141982
Summary: | Configurations of 2 consecutive deployments get mixed up | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Lukas Krejci <lkrejci> | ||||||||||||||||||
Component: | Provisioning, UI | Assignee: | Lukas Krejci <lkrejci> | ||||||||||||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Armine Hovsepyan <ahovsepy> | ||||||||||||||||||
Severity: | high | Docs Contact: | |||||||||||||||||||
Priority: | unspecified | ||||||||||||||||||||
Version: | JON 3.3.0 | CC: | ahovsepy, mfoley | ||||||||||||||||||
Target Milestone: | ER04 | ||||||||||||||||||||
Target Release: | JON 3.3.0 | ||||||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||
Whiteboard: | |||||||||||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||||
Last Closed: | 2014-12-11 14:04:27 UTC | Type: | Bug | ||||||||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||||||||
Documentation: | --- | CRM: | |||||||||||||||||||
Verified Versions: | Category: | --- | |||||||||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||
Embargoed: | |||||||||||||||||||||
Bug Depends On: | |||||||||||||||||||||
Bug Blocks: | 1069547 | ||||||||||||||||||||
Attachments: |
|
Description
Lukas Krejci
2014-09-15 22:44:00 UTC
Basing the severity, target version and target milestone on BZ 1069547 which is blocked by this issue. master: 8ddc6ca38e45b6312fb7d903a5f9eef50cf068bb release/jon3.3.x: dd19935f47acf2a4da8c81ec2f8e9f2f0d8d45eb Author: Lukas Krejci <lkrejci> Date: Wed Sep 17 21:24:53 2014 +0200 [BZ 1141982] Readonly required props with defaults forced to same values during bundle deployment. In the case of new resource creation where the user has the ability to enter an initial value for a readonly property. This is not true with bundle deployment because the configuration object is populated with the default values straight away. This is to make it possible for the server-side bundle plugin to pass on some information to the agent-side bundle handler. This fix ensures that an update of such readonly property is not possible either through UI or remote API. In remote API we simply check the supplied deployment configuration more rigorously, disallowing changes of any readonly properties from the default values provided by the deployment configuration definition. The UI had a clever logic of reusing configuration properties used with the currently live deployment (if any). This approach generally worked but was also updating readonly properties with the values coming from the live deployment which is a wrong thing to do if we understand the readonly props as a way of defining additional metadata about the bundle version generated by the server-side plugin. These should always be relevant to the bundle version being deployed and not taken over from a deployment of some previous bundle version. The release branch commit hash is this: def8112715dc27123d6e3534c4be7bf255f05ce9 Moving to ON_QA as available for test with build: https://brewweb.devel.redhat.com/buildinfo?buildID=388959 deploying new version of the bundle with changed input on top of old destination still uses the old input values. Screen-shots attached. Created attachment 946726 [details]
input_old_value
Created attachment 946727 [details]
input_same_destination
Created attachment 946728 [details]
input_new_value
Created attachment 946730 [details]
input_old_version
The additional info of the bug description contains a note that it is debatable whether the proposed behavior makes sense for writable properties. The commit message in comment #2 then explicitly states that in the end the proposed behavior has been changed for readonly required properties only. As such, the following should be true when creating a new deployment on a destination: 1) writable properties should inherit values from the live deployment 2) readonly required properties should always have their default values defined in the descriptor of the bundle version being deployed. Also additionally, the behavior wrt readonly required props should be tested when using the CLI to do the bundle deployment. verified in JON 3.3 ER04 screen-shot for GUI and log from cli deployments attached Created attachment 947208 [details]
patchId
Created attachment 947209 [details]
patchId2
Created attachment 947210 [details]
patch6.2.2
Created attachment 947211 [details]
patch_cli.log
|