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 Deletes identical record in secondary View #47531

Closed
coreywan opened this issue Oct 23, 2018 · 4 comments
Closed

NIOS Deletes identical record in secondary View #47531

coreywan opened this issue Oct 23, 2018 · 4 comments
Assignees
Labels
affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. infoblox Infoblox NIOS module This issue/PR relates to a module. net_tools Net-tools category networking Network category support:certified This issue/PR relates to certified code.

Comments

@coreywan
Copy link
Contributor

SUMMARY

When testing functionality of the nios_cname_record module, one of my team members noticed that if you want to apply the same CNAME record into two or more views, it will remove the previous CNAME record from the other DNS view. In our case, we want to have a CNAME record present in our External view, and Internal DNS View.

Looking through the code, it looks like this will be an issue for all DNS record types except for the HOST record which has this built in to the module util.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

nios_cname_record

ANSIBLE VERSION
ansible 2.7.0
  config file = /Users/wanlessc/innovate/tmp/ansible.cfg
  configured module search path = [u'/Users/wanlessc/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/wanlessc/miniconda2/envs/ansible2.7/lib/python2.7/site-packages/ansible
  executable location = /Users/wanlessc/miniconda2/envs/ansible2.7/bin/ansible
  python version = 2.7.15 |Anaconda, Inc.| (default, May  1 2018, 18:37:05) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]
CONFIGURATION

OS / ENVIRONMENT
STEPS TO REPRODUCE
    - name: Creates record in internal view
      nios_cname_record:
        canonical: hostrec.domain.com
        name: coreytest.domain.com
        view: Internal
        provider: "{{provider}}"

    - name: Creates record in external view (and is deleting the record in the Internal view)
      nios_cname_record:
        canonical: hostrec.domain.com
        name: coreytest.domain.com
        view: External
        provider: "{{provider}}"
EXPECTED RESULTS

Create two DNS Records. One in the Internal View, and one in the External View

ACTUAL RESULTS

@ansibot
Copy link
Contributor

ansibot commented Oct 23, 2018

Hi @coreywan, thank you for submitting this issue!

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Oct 23, 2018

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

@ansibot
Copy link
Contributor

ansibot commented Oct 23, 2018

@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. infoblox Infoblox NIOS module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. net_tools Net-tools category networking Network category support:certified This issue/PR relates to certified code. labels Oct 23, 2018
@jborean93 jborean93 removed the needs_triage Needs a first human triage before being processed. label Oct 26, 2018
@justjais
Copy link
Contributor

fix for the issue was raised in PR ##48859 and is merged in devel, also the contributor has raised a PR having unit test for the cname_record. So, closing this respective bug and will keep an eye on the PR #47535 as it's waiting for nios_container update which will ultimately resolve the shippable errors the PR is having and can be merged

@ansible ansible locked and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. infoblox Infoblox NIOS module This issue/PR relates to a module. net_tools Net-tools category networking Network category support:certified This issue/PR relates to certified code.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants