##// END OF EJS Templates
system-info: fixed reporting of inodes.
marcink -
r1245:b992407d stable
parent child Browse files
Show More
@@ -1,640 +1,639 b''
1 1 import os
2 2 import sys
3 3 import time
4 4 import platform
5 5 import pkg_resources
6 6 import logging
7 7 import string
8 8
9 9
10 10 log = logging.getLogger(__name__)
11 11
12 12
13 13 psutil = None
14 14
15 15 try:
16 16 # cygwin cannot have yet psutil support.
17 17 import psutil as psutil
18 18 except ImportError:
19 19 pass
20 20
21 21
22 22 _NA = 'NOT AVAILABLE'
23 23
24 24 STATE_OK = 'ok'
25 25 STATE_ERR = 'error'
26 26 STATE_WARN = 'warning'
27 27
28 28 STATE_OK_DEFAULT = {'message': '', 'type': STATE_OK}
29 29
30 30
31 31 # HELPERS
32 32 def percentage(part, whole):
33 33 whole = float(whole)
34 34 if whole > 0:
35 35 return round(100 * float(part) / whole, 1)
36 36 return 0.0
37 37
38 38
39 39 def get_storage_size(storage_path):
40 40 sizes = []
41 41 for file_ in os.listdir(storage_path):
42 42 storage_file = os.path.join(storage_path, file_)
43 43 if os.path.isfile(storage_file):
44 44 try:
45 45 sizes.append(os.path.getsize(storage_file))
46 46 except OSError:
47 47 log.exception('Failed to get size of storage file %s',
48 48 storage_file)
49 49 pass
50 50
51 51 return sum(sizes)
52 52
53 53
54 54 class SysInfoRes(object):
55 55 def __init__(self, value, state=STATE_OK_DEFAULT, human_value=None):
56 56 self.value = value
57 57 self.state = state
58 58 self.human_value = human_value or value
59 59
60 60 def __json__(self):
61 61 return {
62 62 'value': self.value,
63 63 'state': self.state,
64 64 'human_value': self.human_value,
65 65 }
66 66
67 67 def __str__(self):
68 68 return '<SysInfoRes({})>'.format(self.__json__())
69 69
70 70
71 71 class SysInfo(object):
72 72
73 73 def __init__(self, func_name, **kwargs):
74 74 self.func_name = func_name
75 75 self.value = _NA
76 76 self.state = None
77 77 self.kwargs = kwargs or {}
78 78
79 79 def __call__(self):
80 80 computed = self.compute(**self.kwargs)
81 81 if not isinstance(computed, SysInfoRes):
82 82 raise ValueError(
83 83 'computed value for {} is not instance of '
84 84 '{}, got {} instead'.format(
85 85 self.func_name, SysInfoRes, type(computed)))
86 86 return computed.__json__()
87 87
88 88 def __str__(self):
89 89 return '<SysInfo({})>'.format(self.func_name)
90 90
91 91 def compute(self, **kwargs):
92 92 return self.func_name(**kwargs)
93 93
94 94
95 95 # SysInfo functions
96 96 def python_info():
97 97 value = dict(version=' '.join(platform._sys_version()),
98 98 executable=sys.executable)
99 99 return SysInfoRes(value=value)
100 100
101 101
102 102 def py_modules():
103 103 mods = dict([(p.project_name, p.version)
104 104 for p in pkg_resources.working_set])
105 105 value = sorted(mods.items(), key=lambda k: k[0].lower())
106 106 return SysInfoRes(value=value)
107 107
108 108
109 109 def platform_type():
110 110 from rhodecode.lib.utils import safe_unicode, generate_platform_uuid
111 111
112 112 value = dict(
113 113 name=safe_unicode(platform.platform()),
114 114 uuid=generate_platform_uuid()
115 115 )
116 116 return SysInfoRes(value=value)
117 117
118 118
119 119 def uptime():
120 120 from rhodecode.lib.helpers import age, time_to_datetime
121 121
122 122 value = dict(boot_time=0, uptime=0, text='')
123 123 state = STATE_OK_DEFAULT
124 124 if not psutil:
125 125 return SysInfoRes(value=value, state=state)
126 126
127 127 boot_time = psutil.boot_time()
128 128 value['boot_time'] = boot_time
129 129 value['uptime'] = time.time() - boot_time
130 130
131 131 human_value = value.copy()
132 132 human_value['boot_time'] = time_to_datetime(boot_time)
133 133 human_value['uptime'] = age(time_to_datetime(boot_time), show_suffix=False)
134 134 human_value['text'] = 'Server started {}'.format(
135 135 age(time_to_datetime(boot_time)))
136 136
137 137 return SysInfoRes(value=value, human_value=human_value)
138 138
139 139
140 140 def memory():
141 141 from rhodecode.lib.helpers import format_byte_size_binary
142 142 value = dict(available=0, used=0, used_real=0, cached=0, percent=0,
143 143 percent_used=0, free=0, inactive=0, active=0, shared=0,
144 144 total=0, buffers=0, text='')
145 145
146 146 state = STATE_OK_DEFAULT
147 147 if not psutil:
148 148 return SysInfoRes(value=value, state=state)
149 149
150 150 value.update(dict(psutil.virtual_memory()._asdict()))
151 151 value['used_real'] = value['total'] - value['available']
152 152 value['percent_used'] = psutil._common.usage_percent(
153 153 value['used_real'], value['total'], 1)
154 154
155 155 human_value = value.copy()
156 156 human_value['text'] = '%s/%s, %s%% used' % (
157 157 format_byte_size_binary(value['used_real']),
158 158 format_byte_size_binary(value['total']),
159 159 value['percent_used'],)
160 160
161 161 keys = value.keys()[::]
162 162 keys.pop(keys.index('percent'))
163 163 keys.pop(keys.index('percent_used'))
164 164 keys.pop(keys.index('text'))
165 165 for k in keys:
166 166 human_value[k] = format_byte_size_binary(value[k])
167 167
168 168 if state['type'] == STATE_OK and value['percent_used'] > 90:
169 169 msg = 'Critical: your available RAM memory is very low.'
170 170 state = {'message': msg, 'type': STATE_ERR}
171 171
172 172 elif state['type'] == STATE_OK and value['percent_used'] > 70:
173 173 msg = 'Warning: your available RAM memory is running low.'
174 174 state = {'message': msg, 'type': STATE_WARN}
175 175
176 176 return SysInfoRes(value=value, state=state, human_value=human_value)
177 177
178 178
179 179 def machine_load():
180 180 value = {'1_min': _NA, '5_min': _NA, '15_min': _NA, 'text': ''}
181 181 state = STATE_OK_DEFAULT
182 182 if not psutil:
183 183 return SysInfoRes(value=value, state=state)
184 184
185 185 # load averages
186 186 if hasattr(psutil.os, 'getloadavg'):
187 187 value.update(dict(
188 188 zip(['1_min', '5_min', '15_min'], psutil.os.getloadavg())))
189 189
190 190 human_value = value.copy()
191 191 human_value['text'] = '1min: {}, 5min: {}, 15min: {}'.format(
192 192 value['1_min'], value['5_min'], value['15_min'])
193 193
194 194 if state['type'] == STATE_OK and value['15_min'] > 5:
195 195 msg = 'Warning: your machine load is very high.'
196 196 state = {'message': msg, 'type': STATE_WARN}
197 197
198 198 return SysInfoRes(value=value, state=state, human_value=human_value)
199 199
200 200
201 201 def cpu():
202 202 value = 0
203 203 state = STATE_OK_DEFAULT
204 204
205 205 if not psutil:
206 206 return SysInfoRes(value=value, state=state)
207 207
208 208 value = psutil.cpu_percent(0.5)
209 209 human_value = '{} %'.format(value)
210 210 return SysInfoRes(value=value, state=state, human_value=human_value)
211 211
212 212
213 213 def storage():
214 214 from rhodecode.lib.helpers import format_byte_size_binary
215 215 from rhodecode.model.settings import VcsSettingsModel
216 216 path = VcsSettingsModel().get_repos_location()
217 217
218 218 value = dict(percent=0, used=0, total=0, path=path, text='')
219 219 state = STATE_OK_DEFAULT
220 220 if not psutil:
221 221 return SysInfoRes(value=value, state=state)
222 222
223 223 try:
224 224 value.update(dict(psutil.disk_usage(path)._asdict()))
225 225 except Exception as e:
226 226 log.exception('Failed to fetch disk info')
227 227 state = {'message': str(e), 'type': STATE_ERR}
228 228
229 229 human_value = value.copy()
230 230 human_value['used'] = format_byte_size_binary(value['used'])
231 231 human_value['total'] = format_byte_size_binary(value['total'])
232 232 human_value['text'] = "{}/{}, {}% used".format(
233 233 format_byte_size_binary(value['used']),
234 234 format_byte_size_binary(value['total']),
235 235 value['percent'])
236 236
237 237 if state['type'] == STATE_OK and value['percent'] > 90:
238 238 msg = 'Critical: your disk space is very low.'
239 239 state = {'message': msg, 'type': STATE_ERR}
240 240
241 241 elif state['type'] == STATE_OK and value['percent'] > 70:
242 242 msg = 'Warning: your disk space is running low.'
243 243 state = {'message': msg, 'type': STATE_WARN}
244 244
245 245 return SysInfoRes(value=value, state=state, human_value=human_value)
246 246
247 247
248 248 def storage_inodes():
249 249 from rhodecode.model.settings import VcsSettingsModel
250 250 path = VcsSettingsModel().get_repos_location()
251 251
252 252 value = dict(percent=0, free=0, used=0, total=0, path=path, text='')
253 253 state = STATE_OK_DEFAULT
254 254 if not psutil:
255 255 return SysInfoRes(value=value, state=state)
256 256
257 257 try:
258 258 i_stat = os.statvfs(path)
259
260 value['used'] = i_stat.f_ffree
261 value['free'] = i_stat.f_favail
259 value['free'] = i_stat.f_ffree
260 value['used'] = i_stat.f_files-i_stat.f_favail
262 261 value['total'] = i_stat.f_files
263 262 value['percent'] = percentage(value['used'], value['total'])
264 263 except Exception as e:
265 264 log.exception('Failed to fetch disk inodes info')
266 265 state = {'message': str(e), 'type': STATE_ERR}
267 266
268 267 human_value = value.copy()
269 268 human_value['text'] = "{}/{}, {}% used".format(
270 269 value['used'], value['total'], value['percent'])
271 270
272 271 if state['type'] == STATE_OK and value['percent'] > 90:
273 272 msg = 'Critical: your disk free inodes are very low.'
274 273 state = {'message': msg, 'type': STATE_ERR}
275 274
276 275 elif state['type'] == STATE_OK and value['percent'] > 70:
277 276 msg = 'Warning: your disk free inodes are running low.'
278 277 state = {'message': msg, 'type': STATE_WARN}
279 278
280 279 return SysInfoRes(value=value, state=state, human_value=human_value)
281 280
282 281
283 282 def storage_archives():
284 283 import rhodecode
285 284 from rhodecode.lib.utils import safe_str
286 285 from rhodecode.lib.helpers import format_byte_size_binary
287 286
288 287 msg = 'Enable this by setting ' \
289 288 'archive_cache_dir=/path/to/cache option in the .ini file'
290 289 path = safe_str(rhodecode.CONFIG.get('archive_cache_dir', msg))
291 290
292 291 value = dict(percent=0, used=0, total=0, items=0, path=path, text='')
293 292 state = STATE_OK_DEFAULT
294 293 try:
295 294 items_count = 0
296 295 used = 0
297 296 for root, dirs, files in os.walk(path):
298 297 if root == path:
299 298 items_count = len(files)
300 299
301 300 for f in files:
302 301 try:
303 302 used += os.path.getsize(os.path.join(root, f))
304 303 except OSError:
305 304 pass
306 305 value.update({
307 306 'percent': 100,
308 307 'used': used,
309 308 'total': used,
310 309 'items': items_count
311 310 })
312 311
313 312 except Exception as e:
314 313 log.exception('failed to fetch archive cache storage')
315 314 state = {'message': str(e), 'type': STATE_ERR}
316 315
317 316 human_value = value.copy()
318 317 human_value['used'] = format_byte_size_binary(value['used'])
319 318 human_value['total'] = format_byte_size_binary(value['total'])
320 319 human_value['text'] = "{} ({} items)".format(
321 320 human_value['used'], value['items'])
322 321
323 322 return SysInfoRes(value=value, state=state, human_value=human_value)
324 323
325 324
326 325 def storage_gist():
327 326 from rhodecode.model.gist import GIST_STORE_LOC
328 327 from rhodecode.model.settings import VcsSettingsModel
329 328 from rhodecode.lib.utils import safe_str
330 329 from rhodecode.lib.helpers import format_byte_size_binary
331 330 path = safe_str(os.path.join(
332 331 VcsSettingsModel().get_repos_location(), GIST_STORE_LOC))
333 332
334 333 # gist storage
335 334 value = dict(percent=0, used=0, total=0, items=0, path=path, text='')
336 335 state = STATE_OK_DEFAULT
337 336
338 337 try:
339 338 items_count = 0
340 339 used = 0
341 340 for root, dirs, files in os.walk(path):
342 341 if root == path:
343 342 items_count = len(dirs)
344 343
345 344 for f in files:
346 345 try:
347 346 used += os.path.getsize(os.path.join(root, f))
348 347 except OSError:
349 348 pass
350 349 value.update({
351 350 'percent': 100,
352 351 'used': used,
353 352 'total': used,
354 353 'items': items_count
355 354 })
356 355 except Exception as e:
357 356 log.exception('failed to fetch gist storage items')
358 357 state = {'message': str(e), 'type': STATE_ERR}
359 358
360 359 human_value = value.copy()
361 360 human_value['used'] = format_byte_size_binary(value['used'])
362 361 human_value['total'] = format_byte_size_binary(value['total'])
363 362 human_value['text'] = "{} ({} items)".format(
364 363 human_value['used'], value['items'])
365 364
366 365 return SysInfoRes(value=value, state=state, human_value=human_value)
367 366
368 367
369 368 def storage_temp():
370 369 import tempfile
371 370 from rhodecode.lib.helpers import format_byte_size_binary
372 371
373 372 path = tempfile.gettempdir()
374 373 value = dict(percent=0, used=0, total=0, items=0, path=path, text='')
375 374 state = STATE_OK_DEFAULT
376 375
377 376 if not psutil:
378 377 return SysInfoRes(value=value, state=state)
379 378
380 379 try:
381 380 value.update(dict(psutil.disk_usage(path)._asdict()))
382 381 except Exception as e:
383 382 log.exception('Failed to fetch temp dir info')
384 383 state = {'message': str(e), 'type': STATE_ERR}
385 384
386 385 human_value = value.copy()
387 386 human_value['used'] = format_byte_size_binary(value['used'])
388 387 human_value['total'] = format_byte_size_binary(value['total'])
389 388 human_value['text'] = "{}/{}, {}% used".format(
390 389 format_byte_size_binary(value['used']),
391 390 format_byte_size_binary(value['total']),
392 391 value['percent'])
393 392
394 393 return SysInfoRes(value=value, state=state, human_value=human_value)
395 394
396 395
397 396 def search_info():
398 397 import rhodecode
399 398 from rhodecode.lib.index import searcher_from_config
400 399
401 400 backend = rhodecode.CONFIG.get('search.module', '')
402 401 location = rhodecode.CONFIG.get('search.location', '')
403 402
404 403 try:
405 404 searcher = searcher_from_config(rhodecode.CONFIG)
406 405 searcher = searcher.__class__.__name__
407 406 except Exception:
408 407 searcher = None
409 408
410 409 value = dict(
411 410 backend=backend, searcher=searcher, location=location, text='')
412 411 state = STATE_OK_DEFAULT
413 412
414 413 human_value = value.copy()
415 414 human_value['text'] = "backend:`{}`".format(human_value['backend'])
416 415
417 416 return SysInfoRes(value=value, state=state, human_value=human_value)
418 417
419 418
420 419 def git_info():
421 420 from rhodecode.lib.vcs.backends import git
422 421 state = STATE_OK_DEFAULT
423 422 value = human_value = ''
424 423 try:
425 424 value = git.discover_git_version(raise_on_exc=True)
426 425 human_value = 'version reported from VCSServer: {}'.format(value)
427 426 except Exception as e:
428 427 state = {'message': str(e), 'type': STATE_ERR}
429 428
430 429 return SysInfoRes(value=value, state=state, human_value=human_value)
431 430
432 431
433 432 def hg_info():
434 433 from rhodecode.lib.vcs.backends import hg
435 434 state = STATE_OK_DEFAULT
436 435 value = human_value = ''
437 436 try:
438 437 value = hg.discover_hg_version(raise_on_exc=True)
439 438 human_value = 'version reported from VCSServer: {}'.format(value)
440 439 except Exception as e:
441 440 state = {'message': str(e), 'type': STATE_ERR}
442 441 return SysInfoRes(value=value, state=state, human_value=human_value)
443 442
444 443
445 444 def svn_info():
446 445 from rhodecode.lib.vcs.backends import svn
447 446 state = STATE_OK_DEFAULT
448 447 value = human_value = ''
449 448 try:
450 449 value = svn.discover_svn_version(raise_on_exc=True)
451 450 human_value = 'version reported from VCSServer: {}'.format(value)
452 451 except Exception as e:
453 452 state = {'message': str(e), 'type': STATE_ERR}
454 453 return SysInfoRes(value=value, state=state, human_value=human_value)
455 454
456 455
457 456 def vcs_backends():
458 457 import rhodecode
459 458 value = map(
460 459 string.strip, rhodecode.CONFIG.get('vcs.backends', '').split(','))
461 460 human_value = 'Enabled backends in order: {}'.format(','.join(value))
462 461 return SysInfoRes(value=value, human_value=human_value)
463 462
464 463
465 464 def vcs_server():
466 465 import rhodecode
467 466 from rhodecode.lib.vcs.backends import get_vcsserver_version
468 467
469 468 server_url = rhodecode.CONFIG.get('vcs.server')
470 469 enabled = rhodecode.CONFIG.get('vcs.server.enable')
471 470 protocol = rhodecode.CONFIG.get('vcs.server.protocol') or 'http'
472 471 state = STATE_OK_DEFAULT
473 472 version = None
474 473
475 474 try:
476 475 version = get_vcsserver_version()
477 476 connection = 'connected'
478 477 except Exception as e:
479 478 connection = 'failed'
480 479 state = {'message': str(e), 'type': STATE_ERR}
481 480
482 481 value = dict(
483 482 url=server_url,
484 483 enabled=enabled,
485 484 protocol=protocol,
486 485 connection=connection,
487 486 version=version,
488 487 text='',
489 488 )
490 489
491 490 human_value = value.copy()
492 491 human_value['text'] = \
493 492 '{url}@ver:{ver} via {mode} mode, connection:{conn}'.format(
494 493 url=server_url, ver=version, mode=protocol, conn=connection)
495 494
496 495 return SysInfoRes(value=value, state=state, human_value=human_value)
497 496
498 497
499 498 def rhodecode_app_info():
500 499 import rhodecode
501 500 edition = rhodecode.CONFIG.get('rhodecode.edition')
502 501
503 502 value = dict(
504 503 rhodecode_version=rhodecode.__version__,
505 504 rhodecode_lib_path=os.path.abspath(rhodecode.__file__),
506 505 text=''
507 506 )
508 507 human_value = value.copy()
509 508 human_value['text'] = 'RhodeCode {edition}, version {ver}'.format(
510 509 edition=edition, ver=value['rhodecode_version']
511 510 )
512 511 return SysInfoRes(value=value, human_value=human_value)
513 512
514 513
515 514 def rhodecode_config():
516 515 import rhodecode
517 516 path = rhodecode.CONFIG.get('__file__')
518 517 rhodecode_ini_safe = rhodecode.CONFIG.copy()
519 518
520 519 blacklist = [
521 520 'rhodecode_license_key',
522 521 'routes.map',
523 522 'pylons.h',
524 523 'pylons.app_globals',
525 524 'pylons.environ_config',
526 525 'sqlalchemy.db1.url',
527 526 'channelstream.secret',
528 527 'beaker.session.secret',
529 528 'rhodecode.encrypted_values.secret',
530 529 'rhodecode_auth_github_consumer_key',
531 530 'rhodecode_auth_github_consumer_secret',
532 531 'rhodecode_auth_google_consumer_key',
533 532 'rhodecode_auth_google_consumer_secret',
534 533 'rhodecode_auth_bitbucket_consumer_secret',
535 534 'rhodecode_auth_bitbucket_consumer_key',
536 535 'rhodecode_auth_twitter_consumer_secret',
537 536 'rhodecode_auth_twitter_consumer_key',
538 537
539 538 'rhodecode_auth_twitter_secret',
540 539 'rhodecode_auth_github_secret',
541 540 'rhodecode_auth_google_secret',
542 541 'rhodecode_auth_bitbucket_secret',
543 542
544 543 'appenlight.api_key',
545 544 ('app_conf', 'sqlalchemy.db1.url')
546 545 ]
547 546 for k in blacklist:
548 547 if isinstance(k, tuple):
549 548 section, key = k
550 549 if section in rhodecode_ini_safe:
551 550 rhodecode_ini_safe[section] = '**OBFUSCATED**'
552 551 else:
553 552 rhodecode_ini_safe.pop(k, None)
554 553
555 554 # TODO: maybe put some CONFIG checks here ?
556 555 return SysInfoRes(value={'config': rhodecode_ini_safe, 'path': path})
557 556
558 557
559 558 def database_info():
560 559 import rhodecode
561 560 from sqlalchemy.engine import url as engine_url
562 561 from rhodecode.model.meta import Base as sql_base, Session
563 562 from rhodecode.model.db import DbMigrateVersion
564 563
565 564 state = STATE_OK_DEFAULT
566 565
567 566 db_migrate = DbMigrateVersion.query().filter(
568 567 DbMigrateVersion.repository_id == 'rhodecode_db_migrations').one()
569 568
570 569 db_url_obj = engine_url.make_url(rhodecode.CONFIG['sqlalchemy.db1.url'])
571 570
572 571 try:
573 572 engine = sql_base.metadata.bind
574 573 db_server_info = engine.dialect._get_server_version_info(
575 574 Session.connection(bind=engine))
576 575 db_version = '.'.join(map(str, db_server_info))
577 576 except Exception:
578 577 log.exception('failed to fetch db version')
579 578 db_version = 'UNKNOWN'
580 579
581 580 db_info = dict(
582 581 migrate_version=db_migrate.version,
583 582 type=db_url_obj.get_backend_name(),
584 583 version=db_version,
585 584 url=repr(db_url_obj)
586 585 )
587 586
588 587 human_value = db_info.copy()
589 588 human_value['url'] = "{} @ migration version: {}".format(
590 589 db_info['url'], db_info['migrate_version'])
591 590 human_value['version'] = "{} {}".format(db_info['type'], db_info['version'])
592 591 return SysInfoRes(value=db_info, state=state, human_value=human_value)
593 592
594 593
595 594 def server_info(environ):
596 595 import rhodecode
597 596 from rhodecode.lib.base import get_server_ip_addr, get_server_port
598 597
599 598 value = {
600 599 'server_ip': '%s:%s' % (
601 600 get_server_ip_addr(environ, log_errors=False),
602 601 get_server_port(environ)
603 602 ),
604 603 'server_id': rhodecode.CONFIG.get('instance_id'),
605 604 }
606 605 return SysInfoRes(value=value)
607 606
608 607
609 608 def get_system_info(environ):
610 609 environ = environ or {}
611 610 return {
612 611 'rhodecode_app': SysInfo(rhodecode_app_info)(),
613 612 'rhodecode_config': SysInfo(rhodecode_config)(),
614 613 'python': SysInfo(python_info)(),
615 614 'py_modules': SysInfo(py_modules)(),
616 615
617 616 'platform': SysInfo(platform_type)(),
618 617 'server': SysInfo(server_info, environ=environ)(),
619 618 'database': SysInfo(database_info)(),
620 619
621 620 'storage': SysInfo(storage)(),
622 621 'storage_inodes': SysInfo(storage_inodes)(),
623 622 'storage_archive': SysInfo(storage_archives)(),
624 623 'storage_gist': SysInfo(storage_gist)(),
625 624 'storage_temp': SysInfo(storage_temp)(),
626 625
627 626 'search': SysInfo(search_info)(),
628 627
629 628 'uptime': SysInfo(uptime)(),
630 629 'load': SysInfo(machine_load)(),
631 630 'cpu': SysInfo(cpu)(),
632 631 'memory': SysInfo(memory)(),
633 632
634 633 'vcs_backends': SysInfo(vcs_backends)(),
635 634 'vcs_server': SysInfo(vcs_server)(),
636 635
637 636 'git': SysInfo(git_info)(),
638 637 'hg': SysInfo(hg_info)(),
639 638 'svn': SysInfo(svn_info)(),
640 639 }
General Comments 0
You need to be logged in to leave comments. Login now