20531298 tiny flavor needs more storage s11u3-sru
authorsaurabh.vyas@oracle.com
Tue, 15 Dec 2015 00:08:40 -0800
branchs11u3-sru
changeset 5408 e633765b4751
parent 5407 87c7d5f9829e
child 5409 2c588e2f06d9
20531298 tiny flavor needs more storage
components/openstack/nova/patches/03-Solaris-flavors.patch
--- a/components/openstack/nova/patches/03-Solaris-flavors.patch	Tue Dec 15 00:08:40 2015 -0800
+++ b/components/openstack/nova/patches/03-Solaris-flavors.patch	Tue Dec 15 00:08:40 2015 -0800
@@ -1,17 +1,9 @@
 In-house patch to update the default flavors for use with Solaris.
 This patch has not yet been submitted upstream.
 
---- nova-2014.2.2/nova/db/sqlalchemy/migrate_repo/versions/216_havana.py.~1~	2014-10-16 04:52:25.000000000 -0700
-+++ nova-2014.2.2/nova/db/sqlalchemy/migrate_repo/versions/216_havana.py	2014-10-21 15:34:50.909529171 -0700
[email protected]@ -1,5 +1,7 @@
- # Copyright 2012 OpenStack Foundation
- #
-+# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-+#
- #    Licensed under the Apache License, Version 2.0 (the "License"); you may
- #    not use this file except in compliance with the License. You may obtain
- #    a copy of the License at
[email protected]@ -85,17 +87,45 @@ def _create_shadow_tables(migrate_engine
+--- nova-2014.2.2/nova/db/sqlalchemy/migrate_repo/versions/216_havana.py.~1~	2015-02-05 06:26:50.000000000 -0800
++++ nova-2014.2.2/nova/db/sqlalchemy/migrate_repo/versions/216_havana.py	2015-06-29 21:33:10.982774488 -0700
[email protected]@ -85,17 +85,45 @@ def _create_shadow_tables(migrate_engine
              raise
  
  
@@ -24,35 +16,35 @@
 -        'm1.large': dict(mem=8192, vcpus=4, root_gb=80, eph_gb=0, flavid=4),
 -        'm1.xlarge': dict(mem=16384, vcpus=8, root_gb=160, eph_gb=0, flavid=5)
 +        'Oracle Solaris kernel zone - tiny': dict(
-+            mem=2048, vcpus=1, root_gb=10, eph_gb=0, flavid=1,
++            mem=2048, vcpus=1, root_gb=20, eph_gb=0, flavid=1,
 +            extra='solaris-kz'),
 +        'Oracle Solaris kernel zone - small': dict(
-+            mem=4096, vcpus=4, root_gb=20, eph_gb=0, flavid=2,
++            mem=4096, vcpus=4, root_gb=40, eph_gb=0, flavid=2,
 +            extra='solaris-kz'),
 +        'Oracle Solaris kernel zone - medium': dict(
-+            mem=8192, vcpus=8, root_gb=40, eph_gb=0, flavid=3,
++            mem=8192, vcpus=8, root_gb=80, eph_gb=0, flavid=3,
 +            extra='solaris-kz'),
 +        'Oracle Solaris kernel zone - large': dict(
-+            mem=16384, vcpus=16, root_gb=40, eph_gb=0, flavid=4,
++            mem=16384, vcpus=16, root_gb=160, eph_gb=0, flavid=4,
 +            extra='solaris-kz'),
 +        'Oracle Solaris kernel zone - xlarge': dict(
-+            mem=32768, vcpus=32, root_gb=80, eph_gb=0, flavid=5,
++            mem=32768, vcpus=32, root_gb=320, eph_gb=0, flavid=5,
 +            extra='solaris-kz'),
 +
 +        'Oracle Solaris non-global zone - tiny': dict(
-+            mem=2048, vcpus=1, root_gb=10, eph_gb=0, flavid=6,
++            mem=1024, vcpus=1, root_gb=20, eph_gb=0, flavid=6,
 +            extra='solaris'),
 +        'Oracle Solaris non-global zone - small': dict(
-+            mem=3072, vcpus=4, root_gb=20, eph_gb=0, flavid=7,
++            mem=2048, vcpus=4, root_gb=40, eph_gb=0, flavid=7,
 +            extra='solaris'),
 +        'Oracle Solaris non-global zone - medium': dict(
-+            mem=4096, vcpus=8, root_gb=40, eph_gb=0, flavid=8,
++            mem=4096, vcpus=8, root_gb=80, eph_gb=0, flavid=8,
 +            extra='solaris'),
 +        'Oracle Solaris non-global zone - large': dict(
-+            mem=8192, vcpus=16, root_gb=40, eph_gb=0, flavid=9,
++            mem=8192, vcpus=16, root_gb=160, eph_gb=0, flavid=9,
 +            extra='solaris'),
 +        'Oracle Solaris non-global zone - xlarge': dict(
-+            mem=16384, vcpus=32, root_gb=80, eph_gb=0, flavid=10,
++            mem=16384, vcpus=32, root_gb=320, eph_gb=0, flavid=10,
 +            extra='solaris')
          }
  
@@ -63,7 +55,7 @@
          for name, values in default_inst_types.iteritems():
              i.execute({'name': name, 'memory_mb': values["mem"],
                          'vcpus': values["vcpus"], 'deleted': 0,
[email protected]@ -106,6 +136,10 @@ def _populate_instance_types(instance_ty
[email protected]@ -106,6 +134,10 @@ def _populate_instance_types(instance_ty
                          'flavorid': values["flavid"],
                          'disabled': False,
                          'is_public': True})
@@ -74,7 +66,7 @@
      except Exception:
          LOG.info(repr(instance_types_table))
          LOG.exception(_('Exception while seeding instance_types table'))
[email protected]@ -1548,7 +1582,7 @@ def upgrade(migrate_engine):
[email protected]@ -1548,7 +1580,7 @@ def upgrade(migrate_engine):
      _create_shadow_tables(migrate_engine)
  
      # populate initial instance types