Skip to content

Conversation

@mletalie
Copy link
Contributor

@mletalie mletalie commented Oct 16, 2023

@openshift-ci openshift-ci bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 16, 2023
@ocpdocs-previewbot
Copy link

ocpdocs-previewbot commented Oct 16, 2023

🤖 Updated build preview is available at:
https://66312--docspreview.netlify.app

Build log: https://circleci.com/gh/ocpdocs-previewbot/openshift-docs/31688

@mletalie mletalie changed the title Osdocs 6942 [OSDOCS-6942]:OSD on GCP can be installed into Shared VPC (XPN) Oct 17, 2023
@mletalie mletalie marked this pull request as draft October 17, 2023 14:16
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 17, 2023
@mletalie
Copy link
Contributor Author

mletalie commented Oct 17, 2023

Hello @svmrh,
Please see the draft for this topic here (starting on step 15) https://66312--docspreview.netlify.app/openshift-dedicated/latest/osd_install_access_delete_cluster/creating-a-gcp-cluster#osd-create-gcp-cluster-ccs_osd-creating-a-cluster-on-gcp
image

Questions:

  1. Do you think we need a link in the first "Important" note that points users to info regarding enabling a project as a host project?

  2. In the second "Important" note, it states "...who must grant the service account..." Do we need to specify that the service account is auto-generated once the steps in the wizard are completed (I think that is the case from watching the demo) and that service account ID needs to be given to the host project administrator so they can grant those permissions to that service account?

  3. Do you think that the placement of this "Important" note is correct, or would it make more sense at the end of the steps in the docs?

  4. Do you think in step 16 we need to change the first sentence to reflect the option we have added (ie shared GPC VPC)? Maybe not necessary, b/c user has to have opted to install the cluster in an existing GCP VPC to access installing the cluster in a shared VPC...but let me know what you think.

  5. Overall, do think anymore specific information needs to be added for user to use this feature? Not sure if we need to go deeper into the specifics given we are linking out to Google docs that are overall pretty informative.

Thanks for your help!

@svmrh
Copy link

svmrh commented Oct 18, 2023

@mletalie : Thanks for putting this together.

  1. The placement of the first "IMPORTANT" note if fine. Yes, it will be good to point users to the GCP documentation on Shared VPC. Here's the link to GCP documentation explaining the steps to enable a host project.
    https://cloud.google.com/vpc/docs/provisioning-shared-vpc#set-up-shared-vpc

Do you think it makes sense to also add a link to general overview on what is Shared VPC in Google Cloud?
https://cloud.google.com/vpc/docs/shared-vpc

  1. For the IMPORTANT note in 15.b, can we make it explicit that the cluster admin has to complete the steps within the cluster configuration wizard and hit submit. I have made minor edits. Please check if it looks okay

Once you complete the steps within the cluster configuration wizard and click "Create Cluster", the cluster will go into "Installation Pending" state. At this point, you must contact the VPC administrator of the host project, who must grant the dynamically generated service account the following permissions: Computer Network Administrator, Compute Security Administrator, and DNS Administrator. The administrator has 30 days to grant the listed permissions before the cluster creation fails. For information about shared GPC VPC permissions, see Provision shared VPC.

  1. the placement of the second IMPORTANT note is fine here (i.e. in step 15.b). Placing it towards the end of all the steps (i.e. after step 20) might be a little off context. What are your thoughts?

  2. Yeah, no need of adding references to the Shared VPC option in step 16. This is because the users can install into an existing VPC (i.e. do step 16) and still skip the Shared VPC configuration.

Let's share this MR in tomorrow's (Thursday, Oct 19th) team meeting and request everyone to review changes.

@mletalie
Copy link
Contributor Author

@mletalie : Thanks for putting this together.

  1. The placement of the first "IMPORTANT" note if fine. Yes, it will be good to point users to the GCP documentation on Shared VPC. Here's the link to GCP documentation explaining the steps to enable a host project.
    https://cloud.google.com/vpc/docs/provisioning-shared-vpc#set-up-shared-vpc

Do you think it makes sense to also add a link to general overview on what is Shared VPC in Google Cloud? https://cloud.google.com/vpc/docs/shared-vpc

  1. For the IMPORTANT note in 15.b, can we make it explicit that the cluster admin has to complete the steps within the cluster configuration wizard and hit submit. I have made minor edits. Please check if it looks okay

