cinder-lvm migration documentation - missing target_helper configuration

Bug #1949074 reported by Hemanth Nakkina
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Charm Cinder LVM
Fix Committed
Undecided
Erlon R. Cruz
2023.1
Fix Committed
Undecided
Unassigned
Wallaby
Fix Committed
Undecided
Unassigned
Xena
Fix Committed
Undecided
Unassigned
Yoga
Fix Committed
Undecided
Unassigned
Zed
Fix Committed
Undecided
Unassigned

Bug Description

tgt package is removed from wallaby release [1] and so tgtadm which is the default target_helper for lvm backend wont work. Attaching a volume with lvm backend fails with default settings from wallaby release.

target_helper need to be set to lioadm. This can be set via charm config option
juju config cinder-lvm config-flags=target_helper=lioadm

Also upgrade from earlier releases to wallaby with cinder lvm backend fails without modifying the above setting.

This requires a mention probably at cinder lvm migration documentation or any better place.

[1] https://git.launchpad.net/~chris.macnaughton/ubuntu/+source/cinder/commit/?id=7a58fa04458232caffb50788938cb6d0b3d06f25
[2] https://docs.openstack.org/project-deploy-guide/charm-deployment-guide/latest/cinder-lvm-migration.html

Changed in charm-deployment-guide:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Billy Olsen (billy-olsen) wrote :

Adding charm-cinder-lvm as this should be handled in the charm.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-deployment-guide (master)
Changed in charm-deployment-guide:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-deployment-guide (master)

Change abandoned by "Luciano Lo Giudice <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/charm-deployment-guide/+/828430
Reason: Will reimplement it in the charm itself.

