Skip to content

Foreman "empty" Report unnecessary strings #72

@toggetit

Description

@toggetit

Since Puppet/OpenVox 7/8 agent produces some additional "Notice" strings when it runs.

Notice: Requesting catalog ...
Notice: Catalog compiled by ...
Notice: Applied catalog in ...

[email protected]:~# puppet agent -t
Info: Refreshing CA certificate
Info: CA certificate is unmodified, using existing CA certificate
Info: Refreshing CRL
Info: CRL is unmodified, using existing CRL
Info: Using environment 'develop'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Notice: Requesting catalog from puppet-server.example.com:8140 (192.168.0.1)
Notice: Catalog compiled by puppet-server.example.com
Info: Caching catalog for puppet-server.example.com
Info: Applying configuration version 'puppet-mvp1-develop-9ccaed7e023'
Notice: Applied catalog in 2.97 seconds

And those strings writes to the "empty" reports in foreman:

Image Image

Probem is in report.rb script.
It catches only Finished catalog run notice messages.

# skipping catalog summary run messages, we dont want them in Foreman's db
next if log.message =~ /^Finished catalog run in \d+.\d+ seconds$/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions