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

OpenStack: Rename lbFloatingIP to apiFloatingIP #4244

Merged
merged 3 commits into from Oct 8, 2020

Conversation

Fedosin
Copy link
Contributor

@Fedosin Fedosin commented Oct 6, 2020

/label platform/openstack

@Fedosin
Copy link
Contributor Author

Fedosin commented Oct 6, 2020

/test e2e-openstack

@Fedosin
Copy link
Contributor Author

Fedosin commented Oct 6, 2020

/test e2e-aws

1 similar comment
@Fedosin
Copy link
Contributor Author

Fedosin commented Oct 6, 2020

/test e2e-aws

Copy link
Member

@mandre mandre 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-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 7, 2020
@mandre
Copy link
Member

mandre commented Oct 7, 2020

/approve

@Fedosin
Copy link
Contributor Author

Fedosin commented Oct 7, 2020

/test e2e-aws

// ConvertNetworking upconverts deprecated fields in networking
func ConvertNetworking(config *types.InstallConfig) {
// convertNetworking upconverts deprecated fields in networking
func convertNetworking(config *types.InstallConfig) {
Copy link
Member

Choose a reason for hiding this comment

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

I dunno why this was public before, but making it private seems like an orthogonal change that should go in its own PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay, I'll propose another PR to fix this.

// convertOpenStack upconverts deprecated fields in the OpenStack platform.
func convertOpenStack(config *types.InstallConfig) {
// LbFloatingIP has been renamed to APIFloatingIP
if config.Platform.OpenStack.DeprecatedLbFloatingIP != "" && config.Platform.OpenStack.APIFloatingIP == "" {
Copy link
Member

Choose a reason for hiding this comment

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

Seems like it should be a fatal error to have both set. Also, probably worth warn-level logging when you do shuffle the value over, so folks using the old value are more likely to hear about the deprecation and update their generators.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this will go in a separate PR for all deprecated values. we have a dedicated jira card for this.

func convertOpenStack(config *types.InstallConfig) {
// LbFloatingIP has been renamed to APIFloatingIP
if config.Platform.OpenStack.DeprecatedLbFloatingIP != "" && config.Platform.OpenStack.APIFloatingIP == "" {
config.Platform.OpenStack.APIFloatingIP = config.Platform.OpenStack.DeprecatedLbFloatingIP
Copy link
Member

Choose a reason for hiding this comment

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

I'd expect to clear the old property when you shuffle the value over.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we should keep it to show a warning message later, during install config validation.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd expect to clear the old property when you shuffle the value over.

Don't reset user set values, if a user set the deprecated value, we can use that to set the new values but do not modify the value set by the user.

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Oct 7, 2020
@@ -106,13 +106,13 @@ func validatePlatformFlavor(p *openstack.Platform, ci *CloudInfo, fldPath *field
}

func validateFloatingIPs(p *openstack.Platform, ci *CloudInfo, fldPath *field.Path) (allErrs field.ErrorList) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add a validation that makes sure people don't set both with different values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a check that returns an error if both values are set regardless of whether they are equal or not. I.e. "you cannot specify lbFloatingIP and apiFloatingIP in the install config together".

@abhinavdahiya
Copy link
Contributor

https://github.com/openshift/installer/pull/4244/files#r501164253

LGTM, only one change requested.

@abhinavdahiya
Copy link
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 7, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, mandre, pierreprinetti

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

@pierreprinetti
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 8, 2020
@pierreprinetti
Copy link
Member

/hold
Do you want to squash your commits?

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 8, 2020
@Fedosin
Copy link
Contributor Author

Fedosin commented Oct 8, 2020

/hold cancel

nope :)

@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 Oct 8, 2020
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci-robot
Copy link
Contributor

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

Test name Commit Details Rerun command
ci/prow/e2e-libvirt 68a69b7 link /test e2e-libvirt
ci/prow/e2e-crc 68a69b7 link /test e2e-crc
ci/prow/e2e-ovirt 68a69b7 link /test e2e-ovirt
ci/prow/e2e-aws-workers-rhel7 68a69b7 link /test e2e-aws-workers-rhel7

Full PR test history. Your PR dashboard.

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.

@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 0076d6c into openshift:master Oct 8, 2020
pierreprinetti added a commit to shiftstack/release that referenced this pull request Nov 11, 2020
mandre added a commit to mandre/release that referenced this pull request Jan 18, 2021
We deprecated `lbFloatingIP` in favor of `apiFloatingIP` in
openshift/installer#4244.

Fixes OSASINFRA-2157
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants