Previously, the libvirt_password was created inside the spec file without the newline character (echo -n). Now, there is a file that contains the password but uses the newline character. This scenario makes the rpm upgrade finish with an incorrect warning message showing that the password has changed. This patch removes the newline character from the libvirt_password file and prevents incorrect warning messages.
Description of problem:
Updating : vdsm-4.9.6-36.0.el6_3.x86_64 5/11
warning: /etc/pki/vdsm/keys/libvirt_password created as /etc/pki/vdsm/keys/libvirt_password.rpmnew
[root@master-vds1 keys]# cat libvirt_password
shibboleth[root@master-vds1 keys]# cat libvirt_password.rpmnew
shibboleth
[root@master-vds1 keys]# diff libvirt_password libvirt_password.rpmnew
1c1
< shibboleth
\ No newline at end of file
---
> shibboleth
[root@master-vds1 ~]# rpm -qV vdsm
S.5....T. c /etc/pki/vdsm/keys/libvirt_password
.....UG.. /rhev/data-center
missing /var/lib/vdsm/netconfback
Version-Release number of selected component (if applicable):
vdsm-4.9.6-36
How reproducible:
Always
Steps to Reproduce:
1. Upgrade from VDSM (I did it via 'yum update') from 4.9-113.3 (3.0.x) to 4.9.6-36 (3.1's VDSM)
2.
3.
Actual results:
Expected results:
Additional info:
Comment 1Douglas Schilling Landgraf
2012-10-24 22:37:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHSA-2012-1508.html
Description of problem: Updating : vdsm-4.9.6-36.0.el6_3.x86_64 5/11 warning: /etc/pki/vdsm/keys/libvirt_password created as /etc/pki/vdsm/keys/libvirt_password.rpmnew [root@master-vds1 keys]# cat libvirt_password shibboleth[root@master-vds1 keys]# cat libvirt_password.rpmnew shibboleth [root@master-vds1 keys]# diff libvirt_password libvirt_password.rpmnew 1c1 < shibboleth \ No newline at end of file --- > shibboleth [root@master-vds1 ~]# rpm -qV vdsm S.5....T. c /etc/pki/vdsm/keys/libvirt_password .....UG.. /rhev/data-center missing /var/lib/vdsm/netconfback Version-Release number of selected component (if applicable): vdsm-4.9.6-36 How reproducible: Always Steps to Reproduce: 1. Upgrade from VDSM (I did it via 'yum update') from 4.9-113.3 (3.0.x) to 4.9.6-36 (3.1's VDSM) 2. 3. Actual results: Expected results: Additional info: