Default to OVNKubernetes NetworkType for E2E, enable API access for production#1571
Default to OVNKubernetes NetworkType for E2E, enable API access for production#1571mjudeikis merged 13 commits intoAzure:masterfrom
Conversation
|
Looks to be blocked by jewzaam/installer-aro#2 |
mjudeikis
left a comment
There was a problem hiding this comment.
Still needs wiring into Installer and maybe E2E tests. Good start :)
@mjudeikis what do you mean?
|
Missed that one. Sorry.
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 |
|
Please rebase pull request. |
There was a problem hiding this comment.
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 |
Please rebase pull request. |
|
Rebased. |
m1kola
left a comment
There was a problem hiding this comment.
Looks good, but we need to tidy up the tests before we merge.
pkg/api/v20210131preview/openshiftcluster_validatestatic_test.go
Outdated
Show resolved
Hide resolved
pkg/api/v20210131preview/openshiftcluster_validatestatic_test.go
Outdated
Show resolved
Hide resolved
pkg/api/v20210131preview/openshiftcluster_validatestatic_test.go
Outdated
Show resolved
Hide resolved
pkg/api/v20210131preview/openshiftcluster_validatestatic_test.go
Outdated
Show resolved
Hide resolved
pkg/api/v20210131preview/openshiftcluster_validatestatic_test.go
Outdated
Show resolved
Hide resolved
m1kola
left a comment
There was a problem hiding this comment.
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.
pkg/api/v20210131preview/openshiftcluster_validatestatic_test.go
Outdated
Show resolved
Hide resolved
pkg/api/v20210131preview/openshiftcluster_validatestatic_test.go
Outdated
Show resolved
Hide resolved
pkg/api/v20210131preview/openshiftcluster_validatestatic_test.go
Outdated
Show resolved
Hide resolved
pkg/api/v20210131preview/openshiftcluster_validatestatic_test.go
Outdated
Show resolved
Hide resolved
|
Rebased (again) |
m1kola
left a comment
There was a problem hiding this comment.
Looks good to me. Let's wait for e2e
|
E2E failed on vm redeployment. It is probably a known flake. Restarted. |
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.