rightscale/right_aws — Issue #118: rds describe_db_parameters("mysql51") returns error ParameterGroupFamily [&quot;mysql5.1&quot;] is not a valid parameter group family
Author: neillturner
Created: 2012-02-19 11:47:05+00:00
State: open

rds describe_db_parameters(mysql51) returns error ParameterGroupFamily ["mysql5.1"] is not a valid parameter group family

it appears that the rds interface for describe_db_parameters
is turning the parameter in an array. ie mysql5.1 becomes ["mysql5.1"] before being passed as a
parameter to the amazon rds calls.
it looks like amazon is not expecting an array hence this problem

the problem is in this bit of code

def describe_db_parameters(*db_parameter_group_name, &block)
item, params = AwsUtils::split_items_and_params(db_parameter_group_name)
params['DBParameterGroupName'] = item

if you change to the following it works.

def describe_db_parameters(*db_parameter_group_name, &block)
item, params = AwsUtils::split_items_and_params(db_parameter_group_name)
puts "item has become an array #{item}"
# put it back to string and it will work
item = "default.mysql5.1
params['DBParameterGroupName'] = item

I don't really understand why this is happening. the rds_interface code has not changed from version 2.0.0 to version 3.0.0 in this area so i don't understand how this error got introduced. it worked ok in rds_inteface 2.0.0
I can workaround by modifying the rds_intrerface

I suspect the same problem maybe on other rds calls as well. Have not tested them all yet.