Openvswitch user doesn't exist when updating ovs package to 2.8 onward during minor/major upgrade

Bug #1759982 reported by zenghui.shi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Unassigned

Bug Description

Ovs uses openvswitch user when updating to 2.8 onwards,
but openvswitch user is not exist and will not be created
during ovs package update.

Ideally the problem shall be solved in ovs package itself,
for example, to add a section of preinstall scriptlet which
creates openvswitch user, this has been done for fresh
installation of ovs package, but not for package update yet.

In order to solve above problem, this is asking for adding
workarounds in tripleo to make sure openvswitch user exist
before running package update.

More detailed discussion can be found at:
https://bugzilla.redhat.com/show_bug.cgi?id=1559374

This issue exists for minor update, major upgrade and
fast-forward upgrade across all releases. Due to different
workflows of upgrade, the workaround may need to be added
in each of the workflows.

zenghui.shi (zshi)
summary: - Openvswitch user doesn't exist when updating ovs package to 2.8 during
- minor/major upgrade
+ Openvswitch user doesn't exist when updating ovs package to 2.8 onward
+ during minor/major upgrade
zenghui.shi (zshi)
Changed in tripleo:
status: New → In Progress
assignee: nobody → zenghui.shi (zshi)
assignee: zenghui.shi (zshi) → nobody
Changed in tripleo:
importance: Undecided → High
milestone: none → rocky-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (stable/ocata)

Related fix proposed to branch: stable/ocata
Review: https://review.openstack.org/559472

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by zenghui.shi (<email address hidden>) on branch: master
Review: https://review.openstack.org/557155
Reason: Abandoning this patch as master doesn't need this change (fresh installation of ovs in master will have the right permission set, no need to patch it separately).

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-heat-templates (stable/newton)

Reviewed: https://review.openstack.org/557164
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=2e96965c4326a23d14475b6ed31c088c8f5a185d
Submitter: Zuul
Branch: stable/newton

commit 2e96965c4326a23d14475b6ed31c088c8f5a185d
Author: Zenghui Shi <email address hidden>
Date: Wed Mar 28 15:04:20 2018 +0800

    Ensure openvswitch user exist before package update

    Ovs uses openvswitch user when updating package to 2.8
    onwards, but openvswitch user is not exist and will not
    be created during package update. This is going to add
    workaround to make sure openvswitch user exist before
    running package update.

    Related-Bug: #1759982
    Co-Authored-By: Yolanda Robla Mota <email address hidden>
    Change-Id: I913e56c676890c4071f60aa190d02bfaca264d76
    (cherry picked from commit 1051fbe10b443801c96a4efaff7acc8697e3fa5d)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (stable/pike)

Related fix proposed to branch: stable/pike
Review: https://review.openstack.org/561610

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-heat-templates (stable/ocata)

Reviewed: https://review.openstack.org/559472
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=68e062ebb6a8a12cb60dc01905e74d8c3d091fda
Submitter: Zuul
Branch: stable/ocata

commit 68e062ebb6a8a12cb60dc01905e74d8c3d091fda
Author: Zenghui Shi <email address hidden>
Date: Wed Mar 28 15:04:20 2018 +0800

    Ensure openvswitch user exist before package update

    Ovs uses openvswitch user when updating package to 2.8
    onwards, but openvswitch user is not exist and will not
    be created during package update. This is going to add
    workaround to make sure openvswitch user exist before
    running package update.

    Related-Bug: #1759982
    Change-Id: I913e56c676890c4071f60aa190d02bfaca264d76
    (cherry picked from commit 1051fbe10b443801c96a4efaff7acc8697e3fa5d)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-heat-templates (stable/newton)

Reviewed: https://review.openstack.org/558471
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=04e83a38bfa875628c3df2836d5df4683c5c7648
Submitter: Zuul
Branch: stable/newton

commit 04e83a38bfa875628c3df2836d5df4683c5c7648
Author: Yolanda Robla <email address hidden>
Date: Tue Apr 3 12:35:47 2018 +0200

    Change ovs user and fix permissions on ovs upgrade

    When upgrading to latest ovs, package needs to run with
    ovs user, and also the affected folders need to change their perms.
    Change the config file for it, and initially do a perm change. Also
    create a one-time service file that will run after reboot, to be
    sure that all the remaining folders have changed their perms
    properly.

    Related-Bug: #1759982
    Change-Id: I0e103cb19a7bbaf951d233acfcb51086e57cf264

Changed in tripleo:
milestone: rocky-1 → rocky-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-heat-templates (stable/ocata)

Reviewed: https://review.openstack.org/559474
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=48db1367e3ed85b2c0b40d26354466d98940db2a
Submitter: Zuul
Branch: stable/ocata

commit 48db1367e3ed85b2c0b40d26354466d98940db2a
Author: Yolanda Robla <email address hidden>
Date: Tue Apr 3 12:35:47 2018 +0200

    Change ovs user and fix permissions on ovs upgrade

    When upgrading to latest ovs, package needs to run with
    ovs user, and also the affected folders need to change their perms.
    Change the config file for it, and initially do a perm change. Also
    create a one-time service file that will run after reboot, to be
    sure that all the remaining folders have changed their perms
    properly.

    Related-Bug: #1759982
    Change-Id: I0e103cb19a7bbaf951d233acfcb51086e57cf264
    (cherry picked from commit 57c0018c5031b33b94f39bb7e89ad81b2b89274c)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-heat-templates (stable/pike)

Reviewed: https://review.openstack.org/561610
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=3ff954a5ac3f520998e69dc84040fb5bd282ab44
Submitter: Zuul
Branch: stable/pike

commit 3ff954a5ac3f520998e69dc84040fb5bd282ab44
Author: Yolanda Robla <email address hidden>
Date: Mon Apr 16 14:56:27 2018 +0200

    Change ovs user and fix permissions on ovs upgrade

    When upgrading to latest ovs, package needs to run with ovs user,
    and also the affected folders need to change their perms. Change
    the config file for it, and initially do a perm change. Also
    create a one-time service file that will run after reboot, to be
    sure that all the remaining folders have changed their perms
    properly.

    Change-Id: Iab8371161ec4ccb7f9541448e51bb0f647e43798
    Related-Bug: #1759982

Changed in tripleo:
milestone: rocky-2 → rocky-3
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
Changed in tripleo:
milestone: stein-2 → stein-3
Changed in tripleo:
status: In Progress → Fix Released
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.