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

Bug 1871769: [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away #2107

Merged

Conversation

yboaron
Copy link
Contributor

@yboaron yboaron commented Sep 21, 2020

Keeping the API VIP in the bootstrap node until the bootstrap’s node API goes away eliminates
the need for master nodes to specify the bootstrap as one of their peers in the unicast
Keepalived case, see [1].

Additionally, it makes the deployment flow more deterministic so other components
(e.g: remove the requirement for provisioning static IP, see [2] ) can benefit from it.

[1] https://docs.google.com/document/d/1jPIOYuK1J3PKYS8ff8waHWeHqzgl5OZeOkWngUxHtR8/edit?usp=sharing
[2] https://docs.google.com/document/d/18DVr7Ikw_gSJsiQvG8zV2oBEqlG070MzyIElcK94LJI/edit#

When OPENSHIFT_INSTALL_PRESERVE_BOOTSTRAP deployment configuration parameter is set to true the
bootstrap node won't be destroyed and infrastructure components including Keepalived on the bootstrap continue to run.

With this PR the Keepalived process is stopped when a stop message is received in Keepalived control socket.

This change is important for platforms that run Keepalived in unicast mode (baremetal).
@yboaron
Copy link
Contributor Author

yboaron commented Sep 21, 2020

/retitle [baremetal, ovirt, vsphere, openstack] keep API VIP in the bootstrap node until the bootstrap’s node API goes away

@openshift-ci-robot openshift-ci-robot changed the title keep API VIP in the bootstrap node until the bootstrap’s node API goes away [baremetal, ovirt, vsphere, openstack] keep API VIP in the bootstrap node until the bootstrap’s node API goes away Sep 21, 2020
…s away

Keeping the API VIP in the bootstrap node until the bootstrap’s node API goes away eliminates
the need for master nodes to specify the bootstrap as one of their peers in the unicast
Keepalived case, see [1].

Additionally, it makes the deployment flow more deterministic so other components
(e.g: remove requirement for provisioning static IP , see [2] ) can benefit from it.

[1] https://docs.google.com/document/d/1jPIOYuK1J3PKYS8ff8waHWeHqzgl5OZeOkWngUxHtR8/edit?usp=sharing
[2] https://docs.google.com/document/d/18DVr7Ikw_gSJsiQvG8zV2oBEqlG070MzyIElcK94LJI/edit#
@yboaron
Copy link
Contributor Author

yboaron commented Sep 21, 2020

/retitle bug:1881053 [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away

@openshift-ci-robot openshift-ci-robot changed the title [baremetal, ovirt, vsphere, openstack] keep API VIP in the bootstrap node until the bootstrap’s node API goes away bug:1881053 [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away Sep 21, 2020
@yboaron
Copy link
Contributor Author

yboaron commented Sep 21, 2020

/retitle bug 1881053: [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away

@openshift-ci-robot openshift-ci-robot changed the title bug:1881053 [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away bug 1881053: [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away Sep 21, 2020
@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. label Sep 21, 2020
@openshift-ci-robot
Copy link
Contributor

@yboaron: This pull request references Bugzilla bug 1881053, which is invalid:

  • expected the bug to target the "4.6.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

bug 1881053: [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away

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 the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Sep 21, 2020
@ashcrow ashcrow requested review from ericavonb and removed request for ashcrow September 21, 2020 13:30
Copy link
Member

@bcrochet bcrochet 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 Sep 21, 2020
@yboaron
Copy link
Contributor Author

yboaron commented Sep 21, 2020

/test e2e-metal-ipi

@openshift-bot
Copy link
Contributor

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

@openshift-ci-robot
Copy link
Contributor

@openshift-bot: This pull request references Bugzilla bug 1881053, which is invalid:

  • expected the bug to target the "4.6.0" release, but it targets "4.7.0" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

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.

@yboaron
Copy link
Contributor Author

yboaron commented Sep 22, 2020

/retitle Bug 1871769 : [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away

@openshift-ci-robot openshift-ci-robot changed the title bug 1881053: [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away Bug 1871769 : [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away Sep 22, 2020
@openshift-ci-robot openshift-ci-robot removed the bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. label Sep 22, 2020
@openshift-ci-robot
Copy link
Contributor

@yboaron: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

Bug 1871769 : [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away

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 removed the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Sep 22, 2020
@yboaron
Copy link
Contributor Author

yboaron commented Sep 22, 2020

/retitle Bug 1871769: [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away

@openshift-ci-robot openshift-ci-robot changed the title Bug 1871769 : [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away Bug 1871769: [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away Sep 22, 2020
@openshift-ci-robot
Copy link
Contributor

@yboaron: An error was encountered adding this pull request to the external tracker bugs for bug 1871769 on the Bugzilla server at https://bugzilla.redhat.com:

JSONRPC error 32000: There was an error reported for a GitHub REST call. URL: https://api.github.com/repos/openshift/machine-config-operator/pulls/2107 Error: 403 Forbidden at /loader/0x558945dcc880/Bugzilla/Extension/ExternalBugs/Type/GitHub.pm line 111. at /loader/0x558945dcc880/Bugzilla/Extension/ExternalBugs/Type/GitHub.pm line 111. eval {...} called at /loader/0x558945dcc880/Bugzilla/Extension/ExternalBugs/Type/GitHub.pm line 98 Bugzilla::Extension::ExternalBugs::Type::GitHub::_do_rest_call('Bugzilla::Extension::ExternalBugs::Type::GitHub=HASH(0x55894d...', 'https://api.github.com/repos/openshift/machine-config-operato...', 'GET') called at /loader/0x558945dcc880/Bugzilla/Extension/ExternalBugs/Type/GitHub.pm line 62 Bugzilla::Extension::ExternalBugs::Type::GitHub::get_data('Bugzilla::Extension::ExternalBugs::Type::GitHub=HASH(0x55894d...', 'Bugzilla::Extension::ExternalBugs::Bug=HASH(0x55894d18f1c8)') called at /loader/0x558945dcc880/Bugzilla/Extension/ExternalBugs/Bug.pm line 302 eval {...} called at /loader/0x558945dcc880/Bugzilla/Extension/ExternalBugs/Bug.pm line 302 Bugzilla::Extension::ExternalBugs::Bug::update_ext_info('Bugzilla::Extension::ExternalBugs::Bug=HASH(0x55894d18f1c8)', 1) called at /loader/0x558945dcc880/Bugzilla/Extension/ExternalBugs/Bug.pm line 125 Bugzilla::Extension::ExternalBugs::Bug::create('Bugzilla::Extension::ExternalBugs::Bug', 'HASH(0x55894cd7ddc0)') called at /var/www/html/bugzilla/extensions/ExternalBugs/Extension.pm line 877 Bugzilla::Extension::ExternalBugs::bug_start_of_update('Bugzilla::Extension::ExternalBugs=HASH(0x55894ce23ce0)', 'HASH(0x55894cc39488)') called at /var/www/html/bugzilla/Bugzilla/Hook.pm line 21 Bugzilla::Hook::process('bug_start_of_update', 'HASH(0x55894cc39488)') called at /var/www/html/bugzilla/Bugzilla/Bug.pm line 1170 Bugzilla::Bug::update('Bugzilla::Bug=HASH(0x55894cc4d1a0)') called at /loader/0x558945dcc880/Bugzilla/Extension/ExternalBugs/WebService.pm line 88 Bugzilla::Extension::ExternalBugs::WebService::add_external_bug('Bugzilla::WebService::Server::JSONRPC::Bugzilla::Extension::E...', 'HASH(0x55894cbaa0f8)') called at (eval 2162) line 1 eval ' $procedure->{code}->($self, @params) ;' called at /usr/share/perl5/vendor_perl/JSON/RPC/Legacy/Server.pm line 220 JSON::RPC::Legacy::Server::_handle('Bugzilla::WebService::Server::JSONRPC::Bugzilla::Extension::E...', 'HASH(0x55894cba9e28)') called at /var/www/html/bugzilla/Bugzilla/WebService/Server/JSONRPC.pm line 295 Bugzilla::WebService::Server::JSONRPC::_handle('Bugzilla::WebService::Server::JSONRPC::Bugzilla::Extension::E...', 'HASH(0x55894cba9e28)') called at /usr/share/perl5/vendor_perl/JSON/RPC/Legacy/Server.pm line 126 JSON::RPC::Legacy::Server::handle('Bugzilla::WebService::Server::JSONRPC::Bugzilla::Extension::E...') called at /var/www/html/bugzilla/Bugzilla/WebService/Server/JSONRPC.pm line 70 Bugzilla::WebService::Server::JSONRPC::handle('Bugzilla::WebService::Server::JSONRPC::Bugzilla::Extension::E...') called at /var/www/html/bugzilla/jsonrpc.cgi line 31 ModPerl::ROOT::Bugzilla::ModPerl::ResponseHandler::var_www_html_bugzilla_jsonrpc_2ecgi::handler('Apache2::RequestRec=SCALAR(0x55894cc334a8)') called at /usr/lib64/perl5/vendor_perl/ModPerl/RegistryCooker.pm line 207 eval {...} called at /usr/lib64/perl5/vendor_perl/ModPerl/RegistryCooker.pm line 207 ModPerl::RegistryCooker::run('Bugzilla::ModPerl::ResponseHandler=HASH(0x55894ce24088)') called at /usr/lib64/perl5/vendor_perl/ModPerl/RegistryCooker.pm line 173 ModPerl::RegistryCooker::default_handler('Bugzilla::ModPerl::ResponseHandler=HASH(0x55894ce24088)') called at /usr/lib64/perl5/vendor_perl/ModPerl/Registry.pm line 32 ModPerl::Registry::handler('Bugzilla::ModPerl::ResponseHandler', 'Apache2::RequestRec=SCALAR(0x55894cc334a8)') called at /var/www/html/bugzilla/mod_perl.pl line 139 Bugzilla::ModPerl::ResponseHandler::handler('Bugzilla::ModPerl::ResponseHandler', 'Apache2::RequestRec=SCALAR(0x55894cc334a8)') called at (eval 2162) line 0 eval {...} called at (eval 2162) line 0
Please contact an administrator to resolve this issue, then request a bug refresh with /bugzilla refresh.

In response to this:

Bug 1871769: [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away

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.

@yboaron
Copy link
Contributor Author

yboaron commented Sep 22, 2020

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. label Sep 22, 2020
@openshift-ci-robot
Copy link
Contributor

@yboaron: This pull request references Bugzilla bug 1871769, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.6.0) matches configured target release for branch (4.6.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

/bugzilla refresh

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 the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Sep 22, 2020
@yboaron
Copy link
Contributor Author

yboaron commented Sep 22, 2020

/cc @ericavonb

Do you think we can merge this PR ?
The baremetal-runtimecfg PR got merged

@yboaron
Copy link
Contributor Author

yboaron commented Sep 23, 2020

@ericavonb Can we merge this PR ?

10x

@yuqi-zhang
Copy link
Contributor

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bcrochet, cybertron, yboaron, yuqi-zhang

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 23, 2020
@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

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

Test name Commit Details Rerun command
ci/prow/okd-e2e-aws 1537a22 link /test okd-e2e-aws

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 e715774 into openshift:master Sep 23, 2020
@openshift-ci-robot
Copy link
Contributor

@yboaron: Some pull requests linked via external trackers have merged:

The following pull requests linked via external trackers have not merged:

These pull request must merge or be unlinked from the Bugzilla bug in order for it to move to the next state.

Bugzilla bug 1871769 has not been moved to the MODIFIED state.

In response to this:

Bug 1871769: [baremetal] keep API VIP in the bootstrap node until the bootstrap’s node API goes away

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.

@yuqi-zhang
Copy link
Contributor

/bugzilla refresh

@openshift-ci-robot
Copy link
Contributor

@yuqi-zhang: Bugzilla bug 1871769 is in an unrecognized state (ON_QA) and will not be moved to the MODIFIED state.

In response to this:

/bugzilla refresh

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/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants