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

The order of handling "branch_info" spec is wrong #3473

Open
huali027 opened this issue Jul 20, 2022 · 0 comments
Open

The order of handling "branch_info" spec is wrong #3473

huali027 opened this issue Jul 20, 2022 · 0 comments

Comments

@huali027
Copy link
Contributor

The file "branch_info" is created by insights-client itself.
However, the insights client will run all the specs first, and after that, the "/branch_info" is created. As a result, in the insights log, we can see the following errors:

2022-07-20 04:41:08,635     INFO insights.core.dr Trying insights.specs.default.DefaultSpecs.branch_info
2022-07-20 04:41:08,636    DEBUG insights.core.plugins /branch_info does not exist.
2022-07-20 04:41:08,636     INFO insights.core.dr Trying insights.specs.Specs.branch_info
2022-07-20 04:41:08,637    DEBUG insights.core.dr insights.specs.Specs.branch_info missing requirements All: [] Any: ['insights.specs.default.DefaultSpecs.branch_info']
....
2022-07-20 04:42:08,186    DEBUG insights.client.core_collector Collecting metadata...
2022-07-20 04:42:08,186    DEBUG insights.client.data_collector Writing branch information to archive...
```
In fact, we should create the file first before running the specs to avoid the wrong logs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant