These are chat archives for allegro/ralph

31st
Mar 2015
flashput
@flashput
Mar 31 2015 04:52
@vi4m what's the difference between scan and discovery ? I found both scan and discovery directory have a subdirectory named plugins
flashput
@flashput
Mar 31 2015 05:01
@vi4m how to configure multi user/password pair for ssh_linux plugin
✪ vi4m Marcin Kliks
@vi4m
Mar 31 2015 06:55
@flashput scan is active engine behing scanning, discovery is obsolete
@whoisearth - ask @mkurek about it, it reminds me we have had this functionality
Mateusz Kurek
@mkurek
Mar 31 2015 07:50
@whoisearth we have some internal basic version of MSSQL plugin (to get all databases) - there should be no problem to add this to ralph core after some tweaks to make it more generic. Could you add an issue on github for that (as a reminder for us)?
damian1976
@damian1976
Mar 31 2015 12:03
hej. mam problem z supervisord. Przy odpalaniu dostaje nast bledy http://dpaste.com/1JKH150 czyli generalnie zaden program z configa nie chce startowac
damian1976
@damian1976
Mar 31 2015 12:44

Wyglada na to, ze usuniecie redisa z configa supervisora pomoglo. Innymi slowy startowac go nalezy "standardowo"

service redis-server start/stop/restart

Zajrzalem na https://github.com/allegro/ralph-docker/blob/master/os/supervisord.conf. Nie widze sekcji supervisorctl, ktora (chyba) jest niezbedna do uruchomienia supervisorctl i kontroli procesow....?

flashput
@flashput
Mar 31 2015 13:47
@vi4m I’m planning to port ralph to other language. I use dangle-admin.py to generate a djangle.po file and do translate work, but after translation , ralph works not properly as I wanted
✪ vi4m Marcin Kliks
@vi4m
Mar 31 2015 13:49
@flashput some missing translation placeholders?
flashput
@flashput
Mar 31 2015 13:56
  1. not all english words translated.
  2. some models get errors
Scrooge page, CURRENCY settings not functional, costs always calculated in PLN
✪ vi4m Marcin Kliks
@vi4m
Mar 31 2015 14:02
@flashput seems like a bit of love needed
flashput
@flashput
Mar 31 2015 14:06
after translation, when adding devices ,nothing displayed in envrionment dropdown . while in English version, ‘default_environment’ will displayed.
✪ vi4m Marcin Kliks
@vi4m
Mar 31 2015 14:07
maybe we should create some github page with the translation topic
because you are the first person who actually opened the discussion about it
flashput
@flashput
Mar 31 2015 14:15
how to scan entire network in command line interface ?
✪ vi4m Marcin Kliks
@vi4m
Mar 31 2015 14:16
find in this room history - was mentioned
ralph scan/autoscan or prescan - i don't remember
flashput
@flashput
Mar 31 2015 14:16
/ui/networks shows nothing , is that normal?
raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.
which value should I set to?
✪ vi4m Marcin Kliks
@vi4m
Mar 31 2015 15:19
could you paste complete stack trace? I don't recognize this error message
flashput
@flashput
Mar 31 2015 15:20
/home/ralph/lib/python2.7/site-packages/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
_warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
Traceback (most recent call last):
File "autoscan.py", line 24, in <module>
from ralph.discovery.models import IPAddress, Network
File "/home/ralph/sources/ralph/src/ralph/discovery/models.py", line 11, in <module>
from ralph.discovery.models_device import (
File "/home/ralph/sources/ralph/src/ralph/discovery/models_device.py", line 19, in <module>
from django.contrib.contenttypes.generic import GenericRelation
File "/home/ralph/lib/python2.7/site-packages/django/contrib/contenttypes/generic.py", line 10, in <module>
from django.db import connection
File "/home/ralph/lib/python2.7/site-packages/django/db/init.py", line 11, in <module>
if DEFAULT_DB_ALIAS not in settings.DATABASES:
File "/home/ralph/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
self._setup()
File "/home/ralph/lib/python2.7/site-packages/django/conf/init.py", line 40, in _setup
raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.
✪ vi4m Marcin Kliks
@vi4m
Mar 31 2015 15:21
aa
DJANGO_SETTINGS_MODULE
flashput
@flashput
Mar 31 2015 15:22
set to aa?
✪ vi4m Marcin Kliks
@vi4m
Mar 31 2015 15:22
export DJANGO_SETTINGS_MODULE=ralph.settings (probably, checking now)
flashput
@flashput
Mar 31 2015 15:22
It works!
✪ vi4m Marcin Kliks
@vi4m
Mar 31 2015 15:56
@flashput what language you want to translate to ?
just curious
flashput
@flashput
Mar 31 2015 16:39
@vi4m chinese
✪ vi4m Marcin Kliks
@vi4m
Mar 31 2015 16:52
nice.
flashput
@flashput
Mar 31 2015 16:53
can autoscan.py script run directly in command line ?
ralph autoscan , I found it
whoisearth
@whoisearth
Mar 31 2015 17:34
@mkurek issue added - allegro/ralph#1347
flashput
@flashput
Mar 31 2015 17:57
  • ralph_assets/forms.py
    queryset=models_device.DeviceEnvironment.objects.all(),
      label=_('Environment'),
    )
  • modules_device.py
    class DeviceEnvironmentManager(db.Manager):
    def get_query_set(self):
      return super(DeviceEnvironmentManager, self).get_query_set().filter(
          type__name=models_ci.CI_TYPES.ENVIRONMENT,
          state=models_ci.CI_STATE_TYPES.ACTIVE,
      )
  • models_ci.py
    class CI_TYPES(Choices):
    _ = Choices.Choice

    APPLICATION = _('Application')
    DEVICE = _('Device')
    PROCEDURE = _('Procedure')
    VENTURE = _('Venture')
    VENTUREROLE = _('Venture Role')
    BUSINESSLINE = _('Business Line')
    SERVICE = _('Service')
    NETWORK = _('Network')
    DATACENTER = _('Data Center')
    NETWORKTERMINATOR = _('Network Terminator')
    ENVIRONMENT = _('Environment')
    PROFITCENTER = ('Profit Center')

ENVIRONMENT = _(‘Environment’) used in data query. will cause data not found
✪ vi4m Marcin Kliks
@vi4m
Mar 31 2015 18:55
are you sure?
database store only id numbers, so not an issue with that
on the other hand, in code you only use APPLICATION, not _('Application')
so what's the problem?
if it's used in data query in some other way it should be reported as bug (or developer lazyiness)