On Ubuntu a state failed because apparmor package was not pre-installed.
Is this package a prerequisite?
Setup
Steps to Reproduce Issue
root@ubuntu1804:/root/# salt-run state.orch ceph.stage.0
[WARNING ] All minions are ready
[WARNING ] Output from salt state not highstate
[ERROR ] {'out': 'highstate', 'ret': {'ubuntu1804.localdomain': False}}
ubuntu1804.localdomain_master:
Name: crc_method master - Function: salt.state - Result: Changed Started: - 16:44:31.177205 Duration: 356.846 ms
Name: sync master - Function: salt.state - Result: Changed Started: - 16:44:31.534186 Duration: 869.437 ms
Name: salt-api - Function: salt.state - Result: Changed Started: - 16:44:32.403725 Duration: 4627.807 ms
Name: repo master - Function: salt.state - Result: Clean Started: - 16:44:37.031634 Duration: 322.903 ms
Name: metapackage master - Function: salt.state - Result: Clean Started: - 16:44:37.354745 Duration: 410.303 ms
Name: prepare master - Function: salt.state - Result: Changed Started: - 16:44:37.765219 Duration: 161831.15 ms
Name: filequeue.remove - Function: salt.runner - Result: Changed Started: - 16:47:19.597159 Duration: 7872.134 ms
Name: filequeue.enqueue - Function: salt.runner - Result: Changed Started: - 16:47:27.469411 Duration: 255.139 ms
Name: minions.ready - Function: salt.runner - Result: Changed Started: - 16:47:27.724674 Duration: 465.6 ms
Name: crc_method minion - Function: salt.state - Result: Changed Started: - 16:47:28.190513 Duration: 993.413 ms
----------
ID: set apparmor
Function: salt.state
Result: False
Comment: Run failed on minions: ubuntu1804.localdomain
Started: 16:47:29.184112
Duration: 25379.59 ms
Changes:
ubuntu1804.localdomain:
False
Name: repo - Function: salt.state - Result: Clean Started: - 16:47:54.563915 Duration: 900.133 ms
Name: metapackage minions - Function: salt.state - Result: Clean Started: - 16:47:55.464221 Duration: 455.591 ms
Name: common packages - Function: salt.state - Result: Changed Started: - 16:47:55.919957 Duration: 74901.166 ms
Name: sync - Function: salt.state - Result: Changed Started: - 16:49:10.821316 Duration: 1797.121 ms
Name: mines - Function: salt.state - Result: Changed Started: - 16:49:12.618613 Duration: 442.732 ms
Name: updates - Function: salt.state - Result: Clean Started: - 16:49:13.061681 Duration: 14915.485 ms
Name: No Ceph cluster - Function: test.nop - Result: Clean Started: - 16:49:27.977405 Duration: 0.551 ms
Summary for ubuntu1804.localdomain_master
-------------
Succeeded: 17 (changed=12)
Failed: 1
-------------
Total states run: 18
Total run time: 296.797 s
Install apparmor package
root@ubuntu1804:/root/# apt-get install apparmor -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
python3-cherrypy3 python3-repoze.lru python3-routes python3-simplejson python3-webob
Use 'apt autoremove' to remove them.
Suggested packages:
apparmor-profiles-extra apparmor-utils
The following NEW packages will be installed:
apparmor
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
Need to get 0 B/487 kB of archives.
After this operation, 1,892 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package apparmor.
(Reading database ... 132992 files and directories currently installed.)
Preparing to unpack .../apparmor_2.12-4ubuntu5.1_amd64.deb ...
Unpacking apparmor (2.12-4ubuntu5.1) ...
Processing triggers for ureadahead (0.100.0-21) ...
Setting up apparmor (2.12-4ubuntu5.1) ...
AppArmor parser error for /etc/apparmor.d/usr.lib.snapd.snap-confine.real in /etc/apparmor.d/usr.lib.snapd.snap-confine.real at line 11: Could not open '/var/lib/snapd/apparmor/snap-confine'
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
AppArmor parser error for /etc/apparmor.d/usr.lib.snapd.snap-confine.real in /etc/apparmor.d/usr.lib.snapd.snap-confine.real at line 11: Could not open '/var/lib/snapd/apparmor/snap-confine'
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Processing triggers for systemd (237-3ubuntu10.24) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
root@ubuntu1804:/root/# salt-run deepsea.version
0.0.0
root@ubuntu1804:/root/# /usr/local/bin/deepsea --version
deepsea 0.0.0
root@ubuntu1804:/root/# dpkg-query --list | grep salt
ii salt-api 2019.2.0+ds-1 all Generic, modular network access system
ii salt-common 2019.2.0+ds-1 all shared libraries that salt requires for all packages
ii salt-master 2019.2.0+ds-1 all remote manager to administer servers via salt
ii salt-minion 2019.2.0+ds-1 all client package for salt, the distributed remote execution system
Description of Issue/Question
On Ubuntu a state failed because apparmor package was not pre-installed. Is this package a prerequisite?
Setup
Steps to Reproduce Issue
Install apparmor package
Retry.
Versions Report