This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
neutron_lbaasv2_haproxy_driver: LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver | |
neutron_lbaasv2_octavia_driver: LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver | |
neutron_lbaasv2_service_drivers: "{{[ neutron_lbaasv2_haproxy_driver if neutron_lbaasv2_service_provider | bool, neutron_lbaasv2_octavia_driver if neutron_lbaas_octavia | bool ]}}" | |
neutron_lbaasv2_service_provider: "{{ neutron_lbaasv2_service_drivers | join(',') }}{% if neutron_lbaasv2_service_drivers | length > 0 %}:default{% endif %}" | |
# If it rejects the empty list entries here, or the join includes empty entries causing extra commas, we might be able | |
# to work around it as such: | |
# - use "neutron_lbaasv2_service_drivers | reject('none') | join(',')" on line 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
neutron_lbaasv2_service_providers: | |
- "{% if neutron_lbaasv2_service_provider | bool %}LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver{% endif %}" | |
- "{% if neutron_lbaas_octavia | bool %}LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver{% endif %}" | |
neutron_lbaasv2_service_provider: "{{ neutron_lbaasv2_service_providers | join(',') }}{% if neutron_lbaasv2_service_providers | length > 0 %}:default{% endif %}" | |
# If it rejects the empty string lines here, or the join includes empty lines causing extra commas, we might be able | |
# to work around it as such: | |
# - add "{% elseif %}None" or something in each providers line (2, 3) | |
# - use "neutron_lbaasv2_service_providers | reject('none')| join(',')" on line 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ceilometer_ceilometer_conf_overrides: | |
database: | |
metering_time_to_live: 1814400 | |
event_time_to_live: 1814400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update && apt-get install -y git vim tmux gcc python-dev | |
wget https://bootstrap.pypa.io/get-pip.py | |
python get-pip.py | |
pip install tox | |
git config --global user.email "you@example.com" | |
git config --global user.name "Your Name" | |
git clone https://github.com/openstack/python-glanceclient.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/glanceclient/common/http.py b/glanceclient/common/http.py | |
index f746db5..10fcc82 100644 | |
--- a/glanceclient/common/http.py | |
+++ b/glanceclient/common/http.py | |
@@ -21,6 +21,7 @@ from oslo_utils import importutils | |
from oslo_utils import netutils | |
import requests | |
try: | |
+ from requests.packages.urllib3.exceptions import NewConnectionError | |
from requests.packages.urllib3.exceptions import ProtocolError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# | |
# USAGE: | |
# ansible-playbook connection_local_repro.yml -e instance=SOME_HOST -v | |
# AFFECTS: | |
# ansible 1.9.4 | |
# EXPECTED: | |
# Remote tasks should indicate remote hostname | |
# ACTUAL: | |
# Remote tasks indicate the local hostname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type: agent.plugin | |
label: neutron_l3_router_local_check--{{ ansible_hostname }} | |
disabled : false | |
period : "{{ maas_check_period }}" | |
timeout : "{{ maas_check_timeout }}" | |
details : | |
file : neutron_l3_router_local_check.py | |
args : [] | |
alarms : | |
neutron_l3_router_status : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- include: ensure_local_checks.yml | |
vars: | |
checks: | |
- { name: "cpu_check" group: "all" } | |
- { name: "memory_check" group: "all" } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type: agent.plugin | |
label: glance_api_local_check | |
disabled : false | |
period : "{{ maas_check_period }}" | |
timeout : "{{ maas_check_timeout }}" | |
details : | |
file : glance_api_local_check.py | |
args : "{{ ansible_ssh_host }}" | |
alarms : | |
glance_api_local_status : |