Closed Bug 1019869 Opened 10 years ago Closed 10 years ago

Remove spot instances from inventory

Categories

(Release Engineering :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rail, Assigned: rail)

References

Details

Attachments

(4 files)

... when we completely switch to setup without puppet and DNS
Attached file remove.me.sh
This is what I want to run (after removing "echo")
Attachment #8437132 - Flags: review?(juber)
I would do 'set -x -e' at the top of your file to print the commands you are running and then exit if invtool returns a non-zero return code.

I would also suggest that you modify our script to take advantage to some new search features in Inventory.

Instead of "/^(bld|tst|try)-linux(32|64)-spot type=:cname" try:

   cname.fqdn=/^(bld|tst|try)-linux(32|64)-spot

Instead of "/^(bld|tst|try)-linux(32|64)-spot- type=:PTR" try:

   ptr.name=/^(bld|tst|try)-linux(32|64)-spot

Instead of "/^(bld|tst|try)-linux(32|64)-spot- type=:A" try:

   a.fqdn=/^(bld|tst|try)-linux(32|64)-spot

Since you are specifying a search field on a specific searchable type, the 'type=' is implied (note that you can use '=' now instead of '=:'.)

Your commands and these alternatives are semantically the *same* -- I've just changed the syntax.

Otherwise this looks good.
Attachment #8437132 - Flags: review?(juber)
Attached file spot.CNAME
CSV for CNAME entries
Attached file spot.PTR
CSV for PTR entries
Attached file spot.A
CSV for A entries
uberj was kind to delete these. Thanks!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: