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

Listing of Commit Locks failing with "vsys not provided" #88

Open
arusso opened this issue May 2, 2022 · 0 comments
Open

Listing of Commit Locks failing with "vsys not provided" #88

arusso opened this issue May 2, 2022 · 0 comments
Labels

Comments

@arusso
Copy link

arusso commented May 2, 2022

Describe the bug

When we updated to PanOS 9.1.x we found that the ability to list commit locks was broken -- we get the following error message:

Failed to list config locks. vsys not provided

Enabling debugging, we can see that the vsys is properly being set to shared. The following debugging shows this actually only occurs when we try and get commit locks:

❯ go run . locks list
Password:
2022/05/02 11:42:10 (op) show system info
2022/05/02 11:42:11 (op) getting plugin info
2022/05/02 11:42:11 vsys: shared
2022/05/02 11:42:11 (op) getting config locks for scope "shared"
2022/05/02 11:42:12 (op) getting commit locks for scope "shared"
2022/05/02 11:42:12 Error retrieving commit locks: Failed to list config locks. vsys not provided

Comparing the ConfigLocks and ComitLocks source reveals that some 9.1.0+ logic was not implemented for CommitLocks.

Expected behavior

We can retrieve locks successfully.

Current behavior

Unable to retrieve locks, get error about vsys not being provided.

Possible solution

Implement 9.1.0+ logic into the CommitLocks function, similar to the ConfigLocks function.

Steps to reproduce

  1. Create a PAN Client
  2. Try and run CommitLocks("shared")

Context

Your Environment

  • Version used: 9.1.13-h3
  • Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3):
  • Operating System and version (desktop or mobile):
  • Link to your project:
@arusso arusso added the bug label May 2, 2022
@arusso arusso changed the title Listing of Locks failing with "vsys not provided" Listing of Commit Locks failing with "vsys not provided" May 2, 2022
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

1 participant