-
Notifications
You must be signed in to change notification settings - Fork 1.5k
openstack: Update User Documentation #2218
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
Conversation
|
The commit/PR subject could be more specific, and should at least mention OpenStack ;) |
docs/user/openstack/README.md
Outdated
| In order to determine which cloud to use, the user can either specify it in the `install-config.yaml` file under `platform.openstack.cloud` or with `OS_CLOUD` environment variable. | ||
| If both are omitted, then the cloud name defaults to `openstack`. | ||
|
|
||
| If you choose to use environment variables in place of a `clouds.yaml`, or along side it, consult the following [documentation](https://www.terraform.io/docs/providers/openstack/#configuration-reference): |
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.
I don' think we point to terraform docs specially.
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.
cc @crawford
docs/user/openstack/README.md
Outdated
| openstack image create --container-format=bare --disk-format=qcow2 --file rhcos-${RHCOSVERSION}-openstack.qcow2 rhcos | ||
| ``` | ||
|
|
||
| **NOTE:** Depending on your OpenStack environment you can upload the RHCOS image as `raw` or `qcow2`. See [Disk and container formats for images](https://docs.openstack.org/image-guide/image-formats.html) for more information. The installer looks for an image named `rhcos`. This could be overridden via the `OPENSHIFT_INSTALL_OS_IMAGE_OVERRIDE` environment variable if for instance your cloud operator provides the image under a different name. |
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.
This is not ideal..
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.
cc @crawford
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.
@abhinavdahiya can you clarify what the problem here is?
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.
Telling users to use OPENSHIFT_INSTALL_OS_IMAGE_OVERRIDE is not ideal as that env will show users a warning that override is not supported and should only be done for development.
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.
Can we file this as a bug in a bz, if its going to be problematic for our release, we would like to patch it
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.
Or would you rather we simply don't give them the option to use the Override
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.
@abhinavdahiya what is the desired way to set a different boot image in 4.2? Environment variable (as documented here) or option in the installer as implemented at #2226?
We need to come to a resolution for https://bugzilla.redhat.com/show_bug.cgi?id=1741930.
docs/user/openstack/README.md
Outdated
| ``` | ||
| $ env TF_VAR_openstack_external_network_id="6a32627e-d98d-40d8-9324-5da7cf1452fc" \ | ||
| ```sh | ||
| env TF_VAR_openstack_external_network_id="6a32627e-d98d-40d8-9324-5da7cf1452fc" \ |
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 users should not be asked to set these terraform specific envs. These should not end up in our public user documentation.
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.
cc @crawford
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.
This is a workaround for an edge case
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.
If we move it to a document exclusively for workarounds, can we still have it documented
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.
otherwise, we will file a bug report
|
/hold |
|
/project openstack |
|
/label platform/openstack |
|
@abhinavdahiya We addressed your suggestions, take a look |
docs/user/openstack/README.md
Outdated
| ``` | ||
| This method allows you to attach two floating IP addresses to endpoints in OpenShift. | ||
| For the time being, the OpenStack platform is not supported in the prompts. We will instead provide you with a template `install-config.yaml` to use below. If you want to go beyond the basic customizations we display below, there is more information available in [this document](customization.md). We have labled sections in the yaml below with the following syntax: (#). Look for the numbers below the template for explanations of how to complete those sections. |
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.
Hmm, is that true??
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.
It is with the latest 4.2 nightly. We are running a developer preview, and are trying to be as accurate to the current state of the installer as possible in the current iteration of the docs.
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.
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.
Hmm it should be the case though...
Or #2036 isn't yet in the latest nightly?
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.
I just tried the latest nightly at https://mirror.openshift.com/pub/openshift-v4/clients/ocp-dev-preview/latest/ and it proposes OpenStack as a platform choice in the wizard. I'm suggesting we remove this section and reference the docs/user/openstack/customization.md doc instead.
docs/user/openstack/customization.md
Outdated
| platform: {} | ||
| replicas: 3 | ||
| compute: | ||
| name: worker |
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.
This should be a list.
compute:
- name: worker
platform:
openstack:
type: ml.large
replicas: 3
docs/user/openstack/customization.md
Outdated
| metadata: | ||
| name: example | ||
| networking: | ||
| clusterNetworks: |
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.
clusterNetworks was renamed to clusterNetwork in v1beta4, see
installer/pkg/types/installconfig.go
Line 195 in 4e204c5
| // Deprecated name for ClusterNetwork |
hostSubnetLength is also deprecated.
You should instead have:
networking:
clusterNetwork:
- cidr: 192.168.1.0/16
hostPrefix: 23
docs/user/openstack/customization.md
Outdated
| - cidr: 192.168.1.0/16 | ||
| hostSubnetLength: 9 | ||
| machineCIDR: 10.0.0.0/16 | ||
| serviceCIDR: 172.30.0.0/16 |
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.
serviceCIDR should be replaced with serviceNetwork. It also now expects a list.
serviceNetwork:
- 172.30.0.0/16
docs/user/openstack/customization.md
Outdated
| hostSubnetLength: 9 | ||
| machineCIDR: 10.0.0.0/16 | ||
| serviceCIDR: 172.30.0.0/16 | ||
| type: OpenShiftSDN |
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.
type should be changed for networkType.
networkType: OpenShiftSDN
docs/user/openstack/README.md
Outdated
| instructions and scripts to help with creating a single-node OpenStack | ||
| development environment for running the installer. Please refer to the | ||
| documentation in that repository for further details. | ||
| If you would like to set up an isolated development environment, you may use a bare metal host running CentOS 7. The following repository includes some instructions and scripts to help with creating a single-node OpenStack development environment for running the installer. Please refer to [this documentation](ocp-doit) for further details. |
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.
Syntax for the ocp-doit link is not good, it's rendered as a relative link.
docs/user/openstack/README.md
Outdated
|
|
||
| ## Destroying The Cluster | ||
|
|
||
| Destroying the cluster has been noticed to sometimes fail. We are working on patching this, but in a mean time the workaround is to simply run it again. To do so, point it to your cluster with this command: |
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.
Please link to an open issue so that users will know when it is fixed.
| * `openstack floating ip create --port master-port-1 <public network>` | ||
| * `openstack floating ip create --port master-port-2 <public network>` | ||
| ```sh | ||
| openstack floating ip create --port master-port-0 <public network> |
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.
It doesn't have to be public network. It has to be a network the external load balancer has access to though.
docs/user/openstack/README.md
Outdated
|
|
||
| * `<load balancer ip> <cluster-name>-api.<base domain>` | ||
| ```txt | ||
| <load balancer ip> <cluster-name>-api.<base domain> |
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.
This is not a DNS record, but a /etc/hosts format.
docs/user/openstack/README.md
Outdated
|
|
||
| Now the DNS entry for <cluster name>-api.<base domain> needs to be updated | ||
| to point to the new load balancer: | ||
| Now the DNS entry for `<cluster name>-api.<base domain>` needs to be updated to point to the new load balancer: |
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.
It's api.<cluster name>.<base domain>
docs/user/openstack/README.md
Outdated
| curl https://<loadbalancer ip>:22623/config/master --insecure | ||
| ``` | ||
| Now that the DNS and load balancer has been moved, we can take down the existing |
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.
API VM is gone.
|
/retitle openstack: Update User Documentation |
|
@abhinavdahiya updated, pls approve |
|
/hold |
Refresh the user documentation with the current state of deployment on OpenStack. Co-Authored-By: Emilio Garcia <[email protected]> Co-Authored-By: Ramon Acedo Rodriguez <[email protected]> Co-Authored-By: Martin André <[email protected]>
|
/hold cancel |
|
/lgtm |
|
/lgtm |
|
@Fedosin: you cannot LGTM your own PR. DetailsIn response to this:
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. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinavdahiya, Fedosin, iamemilio The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
No description provided.