StackTach.v3 development is actively underway. Learn more here
rackerlabs / stacktach Goto Github PK
View Code? Open in Web Editor NEWEvent-based Monitoring & Billing solution for OpenStack
Event-based Monitoring & Billing solution for OpenStack
StackTach.v3 development is actively underway. Learn more here
Hello,
I have sucessfully build the cloud on ubuntu 12.04 using devstack,
and trying for performance monitoring and i found stacktach is the best for it.
so far i executed till $python manage.py runserver and ./worker/start_workers.py
sucessfully with the help of sandy walsh http://www.youtube.com/watch?v=pZgwDHZ3wm0
but after start_workers.py and clicking ALL, i am getting nothing on screen
Please help
Currently the table rows are all the same color, it would be great if they alternated color so that you could keep track of a single row much more easily as you scanned from left to right.
This could normally be done quite easily with jquery-ui with a snippet like the following (of course adjusting the colors as necessary):
$(document).ready(function()
{
//for table row
$("tr:even").css("background-color", "#FFFFFF");
$("tr:odd").css("background-color", "#000000");
});
This does work for the table of latest events which is AJAX loaded from the /latest_raw URL, but for the table that is returned based on your search query, there is an extra row inserted in to allow for the details expansion, and this breaks the simple alternation. For this table, you would need to grab the row index of that table and do some math to alternate the colors based on groups of two rows.
Handling the two tables separately would normally be trivial, but the HTML does not have id attributes to differentiate between the two tables within the javascript easily.
An alternative way, and arguably a better way, would be to have the returned HTML place classes onto the tr elements and then apply the alternating colors via CSS.
Trying to create reports with pretty.py and receiving the following error:
$ python reports/pretty.py --utcdate 2013-05-07
Traceback (most recent call last):
File "reports/pretty.py", line 285, in
too_long)
File "reports/pretty.py", line 214, in make_report
failure_percentage = (float(failure_total)/float(total)) * 100.0
ZeroDivisionError: float division by zero
I know that I have data for today in stacktach:
$ python stacky.py events | wc
16 43 592
$ python stacky.py summary
+---------------------------+---+----------------+----------------+-------------+
| Event | N | Min | Max | Avg |
+---------------------------+---+----------------+----------------+-------------+
| compute.instance.create | 5 | 0d 00:00:23.90 | 0d 00:00:38.85 | 0d 00:00:31 |
| compute.instance.delete | 6 | 0d 00:00:05.13 | 0d 00:00:12.13 | 0d 00:00:08 |
| compute.instance.shutdown | 6 | 0d 00:00:04.74 | 0d 00:00:11.75 | 0d 00:00:08 |
| compute.instance.snapshot | 1 | 0d 00:04:47.87 | 0d 00:04:47.87 | 0d 00:04:47 |
+---------------------------+---+----------------+----------------+-------------+
When clicking the + to expand a result in the search table, it jumps your view back up to the top of the page. This could likely be solved with the following method:
I am trying to use stacktach (v2) with OpenStack Kilo but cannot get notifications through.
The installation instruction has the following note: "Note: This will likely change once the various project switch to oslo.messaging
which uses endpoints to define the notification drivers." and indeed the messages on the OpenStack side all have oslo.message payloads with endpoints information inside.
Do we need a different way to configure the workers?
In addition, how to change the worker's logging to DEBUG?
After configuring the system I get an error in Rabbit MQ logs.
=ERROR REPORT==== 1-Nov-2012::18:39:11 ===
connection <0.10023.48>, channel 1 - error:
{amqp_error,precondition_failed,
"cannot redeclare exchange 'nova' in vhost '/' with different type, durable, internal or autodelete value",
'exchange.declare'}
I followed a site that said stop Rabbitmq and do a reset then start but no joy.
Also worth mentioning that Rabbit is using the default creds of guest/guest
Any help appreciated, looks like a great tool with loads of potential.
Regards
Steve
I have created the DB with the syncdb command and I get
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table stacktach_deployment
Creating table stacktach_rawdata
Creating table stacktach_lifecycle
Creating table stacktach_timing
You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): no
Installing custom SQL ...
Installing indexes ...
No fixtures found.
is the No fixtures found correct? Your demo on the video shows it as 0 fixtures and 0 something else.
The reason I as is after running the server and the worker I am getting no data, I do get the portal and I see the name that I specified in my json file but looking atthe DB there is no data. I have made sure the notifiers are running and I also verified that the stacktach was connecting to rabbitmq
Thoughts - Feels like I am almost there :)
Steve
Add configuration option for enabling/disabling durable queues.
One of our installs is not configured for durable queues, so the worker "silently" failed (It logged an error, but not on screen)
storing token in the mysql database is not only security issue but also increases the table size.
The table size is not a concern for uuid but using PKI is a big deal.
we fixed it be removing token from json payload.
stacktach/notification.py
import json as js
34 jsdata = js.loads(json)
35 tmp = jsdata[1]['_context_auth_token']
36 jsdata[1]['_context_auth_token'] = "*********"
37 self.json = js.dumps(jsdata)
Hi,
I am just new with Stacktach and I like to install it. Short question, where is the best to install it: in the Controller node ? or should it be also possible in a separate VM?
Best Regards,
My stacktach VM does not receive any events and I'm wondering if I configured the notification in nova.conf not correctly. I'm using a 3 node icehouse (controller, nova, cinder)
Any hint would be very helpful.
Thx, Stef
New to stacktach
I have installed stacktach but not able to get the http service working.
python manage.py runserver
Validating models...
0 errors found
April 06, 2017 - 23:05:10
Django version 1.6, using settings 'settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[06/Apr/2017 23:05:23] "GET / HTTP/1.1" 500 27
[06/Apr/2017 23:06:45] "GET / HTTP/1.1" 500 27
I keep getting 500 errors while the hit the http://127.0.0.1:8000/
Nothing in stacktach-web.log
How can i debug this or what can i look into.
I tried in mac as well as ubuntu and both same issue.
What am I missing in the conf?
export STACKTACH_DB_NAME="stacktach"
export STACKTACH_DB_HOST="localhost"
export STACKTACH_DB_USERNAME="root"
export STACKTACH_DB_PASSWORD="xxxxxx"
export STACKTACH_DB_PORT="3306"
export STACKTACH_INSTALL_DIR="/root/stacktach/"
export STACKTACH_DEPLOYMENTS_FILE="/root/stacktach/etc/stacktach_worker_config.json"
export STACKTACH_VERIFIER_CONFIG="/root/stacktach/etc/stacktach_verifier_config.json"
export DJANGO_SETTINGS_MODULE="settings"
Hey guys,
Any interest in cinder notification support? We(HP) are interested in implementing it, if that's ok?
The current impplementation assumes a single rabbit host, and fails if using the rabbit ha queues introduced in the grizzly code.
this means passing queue_arguments with a value of 'x-ha-policy': 'all'
I'm trying to start up the server (without running the workers). However I get this error message 'A server error occurred. Please contact the administrator.'
Thanks,
Bilal
Traceback:
bilal@bilal-151:~/projects/stacktach$ python manage.py runserver 0.0.0.0:8000
Validating models...
0 errors found
May 08, 2014 - 15:20:23
Django version 1.5.7, using settings 'settings'
Development server is running at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 255, in call
response = self.get_response(request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 178, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 220, in handle_uncaught_exception
if resolver.urlconf_module is None:
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 361, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
import(name)
File "/home/bilal/projects/stacktach/stacktach/urls.py", line 22, in
web_logger = stacklog.get_logger('stacktach-web')
File "/home/bilal/projects/stacktach/stacktach/stacklog.py", line 82, in get_logger
return _logger_factory(name, is_parent)
File "/home/bilal/projects/stacktach/stacktach/stacklog.py", line 76, in _logger_factory
return _create_parent_logger(parent_logger_name)
File "/home/bilal/projects/stacktach/stacktach/stacklog.py", line 51, in _create_parent_logger
logger = _create_timed_rotating_logger(parent_logger_name)
File "/home/bilal/projects/stacktach/stacktach/stacklog.py", line 108, in _create_timed_rotating_logger
backupCount=6)
File "/home/bilal/projects/stacktach/stacktach/stacklog.py", line 196, in init
self, filename, when, interval, backupCount, encoding, delay, utc)
File "/usr/lib/python2.7/logging/handlers.py", line 171, in init
BaseRotatingHandler.init(self, filename, 'a', encoding, delay)
File "/usr/lib/python2.7/logging/handlers.py", line 64, in init
logging.FileHandler.init(self, filename, mode, encoding, delay)
File "/usr/lib/python2.7/logging/init.py", line 903, in init
StreamHandler.init(self, self._open())
File "/usr/lib/python2.7/logging/init.py", line 926, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '/var/log/stacktach/stacktach-web.log'
[08/May/2014 15:20:27] "GET / HTTP/1.1" 500 59
when event is longer than 50 char DB update fails: example (event:compute.instance.live_migration.rollback.dest.start)
File "/data/stacktach/worker/worker.py", line 212, in run
consumer.run()
File "/usr/lib/python2.7/dist-packages/kombu/mixins.py", line 170, in run
for _ in self.consume(limit=None): # pragma: no cover
File "/usr/lib/python2.7/dist-packages/kombu/mixins.py", line 193, in consume
conn.drain_events(timeout=safety_interval)
File "/usr/lib/python2.7/dist-packages/librabbitmq/init.py", line 205, in drain_events
self._basic_recv(timeout)
File "/usr/lib/python2.7/dist-packages/kombu/messaging.py", line 589, in _receive_callback
return on_m(message) if on_m else self.receive(decoded, message)
File "/usr/lib/python2.7/dist-packages/kombu/messaging.py", line 558, in receive
[callback(body, message) for callback in callbacks]
File "/data/stacktach/worker/worker.py", line 137, in on_nova
self._process(message)
File "/data/stacktach/worker/worker.py", line 99, in _process
self.deployment, args, asJson, self.exchange)
File "/data/stacktach/stacktach/views.py", line 380, in process_raw_data
raw = notif.save()
File "/data/stacktach/stacktach/notification.py", line 291, in save
rax_options=self.rax_options)
File "/data/stacktach/stacktach/db.py", line 54, in create_nova_rawdata
rawdata.save()
File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 545, in save
force_update=force_update, update_fields=update_fields)
File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 573, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 654, in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 687, in _do_insert
using=using, raw=raw)
File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 232, in _insert
return insert_query(self.model, objs, fields, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 1511, in insert_query
return query.get_compiler(using=using).execute_sql(return_id)
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 898, in execute_sql
cursor.execute(sql, params)
File "/usr/lib/python2.7/dist-packages/django/db/backends/util.py", line 69, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/usr/lib/python2.7/dist-packages/django/db/backends/util.py", line 53, in execute
return self.cursor.execute(sql, params)
File "/usr/lib/python2.7/dist-packages/django/db/backends/mysql/base.py", line 124, in execute
return self.cursor.execute(query, args)
File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 176, in execute
if not self._defer_warnings: self._warning_check()
File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 92, in _warning_check
warn(w[-1], self.Warning, 3)
solution: ALTER TABLE stacktach_rawdata modify event varchar(100);
seems we trigger the kpi tracking by "api" in the host name. it's a compute.instance.update" event when it should be "api" in the service name.
I don't think our api nodes report API as the service name (for some reason)
and I went with the hostname (a RAX convention)
stacktach should only look at service name and not hostname.
The hyperlinks are only # tags in the top pain for example it is shown as http://127.0.0.1:8000/1/# when I click on an instance ID link.
entering the ID in the search box results in data as expected.
Regards
Steve
Seeing the following error using latest version of stacktach and nova.
It seems to error as soon as it sees a message in the queue to retrieve.
Modules/gcmodule.c:331: update_refs: Assertion "gc->gc.gc_refs != 0" failed.
object : <refcnt 0 at 0x20d6f70>
type : dict
refcount: 0
address : 0x20d6f70
snjpod1: 10.6.194.32 5672 guest /
Processing on 'snjpod1'
snjpod1 0k/ 0k ram, 1/ 1 msgs @ 0k/msg
The timer that reloads the latest_raw table every two seconds is triggered with this javascript snippet:
$(document).oneTime(2000, function() {
$('#host_activity').load('/24/latest_raw');
});
The issue is that this javascript is included as part of the latest_raw HTML which is queried via ajax. This results in a new timer being created every time the table is loaded, and relying on the GC to deallocate the old timer. Instead a single recurring timer should be used, located outside of the table which is updated. Additionally the jquery timer library is included in the source, apparently just for this one timer setup. The javascript setInterval function is trivial and does not require an external dependency. Migrating to the use of setInterval would remove the potential (albiet unlikely) memory leak, while also removing an un-necessary dependency.
Hi Sandy,
I met you at the OPS meeting in Philly (one of the guys from Maine) and I finally installed Stacktach v2 to see if I could do anything with the 200,000+ messages queued in notifications.info. It seems to be consuming the messages (now down 170,000 before I stopped the worker) and I can see a lot of entries in the stacktach_instanceexists table (so far 41806). They all seem to have a status of "pending".
Anyway, when I look at 127.0.0.1:8000 I get the StackTach page and see the deployment I created but clicking on it just shows
deployment source tenant service host event instance when
"No results"
and in the Commands section I can't get it to show anything no matter what I click on or search for.
I have tried the github and stackforge versions.
Maybe I should just keep the worker going to get all messages but I wanted to check first to see if there is something wrong. I didn't want to consume all of the messages only to find that it wasn't getting all of the information.
Any recommendations on things to check?
Thanks a lot,
Steve
Hi.
I have installed stacktach on CentOS with OpenStack Icehouse.
when i executed t$python manage.py runserver and $python start_workers.py
i cant get any results in localhost:8000 and nothing in MySQL.
however,if i create a instance, i can get queue in RabbitMQ.
thanks for you help!
There is my nova.conf:
[DEFAULT]
amqp_durable_queues=False
rabbit_host=192.168.148.169
rabbit_port=5672
rabbit_hosts=192.168.148.169:5672
rabbit_use_ssl=False
rabbit_userid=guest
rabbit_password=guest
rabbit_virtual_host=/
rabbit_ha_queues=False
notification_driver=nova.openstack.common.notifier.rpc_notifier
notification_topics=monitor
rpc_backend=nova.openstack.common.rpc.impl_kombu
notify_api_faults=False
state_path=/var/lib/nova
report_interval=10
enabled_apis=ec2,osapi_compute,metadata
ec2_listen=0.0.0.0
osapi_compute_listen=0.0.0.0
osapi_compute_workers=32
metadata_listen=0.0.0.0
metadata_workers=32
service_down_time=60
rootwrap_config=/etc/nova/rootwrap.conf
auth_strategy=keystone
use_forwarded_for=False
service_neutron_metadata_proxy=True
neutron_metadata_proxy_shared_secret=neutron_password
neutron_default_tenant_id=default
novncproxy_host=0.0.0.0
novncproxy_port=6080
glance_api_servers=192.168.148.169:9292
network_api_class=nova.network.neutronv2.api.API
metadata_host=192.168.148.169
neutron_url=http://192.168.148.169:9696
neutron_url_timeout=30
neutron_admin_username=neutron
neutron_admin_password=neutron_password
neutron_admin_tenant_name=services
neutron_region_name=RegionOne
neutron_admin_auth_url=http://192.168.148.169:35357/v2.0
neutron_auth_strategy=keystone
neutron_ovs_bridge=br-int
neutron_extension_sync_interval=600
security_group_api=neutron
lock_path=/var/lib/nova/tmp
debug=False
verbose=True
log_dir=/var/log/nova
use_syslog=False
cpu_allocation_ratio=16.0
ram_allocation_ratio=1.5
scheduler_default_filters=RetryFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,CoreFilter
vif_plugging_is_fatal=True
vif_plugging_timeout=300
firewall_driver=nova.virt.firewall.NoopFirewallDriver
volume_api_class=nova.volume.cinder.API
sql_connection=mysql://nova:[email protected]/nova
image_service=nova.image.glance.GlanceImageService
osapi_volume_listen=0.0.0.0
workers=32
[keystone_authtoken]
auth_host=192.168.148.169
auth_port=35357
auth_protocol=http
auth_uri=http://192.168.148.169:5000/
admin_user=nova
admin_password=nova_password
admin_tenant_name=services
[libvirt]
vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver
and there is stacktach_config.sh:
export STACKTACH_DB_NAME="stacktach"
export STACKTACH_DB_HOST="192.168.148.169"
export STACKTACH_DB_USERNAME="root"
export STACKTACH_DB_PASSWORD="mysql_password"
export STACKTACH_DB_PORT="3306"
export STACKTACH_INSTALL_DIR="/home/node9/stacktach/"
export STACKTACH_DEPLOYMENTS_FILE="/home/node9/stacktach/etc/stacktach_worker_config.json"
export STACKTACH_VERIFIER_CONFIG="/home/node9/stacktach/etc/stacktach_verifier_config.json"
export DJANGO_SETTINGS_MODULE="settings"
stacktach_worker_config.json and stacktach_verifier_config.json
{"deployments": [
{
"name": "east_coast.prod.global",
"durable_queue": false,
"rabbit_host": "192.168.148.169",
"rabbit_port": 5672,
"rabbit_userid": "guest",
"rabbit_password": "guest",
"rabbit_virtual_host": "/",
"exit_on_exception": true,
"queue_name": "stacktach",
"topics": {
"nova": [
{
"queue": "monitor.info",
"routing_key": "monitor.info"
},
{
"queue": "monitor.error",
"routing_key": "monitor.error"
}
],
"glance": [
{
"queue": "stacktach_monitor_glance.info",
"routing_key": "monitor_glance.info"
},
{
"queue": "stacktach_monitor_glance.error",
"routing_key": "monitor_glance.error"
}
]
}
}]
}
{
"tick_time": 30,
"settle_time": 5,
"settle_units": "minutes",
"pool_size": 2,
"enable_notifications": true,
"validation_level": "all",
"flavor_field_name": "instance_type_id",
"rabbit": {
"durable_queue": false,
"host": "192.168.148.169",
"port": 5672,
"userid": "guest",
"password": "guest",
"virtual_host": "/",
"topics": {
"nova": ["notifications.info"],
"glance": ["notifications.info"]
}
}
}
Hello Sir,
I have a fresh ubuntu 12.04. on that i want to install the stacktach. But i am getting error in 'sudo python manage.py'
here is the log of my terminal
demo@demo-OptiPlex-390:/stacktach$ source stacktach_config.sh/stacktach$ python manage.py syncdb
demo@demo-OptiPlex-390:
Traceback (most recent call last):
File "manage.py", line 9, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 443, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(_args, *_options.dict)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 231, in execute
self.validate()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 266, in validate
num_errors = get_validation_errors(s, app)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/validation.py", line 103, in get_validation_errors
connection.validation.validate_field(e, opts, f)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/validation.py", line 14, in validate_field
db_version = self.connection.get_server_version()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py", line 415, in get_server_version
self.cursor().close()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/init.py", line 308, in cursor
cursor = util.CursorWrapper(self._cursor(), self)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py", line 387, in _cursor
self.connection = Database.connect(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/init.py", line 81, in Connect
return Connection(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py", line 193, in init
super(Connection, self).init(_args, *_kwargs2)
_mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL server on '192.168.6.10' (111)")
demo@demo-OptiPlex-390:/stacktach$ sudo python manage.py syncdb/stacktach$
Traceback (most recent call last):
File "manage.py", line 9, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 443, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 69, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
import(name)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/syncdb.py", line 8, in
from django.core.management.sql import custom_sql_for_model, emit_post_sync_signal
File "/usr/local/lib/python2.7/dist-packages/django/core/management/sql.py", line 6, in
from django.db import models
File "/usr/local/lib/python2.7/dist-packages/django/db/init.py", line 11, in
if DEFAULT_DB_ALIAS not in settings.DATABASES:
File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 184, in inner
self._setup()
File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 42, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 95, in init
raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'stacktach.settings' (Is it on sys.path?): No module named settings
demo@demo-OptiPlex-390:
I have installed all the packages listed in pip-requires.txt. I have also done
$ sudo apt-get install mysql-server
$ sudo apt-get install mysql-client
I have also created stacktach database in it.
Still it is giving this error.
export STACKTACH_DB_NAME="stacktach"
export STACKTACH_DB_HOST="192.168.6.10"
export STACKTACH_DB_USERNAME="root"
export STACKTACH_DB_PASSWORD="preeti"
export STACKTACH_DB_PORT="3306"
export STACKTACH_INSTALL_DIR="/home/stacktach/"
export STACKTACH_DEPLOYMENTS_FILE="/home/stacktach/stacktach_worker_config.json"
export STACKTACH_VERIFIER_CONFIG="/home/stacktach/stacktach_verifier_config.json"
Here is sample_local_settings.py in which i have made changes
import os
STACKTACH_DB_ENGINE = 'django.db.backends.mysql'
STACKTACH_DB_NAME = 'stacktach'
STACKTACH_DB_HOST = 'localhost'
STACKTACH_DB_USERNAME = 'stacktach'
STACKTACH_DB_PASSWORD = 'preeti'
STACKTACH_DB_PORT = '3306'
STACKTACH_INSTALL_DIR = os.environ.get('STACKTACH_INSTALL_DIR', '/home/stacktach/')
STACKTACH_DEPLOYMENTS_FILE = os.environ.get('STACKTACH_DEPLOYMENTS_FILE', '/home/stacktach/stacktach_worker_config.json')
I have installed Django 1.4.2
Please help me out as soon as possible
On the morning of Saturday, March 23, 2013, the 'rackspace' organization on GitHub will be reorganized. All repos will be moved to the new 'rackerlabs' organization, except for those that are designed to be used by Rackspace customers and which are fully supported.
Please update any links to this repo to reflect the new location within GitHub. For example, if the link to your repo is 'https://github.com/rackspace/foo', you need to change it to 'https://github.com/rackerlabs/foo'.
root@stack3:/home/stack3/stacktach# python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 9, in
execute_from_command_line(sys.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/init.py", line 443, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/dist-packages/django/core/management/init.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/init.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/lib/python2.7/dist-packages/django/core/management/init.py", line 69, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
import(name)
File "/usr/lib/python2.7/dist-packages/django/core/management/commands/syncdb.py", line 8, in
from django.core.management.sql import custom_sql_for_model, emit_post_sync_signal
File "/usr/lib/python2.7/dist-packages/django/core/management/sql.py", line 6, in
from django.db import models
File "/usr/lib/python2.7/dist-packages/django/db/init.py", line 11, in
if DEFAULT_DB_ALIAS not in settings.DATABASES:
File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 184, in inner
self._setup()
File "/usr/lib/python2.7/dist-packages/django/conf/init.py", line 42, in _setup
self._wrapped = Settings(settings_module)
File "/usr/lib/python2.7/dist-packages/django/conf/init.py", line 95, in init
raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'stacktach.settings' (Is it on sys.path?): No module named settings
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.