GithubHelp home page GithubHelp logo

[Bug]: ERROR: Primary key `name` is missing for the resource `lbvserver_servicegroup_binding about ansible-collection-netscaleradc HOT 9 CLOSED

stefanschlipfi avatar stefanschlipfi commented on June 18, 2024
[Bug]: ERROR: Primary key `name` is missing for the resource `lbvserver_servicegroup_binding

from ansible-collection-netscaleradc.

Comments (9)

sumanth-lingappa avatar sumanth-lingappa commented on June 18, 2024 1

weight and servicegroupname are mutually exclusive for lbvserver_servicegroup_binding.
If you need to use weight, you can use servicename parameter instead as below:

      netscaler.adc.lbvserver_servicegroup_binding:
        weight: 1
        name : lb_vs_testlb_443
        servicename: lb_sg_testlb_8443 # NOT `servicegroupname` since `weight` is present

Even with this combination (name and servicename), there was an error during second time running the playbook. This was due to a NITRO bug, which I am tracking internally.

I have given a workaround in the ansible module. So the below anomoly you may expect for lbvserver_servicegroup_binding module:

lbvserver_servicegroup_binding module if weight is present in the playbook-task, the changed flag is always set to true. On the other hand, if weight is not present for this module, the resource is completely IDEMPOTENT.

Below is the man page for bind lbvserver from the NetScaler CLI

> man bind lbvserver 
BIND LB VSERVER(NSCLI)        Citrix Systems Inc.       BIND LB VSERVER(NSCLI)

NAME
       bind lb vserver

SYNOPSIS
       bind lb vserver <name>@ ((<serviceName>@ [-weight <positive_integer>]
       [-order <positive_integer>]) | <serviceGroupName>@ | (-policyName
       <string>@ [-priority <positive_integer>] [-gotoPriorityExpression
       <expression>] [-type <type>] [-invoke (<labelType> <labelName>) ] ) |
       -analyticsProfile <string>@)

from ansible-collection-netscaleradc.

gjonn avatar gjonn commented on June 18, 2024

Try:

name : "lb_vs_testlb_443"
servicegroupname: "lb_sg_testlb_8443"

from ansible-collection-netscaleradc.

stefanschlipfi avatar stefanschlipfi commented on June 18, 2024

Did not work then I got the error Missing required key servicename

from ansible-collection-netscaleradc.

sumanth-lingappa avatar sumanth-lingappa commented on June 18, 2024

@stefanschlipfi, can you provide us the equivalent CLI you would try if you configure this via NSCLI?

Please include the lbvserver as well as servicegroup CLIs as well for the complete commands

from ansible-collection-netscaleradc.

stefanschlipfi avatar stefanschlipfi commented on June 18, 2024

preparation

add lb vserver lb_vs_testlb_443
add serviceGroup lb_sg_testlb_8443 SSL

failing command

bind lb vserver lb_vs_testlb_443 lb_sg_testlb_8443 -weight 1

from ansible-collection-netscaleradc.

sumanth-lingappa avatar sumanth-lingappa commented on June 18, 2024

@stefanschlipfi, can you try with the latest pr merge?

You can install unreleased version as below:

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

from ansible-collection-netscaleradc.

sumanth-lingappa avatar sumanth-lingappa commented on June 18, 2024

@stefanschlipfi, can you please update here?

from ansible-collection-netscaleradc.

stefanschlipfi avatar stefanschlipfi commented on June 18, 2024

Nothing changed, still the same Problem.

from ansible-collection-netscaleradc.

sumanth-lingappa avatar sumanth-lingappa commented on June 18, 2024

You can install the unreleased netscaler.adc ansible collection via the below command:

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

I will keep this issue open for a couple of days till you respond.

from ansible-collection-netscaleradc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.