Actions
Bug #37711
closednic_managed factory can create an IP outside of its subnet
Description
A test has been failing intermittently recently. This is using the `nic_managed` factory:
https://github.com/theforeman/foreman/blob/6aac916fb183f47596e8d543756faac27750a21e/test/factories/host_related.rb#L80-L92
Critical line is that it tries to add an IP from a the subnet as a sequence. My theory is that we have enough tests that sometimes it creates an IP outside of the range. IP in question is `10.10.11.39` which is indeed outside of `10.10.10.0/24`. It somehow needs to take that into account. Probably with a modulo.
Updated by The Foreman Bot 5 months ago
- Status changed from New to Ready For Testing
- Assignee set to Ewoud Kohl van Wijngaarden
- Pull request https://github.com/theforeman/foreman/pull/10263 added
Updated by Ewoud Kohl van Wijngaarden 4 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|451ebb1a36e095695af79d093767ca9af6324c6d.
Updated by Ewoud Kohl van Wijngaarden 4 months ago
- Triaged changed from No to Yes
Actions