This is content converted from Markdown!
Here's a JSON sample:
{
"foo": "bar"
}
<html> | |
<head> | |
<style> | |
h1 { | |
font-family: Calibri; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Hello World!</h1> |
#/usr/bin/which sh | |
set -e | |
PRE_SOURCEFILE=$(mktemp) | |
$(which python) - "${0}" "${@}" "--source" "${PRE_SOURCEFILE}" "--prefix" "PRE" <<END | |
import argparse | |
import sys | |
import tempfile | |
export PG_PASSWD="USE_UR_PASSWD" | |
for db_name in scm amon rman hue metastore sentry nav navms oozie; do sudo -u postgres psql -c "CREATE ROLE $db_name LOGIN PASSWORD '$PG_PASSWD';"; sudo -u postgres psql -c "CREATE DATABASE $db_name OWNER $db_name ENCODING 'UTF8';"; done | |
sudo -u postgres psql -c "SELECT rolname FROM pg_roles;" && sudo -u postgres psql -c "\l" | |
for db_name in metastore oozie; do sudo -u postgres psql -c "ALTER DATABASE $db_name SET standard_conforming_strings=off;"; done | |
sudo /opt/cloudera/cm/schema/scm_prepare_database.sh postgresql scm scm $DB_PASSWD |
#!/usr/bin/env bash | |
# Copyright (c) 2014 Intel Corporation. | |
# All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
=== nova.image.s3.py === | |
string('image_decryption_dir', '/tmp', 'parent dir for tempdir used for image decryption') | |
string('s3_access_key', 'notchecked', 'access key to use for s3 server for images') | |
string('s3_secret_key', 'notchecked', 'secret key to use for s3 server for images') | |
=== nova.compute.api.py === | |
integer('find_host_timeout', 30, 'Timeout after NN seconds when looking for a host.') | |
=== nova.compute.manager.py === | |
string('instances_path', '$state_path/instances', 'where instances are stored on disk') |
Failure | |
runTest ERROR | |
====================================================================== | |
ERROR: Failure: AttributeError ('module' object has no attribute 'test_db_api') | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/joko/git/nova/.venv/local/lib/python2.7/site-packages/nose/loader.py", line 379, in loadTestsFromName | |
module = resolve_name(addr.module) | |
File "/home/joko/git/nova/.venv/local/lib/python2.7/site-packages/nose/util.py", line 331, in resolve_name |
diff --git a/nova/tests/test_db_api.py b/nova/tests/test_db_api.py | |
index bfcc6b8..e11c0dd 100644 | |
--- a/nova/tests/test_db_api.py | |
+++ b/nova/tests/test_db_api.py | |
@@ -273,8 +273,8 @@ class _DbApiTestCase(test.TestCase): | |
self.saved_db_imp = db.api.IMPL | |
self.saved_migration_imp = db.migration.IMPL | |
- db.api.IMPL = self.get_db_driver() | |
- db.migration.IMPL = self.get_migration_driver() |
horizon/context_processors.py:64: except Exception, e: | |
horizon/dashboards/syspanel/users/views.py:51: except Exception, e: | |
horizon/dashboards/syspanel/users/forms.py:75: except Exception, e: | |
horizon/dashboards/syspanel/users/forms.py:86: except Exception, e: | |
horizon/dashboards/syspanel/flavors/views.py:54: except Exception, e: | |
horizon/dashboards/syspanel/quotas/views.py:39: except Exception, e: | |
horizon/dashboards/syspanel/instances/views.py:264: except Exception as e: | |
horizon/dashboards/syspanel/instances/views.py:293: except Exception as e: | |
horizon/dashboards/syspanel/tenants/views.py:52: except Exception, e: | |
horizon/dashboards/syspanel/tenants/forms.py:181: except Exception, e: |