Skip to content

Instantly share code, notes, and snippets.

View jfwood's full-sized avatar
🏠
Working from home

John Wood jfwood

🏠
Working from home
  • iHeartMedia
  • SAT
View GitHub Profile
TASK: [keep-api | Install Logstash] *******************************************
failed: [apiright-n01.stg.ord.cloudkeep.io] => {"changed": false, "failed": true, "rc": 0, "results": []}
msg: No Package matching 'logstash' found available, installed or updated
failed: [apiright-n02.stg.ord.cloudkeep.io] => {"changed": false, "failed": true, "rc": 0, "results": []}
msg: No Package matching 'logstash' found available, installed or updated
@jfwood
jfwood / keystone-v2.cfg.xml
Created February 18, 2016 20:56
First attempt to move from client-auth-n.cfg.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- http://wiki.openrepose.org/display/REPOSE/Keystone+v2+Filter -->
<keystone-v2 xmlns="http://docs.openrepose.org/repose/keystone-v2/v1.0">
<identity-service username="<user here>" password="<pw here>" uri="https://identity.api.rackspacecloud.com/v2.0/">
<!--<client-mapping id-regex=".*\?.*USERNAME_QUERY_PARAM=(.+)&amp;?.*"/>-->
<!--<client-mapping id-regex=".*/v1/([-|\w]+)/?.*"/>-->
</identity-service>
@jfwood
jfwood / gist:202996ebd2cccf9bee5e
Created January 26, 2016 22:05
Simple POST secrets
curl -v -k X POST -H 'X-Roles:admin' -H 'X-Project-Id:12345' -H 'X-User-Id:6789' -H 'content-type:application/json' \
-d '{"payload": "my-secret-here", "payload_content_type": "text/plain"}' \
$KEEP_ENDPOINT/v1/secrets
@jfwood
jfwood / Repose error
Created January 25, 2016 22:17
Repose error
Jan 25 22:15:46 localhost docker/repose[18496]: 2016-01-25 22:15:46,961 ERROR [qtp698393765-71] powerfilter.PowerFilterRouterImpl (PowerFilterRouterImpl.java:189) - Connection Refused to http://barbican:9311//v1/secrets
Jan 25 22:15:46 localhost docker/repose[18496]: java.net.ConnectException: Connection refused
Jan 25 22:15:46 localhost docker/repose[18496]: at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:1.7.0_91]
Jan 25 22:15:46 localhost docker/repose[18496]: at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) ~[?:1.7.0_91]
Jan 25 22:15:46 localhost docker/repose[18496]: at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) ~[?:1.7.0_91]
Jan 25 22:15:46 localhost docker/repose[18496]: at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) ~[?:1.7.0_91]
Jan 25 22:15:46 localhost docker/repose[18496]: at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.7.0_91]
Jan 25 22:15:46 localhost docker/rep
@jfwood
jfwood / Inside barbican.queue.server.py
Created March 25, 2015 12:37
Barbican Task Workflow Manager Proposal
class TaskWorkflow(object):
"""Task workflow manager.
Proposal:
Manages the processing flow for a :class:`BaseTask` implementation.
This would replace the @transactional decorator, and provide full
rollback support to the task's handle_processing() call, and still
allow for marking the order as being in the ERROR state properly.
Note that since multiple workers are active at once, and because
clients could be modifying orders at the same time an order is
container_type = json_data.get('type')
secret_refs = json_data.get('secret_refs')
if not secret_refs:
return json_data
secret_refs_names = set(secret_ref.get('name', '')
for secret_ref in secret_refs)
@jfwood
jfwood / Order Schema - Asymmetric
Last active August 29, 2015 13:56
Barbican orders API blueprint discussion
This schema would replace the current order schema below.
Schema for generating an 'asymmetric' type, which includes RSA key-pair generation.
POST v1/{tenant_id}/orders
{
"type": "asymmetric",
"meta": {
"name": "container-name",
@jfwood
jfwood / gist:8246500
Created January 3, 2014 21:00
vm-param-list output
uuid ( RO) : 70c5fd69-0af4-f125-12eb-514613c617b3
name-label ( RW): gs-intern-deb
name-description ( RW): Windows Server 2008 R2 image created by Rackspace and Gazzang <details munched>.
user-version ( RW): 1
is-a-template ( RW): false
is-a-snapshot ( RO): false
snapshot-of ( RO): <not in database>
snapshots ( RO): 9d26fc95-efcc-a805-b7f2-8538d5507c65
snapshot-time ( RO): 19700101T00:00:00Z
snapshot-info ( RO):
@jfwood
jfwood / image_playpen.sh
Created January 3, 2014 16:19
Script I'm using to play with image service. Line #35 is the import call I'm making, and #38 is where I see the status is failed: {"status": "failure", "created_at": "2014-01-03T02:50:53Z", "updated_at": "2014-01-03T02:50:55Z", "expires_at": "2014-01-05T02:50:55Z", "id": "76827874-e5b7-4998-b0f7-a028d3560234", "owner": "802958", "input": {"image…
#!/bin/sh
# Create tar file per Rackspace configs:
TAR_FILE=gs-intern-deb-rackspace-configs.tar.gz
VHD_FILE=be8d2659-a995-42a4-a270-b08e4c7986f1.vhd
OVF_FILE=gs-intern-deb-rackspace-configs.ovf
#tar czvf $TAR_FILE $VHD_FILE $OVF_FILE
# Use this to get the API token:
# curl -X POST -d @auth.xml -H "Content-Type: application/xml" -H "Accept: application/xml" https://auth.api.rackspacecloud.com/v1.1/auth