These are chat archives for allegro/ralph

2nd
Apr 2015
Pierre-Yves Dubreucq
@pydubreucq
Apr 02 2015 10:07
Hi,
I'm trying to upgrade my docker image, but If I'm using the docs :
docker run -P -t -i -volumes-from mysql_data vi4m/ralph:latest /home/ralph/bin/ralph migrate
Warning: '-volumes-from' is deprecated, it will be replaced by '--volumes-from' soon. See usage.
Unable to find image 'vi4m/ralph:latest' locally
Pulling repository vi4m/ralph
FATA[0001] Tag latest not found in repository vi4m/ralph
I've tried with :
docker run -P -t -i -volumes-from mysql_data allegrogroup/ralph:latest /home/ralph/bin/ralph migrate
And I have :
_mysql_exceptions.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
Mysql is up
Mateusz Kurek
@mkurek
Apr 02 2015 11:02
@pydubreucq try with replace vi4m with allegrogroup
Pierre-Yves Dubreucq
@pydubreucq
Apr 02 2015 11:03
Thanks, I've tried and I have mysql error
flashput
@flashput
Apr 02 2015 11:04
Venture/Department/Business segment/Profit Center , how to understand the relations between them?
✪ vi4m Marcin Kliks
@vi4m
Apr 02 2015 11:57
@pydubreucq - just do docker pull allegrogroup/ralph:latest and run : docker run -P -t -i -volumes-from mysql_data allegrogroup/ralph:latest /home/ralph/upgrade_ralph.sh
@mkurek could you push the new image ?
@pydubreucq remebert to stop all docker instances before upgrading.
@flashput there are some examples in initials file in upstream develop - ask @mkurek for details
flashput
@flashput
Apr 02 2015 12:42
@vi4m If I change CI type name from /admin/cmdb/citype/, rename ci name of Environment from ‘Environment’ to other word like ‘Env’, should that operation affects any created environment entities?
Mateusz Kurek
@mkurek
Apr 02 2015 13:01
@flashput - department you can treat as team responsible for all devices in venture (which is hierarchical container for devices). profit center is next level in hierarchy (over venture) - profit center is a section of a company treated as a separate business - profit center could group many ventures. business segment is top level in this hierarchy and it groups multiple profit centers. similar relations are used in CMDB services.
@flashput if you rename it (ex. in django admin) nothing should happen - we are using this CI id internally
flashput
@flashput
Apr 02 2015 13:03
I tried, and when adding new devices , all pre-configured environments are all gone
Happens in my installation
Mateusz Kurek
@mkurek
Apr 02 2015 13:12
do you remember that you have to choose service (with proper environments assigned in CMDB) on this form first?
flashput
@flashput
Apr 02 2015 13:17
Before I modify ‘Environment’ to ‘Env', all environments are there as default , nothing have to choose first.
After my modification , nothing appeared even if I choose a ’Service catalog’
Mateusz Kurek
@mkurek
Apr 02 2015 13:18
do you have anything not-ordinary in logs (ex. exceptions)?
flashput
@flashput
Apr 02 2015 13:20
nothing printed out
similar things happened when I modify ‘Default region’ to ‘Default regions’.
✪ vi4m Marcin Kliks
@vi4m
Apr 02 2015 13:22
I guess we should try to reprodouce it on devdemo instance.
flashput
@flashput
Apr 02 2015 13:25
I can reproduce the behaviors on both docker image version and manual installation version.
✪ vi4m Marcin Kliks
@vi4m
Apr 02 2015 13:26
So. Do you only change ci name field ?
flashput
@flashput
Apr 02 2015 13:27
yes, if I change names back to Environment, everything goes OK again
Mateusz Kurek
@mkurek
Apr 02 2015 13:28
ok - could you please create an issue for this in our github repo?
flashput
@flashput
Apr 02 2015 13:30
OK, I’ll do it
damian1976
@damian1976
Apr 02 2015 13:31
btw I don't know if it matters but in settings you can also find i.e. DEFAULT_REGION_NAME = 'Default region'
flashput
@flashput
Apr 02 2015 13:47
since we can select different regions in the form , means there will be more than one region , not only the ‘Default region’. If add/modify cause unexpected results, people who needs multi regions will be confused.
for my situation, single region is fairly enough.