Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nios_zone] Warnings when using zone_format parameter #852

Closed
DonEstefan opened this issue Sep 2, 2020 · 3 comments · Fixed by #1223
Closed

[nios_zone] Warnings when using zone_format parameter #852

DonEstefan opened this issue Sep 2, 2020 · 3 comments · Fixed by #1223
Labels
bug This issue/PR relates to a bug module module needs_triage net_tools plugins plugin (any type)

Comments

@DonEstefan
Copy link

SUMMARY

Using zone_format: "FORWARD" in the "nios_zone" module will cause a strange warning:
[WARNING]: Both option zone_format and its alias zone_format are set.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

nios_zone

ANSIBLE VERSION
 ansible 2.9.10
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Apr  2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
OS / ENVIRONMENT

CentOS Linux release 7.8

STEPS TO REPRODUCE
- name: "create Forward Zone"
  connection: local
  nios_zone:
    provider: "{{ grid_connector }}"
    restart_if_needed: true
    name:                   "{{ zone.fqdn }}"
    ns_group:               "{{ zone.ns_group}}"
    view:                   "{{ zone.view|default('default') }}"
    state:                  "{{ zone.state|default('present') }}"
    zone_format:            "{{ zone.zone_format|default('FORWARD') }}"
EXPECTED RESULTS
ACTUAL RESULTS

playbook works as expected but gives a strange warning:

[WARNING]: Both option zone_format and its alias zone_format are set.
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot ansibullbot added affects_2.10 bug This issue/PR relates to a bug module module needs_triage net_tools plugins plugin (any type) labels Sep 2, 2020
@zjpeterson
Copy link
Contributor

I get warnings like this when I use nios_fixed_address as well (on 2.9.15).

Task:

- name: make a host record
  nios_fixed_address:
    name: my-record-4.example.com
    ipaddr: 192.168.100.4
    network: 192.168.100.0/24
    mac: 00:00:00:00:00:00
    provider:
      host: nios.example.com
      username: admin
      password: infoblox
      validate_certs: no

Output:

TASK [make a host record] **************************************************************************************************************
[WARNING]: Both option ipaddr and its alias ipaddr are set.
[WARNING]: Both option mac and its alias mac are set.
[WARNING]: Both option network and its alias network are set.
ok: [localhost]

Same behavior, works as expected, but throwing warnings about aliases. Seems to me that aliases are set in the module code when they shouldn't be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module needs_triage net_tools plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants