Skip to content

Conversation

@btriller
Copy link
Contributor

Fixed in master by 3cda000. Add test which checks owner on created files with content attribute.

Ticket: CFE-4621

@btriller btriller changed the title Fix owner on file creation with content attribute CFE-4621: Fix owner on file creation with content attribute Dec 14, 2025
@larsewi
Copy link
Contributor

larsewi commented Dec 15, 2025

@cf-bottom Jenkins please :)

@cf-bottom
Copy link

@larsewi
Copy link
Contributor

larsewi commented Dec 18, 2025

Thanks for submitting the PR @btriller 🚀 We will get back to is shortly

@larsewi
Copy link
Contributor

larsewi commented Dec 19, 2025

@cf-bottom Jenkins please :)

@cf-bottom
Copy link

Copy link
Contributor

@larsewi larsewi left a comment

Choose a reason for hiding this comment

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

Hi @btriller it appears you test has surfaced what appears to be a bug on RHEL 7:

2025-12-19T09:35:16+0000     info: Created directory "/home/jenkins/workspace/testing-pr/label/PACKAGES_x86_64_linux_redhat_7/cfengine-3.24.4a.db693b48b/tests/acceptance/workdir/__10_files_01_create_013_cf/tmp/TESTDIR.cfengine/.", mode 0700
2025-12-19T09:35:16+0000     info: Could not get UID for user "sys", (getpwnam: not found)
2025-12-19T09:35:16+0000     info: Promise belongs to bundle "test" in file "./10_files/01_create/013.cf" near line 38
2025-12-19T09:35:16+0000     info: Created file "/home/jenkins/workspace/testing-pr/label/PACKAGES_x86_64_linux_redhat_7/cfengine-3.24.4a.db693b48b/tests/acceptance/workdir/__10_files_01_create_013_cf/tmp/TEST.cfengine", mode 0644
2025-12-19T09:35:16+0000     info: Could not get UID for user "sys", (getpwnam: not found)
2025-12-19T09:35:16+0000     info: Promise belongs to bundle "test" in file "./10_files/01_create/013.cf" near line 38
2025-12-19T09:35:16+0000    error: None of the promised owners for "/home/jenkins/workspace/testing-pr/label/PACKAGES_x86_64_linux_redhat_7/cfengine-3.24.4a.db693b48b/tests/acceptance/workdir/__10_files_01_create_013_cf/tmp/TEST.cfengine" exist -- see INFO logs for more
2025-12-19T09:35:16+0000    error: Errors encountered when actuating files promise "/home/jenkins/workspace/testing-pr/label/PACKAGES_x86_64_linux_redhat_7/cfengine-3.24.4a.db693b48b/tests/acceptance/workdir/__10_files_01_create_013_cf/tmp/TEST.cfengine"
2025-12-19T09:35:16+0000     info: Could not get UID for user "sys", (getpwnam: not found)
2025-12-19T09:35:16+0000     info: Promise belongs to bundle "test" in file "./10_files/01_create/013.cf" near line 38
2025-12-19T09:35:16+0000     info: Could not get UID for user "sys", (getpwnam: not found)
2025-12-19T09:35:16+0000     info: Promise belongs to bundle "test" in file "./10_files/01_create/013.cf" near line 38
2025-12-19T09:35:16+0000    error: Method "test" failed in some repairs
R: expected: username = "sys"
R: got:      username = "root"
R: /home/jenkins/workspace/testing-pr/label/PACKAGES_x86_64_linux_redhat_7/cfengine-3.24.4a.db693b48b/tests/acceptance/./10_files/01_create/013.cf FAIL
2025-12-19T09:35:16+0000    error: Method "test_run" failed in some repairs

Will you look into this or should we take over from here?

Fixed in master by 3cda000.
Add test which checks owner on created files with content attribute.

Ticket: CFE-4621
@btriller
Copy link
Contributor Author

Hi @btriller it appears you test has surfaced what appears to be a bug on RHEL 7:

2025-12-19T09:35:16+0000     info: Created directory "/home/jenkins/workspace/testing-pr/label/PACKAGES_x86_64_linux_redhat_7/cfengine-3.24.4a.db693b48b/tests/acceptance/workdir/__10_files_01_create_013_cf/tmp/TESTDIR.cfengine/.", mode 0700
2025-12-19T09:35:16+0000     info: Could not get UID for user "sys", (getpwnam: not found)
2025-12-19T09:35:16+0000     info: Promise belongs to bundle "test" in file "./10_files/01_create/013.cf" near line 38
2025-12-19T09:35:16+0000     info: Created file "/home/jenkins/workspace/testing-pr/label/PACKAGES_x86_64_linux_redhat_7/cfengine-3.24.4a.db693b48b/tests/acceptance/workdir/__10_files_01_create_013_cf/tmp/TEST.cfengine", mode 0644
2025-12-19T09:35:16+0000     info: Could not get UID for user "sys", (getpwnam: not found)
2025-12-19T09:35:16+0000     info: Promise belongs to bundle "test" in file "./10_files/01_create/013.cf" near line 38
2025-12-19T09:35:16+0000    error: None of the promised owners for "/home/jenkins/workspace/testing-pr/label/PACKAGES_x86_64_linux_redhat_7/cfengine-3.24.4a.db693b48b/tests/acceptance/workdir/__10_files_01_create_013_cf/tmp/TEST.cfengine" exist -- see INFO logs for more
2025-12-19T09:35:16+0000    error: Errors encountered when actuating files promise "/home/jenkins/workspace/testing-pr/label/PACKAGES_x86_64_linux_redhat_7/cfengine-3.24.4a.db693b48b/tests/acceptance/workdir/__10_files_01_create_013_cf/tmp/TEST.cfengine"
2025-12-19T09:35:16+0000     info: Could not get UID for user "sys", (getpwnam: not found)
2025-12-19T09:35:16+0000     info: Promise belongs to bundle "test" in file "./10_files/01_create/013.cf" near line 38
2025-12-19T09:35:16+0000     info: Could not get UID for user "sys", (getpwnam: not found)
2025-12-19T09:35:16+0000     info: Promise belongs to bundle "test" in file "./10_files/01_create/013.cf" near line 38
2025-12-19T09:35:16+0000    error: Method "test" failed in some repairs
R: expected: username = "sys"
R: got:      username = "root"
R: /home/jenkins/workspace/testing-pr/label/PACKAGES_x86_64_linux_redhat_7/cfengine-3.24.4a.db693b48b/tests/acceptance/./10_files/01_create/013.cf FAIL
2025-12-19T09:35:16+0000    error: Method "test_run" failed in some repairs

Will you look into this or should we take over from here?

Let's try nobody

@btriller btriller requested a review from larsewi December 19, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants