Commit Graph

38 Commits

Author SHA1 Message Date
Pierre Riteau 693624c9af Pass configured endpoint type to sahara client
Change-Id: I8136409020a7251ae1015129236b0e3d2d20a51b
Story: 2009735
Task: 44157
2021-12-09 12:40:38 +01:00
Hervé Beraud d1fa66b049 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I1ebbcf68cb475cdd35f8c0ecd106cd0b22738530
2020-06-02 20:57:11 +02:00
Jeremy Freudberg 29c0205bac Sync APIv2 changes into dashboard
- job_id->job_template_id in v2 jobs
- project_id->tenant_id
- Boot from volume enhancements

Story: 2003092
Task: 29741

Change-Id: Ie8e604d73c77a4e7672f87b95ecbe3c1de945293
2019-03-07 00:38:20 -05:00
Telles Nobrega 0dc65e9588 Boot from volume
Adding the boot from volume check on node group templates creation.

Change-Id: I7bcfca72615758a5534901cdf6a0960ae9bd9a6a
Story: #2001820
Task: #12560
2018-07-26 09:33:20 -03:00
Zuul bc2d21d1d0 Merge "Support of S3 data sources in dashboard" 2018-07-26 08:28:41 +00:00
Jeremy Freudberg 95aca19615 APIv2 in dashboard
Everything except decomission of a specific node.

Change-Id: Iaa02b91d75b51b812c7e5eaf8612a1d75e17748e
2018-07-17 15:26:54 -03:00
Jeremy Freudberg 43c1c36c0d Support of S3 data sources in dashboard
Change-Id: Iad4c0739f774b4f87ec6f24211c3f39eec7a7582
2018-07-10 12:25:18 -04:00
Jeremy Freudberg b742987174 Change approach to saharaclient authentication
We'll commit to the idea of constructing a session based on token auth
here in the sahara-dashboard code itself. And in preparation for some
upcoming python-saharaclient changes, move certificate settings into
that session object.

Change-Id: I5f76af0e14822513849af2e75445af837af85285
Story: 1747838
2018-07-09 12:47:16 -04:00
Jeremy Freudberg 8f2dfd7a8f Don't try to predetermine the Sahara URL
Because guess what, times have changed. When that code was written
version discovery wasn't what it is today...

Without this change, we couldn't handle unversioned endpoints in the
service catalog.

Closes-Bug: #1745083

Change-Id: Ie82e8a67b2820909625719c5f8a39ca0e1e2fbc0
2018-02-07 06:02:54 +00:00
sunqingliang6 345dc7c09e fix an incorrect statement
Change-Id: I2fa6ece11f4217a7b925d8814e1c3dc96f5eba19
2018-01-18 09:20:32 +08:00
qiaomin fcdc776981 Rename the 'SAHARA_AUTO_IP_ALLOCATION_ENABLED' config parameter
The 'SAHARA_AUTO_IP_ALLOCATION_ENABLED' config parameter in Sahara
is confusing. If you wish to disable floating IP options during node
group template creation, set it 'True', but this name sounds like it
has to do with automatically associating a floating IP. So this patch
renames it to a meaningful variable name.

Change-Id: If8f71ea21cb71bbffe996f7db88b7683ad91ecac
2018-01-16 13:39:18 +00:00
Zuul bd9df45a36 Merge "Add import of node group templates" 2017-11-15 10:48:33 +00:00
Iwona Kotlarska 314f4fda62 Add import of node group templates
Partially-Implements: bp portable-node-group-and-cluster-templates

This change adds Import Template button to Node Group Templates Tab.

Change-Id: I68c2fa2a856fa8e14aa9512b11f0ea326c25f2a5
2017-11-13 17:25:38 -03:00
Zuul f0fde9acb8 Merge "Add export of cluster templates to UI" 2017-11-06 22:42:28 +00:00
Iwona Kotlarska a1777e7658 Add export of cluster templates to UI
Partially-Implements: bp portable-node-group-and-cluster-templates

Depends-On: I027169ace70929318990a4225d456bf1cf8a83b2

This chande adds an option to GUI to enable user export a cluster template

Change-Id: If1c1b055c3f03b656853db1b35c42a422b08de7f
2017-08-29 20:00:18 +02:00
Iwona Kotlarska d6056d1ab6 Add export of node group templates
Partially-Implements: bp portable-node-group-and-cluster-templates

Depends-On: I33c3b6daa5b9e2be218a84efdb6113a4ce9a86df

This change adds functions to saharaclient to enable export of ngt
to JSON.

