Commit Graph

78 Commits

Author SHA1 Message Date
Andreas Jaeger e61cc055ab Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: I10917e42829b459c41ca46514faa72fc46abf7be
2019-12-18 09:52:23 +01:00
Igor Gajsin cb8529a84a add removed handlers
There were urls and handlers for vmware in the nailgun, that were
removed completely in
review.openstack.org/#/c/428402/15/nailgun/nailgun/api/v1/urls.py

The better approach is remain the urls and make special stub-handlers
instead of real ones.

Change-Id: I50bf740ec726c9cc57ff63d49aff718e812e6feb
Closes-Bug: #1668258
2017-03-23 12:26:38 +03:00
Igor Gajsin 634b66df45 remove vmware
VMware not supported since Fuel 10.

Implements: blueprint remove-vmware

Change-Id: Ia26a97d13bb9c3d2e838d639efdababbb15f86da
2017-02-14 15:52:27 +00:00
Alexander Kislitsky 71fb921dbe Handler for changing notifications statuses added
As workaround for decreasing loading in the UI on unread
notifications fetching we can mark all notifications as read.
For such purposes we add NotificationsMarkAllHandler

Change-Id: I2e6a0daaf8712ab3064df728a8fb463ef805aa06
Partial-Bug: #1657348
2017-02-07 16:39:05 +00:00
Alexander Kislitsky d4bf85957e Handler for counting notifications statuses added
For calculation of notifications statuses we made requests in the UI
and fetch all notifications data and process them on the UI side.
We want to replace a polling of the whole notification collection by
a polling of unread notifications number. This dramatically decrease
Fuel UI load in case of a big amount of notifications.

Change-Id: I8f83d4e2d7f58beaf06c489b2264ccb69f9927ce
Partial-Bug: #1657348
2017-01-30 18:03:15 +03:00
Viacheslav Valyavskiy 520e230690 Add tag API
Change-Id: I4e8325866ef63e424d5c6a93138e731001731568
Implements: blueprint role-decomposition
2016-11-22 19:12:22 +00:00
Viacheslav Valyavskiy f1550ad2a2 Add ability to create role for cluster
Change-Id: Idcde0a582507293490379d146c4e24e5e58790d8
Implements: blueprint role-decomposition
2016-11-13 15:34:53 +03:00
Mikhail Zhnichkov 9647ccde99 Revert "Add tag API"
This reverts commit 327f754d90.

Change-Id: I58474fd358287ad21f0f36ec5be9a565fc24c67c
2016-11-08 16:58:59 +00:00
Jenkins 1a8eddf49e Merge "Implement mechanism for plugin node attributes" 2016-10-25 09:09:41 +00:00
Andriy Popovych c311746282 Implement mechanism for plugin node attributes
Provide ability for plugins to add additional attributes for nodes.
* Added new NodeAttributesDefaultsHandler handler for getting
  default node attributes.
* Added code stuff for getting and updating additional plugin
  node attributes.
* Added code stuff to serialize plugin node attributes for orchestrator.

Change-Id: I5c6d6f3c815a034683e624b98fa1f360ab4b491c
Implements: blueprint nics-and-nodes-attributes-via-plugin
2016-10-21 19:47:14 +03:00
Jenkins 482d0dd424 Allow digits in a role name
Closes-Bug: #1625293
(cherry picked from commit 3965f99696)

Change-Id: I00c0d4474e1150b38e5df27cfdc5bc530854bcaa
2016-10-19 18:32:52 +03:00
Ryan Moe 327f754d90 Add tag API
API handler for creating tags.

Implements: blueprint role-decomposition
Change-Id: I04c184f287d49ad2c15803809b8025f7351b8985
2016-10-05 17:28:22 +03:00
Jenkins 0439483ef6 Merge "Now it is possible to fetch cluster own deployment tasks via API" 2016-09-12 12:51:14 +00:00
Ilya Kutukov 39d74ec7e4 Now it is possible to fetch cluster own deployment tasks via API
/clusters/<CLUSTER_ID>/deployment_tasks/own/ handler is added that allows
to get cluster own  deployment tasks belonging to clusters attached
to the given cluster model directly.

Change-Id: I2c7afad9958a2453d48d2a70c164eb0269019041
Closes-Bug: #1605639
2016-09-12 12:27:31 +03:00
Bulat Gaifullin 78d04a5ead Itroduced deployment sequences
Deployment sequence is a mechanism for saving
recently used sequences of graphs in database
for further execution.
Sequences are related to release object.

Partial-Bug: 1620620
Change-Id: I23ce74e8edbab579d6704a947d89e8d6e9c58fb7
2016-09-07 16:28:49 +03:00
Sylwester Brzeczkowski 28dd1ff3a1 Extensions handler for Nailgun
Added new API handler /extensions/ which returns a list of available
extensions.

Co-Authored-By: Sylwester Brzeczkowski <sbrzeczkowski@mirantis.com>

Change-Id: I072f3e4d9cd8f71498a20312af7c2016e951456d
Implements: blueprint extensions-management
Partial-Bug: #1614526
2016-08-31 19:40:27 +03:00
Sylwester Brzeczkowski 5a6bd3f490 Add extensions API handler for cluster
The patch includes new handlers for extensions management for
clusters, unit and integration tests.

Co-Authored-By: Sylwester Brzeczkowski <sbrzeczkowski@mirantis.com>

Change-Id: I4b81ec5b4ae6986068832bd28c08831881feeee6
Blueprint: extensions-management
Closes-Bug: #1614526
2016-08-23 18:49:46 +03:00
Bulat Gaifullin b66c53a0a0 Graphs Execution RESTful API
We need to expose transaction manager funcionality via RESTful API, in
order to make it consumable by API clients. The patch introduces the
following endpoint:

    POST /graphs/execute HTTP/1.1

    {
       "cluster": <cluster-id>,
       "graphs": [
          {
            "type": "graph-type-1",
            "tasks": ["task-a"]
          },
          {
            "type": "graph-type-1",
            "nodes": [1, 2, 3]
          }
       ],
       "dry_run": false,
       "force": false
    }

Co-Authored-By: Igor Kalnitsky <igor@kalnitsky.org>

Change-Id: I3846352969c41c88b1c380a6df4d2edbf3787362
Blueprint: graph-concept-extension
2016-08-20 23:46:45 +03:00
Georgy Kibardin cb8d2d53f5 Limit cookie usage to download routes
In order to fix CSRF issues we gradually getting rid of cookies. The
first step is to limit their usage to download routes only.

Change-Id: I0ec451e8a536dc37af08f2cd2efe58500737b56e
Closes-Bug: #1592732
2016-08-01 12:29:50 +03:00
Vladimir Kozhukalov e2e81ea1d2 Added ReleaseAttributesMetadataHandler
This handler is needed in order to be able to update
release attributes metadata not updating release itself.

Change-Id: Id2f591b78e0a591ed8f18cc5326528d8efb3a3c4
Implements: blueprint fuelclient-modify-release-repos
2016-06-17 13:25:52 +00:00
Alex Schultz 5372982b3e Require auth for version api call
The version call may contain information that should not be publicly
discloused without authentication. This change removes the version call
from the public urls which will cause it to require authentication
before responding with version information.

Change-Id: I7352f83ec67321a1fb5caa75fc9168cc01229083
Closes-Bug: #1585137
2016-06-06 21:39:00 +00:00
Ryan Moe 3a41cbbd67 Move network API handlers to extension
Network-related API handlers and validators have been moved into
the network_manager extension.

Change-Id: Idf4ab0becdb13801c1f10aeb2a5f24e0dc2252bc
Blueprint: network-manager-extension
2016-04-27 14:43:42 -07:00
Jenkins 0ffa8ef34d Merge "Add Deployment Info handlers" 2016-04-05 17:18:24 +00:00
Ilya Kutukov 88fe73e91a Merged plugins tasks and release tasks are added to the cluster handlers
Following handlers are implemented with graph_type support:

* Get merged plugins tasks for plugins enabled for the environment
  `GET /clusters/<cluster_id>/deployment_tasks/plugins/`

* Get cluster release deployment tasks
  `GET /clusters/<cluster_id>/deployment_tasks/release/`

Change-Id: I3411860990728a43641c7685b1e6ee736aab5c23
Closes-Bug: #1563848
Partial-Bug: #1563851
2016-04-05 13:52:22 +03:00
Alexey Shtokolov 132b4f8482 Add Deployment Info handlers
/api/transactions/:transaction_id/deployment_info
/api/transactions/:transaction_id/settings
/api/transactions/:transaction_id/network_configuration

Closes-Bug: #1564133

Change-Id: Ifbb539757b1954c07eb12d01b82c57480930e1a3
2016-04-04 17:30:45 +03:00
Ilya Kutukov cadf405a71 Direct deployment graph management handlers added to REST API
Following handles has been added:

GET /graphs/

GET /graphs/<graph-id>
PUT/PATCH/DELETE /graphs/<graph-id>

Change-Id: I87e07248ab973da13fbb071398efe719d09b68aa
Implements: blueprint custom-graph-execution
2016-03-28 20:59:32 +03:00
Jenkins f374b47a1b Merge "Linked deployment graph management handlers added to REST API" 2016-03-28 17:37:47 +00:00
Ilya Kutukov 3d1f96e529 Linked deployment graph management handlers added to REST API
Following handles has been added:

GET /releases/<release_id>/deployment_graphs/
GET/POST/PUT/PATCH/DELETE /releases/<release_id>/deployment_graphs/<graph_type>/

GET /clusters/<cluster_id>/deployment_graphs/
GET/POST/PUT/PATCH/DELETE /clusters/<cluster_id>/deployment_graphs/<graph_type>/

GET /plugins/<cluster_id>/deployment_graphs/
GET/POST/PUT/PATCH/DELETE /clusters/<plugin_id>/deployment_graphs/<graph_type>/

Change-Id: I1fd5fb53700c761a65249dd0a646dbdbf8d5272a
Implements: blueprint custom-graph-execution
2016-03-28 19:04:11 +03:00
Bulat Gaifullin 6d6bb7f169 Introduced LCM serializers
We need separate task serializers for LCM,
because LCM uses context per node for serialize tasks.
It also allows to isolate LCM related code for backward
compatibility with existing environments, that is not ready for LCM.

Change-Id: Ie95a58c8cf86eac1a5c3dbd956fafc401e40fed6
Implements: blueprint computable-task-fields-yaql
2016-03-28 11:48:06 +00:00
Vladimir Sharshov (warpc) 48a42a860b Introduce new history API
API url: `/api/transactions/<id>/deployment_history`

This change proposes to store all the information about
particular deployment tasks ever executed for each
particular cluster.

Change-Id: I73010a713ab8592418eb59bb133a427ac4c4a665
Implements: blueprint store-deployment-tasks-history
2016-03-25 20:06:29 +03:00
Bulat Gaifullin dd0990d008 Save information about deployment in Transaction
Also implemented handlers to get last deployed settings
and networks for the cluster

Change-Id: I1dffada651b71d6e9dac4f02020eb4f900a5e2f4
Implements: blueprint unlock-settings-tab
Implements: blueprint save-deployment-info-in-database
2016-03-25 17:03:58 +03:00
Vladimir Sharshov (warpc) 7e0e0ad5ed Introduce new tasks API `/api/transactions`
This API allow to manipulate all tasks including soft deleted.
It will use for Fuel CLI both versions.
Using this API fuel client can really remove task from DB.
This API should replace '/api/tasks' in future.

Change-Id: I7938929c64de80c3ea0463b15bba7de0f57d9ed1
Implements: blueprint store-deployment-tasks-history
2016-03-24 17:04:36 +00:00
Dmitry Shulyak 663b7ebc8e Add handler for serialized tasks used in t-b deployment
Handler will return output of the same serialized graph used for
deployment in json format. And it will be available using next uri

GET clusters/<:cluster_id>/serialized_tasks?nodes=1,2,3&tasks=task1,task2

Expected return codes are the following:

200 - serialized tasks returned
400 - task based deployment is not enabled for cluster
400 - Nodes dont belong to same cluster
404 - cluster or nodes - not found

implements blueprint serialized-graph

Change-Id: I170011778296acdb977f9d938c062f14c1c3d556
2016-03-02 13:31:35 +00:00
Vitalii Myhal 7e5607b376 Add --force flag for `fuel deploy-changes` command
The flag allows to apply the changes to the cluster if the cluster
is in the operational state. This allows you to deploy the changes
without the reprovisioning procedure.

Example: `fuel deploy-changes --env <env_id> --force`

Partial-Bug: 1540558
Change-Id: Ibc89fdbfbd0a36a890412cd8e861d35bcf930690
2016-02-29 11:34:51 -06:00
Jenkins 025b70b869 Merge "Remove legacy patching code" 2016-02-26 17:48:41 +00:00
Fedor Zhadaev 1c7335a726 Remove Mirantis-specific code from fuel-web repo
Remove code related to registration in Mirantis tracking system and
using Mirantis server to collect statistics.

Change-Id: Ie1243a8b12368a0d61cd51da2d5ab6cce3eeea65
Related to blueprint remove-vendor-code
Depends-On: Id67d6201cb23e371dc42ec6e818bcbc2ca0fde31
2016-02-26 13:25:17 +00:00
Igor Kalnitsky e91363ba9c Remove legacy patching code
In Fuel 5.1 we had an experimental feature - 'patching openstack env'.
The idea was to update and to rollback OpenStack environments between
minor releases. However, we have encounter a lot of problems with
restoring OpenStack databases andresolving dependency hell in packages,
so we buried it and never release it.

This patch removes legacy code from the source tree. We can do it
without fear, since it wasn't released in public.

Related-Bug: #1511499
Change-Id: I58b3fedd239eb7fe4226e51c2d6386efab14395d
2016-02-26 15:06:04 +02:00
Artur Svechnikov bd20145412 Add API for Node attributes
Add NodeAttributesHandler with methods GET and PUT

Change-Id: I7c81c9a4b5922602093ffcfc057e90f1eb7fa02a
Implements: blueprint support-numa-cpu-pinning
2016-02-24 11:16:48 +01:00
Ilya Kutukov 8f28676cf6 Basic VIP management handlers added to nailgun API
New VIP handlers is introduced that allows list VIP for cluster and get or update
specific VIP.

/clusters/:cluster_id/network_configuration/ips/vips
/clusters/:cluster_id/network_configuration/ips/:ip_address_id/vips

Partial-Bug: #1482399
Implements Blueprint: allow-any-vip
Change-Id: I4a4058c112bbdb26ab410e5e97b4e1e3afe7a082
2016-02-02 21:38:54 +00:00
Ilya Kutukov 136549955f API for master node level dashboard links
This patch inroduces set of API handlers for links to
the plugin dashboards that running on the master node:

plugins/:plugin_id/links/
plugins/:plugin_id/links/:link_id

Implements blueprint external-dashboard-links-support-in-nailgun
Closes-Bug: #1520287

Change-Id: Ia0e4e096ff5df595c6797ac76b1845ccdbb6cd3c
2015-12-02 14:31:56 +00:00
Alexander Saprykin 01381f1d24 Implement API for openstack configuration
* Add API handlers for openstack configuration to
  browse, upload, download and execute specified
  configurations.

