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

ci-operator/step-registry/ipi/deprovision/vsphere: Decompose into sub-steps #7935

Conversation

wking
Copy link
Member

@wking wking commented Mar 25, 2020

Builds on #7931; review that first.

So we can recycle the vanilla IPI deprovision step without needing to make changes to it (other than using the UPI image to get the vSphere CA certs). This also makes the link between the resource-creating and resource-destroying steps more transparent.

Also store the hosted zone ID in a secret so we don't have to look it up again, which lets us simplify the secret loading a bit in the DNS deprovisioning.

Remove the ipi-deprovision-vsphere chain, since there's no reason folks would use it instead of the ipi-vsphere-post chain.

@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 25, 2020
@wking wking force-pushed the vsphere-deprovision-decomposition branch from 76bf2a5 to 4b787fb Compare March 25, 2020 23:03
@wking wking force-pushed the vsphere-deprovision-decomposition branch from 4b787fb to 6aa9753 Compare March 25, 2020 23:12
@wking
Copy link
Member Author

wking commented Mar 25, 2020

Builds on #7931; review that first.

Rebased onto master to drop the dependency on #7931, while that gets sorted out.

@abhinavdahiya
Copy link
Contributor

LGTM

/assign @patrickdillon

…-steps

So we can recycle the vanilla IPI deprovision step without needing to
make changes to it (other than using the UPI image to get the vSphere
CA certs).  This also makes the link between the resource-creating and
resource-destroying steps more transparent.

Also store the hosted zone ID in a secret so we don't have to look it
up again, which lets us simplify the secret loading a bit in the DNS
deprovisioning.

Remove the ipi-deprovision-vsphere chain, since there's no reason
folks would use it instead of the ipi-vsphere-post chain.
@wking wking force-pushed the vsphere-deprovision-decomposition branch from 71b2160 to a466b83 Compare March 25, 2020 23:22
@patrickdillon
Copy link
Contributor

/lgtm
/hold for #7931

@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. lgtm Indicates that a PR is ready to be merged. labels Mar 26, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: patrickdillon, wking

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

@wking
Copy link
Member Author

wking commented Mar 26, 2020

vsphere rehearsal failed waiting for the Kube API:

level=info msg="Waiting up to 20m0s for the Kubernetes API at https://api.ci-op-75qqryhn-6de38.origin-ci-int-aws.dev.rhcloud.com:6443..."
level=error msg="Attempted to gather ClusterOperator status after installation failure: listing ClusterOperator objects: Get https://api.ci-op-75qqryhn-6de38.origin-ci-int-aws.dev.rhcloud.com:6443/apis/config.openshift.io/v1/clusteroperators: dial tcp: lookup api.ci-op-75qqryhn-6de38.origin-ci-int-aws.dev.rhcloud.com on 10.142.0.51:53: server misbehaving"
level=info msg="Pulling debug logs from the bootstrap machine"
level=info msg="Bootstrap gather logs captured here \"/tmp/installer/log-bundle-20200326001715.tar.gz\""
level=fatal msg="Bootstrap failed to complete: waiting for Kubernetes API: context deadline exceeded"

So I think we're in a pretty good space here.

@wking
Copy link
Member Author

wking commented Mar 26, 2020

/hold for #7931

/hold cancel

No need, since this pivot.

@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 Mar 26, 2020
@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 4083a66 into openshift:master Mar 26, 2020
@openshift-ci-robot
Copy link
Contributor

