by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Michał Suszko
@msuszko
IP is part of many nested networks, and when you create smaller subnet you have to rewrite foreign keys in thos model, or when you remove subnet
And what is this foreign key for really?
You can find all networks matchong IP address and its segment with simple DB query
as of IP and Ethernets addresses. I'd add text field to IP to keep interface name
and link it to an asset
Michał Suszko
@msuszko
The same for Ethernet addresses
One could create separate model for interfaces to create sth like Asset <-- Interface <-- IPaddress and Asset <-- Interface <-- MACaddress, and keep interface attributes, but this adds yet another link in DB I don't really have use for
Michał Suszko
@msuszko
There is no problem in MySQL finding networks IP address is in, it will just use range index scan using only one boundary
✪ vi4m Marcin Kliks
@vi4m
@msuszko zdzwonimy się pogadać tak będzie łatwiej ;-)
Bryan Taylor
@brylor
Hi all. I have Ralph3 deployed in docker... I'd like to add new "Cluster Status," but I see no option to change Cluster Status?
Bryan Taylor
@brylor
I can't make my transitions unless I can specify my own states ?
is it not something from the GUI?
Bryan Taylor
@brylor
found it in src/ralph/data_center/models/virtual.py ... what is the motivation to not have status in the DB?
I can just add to this list right? fordeploy = ('for deploy') reserved = ('reserved') free = ('free')
✪ vi4m Marcin Kliks
@vi4m
Yes you can add it. The motivation is - we have some logic connected to this statuses
But it's safe to add to the list
Bryan Taylor
@brylor
@vi4m seems I can't remove 'for deploy' or 'in use' I get: AttributeError: type object 'ClusterStatus' has no attribute 'in_use'
Other thoughts: How would I implement "blades?" I need to account for the enclosure and any parts inside of it
... then I have clusters of blades
✪ vi4m Marcin Kliks
@vi4m
You can add statuses, not removing.
Just read QuickStart blades are included in docs.
Bryan Taylor
@brylor
Ah I see it, sorry... too impatient for the quickstart :D
ty
I have a slack ruby bot talking to the API... so hopefully nobody has to ask me ever again the status of a cluster :)
Bryan Taylor
@brylor
@vi4m I feel like I've done everything, and I can't get my blade to show up in DC view
Bryan Taylor
@brylor
@vi4m http://ctrlv.in/815533 currently setup like this, but sslco0202 and sslco0203 do not show up in the rack
Bryan Taylor
@brylor
Do I need to make a third asset for the "enclosure" and have that be the parent to my two node assets?
hrm
Bryan Taylor
@brylor
Yeah... I did that and it seemed to work
Bryan Taylor
@brylor
Any road map to change position from DC view? Draggable?
Bryan Taylor
@brylor
I can't set an asset holder to a cluster :/ blarg
✪ vi4m Marcin Kliks
@vi4m
?
Bryan Taylor
@brylor
assign a cluster to a user I mean
I'll use custom key
✪ vi4m Marcin Kliks
@vi4m
Yes you can assign an owner. Just do it through the Service field
Then you have technical and business owner and other fields.
Bryan Taylor
@brylor
Im doing hardware testing and trying to assign clusters to users. The hardware changes hands pretty much everyday as different geos use it. A service field for each user feels kludgy
as the service is just 'test'
✪ vi4m Marcin Kliks
@vi4m
Ok then custom field should do the job
gatvo
@gatvo
hello, im seeing a server error (500) when I try to export IP Addresses into .xls using the demo
Bryan Taylor
@brylor
How horrible would it be to add more fields into components? I want to track poh on hours for drives, installed dates, etc... but I can't use a custom key
just make a migration and add the admin field?
✪ vi4m Marcin Kliks
@vi4m
Why is the custom field not enough in your case?
Bryan Taylor
@brylor
I'm not seeing how I would associate a specific drive's serial number to it's actual POH... unless I used custom field for serial and POH but I feel im breaking the model ?
gatvo
@gatvo
How can I add a management IP to an asset through the API?
✪ vi4m Marcin Kliks
@vi4m
@gatvo look at the ralph-cli sources, there's an example there
Bryan Taylor
@brylor
@gatvo I came up with this in ruby, its pretty crufty atm but it seems to work https://gist.github.com/brylor/599f3002c1579567ba806a6ed73bbd5b
be wary of trailing slashes with the API
✪ vi4m Marcin Kliks
@vi4m
looks good
Bryan Taylor
@brylor
thanks! :)