astara-ctl warning message for deprecated AMQP configuration

Bug #1524595 reported by Eric Lopez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Astara
Fix Released
Low
Unassigned

Bug Description

In the astara logs and astara-ctl command - warning messages displayed for deprecated commands:

stack@devstack:/etc/nova$ astara-ctl poll
using amqp at 'amqp://stackrabbit:secret@127.0.0.1:/' exchange 'neutron'
sending poll instruction
Use of amqp_url is deprecated. Please instead use options defined in oslo_messaging_rabbit to declare your AMQP connection.
Option "rabbit_host" from group "DEFAULT" is deprecated. Use option "rabbit_host" from group "oslo_messaging_rabbit".
Option "rabbit_password" from group "DEFAULT" is deprecated. Use option "rabbit_password" from group "oslo_messaging_rabbit".

/opt/stack/logs/astara.log:
******************
2015-12-07 21:26:12.690 WARNING astara.common.rpc:91517:pmain:tmain [
-] Use of amqp_url is deprecated. Please instead use opt
ions defined in oslo_messaging_rabbit to declare your AMQP connection.

Fix: In /etc/astara/orchestrator.ini file

Comment out
amqp_url = amqp://stackrabbit:secret@127.0.0.1:/

Create new section

[oslo_messaging_rabbit]

and move the following lines under this section

rabbit_userid = stackrabbit
rabbit_password = secret
rabbit_hosts = 127.0.0.1

Default INI file astara/etc/rug.ini sets these values. Need to fix astara/devstack/plugin.sh file with changes

Remove
 iniset $ASTARA_CONF DEFAULT amqp_url "amqp://$RABBIT_USERID:$RABBIT_PASSWORD
@$RABBIT_HOST:$RABBIT_PORT/"

Add
iniset $ASTARA_CONF oslo_messaging_rabbit rabbit_userid $RABBIT_USERID
iniset $ASTARA_CONF oslo_messaging_rabbit rabbit_password $RABBIT_PASSWORD
iniset $ASTARA_CONF oslo_messaging_rabbit rabbit_hosts $RABBIT_HOST

Changed in astara:
status: New → Confirmed
importance: Undecided → Low
summary: - devstack warning message for deprecated AMQP configuration
+ astara-ctl warning message for deprecated AMQP configuration
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to astara (master)

Fix proposed to branch: master
Review: https://review.openstack.org/256171

Changed in astara:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to astara (master)

Reviewed: https://review.openstack.org/256171
Committed: https://git.openstack.org/cgit/openstack/astara/commit/?id=e92c2e8da58fbc52c8fd5871d2667c2425e02d63
Submitter: Jenkins
Branch: master

commit e92c2e8da58fbc52c8fd5871d2667c2425e02d63
Author: Adam Gandelman <email address hidden>
Date: Thu Dec 10 17:32:16 2015 -0800

    Deprecate usage of amqp_url in favor of oslo.messaging backend config

    This deprecates usage of the old amqp_url in favor of using backend-specific
    oslo.messaging configuration. Removes the old, pre-Liberty options and silences
    a bunch of deprecation warnings to boot.

    Change-Id: Ib666901c28f66a7616aa445ecc7120fe9d1e1364
    Closes-bug: #1524595

Changed in astara:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.