Troubleshooting
This guide provides solutions to common issues you might encounter when using the SCM Ansible Collection.
Authentication Issues
Symptom: "Authentication Failed" Error
If you receive an authentication error when running playbooks:
- Verify your credentials:
-
Check for API timeouts - SCM authentication tokens expire after 30 minutes of inactivity
-
Ensure your tenant ID is correct
-
Try with explicit credentials in your playbook (for testing only):
- name: Test connection
cdot65.scm.address:
username: "your-username"
password: "your-password"
tenant: "your-tenant-id"
name: "test-connection"
folder: "SharedFolder"
ip_netmask: "192.168.1.1/32"
register: result
ignore_errors: true
- name: Debug connection result
debug:
var: result
Module Execution Issues
Symptom: Module Returns Error About Missing Object
If a module reports a missing object (like a folder or tag that you believe exists):
- Check the folder path is correct (SCM is case-sensitive)
- Verify you have permissions to access the object
- Try running with increased verbosity:
Symptom: Changes Not Taking Effect
If your playbook runs successfully but changes aren't reflected in SCM:
- Remember to commit changes - many modules only stage changes:
- Check if the changes are in a candidate configuration not yet pushed:
- name: Push candidate configuration
cdot65.scm.push_config:
description: "Push changes to firewall"
Debug Mode
Enable debug mode to get detailed information:
- name: Get address objects with debug
cdot65.scm.address_info:
folder: "SharedFolder"
debug: true
register: addresses
Common Error Messages
"Error 403: Forbidden"
- You don't have permission to perform this operation
- Check your role assignment in SCM
"Error 404: Not Found"
- The API endpoint or resource doesn't exist
- Check folder paths, object names, and API versions
"Error 400: Bad Request"
- The request data is invalid
- Check required parameters and data formats
SDK Version Mismatch
If you see errors about missing methods or unexpected behavior:
- Check your SDK version:
- Update to the latest version:
Getting Help
If you're still experiencing issues:
- Check the GitHub Issues for similar problems and solutions
- Submit a detailed bug report with:
- Collection version (
ansible-galaxy collection list
) - SDK version (
pip show pan-scm-sdk
) - Python version (
python --version
) - Ansible version (
ansible --version
) - Full error output (with
-vvv
flag) - Steps to reproduce the issue