Coder Social home page Coder Social logo

Comments (12)

dfhawthorne avatar dfhawthorne commented on July 19, 2024

Looks like this is a known bug: nmcli commands fail with: Error: Failed to modify connection: No such method 'Update2' .

Unfortunately, the solution is only available to Red Hat subscribers.

from ansible-ocm12c.

dfhawthorne avatar dfhawthorne commented on July 19, 2024

However, the latest version (2.5) of the NMCLI Module Examples lists the following modules to be installed:

- name: install needed network manager libs
    yum:
      name: '{{ item }}'
      state: installed
    with_items:
      - NetworkManager-glib
      - libnm-qt-devel.x86_64
      - nm-connection-editor.x86_64
      - libsemanage-python
      - policycoreutils-python

The last four (4) listed are all new.

from ansible-ocm12c.

dfhawthorne avatar dfhawthorne commented on July 19, 2024

Except this fails with:

TASK [oracle_gi : install needed network manager libs] *************************
failed: [redfern1.yaocm.id.au] (item=[u'NetworkManager-glib', u'libnm-qt-devel.x86_64', u'nm-connection-editor.x86_64', u'libsemanage-python', u'policycoreutils-python']) => {"changed": false, "item": ["NetworkManager-glib", "libnm-qt-devel.x86_64", "nm-connection-editor.x86_64", "libsemanage-python", "policycoreutils-python"], "msg": "No package matching 'libnm-qt-devel.x86_64' found available, installed or updated", "rc": 126, "results": ["No package matching 'libnm-qt-devel.x86_64' found available, installed or updated"]}

from ansible-ocm12c.

dfhawthorne avatar dfhawthorne commented on July 19, 2024

Confirmed this by running as root on REDFERN1:

yum install libnm-qt-devel.x86_64
Loaded plugins: ulninfo
No package libnm-qt-devel.x86_64 available.

from ansible-ocm12c.

dfhawthorne avatar dfhawthorne commented on July 19, 2024

RPM resource libnm-qt-devel(x86-64) shows 10 RPM -- all for Fedora.

from ansible-ocm12c.

dfhawthorne avatar dfhawthorne commented on July 19, 2024

Removed RPM for list. All other RPMs were installed OK.

Still failed with same error:

TASK [oracle_gi : install needed network manager libs] *************************
changed: [redfern1.yaocm.id.au] => (item=[u'NetworkManager-glib', u'nm-connection-editor.x86_64', u'libsemanage-python', u'policycoreutils-python'])

TASK [oracle_gi : Configure Public LAN Interface] ******************************
fatal: [redfern1.yaocm.id.au]: FAILED! => {"changed": false, "msg": "Error: Failed to modify connection 'eth0': No such method 'Update2'\n", "name": "eth0", "rc": 1}

from ansible-ocm12c.

dfhawthorne avatar dfhawthorne commented on July 19, 2024

Commit 5b240d2 has latest version of networks.yml, but is not imported.

from ansible-ocm12c.

cocampbe avatar cocampbe commented on July 19, 2024

restart NetworkManager

from ansible-ocm12c.

dfhawthorne avatar dfhawthorne commented on July 19, 2024

Still the same error:

TASK [oracle_gi : Configure Public LAN Interface] **********************************************************************************************************************************************************
fatal: [redfern1.yaocm.id.au]: FAILED! => {"changed": false, "msg": "Error: Failed to modify connection 'eth0': No such method 'Update2'\n", "name": "eth0", "rc": 1}

from ansible-ocm12c.

cocampbe avatar cocampbe commented on July 19, 2024

Hmm. I had the same issue after updating to 7u5. The fix was to restart networkmanager service. Maybe you should update the packages again, then try.

from ansible-ocm12c.

dfhawthorne avatar dfhawthorne commented on July 19, 2024

Recoded networks.yml to use the nmcli command instead of the nmcli module.

Resolved through commit 460c6d9 .

from ansible-ocm12c.

dfhawthorne avatar dfhawthorne commented on July 19, 2024

Have create issue #63 to undo this workaround. Testing indicates that this issue no longer exists in Ansible 2.9.2.

from ansible-ocm12c.

Related Issues (20)

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.