Bug 1080643

Summary: Unable to Create Bridge from Keyfile with Manual IP
Product: [Fedora] Fedora Reporter: justin.brown1.1@gmail.com <justin.brown>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 20CC: dcbw, gerd
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-25 19:19:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description justin.brown1.1@gmail.com 2014-03-25 20:45:43 UTC
Description of problem:

When using NetworkManager with the keyfile plugin, it is not possible to create a bridge interface with a manually set IPv4 address. 

This works:

[connection]
id=vmbr0
interface-name=vmbr0
uuid=105acc55-5bbf-483f-95fe-a9d86a0284f2
type=bridge

[bridge]
interface-name=vmbr0
stp=false

[ipv4]
method=auto                                                                                               

[ipv6]
method=ignore

============================================


This doesn't work:

[connection]
id=vmbr0
interface-name=vmbr0
uuid=105acc55-5bbf-483f-95fe-a9d86a0284f2
type=bridge

[bridge]
interface-name=vmbr0
stp=false

[ipv4]
method=manual                                                                                                                     
addresses1=10.3.1.1;24;0                                                                                                         

[ipv6]
method=ignore



This is the only message that appears in the logs:

 error in connection /etc/NetworkManager/system-connections/vmbr0.ini: invalid or missing connection property 'NMSettingIP4Config/ipv4.addresses: property is missing'

(The documentation is extremely unclear whether the "addresses" parameter is now just "addresses" or "addresses1" like it used to be. 

Version-Release number of selected component (if applicable):

0.9.9.0-32.git20131003


How reproducible:

Always


Steps to Reproduce:
1. Switch to the keyfile plugin in /etc/NetworkManager/NetworkManager.conf
2. Put the non-working bridge configuration above in /etc/NetworkManager/system-connections/vmbr0.ini and set to root.root ownership with 600 permissions.
3. Restart NetworkManager.

Actual results:

The bridge is not created because NetworkManager thinks the required ipv4 addresses parameter is missing.

Expected results:

Bridge is created with manual IPv4 address.

Comment 1 Gerd v. Egidy 2014-06-25 19:05:27 UTC
I can not reproduce this problem:

# rpm -q NetworkManager
NetworkManager-0.9.9.0-39.git20131003.fc20.x86_64

# cat /etc/NetworkManager/system-connections/vmbr0 
[connection]
id=vmbr0
interface-name=vmbr0
uuid=fc61f6e5-8900-4c6f-915c-eb55714eb874
type=bridge

[bridge]
interface-name=vmbr0
stp=false

[ipv6]
method=ignore

[ipv4]
method=manual
dns=192.168.13.254;
dns-search=local;
addresses1=192.168.13.160;24;192.168.13.254;

# cat /etc/NetworkManager/system-connections/p1p1 
[802-3-ethernet]
duplex=full
mac-address=00:1B:21:3D:XX:XX

[connection]
id=p1p1
uuid=4e4f0f7d-9a83-47ad-99df-c4c8470dd377
type=802-3-ethernet
autoconnect=true
slave-type=bridge
master=fc61f6e5-8900-4c6f-915c-eb55714eb874

Works as expected, the IP is assigned manually without problems or dhcp.

Comment 2 justin.brown1.1@gmail.com 2014-06-25 19:19:16 UTC
I checked again and found that my addresses1 line was incorrect:

addresses1=10.3.1.1;24;0 

should've been

addresses1=10.3.1.1;24;0.0.0.0;

Closing