Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Pierre-Yves Dubreucq
@pydubreucq
Best Regards
✪ vi4m Marcin Kliks
@vi4m
nice
anderslarssonvbg
@anderslarssonvbg
Hi all. Didn't get any answer to my previous question about support for external connections in Ralph (3). Maybe I should look into extending Ralph with this functionality as a new module?
✪ vi4m Marcin Kliks
@vi4m
@msuszko do you plan to use docker or deb image?
@anderslarssonvbg we don't have such functionality right now. You can make REP(allegro/ralph#1792) and show us how you plan to make it
MarcinJanowski
@MarcinJanowski
hello vi4m, what progress with new packages?
@vi4m : ^ :)
✪ vi4m Marcin Kliks
@vi4m
Daily builds are available for deb and docker
Just apt-get upgrade
MarcinJanowski
@MarcinJanowski
Thanks
anderslarssonvbg
@anderslarssonvbg
@vi4m Thank for reply. I will try to make a REP!
Pierre-Yves Dubreucq
@pydubreucq
I've updated my ralph package and done ralph migrate, and I have thie error:
django.db.utils.OperationalError: (1045, "Access denied for user 'ralph_ng'@'localhost' (using password: YES)")
Mateusz Kurek
@mkurek
@pydubreucq we've changed environment variables names for db connection. check https://github.com/allegro/ralph/pull/1923/files#diff-4229bfc6111f66c484a24bef33808ba3R96 for details
✪ vi4m Marcin Kliks
@vi4m
todo: we should update installation instruction with the new settings. does someone want to contribute ? :-)
aveseb
@aveseb
Hi guys, during installation via docker I have this error, does it mean anything to somebody ?
Service 'web' failed to build: stat .dockerignore: no such file or directory
Mateusz Kurek
@mkurek
@aveseb what Docker version are you using? 1.9.0?
Mateusz Kurek
@mkurek
@aveseb check this out: docker/docker#17911 - it looks like it's fixed in 1.9.1
aveseb
@aveseb
@mkurek I'm using 1.9.0, I'll try 1.9.1 and tell you if it's better. Thanks a lot
Michał Suszko
@msuszko
Do you consider supporting databases other than MySQL/MariaDB?
aveseb
@aveseb
@mkurek It's Ok by upgrading to docker 1.9.1
Mateusz Kurek
@mkurek
@aveseb great ; @msuszko what db engine are you interested in?
✪ vi4m Marcin Kliks
@vi4m
@msuszko we will rely on ORM as long as possible, even though we will test our system against MySQL only. Ralph 3 should run fine with PostgresSQL. If we decide to do some raw SQL query somewhere we will mark it as "porting needed" to depend on external developers to handle custom db engines. We don't have such issues right now.
Michał Suszko
@msuszko
I'm using PostgreSQL with similar approach (not using jsonb not ipaddress datatypes). I would be nice to add PostgreSQL tests in Travis as MySQL was added recently
Mateusz Kurek
@mkurek
@msuszko PR for this will be highly appreciated (it should be quiet straightforward and similar do mysql approach)
Mateusz Kurek
@mkurek
@/all we'll be squashing Ralph NG migrations (allegro/ralph#1987), so temporary i've disabled automatic deb image and docker image building (otherwise it could make your db inconsistent) - we'll provide more information about migration process for you soon (probably next week) - stay tuned!
✪ vi4m Marcin Kliks
@vi4m
we're going internal demo = stay tuned for 3.0 final release :->
baking.jpg
Michał Suszko
@msuszko
ugh, migration squash is major PITA for me, does it serve some greater purpose?
Michał Suszko
@msuszko
Do you consider virtualization model complete?
Currently VirtualServer can be linked to CloudProject or DataCenterAsset. I don't see any way to link CloudProject to hardware.
Mateusz Kurek
@mkurek
@msuszko what about squashing? the main purpose was to make migrations easier for new users (we have some tuff migrations for ServiceEnv, Licence and Support inheriting from BaseObject). could you describe potential problems for you? about virtualization: first part of it is work in progress here: allegro/ralph#1945 ; in the second part we'll finish virtual servers (not-cloud)
Michał Suszko
@msuszko
@mkurek I have production env with few other apps, so have to resolve migration dependencies, reapply my patches to squashed migrations, perform migration in two stages and delete nonexistant migration data from DB
and then recreate all environments
Michał Suszko
@msuszko
What is the status of #1914? Do you plan to merge is soon™?
✪ vi4m Marcin Kliks
@vi4m
yes, it's going to be merged asap
we need to add hypervisor field
it's the matter of couple days to merge
(tm)
why're you asking?
Michał Suszko
@msuszko
I'd like to migrate data from uCMDB
Pierre-Yves Dubreucq
@pydubreucq
Hi,
I've updated my ralph-core and I can't do ralph migrate, I have this error :

System check identified some issues:

WARNINGS:
?: (18.W001) The standalone TEMPLATE* settings were deprecated in Django 1.8 and the TEMPLATES dictionary takes precedence. You must put the values of the following settings into your default TEMPLATES dict: TEMPLATE_DEBUG.
Operations to perform:
Synchronize unmigrated apps: taggit_serializer, foundation, ralph_admin, table, rest_framework, humanize, messages, dc_view, import_export, staticfiles, mptt, permissions
Apply all migrations: accounts, domains, licences, transitions, data_importer, supports, sessions, attachments, sitetree, back_office, taggit, admin, reports, contenttypes, data_center, reversion, authtoken, assets, auth
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Installing custom SQL...
Running migrations:
Rendering model states... DONE
Applying assets.0007_auto_20151118_0804... OK
Applying assets.0008_asset_property_of... OK
Applying back_office.0007_copy_property_of... OK
Applying assets.0009_asset_property_of_rename... OK
Applying assets.0010_service_env_inherits_base_object...Traceback (most recent call last):
File "/opt/ralph/ralph-core/lib/python3.4/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/opt/ralph/ralph-core/lib/python3.4/site-packages/django/db/backends/mysql/base.py", line 124, in execute
return self.cursor.execute(query, args)
File "/opt/ralph/ralph-core/lib/python3.4/site-packages/MySQLdb/cursors.py", line 220, in execute
self.errorhandler(self, exc, value)
File "/opt/ralph/ralph-core/lib/python3.4/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorvalue
File "/opt/ralph/ralph-core/lib/python3.4/site-packages/MySQLdb/cursors.py", line 209, in execute
r = self._query(query)
File "/opt/ralph/ralph-core/lib/python3.4/site-packages/MySQLdb/cursors.py", line 371, in _query
rowcount = self._do_query(q)
File "/opt/ralph/ralph-core/lib/python3.4/site-packages/MySQLdb/cursors.py", line 335, in _do_query
db.query(q)
File "/opt/ralph/ralph-core/lib/python3.4/site-packages/MySQLdb/connections.py", line 280, in query
_mysql.connection.query(self, query)
_mysql_exceptions.OperationalError: (1025, "Error on rename of './ralph/#sql-2b3_c6e3' to './ralph/assets_serviceenvironment' (errno: 150)")

The above exception was the direct cause of the following exception:

Michał Suszko
@msuszko
#2018 makes read-only text fields cover each other when there is more than one line
Viktor Ekmark
@fyxim
Hi, does ralph support multiple VRF environments?
✪ vi4m Marcin Kliks
@vi4m
@fyxim no
✪ vi4m Marcin Kliks
@vi4m
@pydubreucq probably it's because we squashed our migrations, @mkurek will know for sure
either way, the fastest way will be to reinitialize db if you don't have production data there