@wking: Updated the following 2 configmaps:

  • step-registry configmap in namespace ci at cluster app.ci using the following files:
    • key ipi-conf-vsphere-dns-commands.sh using file ci-operator/step-registry/ipi/conf/vsphere/dns/ipi-conf-vsphere-dns-commands.sh
    • key ipi-conf-vsphere-dns-ref.yaml using file ci-operator/step-registry/ipi/conf/vsphere/dns/ipi-conf-vsphere-dns-ref.yaml
    • key ipi-conf-vsphere-vips-ref.yaml using file ci-operator/step-registry/ipi/conf/vsphere/vips/ipi-conf-vsphere-vips-ref.yaml
    • key OWNERS using file ci-operator/step-registry/ipi/deprovision/vsphere/dns/OWNERS
    • key ipi-deprovision-vsphere-dns-commands.sh using file ci-operator/step-registry/ipi/deprovision/vsphere/dns/ipi-deprovision-vsphere-dns-commands.sh
    • key ipi-deprovision-vsphere-dns-ref.yaml using file ci-operator/step-registry/ipi/deprovision/vsphere/dns/ipi-deprovision-vsphere-dns-ref.yaml
    • key ipi-deprovision-vsphere-chain.yaml using file ``
    • key ipi-deprovision-vsphere-commands.sh using file ``
    • key ipi-deprovision-vsphere-commands.sh using file ci-operator/step-registry/ipi/deprovision/vsphere/ipi-deprovision-vsphere-commands.sh
    • key ipi-deprovision-vsphere-ref.yaml using file ci-operator/step-registry/ipi/deprovision/vsphere/ipi-deprovision-vsphere-ref.yaml
    • key OWNERS using file ci-operator/step-registry/ipi/deprovision/vsphere/vips/OWNERS
    • key ipi-deprovision-vsphere-vips-commands.sh using file ci-operator/step-registry/ipi/deprovision/vsphere/vips/ipi-deprovision-vsphere-vips-commands.sh
    • key ipi-deprovision-vsphere-vips-ref.yaml using file ci-operator/step-registry/ipi/deprovision/vsphere/vips/ipi-deprovision-vsphere-vips-ref.yaml
    • key ipi-vsphere-post-chain.yaml using file ci-operator/step-registry/ipi/vsphere/post/ipi-vsphere-post-chain.yaml
  • step-registry configmap in namespace ci at cluster default using the following files:
    • key ipi-conf-vsphere-dns-commands.sh using file ci-operator/step-registry/ipi/conf/vsphere/dns/ipi-conf-vsphere-dns-commands.sh
    • key ipi-conf-vsphere-dns-ref.yaml using file ci-operator/step-registry/ipi/conf/vsphere/dns/ipi-conf-vsphere-dns-ref.yaml
    • key ipi-conf-vsphere-vips-ref.yaml using file ci-operator/step-registry/ipi/conf/vsphere/vips/ipi-conf-vsphere-vips-ref.yaml
    • key OWNERS using file ci-operator/step-registry/ipi/deprovision/vsphere/dns/OWNERS
    • key ipi-deprovision-vsphere-dns-commands.sh using file ci-operator/step-registry/ipi/deprovision/vsphere/dns/ipi-deprovision-vsphere-dns-commands.sh
    • key ipi-deprovision-vsphere-dns-ref.yaml using file ci-operator/step-registry/ipi/deprovision/vsphere/dns/ipi-deprovision-vsphere-dns-ref.yaml
    • key ipi-deprovision-vsphere-chain.yaml using file ``
    • key ipi-deprovision-vsphere-commands.sh using file ``
    • key ipi-deprovision-vsphere-commands.sh using file ci-operator/step-registry/ipi/deprovision/vsphere/ipi-deprovision-vsphere-commands.sh
    • key ipi-deprovision-vsphere-ref.yaml using file ci-operator/step-registry/ipi/deprovision/vsphere/ipi-deprovision-vsphere-ref.yaml
    • key OWNERS using file ci-operator/step-registry/ipi/deprovision/vsphere/vips/OWNERS
    • key ipi-deprovision-vsphere-vips-commands.sh using file ci-operator/step-registry/ipi/deprovision/vsphere/vips/ipi-deprovision-vsphere-vips-commands.sh
    • key ipi-deprovision-vsphere-vips-ref.yaml using file ci-operator/step-registry/ipi/deprovision/vsphere/vips/ipi-deprovision-vsphere-vips-ref.yaml
    • key ipi-vsphere-post-chain.yaml using file ci-operator/step-registry/ipi/vsphere/post/ipi-vsphere-post-chain.yaml

In response to this:

Builds on #7931; review that first.

So we can recycle the vanilla IPI deprovision step without needing to make changes to it (other than using the UPI image to get the vSphere CA certs). This also makes the link between the resource-creating and resource-destroying steps more transparent.

Also store the hosted zone ID in a secret so we don't have to look it up again, which lets us simplify the secret loading a bit in the DNS deprovisioning.

Remove the ipi-deprovision-vsphere chain, since there's no reason folks would use it instead of the ipi-vsphere-post chain.

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.

@wking wking deleted the vsphere-deprovision-decomposition branch March 26, 2020 02:05
@openshift-ci-robot
Copy link
Contributor

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

Test name Commit Details Rerun command
ci/rehearse/openshift/installer/master/e2e-aws 4b787fb9416ba451228563b9c8889d19d8efcd5b link /test pj-rehearse
ci/rehearse/openshift/installer/master/e2e-vsphere a466b83 link /test pj-rehearse
ci/prow/pj-rehearse a466b83 link /test pj-rehearse

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.

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants