-
Notifications
You must be signed in to change notification settings - Fork 50
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
[WIP]Ignore network reconfiguration if deployscope bootstrap #312
[WIP]Ignore network reconfiguration if deployscope bootstrap #312
Conversation
f1fafc6
to
d11e226
Compare
Can you rebase your branch and only cherry-pick your commit in this PR? I will only review your commit in this PR |
@@ -835,7 +835,17 @@ func (r *PlatformNetworkReconciler) ReconcileResource(client *gophercloud.Servic | |||
return err | |||
} | |||
if instance.Status.DeploymentScope == cloudManager.ScopeBootstrap { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only want to ignore configuration of oam/mgmt/admin networks, should allow the other types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the code with check for network type
+2, is hard to review it with Sriram's PR as well |
@yjian118 @hugonicodemos only above is the code snippet from this commit. |
This commit enables platform network reconfiguration which is a Day-2 operation. The scope of this commit is limited to AIO-SX systems and oam, mgmt, admin network types. The network reconfigurtion will be ignored if the system is of other types. Test Cases: 1. PASS - Verify network reconfig is successful on AIO-SX systems by updating platform resource configurations with deploymentScope of "principal" for oam/mgmt/admin networks. 2. PASS - Verify network reconfig is successful on AIO-SX systems by applying new platform resource configurations with deploymentScope of "principal" for oam/mgmt/admin networks. 3. PASS - Verify network reconfig is ignored on systems other than AIO-SX despite setting deploymentScope of "principal". The values for "INSYNC" and "RECONCILED" should reflect true reconciliation status. 4. PASS - Verify that network reconfig is ignored if deploymentScope is "bootstrap" and the values for "INSYNC" and "RECONCILED" reflect the true reconcialiation status. Signed-off-by: Sriram Narasimhan <Sriram.Narasimhan@windriver.com> (cherry picked from commit d6d0c8d) (cherry picked from commit 8a06618)
After the platformNetwork configuration of the OAM/MGMT/ADMIN networks, there is a chance that the networks configured in deployment config yaml is not aligned with the bootstrap values. DM shall not overwrite the networks configured during the bootstrap. Resource platformNetworks shall be out-of-sync and not reconciled thereby raising an alarm for user action. Test Plan: 1. PASS: Deployment config yaml applied with deploymentScope: "bootstrap" for platformNetwork resource, insync will be false, reconcile will be false, and alarm will be raised. 2. PASS: Deployment config yaml applied with deploymentScope: "principal" for platformNetwork resource, insync will be true, reconcile will be true, and config will be overwritten. Signed-off-by: vineela-pachchipulusu <Vineela.Pachchipulusu@windriver.com> (cherry picked from commit d11e226)
d11e226
to
c838be0
Compare
let's focus on your PR then. |
Signed-off-by: vineela-pachchipulusu <Vineela.Pachchipulusu@windriver.com>
c838be0
to
9a87465
Compare
This PR is closed because the code is covered in the PR https://github.com/Wind-River/cloud-platform-deployment-manager/pull/315 |
After the platformNetwork configuration of the OAM/MGMT/ADMIN networks,
there is a chance that the networks configured in deployment config yaml
is not aligned with the bootstrap values.
DM shall not overwrite the networks configured during the bootstrap.
Resource platformNetworks shall be out-of-sync and not reconciled
thereby raising an alarm for user action.
Test Plan:
PASS: Deployment config yaml applied with deploymentScope: "bootstrap"
for platformNetwork resource, insync will be false, reconcile will be false,
and alarm will be raised.
PASS: Deployment config yaml applied with deploymentScope: "principal"
for platformNetwork resource, insync will be true, reconcile will be true,
and config will be overwritten.