Project

General

Profile

Actions

Bug #24235

closed

Discovery rules should automatically pick the next available priority if not specified.

Added by roman plevka over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Discovery plugin
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

apidoc says the dsicovery_rule is an optional parameter:

discovery_rule[priority]
optional , nil allowed

-however, foreman automatically puts 0 as a priority which causes conflicts on multiple POST requests with no priority specified.

I think it would be nice if foreman automatically chose (or suggested for UI dialog) the next available priority.

Actions #1

Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Marek Hulán
  • Pull request https://github.com/theforeman/foreman_discovery/pull/445 added
Actions #2

Updated by The Foreman Bot over 6 years ago

  • Pull request https://github.com/theforeman/foreman_discovery/pull/446 added
Actions #3

Updated by Jan Hutař over 6 years ago

Bug reported as https://bugzilla.redhat.com/show_bug.cgi?id=1600621 - for some reason, I can not add it as "Bugzilla link" - it keeps saying me "Bugzilla link is invalid".

Actions #4

Updated by Lukas Zapletal over 6 years ago

  • Target version set to Discovery Plugin 12.0.2
  • Pull request deleted (https://github.com/theforeman/foreman_discovery/pull/445)
  • Fixed in Releases Discovery Plugin 12.0.2 added

I am aligning this bug into 12.0.2 as I think it is important one.

Actions #5

Updated by Marek Hulán over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Lukas Zapletal over 6 years ago

  • Bugzilla link set to 1600621

Jan, you need to enter just "1600621" into the RM field.

Actions

Also available in: Atom PDF