Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fleet-prefix reuse problem #806

Open
TomerSalt opened this issue Jun 3, 2024 · 1 comment
Open

fleet-prefix reuse problem #806

TomerSalt opened this issue Jun 3, 2024 · 1 comment

Comments

@TomerSalt
Copy link

TomerSalt commented Jun 3, 2024

whenever using axiom-scan with flags for auto creation of a fleet with static prefix and auto removal as is:
axiom-scan -m --fleet scanner --rm-when-done --spinup 5

for the first time it works great, but due to the way aws works with instances termination, if re running this command again the cli will return 2 instances id and break the axiom.


              _
  ____ __  __(_)___  ____ ___        ______________ _____
 / __ `/ |/_/ / __ \/ __ `__ \______/ ___/ ___/ __ `/ __ \
/ /_/ />  </ / /_/ / / / / / /_____(__  ) /__/ /_/ / / / /
\__,_/_/|_/_/\____/_/ /_/ /_/     /____/\___/\__,_/_/ /_/

                                    @pry0cc
                                 & @0xtavian

Spinning up fleet axiom-scanner with 10 instances...
Initializing new fleet 'axiom-scanner' with 10 instances...
INITIALIZING IN 5 SECONDS, CTRL+C to quit... 
Instances: [ axiom-scanner01 axiom-scanner02 axiom-scanner03 axiom-scanner04 axiom-scanner05 axiom-scanner06 axiom-scanner07 axiom-scanner08 axiom-scanner09 axiom-scanner10  ]
Initialized instance 'axiom-scanner01' at 'nullation...
3.*.*.117'!
.
.
.

As can be observed above, the terminated yet to be deleted instances return null and interrupt the expected behavior and crashes the program later on. Subsequently the sshconfig is not properly generated and thus many of the axiom-* cli utils fail to run.

A similiar problem occurs when trying to delete such instance:

(venv) user@MacBook ~ % axiom-rm axiom-scanner\*                
Deleting 'axiom-scanner01'...
i-09f9*****7a2f
i-0b4*****da56

An error occurred (InvalidInstanceID.Malformed) when calling the TerminateInstances operation: The instance ID 'i-09f9*****7a2f
i-0b4*****da56' is malformed
.
.
.

**deducted some information with astrixes **

@coffeegist
Copy link

I'm also seeing this through simply spinning a fleet up, spinning it down manually, and reusing the name within a short time frame

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants