Skip to content
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

Document Hybird Overlay Config #513

Merged
merged 1 commit into from Mar 6, 2020

Conversation

pecameron
Copy link
Contributor

@pecameron pecameron commented Mar 4, 2020

How to configure a hybird cluster of Linux an Windows nodes.

https://issues.redhat.com/browse/SDN-842

Signed-off-by: Phil Cameron pcameron@redhat.com

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 4, 2020
@pecameron
Copy link
Contributor Author

@dcbw @aravindhp PTAL

Copy link

@sebsoto sebsoto left a comment

Choose a reason for hiding this comment

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

Thanks @pecameron this is really helpful! I'll give it a shot, in the meantime theres a few spelling changes that could be made

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@sebsoto
Copy link

sebsoto commented Mar 4, 2020

Followed the instructions and it seemed to work:

INFO Waiting up to 30m0s for the cluster at https://api.ssoto-dev.devcluster.openshift.com:6443 to initialize... 
INFO Waiting up to 10m0s for the openshift-console route to be created... 
INFO Install complete!                            
INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/home/ssoto/dev/openshift/installer/aws/aws_3_4_20/auth/kubeconfig' 
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.ssoto-dev.devcluster.openshift.com 
INFO Login to the console with user: kubeadmin, password:  REDACTED
[ssoto@localhost aws]$ export KUBECONFIG=/home/ssoto/dev/openshift/installer/aws/aws_3_4_20/auth/kubeconfig
[ssoto@localhost aws]$ oc get -o yaml network.operator cluster
apiVersion: operator.openshift.io/v1
kind: Network
metadata:
  creationTimestamp: "2020-03-04T21:04:35Z"
  generation: 1
  name: cluster
  resourceVersion: "441"
  selfLink: /apis/operator.openshift.io/v1/networks/cluster
  uid: 192e1799-670e-4c3d-b795-c09fa91cf503
spec:
  clusterNetwork:
  - cidr: 10.128.0.0/14
    hostPrefix: 23
  defaultNetwork:
    ovnKubernetesConfig:
      hybridOverlayConfig:
        hybridClusterNetwork:
        - cidr: 10.132.0.0/14
          hostPrefix: 23
    type: OVNKubernetes
  serviceNetwork:
  - 172.30.0.0/16
status: {}

README.md Outdated
- cidr: 10.132.0.0/14
hostPrefix: 23
```
The hybridClusterNetwork cidr and hostPrefix are used when adding windows nodes. This cidr must not overlap the ClusterNetwork cidr.
Copy link
Contributor

Choose a reason for hiding this comment

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

@pecameron windows -> Windows?

Copy link
Contributor

Choose a reason for hiding this comment

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

Put the first cidr here in backticks to show it's a literal. Capitalize the second I think because it's a generic reference.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dcbw Did I get the changes right?
Also, found that we are limited to a single hybridClusterNetwork: cidr.
Question: did we change from config.openshift.io/v1 to operator.openshift.io/v1? If so installer is wrong.

Copy link
Contributor

Choose a reason for hiding this comment

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

@pecameron we shouldn't be limited to a single hybrid overlay CIDR. For the YAML I think it would be:

    ovnKubernetesConfig:
      hybridOverlayConfig:
        hybridClusterNetwork:
        - cidr: 10.132.0.0/14
          hostPrefix: 23
        - cidr: 11.150.0.0/14
          hostPrefix: 23

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dcbw The code does 1 CIDR.
pkg/network/ovn_kubernetes.go:82: data.Data["OVNHybridOverlayNetCIDR"] = c.HybridOverlayConfig.HybridClusterNetwork[0].CIDR

Copy link
Contributor

Choose a reason for hiding this comment

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

@pecameron I guess we should fix that in CNO then... @JacobTanenbaum can you take that task?

@pecameron
Copy link
Contributor Author

@sebsoto Thanks for giving it a try. I may your suggested changes. PTAL
@dcbw PTAL
Since this is a README change the failed tests are flakes
/retest

@pecameron
Copy link
Contributor Author

@dcbw The only change is the README.md file. Test failures are not related to these changes.
This can be merged when the changes are approved.

@aravindhp
Copy link

@dcbw The only change is the README.md file. Test failures are not related to these changes.
This can be merged when the changes are approved.

@dcbw FYI, I have been using /override <testname> to override tests for doc changes.

@pecameron pecameron force-pushed the testhybird branch 2 times, most recently from d7e98c9 to 8e6b600 Compare March 5, 2020 15:04
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
How to configure a hybrid cluster of Linux an Windows nodes.

SDN-842 - Bring up hybrid cluster and document process
https://issues.redhat.com/browse/SDN-842

Signed-off-by: Phil Cameron <pcameron@redhat.com>
@pecameron
Copy link
Contributor Author

@dcbw PTAL

@pecameron
Copy link
Contributor Author

@dcbw @sebsoto @aravindhp PTAL

@knobunc
Copy link
Contributor

knobunc commented Mar 6, 2020

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 6, 2020
@knobunc
Copy link
Contributor

knobunc commented Mar 6, 2020

/retest

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: knobunc, pecameron

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 6, 2020
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@pecameron
Copy link
Contributor Author

pecameron commented Mar 6, 2020 via email

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@pecameron
Copy link
Contributor Author

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 2ee6eea into openshift:master Mar 6, 2020
@openshift-ci-robot
Copy link
Contributor

@pecameron: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-gcp-ovn 37a778c link /test e2e-gcp-ovn

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@pecameron pecameron deleted the testhybird branch March 9, 2020 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants