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
@omgjlk
omgjlk / gist:d1a32fb16d3503c34439
Created March 18, 2015 17:55
tempest credential traceback
test: setUpClass (tempest.api.identity.admin.v2.test_roles.RolesTestJSON)
time: 2015-03-18 17:17:28.779210Z
failure: setUpClass (tempest.api.identity.admin.v2.test_roles.RolesTestJSON) [ m
ultipart
Content-Type: text/x-traceback;charset="utf8",language="python"
traceback
614
Traceback (most recent call last):
File "/home/ubuntu/refstack-client/.tempest/tempest/test.py", line 255, in set
UpClass
root@ds1399:~# pip --version
pip 1.4.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
root@ds1399:~# mkdir foobar
root@ds1399:~# cd foobar/
root@ds1399:~/foobar# virtualenv .
New python executable in ./bin/python
Please make sure you remove any previous custom paths from your /root/.pydistutils.cfg file.
Installing distribute.............................................................................................................................................................................................done.
Installing pip...............done.
root@ds1399:~/foobar# ./bin/pip
root@ds1399:~# bash -x /etc/sensu/plugins/check-raid.sh
+ lspci
+ grep RAID
+ grep -i 3ware
+ lspci
+ grep RAID
+ grep -i MegaRAID
+ [[ -e /etc/sensu/plugins/check-storcli.pl ]]
+ [[ -e /usr/sbin/storcli64 ]]
+ sudo /etc/sensu/plugins/check-storcli.pl -b /usr/sbin/storcli64
(Pdb) glance.images.get('38c354f2-0e72-437e-b8ee-186e1ee158c6')
{u'status': u'active', u'tags': [], u'container_format': u'bare', u'min_ram': 0, u'updated_at': u'2015-04-14T23:40:35Z', u'visibility': u'public', u'owner': u'669d7a58eebb43b5b022f9d25dee47b5', u'file': u'/v2/images/38c354f2-0e72-437e-b8ee-186e1ee158c6/file', u'min_disk': 0, u'id': u'38c354f2-0e72-437e-b8ee-186e1ee158c6', u'size': 256573952, u'name': u'ubuntu-14.04-pablo4', u'created_at': u'2015-04-14T23:40:34Z', u'disk_format': u'qcow2', u'protected': False, u'schema': u'/v2/schemas/image'}
mysql> select * from image_locations where image_id = '38c354f2-0e72-437e-b8ee-186e1ee158c6';
+-----+--------------------------------------+----------------------------------------------------------------------------------------+---------------------+---------------------+---------------------+---------+-----------+---------+
| id | image_id | value | created_at | updated_at | deleted_at | deleted | meta_data | status |
+-----+--------------------------------------+----------------------------------------------------------------------------------------+---------------------+---------------------+---------------------+---------+-----------+---------+
| 414 | 38c354f2-0e72-437e-b8ee-186e1ee158c6 | https://cloud-images.ubuntu.com/trusty/20150313/trusty-server-cloudimg-amd64-disk1.img | 2015-04-14 23:40:34 | 2015-04-14 23:40:35 | 2015-04-14 23:40:35 | 1 | {} | dele
(Pdb) glance.images.get('38c354f2-0e72-437e-b8ee-186e1ee158c6')
{u'status': u'active', u'tags': [], u'container_format': u'bare', u'min_ram': 0, u'updated_at': u'2015-04-14T23:40:35Z', u'visibility': u'public', u'locations': [{u'url': u'https://cloud-images.ubuntu.com/trusty/20150313/trusty-server-cloudimg-amd64-disk1.img', u'metadata': {}}], u'owner': u'669d7a58eebb43b5b022f9d25dee47b5', u'file': u'/v2/images/38c354f2-0e72-437e-b8ee-186e1ee158c6/file', u'min_disk': 0, u'id': u'38c354f2-0e72-437e-b8ee-186e1ee158c6', u'size': 256573952, u'name': u'ubuntu-14.04-pablo4', u'created_at': u'2015-04-14T23:40:34Z', u'disk_format': u'qcow2', u'protected': False, u'schema': u'/v2/schemas/image'}
======================================================================
FAIL: setUpClass (tempest.api.compute.servers.test_create_server.ServersTestJSON)
----------------------------------------------------------------------
Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/home/ubuntu/refstack-client/.tempest/tempest/test.py", line 256, in setUpClass
cls.setup_credentials()
File "/home/ubuntu/refstack-client/.tempest/tempest/api/compute/servers/test_create_server.py", line 36, in setup_credentials
super(ServersTestJSON, cls).setup_credentials()
File "/home/ubuntu/refstack-client/.tempest/tempest/api/compute/base.py", line 55, in setup_credentials
======================================================================
FAIL: tempest.api.object_storage.test_object_expiry.ObjectExpiryTest.test_get_object_after_expiry_time[gate,id-fb024a42-37f3-4ba5-9684-4f40a7910b41]
----------------------------------------------------------------------
Traceback (most recent call last):
testtools.testresult.real._StringException: Empty attachments:
stderr
stdout
pythonlogging:'': {{{
2015-04-27 18:17:59,398 1986 INFO [tempest_lib.common.rest_client] Request (ObjectExpiryTest:setUp): 201 PUT https://bbg-staging-swift.openstack.blueboxgrid.com:8090/v2/6575fabe43b04c0c8212a43df71fd765/TestContainer-4688497/TestObject-1681963638 0.115s
======================================================================
FAIL: setUpClass (tempest.api.image.v2.test_images.ListImagesTest)
----------------------------------------------------------------------
Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/home/ubuntu/refstack-client/.tempest/tempest/test.py", line 256, in setUpClass
cls.setup_credentials()
File "/home/ubuntu/refstack-client/.tempest/tempest/api/image/base.py", line 46, in setup_credentials
cls.os = clients.Manager(cls.isolated_creds.get_primary_creds())
File "/home/ubuntu/refstack-client/.tempest/tempest/common/isolated_creds.py", line 325, in get_primary_creds
Apr 30 18:25:19 localhost.localdomain proxy-server: Authorizing from an overriding middleware (i.e: tempurl) (txn: tx28c8648d47044f5d87b6e-005542738f)
Apr 30 18:25:19 localhost.localdomain proxy-server: - - 30/Apr/2015/18/25/19 HEAD /v1/AUTH_tempest4 HTTP/1.0 204 - Swift - - - - tx28c8648d47044f5d87b6e-005542738f - 0.0207 TU - 1430418319.700628996 1430418319.721297026
Apr 30 18:25:19 localhost.localdomain proxy-server: 166.176.186.173 10.233.20.159 30/Apr/2015/18/25/19 HEAD /v1/AUTH_tempest4/test1/upgrade.retry%3Ftemp_url_sig
%3D162a54e0057c4c9323546daf852a17e080117747%26temp_url_expires%3D1430418499 HTTP
/1.0 401 - curl/7.37.1 - - - - tx28c8648d47044f5d87b6e-005542738f - 0.0325 - - 1430418319.691248894 1430418319.723721027
Apr 30 18:25:19 localhost.localdomain proxy-server: STDOUT: 166.176.186.173,10.2
33.20.159 - - [30/Apr/2015 18:25:19] "HEAD /v1/AUTH_tempest4/test1/upgrade.retry
?temp_url_sig=162a54e0057c4c9323546daf852a17e080117747&temp_url_expires=14304184
99 HTTP/1.1" 401 233 0.035048 (txn: tx28c8648d4