Closed m-czernek closed 5 years ago
Weird. Can you post the corresponding play book?
Hmm, this could be a bug in how _entity_spec_helper generates the "flat" entries, but I'd need to check on a real setup and not my phone.
Hah, we don't test idempotency with domains set in https://github.com/theforeman/foreman-ansible-modules/blob/master/tests/test_playbooks/subnet.yml and thats most probably your bug
Nope, added domains and still works for me.
After debugging on IRC, it seems to be the assignment of remote_execution_proxies
that breaks here. Still not sure why.
More digging: rex proxies are not part of the apidoc (https://projects.theforeman.org/issues/19086) so this fails as entries not in the apidoc are dropped from the request.
cc @bagasse for awarenes
SUMMARY
It seems like foreman_subnet is not idempotent. On the first pass, I can create a network. On the second pass, I get an error.
(latest Ansible, latest foreman-ansible-modules, latest Satellite, running on RHEL)
ISSUE TYPE
ACTUAL RESULTS