Change-Id: Ic5d9dffd0a3ae21a28ecbcfdd88f5cd1194551bb
2017-08-28 21:50:01 +02:00
Jeremy Freudberg fce0b61b78 Make health check info hideable
If cluster verification in Sahara is totally disabled, then operators
probably do not want to have ugly UNKNOWN in the cluster status page.
They also probably do not want any references to health at all, if
there will never be any usable information there. So, let's add
something that can be read from local_settings to disable these when
the operator doesn't want them.

Change-Id: Ifc624d07767ed29646aa8a5b5739103fd4972b90
Co-Authored-By: Lucas H. Xu <xuh@bu.edu>
2017-06-06 15:21:59 +00:00
Rajiv Kumar 0d15f0ec52 Switch to oslo_log
Change-Id: I1fe00ab7b0405422af76488245a67b3d68e29f06
2017-01-18 16:49:30 +05:30
zhouyunfeng 694a85c71c Add licensing info in source file.
[H102 H103] Source code should be licensed under the Apache 2.0 license.
All source files should have the licensing header.

Change-Id: I4f9ead44b5efa3616086f5a62a2e0e68854baf44
2016-12-07 01:41:13 +00:00
Michael Lelyakin a04f34bd17 Refactor some dict generators in sahara.py file
Change-Id: I79d71873603646776ca00dc795291af55c7c4024
2016-11-20 00:43:55 +03:00
Cao Xuan Hoang a4f83d078b TrivialFix: Remove logging import unused
This patch removes logging import unused in
sahara_dashboard/api/sahara.py
sahara_dashboard/content/data_processing/clusters/clusters/workflows/update.py
sahara_dashboard/content/data_processing/clusters/image_registry/tabs.py

Change-Id: I0fd6e63b7c0d7bbba910c28ca7d4cb249723f50d
2016-09-08 13:39:16 +07:00
Jenkins 0a30cc6d42 Merge "plugins api support" 2016-08-23 10:59:41 +00:00
Vitaly Gridnev 8fa78b9d9c plugins api support
this change contains implementation:

1. of updating plugin workflow;
2. page with details of plugin labels;
3. only enabled versions are displayed on general
page with plugins.

blueprint: plugin-management-api
Change-Id: Ia125ad8108cafd4e39dc1c2c53f3c62ff3ce3e78
co-authored-by: Michael Lelyakin <mlelyakin@mirantis.com>
2016-08-22 09:19:46 +00:00
Jenkins 220e166896 Merge "Add pagination ability to UI" 2016-08-19 21:24:09 +00:00
Mikhail Lelyakin 052ff867a0 Add pagination ability to UI
Pagination abilities were implemented in Sahara API.
This changes support work with new abilities on UI.

Change-Id: I655779e0c92cf4187ff2566aa109f26abbbccb9d
bp: pagination
Depends-on: Idf96a82b0f49bd288eb3fd9bfa82f92074ea4e7c
2016-08-18 10:55:34 +00:00
Michael Ionkin 1eb34dd38a Designate integration
added designate client;
added SelectDnsDomain step in Cluster Template creation form. This
step is available if we enable dns service. This step contains one
dropdown list of available dns servers.
Domain Name is not required field so if it's not selected then
a cluster will be launched without designate usage.

partial-bp: designate-integration
Change-Id: If3e994026d012b9b33d59c8477d6f2a892f61374
2016-08-12 10:10:53 +01:00
Vitaly Gridnev 7d50e89d42 remove upload template form
it's absolutely outdated form, and there is no plugins
that supports converting to cluster template feature.

Change-Id: I433d0ea32d4affd45408131d970cc6f72ce26a8b
2016-07-08 12:10:30 +00:00
Vitaly Gridnev ffccd9dcd9 fix integration tests
The reasons of failures are following:

1. The change [0] is introduced in horizon, which removes unneeded
tags in production envs. This caused most failures.
2. HDP is removed from sahara codebase.
3. Sometimes unicode string 'None' is passed to saharaclient as input_id
or output_id of job. This string was translated to NoneType.

[0] https://review.openstack.org/#/c/287793

Co-Authored-by: Michael Ionkin <mionkin@mirantis.com>
Change-Id: I9cb0641b2b61a78a40b0e2c6faf2609f974088d2
2016-06-06 17:24:29 +00:00
Vitaly Gridnev a794b78643 Rewrite update calls in dashboard
Rewriting acl updates and shares updates calls to allow
this methods not to update other important fields like
node processes and so on.

Change-Id: I629779bba8d780f518040180f594209d7933ddf1
Closes-bug: 1552166
2016-03-07 20:43:44 +00:00
Vitaly Gridnev 46d9adb665 implement health checks in sahara-dashboard
following things are done in change:
 * action to verify cluster;
 * view to display health check in cluster details;
 * new column for the health overview in clusters list.

Implements blueprint: cluster-verification
Depends-On: I598753cbb33d7781b646e726ad8d614e924e4876
Change-Id: I6c47d564400872ec4f38bf9d5824f93f4599181c
2016-03-02 11:22:48 +03:00
Michael Ionkin 76a7008fcb Added Base Image field on Node Group Template form
This field allows to choice an image (including empty image choice)
for node group template
Also added Base Image field in Node Group Template details page

Change-Id: I87420c489664301dac3f6cad3abc06c97b0e8029
Closes-bug: 1528182
2016-03-01 12:59:58 +03:00
Nikita Konovalov 09eafa0f6f Import reorg and cleanup
The imports order should follow the simple rule of
groups. There are usually 3 groups in most cases.
However this repository is a plugin so imports from
the base system (Horizon) should be moved to a
separate group.

So imports should go into the following groups:

1) Imports from Python standard modules
2) Imports from dependencies previded in requirements
3) Imports from Horizon
4) Imports within current project

Change-Id: Ie028a4aa6897a3400872a45b94b073b2819ee4ac
2016-02-26 19:29:39 +03:00
Vitaly Gridnev 2d548be434 ACL support in Sahara UI
Sahara started support of is_public and
is_protected fields, so this change brings that
to sahara ui.

Implements blueprint: ui-acl-support
Change-Id: I67acfed8973afe2efd4ef046b1bf936cb9b2c3fa
2016-01-28 20:41:55 +00:00
Chad Roberts f722378b9f Adding support for editing active cluster shares
This adds the ability to add or remove manila shares
on clusters that are in the active state.

Change-Id: I3e07c59753e0f2c5dd16dfb55d1bceeafc59b951
Partial-Implements: bp sahara-add-shares-to-clusters
2016-01-26 20:18:46 +00:00
Chad Roberts f8660bd893 Adding cluster template support for shares
The Sahara data processing service now supports manila
shares when creating or editing cluster templates.

Change-Id: I32c44b6a7fa860df41e06d36c77e600b84bd5733
Partial-Implements: bp sahara-add-shares-to-clusters
2015-12-09 12:54:14 -05:00
Chad Roberts f79498fe85 Adding node group template support for shares
The Sahara data processing service now supports manila
shares when creating or editing node group templates.

Change-Id: I4712c1f795ad81d9a0ad6eadde2759fcb4f4cfb6
Partial-Implements: bp sahara-add-shares-to-clusters
2015-12-08 17:15:23 +00:00
Chad Roberts df3557e024 Adding support for Manila-based shares in Sahara
The Sahara data processing service now supports manila
shares as a location for job binaries.  Also adding a unit
test for creation of manila-based job binaries.

Change-Id: I6599aca1baabe9875f6ac3ed847cb5030f0e5bb7
Implements: bp add-manila-binary-store
2015-12-03 14:45:37 -05:00
David Lyle 6c5898813c Excising Sahara content from Horizon
This plugin moves the current content from the horizon repo to this
plugin repo. The code has been tested in a devstack install using the
following steps:

    1. packaging the plugin: "python setup.cfg sdist"
    2. pip installing the tar.gz in the resulting dist directory
    3.  a. (temporary step) remove existing sahara enabled files from
            horizon
            "rm openstack_dashboard/enabled/_18*.py"
        b. finding the install location and changing to it
            "cp sahara_dashboard/enabled/* /opt/stack/horizon/local/enabled"
    4. in /opt/stack/horizon
        a. python manage.py collectstatic
        b. python manage.py compress
    5. restarting the horizon server

Additionally, you can run the unit tests by:
    ./run_tests.sh

    Note: added script to programmatically remove the old configuration
    files from the targeted horizon install, either in venv or system
    install.

Known issues:
  1. running tests locally emits missing neutron service messages.
  2. plugin code for devstack needs to be added
  3. README is inadequate
  4. integration tests are still in horizon repo
  5. local copy of run_tests is heavy weight, but a better solution is
     not available currently.
  6. localization tooling and strings

Change-Id: Icdce2d3e945e612d368556dd5cea1930194c7b67
2015-11-30 16:40:44 -07:00