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 1798498: gather: enable bootstrap log gathering for baremetal #3617

Merged
merged 2 commits into from May 27, 2020

Conversation

stbenjam
Copy link
Member

This enables bootstrap log gathering for baremetal. We fetch the IP's
for the control plane hosts using ironic introspection data, and use
the provisioning IP for the bootstrap.

fixes #2009

@stbenjam
Copy link
Member Author

/label platform/baremetal

@stbenjam
Copy link
Member Author

/test e2e-metal-ipi

1 similar comment
@stbenjam
Copy link
Member Author

/test e2e-metal-ipi

@stbenjam
Copy link
Member Author

/retitle Bug 1798498: gather: enable bootstrap log gathering for baremetal

@openshift-ci-robot openshift-ci-robot changed the title gather: enable bootstrap log gathering for baremetal Bug 1798498: gather: enable bootstrap log gathering for baremetal May 19, 2020
@openshift-ci-robot
Copy link
Contributor

@stbenjam: An error was encountered adding this pull request to the external tracker bugs for bug 1798498 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/installer/pulls/3617 Error: 403 Forbidden at /loader/0x563e184368f8/Bugzilla/Extension/ExternalBugs/Type/GitHub.pm line 111. at /loader/0x563e184368f8/Bugzilla/Extension/ExternalBugs/Type/GitHub.pm line 111. eval {...} called at /loader/0x563e184368f8/Bugzilla/Extension/ExternalBugs/Type/GitHub.pm line 98 Bugzilla::Extension::ExternalBugs::Type::GitHub::_do_rest_call('Bugzilla::Extension::ExternalBugs::Type::GitHub=HASH(0x563e26...', 'https://api.github.com/repos/openshift/installer/pulls/3617', 'GET') called at /loader/0x563e184368f8/Bugzilla/Extension/ExternalBugs/Type/GitHub.pm line 62 Bugzilla::Extension::ExternalBugs::Type::GitHub::get_data('Bugzilla::Extension::ExternalBugs::Type::GitHub=HASH(0x563e26...', 'Bugzilla::Extension::ExternalBugs::Bug=HASH(0x563e268c08b8)') called at /loader/0x563e184368f8/Bugzilla/Extension/ExternalBugs/Bug.pm line 302 eval {...} called at /loader/0x563e184368f8/Bugzilla/Extension/ExternalBugs/Bug.pm line 302 Bugzilla::Extension::ExternalBugs::Bug::update_ext_info('Bugzilla::Extension::ExternalBugs::Bug=HASH(0x563e268c08b8)', 1) called at /loader/0x563e184368f8/Bugzilla/Extension/ExternalBugs/Bug.pm line 125 Bugzilla::Extension::ExternalBugs::Bug::create('Bugzilla::Extension::ExternalBugs::Bug', 'HASH(0x563e26873408)') called at /var/www/html/bugzilla/extensions/ExternalBugs/Extension.pm line 877 Bugzilla::Extension::ExternalBugs::bug_start_of_update('Bugzilla::Extension::ExternalBugs=HASH(0x563e264e1678)', 'HASH(0x563e268427f0)') called at /var/www/html/bugzilla/Bugzilla/Hook.pm line 21 Bugzilla::Hook::process('bug_start_of_update', 'HASH(0x563e268427f0)') called at /var/www/html/bugzilla/Bugzilla/Bug.pm line 1170 Bugzilla::Bug::update('Bugzilla::Bug=HASH(0x563e26841478)') called at /loader/0x563e184368f8/Bugzilla/Extension/ExternalBugs/WebService.pm line 88 Bugzilla::Extension::ExternalBugs::WebService::add_external_bug('Bugzilla::WebService::Server::JSONRPC::Bugzilla::Extension::E...', 'HASH(0x563e265ab7f0)') called at (eval 1965) 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(0x563e265d27f8)') 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(0x563e265d27f8)') 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(0x563e25f8bda0)') 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(0x563e264dafa0)') called at /usr/lib64/perl5/vendor_perl/ModPerl/RegistryCooker.pm line 173 ModPerl::RegistryCooker::default_handler('Bugzilla::ModPerl::ResponseHandler=HASH(0x563e264dafa0)') called at /usr/lib64/perl5/vendor_perl/ModPerl/Registry.pm line 32 ModPerl::Registry::handler('Bugzilla::ModPerl::ResponseHandler', 'Apache2::RequestRec=SCALAR(0x563e25f8bda0)') called at /var/www/html/bugzilla/mod_perl.pl line 139 Bugzilla::ModPerl::ResponseHandler::handler('Bugzilla::ModPerl::ResponseHandler', 'Apache2::RequestRec=SCALAR(0x563e25f8bda0)') called at (eval 1965) line 0 eval {...} called at (eval 1965) line 0
Please contact an administrator to resolve this issue, then request a bug refresh with /bugzilla refresh.

