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
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
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
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
/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
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
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
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
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
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
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
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
Network-related API handlers and validators have been moved into
the network_manager extension.
Change-Id: Idf4ab0becdb13801c1f10aeb2a5f24e0dc2252bc
Blueprint: network-manager-extension
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
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
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
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
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
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
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
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
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
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
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
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
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
* Add API handlers for openstack configuration to
browse, upload, download and execute specified
configurations.
Change-Id: I91ca0bc82b33d9555d3f558fd6138c5467a57e9c
Implements: blueprint openstack-config-change
- 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
- 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
Provide handler for component API with related logic.
Implement serialization format for component.
Change-Id: I11ae12f193f64592692fea0663b481f93dc6d665
Implements: blueprint component-registry
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
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
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
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