← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1391895] [NEW] init-script openstack-neutron-openvswitch-agent does not use conf file

 

Public bug reported:

At least the SLES RPM-Package uses the /etc/sysconfig/neutron file
directly. Instead ist should read it's contents.

The init-script looks like this:

NEUTRON_PLUGIN_CONF="/etc/sysconfig/neutron"
NEUTRON_PLUGIN_ARGS=""

if [ -n "$NEUTRON_PLUGIN_CONF" ] ; then
        PLUGIN_ARGS="$NEUTRON_PLUGIN_ARGS --config-file=$NEUTRON_PLUGIN_CONF"
fi

So it uses the sysconfig-file as a config-parameter. Instead it should
read it's content and uses that instead, as openstack-neutron does:

NEUTRON_SYSCONFIG=/etc/sysconfig/neutron
test -r $NEUTRON_SYSCONFIG || exit 6
. $NEUTRON_SYSCONFIG

CONF_ARGS="--config-file /etc/neutron/neutron.conf"
for i in $NEUTRON_PLUGIN_CONF; do
        CONF_ARGS="$CONF_ARGS --config-file $i"
done

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1391895

Title:
  init-script openstack-neutron-openvswitch-agent does not use conf file

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  At least the SLES RPM-Package uses the /etc/sysconfig/neutron file
  directly. Instead ist should read it's contents.

  The init-script looks like this:

  NEUTRON_PLUGIN_CONF="/etc/sysconfig/neutron"
  NEUTRON_PLUGIN_ARGS=""

  if [ -n "$NEUTRON_PLUGIN_CONF" ] ; then
          PLUGIN_ARGS="$NEUTRON_PLUGIN_ARGS --config-file=$NEUTRON_PLUGIN_CONF"
  fi

  So it uses the sysconfig-file as a config-parameter. Instead it should
  read it's content and uses that instead, as openstack-neutron does:

  NEUTRON_SYSCONFIG=/etc/sysconfig/neutron
  test -r $NEUTRON_SYSCONFIG || exit 6
  . $NEUTRON_SYSCONFIG

  CONF_ARGS="--config-file /etc/neutron/neutron.conf"
  for i in $NEUTRON_PLUGIN_CONF; do
          CONF_ARGS="$CONF_ARGS --config-file $i"
  done

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1391895/+subscriptions


Follow ups

References