During the upgrade if you see a failure during the upgrade due to a failure such as below on CP in 'db:migrate' stage:
[2014-01-29 13:57:18 -0500] == NormalizePropertiesInBaseResources: migrating =============================
[2014-01-29 13:57:19 -0500] rake aborted!
[2014-01-29 13:57:19 -0500] An error has occurred, all later migrations canceled:
The single-table inheritance mechanism failed to locate the subclass: 'Resource::Cpu'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite BaseResource.inheritance_column to use another column for that information.[2014-01-29 13:57:19 -0500] /usr/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.11/lib/active_record/inheritance.rb:143:in `rescue in find_sti_class'
The resolution here is to:
WHERE type IN ('Resource::Cpu', 'Resource::CpuShare', 'Resource::Memory', 'Resource::DiskSize', 'Resource::IpAddress')
Or if you see something like:
[2014-01-31 13:18:50 +0000] rake aborted!
[2014-01-31 13:18:50 +0000] undefined method `fdiv' for nil:NilClass
[2014-01-31 13:18:50 +0000] /onapp/interface/app/services/size_utils.rb:7:in `to_gigabytes'
/onapp/interface/app/statistics/user_billing_resource_statistics.rb:87:in `block in backups_on_backup_servers'
/onapp/interface/app/statistics/user_billing_resource_statistics.rb:36:in `block in generate'
/onapp/interface/lib/tasks/billing.rake:381:in `block (3 levels) in <encoded>'
/onapp/interface/lib/tasks/billing.rake:380:in `block (2 levels) in <encoded>'
[2014-01-31 13:18:50 +0000] Tasks: TOP => billing:update_statistic_units
[2014-01-31 13:18:50 +0000] (See full trace by running task with --trace)
1) Go to MySQL onapp and execute the following commands:
select count(*) from backups where backup_size is NULL;
select count(*) from templates where template_size is NULL;
If template size and backup size values are NULL - replace these values with 0:
update backups set backup_size = 0 where backup_size is NULL;
update backups set template_size = 0 where template_size is NULL;
After this please rerun the upgrade script.