DAOS-18767 build: Prevent config file overwrite#17964
Conversation
Keep modfified config files installed by the DAOS RPMs when uninstalling or updating the RPMs. Skip-unit-tests: true Skip-fault-injection-test: true Skip-func-hw-test: true Skip-func-test-el8: false Skip-func-test-leap15: false Skip-test-leap-15-rpms: false Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Ticket title is 'DAOS rpm config files are overwritten' |
|
Test stage Test RPMs on EL 9.6 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/2/execution/node/552/log |
|
Test stage Test RPMs on Leap 15.5 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/2/execution/node/603/log |
Skip-unit-tests: true Skip-fault-injection-test: true Skip-func-hw-test: true Skip-func-test-el8: false Skip-func-test-leap15: false Skip-test-leap-15-rpms: false Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Test RPMs on EL 9.6 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/4/execution/node/603/log |
|
Test stage Test RPMs on Leap 15.5 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/4/execution/node/654/log |
|
Test stage Functional on EL 8 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/4/execution/node/727/log |
|
Test stage Functional on Leap 15 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/4/execution/node/574/log |
|
Test stage Functional on EL 9 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/4/execution/node/707/log |
|
Test stage Test RPMs on Leap 15.5 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/5/execution/node/558/log |
|
Test stage Test RPMs on EL 9.6 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos/job/PR-17964/5/display/redirect |
|
Test stage Test RPMs on Leap 15.5 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/6/execution/node/582/log |
|
Test stage Test RPMs on EL 9.6 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/6/execution/node/591/log |
|
Test stage Test RPMs on Leap 15.5 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/7/execution/node/581/log |
|
Test stage Test RPMs on EL 9.6 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/7/execution/node/590/log |
Skip-unit-tests: true Skip-fault-injection-test: true Skip-func-hw-test: true Skip-func-test-el8: false Skip-func-test-leap15: false Skip-test-leap-15-rpms: false Test-tag: test_setup_vm Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Test RPMs on Leap 15.5 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/8/execution/node/619/log |
|
Test stage Test RPMs on EL 9.6 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/8/execution/node/628/log |
Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
Skip-unit-tests: true Skip-fault-injection-test: true Skip-func-hw-test: true Skip-func-test-el8: false Skip-func-test-leap15: false Skip-test-leap-15-rpms: false Test-tag: test_setup_vm Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Test RPMs on EL 9.6 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/9/execution/node/619/log |
|
Test stage Test RPMs on Leap 15.5 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/9/execution/node/628/log |
Skip-unit-tests: true Skip-fault-injection-test: true Skip-func-hw-test: true Skip-func-test-el8: false Skip-func-test-leap15: false Skip-test-leap-15-rpms: false Test-tag: test_setup_vm Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Test RPMs on EL 9.6 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/10/execution/node/619/log |
|
Test stage Test RPMs on Leap 15.5 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17964/10/execution/node/628/log |
Skip-unit-tests: true Skip-fault-injection-test: true Skip-func-hw-test: true Skip-func-test-el8: false Skip-func-test-leap15: false Skip-test-leap-15-rpms: false Test-tag: test_setup_vm Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Functional on Leap 15 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos/job/PR-17964/10/display/redirect |
|
Test stage Functional on EL 9 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos/job/PR-17964/10/display/redirect |
Skip-unit-tests: true Skip-fault-injection-test: true Skip-func-hw-test: true Skip-func-test-el8: false Skip-func-test-leap15: false Skip-test-leap-15-rpms: false Test-tag: test_setup_vm Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
The In this PR the new test case pass in https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos/job/PR-17964/12/pipeline-overview/log?nodeId=628: |
| if [ ! -f "${SERVER_CONFIG}.rpmnew" ]; then | ||
| echo "A ${SERVER_CONFIG}.rpmnew file should exist after the daos-server install" | ||
| ls -al /etc/daos/daos* | ||
| exit 1 | ||
| fi |
There was a problem hiding this comment.
I know I've seen these rpmnew files before but on my local system with latest master RPMs I do not. So I'm guessing this gets handled but the --config-files option?
There was a problem hiding this comment.
Yes, when files marked as config files already exist the RPM installs a .rpmnew version of the config file instead of overwriting the file.
The Test RPM script now touches two of the config files before installing the RPMS to test this behavior:
[2026-04-15T19:04:12.871Z] + ls -al /etc/daos/daos_agent.yml /etc/daos/daos_server.yml
[2026-04-15T19:04:12.871Z] -rw-r--r-- 1 root root 0 Apr 15 19:04 /etc/daos/daos_agent.yml
[2026-04-15T19:04:12.871Z] -rw-r--r-- 1 root root 0 Apr 15 19:04 /etc/daos/daos_server.yml
[2026-04-15T19:04:12.871Z] + sudo dnf -y install daos-server
After the install of daos-server and daos-admin with /etc/daos/daos_server.yml and /etc/daos/daos_agent.yml marked as a config file:
[2026-04-15T19:04:26.967Z] + ls -al /etc/daos/daos_agent.yml /etc/daos/daos_agent.yml.rpmnew /etc/daos/daos_control.yml /etc/daos/daos_server.yml /etc/daos/daos_server.yml.rpmnew
[2026-04-15T19:04:26.967Z] -rw-r--r-- 1 root root 0 Apr 15 19:04 /etc/daos/daos_agent.yml
[2026-04-15T19:04:26.967Z] -rw-r--r-- 1 root root 6386 Apr 15 18:48 /etc/daos/daos_agent.yml.rpmnew
[2026-04-15T19:04:26.967Z] -rw-r--r-- 1 root root 1402 Apr 15 18:48 /etc/daos/daos_control.yml
[2026-04-15T19:04:26.967Z] -rw-r--r-- 1 root root 0 Apr 15 19:04 /etc/daos/daos_server.yml
[2026-04-15T19:04:26.967Z] -rw-r--r-- 1 root root 25754 Apr 15 18:47 /etc/daos/daos_server.yml.rpmnew
There was a problem hiding this comment.
Thanks. That makes sense
Keep modified config files installed by the DAOS RPMs when uninstalling or updating the RPMs. Skip-unit-tests: true Skip-fault-injection-test: true Skip-func-hw-test: true Skip-func-test-el8: false Skip-func-test-leap15: false Skip-test-leap-15-rpms: false Test-tag: test_setup_vm Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
Keep modfified config files installed by the DAOS RPMs when uninstalling or updating the RPMs.
Skip-unit-tests: true
Skip-fault-injection-test: true
Skip-func-hw-test: true
Skip-func-test-el8: false
Skip-func-test-leap15: false
Skip-test-leap-15-rpms: false
Steps for the author:
After all prior steps are complete: