Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

panos_object - Error: Parent device group 'Shared' is not recognised as valid device group #44

Closed
mattspera opened this issue Nov 20, 2017 · 11 comments · Fixed by PaloAltoNetworks/pan-os-python#109
Assignees
Labels
Projects

Comments

@mattspera
Copy link

failed: [10.x.x.x -> localhost] (item={u'name': u'test4', u'device_group': u'Shared'}) => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"address": null,
"address_type": "ip-netmask",
"addressgroup": null,
"addressobject": null,
"api_key": null,
"color": null,
"description": null,
"destination_port": null,
"devicegroup": "Shared",
"dynamic_value": null,
"ip_address": "10.x.x.x",
"operation": "add",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"protocol": null,
"servicegroup": null,
"serviceobject": null,
"services": null,
"source_port": null,
"static_value": null,
"tag_name": "test4",
"username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
}
},
"item": {
"device_group": "Shared",
"name": "test4"
},
"msg": "'Shared' device group not found in Panorama. Is the name correct?"
}

@niemesrw
Copy link

Ah yes, I'm seeing this as well. Upvoting for a fix please.

@btorresgil
Copy link
Member

Have you tried naming the devicegroup 'shared' (all lower case)?

@niemesrw
Copy link

niemesrw commented Mar 13, 2018 via email

@niemesrw
Copy link

FWIW, when I put a valid device group in the playbook it works just fine:

changed: [ussd-prd-pano01] => {
"changed": true,
"invocation": {
"module_args": {
"address": "35.154.2.119",
"address_type": "ip-netmask",
"addressgroup": null,
"addressobject": "netskope-proxy-35.154.2.119",
"api_key": null,
"color": null,
"description": "NetSkope Proxy Address 35.154.2.119",
"destination_port": null,
"devicegroup": "San Diego HQ",
"dynamic_value": null,
"ip_address": "ussd-prd-pano01",
"operation": "update",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"protocol": null,
"servicegroup": null,
"serviceobject": null,
"services": null,
"source_port": null,
"static_value": null,
"tag_name": null,
"username": "svc_ansible"
}
},
"msg": "Object 'netskope-proxy-35.154.2.119' successfully updated."
}

@btorresgil
Copy link
Member

Thanks for trying. Taking a look at this.

shinmog added a commit to PaloAltoNetworks/pan-os-python that referenced this issue Mar 14, 2018
shinmog added a commit to PaloAltoNetworks/pan-os-python that referenced this issue Mar 16, 2018
* Fixes #96 - Fixes #84 - Fixes PaloAltoNetworks/ansible-pan#44

* codacy fixes + updating childtypes

* addressing feedback and fixing refreshall for template (children are retrieved)

* Adding template and description params to panorama commits
@shinmog
Copy link
Collaborator

shinmog commented Mar 16, 2018

This should work properly after updating pandevice to 0.6.0 or later.

@dannypetrov
Copy link

Same error applies for panos_security_rule. I have a devicegroup called "Shared" which is shared among all firewalls. When I try to apply a shared rule I get exactly the same error :/

@mcanetto
Copy link

I haven't tried with the panos_security_rule, but with panos_object I got this to work by leaving the devicegroup off of the playbook entirely. If it isn't specified it seems Panorama assumes Shared.

@shinmog
Copy link
Collaborator

shinmog commented Jun 22, 2018

That's correct: this is because with config items that go into a vsys, on a firewall the default is to put it in vsys1, but on Panorama the default is the shared scope.

@btorresgil
Copy link
Member

Closed by a different repo, re-opening.

@btorresgil btorresgil reopened this Jul 5, 2018
@shinmog shinmog moved this from To Do to Done in V2.0.0 Sep 27, 2018
@skathiresan-hw
Copy link

when you config for a firewall, by default it goes to vsys1, is it possible to create a shared object in a mulitvsys environment?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
No open projects
V2.0.0
  
Done
8 participants