Skip to content

Conversation

@Fedosin
Copy link
Contributor

@Fedosin Fedosin commented Aug 14, 2019

No description provided.

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 14, 2019
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 14, 2019
@wking
Copy link
Member

wking commented Aug 14, 2019

The commit/PR subject could be more specific, and should at least mention OpenStack ;)

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):
Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

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.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not ideal..

Copy link
Contributor

Choose a reason for hiding this comment

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

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?

Copy link
Contributor

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.

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

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

Copy link
Member

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.

```
$ 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" \
Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

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

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

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

@abhinavdahiya
Copy link
Contributor

/hold

@openshift-ci-robot openshift-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. and removed approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 14, 2019
@iamemilio
Copy link

/project openstack

@iamemilio
Copy link

/label platform/openstack

@iamemilio
Copy link

@abhinavdahiya We addressed your suggestions, take a look

```
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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, is that true??

Copy link

@iamemilio iamemilio Aug 16, 2019

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.

Choose a reason for hiding this comment

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

Copy link
Member

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?

Copy link
Member

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.

platform: {}
replicas: 3
compute:
name: worker
Copy link
Member

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

metadata:
name: example
networking:
clusterNetworks:
Copy link
Member

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

// Deprecated name for ClusterNetwork

hostSubnetLength is also deprecated.

You should instead have:

networking:
  clusterNetwork:
  - cidr: 192.168.1.0/16
    hostPrefix: 23

- cidr: 192.168.1.0/16
hostSubnetLength: 9
machineCIDR: 10.0.0.0/16
serviceCIDR: 172.30.0.0/16
Copy link
Member

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

hostSubnetLength: 9
machineCIDR: 10.0.0.0/16
serviceCIDR: 172.30.0.0/16
type: OpenShiftSDN
Copy link
Member

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

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.
Copy link
Member

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.


## 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:
Copy link
Member

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>
Copy link
Member

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.


* `<load balancer ip> <cluster-name>-api.<base domain>`
```txt
<load balancer ip> <cluster-name>-api.<base domain>
Copy link
Member

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.


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:
Copy link
Member

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>

curl https://<loadbalancer ip>:22623/config/master --insecure
```
Now that the DNS and load balancer has been moved, we can take down the existing
Copy link
Member

Choose a reason for hiding this comment

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

API VM is gone.

@mandre
Copy link
Member

mandre commented Aug 19, 2019

@Fedosin Please take a look at Fedosin#4 for some fixes to the install doc.

@mandre
Copy link
Member

mandre commented Aug 19, 2019

/retitle openstack: Update User Documentation

@openshift-ci-robot openshift-ci-robot changed the title Update User Documetation openstack: Update User Documentation Aug 19, 2019
@openshift-ci-robot openshift-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 19, 2019
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 19, 2019
@iamemilio
Copy link

@abhinavdahiya updated, pls approve

@Fedosin
Copy link
Contributor Author

Fedosin commented Aug 19, 2019

/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]>
@Fedosin
Copy link
Contributor Author

Fedosin commented Aug 19, 2019

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 19, 2019
@iamemilio
Copy link

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 19, 2019
@Fedosin
Copy link
Contributor Author

Fedosin commented Aug 19, 2019

/lgtm

@openshift-ci-robot
Copy link
Contributor

@Fedosin: you cannot LGTM your own PR.

Details

In response to this:

/lgtm

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.

@abhinavdahiya
Copy link
Contributor

/approve

@openshift-ci-robot
Copy link
Contributor

[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

Details 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 Aug 19, 2019
@openshift-merge-robot openshift-merge-robot merged commit 76540bf into openshift:master Aug 19, 2019
@Fedosin Fedosin deleted the user_docs branch November 1, 2019 11:18
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. platform/openstack size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants