Skip to content

kvm: Use 'ip' instead of 'brctl'#3623

Merged
yadvr merged 2 commits into
apache:masterfrom
CLDIN:bride-utils
Nov 11, 2019
Merged

kvm: Use 'ip' instead of 'brctl'#3623
yadvr merged 2 commits into
apache:masterfrom
CLDIN:bride-utils

Conversation

@wido
Copy link
Copy Markdown
Contributor

@wido wido commented Oct 7, 2019

The command 'brctl' is deprecated and should no longer be used.

iproute2 supports all the features we need and therefor we should use
this instead of the old commands.

Feature wise this does not change anything. It just makes the code more
robust towards the future.

Signed-off-by: Wido den Hollander wido@widodh.nl

The command 'brctl' is deprecated and should no longer be used.

iproute2 supports all the features we need and therefor we should use
this instead of the old commands.

Feature wise this does not change anything. It just makes the code more
robust towards the future.

Signed-off-by: Wido den Hollander <wido@widodh.nl>
@ustcweizhou
Copy link
Copy Markdown
Contributor

LGTM
tested the commands on ubuntu 16

@RPDiep
Copy link
Copy Markdown
Contributor

RPDiep commented Oct 7, 2019

Seems good to me, except this won't run under CentOS 6 according to the manpages of iproute (running currently iproute 2.6.32).
Backporting this should therefore not be done.

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Oct 7, 2019

@wido can you also fix scripts/vm/network/vnet/modifyvlan.sh?
With CentOS6 support removed from master/4.14, we should try and move all network related commands to use iproute2 instead of ifconfig/brctl etc.

brctl is deprecated and by using iproute2 we are future-proof

Signed-off-by: Wido den Hollander <wido@widodh.nl>
@wido
Copy link
Copy Markdown
Contributor Author

wido commented Oct 7, 2019

Done @rhtyd

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Oct 7, 2019

Nice, thanks.

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✖centos6 ✔centos7 ✔debian. JID-310

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Oct 7, 2019

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

Copy link
Copy Markdown
Member

@GabrielBrascher GabrielBrascher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GabrielBrascher
Copy link
Copy Markdown
Member

This one looks ready to merge.
@rhtyd Is there any issue with the blueorangutan test?

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Oct 22, 2019

Something went wrong at the backend, I'll rekick test.
@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✖centos6 ✔centos7 ✔debian. JID-324

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Oct 22, 2019

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-422)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 36375 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3623-t422-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Smoke tests completed. 76 look OK, 1 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_02_vpc_privategw_static_routes Failure 244.80 test_privategw_acl.py

@yadvr yadvr merged commit 4d7e95e into apache:master Nov 11, 2019
ustcweizhou pushed a commit to ustcweizhou/cloudstack that referenced this pull request Feb 28, 2020
* kvm: Use 'ip' instead of 'brctl'

The command 'brctl' is deprecated and should no longer be used.

iproute2 supports all the features we need and therefor we should use
this instead of the old commands.

Feature wise this does not change anything. It just makes the code more
robust towards the future.

Signed-off-by: Wido den Hollander <wido@widodh.nl>

* kvm/modifyvlan: Use 'ip' instead of 'brctl'

brctl is deprecated and by using iproute2 we are future-proof

Signed-off-by: Wido den Hollander <wido@widodh.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants