Code Review
/
ovsnfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fuel-plugins: Fuel8 Liberty rebase
[ovsnfv.git]
/
fuel-plugin-ovsnfv
/
deployment_scripts
/
puppet
/
modules
/
ovsdpdk
/
files
/
agents_flavors_update.sh
diff --git
a/fuel-plugin-ovsnfv/deployment_scripts/puppet/modules/ovsdpdk/files/remove_agent.sh
b/fuel-plugin-ovsnfv/deployment_scripts/puppet/modules/ovsdpdk/files/agents_flavors_update.sh
similarity index 80%
rename from
fuel-plugin-ovsnfv/deployment_scripts/puppet/modules/ovsdpdk/files/remove_agent.sh
rename to
fuel-plugin-ovsnfv/deployment_scripts/puppet/modules/ovsdpdk/files/agents_flavors_update.sh
index
98ee30a
..
83164c1
100755
(executable)
--- a/
fuel-plugin-ovsnfv/deployment_scripts/puppet/modules/ovsdpdk/files/remove_agent.sh
+++ b/
fuel-plugin-ovsnfv/deployment_scripts/puppet/modules/ovsdpdk/files/agents_flavors_update.sh
@@
-1,15
+1,11
@@
#!/usr/bin/env bash
set -x
#!/usr/bin/env bash
set -x
-# access openstack cli
-export OS_PROJECT_NAME=admin
-export OS_USERNAME=$1
-export OS_PASSWORD=$2
-export OS_TENANT_NAME=$3
-export OS_AUTH_URL=https://$4:5000/v2.0
+# access openstack cli
+source /root/openrc
-sleep 1
5
0
+sleep 10
neutron agent-list
# Force update of vswitch agents
neutron agent-list
# Force update of vswitch agents
@@
-17,7
+13,7
@@
for i in `neutron agent-list | grep "Open vSwitch agent" | awk {'print $2'}`; do
neutron agent-update $i
done
neutron agent-update $i
done
-sleep 1
5
0
+sleep 10
neutron agent-list
# grep id and remove dead agent on all compute nodes
neutron agent-list
# grep id and remove dead agent on all compute nodes