microstack requires read access to @{PROC}/*/{,task/*/}sched and
@{PROC}/*/{,task/*/}schedstat to allow virsh to read cpu statistics
of the instances.
Without this rule, openstack-hypervisor.virsh domstat list does not
print cpu statistics, vcpu.<id>.time, vcpu.<id>.stat.
Apparmor deny rule in dmesg:
[98847.604617] audit: type=1400 audit(1693470840.357:1499): \
apparmor="DENIED" operation="open" profile="snap.openstack-hypervisor.libvirtd" \
name="/proc/2014588/task/2014595/sched" pid=3668724 comm="rpc-libvirtd" \
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
This rule is also required by ceilometer service running on the
openstack-hypervisor snap which queries libvirt for the cpu/memory/disk
statistics of the instances running on hypervisor.
* packaging: fix unneeded errtracker patches
* packaging: remove errtrack specific parts of the patches
---------
Co-authored-by: Michael Vogt <mvo@ubuntu.com>
In some cases the reboot was happening while running "snap watch", it
makes more sense to run this after the reboot to ensure that the
change has finished.
In some cases the reboot was happening while running "snap watch", it
makes more sense to run this after the reboot to ensure that the
change has finished.
Support an "any" type that accepts data from any other type (e.g., int,
strings, etc) except for the null value. This can be used in maps as the
value of keys that are expected to be present but without a particular
type.
Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
Some tests fail before the fake store is configured so the dir
"STORE_DIR" is nor created. When the test is restored, the test fails to
restore because the tool store-state is returning 1 in case the
STORE_DIR dir does not exist.
This change makes more robust the store-state tool to manage this
scenario and continue in case the fake store was not configured
properly.
RevisionOptions are mapped to snap names based on order, but the names where
being sorted before the mapping is built.
Test is added trying all permutation of a few snaps to make sure no regression
happens due to bad ordering.
Signed-off-by: Zeyad Gouda <zeyad.gouda@canonical.com>
incorporate into it and update the patterns described in basedeclaration.go
have a few relevant doc comments point to it
* tweaks
* interfaces: incorporate suggestions from @degville with some tweaks
thanks
* interfaces: incorporate fixes from @MiguelPires
thanks
* First part of the improvements done for pkg management
The idea of this change is to use the tests.pkg tools instead of the
pkgdb.sh helper when possible
* Squashed 'tests/lib/external/snapd-testing-tools/' changes from 1c8efb77e1..c82afb2dee
c82afb2dee Support --no-install-recommends parameter when installing dependencies with tests.pkgs
b84eea92e2 spread-shellcheck: fix quotes in environment variables (#41)
ab1e51c29f New comparison in os-query for core systems (#40)
e5ae22a5d4 systemd units can be overwritten
63540b845a Fix error messages in remote pull and push
75e8a426a5 make sure the unit is removed in tests.systemd test
9089ff5c02 Update tests to use the new tests.systemd stop-unit
44ecd5e56a Move tests.systemd stop-units to stop-unit
01a2a83b4b Update tests.systemd to have stop units as systemd.sh
162e93bd35 update tests.systemd CLI options to be the same than retry command
14aa43a405 new feature to re-run failed spread tests (#39)
604cb782db Fix shellcheck in systemd tool
bfc71082c8 Update the tests.systemd to allow parameters waiting for service status
8a2d0a99df Adding quiet tool and removing set +-x from tests.pkgs
d90935d2a4 A comment explaining about the default values for wait-for
3232c5dba7 Add support for ubuntu 23.04
a7164fba07 remove fedora 35 support, add fedora 37 support
89b9eb5301 Update systems supported
92bb6a0664 Include snap-sufix in the snaps.name tool
git-subtree-dir: tests/lib/external/snapd-testing-tools
git-subtree-split: c82afb2dee93a6f2ee047608f0e27d3c4af10a88
* defer tests.pkgs remove inotify-tools
* Squashed 'tests/lib/external/snapd-testing-tools/' changes from c82afb2dee..5e7b63883d
5e7b63883d Fixes for osquery and tests pkgs (#43)
4c9145e2ac support reboot waiting for auto-refresh
45768f5188 show changes in unknown status after refresh
8013c30c2a Remove support for ubuntu 22.10
b32b80bf54 Fix remote.rait-for test in bionic
5675c625e9 Enable fedora 38
55f4471957 Support for new oss
f2e88b357c New tool used to query spread json reports
cacd35ede0 utils/spread-shellcheck: explain disabled warnings (#42)
git-subtree-dir: tests/lib/external/snapd-testing-tools
git-subtree-split: 5e7b63883df49cdc72e2fc1fe0a23dd79224ab27
* Squashed 'tests/lib/external/snapd-testing-tools/' changes from 5e7b63883d..2a5c4414a3
2a5c4414a3 fix shellcheck errors
git-subtree-dir: tests/lib/external/snapd-testing-tools
git-subtree-split: 2a5c4414a3db1ec8f8e37ee78d7d3c5b5b7a082b
* o/devicestate: use device-service.access to determine if we should fetch a serial or not
* o/devicestate: remove checks for device serial
* o/devicestate: convert error return into a log message
* o/devicestate: removed accidentally stash popped changes
* o/devicestate: removed unused type
* o/devicestate: sort tasks for test consistency
* o/devicestate: log message when skipping getting serial
* o/devicestate: examine tasks on change in test rather than directly on the state
* o/devicestate: examine tasks on change in test rather than directly on the state
* o/devicestate: convert empty len check to nil change check
* o/devicestate: fix typo
Co-authored-by: Miguel Pires <miguelpires94@gmail.com>
* o/devicestate: add testcase number to test output
---------
Co-authored-by: Miguel Pires <miguelpires94@gmail.com>
To support upgrade-paths to newer snapd and the new restart logic, when doing refreshes of snapd with other essential snaps, it could end up failing the refresh of the other essential snaps. Default to all restarts being acted like they are restart boundaries, if none have been configured.
This tests was testing refresh only to edge. Which means it would not
fail in a branch but only once it is merged to master. The new variant
also test refresh to the current version to make sure we do not break
refresh.