X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=mcp%2Fconfig%2Fstates%2Fopendaylight;h=ae8b4cc92a51f13eb8701b294260b5cb15a90304;hb=29f7bab413201b24fa09c70eb08a569c78d56f9f;hp=d00a77352f7c13b85e995caf3c8a6defa51b3a48;hpb=6b8d6ac3c71ec04f94ffa6dc4ef13211c3fea326;p=fuel.git diff --git a/mcp/config/states/opendaylight b/mcp/config/states/opendaylight index d00a77352..ae8b4cc92 100755 --- a/mcp/config/states/opendaylight +++ b/mcp/config/states/opendaylight @@ -14,14 +14,14 @@ source "$(dirname "${BASH_SOURCE[0]}")/../../scripts/lib.sh" # Get OpenDaylight server options with prefix odl_ function odl() { - salt --out txt -I 'opendaylight:server' pillar.get "opendaylight:server:odl_$1" | cut -d ' ' -f2 + salt --out txt -C 'I@opendaylight:server and *01*' pillar.get "opendaylight:server:odl_$1" | cut -d ' ' -f2 } -# TODO: use service.masked state instead once salt get updated to 2017.7.0+ -salt -I 'opendaylight:server' service.mask opendaylight -salt -I 'opendaylight:server' state.sls opendaylight - +wait_for 5.0 "salt -I 'opendaylight:server' state.sls opendaylight" wait_for 20 "salt --out yaml -C 'I@neutron:server and *01*' network.connect $(odl bind_ip) $(odl rest_port) | fgrep -q 'result: true'" -# settle down neutron api and agents -sleep 180 +# https://bugs.launchpad.net/networking-odl/+bug/1822559 +FILE=/usr/lib/python3/dist-packages/networking_odl/cmd/set_ovs_hostconfigs.py +PFILE=/var/tmp/odl_hostconfig.patch +salt -I 'linux:network:bridge:openvswitch' pkg.install python3-networking-odl +salt -I 'linux:network:bridge:openvswitch' cmd.run "patch -R -s --dry-run $FILE < $PFILE || patch $FILE < $PFILE"