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
$ swift tempurl GET 500 /v1/AUTH_tempest4/test1/upgrade.retry password1
/v1/AUTH_tempest4/test1/upgrade.retry?temp_url_sig=ac4a837eda9309f4bdf4d24fb1f0243c412d9468&temp_url_expires=1430419574
$ curl -I -XHEAD "https://bbg-staging-swift.openstack.blueboxgrid.com:8090/v1/AUTH_tempest4/test1/upgrade.retry?temp_url_sig=ac4a837eda9309f4bdf4d24fb1f0243c412d9468&temp_url_expires=1430419574"
HTTP/1.1 401 Unauthorized
Content-Type: text/html; charset=UTF-8
Www-Authenticate: Swift realm="unknown"
Content-Length: 0
X-Trans-Id: tx0844182784cc4f6f874c5-00554276aa
Date: Thu, 30 Apr 2015 18:38:34 GMT
$ swift tempurl GET 500 /v1/AUTH_tempest4/test1/upgrade.retry password1
/v1/AUTH_tempest4/test1/upgrade.retry?temp_url_sig=d69de7f940f480ba61f7987c0ad188b76f895f12&temp_url_expires=1430419892
$ curl -v "https://bbg-staging-swift.openstack.blueboxgrid.com:8090/v1/AUTH_tempest4/test1/upgrade.retry?temp_url_sig=d69de7f940f480ba61f7987c0ad188b76f895f12&temp_url_expires=1430419892"
curl -v "https://bbg-staging-swift.openstack.blueboxgrid.com:8090/v1/AUTH_tempest4/test1/upgrade.retry?temp_url_sig=d69de7f940f480ba61f7987c0ad188b76f895f12&temp_url_expires=1430419892"
* Hostname was NOT found in DNS cache
* Trying 173.247.106.245...
* Connected to bbg-staging-swift.openstack.blueboxgrid.com (173.247.106.245) port 8090 (#0)
* TLS 1.2 connection using TLS_RSA_WITH_AES_128_CBC_SHA
* Server certificate: *.openstack.blueboxgrid.com
Account: 7bb348216c144eb69cae5d7777cb604f
Containers: 1
Objects: 0
Bytes: 0
Containers in policy "policy-0": 1
Objects in policy "policy-0": 0
Bytes in policy "policy-0": 0
Meta Temp-Url-Key: password1
X-Account-Project-Domain-Id: default
Connection: close
2015-04-30 19:45:42.602 23513 ERROR oslo.messaging.rpc.dispatcher [req-1d78fb5c-bea3-4237-b95f-f043edba0c86 ] Exception during message handling: Virtual Interface creation failed
2015-04-30 19:45:42.602 23513 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2015-04-30 19:45:42.602 23513 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
2015-04-30 19:45:42.602 23513 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2015-04-30 19:45:42.602 23513 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
2015-04-30 19:45:42.602 23513 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2015-04-30 19:45:42.602 23513 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib
[DEFAULT]
debug = true
verbose = true
log_file = staging.log
use_stderr = false
[auth]
allow_tenant_isolation = true
create_isolated_networks = false
[compute]
run_ssh = true
DEBUG:keystoneclient.session:REQ: curl -g -i -X GET https://trustytest.openstack
.blueboxgrid.com:8778/ -H "Accept: application/json" -H "User-Agent: python-keys
toneclient"
DEBUG:keystoneclient.session:RESP: [200] date: Fri, 08 May 2015 22:30:06 GMT con
tent-length: 344 content-type: application/json connection: close
RESP BODY: {"versions": [{"status": "SUPPORTED", "updated": "2014-06-28T12:20:21
Z", "id": "v1.0", "links": [{"href": "http://trustytest.openstack.blueboxgrid.co
m:8778/v1/", "rel": "self"}]}, {"status": "CURRENT", "updated": "2012-11-21T11:3
3:21Z", "id": "v2.0", "links": [{"href": "http://trustytest.openstack.blueboxgri
d.com:8778/v2/", "rel": "self"}]}]}
+-------------+---------------------------------------------------------------------------------------+
| Property | Value |
+-------------+---------------------------------------------------------------------------------------+
| adminURL | https://trustytest.openstack.blueboxgrid.com:8778/v1/a306f8db0a484ae6a7dc7836d5e3ad3e |
| id | 20ce0ecb5bdd441193f1629ea62e46f6 |
| internalURL | https://trustytest.openstack.blueboxgrid.com:8778/v1/a306f8db0a484ae6a7dc7836d5e3ad3e |
| publicURL | https://trustytest.openstack.blueboxgrid.com:8778/v1/a306f8db0a484ae6a7dc7836d5e3ad3e |
| region | RegionOne |
+-------------+---------------------------------------------------------------------------------------+
#!/usr/bin/env python
#
# Prune deleted instance content out of a nova database
#
# Authors: Jesse Keating <[email protected]>
#
# License: MIT
import argparse
import MySQLdb
(rally.new)root@rally:~# rally task start suspend-and-resume.yaml --deployment=dell-sea
--------------------------------------------------------------------------------
Preparing input task
--------------------------------------------------------------------------------
Input task is:
---
NovaServers.suspend_and_resume_server:
-
args:
---
- name: thing
hosts: localhost
gather_facts: false
vars:
foo:
keys:
- 1
- 2
- 3