njeirath / brenda-web

Brenda-Web - A web based frontend for Brenda
http://www.brenda-web.com
Other
12 stars 13 forks source link

Bad parameters for spot request: A specific Availability zone seems to be selected #93

Open ninovanhooff opened 6 years ago

ninovanhooff commented 6 years ago

cc2.8xlarge instance type is not available in us-east-1a, but it is available in us-east-1b, c and d. I can successfully create a spot request, but it's state is bad parameters When I look up the request in the ec2 console, I get this result. I would think that if the availability zone would be left blank or rather be us-east-1, that the request would be valid.

In my brenda-web configuration, I did use us-east-1

Status
bad-parameters: Your Spot request failed due to bad parameters. Spot request cannot be fulfilled due to invalid availability zone. 

Instance
-

Instance type(s)
cc2.8xlarge

AMI ID 
ami-ff6b3e85

Product description
Linux/UNIX

Availability Zone 
us-east-1a
ninovanhooff commented 6 years ago

With other instance types, I also see that region 1a is requested, even if it is available for a lower price in other subregions

njeirath commented 6 years ago

@ninovanhooff can you confirm if you're still seeing this issue, I was able to set my region to us-east-1 and my instance started up in us-east-1d.

One possible issue is if you'd originally set us-east-1a in your configuration and then later changed it, I've seen the old region stick until the site is reloaded. That may be the issue but would need to run some more experiments to determine if that is really the issue or not.

ninovanhooff commented 6 years ago

Tried again just now and I seeing the same issue. Restarted brenda-web with npm-start, my credentials got reloaded from browser storage. I went to AWS config where us-east-1 was the value for AWS region. Pressed set credentials for good measure, which succeeded and refreshed the page. requested a spot request for cc2.8xlarge after that with valid price and got this error again

After that, I also tried clearing the credentials, reloading and re-filling them. Same result

njeirath commented 6 years ago

@ninovanhooff Would you be able to provide some info on the browser and OS you're using and also whether you're using the hosted site at brenda-web.com or running it yourself locally so I can try to reproduce on my end?

ninovanhooff commented 6 years ago

Browser: Chromium 65.0.3325.181 OS: Ubuntu 16.04 AMI: ami-5c41a726 - blender 2.79 (suggested)

This problem occurs both locally and on the hosted site. Problem is easy to reproduce (for me) and occurs 100% of attempts When registering on the hosted site I made sure to enter the zone as us-east-1 (without a)

ninovanhooff commented 6 years ago

Can this new feature be used in brenda-web? Seems like it could solve my problem

https://github.com/jamesyonan/brenda/pull/18#pullrequestreview-170510350