-
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
Update OAM Network using oam API #305
Conversation
This commits enable the OAM network using the oam network API instead of the addresspool API. Test Plan: 1. After system installation setup the platformNetwork with new values of the OAM Network. 2. Apply the deployment configuration 3. Check the OAM Network was updated - system oam-show - system addrpool-list Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
The code lgtm. But there's a request: if the deployScope = "bootstrap", ignore the difference even if the OAM network in the deployment-config.yaml is different than the current config(should be configured by the bootstrap playbook), will it be delivered in another commit? |
@@ -317,6 +414,18 @@ func (r *PlatformNetworkReconciler) ReconcileAddressPool(client *gophercloud.Ser | |||
} else { | |||
if pool == nil { | |||
pool, err = r.ReconcileNewAddressPool(client, instance) | |||
} else if instance.Spec.Type == "oam" { |
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.
Personally, I prefer to use Constant for "oam" but not mandatory
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'll handle this in a follow-up commit when we create and manage the other networks (admin, mgmt). Is that okay?
Request a test of a lab deployment before merging this code. @hugonicodemos can you add two cases: We can separate the scope work items in the next commit if the sanity passed |
|
Request a test case for deployScope="bootstrap" and deployScope="principal" and |
As a follow up, edit deploy-config.yaml with OAM NW change and apply again (day-2) |
New tests are performed:
|
|
done |
@@ -200,6 +263,39 @@ func (r *PlatformNetworkReconciler) ReconcileNewAddressPool(client *gophercloud. | |||
// ReconcileUpdated is a method which handles reconciling an existing data |
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.
The description need to be allocated at the right function, expecting description to the new function as well
I did the test as follows:
3 config the subcloud with "dcmanager subcloud deploy config --deploy-config <>" I can see the log in the DM log as:
After the deployment, my OAM ssh lost connection after unlock. And the deploy playbook failed as:
I can login to the subcloud via 10.10.10.42 after the unlock:
Apparently, this is a failed case from the misconfiguration of the deployment-config.yaml, but we want to prevent it if possible. |
This commits enable the OAM network using the
oam network API instead of the addresspool API.
Test Plan: