Giter VIP home page Giter VIP logo

toolkit's People

Contributors

adammack2007 avatar anshulbehl avatar dpullman-emergent avatar fancytyphoonkitty avatar gdykeman avatar ipvsean avatar nickarellano avatar ramzihusein avatar sheeshkebab avatar termlen0 avatar xforce-redhat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

toolkit's Issues

For Network Report Playbook - Task - Create HTML Report - fails with error dict object' has no attribute 'static_routes'

From the "Ansible Automation Platform 2 Networking Automation Workshop"
"Network-Report" Jobs (which calls playbooks/network_report_legacy.yml) fail to generate a report
Play Recap shows an error for the task:

TASK [../roles/build_report_container : Create HTML report] ********************

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

Attach the Debug output for the execution
job_3.txt

Exercise 6. awx.awx not found error

When running the network_backup.yml playbook. we get the following error.

Identity added: /tmp/awx_5_sbu11i59/artifacts/5/ssh_key_data (/tmp/awx_5_sbu11i59/artifacts/5/ssh_key_data)
ERROR! couldn't resolve module/action 'awx.awx.tower_job_template'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/tmp/awx_5_sbu11i59/project/network_backup.yml': line 54, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
    - name: create restore job template
      ^ here

The playbook is here https://github.com/network-automation/toolkit/blob/master/network_backup.yml

Exercise 6 Step 3 can't find backup.j2

Workshop Name: 9cvpk

When running playbooks/network_backup.yml

TASK [Create restore job template] *********************************************
fatal: [rtr2]: FAILED! => {"changed": false, "msg": "Failed to update survey: Field 'spec' is missing from survey spec."}
{
"msg": "Failed to update survey: Field 'spec' is missing from survey spec.",
"invocation": {
"module_args": {
"name": "Network Automation - Restore",
"job_type": "run",
"inventory": "Workshop Inventory",
"project": "Workshop Project",
"playbook": "playbooks/network_restore.yml",
"credential": "Workshop Credential",
"survey_enabled": true,
"survey_spec": {
"changed": true,
"backup_path": "/tmp/rtr2.txt",
"date": "2023-08-22",
"time": "20:06:27",
"failed": false
},
"validate_certs": false,
"execution_environment": "Default execution environment",
"controller_host": "student1.9cvpk.example.opentlc.com",
"controller_username": "admin",
"controller_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"controller_oauthtoken": "",
"verbosity": 0,
"force_handlers": false,
"timeout": 0,
"job_slice_count": 1,
"state": "present",
"controller_config_file": null,
"new_name": null,
"copy_from": null,
"description": null,
"organization": null,
"vault_credential": null,
"credentials": null,
"custom_virtualenv": null,
"instance_groups": null,
"forks": null,
"limit": null,
"extra_vars": null,
"job_tags": null,
"skip_tags": null,
"start_at_task": null,
"use_fact_cache": null,
"host_config_key": null,
"ask_diff_mode_on_launch": null,
"ask_variables_on_launch": null,
"ask_limit_on_launch": null,
"ask_tags_on_launch": null,
"ask_skip_tags_on_launch": null,
"ask_job_type_on_launch": null,
"ask_verbosity_on_launch": null,
"ask_inventory_on_launch": null,
"ask_credential_on_launch": null,
"ask_execution_environment_on_launch": null,
"ask_forks_on_launch": null,
"ask_instance_groups_on_launch": null,
"ask_job_slice_count_on_launch": null,
"ask_labels_on_launch": null,
"ask_timeout_on_launch": null,
"become_enabled": null,
"diff_mode": null,
"allow_simultaneous": null,
"scm_branch": null,
"ask_scm_branch_on_launch": null,
"webhook_service": null,
"webhook_credential": null,
"labels": null,
"notification_templates_started": null,
"notification_templates_success": null,
"notification_templates_error": null,
"prevent_instance_group_fallback": null
}
},
"_ansible_no_log": null,
"changed": false
}

get error when trying to run report

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

Cannot create /backup/ directory because of permission denied error in network_backup.yml

The task Create a directory if it does not exist has been failed because of there is no become: yes option.

TASK [Create a directory if it does not exist] *
fatal: [rtr2 -> backup-server(54.169.134.223)]: FAILED! => {"changed": false, "msg": "There was an issue creating /backup as requested: [Errno 13] Permission denied: b'/backup'", "path": "/backup/"}

When I add become into the playbook, It worked without issue:

    - name: Create a directory if it does not exist
      ansible.builtin.file:
        path: /backup/
        state: directory
      delegate_to: backup-server
      run_once: true
      become: yes

toolkit/roles/backup/tasks/junos.yml fails to execute

TASK [../roles/backup : backup junos configuration] ****************************
fatal: [rtr3]: FAILED! => {"changed": false, "module_stderr": "/bin/sh: sudo: command not found\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 127}

This is from networking ex6 execution. When escalate priv is enabled, this error is shown

toolkit/playbooks/network_backup.yml fails when creating directory

TASK [Create a directory if it does not exist] *********************************
fatal: [rtr2 -> backup-server(3.234.154.255)]: FAILED! => {"changed": false, "msg": "There was an issue creating /backup as requested: [Errno 13] Permission denied: b'/backup'", "path": "/backup/"}

Task code:
- name: Create a directory if it does not exist
ansible.builtin.file:
path: /backup/
state: directory
delegate_to: backup-server
run_once: true

This is from the network exercise 6 execution, I believe it is due to the absolute path, need to escalate privileges, which is not stated on the documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.