Commit Graph

28 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
Cuong Nguyen 5df1c9f08d Use assertIsNone instead of assertEqual(None, obj)
As stated by document [1], it's better to use assertIsNone instead of
assertEqual(None, obj)

[1]
http://docs.openstack.org/developer/hacking/#unit-tests-and-assertraises

Change-Id: I2dd12c4e5c31761e2069c96cf135a8d306d13cb8
2017-01-23 13:04:32 +07:00
Stanislaw Bogatkin 064722cca6 Explicitly remove pending_addition flag on discovered node deletion
As we set pending_addition flag on node assignment, remove it
on node unassignment accordingly.

Change-Id: I9ed3d85ad2134b362ab145e7008dc8447590a590
Closes-Bug: #1644853
2016-12-16 19:40:43 +03:00
Mikhail 70aafb4aa8 Introduce new validation rules for tags and roles
Change-Id: Ia45c81a46e9323faa6471438acbfa6d65d01b7f4
Implements: blueprint role-decomposition
2016-11-30 19:56:52 +00:00
Evgeny L d6d6d1abdd Allow to update roles for deployed nodes.
Closes-bug: #1641189
Change-Id: Ibe55b6011922f6a0c8cabfcaa1b4ced3ccd328be
2016-11-18 16:38:34 +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
Bulat Gaifullin 666086a946 NodeAssignment handler should return valid json
Fuel-Client expects valid json for all put and post
requests, so this patch fixes regress introduced by
patch: Ia3da3bd809bcca923d53666eca54def78c995f65

Change-Id: I6066e21504bb39e580609db14e1a4e5ea7d13258
Closes-Bug: #1606211
2016-08-24 21:01:03 +00:00
tivaliy cef9e67064 Fix incorrect values of nodes ids in Nailgun response
Fix incorrect value of nodes ids in nailgun response
(400 Client Error) during nodes assignment procedure for
already assigned nodes

Change-Id: I0c0812c683a768a7a1007037fc8d4470fcae643e
Closes-Bug: 1576198
2016-05-12 10:19:41 +00:00
Dmitry Guryanov 9eeaa679d1 Don't use self.env.clusters[0] in tests where possible
Since self.env.create always return db object now,
we can use this returned value instead of
self.env.clusters list.

It's a refactoring, so no bug or blueprint.

Change-Id: If7c84cb7124bcf08ef5ff110542012564190fae1
2016-04-26 17:53:36 +03:00
Ryan Moe 09a256d9c8 Assign networks based on template
When a node is added to a cluster with a network template
networks will be mapped to NICs based on transformations
in the template. Any bonds will be created in the database.
Any time the cluster's network template is changed the NIC
mapping will be recreated.

Change-Id: I2b52444f3019241362e5a957bf191645b94ebaa7
Closes-bug: #1493391
2015-10-19 05:40:32 -07: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
Aleksey Kasatkin bbb918473b Add IP assignment optimized for network template
IPs were allocated for every network on every node
regardless of network to nodes mapping which is set in template.
It led to excessive IP usage.
Now it is fixed so that IPs are allocated only for nodes where they are required.
And IP allocation is optimized for the case with network template and for other
cases partially.
A number of small fixes were made on the base of comments in earlier RCs.

IP allocation comparison in DB queries count (only for replaced part):
old version: 1 query per IP to allocate + 1 query per occupied IP in that range
new version: 1 queries per network (for all IPs) if (occupied IPs)+(IPs to allocate) <= MIN_IPS_PER_DB_QUERY
             2 queries per network otherwise (typically).
New version is much better for large numbers of nodes.
nodes |      queries count        |
count |   old   |   new           |
      |min| max |min|  max        |
    1 |  1|  1+N|  1|1+ceil(N/5)**|
   10 | 10| 10+N|  1|1+ceil(N/10) |
  100 |100|100+N|  1|1+ceil(N/100)|
where N is a number of occupied IPs.
** 5 here is value of MIN_IPS_PER_DB_QUERY.

Change-Id: I4479bcae9e80f7b96750f9fdb2868d6df164baf6
Closes-Bug: #1480345
2015-08-19 12:36:03 +03:00
Ivan Kliuk 154436e977 Swap deprecated oslo namespaces
Since 'oslo.config' and 'oslo.serialization' namespaces are deprecated, they
are swapped with 'oslo_config' and 'oslo_serialization' correspondingly.
Lower bounds of supported versions are updated as well.

Change-Id: I133c7676da504933d03e147af3a239d6559d5aac
Closes-Bug: #1478900
2015-07-23 23:33:58 +03:00
Nick Bogdanov 9b1083d135 Adds "*" support in openstack.yaml for conflicts
"*" can now be used in openstack.yaml roles conflicts section if
role conflicts with all others

Change-Id: I4628ac55946f1b8d58d708cde0b9f45b3a61eb29
Closes-Bug: #1466420
2015-07-24 13:11:28 +03: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
Sylwester Brzeczkowski 4275cdaedc Snapshot download with authentication
Add new handler SnapshotDownload which returns empty response
with X-Accel-Redirect header. Nginx reads this header and
serves actuall snapshot file.

Also changed 'reverse' function location, let it be more
available for other modules.

Change-Id: Id46b533e8d2a8021d1fbb2e5d4284508e1181704
Implements: blueprint snapshot-download-with-auth
2015-07-03 09:59:35 +00:00
Maciej Kwiek 1523c0701a Replace jsonutils with oslo.serialization version
jsonutils is now in separate library, and the oslo.serialization will be
used from now on.

