| |
@@ -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.