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
File "/opt/bbc/openstack-10.0-bbc68/swift/local/lib/python2.7/site-packages/keystoneclient/session.py",
line 420, in _send_request#012
raise exceptions.SSLError(msg)#012SSLError: SSL exception connecting to https://bbg-staging-01.openstack.blueboxgrid.com:35358:
[Errno bad ca_certs: '"/etc/ssl/certs/ca-certificates.crt"']
[('system library', 'fopen', 'No such file or directory'),
('BIO routines', 'BIO_new_file', 'no such file'),
('x509 certificate routines', 'X509_load_cert_crl_file', 'system lib')]
+------------------+---------------+------+---------+-------+----------------------------+
| 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 |
+------------------+---------------+------+---------+-------+----------------------------+
#!/usr/bin/python -tt
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
- name: assessment
hosts: host1:host2:host3:host4
gather_facts: false
tasks:
- name: hostname
command: hostname
delegate_to: host5
@omgjlk
omgjlk / play.yaml
Created July 29, 2014 23:25
play.yaml
---
tasks:
- name: task name here
shell: executable --option=foo --other_option=bar
--third-option=baz chdir=/opt/foobar
- name: derp
gather_facts: false
hosts: all
vars:
foo: bar
missing: derp
tasks:
- command: echo yes
when: foo.startswith('nope') or (missing is defined and missing.starts_with('derp'))
2014-11-26 20:33:58.010 8691 DEBUG nova.api.openstack.wsgi [req-e04f219a-cf54-46
c8-bbe8-44bc9d8f1256 None] Action: 'create', calling method: <bound method Serve
rExternalEventsController.create of <nova.api.openstack.compute.contrib.server_e
xternal_events.ServerExternalEventsController object at 0x33950d0>>, body: {"events": [{"status": "completed", "tag": "0b1b29e1-7ba7-4af3-8631-7fdd80572a61", "name": "network-vif-plugged", "server_uuid": "20d39e8c-7097-4552-8175-fed3ca2ebc9e"}]} _process_stack /usr/local/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:934
2014-11-26 20:33:58.060 8691 DEBUG nova.api.openstack.compute.contrib.server_external_events [req-e04f219a-cf54-46c8-bbe8-44bc9d8f1256 None] Dropping event network-vif-plugged:0b1b29e1-7ba7-4af3-8631-7fdd80572a61 for unknown instance 20d39e8c-7097-4552-8175-fed3ca2ebc9e create /usr/local/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/server_external_events.py:114
2014-11-26 20:33:58.061 8691 INFO nova.api.openstack.wsgi [req-e04f2
~/src/derp> cat boo.yaml
---
- name: test something
hosts: localhost
gather_facts: false
tasks:
- debug: msg="hi"
changed_when: true
notify: a handler
iff --git a/roles/nova-common/meta/main.yml b/roles/nova-common/meta/main.yml
index 764e42c..0358d19 100644
--- a/roles/nova-common/meta/main.yml
+++ b/roles/nova-common/meta/main.yml
@@ -8,4 +8,6 @@ dependencies:
project_name: nova
project_rev: "{{ nova.source.rev }}"
rootwrap: True
+ openstack_source:
+ git_mirror: "https://github.com/blueboxgroup"
ansible -i 173.247.106.57, 173.247.106.57 -u ubuntu --private-key envs/test/swiftd.pem --sudo -m service -a "name=derp state=stopped must_exist=no" -vv
<173.247.106.57> REMOTE_MODULE service name=derp state=stopped must_exist=no
173.247.106.57 | success >> {
"changed": false,
"exists": false
}