Comments (4)
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.
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.
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.
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)
- sap_anydb_install_oracle: Include code for Oracle patching HOT 1
- sap_ha_pacemaker_cluster: sap_ha_pacemaker_cluster_hacluster_user_password ignored
- collection: Use `license_file` instead of `license` in `galaxy.yml` HOT 1
- collection: Regression in GitHub workflows after merging PR 610 HOT 13
- sap_storage_setup: not working after 1.2.3 HOT 4
- sap_ha_pacemaker_cluster: user variables overwritten by include_vars_platform.yml
- sap_ha_pacemaker_cluster: RHEL9 resource-agents does not contain cloud RA
- sap_ha_pacemaker_cluster: Verify presence of Resource Agent before executing ha_cluster
- sap_hana_preconfigure: Catch SELinux disabled HOT 5
- sap_swpm: does not show the ouptut of install script HOT 12
- sap_hypervisor_node_preconfigure: Role not working when using the Galaxy collection HOT 1
- collection: Fix ansible-test sanity errors HOT 2
- collection/workflows: Run ansible-test sanity for each pull request HOT 2
- sap_*_preconfigure: package_facts HOT 5
- workflow: remove github-workflow-test branch
- sap_general_preconfigure: Wrong remediation message if variable 'sap_domain' is undefined or empty.
- sap_general_preconfigure: Use the role sap_maintain_etc_hosts - RHEL systems HOT 1
- sap_ha_pacemaker_cluster: Error when trying to create resource definition (NetWeaver common filesystem) HOT 2
- sap_maintain_etc_hosts: Wrong assert message HOT 1
- sap_swpm: prepare_software changes ownership of files every time it runs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from community.sap_install.