#1 Fix permissions issue in /etc/openvswitch in package upgrades
Closed 4 years ago by amoralej. Opened 6 years ago by amoralej.
Unknown source master  into  master

file modified
+8 -3
@@ -33,7 +33,7 @@

  

  Name: openvswitch

  Version: 2.8.1

- Release: 1%{?snapshot}%{?dist}

+ Release: 2%{?snapshot}%{?dist}

  Summary: Open vSwitch daemon/database/utilities

  

  # Nearly all of openvswitch is ASL 2.0.  The bugtool is LGPLv2+, and the
@@ -476,10 +476,12 @@

          's@OVS_USER_ID="openvswitch:openvswitch"@OVS_USER_ID="openvswitch:hugetlbfs"@'\

          /etc/sysconfig/openvswitch

  

-     # In the case of upgrade, this is not needed.

-     chown -R openvswitch:openvswitch /etc/openvswitch

  fi

  

+ # Package %files sets /etc/openvswitch to root:root in installation and upgrade so

+ # we always need to reset ownership

+ chown -R openvswitch:openvswitch /etc/openvswitch

+ 

  %if 0%{?systemd_post:1}

      %systemd_post %{name}.service

  %else
@@ -700,6 +702,9 @@

  %{_unitdir}/ovn-controller-vtep.service

  

  %changelog

+ * Fri Jan 26 2018 Alfredo Moralejo <amoralej@redhat.com> - 2.8.1-2

+ - Fix permissions issue in configuration directory in package upgrades

+ 

  * Mon Oct 02 2017 Timothy Redaelli <tredaelli@redhat.com> - 2.8.1-1

  - Update to Open vSwitch 2.8.1

  

Currently, when upgrading openvswitch package, permissions
for /etc/openvswitch are changed to root:root and ovsdb-server
fails to start if a database doesn't exist. This happens for
example if ovsdb-server was never started before the package
upgrade.

This patch ensures that ownership is properly set to openvswitch
user in the upgrade case in addition to the fresh installation.

This was resolved upstream with 951d79e638ecdb3b1dcd19df1adb2ff91fe61af8 and 94cd8383e2975a3da25028162bf5d69d308af6fb

Will port these into the rhel package.

Please check that the latest changes from f27 branch will work for you, and close if so.

Pull-Request has been closed by amoralej

4 years ago
Metadata