fast-diff in default feature set breaks "rbd map"

Bug #1921897 reported by Eric Harney
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack-plugin-ceph
Fix Committed
Undecided
Unassigned

Bug Description

https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/778960
introduced new default ceph feature flags.

On a bionic stable/ussuri run, this causes failures in cinder-plugin-ceph-tempest like:

cinderlib.tests.functional.test_basic.BackendFunctBasic.test_extend_on_ceph
---------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/home/zuul/src/opendev.org/openstack/cinderlib/cinderlib/nos_brick.py", line 91, in connect_volume
    run_as_root=True)

      File "/usr/local/lib/python3.6/dist-packages/os_brick/executor.py", line 52, in _execute
    result = self.__execute(*args, **kwargs)

      File "/home/zuul/src/opendev.org/openstack/cinderlib/cinderlib/nos_brick.py", line 265, in _execute
    return rootwrap.custom_execute(*cmd, **kwargs)

      File "/usr/local/lib/python3.6/dist-packages/os_brick/privileged/rootwrap.py", line 143, in custom_execute
    on_completion=on_completion, *cmd, **kwargs)

      File "/usr/local/lib/python3.6/dist-packages/oslo_concurrency/processutils.py", line 431, in execute
    cmd=sanitized_cmd)

    oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
Command: sudo rbd map volume-f906cb98-ef9c-4115-b5ae-04a3bdfc740e --pool volumes --conf /tmp/brickrbd_zi7qhe2n --id cinder --mon_host 10.209.129.132:6789
Exit code: 6
Stdout: 'RBD image feature set mismatch. You can disable features unsupported by the kernel with "rbd feature disable volumes/volume-f906cb98-ef9c-4115-b5ae-04a3bdfc740e object-map fast-diff".\nIn some cases useful info is found in syslog - try "dmesg | tail".\n'
Stderr: 'rbd: sysfs write failed\nrbd: map failed: (6) No such device or address\n'

Eric Harney (eharney)
description: updated
Revision history for this message
Sofia Enriquez (lsofia-enriquez) wrote :
Changed in devstack-plugin-ceph:
status: New → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack-plugin-ceph (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/786782

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack-plugin-ceph (stable/victoria)

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/786783

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack-plugin-ceph (stable/ussuri)

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/786784

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack-plugin-ceph (stable/train)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack-plugin-ceph (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/786782
Committed: https://opendev.org/openstack/devstack-plugin-ceph/commit/3db789ae6c0e53b593ba5932c8177e0238f2d443
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 3db789ae6c0e53b593ba5932c8177e0238f2d443
Author: Eric Harney <email address hidden>
Date: Tue Mar 30 09:55:18 2021 -0400

    Set RBD default features based on distro

    In some jobs, we run tests that use "rbd map".
    On older kernels, this will not work if newer
    RBD features are used. (Specifically, fast-diff
    on bionic.)

    On older distros, enable fewer features by default.

    Closes-Bug: #1921897
    Change-Id: Iff1c5210b0279379eb9612b206bdf456dd6f132e
    (cherry picked from commit 35e1ff5cf4a50594578ab8d13499789c2ccef351)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack-plugin-ceph (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/786783
Committed: https://opendev.org/openstack/devstack-plugin-ceph/commit/fe4c6269f99ac27851040df40634ecb37db540fd
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit fe4c6269f99ac27851040df40634ecb37db540fd
Author: Eric Harney <email address hidden>
Date: Tue Mar 30 09:55:18 2021 -0400

    Set RBD default features based on distro

    In some jobs, we run tests that use "rbd map".
    On older kernels, this will not work if newer
    RBD features are used. (Specifically, fast-diff
    on bionic.)

    On older distros, enable fewer features by default.

    Closes-Bug: #1921897
    Change-Id: Iff1c5210b0279379eb9612b206bdf456dd6f132e
    (cherry picked from commit 35e1ff5cf4a50594578ab8d13499789c2ccef351)
    (cherry picked from commit 3db789ae6c0e53b593ba5932c8177e0238f2d443)

tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack-plugin-ceph (stable/ussuri)

Reviewed: https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/786784
Committed: https://opendev.org/openstack/devstack-plugin-ceph/commit/00fd7f31217f07a71567d82fae366efc94c159b4
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit 00fd7f31217f07a71567d82fae366efc94c159b4
Author: Eric Harney <email address hidden>
Date: Tue Mar 30 09:55:18 2021 -0400

    Set RBD default features based on distro

    In some jobs, we run tests that use "rbd map".
    On older kernels, this will not work if newer
    RBD features are used. (Specifically, fast-diff
    on bionic.)

    On older distros, enable fewer features by default.

    Closes-Bug: #1921897
    Change-Id: Iff1c5210b0279379eb9612b206bdf456dd6f132e
    (cherry picked from commit 35e1ff5cf4a50594578ab8d13499789c2ccef351)
    (cherry picked from commit 3db789ae6c0e53b593ba5932c8177e0238f2d443)
    (cherry picked from commit fe4c6269f99ac27851040df40634ecb37db540fd)

tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack-plugin-ceph (stable/train)

Reviewed: https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/786787
Committed: https://opendev.org/openstack/devstack-plugin-ceph/commit/0f89989126b2463d1eeb913efdf9d44ceb63d97a
Submitter: "Zuul (22348)"
Branch: stable/train

commit 0f89989126b2463d1eeb913efdf9d44ceb63d97a
Author: Eric Harney <email address hidden>
Date: Tue Mar 30 09:55:18 2021 -0400

    Set RBD default features based on distro

    In some jobs, we run tests that use "rbd map".
    On older kernels, this will not work if newer
    RBD features are used. (Specifically, fast-diff
    on bionic.)

    On older distros, enable fewer features by default.

    Closes-Bug: #1921897
    Change-Id: Iff1c5210b0279379eb9612b206bdf456dd6f132e
    (cherry picked from commit 35e1ff5cf4a50594578ab8d13499789c2ccef351)
    (cherry picked from commit 3db789ae6c0e53b593ba5932c8177e0238f2d443)
    (cherry picked from commit fe4c6269f99ac27851040df40634ecb37db540fd)
    (cherry picked from commit 00fd7f31217f07a71567d82fae366efc94c159b4)

tags: added: in-stable-train
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.