solutious/rudy

Shutdown without destroying disk, found on startup, not mounted

Opened this issue · 1 comments

Scenario 1:
Check case where machine with a disk is shutdown without destroying the disk. Then a new instance is started and finds the disk. It attaches but doesn't mount b/c metadata says it's mounted.

Scenario 2:
Create a machine with a disk. Shut it down without doing anything to the disk. Startup a new instance. Run a routine to destroy the disk: "Rudy::Disks::NotAttached: disk-us-east-1b-stage-app-01-jira"

On linux, this command will return the filesystem for the given device:

blkid -s TYPE -o value /dev/sdi