These are chat archives for allegro/ralph

20th
Jul 2017
heaquan
@heaquan
Jul 20 2017 03:29
@ar4s
✪ vi4m Marcin Kliks
@vi4m
Jul 20 2017 07:15
@ar4s will answer your question @kasim1r
Arkadiusz Adamski
@ar4s
Jul 20 2017 07:15
@heaquan Like @vi4m said, there are placeholder for real data. We dont't implemented full functionally yet.
✪ vi4m Marcin Kliks
@vi4m
Jul 20 2017 07:16
I think some code needs to be written
@ar4s Pete needs some vm existence surveys
Based on transitions
heaquan
@heaquan
Jul 20 2017 07:18
@ar4s Need their own secondary development
✪ vi4m Marcin Kliks
@vi4m
Jul 20 2017 07:22
@kasim1r the first question is why not just fetch list of instances from virtualization system without asking users ?
Which VM solution do you have?
Arkadiusz Adamski
@ar4s
Jul 20 2017 07:24

@kasim1r

to display the asset name in the page title

It is easy to do by small PR :)

Pete
@kasim1r
Jul 20 2017 07:24
We have a cloud provider for VMs and our own Hyper-V hypervisors. I fetch VMs data from both via API/Powershell and put the data into Ralph via API
Now, I'd like to have a process where the "responsible person", maybe the "business owner" from the corresponding service, has to acknowledge the VM every x months
that probably means that there needs to be a mechanism that "invalidates" VMs after those x months, and the person "revalidates" them.
something like thtat
Arkadiusz Adamski
@ar4s
Jul 20 2017 07:33
You probably need extra field (via custom field) with date when server invalidate.
IMHO transition machanism is not good for "surveys"
Arkadiusz Adamski
@ar4s
Jul 20 2017 07:43
Maybe write custom script whith some chain of API calls and put them to cron.
You can easily add new field for each virtual server via API
Pete
@kasim1r
Jul 20 2017 08:44
OK, thanks for the estimation. I will probably have to ask a developer to create a web frontend for that process :/
Pete
@kasim1r
Jul 20 2017 08:49
how large can the content of a "string" custom field be?
imp87768
@imp87768
Jul 20 2017 09:33
Hi. I'm trying to find ,,cabling'' feature in Ralph. Could you tell me if that is possible in ralph3?
I want to correlate a port number in switch with server
✪ vi4m Marcin Kliks
@vi4m
Jul 20 2017 10:15
@ar4s Why not use status field ?
Statuses: “In use”, “to confirm”
And of course this chunk of custom code run from cron, which sets statuses
We have also “my equipment confirmations” based on Back Office Assets. Maybe we can reuse some of this functionality ?
Arkadiusz Adamski
@ar4s
Jul 20 2017 10:51
We used custom tags in "my equipment confirmations" which is similar solution based on custom fields.
Pete
@kasim1r
Jul 20 2017 11:26
OK, then here's two questions: how do I create more statuses like the one you mentioned, and how do I trigger a transition?
Arkadiusz Adamski
@ar4s
Jul 20 2017 12:39
You have two ways:
  1. add another status to VirtualServerStatusand write action to transitions (PR is required) ,
  2. add custom field with choice list type and write script to handle this new field (PR is not required )
Pete
@kasim1r
Jul 20 2017 13:21
for choice 1:
you mean I would need to adapt /src/ralph/virtual/models.py?
Arkadiusz Adamski
@ar4s
Jul 20 2017 13:27
yes
Pete
@kasim1r
Jul 20 2017 13:27
but when I do that I will not be able to update via debian package...
apt-get update and so...?
Pete
@kasim1r
Jul 20 2017 13:48
is there not a "local" part for models.py that will not be changed when I do apt-get udate?
or, to go with ar4s' option2: can I do transitions on custom fields?
Arkadiusz Adamski
@ar4s
Jul 20 2017 15:22
ad 1. there is no "local" models.py. Generally it's impossible to customize models and add custom action without PR to ralph.
ad 2. yes and no - status is field is only for mark model as a "transitionable" and you can specify when transition is allow, for example only from new to used
but you must write special action and do PR :/