Navigation Menu

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

Refs #12715 - decoupled logs API from core #367

Closed
wants to merge 1 commit into from

Conversation

lzap
Copy link
Member

@lzap lzap commented Jan 27, 2016

This decouples the log buffer API from core. It has two main purposes. First,
it's a cleaner design. Second, clients can now use the standard Features API to
detect, if Logs API is enabled. Therefore integration with older version of
Smart Proxies is easier.

@lzap
Copy link
Member Author

lzap commented Jan 27, 2016

@witlessbird could you give it a quick read?

@@ -5,7 +5,7 @@ config/settings.d/*.yml
config/migration_state
config_*/*
.idea
logs
/logs
Copy link
Member

Choose a reason for hiding this comment

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

why /?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because it ignores all logs subdirectories, we want only the proxy logs.

# Can be true, false, or http/https to enable just one of the protocols
:enabled: false

# Log buffer configuration is in core file (settings.yml)
Copy link
Member

Choose a reason for hiding this comment

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

If log buffer is only used to show it in the Foreman smart proxy page - can we move the log_buffer and log_buffer errors to this file instead?

Copy link
Member

Choose a reason for hiding this comment

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

This config file deals with log api only (exposing events over http). This module may or may not be enabled, but internal logging is always available.

I think the main settings file is a good spot for these.

@dmitri-d
Copy link
Member

merged in at e26eb4f. Thanks, @lzap.

@dmitri-d dmitri-d closed this Jan 27, 2016
@lzap lzap deleted the log-buffer-module branch January 27, 2016 15:29
@dLobatog
Copy link
Member

I get a very strange stack trace after this change, and I can't start the proxy after this change. Not sure what does this module have to do with Puppet initialization though...

https://gist.github.com/dLobatog/0865f01841381a2f3088

@dmitri-d
Copy link
Member

Don't think this is related to that change -- this appears to be a conflict between two versions of puppet: one from /usr/share/ruby/vendor_ruby and another /usr/local/share/gems/gems/puppet-3.6.2. I suspect this is happening when puppet_proxy or puppet_ca module is being loaded...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants