Here has two purposes about ejcet cdrom, one for functional use, and another one is test this command (attach-device), as thers's a bug BZ#892289 about eject cdrom for RHEL7 guest, so we need run this command twice to make sure cdrom eject indeed.