Once you complete the steps within the cluster configuration wizard and click "Create Cluster", the cluster will go into "Installation Pending" state. At this point, you must contact the VPC administrator of the host project, who must grant the dynamically generated service account the following permissions: Computer Network Administrator, Compute Security Administrator, and DNS Administrator. The administrator has 30 days to grant the listed permissions before the cluster creation fails. For information about shared GPC VPC permissions, see Provision shared VPC.

  1. the placement of the second IMPORTANT note is fine here (i.e. in step 15.b). Placing it towards the end of all the steps (i.e. after step 20) might be a little off context. What are your thoughts?
  2. Yeah, no need of adding references to the Shared VPC option in step 16. This is because the users can install into an existing VPC (i.e. do step 16) and still skip the Shared VPC configuration.

Let's share this MR in tomorrow's (Thursday, Oct 19th) team meeting and request everyone to review changes.

Thanks @svmrh, will take a look at your responses and get back to you ASAP. Appreciate it!

@mletalie
Copy link
Contributor Author

mletalie commented Oct 23, 2023

Hello @svmrh,
Thanks again for feedback. See responses below:

@mletalie : Thanks for putting this together.

  1. The placement of the first "IMPORTANT" note if fine. Yes, it will be good to point users to the GCP documentation on Shared VPC. Here's the link to GCP documentation explaining the steps to enable a host project.
    https://cloud.google.com/vpc/docs/provisioning-shared-vpc#set-up-shared-vpc
    DONE
    Do you think it makes sense to also add a link to general overview on what is Shared VPC in Google Cloud? https://cloud.google.com/vpc/docs/shared-vpc

  2. For the IMPORTANT note in 15.b, can we make it explicit that the cluster admin has to complete the steps within the cluster configuration wizard and hit submit. I have made minor edits. Please check if it looks okay

Once you complete the steps within the cluster configuration wizard and click "Create Cluster", the cluster will go into "Installation Pending" state. At this point, you must contact the VPC administrator of the host project, who must grant the dynamically generated service account the following permissions: Computer Network Administrator, Compute Security Administrator, and DNS Administrator. The administrator has 30 days to grant the listed permissions before the cluster creation fails. For information about shared GPC VPC permissions, see Provision shared VPC.
DONE

  1. the placement of the second IMPORTANT note is fine here (i.e. in step 15.b). Placing it towards the end of all the steps (i.e. after step 20) might be a little off context. What are your thoughts?
    I think it is good as is. Thanks!
  2. Yeah, no need of adding references to the Shared VPC option in step 16. This is because the users can install into an existing VPC (i.e. do step 16) and still skip the Shared VPC configuration.
    Sounds good. Appreciate the clarity!
    Let's share this MR in tomorrow's (Thursday, Oct 19th) team meeting and request everyone to review changes.

Thanks @svmrh, will take a look at your responses and get back to you ASAP. Appreciate it!

Thanks @svmrh, please see comments above. Appreciate it!

@mletalie mletalie force-pushed the OSDOCS-6942 branch 2 times, most recently from 1eed167 to cdfad8d Compare October 23, 2023 18:49
@mletalie mletalie marked this pull request as ready for review October 23, 2023 18:52
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 23, 2023
@mletalie
Copy link
Contributor Author

Hello reviewers, please see https://redhat-internal.slack.com/archives/D04KG1N67MZ/p1698090978994849 which describes why I needed to conditionalize out the hyperlink to keep the build from breaking.

@mletalie mletalie force-pushed the OSDOCS-6942 branch 3 times, most recently from 5d261a8 to 663417e Compare October 26, 2023 13:45
@openshift-ci openshift-ci bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 26, 2023
@mletalie mletalie force-pushed the OSDOCS-6942 branch 2 times, most recently from 34b1cb5 to 2fc8596 Compare October 30, 2023 12:31
@mletalie
Copy link
Contributor Author

Hello @jianli-wei, when you get a moment can you please review the doc changes brought forth in these docs? Thanks!

@svmrh
Copy link

svmrh commented Nov 1, 2023

LGTM.

A few minor comments -

  1. Does it makes sense to repeat this note on Deleting an OpenShift Dedicated cluster page as well?
    image

  2. @ckandag - Should we tweak step 16 a little to say something like "If you are installing into a GCP shared VPC, the VPC name and subnets are being shared from the host project..."
    image

@jianli-wei - can you please review the doc changes and give a QE 👍

Thanks @mletalie for driving the documentation changes for this feature.

