feat: add Charmed Kafka plugins#4214
Conversation
2d8043b to
275b5d8
Compare
|
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
59ad158 to
bf38433
Compare
There was a problem hiding this comment.
other than the review comments, a few other things
- There is no trigger for these plugins, which means these plugins will always run on any Ubuntu platform. Please add packages, services, files tuples depending on the plugin, so that the plugins are only enabled as required. This probably the reason why the CI has failed on only on the Ubuntu runs.
- The 2 options imho don't add value here. Typically sos is collected for logs and data from a date to the current date. Also collecting logs by default from 1970-01-01 doesn't make sense. This would mean you're collecting all the data by default. It would be preferred, that this was behind the all_logs option. You can look at the maas plugin which parses the since option, which can then allow you to utilise this. So I would work this in this way.
bf38433 to
5a6b097
Compare
|
@arif-ali - Thanks for the speedy review! I think I've addressed all points, let me know! |
TurboTurtle
left a comment
There was a problem hiding this comment.
Thanks for the PR!
Some notes on these plugins below. Overall the plugins look beneficial and useful, but need some alignment with sos norms.
| # --- CRUISE CONTROL STATE --- | ||
|
|
||
| self.add_cmd_output( |
There was a problem hiding this comment.
These can all be cleaned up, and made to fit line lengths:
endpoints = {
'cruise-control-state': 'state?super_verbose=true',
'cluster-state': 'kafka_cluster_state?verbose=true',
'partition_load': 'partition_load',
...etc...
}
url = 'localhost:9090/kafkacruisecontrol'
for fname, api in endpoints.items():
self.add_cmd_output(
f"curl {self.credentials_args} {url}/{api}",
suggest_filename=fname
)There was a problem hiding this comment.
I don't see issue with the verbosity here, as having each step explicit helps with potential future post-processing for individual steps if needed.
02d862b to
15f49e5
Compare
|
@TurboTurtle - Have addressed the majority of your points, let me know if all is OK! |
15f49e5 to
c36056f
Compare
|
Hey, gentle bump on this. I'm not sure why the CI is failing, any ideas? |
|
Here are the backtraces that caused the Plus also: that I commented directly in the code. |
c36056f to
79d2c98
Compare
|
@pmoravec - Thank you! CI fixed I think, we good to go? |
261352d to
839e50d
Compare
Signed-off-by: Marc Oppenheimer <marcaoppenheimer@gmail.com>
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines