Bug #16528
Subnet's Discovery Capsule can point to a deleted proxy
Difficulty:
Triaged:
Description
In foreman db, there is a missing key constraint from subnet.discovery_id to smart_proxies.id. That means, if a subnet refers a Discovery Capsule and I delete the capsule/proxy, no warning is raised.
Add a key constraint similar to e.g. "subnet.tftp_id -> smart_proxies.id".
Related issues
Associated revisions
History
#1
Updated by Pavel Moravec over 6 years ago
- Related to Feature #8514: Add support for requests to smart proxy discovery plugin added
#2
Updated by Lukas Zapletal over 6 years ago
- Project changed from Foreman to Discovery
- Category set to Discovery plugin
#3
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_discovery/pull/307 added
#4
Updated by Lukas Zapletal over 6 years ago
- Assignee set to Lukas Zapletal
#5
Updated by Amit Karsale over 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_discovery|514576e3d3570bc8a405a0eabc4df7a7a950a15f.
#6
Updated by Amit Karsale over 6 years ago
- Target version set to 1.15.6
Fixes #16528 - Added foreign key dependency