Managing AWS RDS

17 views
Skip to first unread message

Fangyan Du

unread,
May 29, 2015, 2:34:03 PM5/29/15
to ruby...@googlegroups.com
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

geemus (Wesley Beary)

unread,
May 30, 2015, 12:14:15 PM5/30/15
to ruby...@googlegroups.com
Would you be up for working on a patch for this?
Thanks!
wes

--
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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages