Discussion:
Managing AWS RDS
Fangyan Du
2015-05-29 16:54:45 UTC
Permalink
Hi,

We found a bug in the code that manages AWS RDS.

To reproduce it:
1. Create a new MySQL RDS instance, set Multi-AZ = false.
2. Modify the instance to change the Multi-AZ value with Apply Immediately
= false.
3. In AWS, the instance detail page shows: Multi-AZ = false,
pending_modified_values.multi_az = true.
4. Calling fog's describe_db_instances returns: Multi-AZ = true,
pending_modified_values = {}

The problem seems to be in
fog-aws-0.1.2/lib/fog/aws/parsers/rds/db_parser.rb:

when 'MultiAZ', 'AutoMinorVersionUpgrade', 'PubliclyAccessible'
if value == 'false'
@db_instance[name] = false
else
@db_instance[name] = true
end

......

when 'DBInstanceClass', 'EngineVersion', 'MasterUserPassword',
'MultiAZ', 'Iops', 'AllocatedStorage'
if @in_pending_modified_values
@pending_modified_values[name] = value
else
@db_instance[name] = value
end

Thanks a lot for the supports.

Best Regards,
Hannah Du
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
geemus (Wesley Beary)
2015-05-30 16:14:14 UTC
Permalink
Would you be up for working on a patch for this?
Thanks!
wes
Post by Fangyan Du
Hi,
We found a bug in the code that manages AWS RDS.
1. Create a new MySQL RDS instance, set Multi-AZ = false.
2. Modify the instance to change the Multi-AZ value with Apply Immediately
= false.
3. In AWS, the instance detail page shows: Multi-AZ = false,
pending_modified_values.multi_az = true.
4. Calling fog's describe_db_instances returns: Multi-AZ = true,
pending_modified_values = {}
The problem seems to be in
when 'MultiAZ', 'AutoMinorVersionUpgrade', 'PubliclyAccessible'
if value == 'false'
@db_instance[name] = false
else
@db_instance[name] = true
end
......
when 'DBInstanceClass', 'EngineVersion', 'MasterUserPassword',
'MultiAZ', 'Iops', 'AllocatedStorage'
@pending_modified_values[name] = value
else
@db_instance[name] = value
end
Thanks a lot for the supports.
Best Regards,
Hannah Du
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...