Skip to content

Default to OVNKubernetes NetworkType for E2E, enable API access for production#1571

Merged
mjudeikis merged 13 commits intoAzure:masterfrom
drewandersonnz:9823641
Jul 20, 2021
Merged

Default to OVNKubernetes NetworkType for E2E, enable API access for production#1571
mjudeikis merged 13 commits intoAzure:masterfrom
drewandersonnz:9823641

Conversation

@drewandersonnz
Copy link
Contributor

@drewandersonnz drewandersonnz commented Jul 1, 2021

Which issue this PR addresses:

ADO 9823641

What this PR does / why we need it:

Adds SDNProvider to the API
Sets OVNKubernetes as the default option for E2E
Maintains OpenShiftSDN as the default option for production

Test plan for issue:

Unit tests exists for API behavior (make test-go)
E2E tests will transition to OVNKubernetes

Is there any documentation that needs to be updated for this PR?

Auto-generated Swagger API client docs are available in PR.

@drewandersonnz
Copy link
Contributor Author

Looks to be blocked by jewzaam/installer-aro#2

Copy link
Contributor

@mjudeikis mjudeikis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still needs wiring into Installer and maybe E2E tests. Good start :)

@drewandersonnz
Copy link
Contributor Author

Still needs wiring into Installer and maybe E2E tests

@mjudeikis what do you mean?

  • installer is already updated, this PR builds clusters with OVNKubernetes by default, by passing OVNKubernetes as the default parameter to the RP API, and passing that through to installer after validation.

  • E2E tests will build an OVNKubernetes cluster by default, are you requesting we double the E2E tests to do one set for OpenShiftSDN and another E2E for OVNKubernetes ?

@mjudeikis
Copy link
Contributor

mjudeikis commented Jul 2, 2021

installer is already updated, this PR builds clusters with OVNKubernetes by default, by passing OVNKubernetes as the default parameter to the RP API, and passing that through to installer after validation.

Missed that one. Sorry.

E2E tests will build an OVNKubernetes cluster by default, are you requesting we double the E2E tests to do one set for OpenShiftSDN and another E2E for OVNKubernetes ?

No, I think lets leave one for now. I was thinking if we need something in E2E test suite to verify it works fine with our DNS changes. @Makdaam might be able to answer how much in the need we are here

@github-actions
Copy link

github-actions bot commented Jul 7, 2021

Please rebase pull request.

@github-actions github-actions bot added the needs-rebase branch needs a rebase label Jul 7, 2021
@github-actions github-actions bot removed the needs-rebase branch needs a rebase label Jul 7, 2021
Copy link
Contributor

@mjudeikis mjudeikis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned by @m1kola this is not yet done as per 3 usecases.
In example if you create this using old API you get this now:

ERRO[2021-07-13T08:43:47+01:00]pkg/util/steps/runner.go:34 steps.Run() step [Action github.com/Azure/ARO-RP/pkg/cluster.(*manager).Install.func1] encountered error: networki
ng.networkType: Required value: network provider type required  client_principal_name= client_request_id=01ea3a82-e3ae-11eb-bf99-b46921811e1f component=backend correlation_i
d= request_id=bff09dab-7500-4c53-957f-2a3735a1152d resource_group=v4-westeurope resource_id=/subscriptions/225e02bc-43d0-43d1-a01a-17e584a4ef69/resourcegroups/v4-westeurope/
providers/microsoft.redhatopenshift/openshiftclusters/mjudeikis2 resource_name=mjudeikis2 subscription_id=225e02bc-43d0-43d1-a01a-17e584a4ef69 

ERRO[2021-07-13T08:43:48+01:00]pkg/backend/openshiftcluster.go:221 backend.(*openShiftClusterBackend).updateAsyncOperation.func1() networking.networkType: Required value: ne
twork provider type required  client_principal_name= client_request_id=01ea3a82-e3ae-11eb-bf99-b46921811e1f component=backend correlation_id= request_id=bff09dab-7500-4c53-9
57f-2a3735a1152d resource_group=v4-westeurope resource_id=/subscriptions/225e02bc-43d0-43d1-a01a-17e584a4ef69/resourcegroups/v4-westeurope/providers/microsoft.redhatopenshif
t/openshiftclusters/mjudeikis2 resource_name=mjudeikis2 subscription_id=225e02bc-43d0-43d1-a01a-17e584a4ef69  

@github-actions
Copy link

Please rebase pull request.

@github-actions github-actions bot added the needs-rebase branch needs a rebase label Jul 15, 2021
@github-actions github-actions bot removed the needs-rebase branch needs a rebase label Jul 15, 2021
@drewandersonnz
Copy link
Contributor Author

Rebased.

Copy link
Contributor

@m1kola m1kola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but we need to tidy up the tests before we merge.

Copy link
Contributor

@m1kola m1kola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realised that we are not defining constatns for the internal representnation in pkg/api/openshiftcluster.go.

I think the PR looks very clean and I hope it is the last round of review from me, becuase everything else looks good.

@m1kola m1kola added the next-up label Jul 16, 2021
@drewandersonnz
Copy link
Contributor Author

Rebased (again)

@drewandersonnz drewandersonnz changed the title Default to OVNKubernetes NetworkType Default to OVNKubernetes NetworkType for E2E, enable API access for production Jul 19, 2021
Copy link
Contributor

@m1kola m1kola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Let's wait for e2e

@m1kola
Copy link
Contributor

m1kola commented Jul 19, 2021

E2E failed on vm redeployment. It is probably a known flake. Restarted.

@mjudeikis mjudeikis merged commit add7bc3 into Azure:master Jul 20, 2021
@drewandersonnz drewandersonnz deleted the 9823641 branch October 1, 2021 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants