Service for comparing RHEL Oval with ALMA Oval/Errata Security Advisories
Go to file
2023-01-19 22:15:42 +01:00
albs_oval_errata_diff Post-review fixes 2023-01-19 22:13:04 +01:00
.gitignore ALBS-931 Added integration with AlmaLinux Build System (errata feed) 2023-01-19 13:17:42 +01:00
albs_oval_errata_diff.py Removed unnecessary log handlers 2022-12-30 16:25:42 +01:00
config.default.yml ALBS-931 Added integration with AlmaLinux Build System (errata feed) 2023-01-19 13:17:42 +01:00
README.md ALBS-915: added support for Bug/Enhancement Advisories 2023-01-11 17:22:16 +01:00
releases.txt added spacing in releases.txt 2023-01-19 22:15:42 +01:00
requirements.txt added Readme ans requirements.txt 2022-12-29 17:00:58 +01:00

albs-oval-errata-diff

Service compares RHEL Oval with AlmaLinux Oval/Errata and stores differences. Differences are available via HTTP GET request in form of JSON

Components

comparer

Downloads Oval/Errata files and generates differences report

webserver

Publishes JSON report via aiohttp webserver

Configuration

check config.default.yml for references

Requirements

  • Python 3.9
  • pip
  • virtualenv

Installation

  1. Checkout code
    $ git clone git@git.almalinux.org:kzhukov/albs-oval-errata-diff.git
    
  2. Create and initialize virtual enviroment
    $ virtualenv -p python3.9 venv && source venv/bin/activate
    
  3. Install requirements
    $ pip install -r requirements.txt
    
  4. Create config file using config.default.yml and start service with albs_oval_errata_diff.py script
    $ python albs_oval_errata_diff.py config.yml
    2022-12-29 16:20:11,139 INFO start Trying to load diff file from disk
    2022-12-29 16:20:11,142 INFO start Diff file was loaded
    2022-12-29 16:20:11,142 INFO start Starting diff_checker in background
    2022-12-29 16:20:11,143 INFO diff_checker Start comparing
    2022-12-29 16:20:11,143 INFO start Starting webserver
    2022-12-29 16:20:11,144 INFO comparer_run Processing release 8
    2022-12-29 16:20:11,148 INFO comparer_run downloading rhel oval
    ======== Running on http://127.0.0.1:3001 ========
    (Press CTRL+C to quit)
    2022-12-29 16:20:12,142 INFO comparer_run parsing rhel oval
    2022-12-29 16:20:13,154 INFO comparer_run downloading alma oval
    2022-12-29 16:20:16,516 INFO comparer_run parsing alma oval
    2022-12-29 16:20:17,695 INFO comparer_run downloading alma errata
    2022-12-29 16:20:28,894 INFO comparer_run parsing alma errata
    2022-12-29 16:20:29,143 INFO comparer_run comparing rhel and alma
    2022-12-29 16:20:29,233 INFO comparer_run Processing release 9
    2022-12-29 16:20:29,234 INFO comparer_run downloading rhel oval
    2022-12-29 16:20:29,599 INFO comparer_run parsing rhel oval
    2022-12-29 16:20:29,716 INFO comparer_run downloading alma oval
    2022-12-29 16:20:31,033 INFO comparer_run parsing alma oval
    2022-12-29 16:20:31,165 INFO comparer_run downloading alma errata
    2022-12-29 16:20:33,542 INFO comparer_run parsing alma errata
    2022-12-29 16:20:33,601 INFO comparer_run comparing rhel and alma
    2022-12-29 16:20:33,621 INFO diff_checker Finished comparing, updating diff dict
    2022-12-29 16:20:33,622 INFO diff_checker Saving results to disk
    2022-12-29 16:20:33,630 INFO diff_checker Done
    2022-12-29 16:20:33,630 INFO diff_checker Finished comparing, go to sleep for 30 minutes