Grizzly additions to get it working again

Updated dependency mappings and epel rpm name.
This commit is contained in:
Joshua Harlow 2013-01-23 14:58:49 -08:00
parent e2aa18bcc7
commit e0e1067685
5 changed files with 40 additions and 18 deletions

View File

@ -349,12 +349,18 @@ class ConfConfigurator(object):
# This check absorbs cpu cycles, warning.... # This check absorbs cpu cycles, warning....
nova_conf.add('checksum_base_images', self.installer.get_bool_option('checksum_base_images')) nova_conf.add('checksum_base_images', self.installer.get_bool_option('checksum_base_images'))
# Setup the interprocess locking directory (don't put me on shared storage)
lock_path = self.installer.get_option('lock_path')
if not lock_path:
lock_path = sh.joinpths(self.installer.get_option('component_dir'), 'locks')
sh.mkdirslist(lock_path, tracewriter=self.tracewriter)
nova_conf.add('lock_path', lock_path)
# Vnc settings setup # Vnc settings setup
self._configure_vnc(nova_conf) self._configure_vnc(nova_conf)
# Where our paste config is # Where our paste config is
nova_conf.add('api_paste_config', nova_conf.add('api_paste_config', self.installer.target_config(PASTE_CONF))
self.installer.target_config(PASTE_CONF))
# What our imaging service will be # What our imaging service will be
self._configure_image_service(nova_conf, hostip) self._configure_image_service(nova_conf, hostip)
@ -388,6 +394,9 @@ class ConfConfigurator(object):
# Handle any virt driver specifics # Handle any virt driver specifics
self._configure_virt_driver(nova_conf) self._configure_virt_driver(nova_conf)
# Handle configuring the conductor service
self._configure_conductor(nova_conf)
# Annnnnd extract to finish # Annnnnd extract to finish
return self._get_content(nova_conf) return self._get_content(nova_conf)
@ -464,9 +473,20 @@ class ConfConfigurator(object):
nova_conf.add('iscsi_helper', 'tgtadm') nova_conf.add('iscsi_helper', 'tgtadm')
def _configure_quantum(self, nova_conf): def _configure_quantum(self, nova_conf):
# TODO(harlowja) fixup for folsom
pass pass
def _configure_cells(self, nova_conf):
cells_enabled = self.installer.get_bool_option('enable-cells')
nova_conf.add_with_section('cells', 'enable', cells_enabled)
def _configure_spice(self, nova_conf):
spicy = self.installer.get_bool_option('enable-spice')
nova_conf.add_with_section('spice', 'enable', spicy)
def _configure_conductor(self, nova_conf):
conductor_local = self.installer.get_bool_option('local-conductor')
nova_conf.add_with_section('conductor', 'use_local', conductor_local)
def _configure_network_settings(self, nova_conf): def _configure_network_settings(self, nova_conf):
if self.installer.get_bool_option('quantum-enabled'): if self.installer.get_bool_option('quantum-enabled'):
self._configure_quantum(nova_conf) self._configure_quantum(nova_conf)
@ -514,9 +534,6 @@ class ConfConfigurator(object):
# Any special libvirt configurations go here # Any special libvirt configurations go here
def _configure_libvirt(self, virt_type, nova_conf): def _configure_libvirt(self, virt_type, nova_conf):
if virt_type == 'lxc':
# TODO(harlowja) need to add some goodies here
pass
nova_conf.add('libvirt_type', virt_type) nova_conf.add('libvirt_type', virt_type)
# https://blueprints.launchpad.net/nova/+spec/libvirt-xml-cpu-model # https://blueprints.launchpad.net/nova/+spec/libvirt-xml-cpu-model
nova_conf.add('libvirt_cpu_mode', 'none') nova_conf.add('libvirt_cpu_mode', 'none')
@ -538,7 +555,7 @@ class Conf(object):
self.backing = cfg.create_parser(cfg.BuiltinConfigParser, self.installer) self.backing = cfg.create_parser(cfg.BuiltinConfigParser, self.installer)
self.name = name self.name = name
def add(self, key, value, *values): def add_with_section(self, section, key, value, *values):
real_key = str(key) real_key = str(key)
real_value = "" real_value = ""
if len(values): if len(values):
@ -546,8 +563,11 @@ class Conf(object):
real_value = ",".join(str_values) real_value = ",".join(str_values)
else: else:
real_value = str(value) real_value = str(value)
self.backing.set('DEFAULT', real_key, real_value) LOG.debug("Added nova conf key %r with value %r under section %r", real_key, real_value, section)
LOG.debug("Added nova conf key %r with value %r" % (real_key, real_value)) self.backing.set(section, real_key, real_value)
def add(self, key, value, *values):
self.add_with_section('DEFAULT', key, value, *values)
def generate(self): def generate(self):
return self.backing.stringify(fn=self.name) return self.backing.stringify(fn=self.name)

