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

[Bug]: "ERROR: Primary key serverip is missing for the resource ntpserver" #322

Closed
gjonn opened this issue Dec 18, 2023 · 1 comment
Closed
Assignees
Labels

Comments

@gjonn
Copy link

gjonn commented Dec 18, 2023

Summary

When trying to create a ntpserver using only the hostname I get the error:

ERROR: Primary key serverip is missing for the resource ntpserver

But then if you provide it:
'errorcode': 1092, 'message': 'Arguments cannot both be specified [serverName, serverIP]', 'severity': 'ERROR'

Issue Type

Bug Report

Component Name

netscaler.adc.ntpserver

Python Version

$ python --version # or python3 --version
Python 3.10.12

Ansible Version

$ ansible --version
ansible [core 2.15.5]

Ansible Configuration

$ ansible-config dump --only-changed

netscaler.adc Collection Version

$ ansible-galaxy collection list netscaler.adc
netscaler.adc 2.1.0

Target NetScaler Version

> show ns version

Equivalent NetScaler CLI Command

Steps to Reproduce

- name: NTP Configuration
  delegate_to: localhost
  netscaler.adc.ntpserver:
    nsip: "{{ inventory_hostname }}"
    servername: 'pool.ntp.org'
    preferredntpserver: "YES"
    state: present

Expected Results

Add an NTP server by dns hostname only

Actual Results

Additioinal Notes

No response

@sumanth-lingappa
Copy link
Collaborator

This is fixed as part of pull request #338

You can wait for the next release, or, download the latest unreleased ansible collection via below command

ansible-galaxy collection install "git+https://github.com/netscaler/ansible-collection-netscaleradc.git" --force

Refer: https://github.com/netscaler/ansible-collection-netscaleradc/blob/main/README.md#via-github-to-have-the-latest-updated-which-are-yet-to-be-released-in-ansible-galaxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants