-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat(systemd): check sockets created by systemd #66
feat(systemd): check sockets created by systemd #66
Conversation
On systems with sockets created by systemd, the configuration in “libvirtd.conf” is not used. * test/integration/share/libraries/systemd_config.rb: new utility to get systemd service configuration options. * test/integration/share/libraries/libvirt_socket_admin.rb: load “libvirt-admin.socket” configuration and provide 3 methods to return owner, group and permissions defined. Fallback on default values. * test/integration/share/libraries/libvirt_socket_ro.rb: load “libvirt-ro.socket” configuration and provide 3 methods to return owner, group and permissions defined. Fallback on default values. * test/integration/share/libraries/libvirt_socket_rw.rb: load “libvirt.socket” configuration and provide 3 methods to return owner, group and permissions defined. Fallback on default values. * test/integration/default/controls/socket_admin_spec.rb: check socket owner, group and permissions against configured values. * test/integration/default/controls/socket_ro_spec.rb: ditoo. * test/integration/default/controls/socket_rw_spec.rb: ditoo.
In the kitchen output we can see that the configured perms in
but the real perms are tested against values from systemd
We could enable new images after this PR is merged. Regards. |
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.
Nice work!
Merged, thanks @baby-gnu. |
🎉 This PR is included in version 3.4.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
* Automated using myii/ssf-formula#116 * Close saltstack-formulas#64 * Based on: - saltstack-formulas#66 - saltstack-formulas#67 - saltstack-formulas#68
# [3.7.0](v3.6.0...v3.7.0) (2020-03-24) ### Bug Fixes * **libtofs:** “files_switch” mess up the variable exported by “map.jinja” [skip ci] ([fd277ec](fd277ec)) ### Continuous Integration * workaround issues with newly introduced `amazonlinux-1` [skip ci] ([9299b03](9299b03)) * **kitchen:** avoid using bootstrap for `master` instances [skip ci] ([58709f6](58709f6)) * **travis:** update matrix after recent platform fixes ([a6dd1d3](a6dd1d3)), closes [#64](#64) [#66](#66) [#67](#67) [#68](#68) ### Features * **map.jinja:** `defaults.yaml` must be under `parameters/` ([3ca19bc](3ca19bc)) * **map.jinja:** load a configurable list of YAML files ([ce1782c](ce1782c)) * **map.jinja:** split `osfamilymap.yaml` under `parameters/os_family/` ([e82d184](e82d184)) * **map.jinja:** split `osfingermap.yaml` under `parameters/osfinger/` ([365f711](365f711)) * **map.jinja:** split `osmap.yaml` under `parameters/os/` ([4255397](4255397))
PR progress checklist (to be filled in by reviewers)
What type of PR is this?
Primary type
[build]
Changes related to the build system[chore]
Changes to the build process or auxiliary tools and libraries such as documentation generation[ci]
Changes to the continuous integration configuration[feat]
A new feature[fix]
A bug fix[perf]
A code change that improves performance[refactor]
A code change that neither fixes a bug nor adds a feature[revert]
A change used to revert a previous commit[style]
Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)Secondary type
[docs]
Documentation changes[test]
Adding missing or correcting existing testsDoes this PR introduce a
BREAKING CHANGE
?No.
Related issues and/or pull requests
fedora-31
pre-salted image #64Describe the changes you're proposing
On systems with sockets created by systemd, the configuration in
“libvirtd.conf” is not used.
test/integration/share/libraries/systemd_config.rb: new utility to
get systemd service configuration options.
test/integration/share/libraries/libvirt_socket_admin.rb: load
“libvirt-admin.socket” configuration and provide 3 methods to return
owner, group and permissions defined. Fallback on default values.
test/integration/share/libraries/libvirt_socket_ro.rb: load
“libvirt-ro.socket” configuration and provide 3 methods to return
owner, group and permissions defined. Fallback on default values.
test/integration/share/libraries/libvirt_socket_rw.rb: load
“libvirt.socket” configuration and provide 3 methods to return
owner, group and permissions defined. Fallback on default values.
test/integration/default/controls/socket_admin_spec.rb: check socket
owner, group and permissions against configured values.
test/integration/default/controls/socket_ro_spec.rb: ditoo.
test/integration/default/controls/socket_rw_spec.rb: ditoo.
Pillar / config required to test the proposed changes
Debug log showing how the proposed changes work
Documentation checklist
README
(e.g.Available states
).pillar.example
.Testing checklist
state_top
).Additional context