View File

@ -238,6 +238,7 @@ components:
- name: coverage - name: coverage
- name: distribute - name: distribute
removable: false removable: false
- name: fixtures
- name: keyring # Shared at least by openstack-client, keystone-client (+anvil itself) - name: keyring # Shared at least by openstack-client, keystone-client (+anvil itself)
removable: false removable: false
- name: lxml - name: lxml
@ -414,9 +415,10 @@ components:
- name: MySQL-python - name: MySQL-python
package: package:
name: MySQL-python name: MySQL-python
- name: websockify
package:
name: python-websockify
pips: pips:
# Seems for testing only??
- name: fixtures
# Why is this still needed?? # Why is this still needed??
- name: Cheetah - name: Cheetah
# This seems to be a core dependency for a 'cas' tool # This seems to be a core dependency for a 'cas' tool
@ -429,11 +431,7 @@ components:
- name: discover - name: discover
- name: python-subunit - name: python-subunit
- name: testrepository - name: testrepository
version: '0.0.8'
subsystems: subsystems:
novncproxy:
packages:
- name: python-websockify
compute: compute:
packages: packages:
- name: fuse # Needed for mounting - name: fuse # Needed for mounting

View File

@ -21,6 +21,9 @@ options:
db-sync: true db-sync: true
do-network-init: true do-network-init: true
mq-type: "rabbit" mq-type: "rabbit"
enable-cells: false
enable-spice: false
local-conductor: false
glance: glance:
db-sync: true db-sync: true
load-images: true load-images: true
@ -40,6 +43,7 @@ subsystems:
- api-os-compute - api-os-compute
- cert - cert
- compute - compute
- conductor
- consoleauth - consoleauth
- dhcpbridge - dhcpbridge
- network - network

View File

@ -2,7 +2,7 @@
SHORTNAME=OEL SHORTNAME=OEL
MIN_RELEASE=6.3 MIN_RELEASE=6.3
STEPS="epel packages" STEPS="epel packages"
EPEL_RPM_URL="http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-7.noarch.rpm" EPEL_RPM_URL="http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm"
## Package Requirements (Order matters!) ## Package Requirements (Order matters!)
require rpm PyYAML require rpm PyYAML
require rpm gcc require rpm gcc

View File

@ -2,7 +2,7 @@
SHORTNAME=RHEL SHORTNAME=RHEL
MIN_RELEASE=6.0 MIN_RELEASE=6.0
STEPS="epel packages" STEPS="epel packages"
EPEL_RPM_URL="http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-7.noarch.rpm" EPEL_RPM_URL="http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm"
## Package Requirements (Order matters!) ## Package Requirements (Order matters!)
require rpm PyYAML require rpm PyYAML
require rpm gcc require rpm gcc
@ -15,8 +15,8 @@ require rpm python-ordereddict
require rpm python-pip require rpm python-pip
require rpm python-progressbar require rpm python-progressbar
require rpm python-psutil require rpm python-psutil
require rpm python-iniparse
require pypi termcolor require pypi termcolor
require pypi iniparse
require pypi hgtools require pypi hgtools
require pypi 'keyring>=0.9.2' require pypi 'keyring>=0.9.2'
# This matches the nova version and doesn't really # This matches the nova version and doesn't really