In response to this:

Bug 1798498: gather: enable bootstrap log gathering for baremetal

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.

@stbenjam
Copy link
Member Author

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium 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. labels May 19, 2020
@openshift-ci-robot
Copy link
Contributor

@stbenjam: This pull request references Bugzilla bug 1798498, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.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.

@stbenjam
Copy link
Member Author

/test images

@stbenjam
Copy link
Member Author

/test e2e-aws

@stbenjam stbenjam force-pushed the gather branch 2 times, most recently from 1c49fca to fab9ddd Compare May 19, 2020 14:04
@stbenjam
Copy link
Member Author

/test e2e-metal-ipi

1 similar comment
@stbenjam
Copy link
Member Author

/test e2e-metal-ipi

@imain
Copy link
Contributor

imain commented May 19, 2020

It looks good! It would be nice if we could get info on the ironic containers. I see you get logs for all containers but ironic stuff isn't in there. Could be a later patch if deemed reasonable. Otherwise lgtm.

@stbenjam
Copy link
Member Author

It looks good! It would be nice if we could get info on the ironic containers. I see you get logs for all containers but ironic stuff isn't in there. Could be a later patch if deemed reasonable. Otherwise lgtm.

The container logs should be in bootstrap/pods/, but good call about services, I'll add ironic and the master update service to the list tomorrow.

This enables bootstrap log gathering for baremetal. We fetch the IP's
for the control plane hosts using ironic introspection data, and pick
the best one. We prefer to find an IP in a machine network, but
otherwise we'll use the first valid IP found. For the bootstrap, the
only IP address we can know is the provisioning IP for the bootstrap.
This updates terraform-provider-ironic to 0.2.1. This version of the
terraform provider has several fixes that we need related to
introspection. The installer will now use introspection data to collect
IP's for the control plane hosts for bootstrap log gathering.

After updating the version in go.mod, I ran `go mod vendor` and `go mod
tidy`.
@stbenjam
Copy link
Member Author

/test e2e-metal-ipi

@abhinavdahiya
Copy link
Contributor

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya

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 May 20, 2020
@imain
Copy link
Contributor

imain commented May 20, 2020

It looks good! It would be nice if we could get info on the ironic containers. I see you get logs for all containers but ironic stuff isn't in there. Could be a later patch if deemed reasonable. Otherwise lgtm.

The container logs should be in bootstrap/pods/, but good call about services, I'll add ironic and the master update service to the list tomorrow.

Actually the more I think about it, this could be pretty important. If there are any problems with ironic (including configuration) they will likely surface during bootstrap since that's its first use.

@openshift-bot
Copy link
Contributor

/retest

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

@stbenjam
Copy link
Member Author

/test images

@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-bot
Copy link
Contributor

/retest

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

16 similar comments
@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@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

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

Test name Commit Details Rerun command
ci/prow/e2e-libvirt 4550c25 link /test e2e-libvirt
ci/prow/e2e-metal-ipi 4550c25 link /test e2e-metal-ipi

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.

@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 f568c9f into openshift:master May 27, 2020
@openshift-ci-robot
Copy link
Contributor

@stbenjam: All pull requests linked via external trackers have merged: openshift/installer#3617. Bugzilla bug 1798498 has been moved to the MODIFIED state.

In response to this:

Bug 1798498: gather: enable bootstrap log gathering for baremetal

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.

cybertron added a commit to cybertron/installer that referenced this pull request Jul 8, 2020
cybertron added a commit to cybertron/installer that referenced this pull request Jul 8, 2020
cybertron added a commit to cybertron/installer that referenced this pull request Jul 9, 2020
install gather was implemented in openshift#3617, and the provisioning net
is fully configurable now.
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-medium Referenced Bugzilla bug's severity is medium 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. platform/baremetal IPI bare metal hosts platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

baremetal: Add support for install gather
7 participants