Fix devstack policy.json, chain_mapping conf

Neutron user is added to devstack policy.json
which is used by Nova to query Neutron.

chain_mapping driver is added to policy_drivers
configuration and is used instantiate service chains.

Neither of the configrations are new, they were missed
during the initial commit of the devstack plugin.

Change-Id: I4a02a45953ed49df586ca807f220f6190266469e
This commit is contained in:
Sumit Naiksatam 2016-04-19 21:03:36 -07:00
parent cdfa14e189
commit 44403d46be
2 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,8 @@ function install_gbpservice {
mv $GBPSERVICE_DIR/test-requirements.txt $GBPSERVICE_DIR/_test-requirements.txt
setup_develop $GBPSERVICE_DIR
mv -f $NEUTRON_CONF_DIR/policy.json $NEUTRON_CONF_DIR/policy.json.original 2>/dev/null; true
cp -f $GBPSERVICE_DIR/etc/policy.json $NEUTRON_CONF_DIR/policy.json
cp -f $GBPSERVICE_DIR/etc/policy.json $Q_POLICY_FILE
sed -i 's/"context_is_admin": "role:admin"/"context_is_admin": "role:admin or user_name:neutron"/g' $Q_POLICY_FILE
mv $GBPSERVICE_DIR/_test-requirements.txt $GBPSERVICE_DIR/test-requirements.txt
}

View File

@ -10,7 +10,7 @@ function gbp_configure_heat {
}
function gbp_configure_neutron {
iniset $NEUTRON_CONF group_policy policy_drivers "implicit_policy,resource_mapping"
iniset $NEUTRON_CONF group_policy policy_drivers "implicit_policy,resource_mapping,chain_mapping"
iniset $NEUTRON_CONF group_policy extension_drivers "proxy_group"
iniset $NEUTRON_CONF servicechain servicechain_drivers "simplechain_driver"
iniset $NEUTRON_CONF node_composition_plugin node_plumber "stitching_plumber"