Change-Id: I28b6b70e437f154cf1b9ce0b15b0c3e716d170ee
Depends-On: https://review.openstack.org/#/c/158674/
Closes-Bug: #1400661
2015-03-02 10:35:31 +01:00
Ryan Moe 61fd426709 Allow multiple networks to be created per cluster
Added a NodeGroup model. NodeGroups can be created and modified
via the Fuel API. Clusters are created with a default node group
and the cluster networks are tied to that default node group.

Upon creation of a node group a set of networks will be generated.
When a node group is deleted those networks will be deleted as well.

See previous change: Ic30a1b46112599022645b06f7bef2223ff4c6475

DocImpact
Change-Id: I8bbe6b8c6338d6586c7e9a61542939ae2a19828b
Implements: blueprint multiple-cluster-networks
2014-10-30 10:59:49 -07:00
Dima Shulyak 3de47c11a0 Remove bonds from configuration on node unnassign
- Bonds should be removed from configuration when node
  unnasigned from cluster
- If no admin network group is found, lookup admin interface
  by cidr only on node.nic_interfaces

This bug partially fixed by previous refactoring

Change-Id: Ibafab7d2aa2a3377a6c184a689a2607b4953ee09
Closes-Bug: #1328163
2014-06-25 20:13:09 +00:00
Christian Berendt f78b4a0854 change assert(Not)Equals to assert(Not)Equal
According to http://docs.python.org/2/library/unittest.html
assert(Not)Equals is a deprecated alias of assert(Not)Equal.

Change-Id: If90709756ccb6022641b915e47a5c7af4fe1fc1c
Closes-Bug: #1329757
2014-06-23 16:23:27 +03:00
Igor Kalnitsky df2082d3eb Check Env for exist before validating assignment
If we try to assign some role to some nodes with invalid cluster id:

    $ fuel --env 99 node set --role controller --node 1 2 3

we will get an internal server error (500). Since now, it's fixed.

Change-Id: I9bea9a498295b5db2114874c3502425d7dc94b46
Closes-Bug: #1317703
2014-06-10 14:22:24 +03:00
Ivan Kolodyazhny 59b88df3a3 Use jsonutils instead of json module
Change-Id: Ib54796c4ae3747d9a5c0576467ba4bb794a9b483
Closes: bug #1292561
2014-06-04 18:03:55 +04:00
Łukasz Oleś 7c36740770 Revert "Allow multiple networks to be created per cluster"
This reverts commit 9530ef323b.

The change didn't get enough reviews. There is already reported bug https://bugs.launchpad.net/fuel/+bug/1308041 and there are potential more bugs.
There is also some incosistency in handling admin network. All concerns are described in comments in https://review.openstack.org/#/c/83204/18
There are some concerns about API design addressed in https://review.openstack.org/#/c/83204/16

Change-Id: I2285e52c91692e908008afa377ed26081b4bbd43
2014-04-16 15:35:34 +02:00
Ryan Moe 9530ef323b Allow multiple networks to be created per cluster
Added a NodeGroup model. NodeGroups can be created and modified
via the Fuel API. Clusters are created with a default node group
and the cluster networks are tied to that default node group.

Added API handler for creating new NetworkGroups.

Implements: blueprint multiple-cluster-networks
Closes-bug: #1272142
Change-Id: Ic30a1b46112599022645b06f7bef2223ff4c6475
2014-04-14 16:45:14 -07:00
Andrew Woodward eed71d9a2f Remove requirement for ha_compact to have 3 controllers
Remove ha_compact constraint
Remove tests from declaring cluster mode and set ha_compact as default
Reverse order of multinode and ha_compact, ha_compact should become
 default in menus

This depricates multinode deployments following the logic that all
 ha deployments can now support single controllers.

Further commit will be needed to remove multinode when this is considered
 stable

Change-Id: I8a69897aecc450be4ec5c7b4d786ccc1c2fd93aa
Implements: blueprint single-controller-ha
2014-04-01 14:33:00 -07:00
Dima Shulyak 7769a9fbbd Update editable attributes partially
If we receive from PUT smth like:
{"editable": {"storage": {"osd_pool_size": {"value": 3},
"volumes_ceph": {"value": true}}}}

attributes.editable will contain only received data and no default one

Changing paste.TestApp for webtest.TestApp cause TestApp does not have
PATCH method available

Change-Id: I259ee806c9464cb82b391e9c3b633e5e7f5f11d3
Closes-Bug: #1283135
2014-03-12 12:07:59 +02:00
Alexandr Notchenko 036f65d5dd Remove nodes only with correct environment ids
* Fix in node unassignment handler's validator
 * Also fixed IvalidData error response formatting
 * Extended test for unassignment validation

 Closes-Bug: #1286091
 Closes-Bug: #1286036

Change-Id: Ie50954a5b043aa8141188bea345112232b6b7f57
2014-03-04 17:12:49 +04:00
Alexandr Notchenko 530146a76f Created Node (Un)Assignment Handler
* Created  handler, validator,
 added url to  handler mapping.
 * Created test for assignment
 and unassignment.
 * Moved role validation from
 fuelclient to assignment validator
 * new handlers used in fuelclient
 * refactored fueclient for new
 assignment and unassignment API

 Closes-bug: #1265036
 Implements: blueprint create-separate-handler-for-node-assignment

Change-Id: Ie1dce1401e0f43cc336662bf29a4e5e72bd80db1
2014-02-19 11:06:57 +04:00