Giter Club home page Giter Club logo

Comments (4)

rhmk avatar rhmk commented on August 18, 2024 1

Everything works as designed. The follwowing task before a reboot is fixing the issue:

    - name: ensure network configuration is persistent
      include_role:
         name: rhel-system-roles.network
      vars:
         network_provider: nm
         network_connections:
           - name: "{{ ansible_default_ipv4.alias }}"
             mac: "{{ ansible_default_ipv4.macaddress }}"
             interface_name: "{{ ansible_default_ipv4.interface }}"
             type: ethernet
             ip:
                     dhcp4: true
                     dhcp4_send_hostname: true 

It will create a file in /etc/sysconfig/network-scripts to make the connection persistent.
For production with multiple interfaces, it would be a good practice to run the network role anyway after VM creation

So a possible probe for a warning in the playbook network section could be no /etc/sysconfig/network-scripts/ifcfg-* files
or run a " nmcli c s " command and check if a ifcfg-$1 for existing NW config do exist. If not throw a warning or error

from community.sap_install.

juestrad avatar juestrad commented on August 18, 2024

It's not affecting only to the GCP VMs, I was able to reproduce the issue in a generic VM and I had the same behavior of the VM.

from community.sap_install.

rhmk avatar rhmk commented on August 18, 2024

I saw the problem with GCP first., but it is likely to occur on any cloud or virtualization environment.
The issue is based on the fact that NetworkManager in client mode (default) tries to discover an IP address on any available interface. This is a good behavior for laptops or cloud images, where you do not know, which interfaces exist or which will be connected at boot time.
But this is an unwanted behavior for servers where you have a well-defined environment. The package NetworkManager-config-server disables this functionality. It will be installed as a member of the server package group during the sap-preconfigure script.
For servers, you should use the network system role prior to running the sap prep playbooks to get a proper and well-defined network setup, or if it is just a demo system you can use the above configuration to persist the DHCP connection on the found interface.

from community.sap_install.

rhmk avatar rhmk commented on August 18, 2024

I don't think this has to be fixed in the SAP preconfigure roles because it is a task that is typically performed as part of the initial network configuration. The network system role can be used for exactly this purpose.
Nonetheless, the behavior as such should be well documented.

from community.sap_install.

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.