Bug 1080643 - Unable to Create Bridge from Keyfile with Manual IP
Summary: Unable to Create Bridge from Keyfile with Manual IP
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 20
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Dan Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-25 20:45 UTC by justin.brown1.1@gmail.com
Modified: 2014-06-25 19:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-25 19:19:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.