removed openstack_x started adding swift, swift_keystone
This commit is contained in:
parent
dc9f916a9d
commit
cbf9e191f3
@ -1,16 +0,0 @@
|
|||||||
# This is a extended json package definition file
|
|
||||||
# We allow simple comments (lines starting with a hash symbol)
|
|
||||||
{
|
|
||||||
# This is currently our "master" repo set with versions
|
|
||||||
# that we are trying to align other distributions with.
|
|
||||||
# The versions should at least be major + minor!
|
|
||||||
"ubuntu-oneiric": {
|
|
||||||
"python-httplib2": {
|
|
||||||
"version": "0.7*",
|
|
||||||
"removable": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rhel-6": {
|
|
||||||
# TBD
|
|
||||||
}
|
|
||||||
}
|
|
@ -5,12 +5,7 @@
|
|||||||
# that we are trying to align other distributions with.
|
# that we are trying to align other distributions with.
|
||||||
# The versions should at least be major + minor!
|
# The versions should at least be major + minor!
|
||||||
"ubuntu-oneiric": {
|
"ubuntu-oneiric": {
|
||||||
# Is this really needed?
|
# installed for swift-keystone
|
||||||
"gcc": {
|
|
||||||
"version": "4:4.6*",
|
|
||||||
"removable": true
|
|
||||||
},
|
|
||||||
# This may not always be needed (maybe have code not always install this) - or add a new key in that is used for this
|
|
||||||
"memcached": {
|
"memcached": {
|
||||||
"version": "1.4*",
|
"version": "1.4*",
|
||||||
"removable": true
|
"removable": true
|
||||||
@ -46,10 +41,6 @@
|
|||||||
"sqlite3": {
|
"sqlite3": {
|
||||||
"version": "3.7*",
|
"version": "3.7*",
|
||||||
"removable": true
|
"removable": true
|
||||||
},
|
|
||||||
"xfsprogs": {
|
|
||||||
"version": "3.1*",
|
|
||||||
"removable": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rhel-6": {
|
"rhel-6": {
|
||||||
|
@ -228,11 +228,6 @@ keystoneclient_branch = master
|
|||||||
novaclient_repo = https://github.com/openstack/python-novaclient.git
|
novaclient_repo = https://github.com/openstack/python-novaclient.git
|
||||||
novaclient_branch = master
|
novaclient_branch = master
|
||||||
|
|
||||||
# Openstackx is a collection of extensions to openstack.compute & nova
|
|
||||||
# that is *deprecated*. The code is being moved into python-novaclient & nova.
|
|
||||||
openstackx_repo = https://github.com/cloudbuilders/openstackx.git
|
|
||||||
openstackx_branch = master
|
|
||||||
|
|
||||||
# Quantum service git repo
|
# Quantum service git repo
|
||||||
quantum_repo = https://github.com/openstack/quantum.git
|
quantum_repo = https://github.com/openstack/quantum.git
|
||||||
quantum_branch = master
|
quantum_branch = master
|
||||||
@ -273,6 +268,15 @@ apache_group = ${APACHE_GROUP:-$(horizon:apache_user)}
|
|||||||
# Port horizon should run on
|
# Port horizon should run on
|
||||||
port = ${HORIZON_PORT:-80}
|
port = ${HORIZON_PORT:-80}
|
||||||
|
|
||||||
|
[swift]
|
||||||
|
|
||||||
|
# default is APP_DIR/data
|
||||||
|
data_location = ${SWIFT_DATA_LOCATION:-data}
|
||||||
|
|
||||||
|
loopback_disk_size = ${SWIFT_LOOPBACK_DISK_SIZE:-1000000}
|
||||||
|
|
||||||
|
partition_power_size = ${SWIFT_PARTITION_POWER_SIZE:-9}
|
||||||
|
|
||||||
[ci]
|
[ci]
|
||||||
|
|
||||||
# CI test suite
|
# CI test suite
|
||||||
@ -328,3 +332,5 @@ service_token = ${SERVICE_TOKEN:-}
|
|||||||
# The xen api connection password
|
# The xen api connection password
|
||||||
xenapi_connection = ${XENAPI_CONNECTION:-}
|
xenapi_connection = ${XENAPI_CONNECTION:-}
|
||||||
|
|
||||||
|
# swift password (random unique string)
|
||||||
|
swift_hash = ${SWIFT_HASH:-}
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
bind_port = 8080
|
bind_port = 8080
|
||||||
user = %USER%
|
user = %USER%
|
||||||
log_facility = LOG_LOCAL1
|
|
||||||
swift_dir = %SWIFT_CONFIG_LOCATION%
|
swift_dir = %SWIFT_CONFIG_LOCATION%
|
||||||
|
workers = 1
|
||||||
|
log_name = swift
|
||||||
|
log_facility = LOG_LOCAL1
|
||||||
|
log_level = DEBUG
|
||||||
|
|
||||||
[pipeline:main]
|
[pipeline:main]
|
||||||
pipeline = healthcheck cache %AUTH_SERVER% proxy-server
|
pipeline = healthcheck cache %AUTH_SERVER% proxy-server
|
||||||
@ -16,7 +19,7 @@ account_autocreate = true
|
|||||||
use = egg:swiftkeystone2#keystone2
|
use = egg:swiftkeystone2#keystone2
|
||||||
keystone_admin_token = %SERVICE_TOKEN%
|
keystone_admin_token = %SERVICE_TOKEN%
|
||||||
keystone_url = http://localhost:35357/v2.0
|
keystone_url = http://localhost:35357/v2.0
|
||||||
keystone_swift_operator_roles = Member
|
keystone_swift_operator_roles = Member,Admin
|
||||||
|
|
||||||
[filter:tempauth]
|
[filter:tempauth]
|
||||||
use = egg:swift#tempauth
|
use = egg:swift#tempauth
|
||||||
|
26
conf/swift/rsyslog.conf.tpl
Normal file
26
conf/swift/rsyslog.conf.tpl
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Uncomment the following to have a log containing all logs together
|
||||||
|
#local1,local2,local3,local4,local5.* %SWIFT_LOGDIR%/all.log
|
||||||
|
|
||||||
|
# Uncomment the following to have hourly proxy logs for stats processing
|
||||||
|
#$template HourlyProxyLog,"%SWIFT_LOGDIR%/hourly/%$YEAR%%$MONTH%%$DAY%%$HOUR%"
|
||||||
|
#local1.*;local1.!notice ?HourlyProxyLog
|
||||||
|
|
||||||
|
local1.*;local1.!notice %SWIFT_LOGDIR%/proxy.log
|
||||||
|
local1.notice %SWIFT_LOGDIR%/proxy.error
|
||||||
|
local1.* ~
|
||||||
|
|
||||||
|
local2.*;local2.!notice %SWIFT_LOGDIR%/storage1.log
|
||||||
|
local2.notice %SWIFT_LOGDIR%/storage1.error
|
||||||
|
local2.* ~
|
||||||
|
|
||||||
|
local3.*;local3.!notice %SWIFT_LOGDIR%/storage2.log
|
||||||
|
local3.notice %SWIFT_LOGDIR%/storage2.error
|
||||||
|
local3.* ~
|
||||||
|
|
||||||
|
local4.*;local4.!notice %SWIFT_LOGDIR%/storage3.log
|
||||||
|
local4.notice %SWIFT_LOGDIR%/storage3.error
|
||||||
|
local4.* ~
|
||||||
|
|
||||||
|
local5.*;local5.!notice %SWIFT_LOGDIR%/storage4.log
|
||||||
|
local5.notice %SWIFT_LOGDIR%/storage4.error
|
||||||
|
local5.* ~
|
@ -111,7 +111,7 @@ class DBUninstaller(comp.PkgUninstallComponent):
|
|||||||
utils.execute_template(*cmds, params=params, shell=True)
|
utils.execute_template(*cmds, params=params, shell=True)
|
||||||
except IOError:
|
except IOError:
|
||||||
LOG.warn(("Could not reset the database password. You might have to manually "
|
LOG.warn(("Could not reset the database password. You might have to manually "
|
||||||
"reset the password to \"%s\" before the next install") % (RESET_BASE_PW), exc_info=True)
|
"reset the password to \"%s\" before the next install") % (RESET_BASE_PW))
|
||||||
LOG.info("To aid in this check out: [%s]", " or ".join(SQL_RESET_PW_LINKS))
|
LOG.info("To aid in this check out: [%s]", " or ".join(SQL_RESET_PW_LINKS))
|
||||||
|
|
||||||
|
|
||||||
|
@ -483,9 +483,7 @@ class NovaConfigurator(object):
|
|||||||
instance_template = self._getstr('instance_name_prefix') + self._getstr('instance_name_postfix')
|
instance_template = self._getstr('instance_name_prefix') + self._getstr('instance_name_postfix')
|
||||||
nova_conf.add('instance_name_template', instance_template)
|
nova_conf.add('instance_name_template', instance_template)
|
||||||
|
|
||||||
if settings.OPENSTACK_X in self.instances:
|
|
||||||
nova_conf.add('osapi_compute_extension', 'nova.api.openstack.compute.contrib.standard_extensions')
|
nova_conf.add('osapi_compute_extension', 'nova.api.openstack.compute.contrib.standard_extensions')
|
||||||
nova_conf.add('osapi_compute_extension', 'extensions.admin.Admin')
|
|
||||||
|
|
||||||
if settings.NOVNC in self.instances:
|
if settings.NOVNC in self.instances:
|
||||||
vncproxy_url = self._getstr('vncproxy_url')
|
vncproxy_url = self._getstr('vncproxy_url')
|
||||||
|
@ -14,6 +14,9 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import os
|
||||||
|
import os.path
|
||||||
|
|
||||||
from devstack import component as comp
|
from devstack import component as comp
|
||||||
from devstack import log as logging
|
from devstack import log as logging
|
||||||
from devstack import settings
|
from devstack import settings
|
||||||
@ -25,41 +28,65 @@ LOG = logging.getLogger("devstack.components.swift")
|
|||||||
# id
|
# id
|
||||||
TYPE = settings.SWIFT
|
TYPE = settings.SWIFT
|
||||||
|
|
||||||
|
SWIFT_CONF = 'swift.conf'
|
||||||
|
PROXY_SERVER_CONF = 'proxy-server.conf'
|
||||||
|
ACCOUNT_SERVER_CONF = 'account-server.conf'
|
||||||
|
CONTAINER_SERVER_CONF = 'container-server.conf'
|
||||||
|
OBJECT_SERVER_CONF = 'object-server.conf'
|
||||||
|
RSYNC_CONF = 'rsyncd.conf'
|
||||||
|
SYSLOG_CONF = 'rsyslog.conf'
|
||||||
|
SWIFT_MAKERINGS = 'swift-remakerings'
|
||||||
|
SWIFT_STARTMAIN = 'swift-startmain'
|
||||||
|
CONFIGS = [SWIFT_CONF, PROXY_SERVER_CONF, ACCOUNT_SERVER_CONF,
|
||||||
|
CONTAINER_SERVER_CONF, OBJECT_SERVER_CONF, RSYNC_CONF,
|
||||||
|
SYSLOG_CONF, SWIFT_MAKERINGS, SWIFT_STARTMAIN]
|
||||||
|
|
||||||
class SwiftUninstaller(comp.ComponentBase):
|
SWIFT_NAME = 'swift'
|
||||||
|
|
||||||
|
# subdirs of the git checkout
|
||||||
|
BIN_DIR = 'bin'
|
||||||
|
CONFIG_DIR = 'etc'
|
||||||
|
|
||||||
|
# what to start
|
||||||
|
APP_OPTIONS = {
|
||||||
|
}
|
||||||
|
|
||||||
|
#the pkg json files swift requires for installation
|
||||||
|
REQ_PKGS = ['general.json', 'swift.json']
|
||||||
|
|
||||||
|
|
||||||
|
class SwiftUninstaller(comp.PythonUninstallComponent):
|
||||||
def __init__(self, *args, **kargs):
|
def __init__(self, *args, **kargs):
|
||||||
comp.ComponentBase.__init__(self, TYPE, *args, **kargs)
|
comp.PythonUninstallComponent.__init__(self, TYPE, *args, **kargs)
|
||||||
|
|
||||||
def unconfigure(self):
|
|
||||||
raise NotImplementedError()
|
|
||||||
|
|
||||||
def uninstall(self):
|
|
||||||
raise NotImplementedError()
|
|
||||||
|
|
||||||
|
|
||||||
class SwiftInstaller(comp.ComponentBase):
|
class SwiftInstaller(comp.PythonInstallComponent):
|
||||||
def __init__(self, *args, **kargs):
|
def __init__(self, *args, **kargs):
|
||||||
comp.ComponentBase.__init__(self, TYPE, *args, **kargs)
|
comp.PythonInstallComponent.__init__(self, TYPE, *args, **kargs)
|
||||||
|
self.cfgdir = sh.joinpths(self.appdir, CONFIG_DIR)
|
||||||
|
self.bindir = sh.joinpths(self.appdir, BIN_DIR)
|
||||||
|
self.datadir = sh.joinpths(self.appdir, self.cfg.get('swift', 'data_location'))
|
||||||
|
|
||||||
def download(self):
|
def _get_download_locations(self):
|
||||||
raise NotImplementedError()
|
return comp.PythonInstallComponent._get_download_locations(self) + [
|
||||||
|
{
|
||||||
|
'uri': ('git', 'swift_repo'),
|
||||||
|
'branch': ('git', 'swift_branch')
|
||||||
|
}]
|
||||||
|
|
||||||
def configure(self):
|
def _get_config_files(self):
|
||||||
raise NotImplementedError()
|
return CONFIGS
|
||||||
|
|
||||||
def pre_install(self):
|
def _get_pkgs(self):
|
||||||
raise NotImplementedError()
|
return REQ_PKGS
|
||||||
|
|
||||||
def install(self):
|
def _post_install(self):
|
||||||
raise NotImplementedError()
|
pass
|
||||||
|
|
||||||
def post_install(self):
|
|
||||||
raise NotImplementedError()
|
|
||||||
|
|
||||||
|
|
||||||
class SwiftRuntime(comp.EmptyRuntime):
|
class SwiftRuntime(comp.PythonRuntime):
|
||||||
def __init__(self, *args, **kargs):
|
def __init__(self, *args, **kargs):
|
||||||
comp.EmptyRuntime.__init__(self, TYPE, *args, **kargs)
|
comp.PythonRuntime.__init__(self, TYPE, *args, **kargs)
|
||||||
|
|
||||||
|
|
||||||
def describe(opts=None):
|
def describe(opts=None):
|
||||||
|
@ -14,45 +14,65 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import os
|
||||||
|
import os.path
|
||||||
|
|
||||||
from devstack import component as comp
|
from devstack import component as comp
|
||||||
from devstack import log as logging
|
from devstack import log as logging
|
||||||
from devstack import settings
|
from devstack import settings
|
||||||
from devstack import shell as sh
|
from devstack import shell as sh
|
||||||
from devstack import utils
|
from devstack import utils
|
||||||
|
|
||||||
LOG = logging.getLogger("devstack.components.openstackx")
|
LOG = logging.getLogger("devstack.components.swift_keystone")
|
||||||
|
|
||||||
# id
|
# id
|
||||||
TYPE = settings.OPENSTACK_X
|
TYPE = settings.SWIFT_KEYSTONE
|
||||||
|
|
||||||
#the pkg json files novnc requires for installation
|
# subdirs of the git checkout
|
||||||
REQ_PKGS = ['general.json', 'openstackx.json']
|
BIN_DIR = 'bin'
|
||||||
|
CONFIG_DIR = 'etc'
|
||||||
|
|
||||||
|
CONFIGS = []
|
||||||
|
|
||||||
|
# what to start
|
||||||
|
APP_OPTIONS = {
|
||||||
|
}
|
||||||
|
|
||||||
|
#the pkg json files swift_keystone requires for installation
|
||||||
|
REQ_PKGS = ['general.json', 'swift.json']
|
||||||
|
|
||||||
|
|
||||||
class OpenstackXUninstaller(comp.PythonUninstallComponent):
|
class SwiftKeystoneUninstaller(comp.PythonUninstallComponent):
|
||||||
def __init__(self, *args, **kargs):
|
def __init__(self, *args, **kargs):
|
||||||
comp.PythonUninstallComponent.__init__(self, TYPE, *args, **kargs)
|
comp.PythonUninstallComponent.__init__(self, TYPE, *args, **kargs)
|
||||||
|
|
||||||
|
|
||||||
class OpenstackXInstaller(comp.PythonInstallComponent):
|
class SwiftKeystoneInstaller(comp.PythonInstallComponent):
|
||||||
def __init__(self, *args, **kargs):
|
def __init__(self, *args, **kargs):
|
||||||
comp.PythonInstallComponent.__init__(self, TYPE, *args, **kargs)
|
comp.PythonInstallComponent.__init__(self, TYPE, *args, **kargs)
|
||||||
|
self.cfgdir = sh.joinpths(self.appdir, CONFIG_DIR)
|
||||||
|
self.bindir = sh.joinpths(self.appdir, BIN_DIR)
|
||||||
|
|
||||||
def _get_download_locations(self):
|
def _get_download_locations(self):
|
||||||
places = list()
|
return comp.PythonInstallComponent._get_download_locations(self) + [
|
||||||
places.append({
|
{
|
||||||
'uri': ("git", "openstackx_repo"),
|
'uri': ('git', 'swift_keystone_repo'),
|
||||||
'branch': ("git", "openstackx_branch"),
|
'branch': ('git', 'swift_keystone_branch')
|
||||||
})
|
}]
|
||||||
return places
|
|
||||||
|
def _get_config_files(self):
|
||||||
|
return CONFIGS
|
||||||
|
|
||||||
def _get_pkgs(self):
|
def _get_pkgs(self):
|
||||||
return list(REQ_PKGS)
|
return REQ_PKGS
|
||||||
|
|
||||||
|
def _post_install(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class OpenstackXRuntime(comp.EmptyRuntime):
|
class SwiftKeystoneRuntime(comp.PythonRuntime):
|
||||||
def __init__(self, *args, **kargs):
|
def __init__(self, *args, **kargs):
|
||||||
comp.EmptyRuntime.__init__(self, TYPE, *args, **kargs)
|
comp.PythonRuntime.__init__(self, TYPE, *args, **kargs)
|
||||||
|
|
||||||
|
|
||||||
def describe(opts=None):
|
def describe(opts=None):
|
||||||
@ -66,6 +86,6 @@ def describe(opts=None):
|
|||||||
params = dict()
|
params = dict()
|
||||||
params['component_opts'] = "TBD"
|
params['component_opts'] = "TBD"
|
||||||
params['module_name'] = __name__
|
params['module_name'] = __name__
|
||||||
params['description'] = __doc__ or "Handles actions for the no-vnc component."
|
params['description'] = __doc__ or "Handles actions for the swift keystone component."
|
||||||
out = description.format(**params)
|
out = description.format(**params)
|
||||||
return out.strip("\n")
|
return out.strip("\n")
|
@ -28,11 +28,11 @@ from devstack.components import keystone_client
|
|||||||
from devstack.components import nova
|
from devstack.components import nova
|
||||||
from devstack.components import nova_client
|
from devstack.components import nova_client
|
||||||
from devstack.components import novnc
|
from devstack.components import novnc
|
||||||
from devstack.components import openstack_x
|
|
||||||
from devstack.components import quantum
|
from devstack.components import quantum
|
||||||
from devstack.components import quantum_client
|
from devstack.components import quantum_client
|
||||||
from devstack.components import rabbit
|
from devstack.components import rabbit
|
||||||
from devstack.components import swift
|
from devstack.components import swift
|
||||||
|
from devstack.components import swift_keystone
|
||||||
|
|
||||||
# This determines what classes to use to install/uninstall/...
|
# This determines what classes to use to install/uninstall/...
|
||||||
ACTION_CLASSES = {
|
ACTION_CLASSES = {
|
||||||
@ -41,13 +41,13 @@ ACTION_CLASSES = {
|
|||||||
settings.GLANCE: glance.GlanceInstaller,
|
settings.GLANCE: glance.GlanceInstaller,
|
||||||
settings.QUANTUM: quantum.QuantumInstaller,
|
settings.QUANTUM: quantum.QuantumInstaller,
|
||||||
settings.SWIFT: swift.SwiftInstaller,
|
settings.SWIFT: swift.SwiftInstaller,
|
||||||
|
settings.SWIFT: swift_keystone.SwiftKeystoneInstaller,
|
||||||
settings.HORIZON: horizon.HorizonInstaller,
|
settings.HORIZON: horizon.HorizonInstaller,
|
||||||
settings.KEYSTONE: keystone.KeystoneInstaller,
|
settings.KEYSTONE: keystone.KeystoneInstaller,
|
||||||
settings.DB: db.DBInstaller,
|
settings.DB: db.DBInstaller,
|
||||||
settings.RABBIT: rabbit.RabbitInstaller,
|
settings.RABBIT: rabbit.RabbitInstaller,
|
||||||
settings.KEYSTONE_CLIENT: keystone_client.KeyStoneClientInstaller,
|
settings.KEYSTONE_CLIENT: keystone_client.KeyStoneClientInstaller,
|
||||||
settings.NOVA_CLIENT: nova_client.NovaClientInstaller,
|
settings.NOVA_CLIENT: nova_client.NovaClientInstaller,
|
||||||
settings.OPENSTACK_X: openstack_x.OpenstackXInstaller,
|
|
||||||
settings.NOVNC: novnc.NoVNCInstaller,
|
settings.NOVNC: novnc.NoVNCInstaller,
|
||||||
settings.QUANTUM_CLIENT: quantum_client.QuantumClientInstaller,
|
settings.QUANTUM_CLIENT: quantum_client.QuantumClientInstaller,
|
||||||
},
|
},
|
||||||
@ -56,13 +56,13 @@ ACTION_CLASSES = {
|
|||||||
settings.GLANCE: glance.GlanceUninstaller,
|
settings.GLANCE: glance.GlanceUninstaller,
|
||||||
settings.QUANTUM: quantum.QuantumUninstaller,
|
settings.QUANTUM: quantum.QuantumUninstaller,
|
||||||
settings.SWIFT: swift.SwiftUninstaller,
|
settings.SWIFT: swift.SwiftUninstaller,
|
||||||
|
settings.SWIFT: swift_keystone.SwiftKeystoneUninstaller,
|
||||||
settings.HORIZON: horizon.HorizonUninstaller,
|
settings.HORIZON: horizon.HorizonUninstaller,
|
||||||
settings.KEYSTONE: keystone.KeystoneUninstaller,
|
settings.KEYSTONE: keystone.KeystoneUninstaller,
|
||||||
settings.DB: db.DBUninstaller,
|
settings.DB: db.DBUninstaller,
|
||||||
settings.RABBIT: rabbit.RabbitUninstaller,
|
settings.RABBIT: rabbit.RabbitUninstaller,
|
||||||
settings.KEYSTONE_CLIENT: keystone_client.KeyStoneClientUninstaller,
|
settings.KEYSTONE_CLIENT: keystone_client.KeyStoneClientUninstaller,
|
||||||
settings.NOVA_CLIENT: nova_client.NovaClientUninstaller,
|
settings.NOVA_CLIENT: nova_client.NovaClientUninstaller,
|
||||||
settings.OPENSTACK_X: openstack_x.OpenstackXUninstaller,
|
|
||||||
settings.NOVNC: novnc.NoVNCUninstaller,
|
settings.NOVNC: novnc.NoVNCUninstaller,
|
||||||
settings.QUANTUM_CLIENT: quantum_client.QuantumClientUninstaller,
|
settings.QUANTUM_CLIENT: quantum_client.QuantumClientUninstaller,
|
||||||
},
|
},
|
||||||
@ -71,13 +71,13 @@ ACTION_CLASSES = {
|
|||||||
settings.GLANCE: glance.GlanceRuntime,
|
settings.GLANCE: glance.GlanceRuntime,
|
||||||
settings.QUANTUM: quantum.QuantumRuntime,
|
settings.QUANTUM: quantum.QuantumRuntime,
|
||||||
settings.SWIFT: swift.SwiftRuntime,
|
settings.SWIFT: swift.SwiftRuntime,
|
||||||
|
settings.SWIFT: swift_keystone.SwiftKeystoneRuntime,
|
||||||
settings.HORIZON: horizon.HorizonRuntime,
|
settings.HORIZON: horizon.HorizonRuntime,
|
||||||
settings.KEYSTONE: keystone.KeystoneRuntime,
|
settings.KEYSTONE: keystone.KeystoneRuntime,
|
||||||
settings.DB: db.DBRuntime,
|
settings.DB: db.DBRuntime,
|
||||||
settings.RABBIT: rabbit.RabbitRuntime,
|
settings.RABBIT: rabbit.RabbitRuntime,
|
||||||
settings.KEYSTONE_CLIENT: keystone_client.KeyStoneClientRuntime,
|
settings.KEYSTONE_CLIENT: keystone_client.KeyStoneClientRuntime,
|
||||||
settings.NOVA_CLIENT: nova_client.NovaClientRuntime,
|
settings.NOVA_CLIENT: nova_client.NovaClientRuntime,
|
||||||
settings.OPENSTACK_X: openstack_x.OpenstackXRuntime,
|
|
||||||
settings.NOVNC: novnc.NoVNCRuntime,
|
settings.NOVNC: novnc.NoVNCRuntime,
|
||||||
settings.QUANTUM_CLIENT: quantum_client.QuantumClientRuntime,
|
settings.QUANTUM_CLIENT: quantum_client.QuantumClientRuntime,
|
||||||
},
|
},
|
||||||
@ -86,13 +86,13 @@ ACTION_CLASSES = {
|
|||||||
settings.GLANCE: glance.GlanceRuntime,
|
settings.GLANCE: glance.GlanceRuntime,
|
||||||
settings.QUANTUM: quantum.QuantumRuntime,
|
settings.QUANTUM: quantum.QuantumRuntime,
|
||||||
settings.SWIFT: swift.SwiftRuntime,
|
settings.SWIFT: swift.SwiftRuntime,
|
||||||
|
settings.SWIFT: swift_keystone.SwiftKeystoneRuntime,
|
||||||
settings.HORIZON: horizon.HorizonRuntime,
|
settings.HORIZON: horizon.HorizonRuntime,
|
||||||
settings.KEYSTONE: keystone.KeystoneRuntime,
|
settings.KEYSTONE: keystone.KeystoneRuntime,
|
||||||
settings.DB: db.DBRuntime,
|
settings.DB: db.DBRuntime,
|
||||||
settings.RABBIT: rabbit.RabbitRuntime,
|
settings.RABBIT: rabbit.RabbitRuntime,
|
||||||
settings.KEYSTONE_CLIENT: keystone_client.KeyStoneClientRuntime,
|
settings.KEYSTONE_CLIENT: keystone_client.KeyStoneClientRuntime,
|
||||||
settings.NOVA_CLIENT: nova_client.NovaClientRuntime,
|
settings.NOVA_CLIENT: nova_client.NovaClientRuntime,
|
||||||
settings.OPENSTACK_X: openstack_x.OpenstackXRuntime,
|
|
||||||
settings.NOVNC: novnc.NoVNCRuntime,
|
settings.NOVNC: novnc.NoVNCRuntime,
|
||||||
settings.QUANTUM_CLIENT: quantum_client.QuantumClientRuntime,
|
settings.QUANTUM_CLIENT: quantum_client.QuantumClientRuntime,
|
||||||
},
|
},
|
||||||
|
@ -27,11 +27,11 @@ from devstack.components import keystone_client
|
|||||||
from devstack.components import nova
|
from devstack.components import nova
|
||||||
from devstack.components import nova_client
|
from devstack.components import nova_client
|
||||||
from devstack.components import novnc
|
from devstack.components import novnc
|
||||||
from devstack.components import openstack_x
|
|
||||||
from devstack.components import quantum
|
from devstack.components import quantum
|
||||||
from devstack.components import quantum_client
|
from devstack.components import quantum_client
|
||||||
from devstack.components import rabbit
|
from devstack.components import rabbit
|
||||||
from devstack.components import swift
|
from devstack.components import swift
|
||||||
|
from devstack.components import swift_keystone
|
||||||
|
|
||||||
PROG_NAME = "Describer"
|
PROG_NAME = "Describer"
|
||||||
|
|
||||||
@ -44,10 +44,10 @@ _DESCR_MAP = {
|
|||||||
settings.KEYSTONE_CLIENT: keystone_client.describe,
|
settings.KEYSTONE_CLIENT: keystone_client.describe,
|
||||||
settings.NOVA: nova.describe,
|
settings.NOVA: nova.describe,
|
||||||
settings.NOVA_CLIENT: nova_client.describe,
|
settings.NOVA_CLIENT: nova_client.describe,
|
||||||
settings.OPENSTACK_X: openstack_x.describe,
|
|
||||||
settings.QUANTUM: quantum.describe,
|
settings.QUANTUM: quantum.describe,
|
||||||
settings.RABBIT: rabbit.describe,
|
settings.RABBIT: rabbit.describe,
|
||||||
settings.SWIFT: swift.describe,
|
settings.SWIFT: swift.describe,
|
||||||
|
settings.SWIFT_KEYSTONE: swift_keystone.describe,
|
||||||
settings.NOVNC: novnc.describe,
|
settings.NOVNC: novnc.describe,
|
||||||
settings.QUANTUM_CLIENT: quantum_client.describe,
|
settings.QUANTUM_CLIENT: quantum_client.describe,
|
||||||
}
|
}
|
||||||
|
@ -40,21 +40,21 @@ GLANCE = "glance"
|
|||||||
QUANTUM = "quantum"
|
QUANTUM = "quantum"
|
||||||
QUANTUM_CLIENT = 'quantum-client'
|
QUANTUM_CLIENT = 'quantum-client'
|
||||||
SWIFT = "swift"
|
SWIFT = "swift"
|
||||||
|
SWIFT_KEYSTONE = "swift_keystone"
|
||||||
HORIZON = "horizon"
|
HORIZON = "horizon"
|
||||||
KEYSTONE = "keystone"
|
KEYSTONE = "keystone"
|
||||||
KEYSTONE_CLIENT = 'keystone-client'
|
KEYSTONE_CLIENT = 'keystone-client'
|
||||||
DB = "db"
|
DB = "db"
|
||||||
RABBIT = "rabbit"
|
RABBIT = "rabbit"
|
||||||
OPENSTACK_X = 'openstack-x'
|
|
||||||
NOVNC = 'novnc'
|
NOVNC = 'novnc'
|
||||||
COMPONENT_NAMES = [
|
COMPONENT_NAMES = [
|
||||||
NOVA, NOVA_CLIENT,
|
NOVA, NOVA_CLIENT,
|
||||||
GLANCE,
|
GLANCE,
|
||||||
QUANTUM, QUANTUM_CLIENT,
|
QUANTUM, QUANTUM_CLIENT,
|
||||||
SWIFT,
|
SWIFT,
|
||||||
|
SWIFT_KEYSTONE,
|
||||||
HORIZON,
|
HORIZON,
|
||||||
KEYSTONE, KEYSTONE_CLIENT,
|
KEYSTONE, KEYSTONE_CLIENT,
|
||||||
OPENSTACK_X,
|
|
||||||
DB,
|
DB,
|
||||||
RABBIT,
|
RABBIT,
|
||||||
NOVNC,
|
NOVNC,
|
||||||
@ -71,8 +71,9 @@ COMPONENT_DEPENDENCIES = {
|
|||||||
KEYSTONE: [DB],
|
KEYSTONE: [DB],
|
||||||
NOVA: [KEYSTONE, GLANCE, DB, RABBIT, NOVA_CLIENT],
|
NOVA: [KEYSTONE, GLANCE, DB, RABBIT, NOVA_CLIENT],
|
||||||
SWIFT: [],
|
SWIFT: [],
|
||||||
|
SWIFT_KEYSTONE: [SWIFT],
|
||||||
NOVA_CLIENT: [],
|
NOVA_CLIENT: [],
|
||||||
HORIZON: [KEYSTONE_CLIENT, GLANCE, NOVA_CLIENT, OPENSTACK_X],
|
HORIZON: [KEYSTONE_CLIENT, GLANCE, NOVA_CLIENT],
|
||||||
#the db isn't always a dependency (depending on the quantum component to be activated)
|
#the db isn't always a dependency (depending on the quantum component to be activated)
|
||||||
#for now assume it is (TODO make it better?)
|
#for now assume it is (TODO make it better?)
|
||||||
#the client isn't always needed either (TODO make it better?)
|
#the client isn't always needed either (TODO make it better?)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user