Skip to content

Instantly share code, notes, and snippets.

View tonytan4ever's full-sized avatar

Tony Tan tonytan4ever

View GitHub Profile
{
"queue": [],
"deleted": [
{
"cert_details": {},
"project_id": "854929",
"cert_type": "san",
"domain_name": "thumbs-media.si-secure.com",
"flavor_id": "cdn"
},
@tonytan4ever
tonytan4ever / gist:3827d32d387bb11d01cd
Last active March 14, 2016 16:38
Claim Job Error
JobFailure: Claiming
failure: 1fc767e7-ff15-438b-bf97-7a4fcf28fad2
(/taskflow/jobs/poppy_service_job/job0000215924), session expired#012
SessionExpiredError#012Traceback (most recent call last):#012 File
"/srv/poppy/bin/poppy-worker", line 11, in <module>#012
sys.exit(run())#012 File
"/srv/poppy/local/lib/python2.7/site-packages/poppy/cmd/task_flow_worker.py
", line 34, in run#012
b.distributed_task.services_controller.run_task_worker(name=conductor_name)
#012 File
(python27) 532 c13141:~/projects/Rackspace/quark $ quark-db-manage --config-file ~/.neutron/neutron.conf upgrade head
Traceback (most recent call last):
File "/Users/c13141/bin/python27/bin/quark-db-manage", line 6, in <module>
from quark.db.migration.alembic.cli import main
File "/Users/c13141/projects/Rackspace/quark/quark/db/migration/alembic/__init__.py", line 2, in <module>
from quark.drivers import optimized_nvp_driver # noqa
File "/Users/c13141/projects/Rackspace/quark/quark/drivers/optimized_nvp_driver.py", line 24, in <module>
from quark.drivers.nvp_driver import NVPDriver
File "/Users/c13141/projects/Rackspace/quark/quark/drivers/nvp_driver.py", line 29, in <module>
from quark.drivers import security_groups as sg_driver
@tonytan4ever
tonytan4ever / gist:7460ff6b7ed99715b612
Created March 28, 2016 19:42
Neutron Local Error.
2016-03-28 14:41:59.341 16011 INFO quark.plugin_modules.networks [req-7c2c2a6c-3bbf-4001-b46c-dfd98a340f6e - - - - -] get_networks for tenant None with filters {}, fields []
2016-03-28 14:41:59.566 16011 ERROR neutron.api.v2.resource [req-7c2c2a6c-3bbf-4001-b46c-dfd98a340f6e - - - - -] index failed
2016-03-28 14:41:59.566 16011 ERROR neutron.api.v2.resource Traceback (most recent call last):
2016-03-28 14:41:59.566 16011 ERROR neutron.api.v2.resource File "/Users/c13141/projects/Rackspace/neutron/neutron/api/v2/resource.py", line 84, in resource
2016-03-28 14:41:59.566 16011 ERROR neutron.api.v2.resource result = method(request=request, **args)
2016-03-28 14:41:59.566 16011 ERROR neutron.api.v2.resource File "/Users/c13141/bin/neutron-quark/lib/python2.7/site-packages/oslo_db/api.py", line 148, in wrapper
2016-03-28 14:41:59.566 16011 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc
2016-03-28 14:41:59.566 16011 ERROR neutron.api.v2.resource File "/Users/c13141/bin/neutron-quark/lib/pytho
(python27) 554 c13141:~/projects/Rackspace/docker-devstack $ docker-compose run openstack
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Building openstack
Step 1 : FROM debian:jessie
---> f50f9524513f
Step 2 : RUN perl -pi -w -e 's/101/0/g;' /usr/sbin/policy-rc.d
---> Using cache
---> 243567b07d9b
Step 3 : RUN apt-get update && apt-get -y install python net-tools bsdmainutils git build-essential libssl-dev libffi-dev python-dev sudo vim apt-utils lsb-release openvswitch-switch supervisor openssh-server
+functions-common:git_timed:599 timeout -s SIGINT 0 git clone git://git.openstack.org/openstack/requirements.git /opt/stack/requirements
Cloning into '/opt/stack/requirements'...
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
+functions-common:git_timed:602 [[ 128 -ne 124 ]]
+functions-common:git_timed:603 die 603 'git call failed: [git clone' git://git.openstack.org/openstack/requirements.git '/opt/stack/requirements]'
+functions-common:die:186 local exitcode=0
+functions-common:die:187 set +o xtrace
+++lib/tempest:configure_tempest:109 openstack image list --property status=active
Unable to establish connection to http://172.18.0.2:9292/v2/images
++lib/tempest:configure_tempest:154 case "${#images[*]}" in
++lib/tempest:configure_tempest:156 echo 'Found no valid images to use!'
Found no valid images to use!
++lib/tempest:configure_tempest:157 exit 1
+lib/tempest:configure_tempest:1 exit_trap
+./stack.sh:exit_trap:474 local r=1
++./stack.sh:exit_trap:475 jobs -p
+./stack.sh:exit_trap:475 jobs=
br-ex Link encap:Ethernet HWaddr 5a:ec:6d:e7:7d:44
inet addr:172.24.4.1 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::141b:66ff:fe5a:5a4e/64 Scope:Link
inet6 addr: 2001:db8::2/64 Scope:Global
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:31 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2322 (2.3 KB) TX bytes:1166 (1.1 KB)
@tonytan4ever
tonytan4ever / Last known good DevStack Config
Created April 1, 2016 18:11
Last_Known_Good_DevStack_Config
[[local|localrc]]
LIBS_FROM_GIT+=python-neutronclient
#USE_VENV=True
#RECLONE=yes
#PIP_UPGRADE=True
KEYSTONE_TOKEN_FORMAT=UUID
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
ADMIN_PASSWORD=password
SERVICE_PASSWORD=password
client = MongoClient(**kwargs)
db = client[conf['NAME']]
if conf['USER']:
db.authenticate(
conf['USER'],
conf['PASSWORD'])
collection = db['sensor_data']
collection.find({})