]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/cephfs/mount.py: try to flush the stale ceph-brx dev info
authorXiubo Li <xiubli@redhat.com>
Tue, 2 Jun 2020 14:32:25 +0000 (10:32 -0400)
committerXiubo Li <xiubli@redhat.com>
Wed, 29 Jul 2020 00:41:02 +0000 (08:41 +0800)
commit438aaf851f7e777771cfde75bfc28b92ba4d3b75
tree7cfd964398e63f446ef334423753d71d0bc0b2e9
parentf8d8e3083a5a528f659a4a11a2be9452da280b03
qa/tasks/cephfs/mount.py: try to flush the stale ceph-brx dev info

Once we have run the test cases and the ceph-brx bridge is setup,
it will save the config in "/etc/sysconfig/network-scripts/ifcfg-ceph-brx"
or somewhere else. It will be kept after the ceph-brx bridge removed.
So next time once the ceph-brx bridge is created or added, it will
read the config from it, then when we config it again we will get
error like:

    "RTNETLINK answers: File exists"

Here we need to flush it before config it.

Fixes: https://tracker.ceph.com/issues/45817
Signed-off-by: Xiubo Li <xiubli@redhat.com>
qa/tasks/cephfs/mount.py