Skip to content

Long-running import jobs reset their own config #3071

Description

@Al2Klimov

How to reproduce

  1. Install Fedora 42
  2. Apply https://github.com/Al2Klimov/ansible-icinga-fedora
  3. dnf install nmap
  4. git clone https://github.com/Thomas-Gelf/icingaweb2-module-nmap.git /usr/share/icingaweb2/modules/nmap
  5. icingacli mod en nmap
  6. Add nmap import source
  7. Add a job for it to run regularly, set "run import" to no
  8. Wait until ps -efH shows a /usr/bin/nmap -sn 10.27.0.0/16
  9. In the job, set "run import" to yes
  10. Reload the page to make sure you properly did step 9
  11. Wait until the namap(1) process from step 8 finishes
  12. Reload the job config page from step 10 again

Result: "run import" is magically set to no

nmap import source

  • Key column: host
  • Subnet: 10.27.0.0/16

Modifier

  • Property: host
  • Modifier: Skip row if...

Workaround

  1. Disable the job
  2. Wait for it to finish
  3. Re-configure "run import"

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