Skip to content

Bug 1735192: OpenStack Self Signed Certs Fix#2587

Merged
openshift-merge-robot merged 3 commits intoopenshift:masterfrom
iamemilio:self-signed-certs
Oct 31, 2019
Merged

Bug 1735192: OpenStack Self Signed Certs Fix#2587
openshift-merge-robot merged 3 commits intoopenshift:masterfrom
iamemilio:self-signed-certs

Conversation

@iamemilio
Copy link
Copy Markdown

Create Bootstrap Ignition shim 100% in GO code in order to use the latest versions of ignition.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 29, 2019
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@iamemilio: This pull request references Bugzilla bug 1735192, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

[WIP] Bug 1735192: OpenStack Self Signed Certs Fix

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-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Oct 29, 2019
@iamemilio
Copy link
Copy Markdown
Author

/label platform/openstack

Comment thread pkg/tfvars/openstack/openstack.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

try moving these out to a separate file.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Will do, its getting ugly in there

@iamemilio
Copy link
Copy Markdown
Author

/retest

@iamemilio iamemilio changed the title [WIP] Bug 1735192: OpenStack Self Signed Certs Fix Bug 1735192: OpenStack Self Signed Certs Fix Oct 30, 2019
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 30, 2019
@iamemilio
Copy link
Copy Markdown
Author

Deployed successfully on a cluster with Self Signed Certs, ready to merge!

@iamemilio
Copy link
Copy Markdown
Author

/test e2e-aws-scaleup-rhel7

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think these resources (container and object) won't be destroyed by the installer, since they don't belong to Terraform anymore: https://github.com/openshift/installer/blob/master/pkg/destroy/bootstrap/bootstrap.go#L69
We need to add some logic to explicitly destroy them when bootstrapping is over.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Previously we used a string of 16 characters to generate the url, now it's just a number. I recommend to use https://github.com/kubernetes/apimachinery/blob/master/pkg/util/rand/rand.go#L98 to generate a random string.

@iamemilio iamemilio force-pushed the self-signed-certs branch 3 times, most recently from 6a98283 to 2d3b1e3 Compare October 30, 2019 18:39
@iamemilio
Copy link
Copy Markdown
Author

/retest

Comment thread pkg/destroy/openstack/swift.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It would be nice if we can move this function to pkg/destroy/bootstrap/bootstrap.go and use it there directly, but I don't mind to keep it here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I originally put it in a new directory pkg/destroy/bootstrap/openstack/swift.go it seemed redundant. I wasnt sure if @abhinavdahiya would take issue with openstack functions being in pkg/destroy/bootstrap/bootstrap.go. @abhinavdahiya do you have a preference?

@Fedosin
Copy link
Copy Markdown
Contributor

Fedosin commented Oct 30, 2019

/lgtm

However, adding a few comments on how it would work would be nice.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 30, 2019
@iamemilio
Copy link
Copy Markdown
Author

/test e2e-aws-scaleup-rhel7

@Fedosin
Copy link
Copy Markdown
Contributor

Fedosin commented Oct 31, 2019

e2e-aws-scaleup-rhel7 is broken, no need to retest it

@tomassedovic
Copy link
Copy Markdown
Contributor

/lgtm

Adding mine too. @abhinavdahiya any chance we could get an approve before the feature freeze please?

Comment thread pkg/destroy/bootstrap/bootstrap.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why is this import separate from other installer repo imports.

Comment thread pkg/destroy/bootstrap/bootstrap.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

use errors.Wrapf

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This function should be private

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this function should also be private

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Oct 31, 2019
@iamemilio
Copy link
Copy Markdown
Author

/test e2e-openstack

Comment thread pkg/destroy/bootstrap/bootstrap.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

metadata.ClusterID -> metadata.InfraID

@abhinavdahiya
Copy link
Copy Markdown
Contributor

/approve

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 31, 2019
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

openshift-ci-robot commented Oct 31, 2019

@iamemilio: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-aws-scaleup-rhel7 9171ae3 link /test e2e-aws-scaleup-rhel7

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.

Details

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.

@Fedosin
Copy link
Copy Markdown
Contributor

Fedosin commented Oct 31, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 31, 2019
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, Fedosin, iamemilio, tomassedovic

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-merge-robot openshift-merge-robot merged commit efddb40 into openshift:master Oct 31, 2019
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@iamemilio: All pull requests linked via external trackers have merged. Bugzilla bug 1735192 has been moved to the MODIFIED state.

Details

In response to this:

Bug 1735192: OpenStack Self Signed Certs Fix

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

approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. 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.

6 participants