Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-20917

"Copy aide db" task in aide ainsible role will be skipped always.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhos-17.1.8, rhos-17.1.9
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • rhos-ops-platform-services-security
    • None
    • Important

      To Reproduce Steps to reproduce the behavior:

      1. Follow our documentation to configure aide on overcloud nodes.

      Expected behavior

      • The "Copy aide db" task is executed always when aide services is enabled.

      Screenshots

      • N/A

      Device Info (please complete the following information):

      • N/A

      Bug impact

      • Our customer can't configure the aide service properly.

      Known workaround

      • Override the default value of the below heat parameters like below.
        • AideDBPath
        • AideDBTempPath
      • resource_registry:
            OS::TripleO::Services::Aide: /usr/share/openstack-tripleo-heat-templates/deployment/aide/aide-baremetal-ansible.yaml
        
        parameter_defaults:
            AideRules:
              'TripleORules':
                content: 'TripleORules = p+sha256'
                order: 1
              'etc':
                content: '/etc/ TripleORules'
                order: 2
              'boot':
                content: '/boot/ TripleORules'
                order: 3
              'sbin':
                content: '/sbin/ TripleORules'
                order: 4
              'var':
                content: '/var/ TripleORules'
                order: 5
              'not var/log':
                content: '!/var/log.*'
                order: 6
              'not var/spool':
                content: '!/var/spool.*'
                order: 7
              'not nova instances':
                content: '!/var/lib/nova/instances.*'
                order: 8
          AideDBPath: /var/lib/aide/aide.db.gz <===================== (*)
          AideDBTempPath: /var/lib/aide/aide.db.new.gz <============= (*)

      Additional context

      • However, the above `database` and `database_out` which are added by tripleo will be ignored  by aide according to the man of aide.conf.
      • CONFIG LINES

               These lines have the format parameter=value. See URLS for a list of valid urls.

         

               database

                      The url from which database is read. There can only be one of these lines. If there are multiple database lines then the first is used. The default value is "/usr/etc/aide.db".

         

               database_out

                      The  url  to which the new database is written to. There can only be one of these lines. If there are multiple database_out lines then the first is used. The default value is "/usr/etc/aide.db.new".

      • It means, the first `database` and `database_out` in the config will be used.
      • So I guess the default value of heat parameter should be aligned with the default values by aide.

              Unassigned Unassigned
              rhn-support-nkawamot Nozomi Kawamoto
              rhos-dfg-security
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: