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

Use same settings for provisioner and controller logs #1249

Merged
merged 2 commits into from Apr 21, 2023

Conversation

zaneb
Copy link
Member

@zaneb zaneb commented Apr 12, 2023

Previously the ironic provisioner log was created in a separate module,
and didn't have access to the CLI arguments. Originally the provisioner
was always in structured mode even when the -dev flag was passed to put
it into development mode, and then after #1175 vice-versa.

Create the provisioning logger in main.go using the same settings as the
controller logger, and pass it in to the provisioner factory. Only change the
timestamp formatting in development log mode.

Structured logging tools expect a POSIX timestamp. Only change the
timestamp formatting in development log mode.
Previously the ironic provisioner log was created in a separate module,
and didn't have access to the CLI arguments. Originally the provisioner
was always in structured mode even when the -dev flag was passed to put
it into development mode, and then after metal3-io#1175 vice-versa.

Create the provisioning logger in main.go using the same settings as the
controller logger, and pass it in to the provisioner factory.

Fixes metal3-io#1248
@metal3-io-bot metal3-io-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 12, 2023
@zaneb
Copy link
Member Author

zaneb commented Apr 12, 2023

/test-centos-e2e-integration-main
/test-ubuntu-integration-main

@lentzi90
Copy link
Member

Looks like cert-manager failed to deploy for some reason. Let's rerun. The logs on the ubuntu test looks good btw!
/test-centos-e2e-integration-main

Copy link
Member

@lentzi90 lentzi90 left a comment

Choose a reason for hiding this comment

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

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 12, 2023
@zaneb
Copy link
Member Author

zaneb commented Apr 13, 2023

/test-centos-e2e-integration-main

@zaneb
Copy link
Member Author

zaneb commented Apr 21, 2023

/cc @honza

@honza
Copy link
Member

honza commented Apr 21, 2023

/approve

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: honza

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

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 21, 2023
@metal3-io-bot metal3-io-bot merged commit 358bf2a into metal3-io:main Apr 21, 2023
10 checks passed
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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants