Package: openstack-pkg-tools
Version: 75
Severity: normal
Tags: patch

Dear Maintainer,

I found that the "transport_url" line in several OpenStack config files was 
being updated incorrectly whenever their packages were upgraded. After package 
upgrade, the value would be "username:username@rabbitmqhost" instead of 
"username:password@rabbitmqhost". This appears to be caused when the old config 
value is parsed by pkgos_rabbit_read_conf.

-- System Information:
Debian Release: buster/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages openstack-pkg-tools depends on:
pn  autopkgtest        <none>
pn  gettext            <none>
pn  libxml-xpath-perl  <none>
pn  madison-lite       <none>
pn  po-debconf         <none>
pn  pristine-tar       <none>

openstack-pkg-tools recommends no packages.

openstack-pkg-tools suggests no packages.
diff --git a/pkgos_func b/pkgos_func
index 5eb3b94..140c6ac 100644
--- a/pkgos_func
+++ b/pkgos_func
@@ -301,7 +301,7 @@ pkgos_rabbit_read_conf () {
                                RB_HOST=$(echo ${NO_PROTO} | cut -d@ -f2)
                                RB_USER_PASS=$(echo ${NO_PROTO} | cut -d@ -f1)                                                               
                                RB_USER=$(echo ${RB_USER_PASS} | cut -d: -f1)                                                                
-                               RB_PASS=$(echo ${RB_USER_PASS} | cut -d: -f1)                                                                
+                               RB_PASS=$(echo ${RB_USER_PASS} | cut -d: -f2)                                                                
                                if [ -n "${RB_HOST}" ] ; then                                                                                
                                        db_set ${RB_DEBCONF_PREFIX}/rabbit-host ${RB_HOST}                                                   
                                fi

Reply via email to