Compare commits
359 Commits
1.3.0
...
queens-eol
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5307f5a80e | ||
|
|
b5467a2a1f | ||
|
|
83411ec89f | ||
|
|
08750536e7 | ||
|
|
9f7ccfe408 | ||
|
|
fb2619e538 | ||
|
|
6bd857fa0e | ||
|
|
e0faeea608 | ||
|
|
61aca40e6e | ||
|
|
b293389734 | ||
|
|
050e6d58f1 | ||
|
|
7223d35c47 | ||
|
|
57f1971982 | ||
|
|
c9b2b2aa39 | ||
|
|
a42c31c221 | ||
|
|
403ec94bc1 | ||
|
|
3431b77388 | ||
|
|
eb4cacc00e | ||
|
|
40a653215f | ||
|
|
1492f5d8dc | ||
|
|
76263f149a | ||
|
|
028006d15d | ||
|
|
d27ba8cc2a | ||
|
|
33750ce7a9 | ||
|
|
cb8d1a98d6 | ||
|
|
f32252d510 | ||
|
|
4849f8dde9 | ||
|
|
0cafdcdee9 | ||
|
|
3a70225164 | ||
|
|
892c766ac4 | ||
|
|
63a3fd84ae | ||
|
|
287ace1dcc | ||
|
|
4b302e415e | ||
|
|
f24744c910 | ||
|
|
d9a85eda2c | ||
|
|
82c8633e42 | ||
|
|
d3f23795f5 | ||
|
|
e7f4456a80 | ||
|
|
a36a309e2e | ||
|
|
8e3affd9ac | ||
|
|
71e979cae0 | ||
|
|
6edfd34a53 | ||
|
|
0c8c32e69e | ||
|
|
9138b7bacb | ||
|
|
072822d920 | ||
|
|
f67ce8cca5 | ||
|
|
9e6f768263 | ||
|
|
ba9c89186b | ||
|
|
16e7d9c13b | ||
|
|
c3536406bd | ||
|
|
0c66fe2e65 | ||
|
|
74933bf0ba | ||
|
|
1dae83da57 | ||
|
|
5ec8932182 | ||
|
|
701b258dc7 | ||
|
|
f7fcdf14d0 | ||
|
|
47ba6c0808 | ||
|
|
5b5fbbedb4 | ||
|
|
a1c575bfc5 | ||
|
|
27e887556d | ||
|
|
891f6bc241 | ||
|
|
5dd6817d47 | ||
|
|
7cdcb4743e | ||
|
|
6d03c4c543 | ||
|
|
bcc129cf94 | ||
|
|
40cff311c6 | ||
|
|
1a48a7fc57 | ||
|
|
652aa54586 | ||
|
|
42a3886ded | ||
|
|
3430493de1 | ||
|
|
f5bcf9d355 | ||
|
|
d809523bef | ||
|
|
bfe3c28986 | ||
|
|
3c8caa3d0a | ||
|
|
766d064dd0 | ||
|
|
ce196b68c4 | ||
|
|
42130c42a1 | ||
|
|
1a8639d256 | ||
|
|
1702fe1a83 | ||
|
|
354ebd35cc | ||
|
|
7297603f65 | ||
|
|
9626cb1356 | ||
|
|
9e027940d7 | ||
|
|
3754938d96 | ||
|
|
8a7f930a64 | ||
|
|
f7e506155b | ||
|
|
54da2a75fb | ||
|
|
5cbb9aca7e | ||
|
|
bd79882b16 | ||
|
|
960c50ba45 | ||
|
|
9411f85cd2 | ||
|
|
b4370f0461 | ||
|
|
97799521f9 | ||
|
|
96fa7f33ac | ||
|
|
1c2d0aa1f2 | ||
|
|
070aed7076 | ||
|
|
2b402d3cbf | ||
|
|
cca3e75ac1 | ||
|
|
6f27275f44 | ||
|
|
95548af426 | ||
|
|
cdc847d352 | ||
|
|
b69244f8ef | ||
|
|
cbd6d88025 | ||
|
|
028d7c939c | ||
|
|
a8fa969379 | ||
|
|
80ee4b29f5 | ||
|
|
e562c9173c | ||
|
|
ec0c359037 | ||
|
|
3b6bef180b | ||
|
|
640e4e1fea | ||
|
|
eeb817cd6e | ||
|
|
c6afa7c320 | ||
|
|
9ccd17e40b | ||
|
|
2a7e0d652c | ||
|
|
a94e35b60e | ||
|
|
72e3d5c7f9 | ||
|
|
be56441e55 | ||
|
|
aa2b213a45 | ||
|
|
668513d771 | ||
|
|
0242d33adb | ||
|
|
c38dc9828b | ||
|
|
c2e16bfa96 | ||
|
|
4ce1a9096b | ||
|
|
13644429b7 | ||
|
|
b8cc506fbe | ||
|
|
02163d64aa | ||
|
|
d91f0bff22 | ||
|
|
c91f6479f0 | ||
|
|
92572c5dec | ||
|
|
a8f08065fd | ||
|
|
e401cb7c9d | ||
|
|
0745d904fc | ||
|
|
bc4a58d2d7 | ||
|
|
f14795d29f | ||
|
|
e0104074b6 | ||
|
|
2993dea376 | ||
|
|
17b6019ea9 | ||
|
|
5969e5b52a | ||
|
|
e55f3793b6 | ||
|
|
901c598dd7 | ||
|
|
e41a90d7ad | ||
|
|
fa31341bbb | ||
|
|
051b4fcd06 | ||
|
|
cd045400ed | ||
|
|
2db668af30 | ||
|
|
39b1fcf07f | ||
|
|
94babf61da | ||
|
|
a5fba7ce28 | ||
|
|
24e01b6c98 | ||
|
|
4007f93aac | ||
|
|
77c9f88fc4 | ||
|
|
e9b7f067c5 | ||
|
|
f8aa02c4a7 | ||
|
|
3595108e49 | ||
|
|
d536ed248b | ||
|
|
71730c0eaf | ||
|
|
1b4c5dfc8b | ||
|
|
4179cfd036 | ||
|
|
49550db566 | ||
|
|
e0eba0ee7b | ||
|
|
165853ee2c | ||
|
|
0a7152fa55 | ||
|
|
6c29df11ca | ||
|
|
55bd0fd038 | ||
|
|
907cc2df16 | ||
|
|
8dcac1597b | ||
|
|
a3be1587e3 | ||
|
|
aa72f984e4 | ||
|
|
bcd2040025 | ||
|
|
f2c9dc9c32 | ||
|
|
6c94c235fc | ||
|
|
7ed45e3ef1 | ||
|
|
8722951022 | ||
|
|
568d4e831c | ||
|
|
deefc857ba | ||
|
|
d33736e7f0 | ||
|
|
1b1779cc49 | ||
|
|
d727bc3076 | ||
|
|
875b7e1ca3 | ||
|
|
c7f8755f9c | ||
|
|
0472715e0c | ||
|
|
2482e82548 | ||
|
|
e9c420467e | ||
|
|
2d5db7082b | ||
|
|
4a3a50435a | ||
|
|
05b57fee7a | ||
|
|
3729e39552 | ||
|
|
91911c8284 | ||
|
|
d7d56cbd79 | ||
|
|
84fb7423f1 | ||
|
|
ee5b01d33b | ||
|
|
b35feb5432 | ||
|
|
d722b62b97 | ||
|
|
bf713ac7e1 | ||
|
|
8343f4bf46 | ||
|
|
cd3f792eef | ||
|
|
7f7f7a9fd2 | ||
|
|
d5b778b730 | ||
|
|
62a902df7c | ||
|
|
5b6f65630d | ||
|
|
e5031ef04a | ||
|
|
ab2408ea67 | ||
|
|
4c0d2ab4b2 | ||
|
|
cf8d7bb2f4 | ||
|
|
b3d60cb13d | ||
|
|
ffdc3b554d | ||
|
|
9933d61065 | ||
|
|
b4bc1599e6 | ||
|
|
280188a762 | ||
|
|
3942f44e56 | ||
|
|
6208caba0c | ||
|
|
f3b3e82313 | ||
|
|
be69ebd8bd | ||
|
|
7d33bf8813 | ||
|
|
b3fa8a0f86 | ||
|
|
9d3cc28d2d | ||
|
|
eed2e128b0 | ||
|
|
7091fe435f | ||
|
|
7f9b562bbd | ||
|
|
f445fc451e | ||
|
|
fa7749ac8f | ||
|
|
e6c06c1bdf | ||
|
|
f461b8c567 | ||
|
|
c717be12a6 | ||
|
|
5814914aef | ||
|
|
fb3c2355a6 | ||
|
|
d4e6e82dd2 | ||
|
|
816765374d | ||
|
|
35e502f666 | ||
|
|
ee36bb8180 | ||
|
|
51b3a15c90 | ||
|
|
0213bee63b | ||
|
|
f516a9c3b9 | ||
|
|
8e89d5489c | ||
|
|
773b20a05f | ||
|
|
03d6580819 | ||
|
|
afa73238c4 | ||
|
|
2467780f9d | ||
|
|
25854aabd8 | ||
|
|
e4f4588e69 | ||
|
|
1465aa0c5f | ||
|
|
e6e0b3dbaa | ||
|
|
d8274e062e | ||
|
|
28b9766693 | ||
|
|
74bc31e562 | ||
|
|
998e86f6c7 | ||
|
|
a5e7fd90c2 | ||
|
|
a99a9ae69e | ||
|
|
6e6e5907ee | ||
|
|
c887499b4d | ||
|
|
58e4bf2727 | ||
|
|
1df395d31d | ||
|
|
f811c8af48 | ||
|
|
e447393f18 | ||
|
|
a25be6498c | ||
|
|
8e372ee153 | ||
|
|
7bc984b84a | ||
|
|
eeee32ad36 | ||
|
|
3a7fc7a8e5 | ||
|
|
63697d5a6e | ||
|
|
887fa746ae | ||
|
|
e74095da1f | ||
|
|
65c7cd0e02 | ||
|
|
5df54ea3fb | ||
|
|
51dba60e01 | ||
|
|
a9f33467fb | ||
|
|
4640d88adf | ||
|
|
154aca3948 | ||
|
|
fa7afc89ab | ||
|
|
790548fff0 | ||
|
|
a2fa13c8ff | ||
|
|
4c3c84dee9 | ||
|
|
8f585c3def | ||
|
|
c9a43d8da4 | ||
|
|
2ea7d61ac8 | ||
|
|
bbfd6711fc | ||
|
|
162aaa75ee | ||
|
|
4cb2b45e3a | ||
|
|
50935af15f | ||
|
|
cf92ece936 | ||
|
|
b7c4a0467c | ||
|
|
c12f132699 | ||
|
|
0329dafec9 | ||
|
|
e73ead4807 | ||
|
|
cb90f60cc1 | ||
|
|
d7994a2466 | ||
|
|
62822fa933 | ||
|
|
3f0ff1ed7e | ||
|
|
8e3b5c90a6 | ||
|
|
1c5e254124 | ||
|
|
39e200e5eb | ||
|
|
2650b89fe5 | ||
|
|
d5bcd37478 | ||
|
|
0c4b439c5e | ||
|
|
0e43504e44 | ||
|
|
322843b21c | ||
|
|
1b413f5536 | ||
|
|
f76a628d1f | ||
|
|
3e6ea71cbc | ||
|
|
e5c3df0c2f | ||
|
|
6005d6ebdd | ||
|
|
965af1b6fd | ||
|
|
daf428ad69 | ||
|
|
ab64dab646 | ||
|
|
eaa09a4cfc | ||
|
|
5c86a54d20 | ||
|
|
e78f2d073f | ||
|
|
47004b7c67 | ||
|
|
9ecd22f4c8 | ||
|
|
daee2336a4 | ||
|
|
893b730a44 | ||
|
|
d5b6e0a54f | ||
|
|
13b89c8dd2 | ||
|
|
7a300832b2 | ||
|
|
d218e6f107 | ||
|
|
d2f70f9d6f | ||
|
|
4951854f76 | ||
|
|
ffbd263888 | ||
|
|
985c6c49f9 | ||
|
|
adac2c0c16 | ||
|
|
f700ca4e0f | ||
|
|
5b741b2a4d | ||
|
|
382f641b22 | ||
|
|
5da5db8b56 | ||
|
|
5cc4716a95 | ||
|
|
c4888fee63 | ||
|
|
76f85591ea | ||
|
|
b006cadd22 | ||
|
|
1fd2053001 | ||
|
|
6a920fd307 | ||
|
|
514eeb75ef | ||
|
|
b43633fa6d | ||
|
|
d5a7d7674c | ||
|
|
b532355232 | ||
|
|
bce87b3d05 | ||
|
|
783627626c | ||
|
|
3043e57066 | ||
|
|
be8b163a62 | ||
|
|
4f38595e4e | ||
|
|
30def6f35b | ||
|
|
0b31828a01 | ||
|
|
b5ac97bc2d | ||
|
|
398974a7b0 | ||
|
|
3a29b4e710 | ||
|
|
8024dbf913 | ||
|
|
529b0d34ee | ||
|
|
dac0924194 | ||
|
|
3bb66b645c | ||
|
|
63cebc0bfa | ||
|
|
5a28ac772a | ||
|
|
fe7ad9e42b | ||
|
|
711de94855 | ||
|
|
a24b7f0b61 | ||
|
|
c03668cb02 | ||
|
|
aab18245eb | ||
|
|
c12178920b | ||
|
|
f733fbeecd | ||
|
|
bff76de6f1 | ||
|
|
22ee0aa8f7 |
4
.gitignore
vendored
4
.gitignore
vendored
@@ -24,6 +24,7 @@ pip-log.txt
|
|||||||
.coverage*
|
.coverage*
|
||||||
.tox
|
.tox
|
||||||
nosetests.xml
|
nosetests.xml
|
||||||
|
.stestr/
|
||||||
.testrepository
|
.testrepository
|
||||||
.venv
|
.venv
|
||||||
.idea
|
.idea
|
||||||
@@ -72,3 +73,6 @@ releasenotes/build
|
|||||||
|
|
||||||
# Desktop Service Store
|
# Desktop Service Store
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
|
||||||
|
# Autogenerated sample config file
|
||||||
|
etc/watcher/watcher.conf.sample
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
[gerrit]
|
[gerrit]
|
||||||
host=review.openstack.org
|
host=review.opendev.org
|
||||||
port=29418
|
port=29418
|
||||||
project=openstack/watcher.git
|
project=openstack/watcher.git
|
||||||
|
defaultbranch=stable/queens
|
||||||
|
|||||||
4
.stestr.conf
Normal file
4
.stestr.conf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_path=${OS_TEST_PATH:-./watcher/tests}
|
||||||
|
top_dir=./
|
||||||
|
|
||||||
45
.zuul.yaml
Normal file
45
.zuul.yaml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
- project:
|
||||||
|
templates:
|
||||||
|
- openstack-python-jobs
|
||||||
|
- openstack-python35-jobs
|
||||||
|
- publish-openstack-sphinx-docs
|
||||||
|
- check-requirements
|
||||||
|
- release-notes-jobs
|
||||||
|
check:
|
||||||
|
jobs:
|
||||||
|
- watcher-tempest-multinode
|
||||||
|
|
||||||
|
gate:
|
||||||
|
queue: watcher
|
||||||
|
- job:
|
||||||
|
name: watcher-tempest-base-multinode
|
||||||
|
parent: legacy-dsvm-base-multinode
|
||||||
|
run: playbooks/legacy/watcher-tempest-base-multinode/run.yaml
|
||||||
|
post-run: playbooks/legacy/watcher-tempest-base-multinode/post.yaml
|
||||||
|
timeout: 4200
|
||||||
|
required-projects:
|
||||||
|
- openstack/devstack-gate
|
||||||
|
- openstack/python-openstackclient
|
||||||
|
- openstack/python-watcherclient
|
||||||
|
- openstack/watcher
|
||||||
|
- openstack/watcher-tempest-plugin
|
||||||
|
nodeset: legacy-ubuntu-xenial-2-node
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: watcher-tempest-multinode
|
||||||
|
parent: watcher-tempest-base-multinode
|
||||||
|
voting: false
|
||||||
|
|
||||||
|
- job:
|
||||||
|
# This job is used by python-watcherclient repo
|
||||||
|
name: watcherclient-tempest-functional
|
||||||
|
parent: legacy-dsvm-base
|
||||||
|
run: playbooks/legacy/watcherclient-tempest-functional/run.yaml
|
||||||
|
post-run: playbooks/legacy/watcherclient-tempest-functional/post.yaml
|
||||||
|
timeout: 4200
|
||||||
|
required-projects:
|
||||||
|
- openstack/devstack
|
||||||
|
- openstack/devstack-gate
|
||||||
|
- openstack/python-openstackclient
|
||||||
|
- openstack/python-watcherclient
|
||||||
|
- openstack/watcher
|
||||||
@@ -42,7 +42,7 @@ WATCHER_AUTH_CACHE_DIR=${WATCHER_AUTH_CACHE_DIR:-/var/cache/watcher}
|
|||||||
|
|
||||||
WATCHER_CONF_DIR=/etc/watcher
|
WATCHER_CONF_DIR=/etc/watcher
|
||||||
WATCHER_CONF=$WATCHER_CONF_DIR/watcher.conf
|
WATCHER_CONF=$WATCHER_CONF_DIR/watcher.conf
|
||||||
WATCHER_POLICY_JSON=$WATCHER_CONF_DIR/policy.json
|
WATCHER_POLICY_YAML=$WATCHER_CONF_DIR/policy.yaml.sample
|
||||||
|
|
||||||
WATCHER_DEVSTACK_DIR=$WATCHER_DIR/devstack
|
WATCHER_DEVSTACK_DIR=$WATCHER_DIR/devstack
|
||||||
WATCHER_DEVSTACK_FILES_DIR=$WATCHER_DEVSTACK_DIR/files
|
WATCHER_DEVSTACK_FILES_DIR=$WATCHER_DEVSTACK_DIR/files
|
||||||
@@ -106,7 +106,25 @@ function configure_watcher {
|
|||||||
# Put config files in ``/etc/watcher`` for everyone to find
|
# Put config files in ``/etc/watcher`` for everyone to find
|
||||||
sudo install -d -o $STACK_USER $WATCHER_CONF_DIR
|
sudo install -d -o $STACK_USER $WATCHER_CONF_DIR
|
||||||
|
|
||||||
install_default_policy watcher
|
local project=watcher
|
||||||
|
local project_uc
|
||||||
|
project_uc=$(echo watcher|tr a-z A-Z)
|
||||||
|
local conf_dir="${project_uc}_CONF_DIR"
|
||||||
|
# eval conf dir to get the variable
|
||||||
|
conf_dir="${!conf_dir}"
|
||||||
|
local project_dir="${project_uc}_DIR"
|
||||||
|
# eval project dir to get the variable
|
||||||
|
project_dir="${!project_dir}"
|
||||||
|
local sample_conf_dir="${project_dir}/etc/${project}"
|
||||||
|
local sample_policy_dir="${project_dir}/etc/${project}/policy.d"
|
||||||
|
local sample_policy_generator="${project_dir}/etc/${project}/oslo-policy-generator/watcher-policy-generator.conf"
|
||||||
|
|
||||||
|
# first generate policy.yaml
|
||||||
|
oslopolicy-sample-generator --config-file $sample_policy_generator
|
||||||
|
# then optionally copy over policy.d
|
||||||
|
if [[ -d $sample_policy_dir ]]; then
|
||||||
|
cp -r $sample_policy_dir $conf_dir/policy.d
|
||||||
|
fi
|
||||||
|
|
||||||
# Rebuild the config file from scratch
|
# Rebuild the config file from scratch
|
||||||
create_watcher_conf
|
create_watcher_conf
|
||||||
@@ -163,7 +181,7 @@ function create_watcher_conf {
|
|||||||
iniset $WATCHER_CONF api host "$WATCHER_SERVICE_HOST"
|
iniset $WATCHER_CONF api host "$WATCHER_SERVICE_HOST"
|
||||||
iniset $WATCHER_CONF api port "$WATCHER_SERVICE_PORT"
|
iniset $WATCHER_CONF api port "$WATCHER_SERVICE_PORT"
|
||||||
|
|
||||||
iniset $WATCHER_CONF oslo_policy policy_file $WATCHER_POLICY_JSON
|
iniset $WATCHER_CONF oslo_policy policy_file $WATCHER_POLICY_YAML
|
||||||
|
|
||||||
iniset $WATCHER_CONF oslo_messaging_rabbit rabbit_userid $RABBIT_USERID
|
iniset $WATCHER_CONF oslo_messaging_rabbit rabbit_userid $RABBIT_USERID
|
||||||
iniset $WATCHER_CONF oslo_messaging_rabbit rabbit_password $RABBIT_PASSWORD
|
iniset $WATCHER_CONF oslo_messaging_rabbit rabbit_password $RABBIT_PASSWORD
|
||||||
@@ -296,6 +314,7 @@ function start_watcher {
|
|||||||
function stop_watcher {
|
function stop_watcher {
|
||||||
if [[ "$WATCHER_USE_MOD_WSGI" == "True" ]]; then
|
if [[ "$WATCHER_USE_MOD_WSGI" == "True" ]]; then
|
||||||
disable_apache_site watcher-api
|
disable_apache_site watcher-api
|
||||||
|
restart_apache_server
|
||||||
else
|
else
|
||||||
stop_process watcher-api
|
stop_process watcher-api
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP
|
|||||||
NOVA_INSTANCES_PATH=/opt/stack/data/instances
|
NOVA_INSTANCES_PATH=/opt/stack/data/instances
|
||||||
|
|
||||||
# Enable the Ceilometer plugin for the compute agent
|
# Enable the Ceilometer plugin for the compute agent
|
||||||
enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer
|
enable_plugin ceilometer https://git.openstack.org/openstack/ceilometer
|
||||||
disable_service ceilometer-acentral,ceilometer-collector,ceilometer-api
|
disable_service ceilometer-acentral,ceilometer-collector,ceilometer-api
|
||||||
|
|
||||||
LOGFILE=$DEST/logs/stack.sh.log
|
LOGFILE=$DEST/logs/stack.sh.log
|
||||||
|
|||||||
@@ -24,29 +24,23 @@ MULTI_HOST=1
|
|||||||
# This is the controller node, so disable nova-compute
|
# This is the controller node, so disable nova-compute
|
||||||
disable_service n-cpu
|
disable_service n-cpu
|
||||||
|
|
||||||
# Disable nova-network and use neutron instead
|
|
||||||
disable_service n-net
|
|
||||||
ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-agt,q-l3,neutron
|
|
||||||
|
|
||||||
# Enable remote console access
|
|
||||||
enable_service n-cauth
|
|
||||||
|
|
||||||
# Enable the Watcher Dashboard plugin
|
# Enable the Watcher Dashboard plugin
|
||||||
enable_plugin watcher-dashboard git://git.openstack.org/openstack/watcher-dashboard
|
enable_plugin watcher-dashboard https://git.openstack.org/openstack/watcher-dashboard
|
||||||
|
|
||||||
# Enable the Watcher plugin
|
# Enable the Watcher plugin
|
||||||
enable_plugin watcher git://git.openstack.org/openstack/watcher
|
enable_plugin watcher https://git.openstack.org/openstack/watcher
|
||||||
|
|
||||||
# Enable the Ceilometer plugin
|
# Enable the Ceilometer plugin
|
||||||
enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer
|
enable_plugin ceilometer https://git.openstack.org/openstack/ceilometer
|
||||||
|
|
||||||
# This is the controller node, so disable the ceilometer compute agent
|
# This is the controller node, so disable the ceilometer compute agent
|
||||||
disable_service ceilometer-acompute
|
disable_service ceilometer-acompute
|
||||||
|
|
||||||
# Enable the ceilometer api explicitly(bug:1667678)
|
# Enable the ceilometer api explicitly(bug:1667678)
|
||||||
enable_service ceilometer-api
|
enable_service ceilometer-api
|
||||||
|
|
||||||
# Enable the Gnocchi plugin
|
# Enable the Gnocchi plugin
|
||||||
enable_plugin gnocchi https://git.openstack.org/openstack/gnocchi
|
enable_plugin gnocchi https://github.com/gnocchixyz/gnocchi
|
||||||
|
|
||||||
LOGFILE=$DEST/logs/stack.sh.log
|
LOGFILE=$DEST/logs/stack.sh.log
|
||||||
LOGDAYS=2
|
LOGDAYS=2
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ _XTRACE_WATCHER_PLUGIN=$(set +o | grep xtrace)
|
|||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
echo_summary "watcher's plugin.sh was called..."
|
echo_summary "watcher's plugin.sh was called..."
|
||||||
source $DEST/watcher/devstack/lib/watcher
|
. $DEST/watcher/devstack/lib/watcher
|
||||||
|
|
||||||
# Show all of defined environment variables
|
# Show all of defined environment variables
|
||||||
(set -o posix; set)
|
(set -o posix; set)
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
# Make sure rabbit is enabled
|
# Make sure rabbit is enabled
|
||||||
enable_service rabbit
|
enable_service rabbit
|
||||||
|
|
||||||
|
# Make sure mysql is enabled
|
||||||
|
enable_service mysql
|
||||||
|
|
||||||
# Enable Watcher services
|
# Enable Watcher services
|
||||||
enable_service watcher-api
|
enable_service watcher-api
|
||||||
enable_service watcher-decision-engine
|
enable_service watcher-decision-engine
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ from docutils import nodes
|
|||||||
from docutils.parsers import rst
|
from docutils.parsers import rst
|
||||||
from docutils import statemachine
|
from docutils import statemachine
|
||||||
|
|
||||||
from watcher.version import version_info
|
from watcher.version import version_string
|
||||||
|
|
||||||
|
|
||||||
class BaseWatcherDirective(rst.Directive):
|
class BaseWatcherDirective(rst.Directive):
|
||||||
@@ -169,4 +169,4 @@ class WatcherFunc(BaseWatcherDirective):
|
|||||||
def setup(app):
|
def setup(app):
|
||||||
app.add_directive('watcher-term', WatcherTerm)
|
app.add_directive('watcher-term', WatcherTerm)
|
||||||
app.add_directive('watcher-func', WatcherFunc)
|
app.add_directive('watcher-func', WatcherFunc)
|
||||||
return {'version': version_info.version_string()}
|
return {'version': version_string}
|
||||||
|
|||||||
41
doc/notification_samples/action-cancel-end.json
Normal file
41
doc/notification_samples/action-cancel-end.json
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"priority": "INFO",
|
||||||
|
"payload": {
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.name": "ActionCancelPayload",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
|
"input_parameters": {
|
||||||
|
"param2": 2,
|
||||||
|
"param1": 1
|
||||||
|
},
|
||||||
|
"fault": null,
|
||||||
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
"updated_at": null,
|
||||||
|
"state": "CANCELLED",
|
||||||
|
"action_plan": {
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.name": "TerseActionPlanPayload",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
||||||
|
"global_efficacy": [],
|
||||||
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
"updated_at": null,
|
||||||
|
"state": "CANCELLING",
|
||||||
|
"audit_uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
|
"strategy_uuid": "cb3d0b58-4415-4d90-b75b-1e96878730e3",
|
||||||
|
"deleted_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parents": [],
|
||||||
|
"action_type": "nop",
|
||||||
|
"deleted_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"event_type": "action.cancel.end",
|
||||||
|
"publisher_id": "infra-optim:node0",
|
||||||
|
"timestamp": "2017-01-01 00:00:00.000000",
|
||||||
|
"message_id": "530b409c-9b6b-459b-8f08-f93dbfeb4d41"
|
||||||
|
}
|
||||||
51
doc/notification_samples/action-cancel-error.json
Normal file
51
doc/notification_samples/action-cancel-error.json
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
{
|
||||||
|
"priority": "ERROR",
|
||||||
|
"payload": {
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.name": "ActionCancelPayload",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
|
"input_parameters": {
|
||||||
|
"param2": 2,
|
||||||
|
"param1": 1
|
||||||
|
},
|
||||||
|
"fault": {
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.name": "ExceptionPayload",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"module_name": "watcher.tests.notifications.test_action_notification",
|
||||||
|
"exception": "WatcherException",
|
||||||
|
"exception_message": "TEST",
|
||||||
|
"function_name": "test_send_action_cancel_with_error"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
"updated_at": null,
|
||||||
|
"state": "FAILED",
|
||||||
|
"action_plan": {
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.name": "TerseActionPlanPayload",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
||||||
|
"global_efficacy": [],
|
||||||
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
"updated_at": null,
|
||||||
|
"state": "CANCELLING",
|
||||||
|
"audit_uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
|
"strategy_uuid": "cb3d0b58-4415-4d90-b75b-1e96878730e3",
|
||||||
|
"deleted_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parents": [],
|
||||||
|
"action_type": "nop",
|
||||||
|
"deleted_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"event_type": "action.cancel.error",
|
||||||
|
"publisher_id": "infra-optim:node0",
|
||||||
|
"timestamp": "2017-01-01 00:00:00.000000",
|
||||||
|
"message_id": "530b409c-9b6b-459b-8f08-f93dbfeb4d41"
|
||||||
|
}
|
||||||
41
doc/notification_samples/action-cancel-start.json
Normal file
41
doc/notification_samples/action-cancel-start.json
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"priority": "INFO",
|
||||||
|
"payload": {
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.name": "ActionCancelPayload",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
|
"input_parameters": {
|
||||||
|
"param2": 2,
|
||||||
|
"param1": 1
|
||||||
|
},
|
||||||
|
"fault": null,
|
||||||
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
"updated_at": null,
|
||||||
|
"state": "CANCELLING",
|
||||||
|
"action_plan": {
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.name": "TerseActionPlanPayload",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
||||||
|
"global_efficacy": [],
|
||||||
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
"updated_at": null,
|
||||||
|
"state": "CANCELLING",
|
||||||
|
"audit_uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
|
"strategy_uuid": "cb3d0b58-4415-4d90-b75b-1e96878730e3",
|
||||||
|
"deleted_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parents": [],
|
||||||
|
"action_type": "nop",
|
||||||
|
"deleted_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"event_type": "action.cancel.start",
|
||||||
|
"publisher_id": "infra-optim:node0",
|
||||||
|
"timestamp": "2017-01-01 00:00:00.000000",
|
||||||
|
"message_id": "530b409c-9b6b-459b-8f08-f93dbfeb4d41"
|
||||||
|
}
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
"watcher_object.name": "TerseActionPlanPayload",
|
"watcher_object.name": "TerseActionPlanPayload",
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
||||||
"global_efficacy": {},
|
"global_efficacy": [],
|
||||||
"created_at": "2016-10-18T09:52:05Z",
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
"updated_at": null,
|
"updated_at": null,
|
||||||
"state": "ONGOING",
|
"state": "ONGOING",
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
"watcher_object.name": "TerseActionPlanPayload",
|
"watcher_object.name": "TerseActionPlanPayload",
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
||||||
"global_efficacy": {},
|
"global_efficacy":[],
|
||||||
"created_at": "2016-10-18T09:52:05Z",
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
"updated_at": null,
|
"updated_at": null,
|
||||||
"state": "ONGOING",
|
"state": "ONGOING",
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"watcher_object.name": "TerseActionPlanPayload",
|
"watcher_object.name": "TerseActionPlanPayload",
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
||||||
"global_efficacy": {},
|
"global_efficacy": [],
|
||||||
"created_at": "2016-10-18T09:52:05Z",
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
"updated_at": null,
|
"updated_at": null,
|
||||||
"state": "ONGOING",
|
"state": "ONGOING",
|
||||||
|
|||||||
55
doc/notification_samples/action_plan-cancel-end.json
Normal file
55
doc/notification_samples/action_plan-cancel-end.json
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
{
|
||||||
|
"event_type": "action_plan.cancel.end",
|
||||||
|
"payload": {
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.name": "ActionPlanCancelPayload",
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
"deleted_at": null,
|
||||||
|
"audit_uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
|
"audit": {
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.name": "TerseAuditPayload",
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
"deleted_at": null,
|
||||||
|
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
|
"goal_uuid": "bc830f84-8ae3-4fc6-8bc6-e3dd15e8b49a",
|
||||||
|
"strategy_uuid": "75234dfe-87e3-4f11-a0e0-3c3305d86a39",
|
||||||
|
"scope": [],
|
||||||
|
"audit_type": "ONESHOT",
|
||||||
|
"state": "SUCCEEDED",
|
||||||
|
"parameters": {},
|
||||||
|
"interval": null,
|
||||||
|
"updated_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
||||||
|
"fault": null,
|
||||||
|
"state": "CANCELLED",
|
||||||
|
"global_efficacy": [],
|
||||||
|
"strategy_uuid": "cb3d0b58-4415-4d90-b75b-1e96878730e3",
|
||||||
|
"strategy": {
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.name": "StrategyPayload",
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
"deleted_at": null,
|
||||||
|
"name": "TEST",
|
||||||
|
"uuid": "cb3d0b58-4415-4d90-b75b-1e96878730e3",
|
||||||
|
"parameters_spec": {},
|
||||||
|
"display_name": "test strategy",
|
||||||
|
"updated_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"updated_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"priority": "INFO",
|
||||||
|
"message_id": "3984dc2b-8aef-462b-a220-8ae04237a56e",
|
||||||
|
"timestamp": "2016-10-18 09:52:05.219414",
|
||||||
|
"publisher_id": "infra-optim:node0"
|
||||||
|
}
|
||||||
65
doc/notification_samples/action_plan-cancel-error.json
Normal file
65
doc/notification_samples/action_plan-cancel-error.json
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
{
|
||||||
|
"event_type": "action_plan.cancel.error",
|
||||||
|
"publisher_id": "infra-optim:node0",
|
||||||
|
"priority": "ERROR",
|
||||||
|
"message_id": "9a45c5ae-0e21-4300-8fa0-5555d52a66d9",
|
||||||
|
"payload": {
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.name": "ActionPlanCancelPayload",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"fault": {
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.name": "ExceptionPayload",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"exception_message": "TEST",
|
||||||
|
"module_name": "watcher.tests.notifications.test_action_plan_notification",
|
||||||
|
"function_name": "test_send_action_plan_cancel_with_error",
|
||||||
|
"exception": "WatcherException"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
||||||
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
"strategy_uuid": "cb3d0b58-4415-4d90-b75b-1e96878730e3",
|
||||||
|
"strategy": {
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.name": "StrategyPayload",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"uuid": "cb3d0b58-4415-4d90-b75b-1e96878730e3",
|
||||||
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
"name": "TEST",
|
||||||
|
"updated_at": null,
|
||||||
|
"display_name": "test strategy",
|
||||||
|
"parameters_spec": {},
|
||||||
|
"deleted_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"updated_at": null,
|
||||||
|
"deleted_at": null,
|
||||||
|
"audit_uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
|
"audit": {
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.name": "TerseAuditPayload",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"parameters": {},
|
||||||
|
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
|
"goal_uuid": "bc830f84-8ae3-4fc6-8bc6-e3dd15e8b49a",
|
||||||
|
"strategy_uuid": "75234dfe-87e3-4f11-a0e0-3c3305d86a39",
|
||||||
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
"scope": [],
|
||||||
|
"updated_at": null,
|
||||||
|
"audit_type": "ONESHOT",
|
||||||
|
"interval": null,
|
||||||
|
"deleted_at": null,
|
||||||
|
"state": "SUCCEEDED"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"global_efficacy": [],
|
||||||
|
"state": "CANCELLING"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"timestamp": "2016-10-18 09:52:05.219414"
|
||||||
|
}
|
||||||
55
doc/notification_samples/action_plan-cancel-start.json
Normal file
55
doc/notification_samples/action_plan-cancel-start.json
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
{
|
||||||
|
"event_type": "action_plan.cancel.start",
|
||||||
|
"payload": {
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.name": "ActionPlanCancelPayload",
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
"deleted_at": null,
|
||||||
|
"audit_uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
|
"audit": {
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.name": "TerseAuditPayload",
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
"deleted_at": null,
|
||||||
|
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
|
"goal_uuid": "bc830f84-8ae3-4fc6-8bc6-e3dd15e8b49a",
|
||||||
|
"strategy_uuid": "75234dfe-87e3-4f11-a0e0-3c3305d86a39",
|
||||||
|
"scope": [],
|
||||||
|
"audit_type": "ONESHOT",
|
||||||
|
"state": "SUCCEEDED",
|
||||||
|
"parameters": {},
|
||||||
|
"interval": null,
|
||||||
|
"updated_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
||||||
|
"fault": null,
|
||||||
|
"state": "CANCELLING",
|
||||||
|
"global_efficacy": [],
|
||||||
|
"strategy_uuid": "cb3d0b58-4415-4d90-b75b-1e96878730e3",
|
||||||
|
"strategy": {
|
||||||
|
"watcher_object.namespace": "watcher",
|
||||||
|
"watcher_object.name": "StrategyPayload",
|
||||||
|
"watcher_object.version": "1.0",
|
||||||
|
"watcher_object.data": {
|
||||||
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
"deleted_at": null,
|
||||||
|
"name": "TEST",
|
||||||
|
"uuid": "cb3d0b58-4415-4d90-b75b-1e96878730e3",
|
||||||
|
"parameters_spec": {},
|
||||||
|
"display_name": "test strategy",
|
||||||
|
"updated_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"updated_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"priority": "INFO",
|
||||||
|
"message_id": "3984dc2b-8aef-462b-a220-8ae04237a56e",
|
||||||
|
"timestamp": "2016-10-18 09:52:05.219414",
|
||||||
|
"publisher_id": "infra-optim:node0"
|
||||||
|
}
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
"audit": {
|
"audit": {
|
||||||
"watcher_object.version": "1.0",
|
"watcher_object.version": "1.0",
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
|
"name": "my_audit",
|
||||||
"audit_type": "ONESHOT",
|
"audit_type": "ONESHOT",
|
||||||
"scope": [],
|
"scope": [],
|
||||||
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
"audit_uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
"audit_uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
"audit": {
|
"audit": {
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
|
"name": "my_audit",
|
||||||
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
"goal_uuid": "bc830f84-8ae3-4fc6-8bc6-e3dd15e8b49a",
|
"goal_uuid": "bc830f84-8ae3-4fc6-8bc6-e3dd15e8b49a",
|
||||||
"strategy_uuid": "75234dfe-87e3-4f11-a0e0-3c3305d86a39",
|
"strategy_uuid": "75234dfe-87e3-4f11-a0e0-3c3305d86a39",
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
"created_at": "2016-10-18T09:52:05Z",
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
"deleted_at": null,
|
"deleted_at": null,
|
||||||
|
"name": "my_audit",
|
||||||
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
"goal_uuid": "bc830f84-8ae3-4fc6-8bc6-e3dd15e8b49a",
|
"goal_uuid": "bc830f84-8ae3-4fc6-8bc6-e3dd15e8b49a",
|
||||||
"strategy_uuid": "75234dfe-87e3-4f11-a0e0-3c3305d86a39",
|
"strategy_uuid": "75234dfe-87e3-4f11-a0e0-3c3305d86a39",
|
||||||
@@ -29,7 +30,7 @@
|
|||||||
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
||||||
"fault": null,
|
"fault": null,
|
||||||
"state": "ONGOING",
|
"state": "ONGOING",
|
||||||
"global_efficacy": {},
|
"global_efficacy": [],
|
||||||
"strategy_uuid": "cb3d0b58-4415-4d90-b75b-1e96878730e3",
|
"strategy_uuid": "cb3d0b58-4415-4d90-b75b-1e96878730e3",
|
||||||
"strategy": {
|
"strategy": {
|
||||||
"watcher_object.namespace": "watcher",
|
"watcher_object.namespace": "watcher",
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
"watcher_object.name": "TerseAuditPayload",
|
"watcher_object.name": "TerseAuditPayload",
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
"parameters": {},
|
"parameters": {},
|
||||||
|
"name": "my_audit",
|
||||||
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
"goal_uuid": "bc830f84-8ae3-4fc6-8bc6-e3dd15e8b49a",
|
"goal_uuid": "bc830f84-8ae3-4fc6-8bc6-e3dd15e8b49a",
|
||||||
"strategy_uuid": "75234dfe-87e3-4f11-a0e0-3c3305d86a39",
|
"strategy_uuid": "75234dfe-87e3-4f11-a0e0-3c3305d86a39",
|
||||||
@@ -57,7 +58,7 @@
|
|||||||
"state": "PENDING"
|
"state": "PENDING"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"global_efficacy": {},
|
"global_efficacy": [],
|
||||||
"state": "ONGOING"
|
"state": "ONGOING"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
"created_at": "2016-10-18T09:52:05Z",
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
"deleted_at": null,
|
"deleted_at": null,
|
||||||
|
"name": "my_audit",
|
||||||
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
"uuid": "10a47dd1-4874-4298-91cf-eff046dbdb8d",
|
||||||
"goal_uuid": "bc830f84-8ae3-4fc6-8bc6-e3dd15e8b49a",
|
"goal_uuid": "bc830f84-8ae3-4fc6-8bc6-e3dd15e8b49a",
|
||||||
"strategy_uuid": "75234dfe-87e3-4f11-a0e0-3c3305d86a39",
|
"strategy_uuid": "75234dfe-87e3-4f11-a0e0-3c3305d86a39",
|
||||||
@@ -29,7 +30,7 @@
|
|||||||
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
"uuid": "76be87bd-3422-43f9-93a0-e85a577e3061",
|
||||||
"fault": null,
|
"fault": null,
|
||||||
"state": "ONGOING",
|
"state": "ONGOING",
|
||||||
"global_efficacy": {},
|
"global_efficacy": [],
|
||||||
"strategy_uuid": "cb3d0b58-4415-4d90-b75b-1e96878730e3",
|
"strategy_uuid": "cb3d0b58-4415-4d90-b75b-1e96878730e3",
|
||||||
"strategy": {
|
"strategy": {
|
||||||
"watcher_object.namespace": "watcher",
|
"watcher_object.namespace": "watcher",
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
"audit": {
|
"audit": {
|
||||||
"watcher_object.version": "1.0",
|
"watcher_object.version": "1.0",
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
|
"name": "my_audit",
|
||||||
"audit_type": "ONESHOT",
|
"audit_type": "ONESHOT",
|
||||||
"scope": [],
|
"scope": [],
|
||||||
"created_at": "2016-10-18T09:52:05Z",
|
"created_at": "2016-10-18T09:52:05Z",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"priority": "INFO",
|
"priority": "INFO",
|
||||||
"payload": {
|
"payload": {
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
|
"name": "my_audit",
|
||||||
"audit_type": "ONESHOT",
|
"audit_type": "ONESHOT",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"para2": "hello",
|
"para2": "hello",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"priority": "INFO",
|
"priority": "INFO",
|
||||||
"payload": {
|
"payload": {
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
|
"name": "my_audit",
|
||||||
"audit_type": "ONESHOT",
|
"audit_type": "ONESHOT",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"para2": "hello",
|
"para2": "hello",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"priority": "INFO",
|
"priority": "INFO",
|
||||||
"payload": {
|
"payload": {
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
|
"name": "my_audit",
|
||||||
"audit_type": "ONESHOT",
|
"audit_type": "ONESHOT",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"para2": "hello",
|
"para2": "hello",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"priority": "ERROR",
|
"priority": "ERROR",
|
||||||
"payload": {
|
"payload": {
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
|
"name": "my_audit",
|
||||||
"audit_type": "ONESHOT",
|
"audit_type": "ONESHOT",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"para2": "hello",
|
"para2": "hello",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"priority": "INFO",
|
"priority": "INFO",
|
||||||
"payload": {
|
"payload": {
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
|
"name": "my_audit",
|
||||||
"audit_type": "ONESHOT",
|
"audit_type": "ONESHOT",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"para2": "hello",
|
"para2": "hello",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"priority": "INFO",
|
"priority": "INFO",
|
||||||
"payload": {
|
"payload": {
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
|
"name": "my_audit",
|
||||||
"audit_type": "ONESHOT",
|
"audit_type": "ONESHOT",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"para2": "hello",
|
"para2": "hello",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"priority": "ERROR",
|
"priority": "ERROR",
|
||||||
"payload": {
|
"payload": {
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
|
"name": "my_audit",
|
||||||
"audit_type": "ONESHOT",
|
"audit_type": "ONESHOT",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"para2": "hello",
|
"para2": "hello",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"priority": "INFO",
|
"priority": "INFO",
|
||||||
"payload": {
|
"payload": {
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
|
"name": "my_audit",
|
||||||
"audit_type": "ONESHOT",
|
"audit_type": "ONESHOT",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"para2": "hello",
|
"para2": "hello",
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
"payload": {
|
"payload": {
|
||||||
"watcher_object.name": "AuditUpdatePayload",
|
"watcher_object.name": "AuditUpdatePayload",
|
||||||
"watcher_object.data": {
|
"watcher_object.data": {
|
||||||
|
"name": "my_audit",
|
||||||
"strategy_uuid": "75234dfe-87e3-4f11-a0e0-3c3305d86a39",
|
"strategy_uuid": "75234dfe-87e3-4f11-a0e0-3c3305d86a39",
|
||||||
"strategy": {
|
"strategy": {
|
||||||
"watcher_object.name": "StrategyPayload",
|
"watcher_object.name": "StrategyPayload",
|
||||||
|
|||||||
@@ -126,9 +126,9 @@ Here is single Dockerfile snippet you can use to run your Docker container:
|
|||||||
MAINTAINER David TARDIVEL <david.tardivel@b-com.com>
|
MAINTAINER David TARDIVEL <david.tardivel@b-com.com>
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get dist-upgrade -y
|
RUN apt-get dist-upgrade
|
||||||
RUN apt-get install -y vim net-tools
|
RUN apt-get install vim net-tools
|
||||||
RUN apt-get install -yt experimental watcher-api
|
RUN apt-get install experimental watcher-api
|
||||||
|
|
||||||
CMD ["/usr/bin/watcher-api"]
|
CMD ["/usr/bin/watcher-api"]
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
==================================================
|
||||||
|
OpenStack Infrastructure Optimization Service APIs
|
||||||
|
==================================================
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
|
|||||||
@@ -86,3 +86,15 @@ Actions
|
|||||||
|
|
||||||
.. autotype:: watcher.api.controllers.v1.action.Action
|
.. autotype:: watcher.api.controllers.v1.action.Action
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
Scoring Engine
|
||||||
|
==============
|
||||||
|
|
||||||
|
.. rest-controller:: watcher.api.controllers.v1.scoring_engine:ScoringEngineController
|
||||||
|
:webprefix: /v1/scoring_engine
|
||||||
|
|
||||||
|
.. autotype:: watcher.api.controllers.v1.scoring_engine.ScoringEngineCollection
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. autotype:: watcher.api.controllers.v1.scoring_engine.ScoringEngine
|
||||||
|
:members:
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ The watcher command-line interface (CLI) can be used to interact with the
|
|||||||
Watcher system in order to control it or to know its current status.
|
Watcher system in order to control it or to know its current status.
|
||||||
|
|
||||||
Please, read `the detailed documentation about Watcher CLI
|
Please, read `the detailed documentation about Watcher CLI
|
||||||
<https://factory.b-com.com/www/watcher/doc/python-watcherclient/>`_.
|
<https://docs.openstack.org/python-watcherclient/latest/cli/>`_.
|
||||||
|
|
||||||
.. _archi_watcher_dashboard_definition:
|
.. _archi_watcher_dashboard_definition:
|
||||||
|
|
||||||
@@ -130,7 +130,7 @@ The Watcher Dashboard can be used to interact with the Watcher system through
|
|||||||
Horizon in order to control it or to know its current status.
|
Horizon in order to control it or to know its current status.
|
||||||
|
|
||||||
Please, read `the detailed documentation about Watcher Dashboard
|
Please, read `the detailed documentation about Watcher Dashboard
|
||||||
<http://docs.openstack.org/developer/watcher-dashboard/>`_.
|
<https://docs.openstack.org/watcher-dashboard/latest>`_.
|
||||||
|
|
||||||
.. _archi_watcher_database_definition:
|
.. _archi_watcher_database_definition:
|
||||||
|
|
||||||
@@ -170,7 +170,7 @@ Unless specified, it then selects the most appropriate :ref:`strategy
|
|||||||
goal.
|
goal.
|
||||||
|
|
||||||
The :ref:`Strategy <strategy_definition>` is then dynamically loaded (via
|
The :ref:`Strategy <strategy_definition>` is then dynamically loaded (via
|
||||||
`stevedore <http://docs.openstack.org/developer/stevedore/>`_). The
|
`stevedore <https://docs.openstack.org/stevedore/latest>`_). The
|
||||||
:ref:`Watcher Decision Engine <watcher_decision_engine_definition>` executes
|
:ref:`Watcher Decision Engine <watcher_decision_engine_definition>` executes
|
||||||
the strategy.
|
the strategy.
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ copyright = u'OpenStack Foundation'
|
|||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = watcher_version.version_info.release_string()
|
release = watcher_version.version_info.release_string()
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = watcher_version.version_info.version_string()
|
version = watcher_version.version_string
|
||||||
|
|
||||||
# A list of ignored prefixes for module index sorting.
|
# A list of ignored prefixes for module index sorting.
|
||||||
modindex_common_prefix = ['watcher.']
|
modindex_common_prefix = ['watcher.']
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Service overview
|
|||||||
================
|
================
|
||||||
|
|
||||||
The Watcher system is a collection of services that provides support to
|
The Watcher system is a collection of services that provides support to
|
||||||
optimize your IAAS platform. The Watcher service may, depending upon
|
optimize your IaaS platform. The Watcher service may, depending upon
|
||||||
configuration, interact with several other OpenStack services. This includes:
|
configuration, interact with several other OpenStack services. This includes:
|
||||||
|
|
||||||
- the OpenStack Identity service (`keystone`_) for request authentication and
|
- the OpenStack Identity service (`keystone`_) for request authentication and
|
||||||
@@ -27,7 +27,7 @@ configuration, interact with several other OpenStack services. This includes:
|
|||||||
|
|
||||||
The Watcher service includes the following components:
|
The Watcher service includes the following components:
|
||||||
|
|
||||||
- ``watcher-decision-engine``: runs audit on part of your IAAS and return an
|
- ``watcher-decision-engine``: runs audit on part of your IaaS and return an
|
||||||
action plan in order to optimize resource placement.
|
action plan in order to optimize resource placement.
|
||||||
- ``watcher-api``: A RESTful API that processes application requests by sending
|
- ``watcher-api``: A RESTful API that processes application requests by sending
|
||||||
them to the watcher-decision-engine over RPC.
|
them to the watcher-decision-engine over RPC.
|
||||||
@@ -165,7 +165,7 @@ You can easily generate and update a sample configuration file
|
|||||||
named :ref:`watcher.conf.sample <watcher_sample_configuration_files>` by using
|
named :ref:`watcher.conf.sample <watcher_sample_configuration_files>` by using
|
||||||
these following commands::
|
these following commands::
|
||||||
|
|
||||||
$ git clone git://git.openstack.org/openstack/watcher
|
$ git clone https://git.openstack.org/openstack/watcher
|
||||||
$ cd watcher/
|
$ cd watcher/
|
||||||
$ tox -e genconfig
|
$ tox -e genconfig
|
||||||
$ vi etc/watcher/watcher.conf.sample
|
$ vi etc/watcher/watcher.conf.sample
|
||||||
@@ -200,8 +200,8 @@ configuration file, in order:
|
|||||||
|
|
||||||
|
|
||||||
Although some configuration options are mentioned here, it is recommended that
|
Although some configuration options are mentioned here, it is recommended that
|
||||||
you review all the `available options
|
you review all the :ref:`available options
|
||||||
<https://git.openstack.org/cgit/openstack/watcher/tree/etc/watcher/watcher.conf.sample>`_
|
<watcher_sample_configuration_files>`
|
||||||
so that the watcher service is configured for your needs.
|
so that the watcher service is configured for your needs.
|
||||||
|
|
||||||
#. The Watcher Service stores information in a database. This guide uses the
|
#. The Watcher Service stores information in a database. This guide uses the
|
||||||
@@ -349,7 +349,7 @@ so that the watcher service is configured for your needs.
|
|||||||
[nova_client]
|
[nova_client]
|
||||||
|
|
||||||
# Version of Nova API to use in novaclient. (string value)
|
# Version of Nova API to use in novaclient. (string value)
|
||||||
#api_version = 2
|
#api_version = 2.53
|
||||||
api_version = 2.1
|
api_version = 2.1
|
||||||
|
|
||||||
#. Create the Watcher Service database tables::
|
#. Create the Watcher Service database tables::
|
||||||
@@ -366,15 +366,14 @@ Configure Nova compute
|
|||||||
Please check your hypervisor configuration to correctly handle
|
Please check your hypervisor configuration to correctly handle
|
||||||
`instance migration`_.
|
`instance migration`_.
|
||||||
|
|
||||||
.. _`instance migration`: http://docs.openstack.org/admin-guide/compute-live-migration-usage.html
|
.. _`instance migration`: https://docs.openstack.org/nova/latest/admin/migration.html
|
||||||
|
|
||||||
Configure Measurements
|
Configure Measurements
|
||||||
======================
|
======================
|
||||||
|
|
||||||
You can configure and install Ceilometer by following the documentation below :
|
You can configure and install Ceilometer by following the documentation below :
|
||||||
|
|
||||||
#. http://docs.openstack.org/developer/ceilometer
|
#. https://docs.openstack.org/ceilometer/latest
|
||||||
#. http://docs.openstack.org/kilo/install-guide/install/apt/content/ceilometer-nova.html
|
|
||||||
|
|
||||||
The built-in strategy 'basic_consolidation' provided by watcher requires
|
The built-in strategy 'basic_consolidation' provided by watcher requires
|
||||||
"**compute.node.cpu.percent**" and "**cpu_util**" measurements to be collected
|
"**compute.node.cpu.percent**" and "**cpu_util**" measurements to be collected
|
||||||
@@ -386,13 +385,13 @@ the OpenStack site.
|
|||||||
You can use 'ceilometer meter-list' to list the available meters.
|
You can use 'ceilometer meter-list' to list the available meters.
|
||||||
|
|
||||||
For more information:
|
For more information:
|
||||||
http://docs.openstack.org/developer/ceilometer/measurements.html
|
https://docs.openstack.org/ceilometer/latest/admin/telemetry-measurements.html
|
||||||
|
|
||||||
Ceilometer is designed to collect measurements from OpenStack services and from
|
Ceilometer is designed to collect measurements from OpenStack services and from
|
||||||
other external components. If you would like to add new meters to the currently
|
other external components. If you would like to add new meters to the currently
|
||||||
existing ones, you need to follow the documentation below:
|
existing ones, you need to follow the documentation below:
|
||||||
|
|
||||||
#. http://docs.openstack.org/developer/ceilometer/new_meters.html
|
#. https://docs.openstack.org/ceilometer/latest/contributor/measurements.html#new-measurements
|
||||||
|
|
||||||
The Ceilometer collector uses a pluggable storage system, meaning that you can
|
The Ceilometer collector uses a pluggable storage system, meaning that you can
|
||||||
pick any database system you prefer.
|
pick any database system you prefer.
|
||||||
@@ -430,6 +429,26 @@ to Watcher receives Nova notifications in ``watcher_notifications`` as well.
|
|||||||
* Restart the Nova services.
|
* Restart the Nova services.
|
||||||
|
|
||||||
|
|
||||||
|
Configure Cinder Notifications
|
||||||
|
==============================
|
||||||
|
|
||||||
|
Watcher can also consume notifications generated by the Cinder services, in
|
||||||
|
order to build or update, in real time, its cluster data model related to
|
||||||
|
storage resources. To do so, you have to update the Cinder configuration
|
||||||
|
file on controller and volume nodes, in order to let Watcher receive Cinder
|
||||||
|
notifications in a dedicated ``watcher_notifications`` channel.
|
||||||
|
|
||||||
|
* In the file ``/etc/cinder/cinder.conf``, update the section
|
||||||
|
``[oslo_messaging_notifications]``, by redefining the list of topics
|
||||||
|
into which Cinder services will publish events ::
|
||||||
|
|
||||||
|
[oslo_messaging_notifications]
|
||||||
|
driver = messagingv2
|
||||||
|
topics = notifications,watcher_notifications
|
||||||
|
|
||||||
|
* Restart the Cinder services.
|
||||||
|
|
||||||
|
|
||||||
Workers
|
Workers
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ signed OpenStack's contributor's agreement.
|
|||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
|
|
||||||
* http://docs.openstack.org/infra/manual/developers.html
|
* https://docs.openstack.org/infra/manual/developers.html
|
||||||
* http://wiki.openstack.org/CLA
|
* https://wiki.openstack.org/CLA
|
||||||
|
|
||||||
LaunchPad Project
|
LaunchPad Project
|
||||||
-----------------
|
-----------------
|
||||||
@@ -37,22 +37,22 @@ notifications of important events.
|
|||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
|
|
||||||
* http://launchpad.net
|
* https://launchpad.net
|
||||||
* http://launchpad.net/watcher
|
* https://launchpad.net/watcher
|
||||||
* http://launchpad.net/~openstack
|
* https://launchpad.net/~openstack
|
||||||
|
|
||||||
|
|
||||||
Project Hosting Details
|
Project Hosting Details
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
Bug tracker
|
Bug tracker
|
||||||
http://launchpad.net/watcher
|
https://launchpad.net/watcher
|
||||||
|
|
||||||
Mailing list (prefix subjects with ``[watcher]`` for faster responses)
|
Mailing list (prefix subjects with ``[watcher]`` for faster responses)
|
||||||
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
|
https://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
|
||||||
|
|
||||||
Wiki
|
Wiki
|
||||||
http://wiki.openstack.org/Watcher
|
https://wiki.openstack.org/Watcher
|
||||||
|
|
||||||
Code Hosting
|
Code Hosting
|
||||||
https://git.openstack.org/cgit/openstack/watcher
|
https://git.openstack.org/cgit/openstack/watcher
|
||||||
|
|||||||
@@ -19,13 +19,13 @@ model. To enable the Watcher plugin with DevStack, add the following to the
|
|||||||
`[[local|localrc]]` section of your controller's `local.conf` to enable the
|
`[[local|localrc]]` section of your controller's `local.conf` to enable the
|
||||||
Watcher plugin::
|
Watcher plugin::
|
||||||
|
|
||||||
enable_plugin watcher git://git.openstack.org/openstack/watcher
|
enable_plugin watcher https://git.openstack.org/openstack/watcher
|
||||||
|
|
||||||
For more detailed instructions, see `Detailed DevStack Instructions`_. Check
|
For more detailed instructions, see `Detailed DevStack Instructions`_. Check
|
||||||
out the `DevStack documentation`_ for more information regarding DevStack.
|
out the `DevStack documentation`_ for more information regarding DevStack.
|
||||||
|
|
||||||
.. _PluginModelDocs: http://docs.openstack.org/developer/devstack/plugins.html
|
.. _PluginModelDocs: https://docs.openstack.org/devstack/latest/plugins.html
|
||||||
.. _DevStack documentation: http://docs.openstack.org/developer/devstack/
|
.. _DevStack documentation: https://docs.openstack.org/devstack/latest
|
||||||
|
|
||||||
Detailed DevStack Instructions
|
Detailed DevStack Instructions
|
||||||
==============================
|
==============================
|
||||||
@@ -37,7 +37,7 @@ Detailed DevStack Instructions
|
|||||||
needed (i.e., no computes are needed if you want to just experiment with
|
needed (i.e., no computes are needed if you want to just experiment with
|
||||||
the Watcher services). These servers can be VMs running on your local
|
the Watcher services). These servers can be VMs running on your local
|
||||||
machine via VirtualBox if you prefer. DevStack currently recommends that
|
machine via VirtualBox if you prefer. DevStack currently recommends that
|
||||||
you use Ubuntu 14.04 LTS. The servers should also have connections to the
|
you use Ubuntu 16.04 LTS. The servers should also have connections to the
|
||||||
same network such that they are all able to communicate with one another.
|
same network such that they are all able to communicate with one another.
|
||||||
|
|
||||||
#. For each server, clone the DevStack repository and create the stack user::
|
#. For each server, clone the DevStack repository and create the stack user::
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
https://creativecommons.org/licenses/by/3.0/
|
https://creativecommons.org/licenses/by/3.0/
|
||||||
|
|
||||||
.. _watcher_developement_environment:
|
.. _watcher_development_environment:
|
||||||
|
|
||||||
=========================================
|
=========================================
|
||||||
Set up a development environment manually
|
Set up a development environment manually
|
||||||
@@ -25,7 +25,7 @@ Prerequisites
|
|||||||
This document assumes you are using Ubuntu or Fedora, and that you have the
|
This document assumes you are using Ubuntu or Fedora, and that you have the
|
||||||
following tools available on your system:
|
following tools available on your system:
|
||||||
|
|
||||||
- Python_ 2.7 and 3.4
|
- Python_ 2.7 and 3.5
|
||||||
- git_
|
- git_
|
||||||
- setuptools_
|
- setuptools_
|
||||||
- pip_
|
- pip_
|
||||||
@@ -69,21 +69,21 @@ itself.
|
|||||||
|
|
||||||
These dependencies can be installed from PyPi_ using the Python tool pip_.
|
These dependencies can be installed from PyPi_ using the Python tool pip_.
|
||||||
|
|
||||||
.. _PyPi: http://pypi.python.org/
|
.. _PyPi: https://pypi.python.org/
|
||||||
.. _pip: http://pypi.python.org/pypi/pip
|
.. _pip: https://pypi.python.org/pypi/pip
|
||||||
|
|
||||||
However, your system *may* need additional dependencies that `pip` (and by
|
However, your system *may* need additional dependencies that `pip` (and by
|
||||||
extension, PyPi) cannot satisfy. These dependencies should be installed
|
extension, PyPi) cannot satisfy. These dependencies should be installed
|
||||||
prior to using `pip`, and the installation method may vary depending on
|
prior to using `pip`, and the installation method may vary depending on
|
||||||
your platform.
|
your platform.
|
||||||
|
|
||||||
* Ubuntu 14.04::
|
* Ubuntu 16.04::
|
||||||
|
|
||||||
$ sudo apt-get install python-dev libssl-dev libmysqlclient-dev libffi-dev
|
$ sudo apt-get install python-dev libssl-dev libmysqlclient-dev libffi-dev
|
||||||
|
|
||||||
* Fedora 19+::
|
* Fedora 24+::
|
||||||
|
|
||||||
$ sudo yum install openssl-devel libffi-devel mysql-devel
|
$ sudo dnf install redhat-rpm-config gcc python-devel libxml2-devel
|
||||||
|
|
||||||
* CentOS 7::
|
* CentOS 7::
|
||||||
|
|
||||||
@@ -125,7 +125,7 @@ You can re-activate this virtualenv for your current shell using:
|
|||||||
|
|
||||||
For more information on virtual environments, see virtualenv_.
|
For more information on virtual environments, see virtualenv_.
|
||||||
|
|
||||||
.. _virtualenv: http://www.virtualenv.org/
|
.. _virtualenv: https://www.virtualenv.org/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ Here below is how you would proceed to register ``DummyAction`` using pbr_:
|
|||||||
watcher_actions =
|
watcher_actions =
|
||||||
dummy = thirdparty.dummy:DummyAction
|
dummy = thirdparty.dummy:DummyAction
|
||||||
|
|
||||||
.. _pbr: http://docs.openstack.org/developer/pbr/
|
.. _pbr: https://docs.openstack.org/pbr/latest
|
||||||
|
|
||||||
|
|
||||||
Using action plugins
|
Using action plugins
|
||||||
@@ -217,3 +217,11 @@ which is only able to process the Watcher built-in actions. Therefore, you will
|
|||||||
either have to use an existing third-party planner or :ref:`implement another
|
either have to use an existing third-party planner or :ref:`implement another
|
||||||
planner <implement_planner_plugin>` that will be able to take into account your
|
planner <implement_planner_plugin>` that will be able to take into account your
|
||||||
new action plugin.
|
new action plugin.
|
||||||
|
|
||||||
|
|
||||||
|
Test your new action
|
||||||
|
====================
|
||||||
|
|
||||||
|
In order to test your new action via a manual test or a Tempest test, you can
|
||||||
|
use the :py:class:`~.Actuator` strategy and pass it one or more actions to
|
||||||
|
execute. This way, you can isolate your action to see if it works as expected.
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ Pre-requisites
|
|||||||
We assume that you have set up a working Watcher development environment. So if
|
We assume that you have set up a working Watcher development environment. So if
|
||||||
this not already the case, you can check out our documentation which explains
|
this not already the case, you can check out our documentation which explains
|
||||||
how to set up a :ref:`development environment
|
how to set up a :ref:`development environment
|
||||||
<watcher_developement_environment>`.
|
<watcher_development_environment>`.
|
||||||
|
|
||||||
.. _development environment:
|
.. _development environment:
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ First off, we need to create the project structure. To do so, we can use
|
|||||||
generate the skeleton of our project::
|
generate the skeleton of our project::
|
||||||
|
|
||||||
$ virtualenv thirdparty
|
$ virtualenv thirdparty
|
||||||
$ source thirdparty/bin/activate
|
$ . thirdparty/bin/activate
|
||||||
$ pip install cookiecutter
|
$ pip install cookiecutter
|
||||||
$ cookiecutter https://github.com/openstack-dev/cookiecutter
|
$ cookiecutter https://github.com/openstack-dev/cookiecutter
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ In order to create a new cluster data model collector, you have to:
|
|||||||
- Implement its :py:meth:`~.BaseClusterDataModelCollector.execute` abstract
|
- Implement its :py:meth:`~.BaseClusterDataModelCollector.execute` abstract
|
||||||
method to return your entire cluster data model that this method should
|
method to return your entire cluster data model that this method should
|
||||||
build.
|
build.
|
||||||
|
- Implement its :py:meth:`~.BaseClusterDataModelCollector.audit_scope_handler`
|
||||||
|
abstract property to return your audit scope handler.
|
||||||
- Implement its :py:meth:`~.Goal.notification_endpoints` abstract property to
|
- Implement its :py:meth:`~.Goal.notification_endpoints` abstract property to
|
||||||
return the list of all the :py:class:`~.base.NotificationEndpoint` instances
|
return the list of all the :py:class:`~.base.NotificationEndpoint` instances
|
||||||
that will be responsible for handling incoming notifications in order to
|
that will be responsible for handling incoming notifications in order to
|
||||||
@@ -57,6 +59,10 @@ Here is an example showing how you can write a plugin called
|
|||||||
# Do something here...
|
# Do something here...
|
||||||
return model
|
return model
|
||||||
|
|
||||||
|
@property
|
||||||
|
def audit_scope_handler(self):
|
||||||
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def notification_endpoints(self):
|
def notification_endpoints(self):
|
||||||
return []
|
return []
|
||||||
@@ -135,6 +141,10 @@ class method as followed:
|
|||||||
# Do something here...
|
# Do something here...
|
||||||
return model
|
return model
|
||||||
|
|
||||||
|
@property
|
||||||
|
def audit_scope_handler(self):
|
||||||
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def notification_endpoints(self):
|
def notification_endpoints(self):
|
||||||
return []
|
return []
|
||||||
@@ -198,7 +208,7 @@ Here below is how to register ``DummyClusterDataModelCollector`` using pbr_:
|
|||||||
watcher_cluster_data_model_collectors =
|
watcher_cluster_data_model_collectors =
|
||||||
dummy = thirdparty.dummy:DummyClusterDataModelCollector
|
dummy = thirdparty.dummy:DummyClusterDataModelCollector
|
||||||
|
|
||||||
.. _pbr: http://docs.openstack.org/developer/pbr/
|
.. _pbr: http://docs.openstack.org/pbr/latest
|
||||||
|
|
||||||
|
|
||||||
Add new notification endpoints
|
Add new notification endpoints
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ To get a better understanding on how to implement a more advanced goal, have
|
|||||||
a look at the
|
a look at the
|
||||||
:py:class:`watcher.decision_engine.goal.goals.ServerConsolidation` class.
|
:py:class:`watcher.decision_engine.goal.goals.ServerConsolidation` class.
|
||||||
|
|
||||||
.. _pbr: http://docs.openstack.org/developer/pbr/
|
.. _pbr: https://docs.openstack.org/pbr/latest
|
||||||
|
|
||||||
.. _implement_efficacy_specification:
|
.. _implement_efficacy_specification:
|
||||||
|
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ Here below is how you would proceed to register ``DummyPlanner`` using pbr_:
|
|||||||
watcher_planners =
|
watcher_planners =
|
||||||
dummy = third_party.dummy:DummyPlanner
|
dummy = third_party.dummy:DummyPlanner
|
||||||
|
|
||||||
.. _pbr: http://docs.openstack.org/developer/pbr/
|
.. _pbr: https://docs.openstack.org/pbr/latest
|
||||||
|
|
||||||
|
|
||||||
Using planner plugins
|
Using planner plugins
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ the :py:class:`~.DummyScoringContainer` and the way it is configured in
|
|||||||
watcher_scoring_engine_containers =
|
watcher_scoring_engine_containers =
|
||||||
new_scoring_container = thirdparty.new:NewContainer
|
new_scoring_container = thirdparty.new:NewContainer
|
||||||
|
|
||||||
.. _pbr: http://docs.openstack.org/developer/pbr/
|
.. _pbr: https://docs.openstack.org/pbr/latest/
|
||||||
|
|
||||||
|
|
||||||
Using scoring engine plugins
|
Using scoring engine plugins
|
||||||
|
|||||||
@@ -219,7 +219,7 @@ Here below is how you would proceed to register ``NewStrategy`` using pbr_:
|
|||||||
To get a better understanding on how to implement a more advanced strategy,
|
To get a better understanding on how to implement a more advanced strategy,
|
||||||
have a look at the :py:class:`~.BasicConsolidation` class.
|
have a look at the :py:class:`~.BasicConsolidation` class.
|
||||||
|
|
||||||
.. _pbr: http://docs.openstack.org/developer/pbr/
|
.. _pbr: https://docs.openstack.org/pbr/latest
|
||||||
|
|
||||||
Using strategy plugins
|
Using strategy plugins
|
||||||
======================
|
======================
|
||||||
@@ -263,12 +263,12 @@ requires new metrics not covered by Ceilometer, you can add them through a
|
|||||||
`Ceilometer plugin`_.
|
`Ceilometer plugin`_.
|
||||||
|
|
||||||
|
|
||||||
.. _`Helper`: https://github.com/openstack/watcher/blob/master/watcher/decision_engine/cluster/history/ceilometer.py
|
.. _`Helper`: https://github.com/openstack/watcher/blob/master/watcher/datasource/ceilometer.py
|
||||||
.. _`Ceilometer developer guide`: http://docs.openstack.org/developer/ceilometer/architecture.html#storing-the-data
|
.. _`Ceilometer developer guide`: https://docs.openstack.org/ceilometer/latest/contributor/architecture.html#storing-accessing-the-data
|
||||||
.. _`Ceilometer`: http://docs.openstack.org/developer/ceilometer/
|
.. _`Ceilometer`: https://docs.openstack.org/ceilometer/latest
|
||||||
.. _`Monasca`: https://github.com/openstack/monasca-api/blob/master/docs/monasca-api-spec.md
|
.. _`Monasca`: https://github.com/openstack/monasca-api/blob/master/docs/monasca-api-spec.md
|
||||||
.. _`here`: http://docs.openstack.org/developer/ceilometer/install/dbreco.html#choosing-a-database-backend
|
.. _`here`: https://docs.openstack.org/ceilometer/latest/contributor/install/dbreco.html#choosing-a-database-backend
|
||||||
.. _`Ceilometer plugin`: http://docs.openstack.org/developer/ceilometer/plugins.html
|
.. _`Ceilometer plugin`: https://docs.openstack.org/ceilometer/latest/contributor/plugins.html
|
||||||
.. _`Ceilosca`: https://github.com/openstack/monasca-ceilometer/blob/master/ceilosca/ceilometer/storage/impl_monasca.py
|
.. _`Ceilosca`: https://github.com/openstack/monasca-ceilometer/blob/master/ceilosca/ceilometer/storage/impl_monasca.py
|
||||||
|
|
||||||
Read usage metrics using the Watcher Datasource Helper
|
Read usage metrics using the Watcher Datasource Helper
|
||||||
|
|||||||
@@ -41,10 +41,18 @@ you can run the desired test::
|
|||||||
$ workon watcher
|
$ workon watcher
|
||||||
(watcher) $ tox -e py27 -- -r watcher.tests.api
|
(watcher) $ tox -e py27 -- -r watcher.tests.api
|
||||||
|
|
||||||
.. _os-testr: http://docs.openstack.org/developer/os-testr/
|
.. _os-testr: https://docs.openstack.org/os-testr/latest
|
||||||
|
|
||||||
When you're done, deactivate the virtualenv::
|
When you're done, deactivate the virtualenv::
|
||||||
|
|
||||||
$ deactivate
|
$ deactivate
|
||||||
|
|
||||||
.. include:: ../../../watcher_tempest_plugin/README.rst
|
.. _tempest_tests:
|
||||||
|
|
||||||
|
Tempest tests
|
||||||
|
=============
|
||||||
|
|
||||||
|
Tempest tests for Watcher has been migrated to the external repo
|
||||||
|
`watcher-tempest-plugin`_.
|
||||||
|
|
||||||
|
.. _watcher-tempest-plugin: https://github.com/openstack/watcher-tempest-plugin
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ Audit Template
|
|||||||
Availability Zone
|
Availability Zone
|
||||||
=================
|
=================
|
||||||
|
|
||||||
Please, read `the official OpenStack definition of an Availability Zone <http://docs.openstack.org/developer/nova/aggregates.html#availability-zones-azs>`_.
|
Please, read `the official OpenStack definition of an Availability Zone <https://docs.openstack.org/nova/latest/user/aggregates.html#availability-zones-azs>`_.
|
||||||
|
|
||||||
.. _cluster_definition:
|
.. _cluster_definition:
|
||||||
|
|
||||||
@@ -115,15 +115,8 @@ Cluster Data Model (CDM)
|
|||||||
Controller Node
|
Controller Node
|
||||||
===============
|
===============
|
||||||
|
|
||||||
A controller node is a machine that typically runs the following core OpenStack
|
Please, read `the official OpenStack definition of a Controller Node
|
||||||
services:
|
<https://docs.openstack.org/nova/latest/install/overview.html#controller>`_.
|
||||||
|
|
||||||
- Keystone: for identity and service management
|
|
||||||
- Cinder scheduler: for volumes management
|
|
||||||
- Glance controller: for image management
|
|
||||||
- Neutron controller: for network management
|
|
||||||
- Nova controller: for global compute resources management with services
|
|
||||||
such as nova-scheduler, nova-conductor and nova-network.
|
|
||||||
|
|
||||||
In many configurations, Watcher will reside on a controller node even if it
|
In many configurations, Watcher will reside on a controller node even if it
|
||||||
can potentially be hosted on a dedicated machine.
|
can potentially be hosted on a dedicated machine.
|
||||||
@@ -134,7 +127,7 @@ Compute node
|
|||||||
============
|
============
|
||||||
|
|
||||||
Please, read `the official OpenStack definition of a Compute Node
|
Please, read `the official OpenStack definition of a Compute Node
|
||||||
<http://docs.openstack.org/ops-guide/arch-compute-nodes.html>`_.
|
<https://docs.openstack.org/nova/latest/install/overview.html#compute>`_.
|
||||||
|
|
||||||
.. _customer_definition:
|
.. _customer_definition:
|
||||||
|
|
||||||
@@ -167,7 +160,7 @@ Host Aggregate
|
|||||||
==============
|
==============
|
||||||
|
|
||||||
Please, read `the official OpenStack definition of a Host Aggregate
|
Please, read `the official OpenStack definition of a Host Aggregate
|
||||||
<http://docs.openstack.org/developer/nova/aggregates.html>`_.
|
<https://docs.openstack.org/nova/latest/user/aggregates.html>`_.
|
||||||
|
|
||||||
.. _instance_definition:
|
.. _instance_definition:
|
||||||
|
|
||||||
@@ -206,18 +199,18 @@ the Watcher system can act on.
|
|||||||
Here are some examples of
|
Here are some examples of
|
||||||
:ref:`Managed resource types <managed_resource_definition>`:
|
:ref:`Managed resource types <managed_resource_definition>`:
|
||||||
|
|
||||||
- `Nova Host Aggregates <http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Nova::HostAggregate>`_
|
- `Nova Host Aggregates <https://docs.openstack.org/heat/latest/template_guide/openstack.html#OS::Nova::HostAggregate>`_
|
||||||
- `Nova Servers <http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Nova::Server>`_
|
- `Nova Servers <https://docs.openstack.org/heat/latest/template_guide/openstack.html#OS::Nova::Server>`_
|
||||||
- `Cinder Volumes <http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Cinder::Volume>`_
|
- `Cinder Volumes <https://docs.openstack.org/heat/latest/template_guide/openstack.html#OS::Cinder::Volume>`_
|
||||||
- `Neutron Routers <http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Neutron::Router>`_
|
- `Neutron Routers <https://docs.openstack.org/heat/latest/template_guide/openstack.html#OS::Neutron::Router>`_
|
||||||
- `Neutron Networks <http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Neutron::Net>`_
|
- `Neutron Networks <https://docs.openstack.org/heat/latest/template_guide/openstack.html#OS::Neutron::Net>`_
|
||||||
- `Neutron load-balancers <http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Neutron::LoadBalancer>`_
|
- `Neutron load-balancers <https://docs.openstack.org/heat/latest/template_guide/openstack.html#OS::Neutron::LoadBalancer>`_
|
||||||
- `Sahara Hadoop Cluster <http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Sahara::Cluster>`_
|
- `Sahara Hadoop Cluster <https://docs.openstack.org/heat/latest/template_guide/openstack.html#OS::Sahara::Cluster>`_
|
||||||
- ...
|
- ...
|
||||||
|
|
||||||
It can be any of the `the official list of available resource types defined in
|
It can be any of `the official list of available resource types defined in
|
||||||
OpenStack for HEAT
|
OpenStack for HEAT
|
||||||
<http://docs.openstack.org/developer/heat/template_guide/openstack.html>`_.
|
<https://docs.openstack.org/heat/latest/template_guide/openstack.html>`_.
|
||||||
|
|
||||||
.. _efficacy_indicator_definition:
|
.. _efficacy_indicator_definition:
|
||||||
|
|
||||||
@@ -274,7 +267,7 @@ the same goal and same workload of the :ref:`Cluster <cluster_definition>`.
|
|||||||
Project
|
Project
|
||||||
=======
|
=======
|
||||||
|
|
||||||
:ref:`Projects <project_definition>` represent the base unit of “ownership”
|
:ref:`Projects <project_definition>` represent the base unit of "ownership"
|
||||||
in OpenStack, in that all :ref:`resources <managed_resource_definition>` in
|
in OpenStack, in that all :ref:`resources <managed_resource_definition>` in
|
||||||
OpenStack should be owned by a specific :ref:`project <project_definition>`.
|
OpenStack should be owned by a specific :ref:`project <project_definition>`.
|
||||||
In OpenStack Identity, a :ref:`project <project_definition>` must be owned by a
|
In OpenStack Identity, a :ref:`project <project_definition>` must be owned by a
|
||||||
|
|||||||
@@ -7,7 +7,9 @@ ONGOING --> FAILED: Something failed while executing\nthe Action Plan in the Wat
|
|||||||
ONGOING --> SUCCEEDED: The Watcher Applier executed\nthe Action Plan successfully
|
ONGOING --> SUCCEEDED: The Watcher Applier executed\nthe Action Plan successfully
|
||||||
FAILED --> DELETED : Administrator removes\nAction Plan
|
FAILED --> DELETED : Administrator removes\nAction Plan
|
||||||
SUCCEEDED --> DELETED : Administrator removes\nAction Plan
|
SUCCEEDED --> DELETED : Administrator removes\nAction Plan
|
||||||
ONGOING --> CANCELLED : Administrator cancels\nAction Plan
|
ONGOING --> CANCELLING : Administrator cancels\nAction Plan
|
||||||
|
CANCELLING --> CANCELLED : The Watcher Applier cancelled\nthe Action Plan successfully
|
||||||
|
CANCELLING --> FAILED : Something failed while cancelling\nthe Action Plan in the Watcher Applier
|
||||||
RECOMMENDED --> CANCELLED : Administrator cancels\nAction Plan
|
RECOMMENDED --> CANCELLED : Administrator cancels\nAction Plan
|
||||||
RECOMMENDED --> SUPERSEDED : The Watcher Decision Engine supersedes\nAction Plan
|
RECOMMENDED --> SUPERSEDED : The Watcher Decision Engine supersedes\nAction Plan
|
||||||
PENDING --> CANCELLED : Administrator cancels\nAction Plan
|
PENDING --> CANCELLED : Administrator cancels\nAction Plan
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ table(action_plans) {
|
|||||||
foreign_key("strategy_id : Integer")
|
foreign_key("strategy_id : Integer")
|
||||||
uuid : String[36]
|
uuid : String[36]
|
||||||
state : String[20], nullable
|
state : String[20], nullable
|
||||||
global_efficacy : JSONEncodedDict, nullable
|
global_efficacy : JSONEncodedList, nullable
|
||||||
|
|
||||||
created_at : DateTime
|
created_at : DateTime
|
||||||
updated_at : DateTime
|
updated_at : DateTime
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 76 KiB |
@@ -339,6 +339,34 @@
|
|||||||
style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
|
style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
|
||||||
transform="matrix(-0.8,0,0,-0.8,4.8,0)" />
|
transform="matrix(-0.8,0,0,-0.8,4.8,0)" />
|
||||||
</marker>
|
</marker>
|
||||||
|
<marker
|
||||||
|
inkscape:stockid="EmptyTriangleInL"
|
||||||
|
orient="auto"
|
||||||
|
refY="0"
|
||||||
|
refX="0"
|
||||||
|
id="EmptyTriangleInL-6"
|
||||||
|
style="overflow:visible">
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path7091-2"
|
||||||
|
d="m 5.77,0 -8.65,5 0,-10 8.65,5 z"
|
||||||
|
style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
|
||||||
|
transform="matrix(-0.8,0,0,-0.8,4.8,0)" />
|
||||||
|
</marker>
|
||||||
|
<marker
|
||||||
|
inkscape:stockid="EmptyTriangleInL"
|
||||||
|
orient="auto"
|
||||||
|
refY="0"
|
||||||
|
refX="0"
|
||||||
|
id="EmptyTriangleInL-12"
|
||||||
|
style="overflow:visible">
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path7091-70"
|
||||||
|
d="m 5.77,0 -8.65,5 0,-10 8.65,5 z"
|
||||||
|
style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
|
||||||
|
transform="matrix(-0.8,0,0,-0.8,4.8,0)" />
|
||||||
|
</marker>
|
||||||
</defs>
|
</defs>
|
||||||
<sodipodi:namedview
|
<sodipodi:namedview
|
||||||
inkscape:document-units="mm"
|
inkscape:document-units="mm"
|
||||||
@@ -348,13 +376,13 @@
|
|||||||
inkscape:pageopacity="0.0"
|
inkscape:pageopacity="0.0"
|
||||||
inkscape:pageshadow="2"
|
inkscape:pageshadow="2"
|
||||||
inkscape:zoom="1.4142136"
|
inkscape:zoom="1.4142136"
|
||||||
inkscape:cx="261.24633"
|
inkscape:cx="665.19215"
|
||||||
inkscape:cy="108.90512"
|
inkscape:cy="108.90512"
|
||||||
inkscape:current-layer="g5356"
|
inkscape:current-layer="g4866-2-3"
|
||||||
id="namedview4950"
|
id="namedview4950"
|
||||||
showgrid="true"
|
showgrid="true"
|
||||||
inkscape:window-width="1215"
|
inkscape:window-width="1211"
|
||||||
inkscape:window-height="776"
|
inkscape:window-height="698"
|
||||||
inkscape:window-x="65"
|
inkscape:window-x="65"
|
||||||
inkscape:window-y="24"
|
inkscape:window-y="24"
|
||||||
inkscape:window-maximized="1">
|
inkscape:window-maximized="1">
|
||||||
@@ -381,6 +409,12 @@
|
|||||||
<g
|
<g
|
||||||
id="g5356"
|
id="g5356"
|
||||||
transform="translate(-15.096057,-107.16694)">
|
transform="translate(-15.096057,-107.16694)">
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path3284-4-2-3-77-5-9"
|
||||||
|
d="m 813.66791,753.1462 0,-92.21768"
|
||||||
|
style="display:inline;fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#EmptyTriangleInL-6)" />
|
||||||
<rect
|
<rect
|
||||||
y="377.8927"
|
y="377.8927"
|
||||||
x="96.920677"
|
x="96.920677"
|
||||||
@@ -875,8 +909,8 @@
|
|||||||
sodipodi:nodetypes="cc"
|
sodipodi:nodetypes="cc"
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
id="path5110-9"
|
id="path5110-9"
|
||||||
d="m 472.18905,726.66568 221.85496,0"
|
d="m 472.18905,726.66568 331.45651,0"
|
||||||
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;display:inline" />
|
style="display:inline;fill:none;stroke:#000000;stroke-width:1.22230256px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||||
<path
|
<path
|
||||||
sodipodi:nodetypes="cc"
|
sodipodi:nodetypes="cc"
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
@@ -919,8 +953,8 @@
|
|||||||
sodipodi:nodetypes="cc"
|
sodipodi:nodetypes="cc"
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
id="path3284-4-2-3-4-6"
|
id="path3284-4-2-3-4-6"
|
||||||
d="m 540.57926,651.7922 179.16488,0"
|
d="m 543.75943,651.7922 280.63651,0"
|
||||||
style="fill:none;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:1.99999999, 1.99999999;stroke-dashoffset:0;marker-start:url(#TriangleInL);display:inline" />
|
style="display:inline;fill:none;stroke:#000000;stroke-width:1.25154257;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:2.50308524, 2.50308524;stroke-dashoffset:0;stroke-opacity:1;marker-start:url(#TriangleInL)" />
|
||||||
<rect
|
<rect
|
||||||
y="262.01205"
|
y="262.01205"
|
||||||
x="451.89563"
|
x="451.89563"
|
||||||
@@ -1402,6 +1436,48 @@
|
|||||||
id="path5110-9-6"
|
id="path5110-9-6"
|
||||||
d="m 192.18905,726.66568 221.85496,0"
|
d="m 192.18905,726.66568 221.85496,0"
|
||||||
style="display:inline;fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
style="display:inline;fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||||
|
<g
|
||||||
|
id="g4866-2-3"
|
||||||
|
style="display:inline"
|
||||||
|
transform="matrix(1.7775787,0,0,1.7775787,991.15946,596.08131)">
|
||||||
|
<rect
|
||||||
|
style="display:inline;fill:#ffffff;stroke:#000000;stroke-width:0.562563;stroke-opacity:1"
|
||||||
|
id="rect4267-4-7-7-6"
|
||||||
|
width="49.81258"
|
||||||
|
height="24.243191"
|
||||||
|
x="-116.67716"
|
||||||
|
y="88.977051" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:11.73851585px;line-height:125%;font-family:Sans;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;display:inline;fill:#000000;fill-opacity:1;stroke:none"
|
||||||
|
x="-91.899979"
|
||||||
|
y="104.01585"
|
||||||
|
id="text5037-4-6-9-7"
|
||||||
|
sodipodi:linespacing="125%"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
x="-91.899979"
|
||||||
|
y="104.01585"
|
||||||
|
style="font-size:11.2512598px;text-align:center;text-anchor:middle"
|
||||||
|
id="tspan5184-3-5-5">cinder</tspan></text>
|
||||||
|
</g>
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path3284-4-2-3-4-9-3"
|
||||||
|
d="m 824.37881,651.58554 0,102.98987"
|
||||||
|
style="display:inline;fill:none;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:1.99999999, 1.99999999;stroke-dashoffset:0;stroke-opacity:1;marker-start:none" />
|
||||||
|
<circle
|
||||||
|
r="2.6672709"
|
||||||
|
cy="693.98395"
|
||||||
|
cx="823.72699"
|
||||||
|
id="path13407-89-5"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#ececec;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path3284-4-2-3-7-9"
|
||||||
|
d="m 804.16781,752.35205 0,-26.2061"
|
||||||
|
style="display:inline;fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#EmptyTriangleInL-12)" />
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 64 KiB |
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
[keystone_authtoken]
|
[keystone_authtoken]
|
||||||
...
|
...
|
||||||
auth_uri = http://controller:5000
|
www_authenticate_uri = http://controller:5000
|
||||||
auth_url = http://controller:35357
|
auth_url = http://controller:35357
|
||||||
memcached_servers = controller:11211
|
memcached_servers = controller:11211
|
||||||
auth_type = password
|
auth_type = password
|
||||||
@@ -39,12 +39,12 @@
|
|||||||
Replace WATCHER_PASS with the password you chose for the watcher user in the Identity service.
|
Replace WATCHER_PASS with the password you chose for the watcher user in the Identity service.
|
||||||
|
|
||||||
* Watcher interacts with other OpenStack projects via project clients, in order to instantiate these
|
* Watcher interacts with other OpenStack projects via project clients, in order to instantiate these
|
||||||
clients, Watcher requests new session from Identity service. In the `[watcher_client_auth]` section,
|
clients, Watcher requests new session from Identity service. In the `[watcher_clients_auth]` section,
|
||||||
configure the identity service access to interact with other OpenStack project clients.
|
configure the identity service access to interact with other OpenStack project clients.
|
||||||
|
|
||||||
.. code-block:: ini
|
.. code-block:: ini
|
||||||
|
|
||||||
[watcher_client_auth]
|
[watcher_clients_auth]
|
||||||
...
|
...
|
||||||
auth_type = password
|
auth_type = password
|
||||||
auth_url = http://controller:35357
|
auth_url = http://controller:35357
|
||||||
@@ -56,6 +56,16 @@
|
|||||||
|
|
||||||
Replace WATCHER_PASS with the password you chose for the watcher user in the Identity service.
|
Replace WATCHER_PASS with the password you chose for the watcher user in the Identity service.
|
||||||
|
|
||||||
|
* In the `[api]` section, configure host option.
|
||||||
|
|
||||||
|
.. code-block:: ini
|
||||||
|
|
||||||
|
[api]
|
||||||
|
...
|
||||||
|
host = controller
|
||||||
|
|
||||||
|
Replace controller with the IP address of the management network interface on your controller node, typically 10.0.0.11 for the first node in the example architecture.
|
||||||
|
|
||||||
* In the `[oslo_messaging_notifications]` section, configure the messaging driver.
|
* In the `[oslo_messaging_notifications]` section, configure the messaging driver.
|
||||||
|
|
||||||
.. code-block:: ini
|
.. code-block:: ini
|
||||||
@@ -68,4 +78,4 @@
|
|||||||
|
|
||||||
.. code-block:: ini
|
.. code-block:: ini
|
||||||
|
|
||||||
su -s /bin/sh -c "watcher-db-manage" watcher
|
su -s /bin/sh -c "watcher-db-manage --config-file /etc/watcher/watcher.conf upgrade"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ Infrastructure Optimization service
|
|||||||
verify.rst
|
verify.rst
|
||||||
next-steps.rst
|
next-steps.rst
|
||||||
|
|
||||||
The Infrastructure Optimization service (watcher) provides
|
The Infrastructure Optimization service (Watcher) provides
|
||||||
flexible and scalable resource optimization service for
|
flexible and scalable resource optimization service for
|
||||||
multi-tenant OpenStack-based clouds.
|
multi-tenant OpenStack-based clouds.
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ applier. This provides a robust framework to realize a wide
|
|||||||
range of cloud optimization goals, including the reduction
|
range of cloud optimization goals, including the reduction
|
||||||
of data center operating costs, increased system performance
|
of data center operating costs, increased system performance
|
||||||
via intelligent virtual machine migration, increased energy
|
via intelligent virtual machine migration, increased energy
|
||||||
efficiency—and more!
|
efficiency and more!
|
||||||
|
|
||||||
Watcher also supports a pluggable architecture by which custom
|
Watcher also supports a pluggable architecture by which custom
|
||||||
optimization algorithms, data metrics and data profilers can be
|
optimization algorithms, data metrics and data profilers can be
|
||||||
@@ -36,4 +36,4 @@ https://docs.openstack.org/watcher/latest/glossary.html
|
|||||||
|
|
||||||
This chapter assumes a working setup of OpenStack following the
|
This chapter assumes a working setup of OpenStack following the
|
||||||
`OpenStack Installation Tutorial
|
`OpenStack Installation Tutorial
|
||||||
<https://docs.openstack.org/project-install-guide/ocata/>`_.
|
<https://docs.openstack.org/queens/install/>`_.
|
||||||
|
|||||||
@@ -1,35 +0,0 @@
|
|||||||
.. _install-obs:
|
|
||||||
|
|
||||||
|
|
||||||
Install and configure for openSUSE and SUSE Linux Enterprise
|
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
|
|
||||||
This section describes how to install and configure the Infrastructure
|
|
||||||
Optimization service for openSUSE Leap 42.1 and
|
|
||||||
SUSE Linux Enterprise Server 12 SP1.
|
|
||||||
|
|
||||||
.. include:: common_prerequisites.rst
|
|
||||||
|
|
||||||
Install and configure components
|
|
||||||
--------------------------------
|
|
||||||
|
|
||||||
#. Install the packages:
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
# zypper --quiet --non-interactive install
|
|
||||||
|
|
||||||
.. include:: common_configure.rst
|
|
||||||
|
|
||||||
|
|
||||||
Finalize installation
|
|
||||||
---------------------
|
|
||||||
|
|
||||||
Start the Infrastructure Optimization services and configure them to start when
|
|
||||||
the system boots:
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
# systemctl enable openstack-watcher-api.service
|
|
||||||
|
|
||||||
# systemctl start openstack-watcher-api.service
|
|
||||||
@@ -15,6 +15,5 @@ Note that installation and configuration vary by distribution.
|
|||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
install-obs.rst
|
|
||||||
install-rdo.rst
|
install-rdo.rst
|
||||||
install-ubuntu.rst
|
install-ubuntu.rst
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ Next steps
|
|||||||
Your OpenStack environment now includes the watcher service.
|
Your OpenStack environment now includes the watcher service.
|
||||||
|
|
||||||
To add additional services, see
|
To add additional services, see
|
||||||
https://docs.openstack.org/project-install-guide/ocata/.
|
https://docs.openstack.org/queens/install/.
|
||||||
|
|||||||
86
doc/source/strategies/actuation.rst
Normal file
86
doc/source/strategies/actuation.rst
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
=============
|
||||||
|
Actuator
|
||||||
|
=============
|
||||||
|
|
||||||
|
Synopsis
|
||||||
|
--------
|
||||||
|
|
||||||
|
**display name**: ``Actuator``
|
||||||
|
|
||||||
|
**goal**: ``unclassified``
|
||||||
|
|
||||||
|
.. watcher-term:: watcher.decision_engine.strategy.strategies.actuation
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
------------
|
||||||
|
|
||||||
|
Metrics
|
||||||
|
*******
|
||||||
|
|
||||||
|
None
|
||||||
|
|
||||||
|
Cluster data model
|
||||||
|
******************
|
||||||
|
|
||||||
|
None
|
||||||
|
|
||||||
|
Actions
|
||||||
|
*******
|
||||||
|
|
||||||
|
Default Watcher's actions.
|
||||||
|
|
||||||
|
Planner
|
||||||
|
*******
|
||||||
|
|
||||||
|
Default Watcher's planner:
|
||||||
|
|
||||||
|
.. watcher-term:: watcher.decision_engine.planner.weight.WeightPlanner
|
||||||
|
|
||||||
|
Configuration
|
||||||
|
-------------
|
||||||
|
|
||||||
|
Strategy parameters are:
|
||||||
|
|
||||||
|
==================== ====== ===================== =============================
|
||||||
|
parameter type default Value description
|
||||||
|
==================== ====== ===================== =============================
|
||||||
|
``actions`` array None Actions to be executed.
|
||||||
|
==================== ====== ===================== =============================
|
||||||
|
|
||||||
|
The elements of actions array are:
|
||||||
|
|
||||||
|
==================== ====== ===================== =============================
|
||||||
|
parameter type default Value description
|
||||||
|
==================== ====== ===================== =============================
|
||||||
|
``action_type`` string None Action name defined in
|
||||||
|
setup.cfg(mandatory)
|
||||||
|
``resource_id`` string None Resource_id of the action.
|
||||||
|
``input_parameters`` object None Input_parameters of the
|
||||||
|
action(mandatory).
|
||||||
|
==================== ====== ===================== =============================
|
||||||
|
|
||||||
|
Efficacy Indicator
|
||||||
|
------------------
|
||||||
|
|
||||||
|
None
|
||||||
|
|
||||||
|
Algorithm
|
||||||
|
---------
|
||||||
|
|
||||||
|
This strategy create an action plan with a predefined set of actions.
|
||||||
|
|
||||||
|
How to use it ?
|
||||||
|
---------------
|
||||||
|
|
||||||
|
.. code-block:: shell
|
||||||
|
|
||||||
|
$ openstack optimize audittemplate create \
|
||||||
|
at1 unclassified --strategy actuator
|
||||||
|
|
||||||
|
$ openstack optimize audit create -a at1 \
|
||||||
|
-p actions='[{"action_type": "migrate", "resource_id": "56a40802-6fde-4b59-957c-c84baec7eaed", "input_parameters": {"migration_type": "live", "source_node": "s01"}}]'
|
||||||
|
|
||||||
|
External Links
|
||||||
|
--------------
|
||||||
|
|
||||||
|
None
|
||||||
@@ -5,7 +5,7 @@ Basic Offline Server Consolidation
|
|||||||
Synopsis
|
Synopsis
|
||||||
--------
|
--------
|
||||||
|
|
||||||
**display name**: ``basic``
|
**display name**: ``Basic offline consolidation``
|
||||||
|
|
||||||
**goal**: ``server_consolidation``
|
**goal**: ``server_consolidation``
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ metric service name plugins comment
|
|||||||
``cpu_util`` ceilometer_ none
|
``cpu_util`` ceilometer_ none
|
||||||
============================ ============ ======= =======
|
============================ ============ ======= =======
|
||||||
|
|
||||||
.. _ceilometer: http://docs.openstack.org/admin-guide/telemetry-measurements.html#openstack-compute
|
.. _ceilometer: https://docs.openstack.org/ceilometer/latest/admin/telemetry-measurements.html#openstack-compute
|
||||||
|
|
||||||
Cluster data model
|
Cluster data model
|
||||||
******************
|
******************
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Outlet Temperature Based Strategy
|
|||||||
Synopsis
|
Synopsis
|
||||||
--------
|
--------
|
||||||
|
|
||||||
**display name**: ``outlet_temperature``
|
**display name**: ``Outlet temperature based strategy``
|
||||||
|
|
||||||
**goal**: ``thermal_optimization``
|
**goal**: ``thermal_optimization``
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ metric service name plugins comment
|
|||||||
``hardware.ipmi.node.outlet_temperature`` ceilometer_ IPMI
|
``hardware.ipmi.node.outlet_temperature`` ceilometer_ IPMI
|
||||||
========================================= ============ ======= =======
|
========================================= ============ ======= =======
|
||||||
|
|
||||||
.. _ceilometer: http://docs.openstack.org/admin-guide/telemetry-measurements.html#ipmi-based-meters
|
.. _ceilometer: https://docs.openstack.org/ceilometer/latest/admin/telemetry-measurements.html#ipmi-based-meters
|
||||||
|
|
||||||
Cluster data model
|
Cluster data model
|
||||||
******************
|
******************
|
||||||
|
|||||||
100
doc/source/strategies/saving_energy.rst
Normal file
100
doc/source/strategies/saving_energy.rst
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
======================
|
||||||
|
Saving Energy Strategy
|
||||||
|
======================
|
||||||
|
|
||||||
|
Synopsis
|
||||||
|
--------
|
||||||
|
|
||||||
|
**display name**: ``Saving Energy Strategy``
|
||||||
|
|
||||||
|
**goal**: ``saving_energy``
|
||||||
|
|
||||||
|
.. watcher-term:: watcher.decision_engine.strategy.strategies.saving_energy
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
------------
|
||||||
|
|
||||||
|
This feature will use Ironic to do the power on/off actions, therefore
|
||||||
|
this feature requires that the ironic component is configured.
|
||||||
|
And the compute node should be managed by Ironic.
|
||||||
|
|
||||||
|
Ironic installation: https://docs.openstack.org/ironic/latest/install/index.html
|
||||||
|
|
||||||
|
Cluster data model
|
||||||
|
******************
|
||||||
|
|
||||||
|
Default Watcher's Compute cluster data model:
|
||||||
|
|
||||||
|
.. watcher-term:: watcher.decision_engine.model.collector.nova.NovaClusterDataModelCollector
|
||||||
|
|
||||||
|
Actions
|
||||||
|
*******
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 30 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - action
|
||||||
|
- description
|
||||||
|
* - ``change_node_power_state``
|
||||||
|
- .. watcher-term:: watcher.applier.actions.change_node_power_state.ChangeNodePowerState
|
||||||
|
|
||||||
|
Planner
|
||||||
|
*******
|
||||||
|
|
||||||
|
Default Watcher's planner:
|
||||||
|
|
||||||
|
.. watcher-term:: watcher.decision_engine.planner.weight.WeightPlanner
|
||||||
|
|
||||||
|
|
||||||
|
Configuration
|
||||||
|
-------------
|
||||||
|
|
||||||
|
Strategy parameter is:
|
||||||
|
|
||||||
|
====================== ====== ======= ======================================
|
||||||
|
parameter type default description
|
||||||
|
Value
|
||||||
|
====================== ====== ======= ======================================
|
||||||
|
``free_used_percent`` Number 10.0 a rational number, which describes the
|
||||||
|
the quotient of
|
||||||
|
min_free_hosts_num/nodes_with_VMs_num
|
||||||
|
``min_free_hosts_num`` Int 1 an int number describes minimum free
|
||||||
|
compute nodes
|
||||||
|
====================== ====== ======= ======================================
|
||||||
|
|
||||||
|
|
||||||
|
Efficacy Indicator
|
||||||
|
------------------
|
||||||
|
|
||||||
|
Energy saving strategy efficacy indicator is unclassified.
|
||||||
|
https://github.com/openstack/watcher/blob/master/watcher/decision_engine/goal/goals.py#L215-L218
|
||||||
|
|
||||||
|
Algorithm
|
||||||
|
---------
|
||||||
|
|
||||||
|
For more information on the Energy Saving Strategy please refer to:http://specs.openstack.org/openstack/watcher-specs/specs/pike/implemented/energy-saving-strategy.html
|
||||||
|
|
||||||
|
How to use it ?
|
||||||
|
---------------
|
||||||
|
step1: Add compute nodes info into ironic node management
|
||||||
|
|
||||||
|
.. code-block:: shell
|
||||||
|
|
||||||
|
$ ironic node-create -d pxe_ipmitool -i ipmi_address=10.43.200.184 \
|
||||||
|
ipmi_username=root -i ipmi_password=nomoresecret -e compute_node_id=3
|
||||||
|
|
||||||
|
step 2: Create audit to do optimization
|
||||||
|
|
||||||
|
.. code-block:: shell
|
||||||
|
|
||||||
|
$ openstack optimize audittemplate create \
|
||||||
|
at1 saving_energy --strategy saving_energy
|
||||||
|
|
||||||
|
$ openstack optimize audit create -a at1
|
||||||
|
|
||||||
|
External Links
|
||||||
|
--------------
|
||||||
|
|
||||||
|
*Spec URL*
|
||||||
|
http://specs.openstack.org/openstack/watcher-specs/specs/pike/implemented/energy-saving-strategy.html
|
||||||
@@ -33,7 +33,7 @@ power ceilometer_ kwapi_ one point every 60s
|
|||||||
======================= ============ ======= =======
|
======================= ============ ======= =======
|
||||||
|
|
||||||
|
|
||||||
.. _ceilometer: http://docs.openstack.org/admin-guide/telemetry-measurements.html#openstack-compute
|
.. _ceilometer: https://docs.openstack.org/ceilometer/latest/admin/telemetry-measurements.html#openstack-compute
|
||||||
.. _monasca: https://github.com/openstack/monasca-agent/blob/master/docs/Libvirt.md
|
.. _monasca: https://github.com/openstack/monasca-agent/blob/master/docs/Libvirt.md
|
||||||
.. _kwapi: https://kwapi.readthedocs.io/en/latest/index.html
|
.. _kwapi: https://kwapi.readthedocs.io/en/latest/index.html
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Uniform Airflow Migration Strategy
|
|||||||
Synopsis
|
Synopsis
|
||||||
--------
|
--------
|
||||||
|
|
||||||
**display name**: ``uniform_airflow``
|
**display name**: ``Uniform airflow migration strategy``
|
||||||
|
|
||||||
**goal**: ``airflow_optimization``
|
**goal**: ``airflow_optimization``
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ VM Workload Consolidation Strategy
|
|||||||
Synopsis
|
Synopsis
|
||||||
--------
|
--------
|
||||||
|
|
||||||
**display name**: ``vm_workload_consolidation``
|
**display name**: ``VM Workload Consolidation Strategy``
|
||||||
|
|
||||||
**goal**: ``vm_consolidation``
|
**goal**: ``vm_consolidation``
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ The *vm_workload_consolidation* strategy requires the following metrics:
|
|||||||
============================ ============ ======= =======
|
============================ ============ ======= =======
|
||||||
metric service name plugins comment
|
metric service name plugins comment
|
||||||
============================ ============ ======= =======
|
============================ ============ ======= =======
|
||||||
``memory`` ceilometer_ none
|
``memory`` ceilometer_ none
|
||||||
``disk.root.size`` ceilometer_ none
|
``disk.root.size`` ceilometer_ none
|
||||||
============================ ============ ======= =======
|
============================ ============ ======= =======
|
||||||
|
|
||||||
@@ -32,11 +32,11 @@ the strategy if available:
|
|||||||
============================ ============ ======= =======
|
============================ ============ ======= =======
|
||||||
metric service name plugins comment
|
metric service name plugins comment
|
||||||
============================ ============ ======= =======
|
============================ ============ ======= =======
|
||||||
``memory.usage`` ceilometer_ none
|
``memory.resident`` ceilometer_ none
|
||||||
``cpu_util`` ceilometer_ none
|
``cpu_util`` ceilometer_ none
|
||||||
============================ ============ ======= =======
|
============================ ============ ======= =======
|
||||||
|
|
||||||
.. _ceilometer: http://docs.openstack.org/admin-guide/telemetry-measurements.html#openstack-compute
|
.. _ceilometer: https://docs.openstack.org/ceilometer/latest/admin/telemetry-measurements.html#openstack-compute
|
||||||
|
|
||||||
Cluster data model
|
Cluster data model
|
||||||
******************
|
******************
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Watcher Overload standard deviation algorithm
|
|||||||
Synopsis
|
Synopsis
|
||||||
--------
|
--------
|
||||||
|
|
||||||
**display name**: ``workload_stabilization``
|
**display name**: ``Workload stabilization``
|
||||||
|
|
||||||
**goal**: ``workload_balancing``
|
**goal**: ``workload_balancing``
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ metric service name plugins comment
|
|||||||
``memory.resident`` ceilometer_ none
|
``memory.resident`` ceilometer_ none
|
||||||
============================ ============ ======= =======
|
============================ ============ ======= =======
|
||||||
|
|
||||||
.. _ceilometer: http://docs.openstack.org/admin-guide/telemetry-measurements.html#openstack-compute
|
.. _ceilometer: https://docs.openstack.org/ceilometer/latest/admin/telemetry-measurements.html#openstack-compute
|
||||||
.. _SNMP: http://docs.openstack.org/admin-guide/telemetry-measurements.html
|
.. _SNMP: http://docs.openstack.org/admin-guide/telemetry-measurements.html
|
||||||
|
|
||||||
Cluster data model
|
Cluster data model
|
||||||
@@ -100,7 +100,7 @@ parameter type default Value description
|
|||||||
into which the samples are
|
into which the samples are
|
||||||
grouped for aggregation.
|
grouped for aggregation.
|
||||||
Watcher uses only the last
|
Watcher uses only the last
|
||||||
period of all recieved ones.
|
period of all received ones.
|
||||||
==================== ====== ===================== =============================
|
==================== ====== ===================== =============================
|
||||||
|
|
||||||
.. |metrics| replace:: ["cpu_util", "memory.resident"]
|
.. |metrics| replace:: ["cpu_util", "memory.resident"]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Workload Balance Migration Strategy
|
|||||||
Synopsis
|
Synopsis
|
||||||
--------
|
--------
|
||||||
|
|
||||||
**display name**: ``workload_balance``
|
**display name**: ``Workload Balance Migration Strategy``
|
||||||
|
|
||||||
**goal**: ``workload_balancing``
|
**goal**: ``workload_balancing``
|
||||||
|
|
||||||
@@ -25,9 +25,10 @@ The *workload_balance* strategy requires the following metrics:
|
|||||||
metric service name plugins comment
|
metric service name plugins comment
|
||||||
======================= ============ ======= =======
|
======================= ============ ======= =======
|
||||||
``cpu_util`` ceilometer_ none
|
``cpu_util`` ceilometer_ none
|
||||||
|
``memory.resident`` ceilometer_ none
|
||||||
======================= ============ ======= =======
|
======================= ============ ======= =======
|
||||||
|
|
||||||
.. _ceilometer: http://docs.openstack.org/admin-guide/telemetry-measurements.html#openstack-compute
|
.. _ceilometer: https://docs.openstack.org/ceilometer/latest/admin/telemetry-measurements.html#openstack-compute
|
||||||
|
|
||||||
|
|
||||||
Cluster data model
|
Cluster data model
|
||||||
@@ -66,6 +67,9 @@ Strategy parameters are:
|
|||||||
============== ====== ============= ====================================
|
============== ====== ============= ====================================
|
||||||
parameter type default Value description
|
parameter type default Value description
|
||||||
============== ====== ============= ====================================
|
============== ====== ============= ====================================
|
||||||
|
``metrics`` String 'cpu_util' Workload balance base on cpu or ram
|
||||||
|
utilization. choice: ['cpu_util',
|
||||||
|
'memory.resident']
|
||||||
``threshold`` Number 25.0 Workload threshold for migration
|
``threshold`` Number 25.0 Workload threshold for migration
|
||||||
``period`` Number 300 Aggregate time period of ceilometer
|
``period`` Number 300 Aggregate time period of ceilometer
|
||||||
============== ====== ============= ====================================
|
============== ====== ============= ====================================
|
||||||
@@ -90,7 +94,7 @@ How to use it ?
|
|||||||
at1 workload_balancing --strategy workload_balance
|
at1 workload_balancing --strategy workload_balance
|
||||||
|
|
||||||
$ openstack optimize audit create -a at1 -p threshold=26.0 \
|
$ openstack optimize audit create -a at1 -p threshold=26.0 \
|
||||||
-p period=310
|
-p period=310 -p metrics=cpu_util
|
||||||
|
|
||||||
External Links
|
External Links
|
||||||
--------------
|
--------------
|
||||||
|
|||||||
154
doc/source/strategies/zone_migration.rst
Normal file
154
doc/source/strategies/zone_migration.rst
Normal file
@@ -0,0 +1,154 @@
|
|||||||
|
==============
|
||||||
|
Zone migration
|
||||||
|
==============
|
||||||
|
|
||||||
|
Synopsis
|
||||||
|
--------
|
||||||
|
|
||||||
|
**display name**: ``Zone migration``
|
||||||
|
|
||||||
|
**goal**: ``hardware_maintenance``
|
||||||
|
|
||||||
|
.. watcher-term:: watcher.decision_engine.strategy.strategies.zone_migration
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
------------
|
||||||
|
|
||||||
|
Metrics
|
||||||
|
*******
|
||||||
|
|
||||||
|
None
|
||||||
|
|
||||||
|
Cluster data model
|
||||||
|
******************
|
||||||
|
|
||||||
|
Default Watcher's Compute cluster data model:
|
||||||
|
|
||||||
|
.. watcher-term:: watcher.decision_engine.model.collector.nova.NovaClusterDataModelCollector
|
||||||
|
|
||||||
|
Storage cluster data model is also required:
|
||||||
|
|
||||||
|
.. watcher-term:: watcher.decision_engine.model.collector.cinder.CinderClusterDataModelCollector
|
||||||
|
|
||||||
|
Actions
|
||||||
|
*******
|
||||||
|
|
||||||
|
|
||||||
|
Default Watcher's actions:
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 30 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - action
|
||||||
|
- description
|
||||||
|
* - ``migrate``
|
||||||
|
- .. watcher-term:: watcher.applier.actions.migration.Migrate
|
||||||
|
* - ``volume_migrate``
|
||||||
|
- .. watcher-term:: watcher.applier.actions.volume_migration.VolumeMigrate
|
||||||
|
|
||||||
|
Planner
|
||||||
|
*******
|
||||||
|
|
||||||
|
Default Watcher's planner:
|
||||||
|
|
||||||
|
.. watcher-term:: watcher.decision_engine.planner.weight.WeightPlanner
|
||||||
|
|
||||||
|
Configuration
|
||||||
|
-------------
|
||||||
|
|
||||||
|
Strategy parameters are:
|
||||||
|
|
||||||
|
======================== ======== ============= ==============================
|
||||||
|
parameter type default Value description
|
||||||
|
======================== ======== ============= ==============================
|
||||||
|
``compute_nodes`` array None Compute nodes to migrate.
|
||||||
|
``storage_pools`` array None Storage pools to migrate.
|
||||||
|
``parallel_total`` integer 6 The number of actions to be
|
||||||
|
run in parallel in total.
|
||||||
|
``parallel_per_node`` integer 2 The number of actions to be
|
||||||
|
run in parallel per compute
|
||||||
|
node.
|
||||||
|
``parallel_per_pool`` integer 2 The number of actions to be
|
||||||
|
run in parallel per storage
|
||||||
|
pool.
|
||||||
|
``priority`` object None List prioritizes instances
|
||||||
|
and volumes.
|
||||||
|
``with_attached_volume`` boolean False False: Instances will migrate
|
||||||
|
after all volumes migrate.
|
||||||
|
True: An instance will migrate
|
||||||
|
after the attached volumes
|
||||||
|
migrate.
|
||||||
|
======================== ======== ============= ==============================
|
||||||
|
|
||||||
|
The elements of compute_nodes array are:
|
||||||
|
|
||||||
|
============= ======= =============== =============================
|
||||||
|
parameter type default Value description
|
||||||
|
============= ======= =============== =============================
|
||||||
|
``src_node`` string None Compute node from which
|
||||||
|
instances migrate(mandatory).
|
||||||
|
``dst_node`` string None Compute node to which
|
||||||
|
instances migrate.
|
||||||
|
============= ======= =============== =============================
|
||||||
|
|
||||||
|
The elements of storage_pools array are:
|
||||||
|
|
||||||
|
============= ======= =============== ==============================
|
||||||
|
parameter type default Value description
|
||||||
|
============= ======= =============== ==============================
|
||||||
|
``src_pool`` string None Storage pool from which
|
||||||
|
volumes migrate(mandatory).
|
||||||
|
``dst_pool`` string None Storage pool to which
|
||||||
|
volumes migrate.
|
||||||
|
``src_type`` string None Source volume type(mandatory).
|
||||||
|
``dst_type`` string None Destination volume type
|
||||||
|
(mandatory).
|
||||||
|
============= ======= =============== ==============================
|
||||||
|
|
||||||
|
The elements of priority object are:
|
||||||
|
|
||||||
|
================ ======= =============== ======================
|
||||||
|
parameter type default Value description
|
||||||
|
================ ======= =============== ======================
|
||||||
|
``project`` array None Project names.
|
||||||
|
``compute_node`` array None Compute node names.
|
||||||
|
``storage_pool`` array None Storage pool names.
|
||||||
|
``compute`` enum None Instance attributes.
|
||||||
|
|compute|
|
||||||
|
``storage`` enum None Volume attributes.
|
||||||
|
|storage|
|
||||||
|
================ ======= =============== ======================
|
||||||
|
|
||||||
|
.. |compute| replace:: ["vcpu_num", "mem_size", "disk_size", "created_at"]
|
||||||
|
.. |storage| replace:: ["size", "created_at"]
|
||||||
|
|
||||||
|
Efficacy Indicator
|
||||||
|
------------------
|
||||||
|
|
||||||
|
.. watcher-func::
|
||||||
|
:format: literal_block
|
||||||
|
|
||||||
|
watcher.decision_engine.goal.efficacy.specs.HardwareMaintenance.get_global_efficacy_indicator
|
||||||
|
|
||||||
|
Algorithm
|
||||||
|
---------
|
||||||
|
|
||||||
|
For more information on the zone migration strategy please refer
|
||||||
|
to: http://specs.openstack.org/openstack/watcher-specs/specs/queens/implemented/zone-migration-strategy.html
|
||||||
|
|
||||||
|
How to use it ?
|
||||||
|
---------------
|
||||||
|
|
||||||
|
.. code-block:: shell
|
||||||
|
|
||||||
|
$ openstack optimize audittemplate create \
|
||||||
|
at1 hardware_maintenance --strategy zone_migration
|
||||||
|
|
||||||
|
$ openstack optimize audit create -a at1 \
|
||||||
|
-p compute_nodes='[{"src_node": "s01", "dst_node": "d01"}]'
|
||||||
|
|
||||||
|
External Links
|
||||||
|
--------------
|
||||||
|
|
||||||
|
None
|
||||||
@@ -39,10 +39,10 @@ named ``watcher``, or by using the `OpenStack CLI`_ ``openstack``.
|
|||||||
If you want to deploy Watcher in Horizon, please refer to the `Watcher Horizon
|
If you want to deploy Watcher in Horizon, please refer to the `Watcher Horizon
|
||||||
plugin installation guide`_.
|
plugin installation guide`_.
|
||||||
|
|
||||||
.. _`installation guide`: http://docs.openstack.org/developer/python-watcherclient
|
.. _`installation guide`: https://docs.openstack.org/python-watcherclient/latest
|
||||||
.. _`Watcher Horizon plugin installation guide`: http://docs.openstack.org/developer/watcher-dashboard/deploy/installation.html
|
.. _`Watcher Horizon plugin installation guide`: https://docs.openstack.org/watcher-dashboard/latest/install/installation.html
|
||||||
.. _`OpenStack CLI`: http://docs.openstack.org/developer/python-openstackclient/man/openstack.html
|
.. _`OpenStack CLI`: https://docs.openstack.org/python-openstackclient/latest/cli/man/openstack.html
|
||||||
.. _`Watcher CLI`: http://docs.openstack.org/developer/python-watcherclient/index.html
|
.. _`Watcher CLI`: https://docs.openstack.org/python-watcherclient/latest/cli/index.html
|
||||||
|
|
||||||
Seeing what the Watcher CLI can do ?
|
Seeing what the Watcher CLI can do ?
|
||||||
------------------------------------
|
------------------------------------
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
output_file = /etc/watcher/policy.yaml.sample
|
||||||
|
namespace = watcher
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
{
|
|
||||||
"admin_api": "role:admin or role:administrator",
|
|
||||||
"show_password": "!",
|
|
||||||
"default": "rule:admin_api",
|
|
||||||
|
|
||||||
"action:detail": "rule:default",
|
|
||||||
"action:get": "rule:default",
|
|
||||||
"action:get_all": "rule:default",
|
|
||||||
|
|
||||||
"action_plan:delete": "rule:default",
|
|
||||||
"action_plan:detail": "rule:default",
|
|
||||||
"action_plan:get": "rule:default",
|
|
||||||
"action_plan:get_all": "rule:default",
|
|
||||||
"action_plan:update": "rule:default",
|
|
||||||
|
|
||||||
"audit:create": "rule:default",
|
|
||||||
"audit:delete": "rule:default",
|
|
||||||
"audit:detail": "rule:default",
|
|
||||||
"audit:get": "rule:default",
|
|
||||||
"audit:get_all": "rule:default",
|
|
||||||
"audit:update": "rule:default",
|
|
||||||
|
|
||||||
"audit_template:create": "rule:default",
|
|
||||||
"audit_template:delete": "rule:default",
|
|
||||||
"audit_template:detail": "rule:default",
|
|
||||||
"audit_template:get": "rule:default",
|
|
||||||
"audit_template:get_all": "rule:default",
|
|
||||||
"audit_template:update": "rule:default",
|
|
||||||
|
|
||||||
"goal:detail": "rule:default",
|
|
||||||
"goal:get": "rule:default",
|
|
||||||
"goal:get_all": "rule:default",
|
|
||||||
|
|
||||||
"scoring_engine:detail": "rule:default",
|
|
||||||
"scoring_engine:get": "rule:default",
|
|
||||||
"scoring_engine:get_all": "rule:default",
|
|
||||||
|
|
||||||
"strategy:detail": "rule:default",
|
|
||||||
"strategy:get": "rule:default",
|
|
||||||
"strategy:get_all": "rule:default",
|
|
||||||
|
|
||||||
"service:detail": "rule:default",
|
|
||||||
"service:get": "rule:default",
|
|
||||||
"service:get_all": "rule:default"
|
|
||||||
}
|
|
||||||
15
playbooks/legacy/watcher-tempest-base-multinode/post.yaml
Normal file
15
playbooks/legacy/watcher-tempest-base-multinode/post.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
- hosts: primary
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
67
playbooks/legacy/watcher-tempest-base-multinode/run.yaml
Normal file
67
playbooks/legacy/watcher-tempest-base-multinode/run.yaml
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
- hosts: primary
|
||||||
|
name: Legacy Watcher tempest base multinode
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Ensure legacy workspace directory
|
||||||
|
file:
|
||||||
|
path: '{{ ansible_user_dir }}/workspace'
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
https://opendev.org \
|
||||||
|
openstack/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
chdir: '{{ ansible_user_dir }}/workspace'
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||||
|
[[local|localrc]]
|
||||||
|
TEMPEST_PLUGINS='/opt/stack/new/watcher-tempest-plugin'
|
||||||
|
enable_plugin ceilometer https://opendev.org/openstack/ceilometer
|
||||||
|
# Enable watcher devstack plugin.
|
||||||
|
enable_plugin watcher https://opendev.org/openstack/watcher
|
||||||
|
|
||||||
|
EOF
|
||||||
|
executable: /bin/bash
|
||||||
|
chdir: '{{ ansible_user_dir }}/workspace'
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
export DEVSTACK_SUBNODE_CONFIG=" "
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export DEVSTACK_GATE_TEMPEST=1
|
||||||
|
export DEVSTACK_GATE_NEUTRON=1
|
||||||
|
export DEVSTACK_GATE_TOPOLOGY="multinode"
|
||||||
|
export PROJECTS="openstack/watcher $PROJECTS"
|
||||||
|
export PROJECTS="openstack/python-watcherclient $PROJECTS"
|
||||||
|
export PROJECTS="openstack/watcher-tempest-plugin $PROJECTS"
|
||||||
|
|
||||||
|
export DEVSTACK_GATE_TEMPEST_REGEX="watcher_tempest_plugin"
|
||||||
|
|
||||||
|
export BRANCH_OVERRIDE=default
|
||||||
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
||||||
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||||
|
./safe-devstack-vm-gate-wrap.sh
|
||||||
|
executable: /bin/bash
|
||||||
|
chdir: '{{ ansible_user_dir }}/workspace'
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
80
playbooks/legacy/watcherclient-tempest-functional/post.yaml
Normal file
80
playbooks/legacy/watcherclient-tempest-functional/post.yaml
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
- hosts: primary
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
64
playbooks/legacy/watcherclient-tempest-functional/run.yaml
Normal file
64
playbooks/legacy/watcherclient-tempest-functional/run.yaml
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Legacy watcherclient-dsvm-functional
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Ensure legacy workspace directory
|
||||||
|
file:
|
||||||
|
path: '{{ ansible_user_dir }}/workspace'
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
https://opendev.org \
|
||||||
|
openstack/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
chdir: '{{ ansible_user_dir }}/workspace'
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||||
|
[[local|localrc]]
|
||||||
|
enable_plugin watcher https://opendev.org/openstack/watcher
|
||||||
|
|
||||||
|
EOF
|
||||||
|
executable: /bin/bash
|
||||||
|
chdir: '{{ ansible_user_dir }}/workspace'
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
ENABLED_SERVICES=tempest
|
||||||
|
ENABLED_SERVICES+=,watcher-api,watcher-decision-engine,watcher-applier
|
||||||
|
export ENABLED_SERVICES
|
||||||
|
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export BRANCH_OVERRIDE=default
|
||||||
|
export PROJECTS="openstack/watcher $PROJECTS"
|
||||||
|
export DEVSTACK_PROJECT_FROM_GIT=python-watcherclient
|
||||||
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
||||||
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||||
|
fi
|
||||||
|
function post_test_hook {
|
||||||
|
# Configure and run functional tests
|
||||||
|
$BASE/new/python-watcherclient/watcherclient/tests/functional/hooks/post_test_hook.sh
|
||||||
|
}
|
||||||
|
export -f post_test_hook
|
||||||
|
|
||||||
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||||
|
./safe-devstack-vm-gate-wrap.sh
|
||||||
|
executable: /bin/bash
|
||||||
|
chdir: '{{ ansible_user_dir }}/workspace'
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
@@ -27,16 +27,16 @@ Structure
|
|||||||
Useful links
|
Useful links
|
||||||
------------
|
------------
|
||||||
|
|
||||||
* How to install: http://docs.openstack.org/developer/rally/install.html
|
* How to install: https://docs.openstack.org/rally/latest/install_and_upgrade/install.html
|
||||||
|
|
||||||
* How to set Rally up and launch your first scenario: https://rally.readthedocs.io/en/latest/tutorial/step_1_setting_up_env_and_running_benchmark_from_samples.html
|
* How to set Rally up and launch your first scenario: https://rally.readthedocs.io/en/latest/tutorial/step_1_setting_up_env_and_running_benchmark_from_samples.html
|
||||||
|
|
||||||
* More about Rally: https://rally.readthedocs.org/en/latest/
|
* More about Rally: https://docs.openstack.org/rally/latest/
|
||||||
|
|
||||||
* Rally release notes: https://rally.readthedocs.org/en/latest/release_notes.html
|
* Rally project info and release notes: https://docs.openstack.org/rally/latest/project_info/index.html
|
||||||
|
|
||||||
* How to add rally-gates: https://rally.readthedocs.org/en/latest/gates.html
|
* How to add rally-gates: https://docs.openstack.org/rally/latest/quick_start/gates.html#gate-jobs
|
||||||
|
|
||||||
* About plugins: https://rally.readthedocs.org/en/latest/plugins.html
|
* About plugins: https://docs.openstack.org/rally/latest/plugins/index.html
|
||||||
|
|
||||||
* Plugin samples: https://github.com/openstack/rally/tree/master/samples/plugins
|
* Plugin samples: https://github.com/openstack/rally/tree/master/samples/
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Add notifications related to Action object.
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Adds audit scoper for storage data model, now watcher users can specify
|
||||||
|
audit scope for storage CDM in the same manner as compute scope.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Added the functionality to filter out instances which have metadata field
|
||||||
|
'optimize' set to False. For now, this is only available for the
|
||||||
|
basic_consolidation strategy (if "check_optimize_metadata" configuration
|
||||||
|
option is enabled).
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Added binding between apscheduler job and Watcher decision engine service.
|
||||||
|
It will allow to provide HA support in the future.
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Adds baremetal data model in Watcher
|
||||||
6
releasenotes/notes/cdm-scoping-8d9c307bad46bfa1.yaml
Normal file
6
releasenotes/notes/cdm-scoping-8d9c307bad46bfa1.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Each CDM collector can have its own CDM scoper now. This changed Scope
|
||||||
|
JSON schema definition for the audit template POST data. Please see audit
|
||||||
|
template create help message in python-watcherclient.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Enhancement of vm_workload_consolidation strategy
|
||||||
|
by using 'memory.resident' metric in place of
|
||||||
|
'memory.usage', as memory.usage shows the memory
|
||||||
|
usage inside guest-os and memory.resident
|
||||||
|
represents volume of RAM used by instance
|
||||||
|
on host machine.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Added a way to check state of strategy before audit's execution.
|
||||||
|
Administrator can use "watcher strategy state <strategy_name>" command
|
||||||
|
to get information about metrics' availability, datasource's availability
|
||||||
|
and CDM's availability.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- There is new ability to create Watcher continuous audits with cron
|
||||||
|
interval. It means you may use, for example, optional argument
|
||||||
|
'--interval "\*/5 \* \* \* \*"' to launch audit every 5 minutes.
|
||||||
|
These jobs are executed on a best effort basis and therefore, we
|
||||||
|
recommend you to use a minimal cron interval of at least one minute.
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Add description property for dynamic action. Admin can see detail information
|
||||||
|
of any specify action.
|
||||||
4
releasenotes/notes/gnocchi-watcher-43c25d391fbd3e9c.yaml
Normal file
4
releasenotes/notes/gnocchi-watcher-43c25d391fbd3e9c.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Added gnocchi support as data source for metrics. Administrator can change
|
||||||
|
data source for each strategy using config file.
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Added using of JSONSchema instead of voluptuous to validate Actions.
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Added strategy to identify and migrate a Noisy Neighbor - a low priority VM
|
||||||
|
that negatively affects performance of a high priority VM by over utilizing
|
||||||
|
Last Level Cache.
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Add notifications related to Service object.
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Added storage capacity balance strategy.
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Added volume migrate action
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Existing workload_balance strategy based on
|
||||||
|
the VM workloads of CPU. This feature improves
|
||||||
|
the strategy. By the input parameter "metrics",
|
||||||
|
it makes decision to migrate a VM base on CPU
|
||||||
|
or memory utilization.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Added strategy "Zone migration" and it's goal "Hardware maintenance".
|
||||||
|
The strategy migrates many instances and volumes efficiently with
|
||||||
|
minimum downtime automatically.
|
||||||
@@ -22,8 +22,8 @@
|
|||||||
# All configuration values have a default; values that are commented out
|
# All configuration values have a default; values that are commented out
|
||||||
# serve to show the default.
|
# serve to show the default.
|
||||||
|
|
||||||
import sys, os
|
import os
|
||||||
from watcher import version as watcher_version
|
import sys
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
@@ -56,14 +56,11 @@ master_doc = 'index'
|
|||||||
project = u'watcher'
|
project = u'watcher'
|
||||||
copyright = u'2016, Watcher developers'
|
copyright = u'2016, Watcher developers'
|
||||||
|
|
||||||
# The version info for the project you're documenting, acts as replacement for
|
# Release notes are version independent
|
||||||
# |version| and |release|, also used in various other places throughout the
|
|
||||||
# built documents.
|
|
||||||
#
|
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = watcher_version.version_info.release_string()
|
version = ''
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = watcher_version.version_info.version_string()
|
release = ''
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ Contents:
|
|||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
unreleased
|
unreleased
|
||||||
|
pike
|
||||||
ocata
|
ocata
|
||||||
newton
|
newton
|
||||||
|
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
# Gérald LONLAS <g.lonlas@gmail.com>, 2016. #zanata
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: watcher 1.0.1.dev51\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2017-03-21 11:57+0000\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
"PO-Revision-Date: 2016-10-22 06:44+0000\n"
|
|
||||||
"Last-Translator: Gérald LONLAS <g.lonlas@gmail.com>\n"
|
|
||||||
"Language-Team: French\n"
|
|
||||||
"Language: fr\n"
|
|
||||||
"X-Generator: Zanata 3.9.6\n"
|
|
||||||
"Plural-Forms: nplurals=2; plural=(n > 1)\n"
|
|
||||||
|
|
||||||
msgid "0.29.0"
|
|
||||||
msgstr "0.29.0"
|
|
||||||
|
|
||||||
msgid "Contents:"
|
|
||||||
msgstr "Contenu :"
|
|
||||||
|
|
||||||
msgid "Current Series Release Notes"
|
|
||||||
msgstr "Note de la release actuelle"
|
|
||||||
|
|
||||||
msgid "New Features"
|
|
||||||
msgstr "Nouvelles fonctionnalités"
|
|
||||||
|
|
||||||
msgid "Newton Series Release Notes"
|
|
||||||
msgstr "Note de release pour Newton"
|
|
||||||
|
|
||||||
msgid "Welcome to watcher's Release Notes documentation!"
|
|
||||||
msgstr "Bienvenue dans la documentation de la note de Release de Watcher"
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user