walterleonardo / hybridfox

Automatically exported from code.google.com/p/hybridfox
Apache License 2.0
0 stars 0 forks source link

Cannot launch any instances from images on AWS #103

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Tried HybridFox 1.7.00089 and 0014
2. Right click on AMI 
3. Click "Launch instance"

What is the expected output? What do you see instead?

I should see the instance getting lanuched as it always did before.  Instead I 
get a popup (example):
"Invalid id: "emi-224ca84b" (expecting "ami-...")"

What version of the product are you using? On what operating system?
Tried HybridFox 1.7.00089 and 0014

Please provide any additional information below.
1.6 was working fine.  It appears from the error that HybridFox is hardcoding 
"emi" even though I am clicking on an image id that starts with "ami".  The 
numbers and letters after the dash are correct.

Original issue reported on code.google.com by rbross1...@gmail.com on 12 Sep 2011 at 6:16

GoogleCodeExporter commented 8 years ago
This code appears to be the issue in "controller.js":
        //Just checking for ec2 or not
        if (ec2ui_session.isAmazonEndpointSelected()) {
            params.push(["ImageId", imageId]);
            if (kernelId != null && kernelId != "") {
                params.push(["KernelId", kernelId]);
            }
            if (ramdiskId != null && ramdiskId != "") {
                params.push(["RamdiskId", ramdiskId]);
            }
        }
        else {
            params.push(["ImageId", imageId.replace("ami-","emi-")]);
            if (kernelId != null && kernelId != "") {
                params.push(["KernelId", kernelId.replace("aki-","eki-")]);
            }
            if (ramdiskId != null && ramdiskId != "") {
                params.push(["RamdiskId", ramdiskId.replace("ari-","eri-")]);
            }
        }

Apparently, ec2ui_session.isAmazonEndpointSelected() is returning false.

Original comment by rbross1...@gmail.com on 12 Sep 2011 at 6:30

GoogleCodeExporter commented 8 years ago
Please set up your cloud type in "Manage Endpoint Dialog"

Original comment by anandchitravelu on 13 Sep 2011 at 12:54

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by anandchitravelu on 14 Oct 2011 at 12:59