Skip to content

neutron_sec_group can not create the security group of the same name for 2+ tenants #37

@xsuchy

Description

@xsuchy

I have this task:

  - name: "Create 'ssh-anywhere' security group"
    neutron_sec_group:
      login_username: "admin"
      login_password: "{{ ADMIN_PASS }}"
      login_tenant_name: "admin"
      auth_url: "https://{{controller_hostname}}:35357/v2.0"
      state: "present"
      name: 'ssh-anywhere'
      description: "allow ssh from anywhere"
      tenant_name: "{{item}}"
      rules:
        - direction: "ingress"
          port_range_min: "22"
          port_range_max: "22"
          ethertype: "IPv4"
          protocol: "tcp"
          remote_ip_prefix: "0.0.0.0/0"
    with_items:
      - cloudintern
      - cloudsig
      - copr
      - coprdev
      - infrastructure
      - persistent
      - pythonbots
      - qa
      - scratch
      - transient

Which should create security group 'ssh-anywhere' for all tenants. However the result is only one security group of this name and created for "cloudintern" tenant.
I would expect that after running this there would be 10 security groups of this name. Each one for each tenant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions