Your message dated Sun, 01 Apr 2012 11:51:39 +0000
with message-id <[email protected]>
and subject line Bug#666050: fixed in opennebula 3.2.1-2
has caused the Debian Bug report #666050,
regarding Overwrites the admin password on upgrades
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
666050: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=666050
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: opennebula
Version: 3.2.1-1
Severity: grave
Tags: patch

Hi,
on upgrades ~oneadmin/.one/one_auth gets overwritten unconditionally 
which makes subsequent commands fail. Attached patch fixes this.
Cheers,
 -- Guido


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
>From b8645f2d329828c8ef9c96f9f8d8492ec89f3e13 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <[email protected]>
Date: Wed, 28 Mar 2012 10:16:49 +0200
Subject: [PATCH] Don't overwrite admin password on upgrades

---
 debian/opennebula.postinst |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/debian/opennebula.postinst b/debian/opennebula.postinst
index a052ba7..b5f48f7 100644
--- a/debian/opennebula.postinst
+++ b/debian/opennebula.postinst
@@ -22,11 +22,13 @@ if [ "$1" = "configure" ]; then
             dpkg-statoverride --update --add $ONE_USER $ONE_GROUP 700 /var/lib/one/.one
     fi
 
-    ONE_PASSWORD=`apg -m 12 -M cNl -n 1`
-    if [ -n "${ONE_PASSWORD}" ]; then
-        echo "${ONE_USER}:${ONE_PASSWORD}" > $ONEAUTH
-        chown $ONE_USER:$ONE_GROUP $ONEAUTH
-        chmod 600 $ONEAUTH
+    if [ ! -f $ONEAUTH ]; then
+        ONE_PASSWORD=`apg -m 12 -M cNl -n 1`
+        if [ -n "${ONE_PASSWORD}" ]; then
+            echo "${ONE_USER}:${ONE_PASSWORD}" > $ONEAUTH
+            chown $ONE_USER:$ONE_GROUP $ONEAUTH
+            chmod 600 $ONEAUTH
+        fi
     fi
 fi
 
-- 
1.7.9.1


--- End Message ---
--- Begin Message ---
Source: opennebula
Source-Version: 3.2.1-2

We believe that the bug you reported is fixed in the latest version of
opennebula, which is due to be installed in the Debian FTP archive:

libopennebula-java-doc_3.2.1-2_all.deb
  to main/o/opennebula/libopennebula-java-doc_3.2.1-2_all.deb
libopennebula-java_3.2.1-2_all.deb
  to main/o/opennebula/libopennebula-java_3.2.1-2_all.deb
opennebula-common_3.2.1-2_all.deb
  to main/o/opennebula/opennebula-common_3.2.1-2_all.deb
opennebula-node_3.2.1-2_all.deb
  to main/o/opennebula/opennebula-node_3.2.1-2_all.deb
opennebula-sunstone_3.2.1-2_all.deb
  to main/o/opennebula/opennebula-sunstone_3.2.1-2_all.deb
opennebula-tools_3.2.1-2_all.deb
  to main/o/opennebula/opennebula-tools_3.2.1-2_all.deb
opennebula_3.2.1-2.debian.tar.gz
  to main/o/opennebula/opennebula_3.2.1-2.debian.tar.gz
opennebula_3.2.1-2.dsc
  to main/o/opennebula/opennebula_3.2.1-2.dsc
opennebula_3.2.1-2_amd64.deb
  to main/o/opennebula/opennebula_3.2.1-2_amd64.deb
