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

get error when trying to run report #44

Open
acdbrn69 opened this issue Sep 27, 2023 · 4 comments
Open

get error when trying to run report #44

acdbrn69 opened this issue Sep 27, 2023 · 4 comments
Assignees

Comments

@acdbrn69
Copy link

I took your code on creating a report and am trying to run it on my system, I have Cisco 9500's and all i really did was change the hosts to my 9500 and the other to one of my linux VMs that runs Rocky 8.8 I made sure it was setup with SELinux as well as podman, I run my PB from AAP and it throws an error at the TASK [../roles/build_report_container : "Create HTML report" and I have looked threw the code and cannot find any problems I would say I an and pretty good at Ansible and AAP but networking with this is new to me, anyhow I attached my output maybe you could point me in the right direction
job_10438.txt

I really appreciate your help with this

@IPvSean IPvSean self-assigned this Oct 6, 2023
@IPvSean
Copy link
Member

IPvSean commented Oct 6, 2023

investigating...

the error is

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: 'dict object' has no attribute 'network'
fatal: [docker-ansible]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'network'"}```

@IPvSean
Copy link
Member

IPvSean commented Oct 6, 2023

In my jinja2 code... I never really thought about this... I have this loop->

{% for network_switch in groups['network']|sort %}

I should probably make it more ubiquitous and use the groups['all']... but for now, can you try just creating a group called network and put a couple network devices in there? I think that is what your issue is

@acdbrn69
Copy link
Author

acdbrn69 commented Oct 6, 2023

Hi Sean ok so I did what you said i put a network group in but I get a new failure
job_10661.txt

I do appreciate all your help

Bill

@IPvSean
Copy link
Member

IPvSean commented Oct 26, 2023

hey @acdbrn69 , try again, there has been a PR #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants