Details
-
Type:
Bug
-
Status:
Fix Committed
-
Priority:
Unknown
-
Resolution: Fixed
-
Affects Version/s: 0.9.16
-
Fix Version/s: None
-
Component/s: Chef Server, Packages
-
Labels:None
-
Environment:
debian/squeeze
rabbitmq-server 2.3.1-1opscode1
Description
I've the following error when upgrading the chef-solr package:
Paramétrage de chef-solr (0.9.16+dfsg-1) ...
Creating user "chef" ...
Error: {user_already_exists,<<"chef">>}
The rabbitmq_has_user test is done like this in the postinst:
rabbitmqctl list_users | grep -x "^chef$" 1>/dev/null
However when i manually run the command is see that list_users also add a boolean value to the username, so the grep fail everytime:
- rabbitmqctl list_users
Listing users ...
chef false
guest true
...done.
To unlock the situation i've changed the grep to <<grep -e "^chef" >>
This has hit me with upgrading from chef-solr 0.10 to 0.10.2 on Ubuntu 11.04. Following the description, here's what I get from rabbitmqctl:
root@overmind:~# rabbitmqctl list_users Listing users ... chef false guest true ...done. root@overmind:~# rabbitmqctl list_users | cat -A Listing users ...$ chef^Ifalse$ guest^Itrue$ ...done.$ root@overmind:~# rabbitmqctl status Status of node rabbit@overmind ... [{running_applications,[{rabbit,"RabbitMQ","2.3.1"}, {os_mon,"CPO CXC 138 46","2.2.4"}, {sasl,"SASL CXC 138 11","2.1.8"}, {mnesia,"MNESIA CXC 138 12","4.4.12"}, {stdlib,"ERTS CXC 138 10","1.16.4"}, {kernel,"ERTS CXC 138 10","2.13.4"}]}, {nodes,[{disc,[rabbit@overmind]}]}, {running_nodes,[rabbit@overmind]}] ...done. root@overmind:~# dpkg -l rabbitmq-server Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii rabbitmq-serve 2.3.1-1ubuntu1 An AMQP server written in ErlangDeleting rabbitmq user (rabbitmqct delete_user chef) allowed me to upgrade the package.