systemd_networkd ansible role | config_template resolution errors

Bug #1961621 reported by senorsmile
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Unassigned

Bug Description

Trying to use the role at https://github.com/openstack/ansible-role-systemd_networkd. Per the instructions, I have installed the https://github.com/openstack/openstack-ansible-plugins as roles/plugins and ensured that ANSIBLE_FILTER_PLUGINS, ANSIBLE_ACTION_PLUGINS, and ANSIBLE_LIBRARY are set to the appropriate locations.

The error I see when trying to run is:

ERROR! couldn't resolve module/action 'openstack.config_template.config_template'. This often indicates a misspelling, missing collection, or incorrect module path.

Doing a quick search in the plugins/ folder yields

$ grep -irn config_template
releasenotes/notes/config-template-move-a0f08aff8e54f62f.yaml:4: The ``config_template`` action module has now been moved into its own git

So, apparently the instructions aren't up to date on how to use this role? Are the dependencies too deep and complicated?

Revision history for this message
Dmitriy Rabotyagov (noonedeadpunk) wrote :

Hi

config_template has been used as collection on the master branch. Now it's not required to set ANSIBLE_FILTER_PLUGINS and ANSIBLE_ACTION_PLUGINS, but just install https://opendev.org/openstack/ansible-config_template using ansible-galaxy from git.

Currently we haven't published module in galaxy, so either local installation or from git is needed.

You can check example of how we defined it in requirements.yml that is being passed to ansible-galaxy:
https://opendev.org/openstack/openstack-ansible/src/branch/master/ansible-collection-requirements.yml#L5-L7

You can then run ansible-galaxy collection install -r ansible-collection-requirements.yml.

Yes, we should update doc to mention how to install required module.

Changed in openstack-ansible:
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ansible-role-systemd_networkd (master)
Changed in openstack-ansible:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ansible-role-systemd_service (master)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ansible-role-systemd_mount (master)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ansible-role-systemd_networkd (master)

Reviewed: https://review.opendev.org/c/openstack/ansible-role-systemd_networkd/+/841691
Committed: https://opendev.org/openstack/ansible-role-systemd_networkd/commit/09c629cf52153c5f572f34248914e4bee331f2a8
Submitter: "Zuul (22348)"
Branch: master

commit 09c629cf52153c5f572f34248914e4bee331f2a8
Author: Dmitriy Rabotyagov <email address hidden>
Date: Fri May 13 10:37:29 2022 +0200

    Update documentation on role requirements

    In README file we're refferencing plugins repo for installing
    config_template from it. However, we're using module from it's
    collection.
    We're updating documentation along with renaming a-r-r to more common
    requirements.yml and adjusting rc file
    to drop not required overrides from there.

    Change-Id: I2329c2744348a8d704fe36f81e4ad43602c39541
    Closes-Bug: #1961621

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ansible-role-systemd_mount (master)

Reviewed: https://review.opendev.org/c/openstack/ansible-role-systemd_mount/+/841694
Committed: https://opendev.org/openstack/ansible-role-systemd_mount/commit/7fc88179dcb234a64b96837689f64c6cbfa94cfd
Submitter: "Zuul (22348)"
Branch: master

commit 7fc88179dcb234a64b96837689f64c6cbfa94cfd
Author: Dmitriy Rabotyagov <email address hidden>
Date: Fri May 13 10:54:09 2022 +0200

    Update documentation on role requirements

    In README file we're refferencing plugins repo for installing
    config_template from it. However, we're using module from it's
    collection.
    We're updating documentation along with renaming a-r-r to more common
    requirements.yml and adjusting rc file
    to drop not required overrides from there.

    Change-Id: I7bf4c0fca678fd50be2dc041fe16efcc67c44fa5
    Closes-Bug: #1961621

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.