Changed in charm-cinder-lvm:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-cinder-lvm (master)
Revision history for this message
Erlon R. Cruz (sombrafam) wrote :
affects: charm-deployment-guide → charm-guide
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-cinder-lvm (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/charm-cinder-lvm/+/861377

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-cinder-lvm (stable/xena)

Fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/charm-cinder-lvm/+/861378

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-cinder-lvm (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/charm-cinder-lvm/+/861379

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-cinder-lvm (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/charm-cinder-lvm/+/861307

Felipe Reyes (freyes)
Changed in charm-cinder-lvm:
assignee: nobody → Erlon R. Cruz (sombrafam)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-cinder-lvm (stable/2023.2)

Fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/charm-cinder-lvm/+/900491

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-cinder-lvm (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/charm-cinder-lvm/+/900492

Revision history for this message
Peter Matulis (petermatulis) wrote :

Removing charm-guide bug task as the issue will be resolved in the software.

no longer affects: charm-guide
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-cinder-lvm (master)

Reviewed: https://review.opendev.org/c/openstack/charm-cinder-lvm/+/828574
Committed: https://opendev.org/openstack/charm-cinder-lvm/commit/3144ea032b35842db6f62bbb26aef9c68a6226a6
Submitter: "Zuul (22348)"
Branch: master

commit 3144ea032b35842db6f62bbb26aef9c68a6226a6
Author: Luciano Lo Giudice <email address hidden>
Date: Wed Feb 9 12:18:01 2022 -0300

    Fix target_helper config for >= Wallaby

    Starting with the release of Wallaby, the 'tgtadm' package is
    now the default target helper, which doesn't work for cinder-lvm.
    As such, we need to explicitly set the new package to 'lioadm'.

    Closes-Bug: #1949074
    Change-Id: I4d88d1e30d8b2b133bd575a76d0dc5e566415cbc

Changed in charm-cinder-lvm:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-cinder-lvm (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/charm-cinder-lvm/+/861307
Committed: https://opendev.org/openstack/charm-cinder-lvm/commit/80aa1207356afaa376dcb217dc655ee40d9dfdca
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 80aa1207356afaa376dcb217dc655ee40d9dfdca
Author: Luciano Lo Giudice <email address hidden>
Date: Wed Feb 9 12:18:01 2022 -0300

    Fix target_helper config for >= Wallaby

    Starting with the release of Wallaby, the 'tgtadm' package is
    now the default target helper, which doesn't work for cinder-lvm.
    As such, we need to explicitly set the new package to 'lioadm'.

    Closes-Bug: #1949074
    Change-Id: I4d88d1e30d8b2b133bd575a76d0dc5e566415cbc
    (cherry picked from commit 3144ea032b35842db6f62bbb26aef9c68a6226a6)
    (cherry picked from commit 3b04e42f31a9638858c7f6fa11215090175e4681)
    (cherry picked from commit eb636fa47b276fd2c1d419842ceccf97d272eb76)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-cinder-lvm (stable/2023.2)

Reviewed: https://review.opendev.org/c/openstack/charm-cinder-lvm/+/900491
Committed: https://opendev.org/openstack/charm-cinder-lvm/commit/3b04e42f31a9638858c7f6fa11215090175e4681
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit 3b04e42f31a9638858c7f6fa11215090175e4681
Author: Luciano Lo Giudice <email address hidden>
Date: Wed Feb 9 12:18:01 2022 -0300

    Fix target_helper config for >= Wallaby

    Starting with the release of Wallaby, the 'tgtadm' package is
    now the default target helper, which doesn't work for cinder-lvm.
    As such, we need to explicitly set the new package to 'lioadm'.

    Closes-Bug: #1949074
    Change-Id: I4d88d1e30d8b2b133bd575a76d0dc5e566415cbc
    (cherry picked from commit 3144ea032b35842db6f62bbb26aef9c68a6226a6)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-cinder-lvm (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/charm-cinder-lvm/+/861379
Committed: https://opendev.org/openstack/charm-cinder-lvm/commit/ea55c071a9cf01c9cf304cf05cc4916379218f9b
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit ea55c071a9cf01c9cf304cf05cc4916379218f9b
Author: Luciano Lo Giudice <email address hidden>
Date: Wed Feb 9 12:18:01 2022 -0300

    Fix target_helper config for >= Wallaby

    Starting with the release of Wallaby, the 'tgtadm' package is
    now the default target helper, which doesn't work for cinder-lvm.
    As such, we need to explicitly set the new package to 'lioadm'.

    (cherry-pick modified to disable py36 unit tests as they are not
    needed at yoga, and break as the psycopg2-binary wheel has
    been removed from PyPi, and the tools to build the wheel are not
    in the repo; it's less work to just fake the result on py36 than
    to support it, and it's less CI time as well).

    Closes-Bug: #1949074
    Change-Id: I4d88d1e30d8b2b133bd575a76d0dc5e566415cbc
    (cherry picked from commit 3144ea032b35842db6f62bbb26aef9c68a6226a6)
    (cherry picked from commit 3b04e42f31a9638858c7f6fa11215090175e4681)
    (cherry picked from commit eb636fa47b276fd2c1d419842ceccf97d272eb76)
    (cherry picked from commit 80aa1207356afaa376dcb217dc655ee40d9dfdca)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-cinder-lvm (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/charm-cinder-lvm/+/900492
Committed: https://opendev.org/openstack/charm-cinder-lvm/commit/c9a627f278480e90b1f4e741d3df0f3951ae7665
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit c9a627f278480e90b1f4e741d3df0f3951ae7665
Author: Luciano Lo Giudice <email address hidden>
Date: Wed Feb 9 12:18:01 2022 -0300

    Fix target_helper config for >= Wallaby

    Starting with the release of Wallaby, the 'tgtadm' package is
    now the default target helper, which doesn't work for cinder-lvm.
    As such, we need to explicitly set the new package to 'lioadm'.

    Also bumps PyYAML dep to 6.0.1 to fix build error

    Closes-Bug: #1949074
    Change-Id: I4d88d1e30d8b2b133bd575a76d0dc5e566415cbc
    (cherry picked from commit 3144ea032b35842db6f62bbb26aef9c68a6226a6)
    (cherry picked from commit 3b04e42f31a9638858c7f6fa11215090175e4681)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-cinder-lvm (stable/xena)

Reviewed: https://review.opendev.org/c/openstack/charm-cinder-lvm/+/861378
Committed: https://opendev.org/openstack/charm-cinder-lvm/commit/d8a5ec60142300a3d9cb2568b9d6fdc845d280bc
Submitter: "Zuul (22348)"
Branch: stable/xena

commit d8a5ec60142300a3d9cb2568b9d6fdc845d280bc
Author: Luciano Lo Giudice <email address hidden>
Date: Wed Feb 9 12:18:01 2022 -0300

    Fix target_helper config for >= Wallaby

    Starting with the release of Wallaby, the 'tgtadm' package is
    now the default target helper, which doesn't work for cinder-lvm.
    As such, we need to explicitly set the new package to 'lioadm'.

    (cherry-pick modified to disable py36 unit tests as they are not
    needed at xena, and break as the psycopg2-binary wheel has
    been removed from PyPi, and the tools to build the wheel are not
    in the repo; it's less work to just fake the result on py36 than
    to support it, and it's less CI time as well).

    Closes-Bug: #1949074
    Change-Id: I4d88d1e30d8b2b133bd575a76d0dc5e566415cbc
    (cherry picked from commit 3144ea032b35842db6f62bbb26aef9c68a6226a6)
    (cherry picked from commit 3b04e42f31a9638858c7f6fa11215090175e4681)
    (cherry picked from commit eb636fa47b276fd2c1d419842ceccf97d272eb76)
    (cherry picked from commit 80aa1207356afaa376dcb217dc655ee40d9dfdca)
    (cherry picked from commit 48b0b49647fe467244e03b314b0ee13a09cad891)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-cinder-lvm (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/charm-cinder-lvm/+/861377
Committed: https://opendev.org/openstack/charm-cinder-lvm/commit/229184b11cade417660bd51190235368547b328a
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 229184b11cade417660bd51190235368547b328a
Author: Luciano Lo Giudice <email address hidden>
Date: Wed Feb 9 12:18:01 2022 -0300

    Fix target_helper config for >= Wallaby

    Starting with the release of Wallaby, the 'tgtadm' package is
    now the default target helper, which doesn't work for cinder-lvm.
    As such, we need to explicitly set the new package to 'lioadm'.

    (cherry-pick modified to disable py36 unit tests as they are not
    needed at wallaby, and break as the psycopg2-binary wheel has
    been removed from PyPi, and the tools to build the wheel are not
    in the repo; it's less work to just fake the result on py36 than
    to support it, and it's less CI time as well).

    Closes-Bug: #1949074
    Change-Id: I4d88d1e30d8b2b133bd575a76d0dc5e566415cbc
    (cherry picked from commit 3144ea032b35842db6f62bbb26aef9c68a6226a6)
    (cherry picked from commit 3b04e42f31a9638858c7f6fa11215090175e4681)
    (cherry picked from commit eb636fa47b276fd2c1d419842ceccf97d272eb76)
    (cherry picked from commit 80aa1207356afaa376dcb217dc655ee40d9dfdca)
    (cherry picked from commit 48b0b49647fe467244e03b314b0ee13a09cad891)
    (cherry picked from commit b098bc73dae08c06ed04b740b9ac9d36522a9b4e)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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