question

lnelms avatar image
lnelms asked cwhitty commented

in Velocity 6.0 abstract resource to select online only

In velocity 6.0 I would like my abstract resources to only select online resources. I was wondering if there is a bool condition that I could add to the abstract condition to make sure that only the online devices would be selected. Right now this just means that the ping driver can reach the management interface. It just slows down engineers when it picks an offline resource right now and cycles have to be spent trying to figure out why its offline. Any help on this issue would be greatly appreciated.

example abstract condition:

template[pc] AND online = True

velocityabstract devices
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
cwhitty avatar image
cwhitty answered cwhitty commented

This is a good enhancement request. I'll write it up and include the potential to select based on matches for fields like name, tags, and description.

If I had to do it today, I'd add a boolean property for status and admin-level Velocity credential properties into the resource's template. Your driver that manages the resource can use those creds to connect to Velocity and flip the status bit off whenever the resource is down. That way, you could use status as a condition in your abstract topology.

2 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

lnelms avatar image lnelms commented ·

I do like this as an idea for a workaround. The only question on this I would have is this. Would a change in a property of the device result in a reindex of the database. With 1000's of resources I would worry this could just kill the database if its running the ping driver every 5 minutes and possibly changing the database and indexing

0 Likes 0 ·
cwhitty avatar image cwhitty lnelms commented ·

Not a concern. There are no re-indexing operations on the database caused by this property value change.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.