ifdef::osd-on-gcp[]
[NOTE]
====
If you delete a cluster that was installed into a GCP shared VPC, you must inform the VPC owner of the host project to remove the service account and the roles granted to the service account that was referenced during the creation of the cluster.

Choose a reason for hiding this comment

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

In fact, the service account itself would be deleted during the cluster deletion. So suggest to put it like below,

... you must inform the VPC owner of the host project to remove the IAM policy binding of the service account and its binding roles in the host project.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In fact, the service account itself would be deleted during the cluster deletion. So suggest to put it like below,

... you must inform the VPC owner of the host project to remove the IAM policy binding of the service account and its binding roles in the host project.

Thanks @jianli-wei,
I applied your suggestion with just a slight tweak in wording to fit the narrative prior to that note. Thanks for the clarity.
image

@mletalie
Copy link
Contributor Author

mletalie commented Nov 2, 2023

LGTM.

A few minor comments -

  1. Does it makes sense to repeat this note on Deleting an OpenShift Dedicated cluster page as well?
    image
  2. @ckandag - Should we tweak step 16 a little to say something like "If you are installing into a GCP shared VPC, the VPC name and subnets are being shared from the host project..."
    image

@jianli-wei - can you please review the doc changes and give a QE 👍

Thanks @mletalie for driving the documentation changes for this feature.

Hello @svmrh,
For point #1, I have added a note to that doc:
image

For point #2, I have added a note:
image

@svmrh
Copy link

svmrh commented Nov 2, 2023

Thanks @mletalie and @jianli-wei

@mletalie mletalie force-pushed the OSDOCS-6942 branch 2 times, most recently from 7059c8a to abd796b Compare November 2, 2023 17:31
@svmrh
Copy link

svmrh commented Nov 2, 2023

Do not publish these changes just yet.

@EricPonvelle EricPonvelle reopened this Nov 2, 2023
@svmrh
Copy link

svmrh commented Nov 2, 2023

[Thursday, Nov 2nd 2:55pm PT] Update:
The issue has been resolved. After applying the fix, 4.14 OSD cluster install into a GCP Shared VPC was successful. But given the last minute hiccup, the plan is to go GA on Monday.

We will wait for QE to run sanity tests in production env and confirm if everything looks good.

I will update this thread on Monday once everything looks good.

@EricPonvelle EricPonvelle added peer-review-in-progress Signifies that the peer review team is reviewing this PR branch/enterprise-4.14 branch/enterprise-4.15 labels Nov 2, 2023
Copy link
Contributor

@jneczypor jneczypor left a comment

Choose a reason for hiding this comment

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

I took a look and added comments for a few changes. LGTM!

Copy link
Contributor

@EricPonvelle EricPonvelle 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 had one small follow up, but looks good.

@EricPonvelle EricPonvelle added peer-review-needed Signifies that the peer review team needs to review this PR and removed peer-review-in-progress Signifies that the peer review team is reviewing this PR labels Nov 2, 2023
@mletalie
Copy link
Contributor Author

mletalie commented Nov 3, 2023

/remove-label peer-review-needed

@openshift-ci openshift-ci bot removed the peer-review-needed Signifies that the peer review team needs to review this PR label Nov 3, 2023
@mletalie
Copy link
Contributor Author

mletalie commented Nov 3, 2023

/label peer-review-done

@openshift-ci openshift-ci bot added the peer-review-done Signifies that the peer review team has reviewed this PR label Nov 3, 2023
@svmrh
Copy link

svmrh commented Nov 7, 2023

Both backend and UI changes for this feature are enabled in production. Even the feature flag is removed for all orgs. Please kickoff the process for publishing the content updates for XCMSTRAT-91

Copy link
Contributor

@EricPonvelle EricPonvelle left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 7, 2023
@EricPonvelle EricPonvelle merged commit 7697e7e into openshift:main Nov 7, 2023
@EricPonvelle
Copy link
Contributor

/cherrypick enterprise-4.14

@EricPonvelle
Copy link
Contributor

/cherrypick enterprise-4.15

@openshift-cherrypick-robot

@EricPonvelle: new pull request created: #67537

In response to this:

/cherrypick enterprise-4.14

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.

@openshift-cherrypick-robot

@EricPonvelle: new pull request created: #67538

In response to this:

/cherrypick enterprise-4.15

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch/enterprise-4.14 branch/enterprise-4.15 lgtm Indicates that a PR is ready to be merged. peer-review-done Signifies that the peer review team has reviewed this PR 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.

7 participants