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

Fixes #8871: missing rudder_expected_reports.csv.res when starting the agent for the first time after an update #423

Conversation

amousset
Copy link
Member

"expected_reports_source" string => "${sys.workdir}/inputs/rudder_expected_reports.csv";
"expected_reports_temp" string => "${expected_reports_source}.tmp";
"expected_reports_file" string => "${expected_reports_source}.res";
# We add the PID to the file name to be able to handle cuncurrent agent runs with separate expected reports
"expected_reports_file" string => "${sys.workdir}/state/rudder_expected_reports.${this.promiser_pid}.csv.res";
Copy link
Member

Choose a reason for hiding this comment

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

Could you also add a comment here as to why we're placing the file in a different directory? (to avoid purging during update)

@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the bug_8871/missing_rudder_expected_reports_csv_res_when_starting_the_agent_for_the_first_time_after_an_update branch from 7c7ba41 to 478bf82 Compare August 29, 2016 15:22
@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the bug_8871/missing_rudder_expected_reports_csv_res_when_starting_the_agent_for_the_first_time_after_an_update branch from 478bf82 to 9f55b99 Compare August 29, 2016 15:22
bundle agent _clean_old_expected_reports_file(days) {

files:
"${sys.workdir}/state/rudder_expected_reports.*.csv.res"
Copy link
Member

Choose a reason for hiding this comment

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

This should also have .tmp

@amousset
Copy link
Member Author

This needs be moved into log_rudder in master.

@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the bug_8871/missing_rudder_expected_reports_csv_res_when_starting_the_agent_for_the_first_time_after_an_update branch from 9f55b99 to d4f4913 Compare August 29, 2016 15:57
@jooooooon
Copy link
Member

OK, looks good to me. Let's get some feedback on this before merging.

@amousset amousset force-pushed the bug_8871/missing_rudder_expected_reports_csv_res_when_starting_the_agent_for_the_first_time_after_an_update branch from d4f4913 to b42b0e6 Compare August 29, 2016 16:33
@amousset
Copy link
Member Author

Commit modified

@Normation-Quality-Assistant
Copy link
Contributor

This PR is not mergeable to upper versions.
Since it is "Ready for merge" you must merge it by yourself using the following command:
rudder-dev merge https://github.com/Normation/ncf/pull/423 --run-tests
-- Your faithful QA

@amousset
Copy link
Member Author

amousset commented Sep 6, 2016

OK, merging this PR

@amousset amousset merged commit b42b0e6 into Normation:v0.x Sep 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants