SUSE/DeepSea

Is apparmor package a prerequisite?

Closed this issue · 2 comments

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

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) ...

Retry.

root@ubuntu1804:/root/# salt-run state.orch ceph.stage.0
[WARNING ] All minions are ready
ubuntu1804.localdomain_master:
  Name: crc_method master - Function: salt.state - Result: Clean Started: - 16:58:28.003061 Duration: 384.93 ms
  Name: sync master - Function: salt.state - Result: Changed Started: - 16:58:28.388171 Duration: 906.327 ms
  Name: salt-api - Function: salt.state - Result: Changed Started: - 16:58:29.294617 Duration: 6473.782 ms
  Name: repo master - Function: salt.state - Result: Clean Started: - 16:58:35.768512 Duration: 369.412 ms
  Name: metapackage master - Function: salt.state - Result: Clean Started: - 16:58:36.138042 Duration: 414.075 ms
  Name: prepare master - Function: salt.state - Result: Clean Started: - 16:58:36.552265 Duration: 13584.928 ms
  Name: filequeue.remove - Function: salt.runner - Result: Changed Started: - 16:58:50.137408 Duration: 5602.742 ms
  Name: filequeue.enqueue - Function: salt.runner - Result: Changed Started: - 16:58:55.740278 Duration: 291.752 ms
  Name: minions.ready - Function: salt.runner - Result: Changed Started: - 16:58:56.032161 Duration: 487.673 ms
  Name: crc_method minion - Function: salt.state - Result: Clean Started: - 16:58:56.520051 Duration: 938.222 ms
  Name: set apparmor - Function: salt.state - Result: Changed Started: - 16:58:57.458410 Duration: 8685.134 ms
  Name: repo - Function: salt.state - Result: Clean Started: - 16:59:06.143691 Duration: 358.284 ms
  Name: metapackage minions - Function: salt.state - Result: Clean Started: - 16:59:06.503035 Duration: 422.715 ms
  Name: common packages - Function: salt.state - Result: Clean Started: - 16:59:06.925987 Duration: 5041.825 ms
  Name: sync - Function: salt.state - Result: Changed Started: - 16:59:11.968044 Duration: 917.688 ms
  Name: mines - Function: salt.state - Result: Changed Started: - 16:59:12.885853 Duration: 428.683 ms
  Name: updates - Function: salt.state - Result: Clean Started: - 16:59:13.314845 Duration: 13556.746 ms
  Name: No Ceph cluster - Function: test.nop - Result: Clean Started: - 16:59:26.871908 Duration: 0.499 ms

Summary for ubuntu1804.localdomain_master
-------------
Succeeded: 18 (changed=8)
Failed:     0
-------------
Total states run:     18
Total run time:   58.865 s

Versions Report

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

Apparmor might be a requirement #1411

Must be required.