Menu

Documentation ORM & help to create Module

azeam
2012-03-02
2012-12-19
  • azeam

    azeam - 2012-03-02

    hi,

    first i'm sorry for the english cause i'am french :p
    so, i tried to create a new module and everithing work  fine (that a good thing :D)
    i add on the data Model some entities like Virtual_server, hypervisor, appliance, rack Storage,pdu, ……

    but now i'm limited cause i need  some documentation
    in fact now  tried to add  for exemple, an hypervisor (vmware) on a rack,
    the hypervisor is a 2U large
    i put it in a 42U's rack

    1) how can i deal with the ORM to execute an update request  saying that the free space in the rack was 42-2 ?

    2) is there any documentation of the parameter needed on the used functions ? (like "bPropagate", "iDistance" on the relationship is there some other attributes possible same question about the Init_AddAttribute() (and others ^^).

    i hope that you could help me a litle,
    have a good day.

     
  • azeam

    azeam - 2012-03-02

    1-bis) in fact updating the database coul be done with a trigger but it's not really good
    an other better solution was to modify the view of the item Rack Storage and adding a line with a dinamic sum of all the size of the differents  equiments stored in the rack

    but i don't know how to deal with the orm to do this type of request too …
    (sorry for the double post i don't see any "edit" button  )

     
  • azeam

    azeam - 2012-04-13

    nobody can help me ? that make a long time i try to solve my prolem
    i'm a litle bit disapointed of the documentation of the code there is really few documented functons .
    for an open source project, that make the contribution process less efficient then it could be.

     
  • TheBigOne

    TheBigOne - 2012-04-16

    Hi,

    there is already a solution to cover VMs and Rack units.
    Check this out.
    https://sourceforge.net/apps/trac/itop/ticket/537

    The easiest way to do your calculation is with the SELECT statement. You can select all Server in the Rack and count the rack units. (I`m not familiar with your code and it`s just an idea)

    You shouldn`t reduce the available size while creating a new server cause iTop should just be your reporting tool. You should know where a server is installed and choose the correct rack units. What happens if a server will be moved to another rack? You first need to free up the rack units in the old rack and then install it in the other rack. I can`t get the problem right now but maybe it helps a bit.

     
  • azeam

    azeam - 2012-05-03

    hey !!! thank you for the answer and sorry for reply so long time after
    i will check it out !

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.