View Issue Details

IDProjectCategoryView StatusLast Update
0015905CentOS-7initscriptspublic2019-03-10 18:30
Reporterelico 
PrioritynormalSeveritymajorReproducibilityhave not tried
Status newResolutionopen 
Product Version7.6.1810 
Target VersionFixed in Version 
Summary0015905: ifup of a bridge doesn work and was fixed by RHEL at the RH bugzilla 1609687
DescriptionWhen using "ifup bridge-name" I receive an error:

/etc/sysconfig/network-scripts/ifup-eth: line 91: [: 0: unary operator expected

This was fixed in RHEL at:
https://bugzilla.redhat.com/show_bug.cgi?id=1609687

With the next changes:
https://github.com/fedora-sysv/initscripts/compare/7452ec0da2e1c88e97d70d864f8255572a8057b3..0be531981e4066af4d657715530ff905cea02fe9
Steps To Reproducecreate a sysconfig ifcfg-bridge1 file which has:
DEVICE="bridge1 "
ONBOOT="yes"
TYPE="Bridge"
STP="on"
DELAY="10.0"


And then run "ifup bridge1" and you will receive an error.
TagsNo tags attached.
abrt_hash
URL

Activities

toracat

toracat

2019-03-10 17:30

manager   ~0033970

CentOS is a rebuild of the sources used to build RHEL. We do not fix bugs ourselves, we wait for RH to fix them in RHEL and release the updated source and once that is done then it is rebuilt for CentOS. To get a bug fixed in CentOS you have to wait for RH to fix it in RHEL.

According to the BZ, the bug has not been fixed in RHEL 7, but "will need to be backported to rhel7-branch..."
TrevorH

TrevorH

2019-03-10 17:46

manager   ~0033971

From the linked bz https://bugzilla.redhat.com/show_bug.cgi?id=1635313 there also appears to be a nice easy workaround as that says adding DELAY=$someinteger to the ifcfg file means it doesn't need to calculate it at all.
TrevorH

TrevorH

2019-03-10 17:54

manager   ~0033972

Oh, and your current DELAY= is a floating point number not an integer...
elico

elico

2019-03-10 18:30

reporter   ~0033974

@TrevorH the floating point was the issue....
I found out how it all works now fine.
I had a very hard time working on this new server without my old notes about that the delay should be integer.
At-least now this bug is know to be resolved.

create a sysconfig ifcfg-bridge1 file which has:
DEVICE="bridge1 "
ONBOOT="yes"
TYPE="Bridge"
STP="on"
DELAY="10"

The dealy with 10 or 5 works just fine.

Issue History

Date Modified Username Field Change
2019-03-10 15:46 elico New Issue
2019-03-10 17:30 toracat Note Added: 0033970
2019-03-10 17:46 TrevorH Note Added: 0033971
2019-03-10 17:54 TrevorH Note Added: 0033972
2019-03-10 18:30 elico Note Added: 0033974