Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
✪ vi4m Marcin Kliks
@vi4m
@tretos53 show me the output of dpkg -l "ralph-"
@tretos53 I suppose you've seen the dc visualization ? it shows green/red bars
@onibox we have some documentation regarding workflows
@onibox the thing is, we call them "transitions" ;-)
✪ vi4m Marcin Kliks
@vi4m
@onibox but, well, the documentation really covers more advanced scenario, when you want to customize workflow in code
the simple scenario is really trivial and can be covered in one screen: http://ralph-demo.allegro.tech/transitions/transitionmodel/
transition is the action which is run on specific model, such as data center asset
Zrzut ekranu 2018-11-21 o 21.37.59.png
you can run "change rack" action
Zrzut ekranu 2018-11-21 o 21.39.19.png
where is it defined? here - in transition models bound to "data center asset"
Zrzut ekranu 2018-11-21 o 21.40.07.png
you see custom action defined by the user, which can be only run, when data center asset in the specific status
new, free, or to-deploy
when it's run successfully - Ralph changes status to "in use"
✪ vi4m Marcin Kliks
@vi4m
Zrzut ekranu 2018-11-21 o 21.42.34.png
during this process, particular additional action can be chosen, from simple one-field forms such as "change hostname" which requires entering particular field (hostname)
Zrzut ekranu 2018-11-21 o 21.46.55.png
you can plug any action such as: generating pdf, deploying, etc
✪ vi4m Marcin Kliks
@vi4m
and you can also plug your own code, and this documentation we have, covers exactly that
Adam
@tretos53

@vi4m
Weirdly

dpkg -l "ralph-"
dpkg-query: no packages found matching ralph-
ps -aef | grep ralph
adminis+   942   921  0 Jul23 ?        00:00:00 /bin/sh -c /bin/bash -lic /home/administrator/ralph.script
adminis+   943   942  0 Jul23 ?        00:00:00 /bin/bash /home/administrator/ralph.script
adminis+  1003  1056 23 Nov14 ?        1-21:05:16 /opt/ralph/ralph-core/bin/python /opt/ralph/ralph-core/bin/ralph runserver 0.0.0.0:8000
adminis+  1056   943  0 Jul23 ?        00:00:01 /opt/ralph/ralph-core/bin/python /opt/ralph/ralph-core/bin/ralph runserver 0.0.0.0:8000
adminis+ 14538 13827  0 09:04 pts/0    00:00:00 grep --color=auto ralph

Looks like Ralph is installed in /opt/ralph/

In terms of Graphs, when I go to the main page I only see Two round graphs with % but we have 6 server rooms. Not sure why other are missing.

If Ralph works better in a docker container I';m happy to reinstall, if there is a way to keep/transfer the database
✪ vi4m Marcin Kliks
@vi4m
Should be: dpkg -l "ralph-*"
Zrzut ekranu 2018-11-22 o 21.08.43.png
@tretos53 you mean this start page?
Zrzut ekranu 2018-11-22 o 21.08.37.png
or this "DC Visualization" ?
Adam
@tretos53
@vi4m
dpkg -l "ralph-*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                         Version                     Architecture                Description
+++-============================================-===========================-===========================-=============================================================================================
ii  ralph-cli                                    0.3.0                       amd64                       ?
ii  ralph-core                                   3.0.0-snapshot-20170822-825 amd64                       Ralph is an DCIM/CMDB - asset management for Data Centers/ Back Office.
The first screenshot (with circles). On that page I only got two circles but 6 data centres
✪ vi4m Marcin Kliks
@vi4m
This is one year old version (2017)
Adam
@tretos53
Is there an easy way to upgrade, keeping the existing data ?
✪ vi4m Marcin Kliks
@vi4m
I would recommend to make side copy(if it’s VM), and try to upgrade the package on this copy
And copy of database
Since it’s major upgrade
If it runs without problems, you can upgrade production
apt-get upgrade ralph-core
Adam
@tretos53
I can take a snapshot of the vm easily and revert back if needed
Thanks
✪ vi4m Marcin Kliks
@vi4m
Remember about database to copy as well
Adam
@tretos53
I'ts on the same vm so it'll be part of the snapshot
✪ vi4m Marcin Kliks
@vi4m
Ok
Adam
@tretos53
Got ImportError: No module named 'statsd' I google that allegro/ralph#3154
✪ vi4m Marcin Kliks
@vi4m
Which version is installed now ?
Adam
@tretos53
dpkg -l "ralph-*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                         Version                     Architecture                Description
+++-============================================-===========================-===========================-=============================================================================================
ii  ralph-cli                                    0.3.0                       amd64                       ?
iF  ralph-core                                   3.0.0-snapshot-20181116-896 amd64                       Ralph is an DCIM/CMDB - asset management for Data Centers/ Back Office.
Adam
@tretos53
When doing ralph runserver 0.0.0.0:8000 I've got ImportError: No module named 'statsd'
Adam
@tretos53

fixed that part but now I've got

You have unapplied migrations; your app may not work properly until they are applied.
Run 'python manage.py migrate' to apply them.

Where do I find manage.py ?

✪ vi4m Marcin Kliks
@vi4m
well, we have to deal with this missing import first, then it will work out
let me ask @ar4s about that