Skip to content

Instantly share code, notes, and snippets.

View omgjlk's full-sized avatar
🤷‍♂️
Inserting sleeps until it works

Jesse Keating omgjlk

🤷‍♂️
Inserting sleeps until it works
View GitHub Profile
- name: a task
template: src=foobar dst=bar
notify:
- handler A
- handler B
---
settings:
package_name_format: 'openstack-{{ project.name }}-{{ settings.version }}'
base_path: '/opt/bbc/openstack-{{ settings.version }}/'
version: 10.0-bbc0
force_overwrite: true
gerrit_dependencies: false
output_dir: /tmp/bbc-packages
projects:
+------------------+---------------+------+---------+-------+----------------------------+
| Binary | Host | Zone | Status | State | Updated_at |
+------------------+---------------+------+---------+-------+----------------------------+
| cinder-scheduler | ds1418 | nova | enabled | down | 2015-08-27T21:30:19.000000 |
| cinder-scheduler | ds1419 | nova | enabled | down | 2015-08-27T21:30:09.000000 |
| cinder-volume | ds1421@nimble | nova | enabled | up | 2015-08-27T21:31:24.000000 |
+------------------+---------------+------+---------+-------+----------------------------+
- name: create nova directories
file:
dest: "{{ item.value.path }}"
owner: nova
group: "{{ item.value.group | default('nova') }}"
mode: "{{ item.value.mode | default('omit') }}"
state: directory
with_dict:
config:
path: /etc/nova
---
- name: print a variable
debug:
var: derp
changed_when: true
notify: say hi
Traceback (most recent call last):
File "/usr/local/bin/keystone", line 6, in <module>
from keystoneclient.shell import main
File "/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py", line 31, in <module>
from keystoneclient import access
File "/usr/local/lib/python2.7/dist-packages/keystoneclient/access.py", line 21, in <module>
from oslo_utils import timeutils
File "/usr/local/lib/python2.7/dist-packages/oslo_utils/timeutils.py", line 31, in <module>
from oslo_utils import reflection
File "/usr/local/lib/python2.7/dist-packages/oslo_utils/reflection.py", line 44, in <module>
2016-02-12 00:47:01.126 3936 DEBUG nova.api.openstack.wsgi [-] Calling method '<bound method Versions.index of <nova.api.openstack.compute.versions.Versions object at 0x7f05a0acfbd0>>' _process_stack /opt/bbc/openstack-11.0-bbc153/nova/local/lib/python2.7/site-packages/nova/api/openstack/wsgi.py:783
2016-02-12 00:47:01.129 3936 INFO nova.osapi_compute.wsgi.server [-] Traceback (most recent call last):
File "/opt/bbc/openstack-11.0-bbc153/nova/local/lib/python2.7/site-packages/eventlet/wsgi.py", line 501, in handle_one_response
write(b''.join(towrite))
File "/opt/bbc/openstack-11.0-bbc153/nova/local/lib/python2.7/site-packages/eventlet/wsgi.py", line 442, in write
_writelines(towrite)
File "/opt/bbc/openstack-11.0-bbc153/nova/local/lib/python2.7/site-packages/eventlet/support/__init__.py", line 62, in safe_writelines
writeall(fd, item)
File "/opt/bbc/openstack-11.0-bbc153/nova/local/lib/python2.7/site-packages/eventlet/support/__init__.py", line 67, in writeall
fd.write(buf)
multi-region cloud​
customer can address cloud resources across multiple regions. customer has a single set of api endpoint and management interface used to manage cloud resources across all regions.the_cloud
--------------
|-- hong kong region
|-- london region
|-- seattle regionDashboard
1a. User logs into Horizon Dashboard
2a. User sees resources presented in subsets (regions)
3a. User can manage and deploy resources across different regionsCLI/API
1b. User authenticates via CLI/API
- name: update-alternatives
alternatives: name={{ item }}
path={{ openstack_package.virtualenv_base }}/{{ project_name }}/bin/{{ item }}
link=/usr/local/bin/{{ item }}
with_items: "{{ alternatives }}"
when: alternatives is defined
results in
subnets:
- name: internal_v4
network_name: internal
ip_version: 4
cidr: 172.16.255.0/24
pool_start: 172.16.255.2
pool_end: 172.16.255.254
enable_dhcp: "true"
gateway_ip: 172.16.255.1
dns_nameservers: '8.8.8.8,8.8.4.4'