]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove null_kernel option.
authorDan Prince <dprince@redhat.com>
Wed, 5 Sep 2012 17:20:54 +0000 (13:20 -0400)
committerDan Prince <dprince@redhat.com>
Wed, 5 Sep 2012 17:22:55 +0000 (13:22 -0400)
This option was only used in the image/fake.py class. In this patch
I've updated the fake to use an inline 'nokernel' string instead of
this option which we don't make use of in the runtime Cinder code.

Change-Id: I05d4f227f1278c827ace2ce3c62319f9b18d04d4

cinder/flags.py
cinder/tests/image/fake.py
etc/cinder/cinder.conf.sample

index d0056364ce9565663b4dd69286b345abd21dd993..c3dc34e38f5ea43c552edad23a51456b11622601 100644 (file)
@@ -151,10 +151,6 @@ global_opts = [
                default=1000,
                help='the maximum number of items returned in a single '
                     'response from a collection resource'),
-    cfg.StrOpt('null_kernel',
-               default='nokernel',
-               help='kernel image that indicates not to use a kernel, but to '
-                    'use a raw disk image instead'),
     cfg.StrOpt('sqlite_db',
                default='cinder.sqlite',
                help='the filename to use with sqlite'),
index 8e7d172cd4d85df9db7ab4e5ff62bf7e53304544..16c600e57e4f78d97739950e75a72e0e85540a6b 100644 (file)
@@ -53,8 +53,8 @@ class _FakeImageService(object):
                  'is_public': False,
                  'container_format': 'raw',
                  'disk_format': 'raw',
-                 'properties': {'kernel_id': FLAGS.null_kernel,
-                                'ramdisk_id': FLAGS.null_kernel,
+                 'properties': {'kernel_id': 'nokernel',
+                                'ramdisk_id': 'nokernel',
                                 'architecture': 'x86_64'}}
 
         image2 = {'id': 'a2459075-d96c-40d5-893e-577ff92e721c',
@@ -67,8 +67,8 @@ class _FakeImageService(object):
                  'is_public': True,
                  'container_format': 'ami',
                  'disk_format': 'ami',
-                 'properties': {'kernel_id': FLAGS.null_kernel,
-                                'ramdisk_id': FLAGS.null_kernel}}
+                 'properties': {'kernel_id': 'nokernel',
+                                'ramdisk_id': 'nokernel'}}
 
         image3 = {'id': '76fa36fc-c930-4bf3-8c8a-ea2a2420deb6',
                  'name': 'fakeimage123456',
@@ -80,8 +80,8 @@ class _FakeImageService(object):
                  'is_public': True,
                  'container_format': None,
                  'disk_format': None,
-                 'properties': {'kernel_id': FLAGS.null_kernel,
-                                'ramdisk_id': FLAGS.null_kernel}}
+                 'properties': {'kernel_id': 'nokernel',
+                                'ramdisk_id': 'nokernel'}}
 
         image4 = {'id': 'cedef40a-ed67-4d10-800e-17455edce175',
                  'name': 'fakeimage123456',
@@ -93,8 +93,8 @@ class _FakeImageService(object):
                  'is_public': True,
                  'container_format': 'ami',
                  'disk_format': 'ami',
-                 'properties': {'kernel_id': FLAGS.null_kernel,
-                                'ramdisk_id': FLAGS.null_kernel}}
+                 'properties': {'kernel_id': 'nokernel',
+                                'ramdisk_id': 'nokernel'}}
 
         image5 = {'id': 'c905cedb-7281-47e4-8a62-f26bc5fc4c77',
                  'name': 'fakeimage123456',
@@ -120,8 +120,8 @@ class _FakeImageService(object):
                  'is_public': False,
                  'container_format': 'ova',
                  'disk_format': 'vhd',
-                 'properties': {'kernel_id': FLAGS.null_kernel,
-                                'ramdisk_id': FLAGS.null_kernel,
+                 'properties': {'kernel_id': 'nokernel',
+                                'ramdisk_id': 'nokernel',
                                 'architecture': 'x86_64',
                                 'auto_disk_config': 'False'}}
 
@@ -135,8 +135,8 @@ class _FakeImageService(object):
                  'is_public': False,
                  'container_format': 'ova',
                  'disk_format': 'vhd',
-                 'properties': {'kernel_id': FLAGS.null_kernel,
-                                'ramdisk_id': FLAGS.null_kernel,
+                 'properties': {'kernel_id': 'nokernel',
+                                'ramdisk_id': 'nokernel',
                                 'architecture': 'x86_64',
                                 'auto_disk_config': 'True'}}
 
index 49ec258b3a43677c6f0ec3eb197aac0c8f01a801..809bf8c3fbac5a14d431223046cca55183ca3b03 100644 (file)
 #### (IntOpt) the maximum number of items returned in a single response
 ####          from a collection resource
 
-# null_kernel=nokernel
-#### (StrOpt) kernel image that indicates not to use a kernel, but to use
-####          a raw disk image instead
-
 # sqlite_db=cinder.sqlite
 #### (StrOpt) the filename to use with sqlite
 
 #### (IntOpt) maximum number of volume gigabytes to allow per host
 
 
-# Total option count: 131
+# Total option count: 130