Change-Id: I91ca0bc82b33d9555d3f558fd6138c5467a57e9c
Implements: blueprint openstack-config-change
2015-11-27 14:37:33 +00:00
Vladimir Sharshov (warpc) 5b5acc97f3 Fixed tech debt related to ClusterPluginLink
- move test from unit to integration;
- disable additional properties in validation schema;
- refactoring;
- add more documentation;
- add more tests;
- Cluster-level plugin dashboard entries is renames to the cluster plugin links;
- hidden field added to the ClusterPluginLink API;

Change-Id: I7dc99fc622359848e54c7ce248360db1bdef7f0f
Author:         Ilya Kutukov <ikutukov@mirantis.com>
Co-Authored-By: Vladimir Sharshov <vsharshov@mirantis.com>
Co-Authored-By: Ivan Kliuk <ikliuk@mirantis.com>
Closes-Bug: #1518381
2015-11-26 18:35:30 +03:00
Vladimir Sharshov (warpc) fe5552b012 API for dashboard entries
- Dashboard entry DB model and DB migration logic added,
 - Handler, json schema and validation added,
 - Serializer added,
 - Dashboard entires info added into statistics,
 - Public url for Dashboard entry creation.

Implements blueprint post-deployment-dashboard
Change-Id: I5e613bb35366227d1265fbc698e2efeddf931cc7
2015-11-20 15:57:49 +03:00
Andriy Popovych 53293d1da3 Component API implementation
Provide handler for component API with related logic.
Implement serialization format for component.

Change-Id: I11ae12f193f64592692fea0663b481f93dc6d665
Implements: blueprint component-registry
2015-10-28 16:51:13 +02:00
Maciej Kwiek 1ffc5e54e9 Fix hacking 0.10 errors in nailgun
Change-Id: I82e418d21e367ff379dda935f035dcc709c3a034
Partial-Bug: #1410810
2015-10-08 12:01:55 +02:00
Ryan Moe 7084177cae API for managing network groups
Individual network groups can be created, deleted and
modified. IP range management for each network is still
handled by the standard network_configuration API handlers.

Change-Id: I861485b5aebd8ae784fc71f405aab87e73f6d2e0
Implements: blueprint templates-for-networking
2015-07-23 15:25:22 +03:00
Kamil Sambor f94f8021c9 Add new feature group for advanced users
Added new feature group for features that are not
experimental, but user need to have special knowledge.
All use case of this features should be good documented
because user need to be aware of about risk or disadvantages.

Implements: blueprint reduced-footprint
DocImpact

Change-Id: Ia963f43c335d2bdbc305bd74a8fa663242b837b4
2015-07-20 15:25:05 +02:00
Ryan Moe eded14892c Add API handler for handling network template
YAML network template can be uploaded/got/deleted via a call
to api/clusters/<id>/network_configuration/template

Change-Id: I5c9ae51558dab2301e8ad8dffcf68a63ed0abdb4
Implements: blueprint templates-for-networking
2015-07-16 10:35:45 +03:00
Artem Roma 3f4449289c Add http handler for retrieving nodes' roles for cluster
Added two new handlers for retrieving roles of nodes included in
cluster: handler for getting metadata for single role by its name and
handler for getting metadata for all roles.

Tests updated

Change-Id: If162cf2f9eae36664fb8d486f9a87c5bf5f5540d
Implements: blueprint role-as-a-plugin
2015-07-09 13:10:58 +03:00
Kamil Sambor 930badc49b Add new api for vms deployment
* added create_vms tasks serializers
* added new handler to make partial deployment
  and spawn vms
* added tests
* added logic to manage vms for node

Change-Id: I831f88d8d3938839629c98966f185b9ea8c26732
Implements: blueprint reduced-footprint
2015-07-08 18:43:55 +02:00