-
Notifications
You must be signed in to change notification settings - Fork 34
Add watcher related information gathering #114
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
Add watcher related information gathering #114
Conversation
Depends-On: openstack-k8s-operators/openstack-must-gather#114 Signed-off-by: Chandan Kumar (raukadah) <[email protected]>
Signed-off-by: Chandan Kumar (raukadah) <[email protected]>
|
Based on my testing openstack-k8s-operators/watcher-operator#302 and here is the collected logs: https://logserver.rdoproject.org/c08/rdoproject.org/c08d0ebdf0d54383b739890147dfd19a/controller/ci-framework-data/logs/openstack-must-gather/quay-rdoproject-org-openstack-k8s-operators-openstack-must-gather-sha256-403d142967dcab20440ac7fa493632ca7b953891738a147c00f1200c024ecfb2/ctlplane/watcher/ . Since there is no audit template or audit created by user that's why audit, audit template, actionplan and actions are empty. We have logs from strategy , goals. https://logserver.rdoproject.org/c08/rdoproject.org/c08d0ebdf0d54383b739890147dfd19a/controller/ci-framework-data/logs/openstack-must-gather/quay-rdoproject-org-openstack-k8s-operators-openstack-must-gather-sha256-403d142967dcab20440ac7fa493632ca7b953891738a147c00f1200c024ecfb2/ctlplane/watcher/strategy_list |
fmount
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fmount 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 |
810d396
into
openstack-k8s-operators:main
| run_bg ${BASH_ALIASES[os]} optimize goal list '>' "$WATCHER_PATH"/goal_list | ||
| run_bg ${BASH_ALIASES[os]} optimize strategy list '>' "$WATCHER_PATH"/strategy_list | ||
| run_bg ${BASH_ALIASES[os]} optimize audittemplate list '>' "$WATCHER_PATH"/audittemplate_list | ||
| run_bg ${BASH_ALIASES[os]} optimize audit list '>' "$WATCHER_PATH"/audit_list | ||
| run_bg ${BASH_ALIASES[os]} optimize actionplan list '>' "$WATCHER_PATH"/actionplan_list | ||
| run_bg ${BASH_ALIASES[os]} optimize action list '>' "$WATCHER_PATH"/action_list | ||
| run_bg ${BASH_ALIASES[os]} optimize service list '>' "$WATCHER_PATH"/watcher_service_list | ||
| run_bg ${BASH_ALIASES[os]} optimize datamodel list '>' "$WATCHER_PATH"/watcher_datamodel_list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not correct we shoudl not be collecting the datamodel actions, audits or action plans
the goals and stragies would only hcange if they added there own plugins for thos so the only thing i thikn we shoudl likely keep is the service list
| run_bg ${BASH_ALIASES[os]} optimize goal list '>' "$WATCHER_PATH"/goal_list | |
| run_bg ${BASH_ALIASES[os]} optimize strategy list '>' "$WATCHER_PATH"/strategy_list | |
| run_bg ${BASH_ALIASES[os]} optimize audittemplate list '>' "$WATCHER_PATH"/audittemplate_list | |
| run_bg ${BASH_ALIASES[os]} optimize audit list '>' "$WATCHER_PATH"/audit_list | |
| run_bg ${BASH_ALIASES[os]} optimize actionplan list '>' "$WATCHER_PATH"/actionplan_list | |
| run_bg ${BASH_ALIASES[os]} optimize action list '>' "$WATCHER_PATH"/action_list | |
| run_bg ${BASH_ALIASES[os]} optimize service list '>' "$WATCHER_PATH"/watcher_service_list | |
| run_bg ${BASH_ALIASES[os]} optimize datamodel list '>' "$WATCHER_PATH"/watcher_datamodel_list | |
| run_bg ${BASH_ALIASES[os]} optimize service list '>' "$WATCHER_PATH"/watcher_service_list |
if you look at the nova version you can see we intentiolly do not collelct the flavor or instances as we are not ment to collect the workload info via must gather
collection the action plans, actions autit templates and audits re all "workload info" in the context of watcher.
i maybe coudl see collectin the list of audittempelates but honeslty i dotn think that will be useful for debuging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that probably the only useful part will be the service list and maybe audits (i.e. to see the parameters for questions like "my audit X is not doing what I'd expect) although for those case it will probably easier to ask for specific commands.
We can also keep the list of goals and strategies just to check that the deployment of watcher went fine.
Said that, I'd say the only bad side of it is extra space usage, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SeanMooney @amoralej you are correct, collecting all info does help. #116 now collects goal, strategy and services list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the goals and stragies i think is fine
the probelm with the workload information is w eshoudl not be collecting data that might be sensivite and things liek the parmaters pass to an audit may be.
certainly i know we have to be careful with collecting ips and hostnames in general, the service list i think is ok but i think the datamodel is too far at least by default.
we could support it via a flag but i strongly suspect we would be much better off requesting this info explicit if necessary. if that happen often we can expand the list but for now lets keep this pretty simple and short.
|
sigh we shoudl revert this and do it proeprly or fix it before we merge this i also woudl have liked to see this run end to end in ci to review the output. |
No description provided.