These are chat archives for allegro/ralph

16th
Jan 2019
Fabian Krack
@onibox
Jan 16 08:41
@romcheg No, one just does not need virtualenv on CentOS 7 but can use Python 3.4 from EPEL. But looking at the requirenments/*.txt files with fixed python module versions i guess a container-based deployment would be a better fit than an RPM package.
Roman Prykhodchenko
@romcheg
Jan 16 08:42
@onibox installing packages from PyPi to bare system can seriously damage system tools that rely on python
while I do realize most of the users don't care about rhel users and the red hat support, we would like to build the package that won't break either the system or the support terms
so, if we're talking about the rpm package the only way we can follow atm is to install everything into a venv and pack that into the package
the other option, as you've mentioned is to use the container
By quickly googling I have found a few tools to pack a virtualenv into an rpm package
like this one
Adam
@tretos53
Jan 16 08:59
Hi, How easy is to transfer DB/settings from one ralph to another ?
Roman Prykhodchenko
@romcheg
Jan 16 09:24
@tretos53 do you have the "source" ralph installed with the new package?
Adam
@tretos53
Jan 16 09:26
when was the new package released? The current version I have is 3.0.0-snapshot-20181116-896 . Im having issues updating it and I wanted to do a fresh install on a new VM and transfer data
Roman Prykhodchenko
@romcheg
Jan 16 09:27
that's the old package
Do you have your DB settings in the python configuration file somewhere at /opt/ralph/... ?
Adam
@tretos53
Jan 16 09:28
not sure but it's all default I never changed anything
I can check if you show me how
Roman Prykhodchenko
@romcheg
Jan 16 09:28
So the default values were never changed
the only difference is that now Ralph stores all settings in /etc/ralph/
and instead of python files there are normal key-value text files
Adam
@tretos53
Jan 16 09:33
so I would have to install new ralph, copy DB [?] and copy values from python to key?
Roman Prykhodchenko
@romcheg
Jan 16 09:33
that's right
Adam
@tretos53
Jan 16 09:34
Is there any guide how to copy DB and update values?
Roman Prykhodchenko
@romcheg
Jan 16 09:34
however, if you have never changed the DB options in your current set up, you won't have to do that in the new set up either
Do you use MySQL?
Adam
@tretos53
Jan 16 09:36
think so
if that was the default then yes
then you can perhaps use this manual
Adam
@tretos53
Jan 16 09:37
done it in postgres so is similar I guess
Is ubuntu 18 best ?
Roman Prykhodchenko
@romcheg
Jan 16 09:37
yes
Adam
@tretos53
Jan 16 09:38
thanks, will try
Roman Prykhodchenko
@romcheg
Jan 16 09:38
the new package is severely re-done so we decided to start with the current lts
Adam
@tretos53
Jan 16 09:38
make sense
docker image is not ready yet I assume ?
Roman Prykhodchenko
@romcheg
Jan 16 09:39
it's not
I'm working on it currently
Adam
@tretos53
Jan 16 09:40
:+1:
Roman Prykhodchenko
@romcheg
Jan 16 09:41
We plan to start publishing images this week
Adam
@tretos53
Jan 16 09:42
do you use google cloud ?
Roman Prykhodchenko
@romcheg
Jan 16 09:42
for images?
Adam
@tretos53
Jan 16 09:42
and hosting/testing ralph
Roman Prykhodchenko
@romcheg
Jan 16 09:42
Ralph is tested on Travis CI
Adam
@tretos53
Jan 16 09:43
does the docker image has mysql built in or can it use external DB? Cloud SQL for example (MySQL Versions 5.6 or 5.7)
Roman Prykhodchenko
@romcheg
Jan 16 09:43
no, the image will only have Ralph installed
I would like to make a production-ready container, so shipping a db inside is not an option
there is a docker-compose file, however, which makes a simple spin-off pretty simple
Adam
@tretos53
Jan 16 09:45
I can wait for docker image and do it that way with cloud sql
Roman Prykhodchenko
@romcheg
Jan 16 09:46
the image supports (will support) setting some of the options, e. g. DB options, using environment variables
Adam
@tretos53
Jan 16 09:47
IP is the main thing
to point to a db
Roman Prykhodchenko
@romcheg
Jan 16 09:48
if setting those basic options won't be enough, it will be possible to just mount the /etc/ralph and set whatever is needed
Adam
@tretos53
Jan 16 09:48
ok, I'll wait for docker then
Roman Prykhodchenko
@romcheg
Jan 16 09:48
IP is the main thing
that's possible to set using the env
ok