ruby-opennebula_3.2.1-2_all.deb
  to main/o/opennebula/ruby-opennebula_3.2.1-2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Damien Raude-Morvan <[email protected]> (supplier of updated opennebula 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 01 Apr 2012 13:20:07 +0200
Source: opennebula
Binary: opennebula opennebula-sunstone opennebula-common opennebula-node 
ruby-opennebula opennebula-tools libopennebula-java libopennebula-java-doc
Architecture: source amd64 all
Version: 3.2.1-2
Distribution: unstable
Urgency: low
Maintainer: Debian OpenNebula Maintainers 
<[email protected]>
Changed-By: Damien Raude-Morvan <[email protected]>
Description: 
 libopennebula-java - Java bindings for OpenNebula Cloud API (OCA)
 libopennebula-java-doc - Java bindings for OpenNebula Cloud API (OCA) - 
documentation
 opennebula - controller which executes the OpenNebula cluster services
 opennebula-common - empty package to create OpenNebula users and directories
 opennebula-node - empty package to prepare a machine as OpenNebula Node
 opennebula-sunstone - web interface to which executes the OpenNebula cluster 
services
 opennebula-tools - Command-line tools for OpenNebula Cloud
 ruby-opennebula - Ruby bindings for OpenNebula Cloud API (OCA)
Closes: 663075 665948 665952 665975 666050
Changes: 
 opennebula (3.2.1-2) unstable; urgency=low
 .
   * Fix "Overwrites the admin password on upgrades": Merge proposed patch
     from Guido Günther. (Closes: #666050).
   * Fix "File conflict with opennebula 2.2.1-1": Add Breaks/Replaces on
     opennebula (<< 3.2.1-1~) (Closes: #665952).
   * Fix "oneacct does not look in system wide locations for require's":
     Backport upstream fix from bugID:1063 (Closes: #663075).
   * opennebula-node Recommends: openssh-server | ssh-server (Closes: #665948).
   * d/README.Debian: Update for new onehost syntax (Closes: #665975).
   * d/rules: Enable security hardening options and -Wl,--as-needed.
Checksums-Sha1: 
 83da77c0031115510f2eccaf868c1c516120826f 2636 opennebula_3.2.1-2.dsc
 4ddedbe7a65f4b0ade1fb2838488f650caa0a5c2 22806 opennebula_3.2.1-2.debian.tar.gz
 ccb05a44bcb1411eb8d86d6ff26ef97c0b8a594f 828062 opennebula_3.2.1-2_amd64.deb
 e4042f310aa2e8d10e95b9f5ba0d23c5588ef676 204186 
opennebula-sunstone_3.2.1-2_all.deb
 8af308934ed78bae7e63165ee1e288b0cac393b5 10316 
opennebula-common_3.2.1-2_all.deb
 510f88383a4954d0671361c45114ad3d0467401c 10886 opennebula-node_3.2.1-2_all.deb
 b53cdc3172792b83a409a6c5250c5716554ef246 40010 ruby-opennebula_3.2.1-2_all.deb
 085ab31628f2e570410a070d65c07a7550fd0b78 63084 opennebula-tools_3.2.1-2_all.deb
 1b17ca0732c175bd224c6fc68d472d45039c62f8 42172 
libopennebula-java_3.2.1-2_all.deb
 dfde2500fd23513be24578fc8ab2d4d99dca7fac 89476 
libopennebula-java-doc_3.2.1-2_all.deb
Checksums-Sha256: 
 ff55294a530ee802add2a30ef75daaa85bb7a085dc4e12f35b27a10cb143caf8 2636 
opennebula_3.2.1-2.dsc
 968211d1ab6e5486e2f7ec86d50657e26f29dabe460cb09664867afc1fc72dc4 22806 
opennebula_3.2.1-2.debian.tar.gz
 c80f0d1d2f8221b27ea11d3e12c068091bd46ddc0e3c7b2eaa5c8364758be4ee 828062 
opennebula_3.2.1-2_amd64.deb
 9541fe6f52e99bc52f4b2a30bdf90dfc23ec645c310627f8b4fe61f8aae15994 204186 
opennebula-sunstone_3.2.1-2_all.deb
 2c03edc6e10bb8ba42ea4aec5b25663d3116a7c65715bd4e68f0142dcaa9a8fb 10316 
opennebula-common_3.2.1-2_all.deb
 936e61c0d28e89918c314b9702fb07203ecc9c5cde2c32be60a5ce0a760a6abf 10886 
opennebula-node_3.2.1-2_all.deb
 7657bcdd3c23c710de739f38ca9cb6836dc6d8b2883806b651beb4184201c655 40010 
ruby-opennebula_3.2.1-2_all.deb
 bcfeef28a20586115764f0a72039be95cf69581e9c60afa19d52284faedadb79 63084 
opennebula-tools_3.2.1-2_all.deb
 27a99e5c081f670a6c423c9e9f8c9daa728a262529de11dcbfd2ca4458163e57 42172 
libopennebula-java_3.2.1-2_all.deb
 88e59375687e81f90d06280bb8f816408dc672bd0bca3b6a7a7d238153cdfb82 89476 
libopennebula-java-doc_3.2.1-2_all.deb
Files: 
 d4cc924a543f7eac171e01f75e87b6fa 2636 utils extra opennebula_3.2.1-2.dsc
 d30fd9bc675a9c472796ee9e5e116f45 22806 utils extra 
opennebula_3.2.1-2.debian.tar.gz
 7653b2b3d34eccc171fd0540e80d6256 828062 utils extra 
opennebula_3.2.1-2_amd64.deb
 e400b4bdf88e0693535af9ccffb294f0 204186 utils extra 
opennebula-sunstone_3.2.1-2_all.deb
 cff01f6a7dcb562e42e61bd84fe802c5 10316 utils extra 
opennebula-common_3.2.1-2_all.deb
 e0ca04d6f06d84312824d2664c3952e7 10886 utils extra 
opennebula-node_3.2.1-2_all.deb
 98d6ea7c939a139c55e752454137bcbe 40010 ruby extra 
ruby-opennebula_3.2.1-2_all.deb
 0e8e1e60583f01bcefebbf84e9bb780e 63084 utils extra 
opennebula-tools_3.2.1-2_all.deb
 87e680396f049df8324114b83c5b4542 42172 java extra 
libopennebula-java_3.2.1-2_all.deb
 c280e07a6452b68ed2f13c4759bb46e5 89476 doc extra 
libopennebula-java-doc_3.2.1-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJPeD2nAAoJEHXiDM0z50n8S9QQALlpoNcy+WY1KZ0dD+fxlOZV
eDg8jsFfV4WpFdvqWXfZgxsFqetbg0YW/WG4TlId3jdR/UMUIlu0iWr6Vy0l8hwi
stLD1fQGIo1p9o1pbLepz2tq0WhiY9ZA8F2W6OY2aGw17TlAtzxhcNYf0awGtTBq
GShS4BAiqFYEnj0Q1br1/0U1yKq10a5qEvRWsVU3W0M8O0rnE66gtwrtBporBlsG
xDXkevHJklkTmJJJu0yLeBLXdtqoSgBk8X7NTtT9nPe1MnJLG4u+8iXtKJbvsftf
8JULxw3lc6pPb2ioifyl3wTMpt2xqw9PFyn5X59NRNMomMwWggs0yJyJNKFzvShh
PMZOe/JGjKOiMpA8AxAKpAqWwree6FYMRGyfl9Nf29H+VE6VlyZhyTCsbzOsEKyO
VNe3/JTz47YhdBtlEkgJOPsexiXwjMkJNRgOtixsu9i0ymDU9s4gMCbVRXqnZoXJ
FPmkcPh5897zvc8+6GDEm7/Sl2N2ph3qevtPv8a46G4H0cqbKcA1ny5CDYgFwMM7
iquvrGx28/IWcqF8PqcEB+UeqMm6VpH/FfmLxYFPnw43G0/xrIuC+5HrlTADneU5
dkXQbGog8yhzlvsP63YBmd//WAeUyvhb+i2m6Q/01Lk3KDZrcfkxj2lE5IX5Jduk
evrH44q6e020zGUla0on
=eSFB
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to