Comments (11)
This proposal will not work in that we will probably not assign the address to the expected interface, unless on the backend that doesn't matter.
Example:
When the config file specifies eth0 and based on the physical connection of the card this interface has access only to a network 10.260.10.0, to stick with the example, there is no guarantee that this network device is actually assigned the "eth0" name on the system. Names are assigned based on the order of discovery, or by using the predictable [1] names.
If we want to, and I suspect we need to, guarantee that the "right" device gets the "right" IP address as provided in the config file then we have to use predictable device names. Which is not a problem as we know the machine configuration w.r.t. network devices and where they show up in the device tree ahead of time.
This implies that the config would specify something like this:
interface: enp0s20u2
[1] https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
from azure-li-services.
It appears that the interfaces that are used don't matter. Even though six NICs are exposed to the O/S, I believe there are only two networking cables to a blade chassis.
Here's the message I got back from our operations team:
We have total six Network Interfaces those Interfaces are virtual NICβs Created in Cisco UCS.
Assigning IP to Any Interfaces will work.
We are following below Standards:
- Eth0 is for Client Network (In your Case use this Interface to configure IP, Gateway, and Subnet)
- Eth1 is for nfs traffic
- Eth2 is for blade to blade traffic
- Eth3 is for iSCSI traffic.
For now eth4 and eth5 are not using.
from azure-li-services.
OK, that would imply that we cannot use persistent names but need to use predictable names. If I interpret the response correctly we can end up in a situation where "Eth1" is discovered first and thus will get "eth0" assigned by the kernel. Then based on the proposed config we would set that device up for client network traffic. This will obviously not work.
from azure-li-services.
Operations specifically said: "Assigning IP to any interfaces will work". This implies that, due to underlying wiring, traffic can be on any interface.
I'll validate this once I get the network up manually. I can verify proper connectivity, shift to a different ethernet interface, then verify if I still have connectivity. That will answer the question.
I'm having issues getting the network up manually, however, based on guidelines I was given. Once that is resolved, I'll verify this and then we'll know for sure, one way or the other.
from azure-li-services.
Sorry, but one statement contradicts the other. Stating that
"Assigning IP to any interfaces will work"
and then providing information about which interface is used for what type of traffic just doesn't fit together.
from azure-li-services.
Okay, I have details on this.
- Once the VLAN is configured in hardware, the setup on the system is somewhat different from what you described.
- The ethernet interface truly does not matter. I had a system with ethernet connectivity on
eth0
. After reconfiguration toeth5
, the system worked just fine.
I needed to modify the YAML file slightly for this, as we needed a VLAN number. The new YAML now contains this segment:
interface: eth0
vlan: 10
ip: 10.250.10.51
gateway: 10.250.10.1
subnet mask: 255.255.255.0
There are three files of interest that must be set up given that segment:
ifcfg-eth0
BOOTPROTO=static
BROADCAST=10.250.10.255
NETMASK=255.255.255.0
STARTMODE=auto
ifcfg-eth0.<vlan>
(in my example,ifcfg-eth0.10
)
BOOTPROTO=static
DEVICE=eth0.10
ETHERDEVICE=eth0
IPADDR=10.250.10.51
NETMASK=255.255.255.0
ONBOOT=yes
STARTMODE=auto
VLAN=yes
VLAN_ID=10
IF a gateway is defined in the YAML, then you need:
- ifroute-eth0.10
default 10.250.10.1 - eth0.10
Once these files were set up on the destination system, I had proper network connectivity.
Note that the VLANs appear both in filenames and the files themselves. For example, in ifcfg-eth0.10
, I have the following lines that contain VLAN information:
DEVICE=eth0.10
VLAN_ID=10
Let me know if you have any questions on this, thanks!
from azure-li-services.
Thanks for the data, based on this we can indeed stick to persistent names in the config.
from azure-li-services.
@jeffaco thanks for the details, please note I will use 'subnet_mask' as the key not 'subnet mask' with a space character in the key. That space thing is a source for trouble which we could easily avoid :)
Other than that I started the implementation as you can see in the reference. Will finish this by tomorrow
from azure-li-services.
No problem, I've updated the reference YAML to reflect this change. Thanks.
It looks like you expect a broadcast:
setting in the YAML based in your WIP changes. Is this true, or is this a mistake? I can add it if necessary, please let me know. I think I asked about that at one point, but I don't see it in this issue. It might have been in E-Mail. I don't believe I heard back about that, please let me know.
from azure-li-services.
the broadcast address gets calculated from the given ip and subnet_mask. There is no need for further information. I set the BROADCAST because your example ifcfg-eth0 contains it. Thus I thought having it explicitly set is important in your environment for some reason
from azure-li-services.
python has a very nice module called 'ipaddress' which does the broadcast calculation if you give it the ip and the subnet_mask
from azure-li-services.
Related Issues (20)
- adding rsyslog package to SLES12 SP4 VLI image
- unable to verify image signatures using SUSE public key HOT 5
- SLES12-SP4 need manual intervention to boot. HOT 7
- Printk timing issue HOT 10
- The motd file on the SLE15-SP2 images still shows SP1 HOT 1
- In reference to issue https://github.com/SUSE-Enceladus/azure-li-services/issues/218
- New kernel params for VLI images HOT 7
- Issue with Production Build SLES12-SP4-SAP-Azure-VLI-BYOS.x86_64-0.0.24-Production-Build1.4 HOT 15
- [VLI] Predictable interface names are lost after upgrading OS HOT 50
- Modify the sap-hana settings in OS HOT 3
- grub2 unable to recognize the correct architecture HOT 11
- LI Prod image dropping to dracut during boot randomly HOT 28
- kernel panic, hard lockup issue with new hardware HOT 7
- SLES15-SP1-SAP-Azure-VLI-BYOS.x86_64-1.0.7-Production-Build1.3.raw entered into grub mode after reboot HOT 1
- iscsi login issues while Testing new image https://github.com/SUSE-Enceladus/azure-li-services/issues/257 HOT 3
- New Hardware VLI image HOT 6
- Upgrading from SLES12 SP4 to SLES15 SP1 using DMS HOT 5
- Issues during image upgrades HOT 2
- Kdump not working on Image "SLES12-SP5-SAP-Azure-LI-BYOS.x86_64-1.0.15-Production-Build1.1" HOT 4
- Request to blacklist module "isst_if_mbox_msr" from Images HOT 1
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 azure-li-services.