Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@4d6e91a6748d:~# gnocchi archive-policy-rule create -a default -m '*' default
- <html>
- <head>
- <title>Pecan - Application Error</title>
- <body>
- <header>
- <h1>
- An error occurred!
- </h1>
- </header>
- <div id="error-content">
- <p>
- <div class="traceback">
- <b>To disable this interface, set </b>
- <a target="window"
- href="https://pecan.readthedocs.io/en/latest/deployment.html#disabling-debug-mode">
- <pre>conf.app.debug = False</pre>
- </a>
- </div>
- Pecan offers support for interactive debugging by installing the <a href="https://pypi.python.org/pypi/backlash" target="window">backlash</a> package:
- <br />
- <b><pre>pip install backlash</pre></b>
- ...and reloading this page.
- </p>
- <h2>Traceback</h2>
- <div id="traceback">
- <pre>Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/pecan/middleware/debug.py", line 78, in __call__
- return self.app(environ, start_response)
- File "/usr/local/lib/python2.7/dist-packages/pecan/middleware/recursive.py", line 56, in __call__
- return self.application(environ, start_response)
- File "/usr/local/lib/python2.7/dist-packages/pecan/core.py", line 840, in __call__
- return super(Pecan, self).__call__(environ, start_response)
- File "/usr/local/lib/python2.7/dist-packages/pecan/core.py", line 683, in __call__
- self.invoke_controller(controller, args, kwargs, state)
- File "/usr/local/lib/python2.7/dist-packages/pecan/core.py", line 574, in invoke_controller
- result = controller(*args, **kwargs)
- File "/usr/local/lib/python2.7/dist-packages/gnocchi/rest/__init__.py", line 387, in post
- wenforce("create archive policy rule", {})
- NameError: global name 'wenforce' is not defined
- </pre>
- </div>
- <h2>WSGI Environment</h2>
- <div id="environ">
- <pre>{'CONTENT_LENGTH': '76',
- 'CONTENT_TYPE': 'application/json',
- 'CONTEXT_DOCUMENT_ROOT': '/var/www/html',
- 'CONTEXT_PREFIX': '',
- 'DOCUMENT_ROOT': '/var/www/html',
- 'GATEWAY_INTERFACE': 'CGI/1.1',
- 'HTTP_ACCEPT': 'application/json, */*',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_CONNECTION': 'keep-alive',
- 'HTTP_HOST': '10.0.47.200:8041',
- 'HTTP_USER_AGENT': 'keystoneauth1/2.2.0 python-requests/2.13.0 CPython/2.7.6',
- 'HTTP_X_AUTH_TOKEN': 'gAAAAABYsgeSak3t7tUFrAimiHm_v1Dy2NMgy1VXwhCtO4gPNRGu_Xz0iSVHQ7kWMszKWE3uk8JsKDUkkNC5AXn_EJdTv7EGcY-h2JtXssJJYq316B9kQKPqMupNgZdqo-DuYl9Q14eopdBcmg204lj1Yy1lGpvq4Z0tuO1_KfyeQlx4nZucZBU',
- 'HTTP_X_DOMAIN_ID': u'5192003a671e43d08ed290db005ca86e',
- 'HTTP_X_DOMAIN_NAME': u'admin_domain',
- 'HTTP_X_IDENTITY_STATUS': 'Confirmed',
- 'HTTP_X_PROJECT_DOMAIN_ID': None,
- 'HTTP_X_PROJECT_DOMAIN_NAME': None,
- 'HTTP_X_PROJECT_ID': None,
- 'HTTP_X_PROJECT_NAME': None,
- 'HTTP_X_ROLE': u'admin',
- 'HTTP_X_ROLES': u'admin',
- 'HTTP_X_SERVICE_CATALOG': '[{"endpoints": [], "type": "orchestration", "name": "heat"}, {"endpoints": [{"adminURL": "http://10.0.47.200:9001/v2/", "region": "RegionOne", "internalURL": "http://10.0.47.200:9001/v2/", "publicURL": "http://10.0.47.200:9001/v2/"}], "type": "dns", "name": "designate"}, {"endpoints": [], "type": "volumev2", "name": "cinderv2"}, {"endpoints": [{"adminURL": "http://10.0.47.200:8888", "region": "RegionOne", "internalURL": "http://10.0.47.200:8888", "publicURL": "http://10.0.47.200:8888"}], "type": "billing", "name": "billing"}, {"endpoints": [{"adminURL": "http://10.0.47.200:9292", "region": "RegionOne", "internalURL": "http://10.0.47.200:9292", "publicURL": "http://10.0.47.200:9292"}], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://10.0.47.200:9696", "region": "RegionOne", "internalURL": "http://10.0.47.200:9696", "publicURL": "http://10.0.47.200:9696"}], "type": "network", "name": "neutron"}, {"endpoints": [], "type": "compute", "name": "nova"}, {"endpoints": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://10.0.47.200:35357/v2.0", "region": "RegionOne", "internalURL": "http://10.0.47.200:5000/v2.0", "publicURL": "http://10.0.47.200:5000/v2.0"}], "type": "identity", "name": "keystone"}, {"endpoints": [{"adminURL": "http://10.0.47.200:8041", "region": "RegionOne", "internalURL": "http://10.0.47.200:8041", "publicURL": "http://10.0.47.200:8041"}], "type": "metric", "name": "metric"}, {"endpoints": [{"adminURL": "http://10.0.47.200:8000/v1", "region": "RegionOne", "internalURL": "http://10.0.47.200:8000/v1", "publicURL": "http://10.0.47.200:8000/v1"}], "type": "cloudformation", "name": "heat-cfn"}]',
- 'HTTP_X_TENANT': None,
- 'HTTP_X_TENANT_ID': None,
- 'HTTP_X_TENANT_NAME': None,
- 'HTTP_X_USER': u'cloud_admin',
- 'HTTP_X_USER_DOMAIN_ID': u'5192003a671e43d08ed290db005ca86e',
- 'HTTP_X_USER_DOMAIN_NAME': u'admin_domain',
- 'HTTP_X_USER_ID': u'66f68888afb1424a874a0fae3c5c5e52',
- 'HTTP_X_USER_NAME': u'cloud_admin',
- 'PATH_INFO': '/archive_policy_rule/',
- 'PATH_TRANSLATED': '/usr/local/lib/python2.7/dist-packages/gnocchi/rest/app.wsgi/v1/archive_policy_rule/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '10.0.69.100',
- 'REMOTE_PORT': '34426',
- 'REQUEST_METHOD': 'POST',
- 'REQUEST_SCHEME': 'http',
- 'REQUEST_URI': '/v1/archive_policy_rule/',
- 'SCRIPT_FILENAME': '/usr/local/lib/python2.7/dist-packages/gnocchi/rest/app.wsgi',
- 'SCRIPT_NAME': '/v1',
- 'SERVER_ADDR': '172.17.0.2',
- 'SERVER_ADMIN': '[no address given]',
- 'SERVER_NAME': '10.0.47.200',
- 'SERVER_PORT': '8041',
- 'SERVER_PROTOCOL': 'HTTP/1.1',
- 'SERVER_SIGNATURE': '<address>Apache/2.4.25 (Ubuntu) Server at 10.0.47.200 Port 8041</address>\n',
- 'SERVER_SOFTWARE': 'Apache/2.4.25 (Ubuntu)',
- 'apache.version': (2, 4, 20),
- 'keystone.token_auth': <keystonemiddleware.auth_token._user_plugin.UserAuthPlugin object at 0x7efcecaf4fd0>,
- 'keystone.token_info': {'token': {u'audit_ids': [u'pCI3lWhSQUmuy5Va4QhgHA'],
- 'auth_token': 'gAAAAABYsgeSak3t7tUFrAimiHm_v1Dy2NMgy1VXwhCtO4gPNRGu_Xz0iSVHQ7kWMszKWE3uk8JsKDUkkNC5AXn_EJdTv7EGcY-h2JtXssJJYq316B9kQKPqMupNgZdqo-DuYl9Q14eopdBcmg204lj1Yy1lGpvq4Z0tuO1_KfyeQlx4nZucZBU',
- u'catalog': [{u'endpoints': [],
- u'id': u'0f1f30a11f4d4c44a515e90e7967cd46',
- u'name': u'heat',
- u'type': u'orchestration'},
- {u'endpoints': [{u'id': u'031b2fbe18f9439784d5024439eae037',
- u'interface': u'admin',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:9001/v2/'},
- {u'id': u'35162bb6319948b3b1306b4863cea2cc',
- u'interface': u'public',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:9001/v2/'},
- {u'id': u'3b8384a23d354a899e1a1a26fb8be1bf',
- u'interface': u'internal',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:9001/v2/'}],
- u'id': u'1b72c2ded6eb4f6ba85c550a51cfd56f',
- u'name': u'designate',
- u'type': u'dns'},
- {u'endpoints': [],
- u'id': u'283087bbf2724e98a6e506bc252267c3',
- u'name': u'cinderv2',
- u'type': u'volumev2'},
- {u'endpoints': [{u'id': u'1ac7186ffae54536a93a7065f44fdcfa',
- u'interface': u'public',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:8888'},
- {u'id': u'38cf69c6ac9f44d1a542cd68a04ca567',
- u'interface': u'admin',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:8888'},
- {u'id': u'73122bbb84f14a609d1120a085665c9a',
- u'interface': u'internal',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:8888'}],
- u'id': u'462b1778f6964f95936abfde2034a6b3',
- u'name': u'billing',
- u'type': u'billing'},
- {u'endpoints': [{u'id': u'1f330f33401d436598974962e46bb5a6',
- u'interface': u'public',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:9292'},
- {u'id': u'53172315a33c4a6e933b65e895a1371b',
- u'interface': u'admin',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:9292'},
- {u'id': u'e184a62672fd4655b932d66156f857c6',
- u'interface': u'internal',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:9292'}],
- u'id': u'47e149cd31174b68a4391c2c54007d7c',
- u'name': u'glance',
- u'type': u'image'},
- {u'endpoints': [{u'id': u'3eee80a4490f44ef81f443f7570dcda1',
- u'interface': u'internal',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:9696'},
- {u'id': u'6f4fef84028c4b4ca2916b5e8ebb51a0',
- u'interface': u'public',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:9696'},
- {u'id': u'bd397ed9d4b04065bd83d9bf23b54587',
- u'interface': u'admin',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:9696'}],
- u'id': u'49bf2d2f42ea44e093a89d3942d5516f',
- u'name': u'neutron',
- u'type': u'network'},
- {u'endpoints': [],
- u'id': u'744b1d27d9db4b07b5922cca0d6e9248',
- u'name': u'nova',
- u'type': u'compute'},
- {u'endpoints': [],
- u'id': u'7d3201c864b349bbb9e525163b2a81d2',
- u'name': u'cinder',
- u'type': u'volume'},
- {u'endpoints': [{u'id': u'2afe08df64154513ab726f2b6e6b2496',
- u'interface': u'public',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:5000/v2.0'},
- {u'id': u'74506257a51b49daabf6fa446e54d807',
- u'interface': u'internal',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:5000/v2.0'},
- {u'id': u'a508a41eb7024463ad1400607bd0bf73',
- u'interface': u'admin',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:35357/v2.0'}],
- u'id': u'7f5ab6c66dba4bb58715295f24a13f55',
- u'name': u'keystone',
- u'type': u'identity'},
- {u'endpoints': [{u'id': u'0d1531d4ec3f4c3584523a1237ee578b',
- u'interface': u'admin',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:8041'},
- {u'id': u'6d849ea3e8284cbb8b9c98b91ceebe8b',
- u'interface': u'internal',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:8041'},
- {u'id': u'95b8dec2068643538f81d4ce02701241',
- u'interface': u'public',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:8041'}],
- u'id': u'aa6145e3767b4332b3e4d8f478eeea69',
- u'name': u'metric',
- u'type': u'metric'},
- {u'endpoints': [{u'id': u'59e183cad0bd49e781d6b03ab2a49fe4',
- u'interface': u'public',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:8000/v1'},
- {u'id': u'e6c23249da7a4e0ea8099bb120b15f63',
- u'interface': u'admin',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:8000/v1'},
- {u'id': u'ff7a47dc97344360bc56a9fee24c7668',
- u'interface': u'internal',
- u'region': u'RegionOne',
- u'region_id': u'RegionOne',
- u'url': u'http://10.0.47.200:8000/v1'}],
- u'id': u'd538f094dd5b434c87dc0fd150aec3a8',
- u'name': u'heat-cfn',
- u'type': u'cloudformation'}],
- u'domain': {u'id': u'5192003a671e43d08ed290db005ca86e',
- u'name': u'admin_domain'},
- u'expires_at': u'2017-02-26T10:39:14.628319Z',
- u'issued_at': u'2017-02-25T22:39:14.000000Z',
- u'methods': [u'password'],
- u'roles': [{u'id': u'77e152a9ea5f4057b439df2bf093ca34',
- u'name': u'admin'}],
- u'user': {u'domain': {u'id': u'5192003a671e43d08ed290db005ca86e',
- u'name': u'admin_domain'},
- u'id': u'66f68888afb1424a874a0fae3c5c5e52',
- u'name': u'cloud_admin'},
- 'version': 'v3'}},
- 'mod_wsgi.application_group': '',
- 'mod_wsgi.callable_object': 'application',
- 'mod_wsgi.daemon_connects': '1',
- 'mod_wsgi.daemon_restarts': '0',
- 'mod_wsgi.daemon_start': '1488062353464196',
- 'mod_wsgi.enable_sendfile': '0',
- 'mod_wsgi.handler_script': '',
- 'mod_wsgi.listener_host': '0.0.0.0',
- 'mod_wsgi.listener_port': '8041',
- 'mod_wsgi.path_info': '/v1/archive_policy_rule/',
- 'mod_wsgi.process_group': 'gnocchi',
- 'mod_wsgi.queue_start': '1488062353463916',
- 'mod_wsgi.request_handler': 'wsgi-script',
- 'mod_wsgi.request_start': '1488062353463599',
- 'mod_wsgi.script_name': '',
- 'mod_wsgi.script_reloading': '1',
- 'mod_wsgi.script_start': '1488062354962175',
- 'mod_wsgi.thread_id': 1,
- 'mod_wsgi.thread_requests': 0L,
- 'mod_wsgi.total_requests': 0L,
- 'mod_wsgi.version': (4, 5, 2),
- 'pecan.locals': {'request': <Request at 0x7efcecaa60d0 POST http://10.0.47.200:8041/v1/archive_policy_rule/>,
- 'response': <Response at 0x7efcecaa6210 200 OK>},
- 'pecan.recursive.script_name': '/v1',
- 'webob._body_file': (<_io.BufferedReader>,
- <mod_wsgi.Input object at 0x7efd0e2d74a8>),
- 'webob._parsed_query_vars': (GET([]), ''),
- 'webob.adhoc_attrs': {'conf': <oslo_config.cfg.ConfigOpts object at 0x7efcfd000490>,
- 'context': {},
- 'indexer': <gnocchi.indexer.sqlalchemy.SQLAlchemyIndexer object at 0x7efcb83cc8d0>,
- 'pecan': {'content_type': 'application/json',
- 'extension': None,
- 'routing_path': u'/archive_policy_rule/'},
- 'policy_enforcer': <oslo_policy.policy.Enforcer object at 0x7efcaad30f50>,
- 'response': <_AuthTokenResponse at 0x7efcecad4790 200 OK>,
- 'storage': <gnocchi.storage.ceph.CephStorage object at 0x7efccd1ff190>},
- 'webob.is_body_seekable': True,
- 'wsgi.errors': <mod_wsgi.Log object at 0x7efcaad24108>,
- 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,
- 'wsgi.input': <_io.BytesIO object at 0x7efcecaf2e90>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': True,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}</pre>
- </div>
- </div>
- </body>
- </html>
- (HTTP 500)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement