trove-dashboard-14.0.0/ 0000775 0001750 0001750 00000000000 13656752365 014724 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/requirements.txt 0000664 0001750 0001750 00000000514 13656752263 020205 0 ustar zuul zuul 0000000 0000000 # The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
pbr>=1.6
oslo.log>=3.30.0 # Apache-2.0
python-swiftclient>=2.2.0
python-troveclient>=1.2.0
horizon>=17.1.0 # Apache-2.0
trove-dashboard-14.0.0/babel-django.cfg 0000664 0001750 0001750 00000000057 13656752263 017711 0 ustar zuul zuul 0000000 0000000 [python: **.py]
[django: **/templates/**.html]
trove-dashboard-14.0.0/setup.cfg 0000664 0001750 0001750 00000001436 13656752365 016551 0 ustar zuul zuul 0000000 0000000 [metadata]
name = trove-dashboard
summary = Trove Management Dashboard
description-file =
README.rst
author = OpenStack
author-email = openstack-discuss@lists.openstack.org
home-page = https://docs.openstack.org/trove/latest
python-requires = >=3.6
classifier =
Environment :: OpenStack
Intended Audience :: Information Technology
Intended Audience :: System Administrators
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
[files]
packages =
trove_dashboard
[egg_info]
tag_build =
tag_date = 0
trove-dashboard-14.0.0/tox.ini 0000664 0001750 0001750 00000002527 13656752263 016242 0 ustar zuul zuul 0000000 0000000 [tox]
minversion = 3.1.1
envlist = py37,pep8
skipsdist = True
ignore_basepython_conflict = True
[testenv]
usedevelop = True
basepython = python3
install_command = pip install {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
/bin/bash run_tests.sh -N --no-pep8 {posargs}
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:integration]
commands = /bin/bash run_tests.sh -N --integration --selenium-headless {posargs}
[testenv:cover]
commands = python setup.py testr --coverage --testr-args={posargs}
[testenv:docs]
commands =
sphinx-build -a -E -W -b html doc/source doc/build/html
[testenv:debug]
commands = oslo_debug_helper {posargs}
[testenv:releasenotes]
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[flake8]
show-source = True
# F405 TEMPLATES may be undefined, or defined from star imports
# (because it is not easy to avoid this in openstack_dashboard.test.settings)
# H405 multi line docstring summary not separated with an empty line
ignore = F405,H405
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,.ropeproject,tools,releasenotes,.tmp
trove-dashboard-14.0.0/ChangeLog 0000664 0001750 0001750 00000022656 13656752365 016511 0 ustar zuul zuul 0000000 0000000 CHANGES
=======
14.0.0
------
* Imported Translations from Zanata
* Cleanup py27 support
* Calls manager.py by "$PYTHON" instead of "env python"
* Adds a full example of devstack local.conf
* s/assertItemsEqual/assertCountEqual/g
* Remove six usage
* Drop Django 1.11 support
* translation: drop babel extractor definitions
* Imported Translations from Zanata
* Drop python 2.7 support and testing
* Switch to Ussuri jobs
* Use Horizon project template for django jobs
* Imported Translations from Zanata
* Update master for stable/train
13.0.0
------
* Fix failed Unit tests
* Update tox.ini for Python 3 Train unit test goal
* Add python37 job
* Dropping the py35 testing
* Replace git.openstack.org URLs with opendev.org URLs
* OpenDev Migration Patch
* Replace openstack.org git:// URLs with https://
* Update master for stable/stein
12.0.0
------
* Removed older version of python added 3.5
* Imported Translations from Zanata
* Update hacking version
* fix tox python3 overrides
* Change openstack-dev to openstack-discuss
* Don't quote {posargs} in tox.ini
* Add Volume Size value in cluster instances details
* Remove object-store permission for Clusters panel
* Imported Translations from Zanata
* Imported Translations from Zanata
* Increment versioning with pbr instruction
* fix tox python3 overrides
* Cleanup zuul.yaml
* add python 3.6 unit test job
* switch documentation job to new PTI
* import zuul job settings from project-config
* Drop nose dependencies
* Update reno for stable/rocky
* Imported Translations from Zanata
11.0.0
------
* Fix README syntax to meet PyPI requirements
* Finish removal of mox
* Drop mox from database\_backups
* Mox removal for LogsTests
* Mox removal for ClustersTests
* Mox removal for DatabaseTests
* Mox removal for DatabaseConfigurationsTests
* Django 2.0 support
* Cleanup requirements
* Remove table UpdateAction and declare mox dependency
11.0.0.0b1
----------
* Imported Translations from Zanata
* Avoid using hasattr() on troveclient resources for py3 porting
* Use for loop instead of map to modify iterables
* Fix str and dict usages in unittests for Python3
* Avoid tox-install.sh
* Fix binascii hexlify under Python 3
* Imported Translations from Zanata
* Imported Translations from Zanata
* Update reno for stable/queens
* Imported Translations from Zanata
10.0.0
------
* Imported Translations from Zanata
* Imported Translations from Zanata
* Deprecated error method
* Imported Translations from Zanata
* Remove empty files
* Imported Translations from Zanata
10.0.0.0b3
----------
* Imported Translations from Zanata
* Fix the url of trove project
* Switch to oslo\_log
* Remove the redundant attributes
* Add "\*.swp" to ".gitignore" file
* Remove empty files
* Update the documentation link for doc migration
* Fix users page display error
* Add host to user access show title
* Fix incorrect example of mysql connection
* Fix import heat\_data error for tests
* Align tox\_install.sh with other projects
* Imported Translations from Zanata
* Imported Translations from Zanata
* Remove setting of version/release from releasenotes
* Drop django\_openstack\_auth from requirements.txt
* Imported Translations from Zanata
* Fix leak of password info in logs
* Fix unstable test case
* Switch from oslosphinx to openstackdocstheme
10.0.0.0b1
----------
* Imported Translations from Zanata
* Fix to use . to source script files
* Using assertIsNone() instead of assertEqual(None)
* Update reno for stable/pike
9.0.0
-----
* Imported Translations from Zanata
9.0.0.0b3
---------
* Imported Translations from Zanata
* Imported Translations from Zanata
* Add support for uppercase fieldname to cluster
* Restrict launch fields when restoring from backup
9.0.0.0b2
---------
* Failure to launch dashboard with error about missing class methods
* Imported Translations from Zanata
9.0.0.0b1
---------
* Imported Translations from Zanata
* Update launchpad link to trove-dashboard
* Imported Translations from Zanata
* Imported Translations from Zanata
* Update reno for stable/ocata
8.0.0.0rc1
----------
* Imported Translations from Zanata
8.0.0.0b3
---------
* Imported Translations from Zanata
* Imported Translations from Zanata
* Imported Translations from Zanata
* Delete the unused LOG code
* Remove the redundant "required=True"
* Imported Translations from Zanata
* Use 'trimmed' for blocktrans in html page
* Imported Translations from Zanata
* Imported Translations from Zanata
* Imported Translations from Zanata
* Enable pxc grow/shrink
* Fix grow cluster caching
8.0.0.0b2
---------
* Update home-page in setup.cfg
* Fix Django 1.10 Compatibility
* Add requirement for cross-process cache
* Imported Translations from Zanata
* Don't import ceilometer\_data
* Show team and repo badges on README
8.0.0.0b1
---------
* Imported Translations from Zanata
* Imported Translations from Zanata
* Trove user page doesn't show allowed hosts AND databases
* make trove-dashboard use upper-constraints
* Imported Translations from Zanata
* Imported Translations from Zanata
* Imported Translations from Zanata
* Enable release notes translation
* Remove double closing tag in a template
* Imported Translations from Zanata
* Update release notes
* Update reno for stable/newton
7.0.0.0rc1
----------
* Imported Translations from Zanata
* Add cluster support for affinity/anti-affinity
* Imported Translations from Zanata
* Add availability zone to launch instance
* Add support for affinity/anti-affinity
* Add support for Trove configuration groups
* Update release note page ordering
* Imported Translations from Zanata
* Use proper check for inactive datastore version
* Imported Translations from Zanata
7.0.0.0b3
---------
* Imported Translations from Zanata
* Flake8 update
* Add nic to cluster grow
* Show confirm window before instance delete
* Don't include openstack/common in flake8
* Add support to display instance fault messages
* Imported Translations from Zanata
* Properly populate cluster id in instance grow
* Add support for instance datastore-flavors
* Fix gate test failures
* Remove discover from test-requirements
* Imported Translations from Zanata
7.0.0.0b2
---------
* Fix unit tests - policy file failure
* Imported Translations from Zanata
* Imported Translations from Zanata
* Imported Translations from Zanata
* Imported Translations from Zanata
* Imported Translations from Zanata
* Add backups table to ng-backups panel
* Imported Translations from Zanata
* Imported Translations from Zanata
* Imported Translations from Zanata
* Get all instances to populate master pulldown
* Trove add support for log retrieval
* Delegate network panel to instance network panel
* Add missing mocks to tests
* Imported Translations from Zanata
* Database instance status message changed
* Fix periodic translation job
* Fix the active attribute check
* Enable cluster support for mariadb and cassandra
* Install horizon in runtest.sh
* Imported Translations from Zanata
* Add reno for release notes management
* Use new style form templates
* Cluster details page should list all endpoints
* Remove install of horizon from test-requirements
* Improved handling of Swift panel detection
* Re-enable failing test
* [Django 1.9] Remove load url from future
* Temporarily disable failing test
* Add missing replication functionality
6.0.0.0rc1
----------
* Imported Translations from Zanata
* Imported Translations from Zanata
* Fixed Missed Traslations
* Imported Translations from Zanata
* Imported Translations from Zanata
* Imported Translations from Zanata
* Add maria, percona, postgresql to details view
* Add volume type field to launch instance dialog
* Add support for root-disable
6.0.0.0b3
---------
* Trove add cluster grow and shrink support
* update readme with how to test changes
* Ensure to compile translation catalogs
* Adding support for trove new clustering datastore - percona cluster
* Add support for root enable and show
* devstack: compile translation message catalogs
* Enable Redis database cluster support
* Add support for Trove create database
* Imported Translations from Zanata
* Support operations on a trove instance user
* LOG.warn is deprecated in python3
* Adding angular database backups panel
* Update devstack plugin
* Setup for translations
* Use "Connection Information" everywhere
* Fix cluster launch datastore version handling
6.0.0.0b2
---------
* Fix cluster connection information formatting
* Add missing .gitreview file
* Fix unit tests
* Completing the plugin
* Restructuring tree to be plugin
* Replace "Terminate Instance" with "Delete Instance"
* Drop Django 1.7 support
* Remove unnecessary ugettext\_lazy
* Add breadcrumb to more details pages
* py3: Replace unicode with six.text\_type
* Fix TypeError on comparison on Python 3
* Typo fix in Trove panel
* Initial support for database clustering in Horizon
* Replace SortedDict with OrderedDict
* py3: Replace unicode with six.text\_type
* Updated cassandra database details overview port
* Fixes align issue for database networking workflow
* Moving Trove to contrib
* Move Horizon to pure plugin loading only
* Support for resizing a trove instance
* Fix E127 errors in remaining openstack\_dashboard/
* Add support for trove incremental backups
* Initial support for datastore in Horizon
* Users can now be deleted within trove
* Remove extraneous vim configuration comments
* Display trove instance hostname if available
* Update troveclient to 1.0.0
* Importing from trove-client compat first
* Importing from trove-client compat
* Make troveclient optional
* Adding panels for trove
* Initial commit
trove-dashboard-14.0.0/MANIFEST.in 0000664 0001750 0001750 00000000130 13656752263 016451 0 ustar zuul zuul 0000000 0000000 recursive-include trove_dashboard *.html *.scss *.js
include AUTHORS
include ChangeLog
trove-dashboard-14.0.0/HACKING.rst 0000664 0001750 0001750 00000000350 13656752263 016515 0 ustar zuul zuul 0000000 0000000 Trove Style Commandments
========================
- Step 1: Read the OpenStack Style Commandments
https://docs.openstack.org/hacking/latest
- Step 2: Read on
Trove Specific Commandments
---------------------------
None so far
trove-dashboard-14.0.0/releasenotes/ 0000775 0001750 0001750 00000000000 13656752365 017415 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/notes/ 0000775 0001750 0001750 00000000000 13656752365 020545 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/notes/.placeholder 0000664 0001750 0001750 00000000000 13656752263 023013 0 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/notes/enable-cluster-mariabdb-cassandra-11f3f7f6badfc211.yaml 0000664 0001750 0001750 00000000104 13656752263 032367 0 ustar zuul zuul 0000000 0000000 ---
features:
- Enable cluster support for MariaDB and Cassandra.
trove-dashboard-14.0.0/releasenotes/notes/fix-grow-cluster-cache-5625d1a519a4ee01.yaml 0000664 0001750 0001750 00000000321 13656752263 030030 0 ustar zuul zuul 0000000 0000000 ---
fixes:
- The current caching initializes the instance list for the grow
cluster manager each time a new process would instantiate the
manager. Changed to manager to only initialize on creation.
trove-dashboard-14.0.0/releasenotes/notes/cluster-endpoints-52bbb9f1c146ae97.yaml 0000664 0001750 0001750 00000000133 13656752263 027403 0 ustar zuul zuul 0000000 0000000 ---
fixes:
- Display all endpoints in the dashboard's cluster
details endpoint list.
trove-dashboard-14.0.0/releasenotes/notes/drop-py-2-7-ee223d109e3bd38e.yaml 0000664 0001750 0001750 00000000327 13656752263 025617 0 ustar zuul zuul 0000000 0000000 ---
upgrade:
- |
Python 2.7 support has been dropped. Last release of trove-dashboard
to support py2.7 is OpenStack Train. The minimum version of Python now
supported by trove-dashboard is Python 3.6.
trove-dashboard-14.0.0/releasenotes/notes/logging-support-f999a1b1b342eb4d.yaml 0000664 0001750 0001750 00000000275 13656752263 027067 0 ustar zuul zuul 0000000 0000000 ---
features:
- Added support for logging features in the dashboard.
This includes listing logs that can be retrieved and
viewing, publishing and stop collection of log contents.
trove-dashboard-14.0.0/releasenotes/notes/conf-groups-7bc8115f8d0bcd14.yaml 0000664 0001750 0001750 00000000414 13656752263 026157 0 ustar zuul zuul 0000000 0000000 ---
features:
- Support configuration groups in the dashboard. This
includes creating and deleting groups; adding,
editing and removing parameters; attaching and
detaching groups to running instances; and specifying
a group during instance creation.
trove-dashboard-14.0.0/releasenotes/notes/enable-pxc-grow-shrink-17568a1c280f1c42.yaml 0000664 0001750 0001750 00000000076 13656752263 027766 0 ustar zuul zuul 0000000 0000000 ---
fixes:
- Enable cluster grow and shrink panels for pxc.
trove-dashboard-14.0.0/releasenotes/notes/django20-support-fd32553ded354e56.yaml 0000664 0001750 0001750 00000000416 13656752263 026767 0 ustar zuul zuul 0000000 0000000 ---
upgrade:
- |
Django 2.0 is now supported and Django versions older than 1.11 are no
longer supported aligning with Django versions supported by horizon.
Note that Django 1.11 is still supported and this is the only version
when you use python 2.7.
././@LongLink 0000000 0000000 0000000 00000000156 00000000000 011217 L ustar 0000000 0000000 trove-dashboard-14.0.0/releasenotes/notes/restrict-launch-fields-on-restore-from-backup-8a32174e27f185dc.yaml trove-dashboard-14.0.0/releasenotes/notes/restrict-launch-fields-on-restore-from-backup-8a32174e27f10000664 0001750 0001750 00000000403 13656752263 033010 0 ustar zuul zuul 0000000 0000000 ---
fixes:
- Adds support for restricting the launch instance datastore field
to the datastore and datastore version that the backup is
relevant to. It also populates the restored backup as the only
option in the advanced step backup field.
trove-dashboard-14.0.0/releasenotes/source/ 0000775 0001750 0001750 00000000000 13656752365 020715 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/train.rst 0000664 0001750 0001750 00000000176 13656752263 022565 0 ustar zuul zuul 0000000 0000000 ==========================
Train Series Release Notes
==========================
.. release-notes::
:branch: stable/train
trove-dashboard-14.0.0/releasenotes/source/_static/ 0000775 0001750 0001750 00000000000 13656752365 022343 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/_static/.placeholder 0000664 0001750 0001750 00000000000 13656752263 024611 0 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/conf.py 0000664 0001750 0001750 00000023123 13656752263 022212 0 ustar zuul zuul 0000000 0000000 # -*- coding: utf-8 -*-
#
# Trove Dashboard Release Notes documentation build configuration file, created by
# sphinx-quickstart on Thu Apr 14 18:07:45 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
import sys
import os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'openstackdocstheme',
'reno.sphinxext',
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
# openstackdocstheme options
repository_name = 'openstack/trove-dashboard'
bug_project = 'trove-dashboard'
bug_tag = ''
# Must set this variable to include year, month, day, hours, and minutes.
html_last_updated_fmt = '%Y-%m-%d %H:%M'
# The encoding of source files.
#source_encoding = 'utf-8-sig'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = u'Trove Dashboard Release Notes'
copyright = u'2016, Trove developers'
author = u'Trove developers'
# Release notes are version independent.
# The short X.Y version.
version = ''
# The full version, including alpha/beta/rc tags.
release = ''
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = []
# The reST default role (used for this markup: `text`) to use for all
# documents.
#default_role = None
# If true, '()' will be appended to :func: etc. cross-reference text.
#add_function_parentheses = True
# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
#add_module_names = True
# If true, sectionauthor and moduleauthor directives will be shown in the
# output. They are ignored by default.
#show_authors = False
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# A list of ignored prefixes for module index sorting.
#modindex_common_prefix = []
# If true, keep warnings as "system message" paragraphs in the built documents.
#keep_warnings = False
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
# -- Options for HTML output ----------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'openstackdocs'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
# The name for this set of Sphinx documents.
# " v documentation" by default.
#html_title = u'Trove Dashboard Release Notes vblah'
# A shorter title for the navigation bar. Default is the same as html_title.
#html_short_title = None
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#html_logo = None
# The name of an image file (relative to this directory) to use as a favicon of
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#html_favicon = None
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
# directly to the root of the documentation.
#html_extra_path = []
# If not None, a 'Last updated on:' timestamp is inserted at every page
# bottom, using the given strftime format.
# The empty string is equivalent to '%b %d, %Y'.
#html_last_updated_fmt = None
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
#html_use_smartypants = True
# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
# Additional templates that should be rendered to pages, maps page names to
# template names.
#html_additional_pages = {}
# If false, no module index is generated.
#html_domain_indices = True
# If false, no index is generated.
#html_use_index = True
# If true, the index is split into individual pages for each letter.
#html_split_index = False
# If true, links to the reST sources are added to the pages.
#html_show_sourcelink = True
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
#html_show_sphinx = True
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
#html_show_copyright = True
# If true, an OpenSearch description file will be output, and all pages will
# contain a tag referring to it. The value of this option must be the
# base URL from which the finished HTML is served.
#html_use_opensearch = ''
# This is the file name suffix for HTML files (e.g. ".xhtml").
#html_file_suffix = None
# Language to be used for generating the HTML full-text search index.
# Sphinx supports the following languages:
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh'
#html_search_language = 'en'
# A dictionary with options for the search language support, empty by default.
# 'ja' uses this config value.
# 'zh' user can custom change `jieba` dictionary path.
#html_search_options = {'type': 'default'}
# The name of a javascript file (relative to the configuration directory) that
# implements a search results scorer. If empty, the default will be used.
#html_search_scorer = 'scorer.js'
# Output file base name for HTML help builder.
htmlhelp_basename = 'TroveDashboardReleaseNotesdoc'
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
# Latex figure (float) alignment
#'figure_align': 'htbp',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'TroveDashboardReleaseNotes.tex', u'Trove Dashboard Release Notes Documentation',
u'Trove developers', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
# the title page.
#latex_logo = None
# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
#latex_use_parts = False
# If true, show page references after internal links.
#latex_show_pagerefs = False
# If true, show URL addresses after external links.
#latex_show_urls = False
# Documents to append as an appendix to all manuals.
#latex_appendices = []
# If false, no module index is generated.
#latex_domain_indices = True
# -- Options for manual page output ---------------------------------------
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'trovedashboardreleasenotes', u'Trove Dashboard Release Notes Documentation',
[author], 1)
]
# If true, show URL addresses after external links.
#man_show_urls = False
# -- Options for Texinfo output -------------------------------------------
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'TroveDashboardReleaseNotes', u'Trove Dashboard Release Notes Documentation',
author, 'TroveDashboardReleaseNotes', 'One line description of project.',
'Miscellaneous'),
]
# Documents to append as an appendix to all manuals.
#texinfo_appendices = []
# If false, no module index is generated.
#texinfo_domain_indices = True
# How to display URL addresses: 'footnote', 'no', or 'inline'.
#texinfo_show_urls = 'footnote'
# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False
# -- Options for Internationalization output ------------------------------
locale_dirs = ['locale/']
trove-dashboard-14.0.0/releasenotes/source/stein.rst 0000664 0001750 0001750 00000000221 13656752263 022561 0 ustar zuul zuul 0000000 0000000 ===================================
Stein Series Release Notes
===================================
.. release-notes::
:branch: stable/stein
trove-dashboard-14.0.0/releasenotes/source/queens.rst 0000664 0001750 0001750 00000000223 13656752263 022741 0 ustar zuul zuul 0000000 0000000 ===================================
Queens Series Release Notes
===================================
.. release-notes::
:branch: stable/queens
trove-dashboard-14.0.0/releasenotes/source/unreleased.rst 0000664 0001750 0001750 00000000153 13656752263 023572 0 ustar zuul zuul 0000000 0000000 ============================
Current Series Release Notes
============================
.. release-notes::
trove-dashboard-14.0.0/releasenotes/source/rocky.rst 0000664 0001750 0001750 00000000221 13656752263 022566 0 ustar zuul zuul 0000000 0000000 ===================================
Rocky Series Release Notes
===================================
.. release-notes::
:branch: stable/rocky
trove-dashboard-14.0.0/releasenotes/source/index.rst 0000664 0001750 0001750 00000000363 13656752263 022555 0 ustar zuul zuul 0000000 0000000 =============================
Trove Dashboard Release Notes
=============================
Contents:
.. toctree::
:maxdepth: 2
unreleased
train
stein
rocky
queens
pike
ocata
newton
Search
======
* :ref:`search`
trove-dashboard-14.0.0/releasenotes/source/ocata.rst 0000664 0001750 0001750 00000000230 13656752263 022526 0 ustar zuul zuul 0000000 0000000 ===================================
Ocata Series Release Notes
===================================
.. release-notes::
:branch: origin/stable/ocata
trove-dashboard-14.0.0/releasenotes/source/newton.rst 0000664 0001750 0001750 00000000232 13656752263 022753 0 ustar zuul zuul 0000000 0000000 ===================================
Newton Series Release Notes
===================================
.. release-notes::
:branch: origin/stable/newton
trove-dashboard-14.0.0/releasenotes/source/_templates/ 0000775 0001750 0001750 00000000000 13656752365 023052 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/_templates/.placeholder 0000664 0001750 0001750 00000000000 13656752263 025320 0 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/ 0000775 0001750 0001750 00000000000 13656752365 022154 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/fr/ 0000775 0001750 0001750 00000000000 13656752365 022563 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/fr/LC_MESSAGES/ 0000775 0001750 0001750 00000000000 13656752365 024350 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/fr/LC_MESSAGES/releasenotes.po 0000664 0001750 0001750 00000003345 13656752263 027403 0 ustar zuul zuul 0000000 0000000 # Gérald LONLAS , 2016. #zanata
# Loic Nicolle , 2017. #zanata
msgid ""
msgstr ""
"Project-Id-Version: Trove Dashboard Release Notes 9.0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-09-11 19:27+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2017-09-14 01:04+0000\n"
"Last-Translator: Loic Nicolle \n"
"Language-Team: French\n"
"Language: fr\n"
"X-Generator: Zanata 3.9.6\n"
"Plural-Forms: nplurals=2; plural=(n > 1)\n"
msgid "7.0.0"
msgstr "7.0.0"
msgid "8.0.0"
msgstr "8.0.0"
msgid ":ref:`search`"
msgstr ":ref:`search`"
#, fuzzy
msgid ""
"Added support for logging features in the dashboard. This includes listing "
"logs that can be retrieved and viewing, publishing and stop collection of "
"log contents."
msgstr ""
"Ajout du support pour logger les fonctionnalités dans le tableau de bord. "
"Added support for logging features in the dashboard. Cela inclut la liste de "
"logs qui sont récupérés affichés et publiés ainsi que l'arrêt de la "
"collecte de logs."
msgid "Bug Fixes"
msgstr "Corrections de bugs"
msgid "Contents:"
msgstr "Contenu :"
msgid "Current Series Release Notes"
msgstr "Note de la release actuelle"
msgid "Enable cluster support for MariaDB and Cassandra."
msgstr "Activer le support de Cluster pour MariaDB et Cassandra."
msgid "New Features"
msgstr "Nouvelles fonctionnalités"
msgid "Newton Series Release Notes"
msgstr "Note de release pour Newton"
msgid "Ocata Series Release Notes"
msgstr "Note de release pour Ocata"
msgid "Search"
msgstr "Recherche"
msgid "Trove Dashboard Release Notes"
msgstr "Note de release pour le Tableau de bord Trove"
trove-dashboard-14.0.0/releasenotes/source/locale/zh_CN/ 0000775 0001750 0001750 00000000000 13656752365 023155 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/zh_CN/LC_MESSAGES/ 0000775 0001750 0001750 00000000000 13656752365 024742 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/zh_CN/LC_MESSAGES/releasenotes.po 0000664 0001750 0001750 00000005375 13656752263 030002 0 ustar zuul zuul 0000000 0000000 # sunanchen , 2016. #zanata
# zzxwill , 2016. #zanata
# Bin , 2017. #zanata
# TigerFang , 2017. #zanata
msgid ""
msgstr ""
"Project-Id-Version: Trove Dashboard Release Notes\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-28 09:39+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2017-12-28 02:43+0000\n"
"Last-Translator: TigerFang \n"
"Language-Team: Chinese (China)\n"
"Language: zh_CN\n"
"X-Generator: Zanata 4.3.3\n"
"Plural-Forms: nplurals=1; plural=0\n"
msgid "7.0.0"
msgstr "7.0.0版本"
msgid "8.0.0"
msgstr "8.0.0版本"
msgid ":ref:`search`"
msgstr ":ref:`search`"
msgid ""
"Added support for logging features in the dashboard. This includes listing "
"logs that can be retrieved and viewing, publishing and stop collection of "
"log contents."
msgstr ""
"在dashboard中增加对日志特性的支持。这包含了列出可检索和查看的日志,正在发布的"
"日志以及停止日志内容的收集。"
msgid "Bug Fixes"
msgstr "Bug修复"
msgid "Contents:"
msgstr "内容"
msgid "Current Series Release Notes"
msgstr "当前版本发布说明"
msgid "Display all endpoints in the dashboard's cluster details endpoint list."
msgstr "在dashboard的集群详情endpoint列表中展示所有的endpoints"
msgid "Enable cluster grow and shrink panels for pxc."
msgstr "为pxc启用集群增长和收缩面板。"
msgid "Enable cluster support for MariaDB and Cassandra."
msgstr "启动MariaDB和Cassandra的集群支持。"
msgid "New Features"
msgstr "新特性"
msgid "Newton Series Release Notes"
msgstr "Newton版本发布说明"
msgid "Ocata Series Release Notes"
msgstr "Ocata版本发布说明"
msgid "Pike Series Release Notes"
msgstr "Pike版本发布声明"
msgid "Search"
msgstr "搜索"
msgid ""
"Support configuration groups in the dashboard. This includes creating and "
"deleting groups; adding, editing and removing parameters; attaching and "
"detaching groups to running instances; and specifying a group during "
"instance creation."
msgstr ""
"在仪表板中支持配置组。这包括创建和删除组;添加、编辑和删除参数;附加和分离组"
"到运行实例;并在实例创建期间指定组。"
msgid ""
"The current caching initializes the instance list for the grow cluster "
"manager each time a new process would instantiate the manager. Changed to "
"manager to only initialize on creation."
msgstr ""
"当每个新进程将实例化管理器时,当前的缓存将初始化增长集群管理器的实例列表。改"
"变为管理器只能在创作时去初始化。"
msgid "Trove Dashboard Release Notes"
msgstr "Trove Dashboard发布说明"
trove-dashboard-14.0.0/releasenotes/source/locale/ru/ 0000775 0001750 0001750 00000000000 13656752365 022602 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/ru/LC_MESSAGES/ 0000775 0001750 0001750 00000000000 13656752365 024367 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/ru/LC_MESSAGES/releasenotes.po 0000664 0001750 0001750 00000002415 13656752263 027417 0 ustar zuul zuul 0000000 0000000 # Alexander , 2016. #zanata
# Artem , 2017. #zanata
msgid ""
msgstr ""
"Project-Id-Version: Trove Dashboard Release Notes 8.0.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-09 20:48+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2017-01-23 12:49+0000\n"
"Last-Translator: Artem \n"
"Language-Team: Russian\n"
"Language: ru\n"
"X-Generator: Zanata 3.9.6\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
msgid "7.0.0"
msgstr "7.0.0"
msgid ":ref:`search`"
msgstr ":ref:`search`"
msgid "Bug Fixes"
msgstr "Исправления ошибок"
msgid "Contents:"
msgstr "Содержание:"
msgid "Current Series Release Notes"
msgstr "Примечания к выпуску Current Series "
msgid "Enable cluster support for MariaDB and Cassandra."
msgstr "Включить поддержку кластеризации в MariaDB и Cassandra."
msgid "New Features"
msgstr "Новые особенности"
msgid "Newton Series Release Notes"
msgstr "Примечания к выпуску Newton Series "
msgid "Search"
msgstr "Поиск"
trove-dashboard-14.0.0/releasenotes/source/locale/ja/ 0000775 0001750 0001750 00000000000 13656752365 022546 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/ja/LC_MESSAGES/ 0000775 0001750 0001750 00000000000 13656752365 024333 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/ja/LC_MESSAGES/releasenotes.po 0000664 0001750 0001750 00000003132 13656752263 027360 0 ustar zuul zuul 0000000 0000000 # Shu Muto , 2016. #zanata
msgid ""
msgstr ""
"Project-Id-Version: Trove Dashboard Release Notes 8.0.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-09 20:48+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-05-23 01:11+0000\n"
"Last-Translator: Shu Muto \n"
"Language-Team: Japanese\n"
"Language: ja\n"
"X-Generator: Zanata 3.9.6\n"
"Plural-Forms: nplurals=1; plural=0\n"
msgid ":ref:`search`"
msgstr ":ref:`search`"
msgid ""
"Added support for logging features in the dashboard. This includes listing "
"logs that can be retrieved and viewing, publishing and stop collection of "
"log contents."
msgstr ""
"ダッシュボードでのロギング機能のサポートを追加しました。これは、取得可能なロ"
"グの一覧、表示、公開、ログ内容の収集の停止を含みます。"
msgid "Bug Fixes"
msgstr "バグ修正"
msgid "Contents:"
msgstr "内容:"
msgid "Current Series Release Notes"
msgstr "開発中バージョンのリリースノート"
msgid "Display all endpoints in the dashboard's cluster details endpoint list."
msgstr ""
"ダッシュボードのクラスター詳細のエンドポイント一覧にすべてのエンドポイントを"
"表示します。"
msgid "Enable cluster support for MariaDB and Cassandra."
msgstr "MariaDB と Cassandora のクラスターをサポートしました。"
msgid "New Features"
msgstr "新機能"
msgid "Trove Dashboard Release Notes"
msgstr "Trove Dashboard リリースノート"
trove-dashboard-14.0.0/releasenotes/source/locale/en_GB/ 0000775 0001750 0001750 00000000000 13656752365 023126 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/en_GB/LC_MESSAGES/ 0000775 0001750 0001750 00000000000 13656752365 024713 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po 0000664 0001750 0001750 00000011350 13656752263 027741 0 ustar zuul zuul 0000000 0000000 # Andi Chandler , 2016. #zanata
# Andi Chandler , 2017. #zanata
# Andi Chandler , 2018. #zanata
# Andi Chandler , 2019. #zanata
# Andi Chandler , 2020. #zanata
msgid ""
msgstr ""
"Project-Id-Version: trove-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-04-07 20:44+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2020-04-07 08:37+0000\n"
"Last-Translator: Andi Chandler \n"
"Language-Team: English (United Kingdom)\n"
"Language: en_GB\n"
"X-Generator: Zanata 4.3.3\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
msgid "10.0.0"
msgstr "10.0.0"
msgid "11.0.0"
msgstr "11.0.0"
msgid "7.0.0"
msgstr "7.0.0"
msgid "8.0.0"
msgstr "8.0.0"
msgid ":ref:`search`"
msgstr ":ref:`search`"
msgid ""
"Added support for logging features in the dashboard. This includes listing "
"logs that can be retrieved and viewing, publishing and stop collection of "
"log contents."
msgstr ""
"Added support for logging features in the dashboard. This includes listing "
"logs that can be retrieved and viewing, publishing and stop collection of "
"log contents."
msgid ""
"Adds support for restricting the launch instance datastore field to the "
"datastore and datastore version that the backup is relevant to. It also "
"populates the restored backup as the only option in the advanced step backup "
"field."
msgstr ""
"Adds support for restricting the launch instance datastore field to the "
"datastore and datastore version that the backup is relevant to. It also "
"populates the restored backup as the only option in the advanced step backup "
"field."
msgid "Bug Fixes"
msgstr "Bug Fixes"
msgid "Contents:"
msgstr "Contents:"
msgid "Current Series Release Notes"
msgstr "Current Series Release Notes"
msgid "Display all endpoints in the dashboard's cluster details endpoint list."
msgstr ""
"Display all endpoints in the dashboard's cluster details endpoint list."
msgid ""
"Django 2.0 is now supported and Django versions older than 1.11 are no "
"longer supported aligning with Django versions supported by horizon. Note "
"that Django 1.11 is still supported and this is the only version when you "
"use python 2.7."
msgstr ""
"Django 2.0 is now supported and Django versions older than 1.11 are no "
"longer supported aligning with Django versions supported by Horizon. Note "
"that Django 1.11 is still supported and this is the only version when you "
"use Python 2.7."
msgid "Enable cluster grow and shrink panels for pxc."
msgstr "Enable cluster grow and shrink panels for pxc."
msgid "Enable cluster support for MariaDB and Cassandra."
msgstr "Enable cluster support for MariaDB and Cassandra."
msgid "New Features"
msgstr "New Features"
msgid "Newton Series Release Notes"
msgstr "Newton Series Release Notes"
msgid "Ocata Series Release Notes"
msgstr "Ocata Series Release Notes"
msgid "Pike Series Release Notes"
msgstr "Pike Series Release Notes"
msgid ""
"Python 2.7 support has been dropped. Last release of trove-dashboard to "
"support py2.7 is OpenStack Train. The minimum version of Python now "
"supported by trove-dashboard is Python 3.6."
msgstr ""
"Python 2.7 support has been dropped. Last release of trove-dashboard to "
"support py2.7 is OpenStack Train. The minimum version of Python now "
"supported by trove-dashboard is Python 3.6."
msgid "Queens Series Release Notes"
msgstr "Queens Series Release Notes"
msgid "Rocky Series Release Notes"
msgstr "Rocky Series Release Notes"
msgid "Search"
msgstr "Search"
msgid "Stein Series Release Notes"
msgstr "Stein Series Release Notes"
msgid ""
"Support configuration groups in the dashboard. This includes creating and "
"deleting groups; adding, editing and removing parameters; attaching and "
"detaching groups to running instances; and specifying a group during "
"instance creation."
msgstr ""
"Support configuration groups in the dashboard. This includes creating and "
"deleting groups; adding, editing and removing parameters; attaching and "
"detaching groups to running instances; and specifying a group during "
"instance creation."
msgid ""
"The current caching initializes the instance list for the grow cluster "
"manager each time a new process would instantiate the manager. Changed to "
"manager to only initialize on creation."
msgstr ""
"The current caching initialises the instance list for the grow cluster "
"manager each time a new process would instantiate the manager. Changed to "
"manager to only initialise on creation."
msgid "Train Series Release Notes"
msgstr "Train Series Release Notes"
msgid "Trove Dashboard Release Notes"
msgstr "Trove Dashboard Release Notes"
msgid "Upgrade Notes"
msgstr "Upgrade Notes"
trove-dashboard-14.0.0/releasenotes/source/locale/ko_KR/ 0000775 0001750 0001750 00000000000 13656752365 023161 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/ko_KR/LC_MESSAGES/ 0000775 0001750 0001750 00000000000 13656752365 024746 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/ko_KR/LC_MESSAGES/releasenotes.po 0000664 0001750 0001750 00000011005 13656752263 027771 0 ustar zuul zuul 0000000 0000000 # Ian Y. Choi , 2016. #zanata
# Ian Y. Choi , 2017. #zanata
# Sungjin Kang , 2017. #zanata
# Soonyeul Park , 2018. #zanata
msgid ""
msgstr ""
"Project-Id-Version: trove-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-10-19 14:09+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2018-09-23 09:42+0000\n"
"Last-Translator: Soonyeul Park \n"
"Language-Team: Korean (South Korea)\n"
"Language: ko_KR\n"
"X-Generator: Zanata 4.3.3\n"
"Plural-Forms: nplurals=1; plural=0\n"
msgid "10.0.0"
msgstr "10.0.0"
msgid "11.0.0"
msgstr "11.0.0"
msgid "7.0.0"
msgstr "7.0.0"
msgid "8.0.0"
msgstr "8.0.0"
msgid ":ref:`search`"
msgstr ":ref:`search`"
msgid ""
"Added support for logging features in the dashboard. This includes listing "
"logs that can be retrieved and viewing, publishing and stop collection of "
"log contents."
msgstr ""
"대시보드 내 로깅 기능에 대한 지원을 추가하였습니다. 가져올 수 있는 로그 목록 "
"나열 및 로그 내용 집합을 퍼블리싱 및 중지를 포함합니다."
msgid ""
"Adds support for restricting the launch instance datastore field to the "
"datastore and datastore version that the backup is relevant to. It also "
"populates the restored backup as the only option in the advanced step backup "
"field."
msgstr ""
"실행 인스턴스 데이터 저장소 필드를 백업과 관련된 데이터 저장소와 데이터 저장"
"소 버전으로 제한하기 위한 지원을 추가합니다. 또한 고급 단계의 백업 필드의 유"
"일한 옵션으로 복원된 백업을 넣어줍니다."
msgid "Bug Fixes"
msgstr "버그 수정"
msgid "Contents:"
msgstr "내용:"
msgid "Current Series Release Notes"
msgstr "현재 시리즈에 대한 릴리즈 노트"
msgid "Display all endpoints in the dashboard's cluster details endpoint list."
msgstr ""
"대시보드의 클러스터 세부 엔드 포인트 목록 내에 모든 엔드 포인트를 보여줍니다."
msgid ""
"Django 2.0 is now supported and Django versions older than 1.11 are no "
"longer supported aligning with Django versions supported by horizon. Note "
"that Django 1.11 is still supported and this is the only version when you "
"use python 2.7."
msgstr ""
"Django 2.0은 이제 지원되며 1.11 이전의 Django 버전은 더 이상 horizon에 의해 "
"지원되는 Django 버전들에 맞춰 지원되지 않습니다. Django 1.11은 여전히 지원되"
"며 이는 Python 2.7을 사용할 때 유일한 버전임을 참고하십시오."
msgid "Enable cluster grow and shrink panels for pxc."
msgstr "pxc를 위한 패널에 대해 클러스터 확장 및 축소를 활성화합니다."
msgid "Enable cluster support for MariaDB and Cassandra."
msgstr "MariaDB 및 Cassandra에 대한 클러스터 지원을 활성화합니다."
msgid "New Features"
msgstr "새로운 기능"
msgid "Newton Series Release Notes"
msgstr "Newton 시리즈에 대한 릴리즈 노트"
msgid "Ocata Series Release Notes"
msgstr "Ocata 시리즈에 대한 릴리즈 노트"
msgid "Pike Series Release Notes"
msgstr "Pike 시리즈 릴리즈 노트"
msgid "Queens Series Release Notes"
msgstr "Queens 시리즈 릴리즈 노트"
msgid "Rocky Series Release Notes"
msgstr "Rocky 시리즈 릴리즈 노트"
msgid "Search"
msgstr "검색"
msgid ""
"Support configuration groups in the dashboard. This includes creating and "
"deleting groups; adding, editing and removing parameters; attaching and "
"detaching groups to running instances; and specifying a group during "
"instance creation."
msgstr ""
"구성 그룹을 대시보드에서 지원합니다. 그룹 생성 및 삭제; 매개 변수 추가, 편집 "
"및 제거; 그룹을 실행 중인 인스턴스에 연결 및 연결 해제; 그리고 인스턴스 생성 "
"중 그룹 지정을 포함합니다."
msgid ""
"The current caching initializes the instance list for the grow cluster "
"manager each time a new process would instantiate the manager. Changed to "
"manager to only initialize on creation."
msgstr ""
"현재 캐싱은 새로운 프로세스가 클러스터 확장 관리자를 초기화할 때마다 해당 관"
"리자에 대한 인스턴스 목록을 초기화합니다. 생성할 때에만 관리자를 초기화하도"
"록 변경하였습니다."
msgid "Trove Dashboard Release Notes"
msgstr "Trove 대시보드 릴리즈 노트"
msgid "Upgrade Notes"
msgstr "업그레이드 노트"
trove-dashboard-14.0.0/releasenotes/source/locale/de/ 0000775 0001750 0001750 00000000000 13656752365 022544 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/de/LC_MESSAGES/ 0000775 0001750 0001750 00000000000 13656752365 024331 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/de/LC_MESSAGES/releasenotes.po 0000664 0001750 0001750 00000006543 13656752263 027367 0 ustar zuul zuul 0000000 0000000 # Frank Kloeker , 2017. #zanata
# Robert Simai , 2018. #zanata
# Andreas Jaeger , 2019. #zanata
msgid ""
msgstr ""
"Project-Id-Version: trove-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-18 07:47+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2019-09-25 07:01+0000\n"
"Last-Translator: Andreas Jaeger \n"
"Language-Team: German\n"
"Language: de\n"
"X-Generator: Zanata 4.3.3\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
msgid "10.0.0"
msgstr "10.0.0"
msgid "11.0.0"
msgstr "11.0.0"
msgid "7.0.0"
msgstr "7.0.0"
msgid "8.0.0"
msgstr "8.0.0"
msgid ":ref:`search`"
msgstr ":ref:`search`"
msgid ""
"Added support for logging features in the dashboard. This includes listing "
"logs that can be retrieved and viewing, publishing and stop collection of "
"log contents."
msgstr ""
"Unterstützung für Loggingfunktionen im Dashboard hinzugefügt. Dies "
"beinhaltet die Auflistung abrufbarer Logdateien, sowie betrachten, "
"publizieren und stoppen der Aufzeichnung von Loginhalten."
msgid "Bug Fixes"
msgstr "Fehlerkorrekturen"
msgid "Contents:"
msgstr "Inhalt:"
msgid "Current Series Release Notes"
msgstr "Aktuelle Serie Releasenotes"
msgid "Display all endpoints in the dashboard's cluster details endpoint list."
msgstr ""
"Zeige alle Endpunkte in der Endpunktliste in den Clusterdetails im "
"Dashboard ."
msgid "Enable cluster grow and shrink panels for pxc."
msgstr "Aktivieren von Panels für pxc zum wachsen und schrumpfen von Clustern"
msgid "Enable cluster support for MariaDB and Cassandra."
msgstr "Clusterunterstützung für MariaDB und Cassandra aktiviert."
msgid "New Features"
msgstr "Neue Funktionen"
msgid "Newton Series Release Notes"
msgstr "Newton Serie Releasenotes"
msgid "Ocata Series Release Notes"
msgstr "Ocata Serie Releasenotes"
msgid "Pike Series Release Notes"
msgstr "Pike Serie Releasenotes"
msgid "Queens Series Release Notes"
msgstr "Queens Serie Releasenotes"
msgid "Rocky Series Release Notes"
msgstr "Rocky Serie Releasenotes"
msgid "Search"
msgstr "Suche"
msgid "Stein Series Release Notes"
msgstr "Stein Serie Releasenotes"
msgid ""
"Support configuration groups in the dashboard. This includes creating and "
"deleting groups; adding, editing and removing parameters; attaching and "
"detaching groups to running instances; and specifying a group during "
"instance creation."
msgstr ""
"Unterstützung für Konfigurationsgruppen im Dashboard. Dies schließt anlegen "
"und löschen von Gruppen ein, sowie hinzufügen, bearbeiten und entfernen von "
"Parametern, zuweisen und entfernen von Gruppen zu laufenden Instanzen und "
"die Angabe einer Gruppe während der Instanzerzeugung."
msgid ""
"The current caching initializes the instance list for the grow cluster "
"manager each time a new process would instantiate the manager. Changed to "
"manager to only initialize on creation."
msgstr ""
"Das aktuelle Caching initialisiert die Instanzliste für den für das Wachsen "
"zuständigen Cluster Manager jedes Mal, wenn ein neuer Prozess den Cluster "
"Manager instanzieren würde. Geändert auf Initialisierung nur bei der "
"Erstellung."
msgid "Trove Dashboard Release Notes"
msgstr "Trove Dashboard Releasenotes"
msgid "Upgrade Notes"
msgstr "Aktualisierungsnotizen"
trove-dashboard-14.0.0/releasenotes/source/locale/id/ 0000775 0001750 0001750 00000000000 13656752365 022550 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/id/LC_MESSAGES/ 0000775 0001750 0001750 00000000000 13656752365 024335 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/releasenotes/source/locale/id/LC_MESSAGES/releasenotes.po 0000664 0001750 0001750 00000010437 13656752263 027370 0 ustar zuul zuul 0000000 0000000 # suhartono , 2016. #zanata
# suhartono , 2017. #zanata
# suhartono , 2019. #zanata
msgid ""
msgstr ""
"Project-Id-Version: trove-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-14 14:47+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2019-01-21 05:01+0000\n"
"Last-Translator: suhartono \n"
"Language-Team: Indonesian\n"
"Language: id\n"
"X-Generator: Zanata 4.3.3\n"
"Plural-Forms: nplurals=1; plural=0\n"
msgid "10.0.0"
msgstr "10.0.0"
msgid "11.0.0"
msgstr "11.0.0"
msgid "7.0.0"
msgstr "7.0.0"
msgid "8.0.0"
msgstr "8.0.0"
msgid ":ref:`search`"
msgstr ":ref:`search`"
msgid ""
"Added support for logging features in the dashboard. This includes listing "
"logs that can be retrieved and viewing, publishing and stop collection of "
"log contents."
msgstr ""
"Dukungan diitambahkan untuk fitur login di dashboard. Ini termasuk log "
"daftar yang dapat diambil dan dilihat, penerbitan dan menghentikan koleksi "
"isi log."
msgid ""
"Adds support for restricting the launch instance datastore field to the "
"datastore and datastore version that the backup is relevant to. It also "
"populates the restored backup as the only option in the advanced step backup "
"field."
msgstr ""
"Menambahkan dukungan untuk membatasi launch instance datastore field ke "
"datastore dan versi datastore yang sesuai dengan backup. Ini juga mengisi "
"backup yang dipulihkan sebagai satu-satunya pilihan di backup field langkah "
"lanjutan."
msgid "Bug Fixes"
msgstr "Bug Fixes (perbaikan kesalahan)"
msgid "Contents:"
msgstr "Contents:"
msgid "Current Series Release Notes"
msgstr "Current Series Release Notes (catatan rilis Current Series)"
msgid "Display all endpoints in the dashboard's cluster details endpoint list."
msgstr ""
"Menampilkan semua endpoint dalam daftar rincian endpoint klaster dashboard."
msgid ""
"Django 2.0 is now supported and Django versions older than 1.11 are no "
"longer supported aligning with Django versions supported by horizon. Note "
"that Django 1.11 is still supported and this is the only version when you "
"use python 2.7."
msgstr ""
"Django 2.0 sekarang didukung dan versi Django yang lebih tua dari 1.11 tidak "
"lagi didukung menyelaraskan dengan versi Django yang didukung oleh horizon. "
"Perhatikan bahwa Django 1.11 masih didukung dan ini adalah satu-satunya "
"versi ketika Anda menggunakan python 2.7."
msgid "Enable cluster grow and shrink panels for pxc."
msgstr "Aktifkan klaster tumbuh dan ciutkan panel untuk PXC."
msgid "Enable cluster support for MariaDB and Cassandra."
msgstr "Aktifkan dukungan klaster MariaDB dan Cassandra."
msgid "New Features"
msgstr "New Features (fitur baru)"
msgid "Newton Series Release Notes"
msgstr "Newton Series Release Notes (catatan rilis Newton Series)"
msgid "Ocata Series Release Notes"
msgstr "Ocata Series Release Notes"
msgid "Pike Series Release Notes"
msgstr "Catatan Rilis Seri Pike"
msgid "Queens Series Release Notes"
msgstr "Catatan Rilis Seri Queens"
msgid "Rocky Series Release Notes"
msgstr "Rocky Series Release Notes"
msgid "Search"
msgstr "Search (mencari)"
msgid ""
"Support configuration groups in the dashboard. This includes creating and "
"deleting groups; adding, editing and removing parameters; attaching and "
"detaching groups to running instances; and specifying a group during "
"instance creation."
msgstr ""
"Mendukung kelompok konfigurasi di dashboard. Ini termasuk membuat dan "
"menghapus kelompok; menambahkan, mengedit dan menghapus parameter; "
"menghbungkan dan memisahkan kelompok untuk menjalankan instance; dan "
"menentukan kelompok selama pembuatan instance."
msgid ""
"The current caching initializes the instance list for the grow cluster "
"manager each time a new process would instantiate the manager. Changed to "
"manager to only initialize on creation."
msgstr ""
"Caching saat ini menginisialisasi daftar instance bagi manajer klaster "
"tumbuh setiap kali proses baru akan menginstantiate manajer. Diubah menjadi "
"manajer hanya menginisialisasi pada pembuatan."
msgid "Trove Dashboard Release Notes"
msgstr "Trove Dashboard Release Notes (catatan rilis Trove Dashboard)"
msgid "Upgrade Notes"
msgstr "Catatan Upgrade"
trove-dashboard-14.0.0/releasenotes/source/pike.rst 0000664 0001750 0001750 00000000217 13656752263 022374 0 ustar zuul zuul 0000000 0000000 ===================================
Pike Series Release Notes
===================================
.. release-notes::
:branch: stable/pike
trove-dashboard-14.0.0/manage.py 0000775 0001750 0001750 00000001477 13656752263 016537 0 ustar zuul zuul 0000000 0000000 #!/usr/bin/env python
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import os
import sys
from django.core.management import execute_from_command_line
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE",
"trove_dashboard.test.settings")
execute_from_command_line(sys.argv)
trove-dashboard-14.0.0/PKG-INFO 0000664 0001750 0001750 00000014457 13656752365 016034 0 ustar zuul zuul 0000000 0000000 Metadata-Version: 1.2
Name: trove-dashboard
Version: 14.0.0
Summary: Trove Management Dashboard
Home-page: https://docs.openstack.org/trove/latest
Author: OpenStack
Author-email: openstack-discuss@lists.openstack.org
License: UNKNOWN
Description: OpenStack Dashboard plugin for Trove project
============================================
.. image:: https://governance.openstack.org/tc/badges/trove-dashboard.svg
:target: https://governance.openstack.org/tc/reference/tags/index.html
How to use with Horizon on server:
----------------------------------
Use pip to install the package on the server running Horizon. Then either copy
or link the files in trove_dashboard/enabled to
openstack_dashboard/local/enabled. This step will cause the Horizon service to
pick up the trove plugin when it starts.
How to use with devstack:
-------------------------
Add the following to your devstack ``local.conf`` file::
enable_plugin trove-dashboard https://opendev.org/openstack/trove-dashboard
Here is a full example of devstack ``local.conf`` file that includes the trove plugin::
[[local|localrc]]
RECLONE=False
HOST_IP=
enable_plugin trove https://opendev.org/openstack/trove
enable_plugin trove-dashboard https://opendev.org/openstack/trove-dashboard
LIBS_FROM_GIT+=,python-troveclient
DATABASE_PASSWORD=password
ADMIN_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
RABBIT_PASSWORD=password
LOGFILE=$DEST/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=False
LOGDAYS=1
IPV4_ADDRS_SAFE_TO_USE=10.111.0.0/26
FIXED_RANGE=10.111.0.0/26
NETWORK_GATEWAY=10.111.0.1
FLOATING_RANGE=172.30.5.0/24
PUBLIC_NETWORK_GATEWAY=172.30.5.1
# Pre-requisites
ENABLED_SERVICES=rabbit,mysql,key
# Horizon
enable_service horizon
# Nova
enable_service n-api
enable_service n-cpu
enable_service n-cond
enable_service n-sch
enable_service n-api-meta
enable_service placement-api
enable_service placement-client
# Glance
enable_service g-api
enable_service g-reg
# Cinder
enable_service cinder
enable_service c-api
enable_service c-vol
enable_service c-sch
# Neutron
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
# enable DVR
Q_PLUGIN=ml2
Q_ML2_TENANT_NETWORK_TYPE=vxlan
Q_DVR_MODE=legacy
# Swift
ENABLED_SERVICES+=,swift
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_REPLICAS=1
To run unit tests:
------------------
::
./run_tests.sh
Editing Code
------------
Apache
~~~~~~
Make a change to trove-dashboard then goto to the horizon directory and
compress the code with django and then restart apache.::
# rsync code to /opt/stack/trove-dashboard
# copy or link files from trove-dashboard/enabled/* to horizon/openstack_dashboard/local/enabled/
cd /opt/stack/horizon
python manage.py compress
python manage.py collectstatic --noinput
sudo service apache2 restart
Django
~~~~~~
You can also speed up development time using the django test server instead of
apache.::
/opt/stack/horizon/run_tests.sh --runserver
If you set COMPRESS_ENABLED and COMPRESS_OFFLINE to False in local_settings.py
that allows you to bypass the compress and collectstatic as well.
Settings
~~~~~~~~
The use of a cross-process cache such as Memcached is required.
Install Memcached itself and a Memcached binding such as python-memcached.
For a single horizon instance use the CACHES setting like the example below.::
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
},
}
For multiple horizon instances behind a load balancer configure each instance
to use the same cache like the example below.::
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': [u'10.2.100.133:11211', u'10.2.100.134:11211'']
},
}
NOTE:
=====
As of the Mitaka release, the dashboard for trove is now maintained outside of
the Horizon codebase, in this repository.
Links:
------
Trove project: https://opendev.org/openstack/trove/
Trove at wiki.openstack.org: https://wiki.openstack.org/wiki/Trove
Launchpad project: https://launchpad.net/trove-dashboard
Platform: UNKNOWN
Classifier: Environment :: OpenStack
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3.6
trove-dashboard-14.0.0/test-requirements.txt 0000664 0001750 0001750 00000001060 13656752263 021157 0 ustar zuul zuul 0000000 0000000 # The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
hacking>=1.1.0,<1.2.0 # Apache-2.0
coverage>=3.6
ddt>=0.7.0
mock>=1.2
python-subunit>=0.0.18
selenium>=2.50.1 # Apache-2.0
sphinx>=1.6.2 # BSD
openstackdocstheme>=1.17.0 # Apache-2.0
testrepository>=0.0.18
testscenarios>=0.4
testtools>=1.4.0
# This also needs xvfb library installed on your OS
xvfbwrapper>=0.1.3 #license: MIT
reno>=1.6.2 # Apache2
trove-dashboard-14.0.0/AUTHORS 0000664 0001750 0001750 00000004643 13656752365 016003 0 ustar zuul zuul 0000000 0000000 Akihiro Motoki
Akihiro Motoki
Ali Adil
Ali Asgar Adil
Amrith Kumar
Amrith Kumar
Andreas Jaeger
Andrew Bramley
Charles Short
Corey Bryant
Craig Vyvial
David Lyle
Devin Carlen
Doug Hellmann
Duk Loi
Flavio Percoco
Gene Kuo
Ghanshyam Mann
He Yongli
Hirotaka Wakabayashi
Ian Wienand
Ishita Mandhan
Ivan Kolodyazhny
Marcin Piwowarczyk
Mark Giles
Masaki Matsushita
Masco Kaliyamoorthy
Matt Van Dijk
Matthias Runge
Michael Yu
Nguyen Hung Phuong
OpenStack Release Bot
Peter Stachowski
Rob Cresswell
Robert Myers
Samuel Matzek
Sean McGinnis
Steve Leon
Sushil Kumar
Swapnil Kulkarni (coolsvap)
Thomas Goirand
Tom Fifield
Victor Stinner
Vieri <15050873171@163.com>
Zhao Chao
caoyuan
chao liu
guotao
howardlee
huang.zhiping
jacky06
jiansong
kangyufei
lin-hua-cheng
lin-hua-cheng
lingyongxu
liyingjun
manchandavishal
melissaml
pengyuesheng
qiaomin
sharat.sharma
shu-mutou
skseeker
wangyao
woodm1979
yatinkarel
zhengwei6082
trove-dashboard-14.0.0/CONTRIBUTING.rst 0000664 0001750 0001750 00000001156 13656752263 017365 0 ustar zuul zuul 0000000 0000000 If you would like to contribute to the development of OpenStack,
you must follow the steps in this page:
https://docs.openstack.org/infra/manual/developers.html
You can find more trove specific info:
https://docs.openstack.org/trove/latest
Once those steps have been completed, changes to OpenStack
should be submitted for review via the Gerrit tool, following
the workflow documented at:
https://docs.openstack.org/infra/manual/developers.html#development-workflow
Pull requests submitted through GitHub will be ignored.
Bugs should be filed on Launchpad, not GitHub:
https://bugs.launchpad.net/trove
trove-dashboard-14.0.0/tools/ 0000775 0001750 0001750 00000000000 13656752365 016064 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/tools/clean_enabled_files.py 0000664 0001750 0001750 00000003222 13656752263 022350 0 ustar zuul zuul 0000000 0000000 # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# This file is temporarily needed to allow the conversion from integrated
# Sahara content in Horizon to plugin based content. Horizon currently defines
# the same module name data_processing and imports it by default. This utility
# removes the configuration files that are responsible for importing the old
# version of the module. Only Sahara content configuration files are effected
# in Horizon.
import os
from openstack_dashboard import enabled as local_enabled
from trove_dashboard import enabled
ROOT = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
WITH_VENV = os.path.join(ROOT, 'tools', 'with_venv.sh')
def main():
src_path = os.path.dirname(enabled.__file__)
dest_path = os.path.dirname(local_enabled.__file__)
src_files = os.listdir(src_path)
for file in src_files:
# skip the __init__.py or bad things happen
if file == "__init__.py":
continue
file_path = os.path.join(dest_path, file)
if os.path.isfile(file_path):
print ("removing ", file_path)
os.remove(file_path)
if __name__ == '__main__':
main()
trove-dashboard-14.0.0/tools/install_venv.py 0000664 0001750 0001750 00000012307 13656752263 021142 0 ustar zuul zuul 0000000 0000000 # Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 OpenStack, LLC
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""
Installation script for the OpenStack Dashboard development virtualenv.
"""
import os
import subprocess
import sys
ROOT = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
VENV = os.path.join(ROOT, '.venv')
WITH_VENV = os.path.join(ROOT, 'tools', 'with_venv.sh')
PIP_REQUIRES = os.path.join(ROOT, 'requirements.txt')
TEST_REQUIRES = os.path.join(ROOT, 'test-requirements.txt')
PIP_INSTALL_WRAPPER = os.path.join(ROOT, 'tools', 'pip_install.sh')
def die(message, *args):
print >> sys.stderr, message % args
sys.exit(1)
def run_command(cmd, redirect_output=True, check_exit_code=True, cwd=ROOT,
die_message=None):
"""
Runs a command in an out-of-process shell, returning the
output of that command. Working directory is ROOT.
"""
if redirect_output:
stdout = subprocess.PIPE
else:
stdout = None
proc = subprocess.Popen(cmd, cwd=cwd, stdout=stdout)
output = proc.communicate()[0]
if check_exit_code and proc.returncode != 0:
if die_message is None:
die('Command "%s" failed.\n%s', ' '.join(cmd), output)
else:
die(die_message)
return output
HAS_EASY_INSTALL = bool(run_command(['which', 'easy_install'],
check_exit_code=False).strip())
HAS_VIRTUALENV = bool(run_command(['which', 'virtualenv'],
check_exit_code=False).strip())
def check_dependencies():
"""Make sure virtualenv is in the path."""
print 'Checking dependencies...'
if not HAS_VIRTUALENV:
print 'Virtual environment not found.'
# Try installing it via easy_install...
if HAS_EASY_INSTALL:
print 'Installing virtualenv via easy_install...',
run_command(['easy_install', 'virtualenv'],
die_message='easy_install failed to install virtualenv'
'\ndevelopment requires virtualenv, please'
' install it using your favorite tool')
if not run_command(['which', 'virtualenv']):
die('ERROR: virtualenv not found in path.\n\ndevelopment '
' requires virtualenv, please install it using your'
' favorite package management tool and ensure'
' virtualenv is in your path')
print 'virtualenv installation done.'
else:
die('easy_install not found.\n\nInstall easy_install'
' (python-setuptools in ubuntu) or virtualenv by hand,'
' then rerun.')
print 'dependency check done.'
def create_virtualenv(venv=VENV):
"""Creates the virtual environment and installs PIP only into the
virtual environment
"""
print 'Creating venv...',
run_command(['virtualenv', '-q', '--no-site-packages', VENV])
print 'done.'
print 'Installing pip in virtualenv...',
if not run_command([WITH_VENV, 'easy_install', 'pip']).strip():
die("Failed to install pip.")
print 'done.'
print 'Installing distribute in virtualenv...'
pip_install('distribute>=0.6.24')
print 'done.'
def pip_install(*args):
args = [WITH_VENV, 'pip', 'install', '--upgrade'] + list(args)
run_command(args, redirect_output=False)
def pip_install_with_horizon(*args):
args = [WITH_VENV, PIP_INSTALL_WRAPPER, 'unconstrained'] + list(args)
run_command(args, redirect_output=False)
def install_dependencies(venv=VENV):
print "Installing dependencies..."
print "(This may take several minutes, don't panic)"
pip_install_with_horizon('-r', TEST_REQUIRES)
pip_install_with_horizon('-r', PIP_REQUIRES)
# Tell the virtual env how to "import dashboard"
py = 'python%d.%d' % (sys.version_info[0], sys.version_info[1])
pthfile = os.path.join(venv, "lib", py, "site-packages", "dashboard.pth")
f = open(pthfile, 'w')
f.write("%s\n" % ROOT)
def install_horizon():
print 'Installing horizon module in development mode...'
run_command([WITH_VENV, 'python', 'setup.py', 'develop'], cwd=ROOT)
def print_summary():
summary = """
Horizon development environment setup is complete.
To activate the virtualenv for the extent of your current shell session you
can run:
$ source .venv/bin/activate
"""
print summary
def main():
check_dependencies()
create_virtualenv()
install_dependencies()
install_horizon()
print_summary()
if __name__ == '__main__':
main()
trove-dashboard-14.0.0/tools/with_venv.sh 0000775 0001750 0001750 00000000325 13656752263 020431 0 ustar zuul zuul 0000000 0000000 #!/bin/bash
TOOLS_PATH=${TOOLS_PATH:-$(dirname $0)}
VENV_PATH=${VENV_PATH:-${TOOLS_PATH}}
VENV_DIR=${VENV_NAME:-/../.venv}
TOOLS=${TOOLS_PATH}
VENV=${VENV:-${VENV_PATH}/${VENV_DIR}}
. ${VENV}/bin/activate && "$@"
trove-dashboard-14.0.0/README.rst 0000664 0001750 0001750 00000010214 13656752263 016406 0 ustar zuul zuul 0000000 0000000 OpenStack Dashboard plugin for Trove project
============================================
.. image:: https://governance.openstack.org/tc/badges/trove-dashboard.svg
:target: https://governance.openstack.org/tc/reference/tags/index.html
How to use with Horizon on server:
----------------------------------
Use pip to install the package on the server running Horizon. Then either copy
or link the files in trove_dashboard/enabled to
openstack_dashboard/local/enabled. This step will cause the Horizon service to
pick up the trove plugin when it starts.
How to use with devstack:
-------------------------
Add the following to your devstack ``local.conf`` file::
enable_plugin trove-dashboard https://opendev.org/openstack/trove-dashboard
Here is a full example of devstack ``local.conf`` file that includes the trove plugin::
[[local|localrc]]
RECLONE=False
HOST_IP=
enable_plugin trove https://opendev.org/openstack/trove
enable_plugin trove-dashboard https://opendev.org/openstack/trove-dashboard
LIBS_FROM_GIT+=,python-troveclient
DATABASE_PASSWORD=password
ADMIN_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
RABBIT_PASSWORD=password
LOGFILE=$DEST/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=False
LOGDAYS=1
IPV4_ADDRS_SAFE_TO_USE=10.111.0.0/26
FIXED_RANGE=10.111.0.0/26
NETWORK_GATEWAY=10.111.0.1
FLOATING_RANGE=172.30.5.0/24
PUBLIC_NETWORK_GATEWAY=172.30.5.1
# Pre-requisites
ENABLED_SERVICES=rabbit,mysql,key
# Horizon
enable_service horizon
# Nova
enable_service n-api
enable_service n-cpu
enable_service n-cond
enable_service n-sch
enable_service n-api-meta
enable_service placement-api
enable_service placement-client
# Glance
enable_service g-api
enable_service g-reg
# Cinder
enable_service cinder
enable_service c-api
enable_service c-vol
enable_service c-sch
# Neutron
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
# enable DVR
Q_PLUGIN=ml2
Q_ML2_TENANT_NETWORK_TYPE=vxlan
Q_DVR_MODE=legacy
# Swift
ENABLED_SERVICES+=,swift
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_REPLICAS=1
To run unit tests:
------------------
::
./run_tests.sh
Editing Code
------------
Apache
~~~~~~
Make a change to trove-dashboard then goto to the horizon directory and
compress the code with django and then restart apache.::
# rsync code to /opt/stack/trove-dashboard
# copy or link files from trove-dashboard/enabled/* to horizon/openstack_dashboard/local/enabled/
cd /opt/stack/horizon
python manage.py compress
python manage.py collectstatic --noinput
sudo service apache2 restart
Django
~~~~~~
You can also speed up development time using the django test server instead of
apache.::
/opt/stack/horizon/run_tests.sh --runserver
If you set COMPRESS_ENABLED and COMPRESS_OFFLINE to False in local_settings.py
that allows you to bypass the compress and collectstatic as well.
Settings
~~~~~~~~
The use of a cross-process cache such as Memcached is required.
Install Memcached itself and a Memcached binding such as python-memcached.
For a single horizon instance use the CACHES setting like the example below.::
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
},
}
For multiple horizon instances behind a load balancer configure each instance
to use the same cache like the example below.::
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': [u'10.2.100.133:11211', u'10.2.100.134:11211'']
},
}
NOTE:
=====
As of the Mitaka release, the dashboard for trove is now maintained outside of
the Horizon codebase, in this repository.
Links:
------
Trove project: https://opendev.org/openstack/trove/
Trove at wiki.openstack.org: https://wiki.openstack.org/wiki/Trove
Launchpad project: https://launchpad.net/trove-dashboard
trove-dashboard-14.0.0/babel-djangojs.cfg 0000664 0001750 0001750 00000000061 13656752263 020241 0 ustar zuul zuul 0000000 0000000 [javascript: **.js]
[angular: **/static/**.html]
trove-dashboard-14.0.0/.zuul.yaml 0000664 0001750 0001750 00000000246 13656752263 016664 0 ustar zuul zuul 0000000 0000000 - project:
templates:
- check-requirements
- horizon-non-primary-django-jobs
- openstack-python3-ussuri-jobs
- release-notes-jobs-python3
trove-dashboard-14.0.0/setup.py 0000664 0001750 0001750 00000001267 13656752263 016441 0 ustar zuul zuul 0000000 0000000 # Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import setuptools
setuptools.setup(
setup_requires=['pbr>=1.8'],
pbr=True)
trove-dashboard-14.0.0/run_tests.sh 0000775 0001750 0001750 00000040436 13656752263 017315 0 ustar zuul zuul 0000000 0000000 #!/bin/bash
set -o errexit
function usage {
echo "Usage: $0 [OPTION]..."
echo "Run Horizon's test suite(s)"
echo ""
echo " -V, --virtual-env Always use virtualenv. Install automatically"
echo " if not present"
echo " -N, --no-virtual-env Don't use virtualenv. Run tests in local"
echo " environment"
echo " -c, --coverage Generate reports using Coverage"
echo " -f, --force Force a clean re-build of the virtual"
echo " environment. Useful when dependencies have"
echo " been added."
echo " -m, --manage Run a Django management command."
echo " --makemessages Create/Update English translation files."
echo " --compilemessages Compile all translation files."
echo " --check-only Do not update translation files (--makemessages only)."
echo " --pseudo Pseudo translate a language."
echo " -p, --pep8 Just run pep8"
echo " -8, --pep8-changed []"
echo " Just run PEP8 and HACKING compliance check"
echo " on files changed since HEAD~1 (or )"
echo " -P, --no-pep8 Don't run pep8 by default"
echo " -t, --tabs Check for tab characters in files."
echo " -y, --pylint Just run pylint"
echo " -q, --quiet Run non-interactively. (Relatively) quiet."
echo " Implies -V if -N is not set."
echo " --only-selenium Run only the Selenium unit tests"
echo " --with-selenium Run unit tests including Selenium tests"
echo " --selenium-headless Run Selenium tests headless"
echo " --integration Run the integration tests (requires a running "
echo " OpenStack environment)"
echo " --runserver Run the Django development server for"
echo " openstack_dashboard in the virtual"
echo " environment."
echo " --docs Just build the documentation"
echo " --backup-environment Make a backup of the environment on exit"
echo " --restore-environment Restore the environment before running"
echo " --destroy-environment Destroy the environment and exit"
echo " -h, --help Print this usage message"
echo ""
echo "Note: with no options specified, the script will try to run the tests in"
echo " a virtual environment, If no virtualenv is found, the script will ask"
echo " if you would like to create one. If you prefer to run tests NOT in a"
echo " virtual environment, simply pass the -N option."
exit
}
# DEFAULTS FOR RUN_TESTS.SH
#
root=`pwd -P`
venv=$root/.venv
venv_env_version=$venv/environments
with_venv=tools/with_venv.sh
included_dirs="trove_dashboard"
always_venv=0
backup_env=0
command_wrapper=""
destroy=0
force=0
just_pep8=0
just_pep8_changed=0
no_pep8=0
just_pylint=0
just_docs=0
just_tabs=0
never_venv=0
quiet=0
restore_env=0
runserver=0
only_selenium=0
with_selenium=0
selenium_headless=0
integration=0
testopts=""
testargs=""
with_coverage=0
makemessages=0
compilemessages=0
check_only=0
pseudo=0
manage=0
# Jenkins sets a "JOB_NAME" variable, if it's not set, we'll make it "default"
[ "$JOB_NAME" ] || JOB_NAME="default"
function process_option {
# If running manage command, treat the rest of options as arguments.
if [ $manage -eq 1 ]; then
testargs="$testargs $1"
return 0
fi
case "$1" in
-h|--help) usage;;
-V|--virtual-env) always_venv=1; never_venv=0;;
-N|--no-virtual-env) always_venv=0; never_venv=1;;
-p|--pep8) just_pep8=1;;
-8|--pep8-changed) just_pep8_changed=1;;
-P|--no-pep8) no_pep8=1;;
-y|--pylint) just_pylint=1;;
-f|--force) force=1;;
-t|--tabs) just_tabs=1;;
-q|--quiet) quiet=1;;
-c|--coverage) with_coverage=1;;
-m|--manage) manage=1;;
--makemessages) makemessages=1;;
--compilemessages) compilemessages=1;;
--check-only) check_only=1;;
--pseudo) pseudo=1;;
--only-selenium) only_selenium=1;;
--with-selenium) with_selenium=1;;
--selenium-headless) selenium_headless=1;;
--integration) integration=1;;
--docs) just_docs=1;;
--runserver) runserver=1;;
--backup-environment) backup_env=1;;
--restore-environment) restore_env=1;;
--destroy-environment) destroy=1;;
-*) testopts="$testopts $1";;
*) testargs="$testargs $1"
esac
}
function run_management_command {
${command_wrapper} python $root/manage.py $testopts $testargs
}
function run_server {
echo "Starting Django development server..."
${command_wrapper} python $root/manage.py runserver $testopts $testargs
echo "Server stopped."
}
function run_pylint {
echo "Running pylint ..."
PYTHONPATH=$root ${command_wrapper} pylint --rcfile=.pylintrc -f parseable $included_dirs > pylint.txt || true
CODE=$?
grep Global -A2 pylint.txt
if [ $CODE -lt 32 ]; then
echo "Completed successfully."
exit 0
else
echo "Completed with problems."
exit $CODE
fi
}
function warn_on_flake8_without_venv {
set +o errexit
${command_wrapper} python -c "import hacking" 2>/dev/null
no_hacking=$?
set -o errexit
if [ $never_venv -eq 1 -a $no_hacking -eq 1 ]; then
echo "**WARNING**:" >&2
echo "OpenStack hacking is not installed on your host. Its detection will be missed." >&2
echo "Please install or use virtual env if you need OpenStack hacking detection." >&2
fi
}
function run_pep8 {
echo "Running flake8 ..."
warn_on_flake8_without_venv
DJANGO_SETTINGS_MODULE=trove_dashboard.test.settings ${command_wrapper} flake8
}
function run_pep8_changed {
# NOTE(gilliard) We want use flake8 to check the entirety of every file that has
# a change in it. Unfortunately the --filenames argument to flake8 only accepts
# file *names* and there are no files named (eg) "nova/compute/manager.py". The
# --diff argument behaves surprisingly as well, because although you feed it a
# diff, it actually checks the file on disk anyway.
local base_commit=${testargs:-HEAD~1}
files=$(git diff --name-only $base_commit | tr '\n' ' ')
echo "Running flake8 on ${files}"
warn_on_flake8_without_venv
diff -u --from-file /dev/null ${files} | DJANGO_SETTINGS_MODULE=trove_dashboard.test.settings ${command_wrapper} flake8 --diff
exit
}
function run_sphinx {
echo "Building sphinx..."
DJANGO_SETTINGS_MODULE=trove_dashboard.test.settings ${command_wrapper} python setup.py build_sphinx
echo "Build complete."
}
function tab_check {
TAB_VIOLATIONS=`find $included_dirs -type f -regex ".*\.\(css\|js\|py\|html\)" -print0 | xargs -0 awk '/\t/' | wc -l`
if [ $TAB_VIOLATIONS -gt 0 ]; then
echo "TABS! $TAB_VIOLATIONS of them! Oh no!"
HORIZON_FILES=`find $included_dirs -type f -regex ".*\.\(css\|js\|py|\html\)"`
for TABBED_FILE in $HORIZON_FILES
do
TAB_COUNT=`awk '/\t/' $TABBED_FILE | wc -l`
if [ $TAB_COUNT -gt 0 ]; then
echo "$TABBED_FILE: $TAB_COUNT"
fi
done
fi
return $TAB_VIOLATIONS;
}
function destroy_venv {
echo "Cleaning environment..."
echo "Removing virtualenv..."
rm -rf $venv
echo "Virtualenv removed."
}
function environment_check {
echo "Checking environment."
if [ -f $venv_env_version ]; then
set +o errexit
cat requirements.txt test-requirements.txt | cmp $venv_env_version - > /dev/null
local env_check_result=$?
set -o errexit
if [ $env_check_result -eq 0 ]; then
# If the environment exists and is up-to-date then set our variables
command_wrapper="${root}/${with_venv}"
echo "Environment is up to date."
return 0
fi
fi
if [ $always_venv -eq 1 ]; then
install_venv
else
if [ ! -e ${venv} ]; then
echo -e "Environment not found. Install? (Y/n) \c"
else
echo -e "Your environment appears to be out of date. Update? (Y/n) \c"
fi
read update_env
if [ "x$update_env" = "xY" -o "x$update_env" = "x" -o "x$update_env" = "xy" ]; then
install_venv
else
# Set our command wrapper anyway.
command_wrapper="${root}/${with_venv}"
fi
fi
}
function sanity_check {
# Anything that should be determined prior to running the tests, server, etc.
# Don't sanity-check anything environment-related in -N flag is set
if [ $never_venv -eq 0 ]; then
if [ ! -e ${venv} ]; then
echo "Virtualenv not found at $venv. Did install_venv.py succeed?"
exit 1
fi
fi
# Remove .pyc files. This is sanity checking because they can linger
# after old files are deleted.
find . -name "*.pyc" -exec rm -rf {} \;
}
function backup_environment {
if [ $backup_env -eq 1 ]; then
echo "Backing up environment \"$JOB_NAME\"..."
if [ ! -e ${venv} ]; then
echo "Environment not installed. Cannot back up."
return 0
fi
if [ -d /tmp/.horizon_environment/$JOB_NAME ]; then
mv /tmp/.horizon_environment/$JOB_NAME /tmp/.horizon_environment/$JOB_NAME.old
rm -rf /tmp/.horizon_environment/$JOB_NAME
fi
mkdir -p /tmp/.horizon_environment/$JOB_NAME
cp -r $venv /tmp/.horizon_environment/$JOB_NAME/
# Remove the backup now that we've completed successfully
rm -rf /tmp/.horizon_environment/$JOB_NAME.old
echo "Backup completed"
fi
}
function restore_environment {
if [ $restore_env -eq 1 ]; then
echo "Restoring environment from backup..."
if [ ! -d /tmp/.horizon_environment/$JOB_NAME ]; then
echo "No backup to restore from."
return 0
fi
cp -r /tmp/.horizon_environment/$JOB_NAME/.venv ./ || true
echo "Environment restored successfully."
fi
}
function install_venv {
# Install with install_venv.py
export PIP_DOWNLOAD_CACHE=${PIP_DOWNLOAD_CACHE-/tmp/.pip_download_cache}
export PIP_USE_MIRRORS=true
if [ $quiet -eq 1 ]; then
export PIP_NO_INPUT=true
fi
echo "Fetching new src packages..."
rm -rf $venv/src
python tools/install_venv.py
command_wrapper="$root/${with_venv}"
# Make sure it worked and record the environment version
sanity_check
chmod -R 754 $venv
cat requirements.txt test-requirements.txt > $venv_env_version
}
function run_tests {
sanity_check
if [ $with_selenium -eq 1 ]; then
export WITH_SELENIUM=1
elif [ $only_selenium -eq 1 ]; then
export WITH_SELENIUM=1
export SKIP_UNITTESTS=1
fi
if [ $selenium_headless -eq 1 ]; then
export SELENIUM_HEADLESS=1
fi
# TODO(david-lyle) remove when configuration files for Trove are not loaded
# by default in Horizon
${command_wrapper} python tools/clean_enabled_files.py
if [ -z "$testargs" ]; then
run_tests_all
else
run_tests_subset
fi
}
function run_tests_subset {
project=`echo $testargs | awk -F. '{print $1}'`
${command_wrapper} python $root/manage.py test --settings=$project.test.settings $testopts $testargs
}
function run_tests_all {
echo "Running trove_dashboard application tests"
export NOSE_XUNIT_FILE=trove_dashboard/nosetests.xml
if [ "$NOSE_WITH_HTML_OUTPUT" = '1' ]; then
export NOSE_HTML_OUT_FILE='trove_dashboard_nose_results.html'
fi
if [ $with_coverage -eq 1 ]; then
${command_wrapper} python -m coverage.__main__ erase
coverage_run="python -m coverage.__main__ run -p"
fi
${command_wrapper} ${coverage_run} $root/manage.py test trove_dashboard --settings=trove_dashboard.test.settings $testopts
# get results of the Horizon tests
trove_dashboard_RESULT=$?
if [ $with_coverage -eq 1 ]; then
echo "Generating coverage reports"
${command_wrapper} python -m coverage.__main__ combine
${command_wrapper} python -m coverage.__main__ xml -i --omit='/usr*,setup.py,*egg*,.venv/*'
${command_wrapper} python -m coverage.__main__ html -i --omit='/usr*,setup.py,*egg*,.venv/*' -d reports
fi
# Remove the leftover coverage files from the -p flag earlier.
rm -f .coverage.*
PEP8_RESULT=0
if [ $no_pep8 -eq 0 ] && [ $only_selenium -eq 0 ]; then
run_pep8
PEP8_RESULT=$?
fi
TEST_RESULT=$(($trove_dashboard_RESULT || $PEP8_RESULT))
if [ $TEST_RESULT -eq 0 ]; then
echo "Tests completed successfully."
else
echo "Tests failed."
fi
exit $TEST_RESULT
}
function run_integration_tests {
export INTEGRATION_TESTS=1
if [ $selenium_headless -eq 1 ]; then
export SELENIUM_HEADLESS=1
fi
export HORIZON_INTEGRATION_TESTS_CONFIG_FILE="trove_dashboard/test/integration_tests/horizon.conf"
echo "Running Horizon integration tests..."
if [ -z "$testargs" ]; then
${command_wrapper} nosetests trove_dashboard/test/integration_tests/tests
else
${command_wrapper} nosetests $testargs
fi
exit 0
}
function run_makemessages {
OPTS="-l en --no-obsolete --settings=openstack_dashboard.test.settings"
DASHBOARD_OPTS="--extension=html,txt,csv --ignore=openstack"
echo -n "horizon: "
cd horizon
${command_wrapper} $root/manage.py makemessages $OPTS
HORIZON_PY_RESULT=$?
echo -n "horizon javascript: "
${command_wrapper} $root/manage.py makemessages -d djangojs $OPTS
HORIZON_JS_RESULT=$?
echo -n "openstack_dashboard: "
cd ../openstack_dashboard
${command_wrapper} $root/manage.py makemessages $DASHBOARD_OPTS $OPTS
DASHBOARD_RESULT=$?
cd ..
if [ $check_only -eq 1 ]; then
git checkout -- horizon/locale/en/LC_MESSAGES/django*.po
git checkout -- openstack_dashboard/locale/en/LC_MESSAGES/django.po
fi
exit $(($HORIZON_PY_RESULT || $HORIZON_JS_RESULT || $DASHBOARD_RESULT))
}
function run_compilemessages {
OPTS="--settings=openstack_dashboard.test.settings"
cd horizon
${command_wrapper} $root/manage.py compilemessages $OPTS
HORIZON_PY_RESULT=$?
cd ../openstack_dashboard
${command_wrapper} $root/manage.py compilemessages $OPTS
DASHBOARD_RESULT=$?
cd ..
# English is the source language, so compiled catalogs are unnecessary.
rm -vf horizon/locale/en/LC_MESSAGES/django*.mo
rm -vf openstack_dashboard/locale/en/LC_MESSAGES/django.mo
exit $(($HORIZON_PY_RESULT || $DASHBOARD_RESULT))
}
function run_pseudo {
for lang in $testargs
# Use English po file as the source file/pot file just like real Horizon translations
do
${command_wrapper} $root/tools/pseudo.py openstack_dashboard/locale/en/LC_MESSAGES/django.po openstack_dashboard/locale/$lang/LC_MESSAGES/django.po $lang
${command_wrapper} $root/tools/pseudo.py horizon/locale/en/LC_MESSAGES/django.po horizon/locale/$lang/LC_MESSAGES/django.po $lang
${command_wrapper} $root/tools/pseudo.py horizon/locale/en/LC_MESSAGES/djangojs.po horizon/locale/$lang/LC_MESSAGES/djangojs.po $lang
done
exit $?
}
# ---------PREPARE THE ENVIRONMENT------------ #
# PROCESS ARGUMENTS, OVERRIDE DEFAULTS
for arg in "$@"; do
process_option $arg
done
if [ $quiet -eq 1 ] && [ $never_venv -eq 0 ] && [ $always_venv -eq 0 ]
then
always_venv=1
fi
# If destroy is set, just blow it away and exit.
if [ $destroy -eq 1 ]; then
destroy_venv
exit 0
fi
# Ignore all of this if the -N flag was set
if [ $never_venv -eq 0 ]; then
# Restore previous environment if desired
if [ $restore_env -eq 1 ]; then
restore_environment
fi
# Remove the virtual environment if --force used
if [ $force -eq 1 ]; then
destroy_venv
fi
# Then check if it's up-to-date
environment_check
# Create a backup of the up-to-date environment if desired
if [ $backup_env -eq 1 ]; then
backup_environment
fi
fi
# ---------EXERCISE THE CODE------------ #
# Run management commands
if [ $manage -eq 1 ]; then
run_management_command
exit $?
fi
# Build the docs
if [ $just_docs -eq 1 ]; then
run_sphinx
exit $?
fi
# Update translation files
if [ $makemessages -eq 1 ]; then
run_makemessages
exit $?
fi
# Compile translation files
if [ $compilemessages -eq 1 ]; then
run_compilemessages
exit $?
fi
# Generate Pseudo translation
if [ $pseudo -eq 1 ]; then
run_pseudo
exit $?
fi
# PEP8
if [ $just_pep8 -eq 1 ]; then
run_pep8
exit $?
fi
if [ $just_pep8_changed -eq 1 ]; then
run_pep8_changed
exit $?
fi
# Pylint
if [ $just_pylint -eq 1 ]; then
run_pylint
exit $?
fi
# Tab checker
if [ $just_tabs -eq 1 ]; then
tab_check
exit $?
fi
# Integration tests
if [ $integration -eq 1 ]; then
run_integration_tests
exit $?
fi
# Django development server
if [ $runserver -eq 1 ]; then
run_server
exit $?
fi
# Full test suite
run_tests || exit
trove-dashboard-14.0.0/devstack/ 0000775 0001750 0001750 00000000000 13656752365 016530 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/devstack/settings 0000664 0001750 0001750 00000000112 13656752263 020302 0 ustar zuul zuul 0000000 0000000 # settings file for trove-dashboard plugin
enable_service trove-dashboard
trove-dashboard-14.0.0/devstack/plugin.sh 0000664 0001750 0001750 00000003146 13656752263 020363 0 ustar zuul zuul 0000000 0000000 # plugin.sh - DevStack plugin.sh dispatch script trove-dashboard
TROVE_DASHBOARD_DIR=$(cd $(dirname $BASH_SOURCE)/.. && pwd)
function install_trove_dashboard {
setup_develop ${TROVE_DASHBOARD_DIR}
}
function configure_trove_dashboard {
cp -a ${TROVE_DASHBOARD_DIR}/trove_dashboard/enabled/* ${DEST}/horizon/openstack_dashboard/local/enabled/
# NOTE: If locale directory does not exist, compilemessages will fail,
# so check for an existence of locale directory is required.
if [ -d ${TROVE_DASHBOARD_DIR}/trove_dashboard/locale ]; then
(cd ${TROVE_DASHBOARD_DIR}/trove_dashboard; DJANGO_SETTINGS_MODULE=openstack_dashboard.settings $PYTHON ../manage.py compilemessages)
fi
}
# check for service enabled
if is_service_enabled trove-dashboard; then
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
# Set up system services
# no-op
:
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
# Perform installation of service source
echo_summary "Installing Trove UI"
install_trove_dashboard
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
# Configure after the other layer 1 and 2 services have been configured
echo_summary "Configurng Trove UI"
configure_trove_dashboard
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# no-op
:
fi
if [[ "$1" == "unstack" ]]; then
# no-op
:
fi
if [[ "$1" == "clean" ]]; then
# Remove state and transient data
# Remember clean.sh first calls unstack.sh
# no-op
:
fi
fi
trove-dashboard-14.0.0/LICENSE 0000664 0001750 0001750 00000023637 13656752263 015741 0 ustar zuul zuul 0000000 0000000
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
trove-dashboard-14.0.0/trove_dashboard.egg-info/ 0000775 0001750 0001750 00000000000 13656752365 021564 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard.egg-info/dependency_links.txt 0000664 0001750 0001750 00000000001 13656752365 025632 0 ustar zuul zuul 0000000 0000000
trove-dashboard-14.0.0/trove_dashboard.egg-info/requires.txt 0000664 0001750 0001750 00000000136 13656752365 024164 0 ustar zuul zuul 0000000 0000000 pbr>=1.6
oslo.log>=3.30.0
python-swiftclient>=2.2.0
python-troveclient>=1.2.0
horizon>=17.1.0
trove-dashboard-14.0.0/trove_dashboard.egg-info/pbr.json 0000664 0001750 0001750 00000000056 13656752365 023243 0 ustar zuul zuul 0000000 0000000 {"git_version": "a92ba65", "is_release": true} trove-dashboard-14.0.0/trove_dashboard.egg-info/PKG-INFO 0000664 0001750 0001750 00000014457 13656752365 022674 0 ustar zuul zuul 0000000 0000000 Metadata-Version: 1.2
Name: trove-dashboard
Version: 14.0.0
Summary: Trove Management Dashboard
Home-page: https://docs.openstack.org/trove/latest
Author: OpenStack
Author-email: openstack-discuss@lists.openstack.org
License: UNKNOWN
Description: OpenStack Dashboard plugin for Trove project
============================================
.. image:: https://governance.openstack.org/tc/badges/trove-dashboard.svg
:target: https://governance.openstack.org/tc/reference/tags/index.html
How to use with Horizon on server:
----------------------------------
Use pip to install the package on the server running Horizon. Then either copy
or link the files in trove_dashboard/enabled to
openstack_dashboard/local/enabled. This step will cause the Horizon service to
pick up the trove plugin when it starts.
How to use with devstack:
-------------------------
Add the following to your devstack ``local.conf`` file::
enable_plugin trove-dashboard https://opendev.org/openstack/trove-dashboard
Here is a full example of devstack ``local.conf`` file that includes the trove plugin::
[[local|localrc]]
RECLONE=False
HOST_IP=
enable_plugin trove https://opendev.org/openstack/trove
enable_plugin trove-dashboard https://opendev.org/openstack/trove-dashboard
LIBS_FROM_GIT+=,python-troveclient
DATABASE_PASSWORD=password
ADMIN_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
RABBIT_PASSWORD=password
LOGFILE=$DEST/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=False
LOGDAYS=1
IPV4_ADDRS_SAFE_TO_USE=10.111.0.0/26
FIXED_RANGE=10.111.0.0/26
NETWORK_GATEWAY=10.111.0.1
FLOATING_RANGE=172.30.5.0/24
PUBLIC_NETWORK_GATEWAY=172.30.5.1
# Pre-requisites
ENABLED_SERVICES=rabbit,mysql,key
# Horizon
enable_service horizon
# Nova
enable_service n-api
enable_service n-cpu
enable_service n-cond
enable_service n-sch
enable_service n-api-meta
enable_service placement-api
enable_service placement-client
# Glance
enable_service g-api
enable_service g-reg
# Cinder
enable_service cinder
enable_service c-api
enable_service c-vol
enable_service c-sch
# Neutron
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
# enable DVR
Q_PLUGIN=ml2
Q_ML2_TENANT_NETWORK_TYPE=vxlan
Q_DVR_MODE=legacy
# Swift
ENABLED_SERVICES+=,swift
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_REPLICAS=1
To run unit tests:
------------------
::
./run_tests.sh
Editing Code
------------
Apache
~~~~~~
Make a change to trove-dashboard then goto to the horizon directory and
compress the code with django and then restart apache.::
# rsync code to /opt/stack/trove-dashboard
# copy or link files from trove-dashboard/enabled/* to horizon/openstack_dashboard/local/enabled/
cd /opt/stack/horizon
python manage.py compress
python manage.py collectstatic --noinput
sudo service apache2 restart
Django
~~~~~~
You can also speed up development time using the django test server instead of
apache.::
/opt/stack/horizon/run_tests.sh --runserver
If you set COMPRESS_ENABLED and COMPRESS_OFFLINE to False in local_settings.py
that allows you to bypass the compress and collectstatic as well.
Settings
~~~~~~~~
The use of a cross-process cache such as Memcached is required.
Install Memcached itself and a Memcached binding such as python-memcached.
For a single horizon instance use the CACHES setting like the example below.::
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
},
}
For multiple horizon instances behind a load balancer configure each instance
to use the same cache like the example below.::
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': [u'10.2.100.133:11211', u'10.2.100.134:11211'']
},
}
NOTE:
=====
As of the Mitaka release, the dashboard for trove is now maintained outside of
the Horizon codebase, in this repository.
Links:
------
Trove project: https://opendev.org/openstack/trove/
Trove at wiki.openstack.org: https://wiki.openstack.org/wiki/Trove
Launchpad project: https://launchpad.net/trove-dashboard
Platform: UNKNOWN
Classifier: Environment :: OpenStack
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3.6
trove-dashboard-14.0.0/trove_dashboard.egg-info/top_level.txt 0000664 0001750 0001750 00000000020 13656752365 024306 0 ustar zuul zuul 0000000 0000000 trove_dashboard
trove-dashboard-14.0.0/trove_dashboard.egg-info/not-zip-safe 0000664 0001750 0001750 00000000001 13656752365 024012 0 ustar zuul zuul 0000000 0000000
trove-dashboard-14.0.0/trove_dashboard.egg-info/SOURCES.txt 0000664 0001750 0001750 00000027704 13656752365 023462 0 ustar zuul zuul 0000000 0000000 .zuul.yaml
AUTHORS
CONTRIBUTING.rst
ChangeLog
HACKING.rst
LICENSE
MANIFEST.in
README.rst
babel-django.cfg
babel-djangojs.cfg
manage.py
requirements.txt
run_tests.sh
setup.cfg
setup.py
test-requirements.txt
tox.ini
devstack/plugin.sh
devstack/settings
releasenotes/notes/.placeholder
releasenotes/notes/cluster-endpoints-52bbb9f1c146ae97.yaml
releasenotes/notes/conf-groups-7bc8115f8d0bcd14.yaml
releasenotes/notes/django20-support-fd32553ded354e56.yaml
releasenotes/notes/drop-py-2-7-ee223d109e3bd38e.yaml
releasenotes/notes/enable-cluster-mariabdb-cassandra-11f3f7f6badfc211.yaml
releasenotes/notes/enable-pxc-grow-shrink-17568a1c280f1c42.yaml
releasenotes/notes/fix-grow-cluster-cache-5625d1a519a4ee01.yaml
releasenotes/notes/logging-support-f999a1b1b342eb4d.yaml
releasenotes/notes/restrict-launch-fields-on-restore-from-backup-8a32174e27f185dc.yaml
releasenotes/source/conf.py
releasenotes/source/index.rst
releasenotes/source/newton.rst
releasenotes/source/ocata.rst
releasenotes/source/pike.rst
releasenotes/source/queens.rst
releasenotes/source/rocky.rst
releasenotes/source/stein.rst
releasenotes/source/train.rst
releasenotes/source/unreleased.rst
releasenotes/source/_static/.placeholder
releasenotes/source/_templates/.placeholder
releasenotes/source/locale/de/LC_MESSAGES/releasenotes.po
releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po
releasenotes/source/locale/fr/LC_MESSAGES/releasenotes.po
releasenotes/source/locale/id/LC_MESSAGES/releasenotes.po
releasenotes/source/locale/ja/LC_MESSAGES/releasenotes.po
releasenotes/source/locale/ko_KR/LC_MESSAGES/releasenotes.po
releasenotes/source/locale/ru/LC_MESSAGES/releasenotes.po
releasenotes/source/locale/zh_CN/LC_MESSAGES/releasenotes.po
tools/clean_enabled_files.py
tools/install_venv.py
tools/with_venv.sh
trove_dashboard/__init__.py
trove_dashboard/exceptions.py
trove_dashboard/version.py
trove_dashboard.egg-info/PKG-INFO
trove_dashboard.egg-info/SOURCES.txt
trove_dashboard.egg-info/dependency_links.txt
trove_dashboard.egg-info/not-zip-safe
trove_dashboard.egg-info/pbr.json
trove_dashboard.egg-info/requires.txt
trove_dashboard.egg-info/top_level.txt
trove_dashboard/api/__init__.py
trove_dashboard/api/trove.py
trove_dashboard/api/rest/__init__.py
trove_dashboard/api/rest/trove.py
trove_dashboard/content/__init__.py
trove_dashboard/content/database_backups/__init__.py
trove_dashboard/content/database_backups/panel.py
trove_dashboard/content/database_backups/tables.py
trove_dashboard/content/database_backups/tests.py
trove_dashboard/content/database_backups/urls.py
trove_dashboard/content/database_backups/views.py
trove_dashboard/content/database_backups/templates/database_backups/_backup_details_help.html
trove_dashboard/content/database_backups/templates/database_backups/backup.html
trove_dashboard/content/database_backups/templates/database_backups/details.html
trove_dashboard/content/database_backups/templates/database_backups/index.html
trove_dashboard/content/database_backups/workflows/__init__.py
trove_dashboard/content/database_backups/workflows/create_backup.py
trove_dashboard/content/database_clusters/__init__.py
trove_dashboard/content/database_clusters/cluster_manager.py
trove_dashboard/content/database_clusters/forms.py
trove_dashboard/content/database_clusters/panel.py
trove_dashboard/content/database_clusters/tables.py
trove_dashboard/content/database_clusters/tabs.py
trove_dashboard/content/database_clusters/tests.py
trove_dashboard/content/database_clusters/urls.py
trove_dashboard/content/database_clusters/views.py
trove_dashboard/content/database_clusters/templates/database_clusters/_add_instance.html
trove_dashboard/content/database_clusters/templates/database_clusters/_detail_overview.html
trove_dashboard/content/database_clusters/templates/database_clusters/_detail_overview_cassandra.html
trove_dashboard/content/database_clusters/templates/database_clusters/_detail_overview_mongodb.html
trove_dashboard/content/database_clusters/templates/database_clusters/_detail_overview_mysql.html
trove_dashboard/content/database_clusters/templates/database_clusters/_detail_overview_redis.html
trove_dashboard/content/database_clusters/templates/database_clusters/_detail_overview_vertica.html
trove_dashboard/content/database_clusters/templates/database_clusters/_launch.html
trove_dashboard/content/database_clusters/templates/database_clusters/_reset_password.html
trove_dashboard/content/database_clusters/templates/database_clusters/add_instance.html
trove_dashboard/content/database_clusters/templates/database_clusters/cluster_grow_details.html
trove_dashboard/content/database_clusters/templates/database_clusters/cluster_shrink_details.html
trove_dashboard/content/database_clusters/templates/database_clusters/index.html
trove_dashboard/content/database_clusters/templates/database_clusters/launch.html
trove_dashboard/content/database_clusters/templates/database_clusters/reset_password.html
trove_dashboard/content/database_configurations/__init__.py
trove_dashboard/content/database_configurations/config_param_manager.py
trove_dashboard/content/database_configurations/forms.py
trove_dashboard/content/database_configurations/panel.py
trove_dashboard/content/database_configurations/tables.py
trove_dashboard/content/database_configurations/tabs.py
trove_dashboard/content/database_configurations/tests.py
trove_dashboard/content/database_configurations/urls.py
trove_dashboard/content/database_configurations/views.py
trove_dashboard/content/database_configurations/templates/database_configurations/_add_parameter.html
trove_dashboard/content/database_configurations/templates/database_configurations/_create.html
trove_dashboard/content/database_configurations/templates/database_configurations/_detail_overview.html
trove_dashboard/content/database_configurations/templates/database_configurations/add_parameter.html
trove_dashboard/content/database_configurations/templates/database_configurations/create.html
trove_dashboard/content/database_configurations/templates/database_configurations/detail_param.html
trove_dashboard/content/database_configurations/templates/database_configurations/details.html
trove_dashboard/content/database_configurations/templates/database_configurations/index.html
trove_dashboard/content/databases/__init__.py
trove_dashboard/content/databases/db_capability.py
trove_dashboard/content/databases/forms.py
trove_dashboard/content/databases/panel.py
trove_dashboard/content/databases/tables.py
trove_dashboard/content/databases/tabs.py
trove_dashboard/content/databases/tests.py
trove_dashboard/content/databases/urls.py
trove_dashboard/content/databases/views.py
trove_dashboard/content/databases/logs/__init__.py
trove_dashboard/content/databases/logs/tables.py
trove_dashboard/content/databases/logs/tests.py
trove_dashboard/content/databases/logs/urls.py
trove_dashboard/content/databases/logs/views.py
trove_dashboard/content/databases/templates/databases/_attach_config.html
trove_dashboard/content/databases/templates/databases/_create_database.html
trove_dashboard/content/databases/templates/databases/_create_user.html
trove_dashboard/content/databases/templates/databases/_detail_overview.html
trove_dashboard/content/databases/templates/databases/_detail_overview_cassandra.html
trove_dashboard/content/databases/templates/databases/_detail_overview_couchbase.html
trove_dashboard/content/databases/templates/databases/_detail_overview_mongodb.html
trove_dashboard/content/databases/templates/databases/_detail_overview_mysql.html
trove_dashboard/content/databases/templates/databases/_detail_overview_postgresql.html
trove_dashboard/content/databases/templates/databases/_detail_overview_redis.html
trove_dashboard/content/databases/templates/databases/_edit_user.html
trove_dashboard/content/databases/templates/databases/_launch_advanced_help.html
trove_dashboard/content/databases/templates/databases/_launch_details_help.html
trove_dashboard/content/databases/templates/databases/_launch_initialize_help.html
trove_dashboard/content/databases/templates/databases/_launch_network_help.html
trove_dashboard/content/databases/templates/databases/_launch_networks.html
trove_dashboard/content/databases/templates/databases/_promote_to_replica_source.html
trove_dashboard/content/databases/templates/databases/_resize_instance.html
trove_dashboard/content/databases/templates/databases/_resize_volume.html
trove_dashboard/content/databases/templates/databases/access_detail.html
trove_dashboard/content/databases/templates/databases/attach_config.html
trove_dashboard/content/databases/templates/databases/create_database.html
trove_dashboard/content/databases/templates/databases/create_user.html
trove_dashboard/content/databases/templates/databases/edit_user.html
trove_dashboard/content/databases/templates/databases/index.html
trove_dashboard/content/databases/templates/databases/launch.html
trove_dashboard/content/databases/templates/databases/manage_root.html
trove_dashboard/content/databases/templates/databases/promote_to_replica_source.html
trove_dashboard/content/databases/templates/databases/resize_instance.html
trove_dashboard/content/databases/templates/databases/resize_volume.html
trove_dashboard/content/databases/templates/databases/logs/_detail_log.html
trove_dashboard/content/databases/templates/databases/logs/_log_contents.html
trove_dashboard/content/databases/templates/databases/logs/log_contents.html
trove_dashboard/content/databases/templates/databases/logs/view_log.html
trove_dashboard/content/databases/workflows/__init__.py
trove_dashboard/content/databases/workflows/create_instance.py
trove_dashboard/content/ng_database_backups/__init__.py
trove_dashboard/content/ng_database_backups/panel.py
trove_dashboard/content/ng_database_backups/urls.py
trove_dashboard/content/ng_database_backups/views.py
trove_dashboard/content/ng_database_backups/templates/ng_database_backups/index.html
trove_dashboard/enabled/_1710_database_panel_group.py
trove_dashboard/enabled/_1720_project_databases_panel.py
trove_dashboard/enabled/_1730_project_database_backups_panel.py
trove_dashboard/enabled/_1731_project_database_backups_panel.py
trove_dashboard/enabled/_1740_project_database_clusters_panel.py
trove_dashboard/enabled/_1760_project_database_configurations_panel.py
trove_dashboard/enabled/__init__.py
trove_dashboard/locale/cs/LC_MESSAGES/django.po
trove_dashboard/locale/de/LC_MESSAGES/django.po
trove_dashboard/locale/de/LC_MESSAGES/djangojs.po
trove_dashboard/locale/en_GB/LC_MESSAGES/django.po
trove_dashboard/locale/en_GB/LC_MESSAGES/djangojs.po
trove_dashboard/locale/fr/LC_MESSAGES/django.po
trove_dashboard/locale/fr/LC_MESSAGES/djangojs.po
trove_dashboard/locale/id/LC_MESSAGES/django.po
trove_dashboard/locale/id/LC_MESSAGES/djangojs.po
trove_dashboard/locale/ja/LC_MESSAGES/django.po
trove_dashboard/locale/ja/LC_MESSAGES/djangojs.po
trove_dashboard/locale/ko_KR/LC_MESSAGES/django.po
trove_dashboard/locale/ko_KR/LC_MESSAGES/djangojs.po
trove_dashboard/locale/pt_BR/LC_MESSAGES/django.po
trove_dashboard/locale/pt_BR/LC_MESSAGES/djangojs.po
trove_dashboard/locale/ru/LC_MESSAGES/django.po
trove_dashboard/locale/ru/LC_MESSAGES/djangojs.po
trove_dashboard/locale/tr_TR/LC_MESSAGES/django.po
trove_dashboard/locale/tr_TR/LC_MESSAGES/djangojs.po
trove_dashboard/locale/zh_CN/LC_MESSAGES/django.po
trove_dashboard/locale/zh_CN/LC_MESSAGES/djangojs.po
trove_dashboard/static/app/core/openstack-service-api/trove.service.js
trove_dashboard/static/dashboard/project/ngbackups/backups.module.js
trove_dashboard/static/dashboard/project/ngbackups/backups.module.spec.js
trove_dashboard/static/dashboard/project/ngbackups/table/table.config.js
trove_dashboard/static/dashboard/project/ngbackups/table/table.controller.js
trove_dashboard/static/dashboard/project/ngbackups/table/table.html
trove_dashboard/test/__init__.py
trove_dashboard/test/helpers.py
trove_dashboard/test/settings.py
trove_dashboard/test/urls.py
trove_dashboard/test/test_data/__init__.py
trove_dashboard/test/test_data/exceptions.py
trove_dashboard/test/test_data/keystone_data.py
trove_dashboard/test/test_data/trove_data.py
trove_dashboard/test/test_data/utils.py
trove_dashboard/utils/__init__.py
trove_dashboard/utils/common.py trove-dashboard-14.0.0/trove_dashboard/ 0000775 0001750 0001750 00000000000 13656752365 020072 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/__init__.py 0000664 0001750 0001750 00000000000 13656752263 022166 0 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/content/ 0000775 0001750 0001750 00000000000 13656752365 021544 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/content/__init__.py 0000664 0001750 0001750 00000000000 13656752263 023640 0 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/content/database_clusters/ 0000775 0001750 0001750 00000000000 13656752365 025234 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/content/database_clusters/__init__.py 0000664 0001750 0001750 00000000000 13656752263 027330 0 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/content/database_clusters/panel.py 0000664 0001750 0001750 00000001736 13656752263 026711 0 ustar zuul zuul 0000000 0000000 # Copyright (c) 2014 eBay Software Foundation
# Copyright 2015 HP Software, LLC
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from django.utils.translation import ugettext_lazy as _
import horizon
from openstack_dashboard.dashboards.project import dashboard
class Clusters(horizon.Panel):
name = _("Clusters")
slug = 'database_clusters'
permissions = ('openstack.services.database',)
dashboard.Project.register(Clusters)
trove-dashboard-14.0.0/trove_dashboard/content/database_clusters/templates/ 0000775 0001750 0001750 00000000000 13656752365 027232 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/content/database_clusters/templates/database_clusters/ 0000775 0001750 0001750 00000000000 13656752365 032722 5 ustar zuul zuul 0000000 0000000 ././@LongLink 0000000 0000000 0000000 00000000160 00000000000 011212 L ustar 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/content/database_clusters/templates/database_clusters/_add_instance.html trove-dashboard-14.0.0/trove_dashboard/content/database_clusters/templates/database_clusters/_add_in0000664 0001750 0001750 00000000771 13656752263 034224 0 ustar zuul zuul 0000000 0000000 {% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
{% block modal-body-right %}
{% trans "Specify the details of the instance to be added to the cluster." %}
{% trans "The name field is optional. If the field is left blank a name will be generated when the cluster is grown." %}
{% trans "The 'Instance Type' and 'Related To' fields are datastore specific and optional. See the Trove documentation for more information on using these fields." %}
{% trans "Specify the instances to be added to the cluster. When all the instances are specified click 'Grow Cluster' to perform the grow operation." %}
{% trans "Optionally provide a comma separated list of databases to create:" %}
database1, database2, database3
{% trans "Initial Admin User" %}
{% blocktrans trimmed %}Create an optional initial user.
This user will have access to all databases you create.{% endblocktrans %}
{% trans "Username (required)" %}
{% trans "Password (required)" %}
{% trans "Allowed Host (optional)" %}
{% blocktrans trimmed %}Allow the user to connect from this host
only. If not provided this user will be allowed to connect from anywhere.
{% endblocktrans %}
{% blocktrans trimmed %}Specify the details for launching an instance.{% endblocktrans %}
{% blocktrans trimmed %}Please note: The value specified in the Volume Size field should be greater than 0, however, some configurations do not support specifying volume size. If specifying the volume size results in an error stating volume support is not enabled, enter 0.{% endblocktrans %}
{% blocktrans trimmed %}
Move networks from 'Available Networks' to 'Selected Networks' by
clicking the button, or dragging and dropping. You can change the
NIC order by dragging and dropping as well.
{% endblocktrans %}
{% blocktrans trimmed %}Optionally choose to create this database using a previous backup, or as a replica of another database instance.{% endblocktrans %}
{% blocktrans trimmed %}Specify the details for the database backup.{% endblocktrans %}
{% blocktrans trimmed %}You can perform an incremental backup by specifying a parent backup. However, not all databases support incremental backups in which case this operation will result in an error.{% endblocktrans %}
trove-dashboard-14.0.0/trove_dashboard/content/database_backups/urls.py 0000664 0001750 0001750 00000001644 13656752263 026361 0 ustar zuul zuul 0000000 0000000 # Copyright 2013 Rackspace Hosting
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from django.conf.urls import url
from trove_dashboard.content.database_backups import views
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^create$', views.BackupView.as_view(), name='create'),
url(r'^(?P[^/]+)/$', views.DetailView.as_view(),
name='detail'),
]
trove-dashboard-14.0.0/trove_dashboard/content/database_backups/tests.py 0000664 0001750 0001750 00000025422 13656752263 026536 0 ustar zuul zuul 0000000 0000000 # Copyright 2013 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
import mock
from openstack_auth import policy
from openstack_dashboard import api as dash_api
from troveclient import common
from trove_dashboard import api
from trove_dashboard.content.databases.workflows import create_instance
from trove_dashboard.test import helpers as test
from trove_dashboard.utils import common as common_utils
INDEX_URL = reverse('horizon:project:database_backups:index')
BACKUP_URL = reverse('horizon:project:database_backups:create')
DETAILS_URL = reverse('horizon:project:database_backups:detail', args=['id'])
RESTORE_URL = reverse('horizon:project:databases:launch')
class DatabasesBackupsTests(test.TestCase):
@test.create_mocks({api.trove: ('backup_list', 'instance_get')})
def test_index(self):
self.mock_backup_list.return_value = self.database_backups.list()
self.mock_instance_get.return_value = self.databases.first()
res = self.client.get(INDEX_URL)
self.mock_backup_list.assert_called_once_with(test.IsHttpRequest())
self.assert_mock_multiple_calls_with_same_arguments(
self.mock_instance_get, 3,
mock.call(test.IsHttpRequest(), test.IsA(str)))
self.assertTemplateUsed(res, 'project/database_backups/index.html')
@test.create_mocks({api.trove: ('backup_list',)})
def test_index_exception(self):
self.mock_backup_list.side_effect = self.exceptions.trove
res = self.client.get(INDEX_URL)
self.mock_backup_list.assert_called_once_with(test.IsHttpRequest())
self.assertTemplateUsed(
res, 'project/database_backups/index.html')
self.assertEqual(res.status_code, 200)
self.assertMessageCount(res, error=1)
@test.create_mocks({
api.trove: ('instance_list', 'backup_list', 'backup_create'),
policy: ('check',),
})
def test_launch_backup(self):
self.mock_check.return_value = True
self.mock_instance_list.return_value = self.databases.list()
self.mock_backup_list.return_value = self.database_backups.list()
database = self.databases.first()
backupName = "NewBackup"
backupDesc = "Backup Description"
post = {
'name': backupName,
'instance': database.id,
'description': backupDesc,
'parent': ""
}
res = self.client.post(BACKUP_URL, post)
self.mock_check.assert_called_once_with((), test.IsHttpRequest())
self.mock_instance_list.assert_called_once_with(test.IsHttpRequest())
self.mock_backup_list.assert_called_once_with(test.IsHttpRequest())
self.mock_backup_create.assert_called_once_with(
test.IsHttpRequest(),
backupName,
database.id,
backupDesc,
"")
self.assertNoFormErrors(res)
self.assertRedirectsNoFollow(res, INDEX_URL)
@test.create_mocks({
api.trove: ('instance_list', 'backup_list'),
policy: ('check',),
})
def test_launch_backup_exception(self):
self.mock_check.return_value = True
self.mock_instance_list.side_effect = self.exceptions.trove
self.mock_backup_list.return_value = self.database_backups.list()
res = self.client.get(BACKUP_URL)
self.mock_check.assert_called_once_with((), test.IsHttpRequest())
self.mock_instance_list.assert_called_once_with(test.IsHttpRequest())
self.mock_backup_list.assert_called_once_with(test.IsHttpRequest())
self.assertMessageCount(res, error=1)
self.assertTemplateUsed(res,
'project/database_backups/backup.html')
@test.create_mocks({
api.trove: ('instance_list', 'backup_list', 'backup_create'),
policy: ('check',),
})
def test_launch_backup_incr(self):
self.mock_check.return_value = True
self.mock_instance_list.return_value = self.databases.list()
self.mock_backup_list.return_value = self.database_backups.list()
database = self.databases.first()
backupName = "NewBackup"
backupDesc = "Backup Description"
backupParent = self.database_backups.first()
post = {
'name': backupName,
'instance': database.id,
'description': backupDesc,
'parent': backupParent.id,
}
res = self.client.post(BACKUP_URL, post)
self.mock_check.assert_called_once_with((), test.IsHttpRequest())
self.mock_instance_list.assert_called_once_with(test.IsHttpRequest())
self.mock_backup_list.assert_called_once_with(test.IsHttpRequest())
self.mock_backup_create.assert_called_once_with(
test.IsHttpRequest(),
backupName,
database.id,
backupDesc,
backupParent.id)
self.assertNoFormErrors(res)
self.assertRedirectsNoFollow(res, INDEX_URL)
@test.create_mocks({api.trove: ('backup_get', 'instance_get')})
def test_detail_backup(self):
self.mock_backup_get.return_value = self.database_backups.first()
self.mock_instance_get.return_value = self.databases.first()
res = self.client.get(DETAILS_URL)
self.mock_backup_get.assert_called_once_with(
test.IsHttpRequest(), test.IsA(str))
self.mock_instance_get.assert_called_once_with(
test.IsHttpRequest(), test.IsA(str))
self.assertTemplateUsed(res,
'project/database_backups/details.html')
@test.create_mocks({api.trove: ('backup_get',)})
def test_detail_backup_notfound(self):
self.mock_backup_get.side_effect = self.exceptions.trove
res = self.client.get(DETAILS_URL)
self.mock_backup_get.assert_called_once_with(
test.IsHttpRequest(), test.IsA(str))
self.assertRedirectsNoFollow(res, INDEX_URL)
@test.create_mocks({api.trove: ('backup_get', 'instance_get')})
def test_detail_backup_incr(self):
incr_backup = self.database_backups.list()[2]
parent_backup = self.database_backups.list()[1]
self.mock_backup_get.side_effect = [incr_backup, parent_backup]
self.mock_instance_get.return_value = self.databases.list()[1]
url = reverse('horizon:project:database_backups:detail',
args=[incr_backup.id])
res = self.client.get(url)
self.assertEqual(
[mock.call(test.IsHttpRequest(), test.IsA(str)),
mock.call(test.IsHttpRequest(), incr_backup.parent_id)],
self.mock_backup_get.call_args_list)
self.mock_instance_get.assert_called_once_with(
test.IsHttpRequest(), test.IsA(str))
self.assertTemplateUsed(res, 'project/database_backups/details.html')
@test.create_mocks({
api.trove: ('backup_get', 'backup_list', 'configuration_list',
'datastore_flavors', 'datastore_list',
'datastore_version_list', 'instance_list'),
dash_api.cinder: ('volume_type_list',),
dash_api.neutron: ('network_list',),
dash_api.nova: ('availability_zone_list',),
policy: ('check',),
})
def test_restore_backup(self):
backup = self.database_backups.first()
self.mock_check.return_value = True
self.mock_backup_get.return_value = self.database_backups.first()
self.mock_backup_list.return_value = self.database_backups.list()
self.mock_configuration_list.return_value = (
self.database_configurations.list())
self.mock_datastore_flavors.return_value = self.flavors.list()
self.mock_datastore_list.return_value = self.datastores.list()
self.mock_datastore_version_list.return_value = (
self.datastore_versions.list())
self.mock_instance_list.return_value = (
common.Paginated(self.databases.list()))
self.mock_volume_type_list.return_vlue = []
self.mock_network_list.return_value = self.networks.list()[:1]
self.mock_availability_zone_list.return_value = (
self.availability_zones.list())
url = RESTORE_URL + '?backup=%s' % self.database_backups.first().id
res = self.client.get(url)
self.assert_mock_multiple_calls_with_same_arguments(
self.mock_check, 4, mock.call((), test.IsHttpRequest()))
self.mock_backup_get.assert_called_once_with(
test.IsHttpRequest(), test.IsA(str))
self.mock_backup_list.assert_called_once_with(test.IsHttpRequest())
self.mock_configuration_list.assert_called_once_with(
test.IsHttpRequest())
self.mock_datastore_flavors.assert_called_once_with(
test.IsHttpRequest(), test.IsA(str), test.IsA(str))
self.mock_datastore_list.assert_called_once_with(test.IsHttpRequest())
self.mock_datastore_version_list.assert_called_once_with(
test.IsHttpRequest(), backup.datastore['type'])
self.mock_instance_list.assert_called_once_with(test.IsHttpRequest())
self.mock_volume_type_list.assert_called_once_with(
test.IsHttpRequest())
self.mock_network_list.assert_any_call(
test.IsHttpRequest(), tenant_id=self.tenant.id, shared=False)
self.mock_availability_zone_list.assert_called_once_with(
test.IsHttpRequest())
self.assertTemplateUsed(res, 'project/databases/launch.html')
set_instance_detail_step = \
[step for step in res.context_data['workflow'].steps
if isinstance(step, create_instance.SetInstanceDetails)][0]
fields = set_instance_detail_step.action.fields
self.assertTrue(len(fields['datastore'].choices), 1)
text = 'mysql - 5.6'
choice = fields['datastore'].choices[0]
self.assertTrue(choice[0], common_utils.hexlify(text))
self.assertTrue(choice[1], text)
advanced_step = [step for step in res.context_data['workflow'].steps
if isinstance(step, create_instance.Advanced)][0]
fields = advanced_step.action.fields
self.assertTrue(len(fields['initial_state'].choices), 1)
choice = fields['initial_state'].choices[0]
self.assertTrue(choice[0], 'backup')
self.assertTrue(choice[1], _('Restore from Backup'))
trove-dashboard-14.0.0/trove_dashboard/content/database_backups/views.py 0000664 0001750 0001750 00000010334 13656752263 026525 0 ustar zuul zuul 0000000 0000000 # Copyright 2013 Rackspace Hosting
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""
Views for displaying database backups.
"""
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
from horizon import exceptions
from horizon import tables as horizon_tables
from horizon.utils import filters
from horizon import views as horizon_views
from horizon import workflows as horizon_workflows
from trove_dashboard import api
from trove_dashboard.content.database_backups import tables
from trove_dashboard.content.database_backups \
import workflows
class IndexView(horizon_tables.DataTableView):
table_class = tables.BackupsTable
template_name = 'project/database_backups/index.html'
page_title = _("Backups")
def _get_extra_data(self, backup):
"""Apply extra info to the backup."""
instance_id = backup.instance_id
# TODO(rdopieralski) It's not clear where this attribute is supposed
# to come from. At first glance it looks like it will always be {}.
if not hasattr(self, '_instances'):
self._instances = {}
instance = self._instances.get(instance_id)
if instance is None:
try:
instance = api.trove.instance_get(self.request, instance_id)
except Exception:
instance = _('Not Found')
backup.instance = instance
return backup
def get_data(self):
# TODO(rmyers) Add pagination support after it is available
# https://blueprints.launchpad.net/trove/+spec/paginate-backup-list
try:
backups = api.trove.backup_list(self.request)
backups = map(self._get_extra_data, backups)
except Exception:
backups = []
msg = _('Error getting database backup list.')
exceptions.handle(self.request, msg)
return backups
class BackupView(horizon_workflows.WorkflowView):
workflow_class = workflows.CreateBackup
template_name = "project/database_backups/backup.html"
page_title = _("Backup Database")
def get_context_data(self, **kwargs):
context = super(BackupView, self).get_context_data(**kwargs)
context["instance_id"] = kwargs.get("instance_id")
self._instance = context['instance_id']
return context
class DetailView(horizon_views.APIView):
template_name = "project/database_backups/details.html"
page_title = _("Backup Details: {{ backup.name }}")
def get_data(self, request, context, *args, **kwargs):
backup_id = kwargs.get("backup_id")
try:
backup = api.trove.backup_get(request, backup_id)
created_at = filters.parse_isotime(backup.created)
updated_at = filters.parse_isotime(backup.updated)
backup.duration = updated_at - created_at
except Exception:
redirect = reverse('horizon:project:database_backups:index')
msg = _('Unable to retrieve details for backup: %s') % backup_id
exceptions.handle(self.request, msg, redirect=redirect)
try:
if(hasattr(backup, 'parent_id') and backup.parent_id is not None):
backup.parent = api.trove.backup_get(request, backup.parent_id)
except Exception:
redirect = reverse('horizon:project:database_backups:index')
msg = (_('Unable to retrieve details for parent backup: %s')
% backup.parent_id)
exceptions.handle(self.request, msg, redirect=redirect)
try:
instance = api.trove.instance_get(request, backup.instance_id)
except Exception:
instance = None
context['backup'] = backup
context['instance'] = instance
return context
trove-dashboard-14.0.0/trove_dashboard/content/database_backups/tables.py 0000664 0001750 0001750 00000014300 13656752263 026637 0 ustar zuul zuul 0000000 0000000 # Copyright 2013 Rackspace Hosting
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from django.conf import settings
from django.template import defaultfilters as d_filters
from django.urls import reverse
from django.utils.translation import pgettext_lazy
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy
from horizon import tables
from horizon.utils import filters
from trove_dashboard import api
STATUS_CHOICES = (
("BUILDING", None),
("COMPLETED", True),
("DELETE_FAILED", False),
("FAILED", False),
("NEW", None),
("SAVING", None),
)
STATUS_DISPLAY_CHOICES = (
("BUILDING", pgettext_lazy("Current status of a Database Backup",
u"Building")),
("COMPLETED", pgettext_lazy("Current status of a Database Backup",
u"Completed")),
("DELETE_FAILED", pgettext_lazy("Current status of a Database Backup",
u"Delete Failed")),
("FAILED", pgettext_lazy("Current status of a Database Backup",
u"Failed")),
("NEW", pgettext_lazy("Current status of a Database Backup",
u"New")),
("SAVING", pgettext_lazy("Current status of a Database Backup",
u"Saving")),
)
class LaunchLink(tables.LinkAction):
name = "create"
verbose_name = _("Create Backup")
url = "horizon:project:database_backups:create"
classes = ("ajax-modal", "btn-create")
icon = "camera"
class RestoreLink(tables.LinkAction):
name = "restore"
verbose_name = _("Restore Backup")
url = "horizon:project:databases:launch"
classes = ("ajax-modal",)
icon = "cloud-upload"
def allowed(self, request, backup=None):
return backup.status == 'COMPLETED'
def get_link_url(self, datum):
url = reverse(self.url)
return url + '?backup=%s' % datum.id
class DownloadBackup(tables.LinkAction):
name = "download"
verbose_name = _("Download Backup")
url = 'horizon:project:containers:object_download'
classes = ("btn-download",)
def get_link_url(self, datum):
ref = datum.locationRef.split('/')
container_name = ref[5]
object_path = '/'.join(ref[6:])
return reverse(self.url,
kwargs={'container_name': container_name,
'object_path': object_path})
def allowed(self, request, datum):
legacy_swift_panel_enabled = False
if ('swift_panel' in settings.HORIZON_CONFIG and
settings.HORIZON_CONFIG['swift_panel'] == 'legacy' and
datum.status == 'COMPLETED'):
legacy_swift_panel_enabled = True
return legacy_swift_panel_enabled
class DeleteBackup(tables.DeleteAction):
@staticmethod
def action_present(count):
return ungettext_lazy(
u"Delete Backup",
u"Delete Backups",
count
)
@staticmethod
def action_past(count):
return ungettext_lazy(
u"Deleted Backup",
u"Deleted Backups",
count
)
def delete(self, request, obj_id):
api.trove.backup_delete(request, obj_id)
class UpdateRow(tables.Row):
ajax = True
def get_data(self, request, backup_id):
backup = api.trove.backup_get(request, backup_id)
try:
backup.instance = api.trove.instance_get(request,
backup.instance_id)
except Exception:
pass
return backup
def db_link(obj):
if not hasattr(obj, 'instance'):
return
if hasattr(obj.instance, 'name'):
return reverse(
'horizon:project:databases:detail',
kwargs={'instance_id': obj.instance_id})
def db_name(obj):
if not hasattr(obj, 'instance') or not hasattr(obj.instance, 'name'):
return obj.instance_id
return obj.instance.name
def get_datastore(obj):
if hasattr(obj, "datastore"):
return obj.datastore["type"]
return _("Not available")
def get_datastore_version(obj):
if hasattr(obj, "datastore"):
return obj.datastore["version"]
return _("Not available")
def is_incremental(obj):
return hasattr(obj, 'parent_id') and obj.parent_id is not None
class BackupsTable(tables.DataTable):
name = tables.Column("name",
link="horizon:project:database_backups:detail",
verbose_name=_("Name"))
datastore = tables.Column(get_datastore,
verbose_name=_("Datastore"))
datastore_version = tables.Column(get_datastore_version,
verbose_name=_("Datastore Version"))
created = tables.Column("created", verbose_name=_("Created"),
filters=[filters.parse_isotime])
instance = tables.Column(db_name, link=db_link,
verbose_name=_("Database"))
incremental = tables.Column(is_incremental,
verbose_name=_("Incremental"),
filters=(d_filters.yesno,
d_filters.capfirst))
status = tables.Column("status",
verbose_name=_("Status"),
status=True,
status_choices=STATUS_CHOICES,
display_choices=STATUS_DISPLAY_CHOICES)
class Meta(object):
name = "backups"
verbose_name = _("Backups")
status_columns = ["status"]
row_class = UpdateRow
table_actions = (LaunchLink, DeleteBackup)
row_actions = (RestoreLink, DownloadBackup, DeleteBackup)
trove-dashboard-14.0.0/trove_dashboard/content/database_backups/workflows/ 0000775 0001750 0001750 00000000000 13656752365 027055 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/content/database_backups/workflows/__init__.py 0000664 0001750 0001750 00000000146 13656752263 031164 0 ustar zuul zuul 0000000 0000000 # Importing non-modules that are not used explicitly
from .create_backup import CreateBackup # noqa
trove-dashboard-14.0.0/trove_dashboard/content/database_backups/workflows/create_backup.py 0000664 0001750 0001750 00000010027 13656752263 032214 0 ustar zuul zuul 0000000 0000000 # Copyright 2013 Rackspace Hosting
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from django.utils.translation import ugettext_lazy as _
from horizon import exceptions
from horizon import forms
from horizon import workflows
from oslo_log import log as logging
from trove_dashboard import api
from trove_dashboard.content.databases \
import tables as project_tables
LOG = logging.getLogger(__name__)
class BackupDetailsAction(workflows.Action):
name = forms.CharField(max_length=80, label=_("Name"))
instance = forms.ChoiceField(label=_("Database Instance"))
description = forms.CharField(max_length=512, label=_("Description"),
widget=forms.TextInput(),
required=False,
help_text=_("Optional Backup Description"))
parent = forms.ChoiceField(label=_("Parent Backup"),
required=False,
help_text=_("Optional parent backup"))
class Meta(object):
name = _("Details")
help_text_template = \
"project/database_backups/_backup_details_help.html"
def populate_instance_choices(self, request, context):
LOG.info("Obtaining list of instances.")
try:
instances = api.trove.instance_list(request)
except Exception:
instances = []
msg = _("Unable to list database instances to backup.")
exceptions.handle(request, msg)
return [(i.id, i.name) for i in instances
if i.status in project_tables.ACTIVE_STATES]
def populate_parent_choices(self, request, context):
try:
backups = api.trove.backup_list(request)
choices = [(b.id, b.name) for b in backups
if b.status == 'COMPLETED']
except Exception:
choices = []
msg = _("Unable to list database backups for parent.")
exceptions.handle(request, msg)
if choices:
choices.insert(0, ("", _("Select parent backup")))
else:
choices.insert(0, ("", _("No backups available")))
return choices
class SetBackupDetails(workflows.Step):
action_class = BackupDetailsAction
contributes = ["name", "description", "instance", "parent"]
class CreateBackup(workflows.Workflow):
slug = "create_backup"
name = _("Backup Database")
finalize_button_name = _("Backup")
success_message = _('Scheduled backup "%(name)s".')
failure_message = _('Unable to launch %(count)s named "%(name)s".')
success_url = "horizon:project:database_backups:index"
default_steps = [SetBackupDetails]
def get_initial(self):
initial = super(CreateBackup, self).get_initial()
initial['instance_id']
def format_status_message(self, message):
name = self.context.get('name', 'unknown instance')
return message % {"count": _("instance"), "name": name}
def handle(self, request, context):
try:
LOG.info("Creating backup")
api.trove.backup_create(request,
context['name'],
context['instance'],
context['description'],
context['parent'])
return True
except Exception:
LOG.exception("Exception while creating backup")
msg = _('Error creating database backup.')
exceptions.handle(request, msg)
return False
trove-dashboard-14.0.0/trove_dashboard/version.py 0000664 0001750 0001750 00000001370 13656752263 022127 0 ustar zuul zuul 0000000 0000000 # Copyright 2016 Tesora, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
from pbr import version
version_info = version.VersionInfo('trove_dashboard')
__version__ = version_info.cached_version_string()
trove-dashboard-14.0.0/trove_dashboard/utils/ 0000775 0001750 0001750 00000000000 13656752365 021232 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/utils/__init__.py 0000664 0001750 0001750 00000000000 13656752263 023326 0 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/utils/common.py 0000664 0001750 0001750 00000001553 13656752263 023075 0 ustar zuul zuul 0000000 0000000 #
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import binascii
def hexlify(text):
"""Hexlify raw text, return hexlified text."""
text = text.encode('utf-8')
return binascii.hexlify(text).decode('utf-8')
def unhexlify(text):
"""Unhexlify raw text, return unhexlified text."""
return binascii.unhexlify(text).decode('utf-8')
trove-dashboard-14.0.0/trove_dashboard/static/ 0000775 0001750 0001750 00000000000 13656752365 021361 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/static/dashboard/ 0000775 0001750 0001750 00000000000 13656752365 023310 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/static/dashboard/project/ 0000775 0001750 0001750 00000000000 13656752365 024756 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/static/dashboard/project/ngbackups/ 0000775 0001750 0001750 00000000000 13656752365 026733 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/static/dashboard/project/ngbackups/backups.module.js 0000664 0001750 0001750 00000002124 13656752263 032201 0 ustar zuul zuul 0000000 0000000 /**
* Copyright 2016 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
(function() {
'use strict';
/**
* @ngdoc overview
* @name horizon.dashboard.project
*
* @description
* Dashboard module to host various backup panels.
*/
angular
.module('horizon.dashboard.project.backups', [])
.config(config);
config.$inject = ['$provide', '$windowProvider'];
function config($provide, $windowProvider) {
var path = $windowProvider.$get().STATIC_URL + 'dashboard/project/';
$provide.constant('horizon.dashboard.project.basePath', path);
}
})(); trove-dashboard-14.0.0/trove_dashboard/static/dashboard/project/ngbackups/table/ 0000775 0001750 0001750 00000000000 13656752365 030022 5 ustar zuul zuul 0000000 0000000 trove-dashboard-14.0.0/trove_dashboard/static/dashboard/project/ngbackups/table/table.config.js 0000664 0001750 0001750 00000003704 13656752263 032714 0 ustar zuul zuul 0000000 0000000 /**
* Copyright 2016 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
(function() {
'use strict';
angular
.module('horizon.dashboard.project.backups')
.factory('horizon.dashboard.project.backups.tableConfigService',
tableConfigService);
tableConfigService.$inject = [
'horizon.framework.util.extensible.service'
];
/**
* @ngdoc service
* @name horizon.dashboard.project.ngbackups.tableConfigService
* @description Backup table attributes
*/
function tableConfigService(extensibleService) {
var config = {
selectAll: true,
expand: true,
trackId: 'id',
columns: [{
id: 'name',
title: gettext('Name'),
priority: 1,
sortDefault: true
},
{
id: 'datastore',
title: gettext('Datastore'),
priority: 1,
},
{
id: 'datastoreversion',
title: gettext('Datastore Version'),
priority: 1,
},
{
id: 'created',
title: gettext('Created'),
priority: 1,
},
{
id: 'database',
title: gettext('Database'),
priority: 1,
},
{
id: 'incremental',
title: gettext('Incremental'),
filters: ['yesno'],
priority: 1,
},
{
id: 'status',
title: gettext('status'),
priority: 1,
}]
};
extensibleService(config, config.columns);
return config;
}
})(); trove-dashboard-14.0.0/trove_dashboard/static/dashboard/project/ngbackups/table/table.controller.js 0000664 0001750 0001750 00000002672 13656752263 033635 0 ustar zuul zuul 0000000 0000000 /**
* Copyright 2016 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
(function() {
'use strict';
angular
.module('horizon.dashboard.project.backups')
.controller('horizon.dashboard.project.backups.tableController', backupsTableController);
backupsTableController.$inject = [
'$scope',
'horizon.app.core.openstack-service-api.trove',
'horizon.dashboard.project.backups.tableConfigService'
];
/**
* @ngdoc controller
* @name horizon.dashboard.project.backups.tableController
*
* @description
* Controller for the backups table
*/
function backupsTableController($scope, trove, config) {
var ctrl = this;
ctrl.config = config;
ctrl.backups = [];
ctrl.backupsSrc = [];
init();
//////////
function init() {
trove.getBackups().success(getBackupsSuccess);
}
function getBackupsSuccess(response) {
ctrl.backups = response;
}
}
})();
trove-dashboard-14.0.0/trove_dashboard/static/dashboard/project/ngbackups/table/table.html 0000664 0001750 0001750 00000000334 13656752263 031774 0 ustar zuul zuul 0000000 0000000