Updated to be in sync with devstack v1.

This commit is contained in:
Joshua Harlow 2012-03-05 10:54:06 -08:00
parent fde7adf831
commit b1cab706f8
4 changed files with 16 additions and 15 deletions

View File

@ -10,9 +10,6 @@
"sqlalchemy-migrate": {
"version": "0.7.2"
},
"SQLAlchemy": {
"version": "0.7.5"
},
#the newest we can get is 1.3.3 from epel/rhel
#this causes issues like the following
#https://answers.launchpad.net/nova/+question/174160

View File

@ -34,17 +34,18 @@ rabbit_host = ${RABBIT_HOST:-$(host:ip)}
# Sys log enabled or not
syslog = 0
# Which run type to use [fork (the default), upstart (WIP), screen]
# Which run type to use [fork (the default), upstart, screen]
run_type = fork
[upstart]
# These flags are used for starting components under upstart (if default/run_type is upstart)
respawn = 1
# Note that we support component start/stop and "nova" is one of them, so
# we need a different name for all components
start_event = all_nova_start
stop_event = all_nova_stop
# Note that we support component start/stop and "all"
# Start and stop, this is the "all" event name
start_event = all_os_start
stop_event = all_os_stop
[host]

View File

@ -105,8 +105,10 @@ class PkgInstallComponent(ComponentBase):
target_loc = base_dir
branch = None
if branch_tuple:
branch = self.cfg.get(branch_tuple[0], branch_tuple[1])
uri = self.cfg.get(uri_tuple[0], uri_tuple[1])
(cfg_section, cfg_key) = branch_tuple
branch = self.cfg.get(cfg_section, cfg_key)
(cfg_section, cfg_key) = uri_tuple
uri = self.cfg.get(cfg_section, cfg_key)
self.tracewriter.downloaded(target_loc, uri)
dirs_made = down.download(target_loc, uri, branch)
#ensure this is always added so that

View File

@ -14,13 +14,13 @@
# License for the specific language governing permissions and limitations
# under the License.
import ConfigParser
import json
import os
import tarfile
import tempfile
import urllib
import urllib2
import ConfigParser
from devstack import log
from devstack import shell
@ -33,13 +33,14 @@ LOG = log.getLogger("devstack.image.creator")
class Image(object):
KERNEL_FORMAT = ['glance', '-A', '%TOKEN%', 'add', \
KERNEL_FORMAT = ['glance', 'add', '-A', '%TOKEN%', '--silent-upload', \
'name="%IMAGE_NAME%-kernel"', 'is_public=true', 'container_format=aki', \
'disk_format=aki']
INITRD_FORMAT = ['glance', 'add', '-A', '%TOKEN%', \
INITRD_FORMAT = ['glance', 'add', '-A', '%TOKEN%', '--silent-upload', \
'name="%IMAGE_NAME%-ramdisk"', 'is_public=true', 'container_format=ari', \
'disk_format=ari']
IMAGE_FORMAT = ['glance', 'add', '-A', '%TOKEN%', 'name="%IMAGE_NAME%.img"', \
IMAGE_FORMAT = ['glance', 'add', '-A', '%TOKEN%', '--silent-upload',
'name="%IMAGE_NAME%.img"',
'is_public=true', 'container_format=ami', 'disk_format=ami', \
'kernel_id=%KERNEL_ID%', 'ramdisk_id=%INITRD_ID%']