~ubuntu-branches/ubuntu/raring/nova/raring-proposed

« back to all changes in this revision

Viewing changes to nova/tests/fake_flags.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Adam Gandelman, Chuck Short
  • Date: 2012-11-23 09:04:58 UTC
  • mfrom: (1.1.66)
  • Revision ID: package-import@ubuntu.com-20121123090458-91565o7aev1i1h71
Tags: 2013.1~g1-0ubuntu1
[ Adam Gandelman ]
* debian/control: Ensure novaclient is upgraded with nova,
  require python-keystoneclient >= 1:2.9.0. (LP: #1073289)
* debian/patches/{ubuntu/*, rbd-security.patch}: Dropped, applied
  upstream.
* debian/control: Add python-testtools to Build-Depends.

[ Chuck Short ]
* New upstream version.
* Refreshed debian/patches/avoid_setuptools_git_dependency.patch.
* debian/rules: FTBFS if missing binaries.
* debian/nova-scheudler.install: Add missing rabbit-queues and
  nova-rpc-zmq-receiver.
* Remove nova-volume since it doesnt exist anymore, transition to cinder-*.
* debian/rules: install apport hook in the right place.
* debian/patches/ubuntu-show-tests.patch: Display test failures.
* debian/control: Add depends on genisoimage
* debian/control: Suggest guestmount.
* debian/control: Suggest websockify. (LP: #1076442)
* debian/nova.conf: Disable nova-volume service.
* debian/control: Depend on xen-system-* rather than the hypervisor.
* debian/control, debian/mans/nova-conductor.8, debian/nova-conductor.init,
  debian/nova-conductor.install, debian/nova-conductor.logrotate
  debian/nova-conductor.manpages, debian/nova-conductor.postrm
  debian/nova-conductor.upstart.in: Add nova-conductor service.
* debian/control: Add python-fixtures as a build deps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#    License for the specific language governing permissions and limitations
17
17
#    under the License.
18
18
 
19
 
from nova import flags
20
 
 
21
 
FLAGS = flags.FLAGS
22
 
 
23
 
flags.DECLARE('compute_scheduler_driver', 'nova.scheduler.multi')
24
 
flags.DECLARE('fake_network', 'nova.network.manager')
25
 
flags.DECLARE('iscsi_num_targets', 'nova.volume.driver')
26
 
flags.DECLARE('network_size', 'nova.network.manager')
27
 
flags.DECLARE('num_networks', 'nova.network.manager')
28
 
flags.DECLARE('policy_file', 'nova.policy')
29
 
flags.DECLARE('volume_driver', 'nova.volume.manager')
 
19
from nova.openstack.common import cfg
 
20
 
 
21
CONF = cfg.CONF
 
22
CONF.import_opt('state_path', 'nova.config')
 
23
 
 
24
CONF.import_opt('scheduler_driver', 'nova.scheduler.manager')
 
25
CONF.import_opt('fake_network', 'nova.network.manager')
 
26
CONF.import_opt('network_size', 'nova.network.manager')
 
27
CONF.import_opt('num_networks', 'nova.network.manager')
 
28
CONF.import_opt('policy_file', 'nova.policy')
30
29
 
31
30
 
32
31
def set_defaults(conf):
33
32
    conf.set_default('api_paste_config', '$state_path/etc/nova/api-paste.ini')
34
33
    conf.set_default('compute_driver', 'nova.virt.fake.FakeDriver')
35
 
    conf.set_default('connection_type', 'fake')
36
34
    conf.set_default('fake_network', True)
37
35
    conf.set_default('fake_rabbit', True)
38
36
    conf.set_default('flat_network_bridge', 'br100')
39
 
    conf.set_default('iscsi_num_targets', 8)
40
37
    conf.set_default('network_size', 8)
41
38
    conf.set_default('num_networks', 2)
42
39
    conf.set_default('vlan_interface', 'eth0')
45
42
    conf.set_default('sqlite_synchronous', False)
46
43
    conf.set_default('use_ipv6', True)
47
44
    conf.set_default('verbose', True)
48
 
    conf.set_default('volume_driver', 'nova.volume.driver.FakeISCSIDriver')
49
 
    conf.set_default('api_paste_config', '$state_path/etc/nova/api-paste.ini')
50
45
    conf.set_default('rpc_response_timeout', 5)
51
46
    conf.set_default('rpc_cast_timeout', 5)
52
47
    conf.set_default('lock_path', None)