Commit Graph

12728 Commits

Author SHA1 Message Date
OpenDev Sysadmins 2b3b74cf62 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:32:51 +00:00
Vladimir Sharshov (warpc) d60e2ac267 Excluding number of nodes in stop operation notification
Nailgun use block of nodes in stop operation to reset
such nodes in discovery state. Also Nailgun used such
data to calculate count of nodes for notifications.
But Astute will not send info about nodes in case
of task deployment.

This patch exclude count of nodes in stop notification
to prevent misslining message about successful operation
for 0 nodes

Change-Id: I32da2ccce11b22378f58759703fc4a56e31fd993
Closes-Bug: #1672964
(cherry picked from commit 3fb3b83f4a)
2017-04-26 15:00:28 +00:00
Georgy Kibardin 8f094044f9 Override keys() with a function, not an attribute
By mistake keys function has been overriden by a value.

Change-Id: I713bddcfb66c4835d477972ece7e0983d263377f
Closes-Bug: #1666913
(cherry picked from commit b8e2606daf)
2017-04-13 11:42:39 +00:00
Jenkins f59d2c55ef Merge "Ceph pool creation should be called only once" into stable/newton 2017-03-30 13:26:22 +00:00
Jenkins d736ba5487 Merge "Add appending task names into legacy tasks adapter" into stable/newton 2017-03-29 17:34:50 +00:00
Jenkins c6a20f8268 Merge "Set empty list of tasks by default" into stable/newton 2017-03-29 17:26:15 +00:00
Fedor Zhadaev ae0e7340bd Add appending task names into legacy tasks adapter
task_name is required task field, so it should be added for
adapted legacy tasks too.

Change-Id: I1396846b56685672542eec1e9c4ae8c837d1e128
Closes-Bug: #1675727
2017-03-29 14:47:50 +00:00
Alexander Kislitsky b46dd24aac Ceph pool creation should be called only once
PG number should'n be updated on adding ceph-osd nodes.
It should be done manually by user only after new node is
sucessfully joined and rebalance is finished.

Change-Id: I4ec7ab8b713fd488dd63e83491d1b60966420d00
Closes-Bug: #1668553
2017-03-28 23:26:44 +03:00
Vladimir Kozhukalov e4290053d9 Set empty list of tasks by default
If a graph does not assume running any tasks on some nodes,
these nodes will hang on 1% progress forever because astute
just knows nothing about these nodes and thus is unable to
send any report about these nodes.

Change-Id: Id8f2f8112720180e13193d70b47c88c3106ffe6f
Closes-Bug: #1666192
2017-03-28 18:52:47 +03:00
Igor Gajsin 8a42287959 Reorder configs_query by time
There is the possibility to change OpenStack config after deployment.
Changes could be applied per role. And in the case of multiple roles
on a node, many changes could pretend to be applied. I.e. if we have
a config for the role 'compute', a config for the role  'cinder' and
a node with role 'cinder+compute' we have to choose one of them.

Previous decision was 'sort it in the lexicographical order', so it
applies 'cinder' then --- 'compute'. It is contra intuitive. The best
option is applying to a node the last related config, to new config
overlaps old ones.

Change-Id: I7db388ca3baeb351adc9fdb70c55b0be50fafe48
Closes-bug: #1671521
2017-03-28 13:24:47 +00:00
Jenkins 1ebd029b5e Merge "add removed handlers" into stable/newton 2017-03-28 09:19:15 +00:00
Jenkins 0b7258bb1e Merge "Moving task cache update into task creation transaction" into stable/newton 2017-03-28 09:18:37 +00:00
Jenkins c5ce5e75a1 Merge "fix assert to assertTrue" into stable/newton 2017-03-28 08:19:23 +00:00
Jenkins 7fde2077b9 Merge "Revert "Distributed serialization implementation"" into stable/newton 2017-03-27 18:46:05 +00:00
Jenkins 79a56b42f1 Merge "Revert "Packages for distributed serialization added to provision"" into stable/newton 2017-03-27 18:37:47 +00:00
Vladimir Kuklin c6b1e3e75d Revert "Packages for distributed serialization added to provision"
This reverts commit 333f2b62ea.

Change-Id: Iec4dab2bf0d6b01c9e758764ae745ae72294d208
2017-03-27 17:53:05 +00:00
Alexander Kislitsky be22c37e42 Revert "Distributed serialization implementation"
This reverts commit f3c440f769.

Change-Id: I5da94146b260fd3f211821a9f2ad7f35d31e2b0f
2017-03-27 16:13:38 +00:00
Vladimir Kozhukalov 7382ead0b3 Add python-distributed package as nailgun dependency
Change-Id: I852ad5491b2225c8a211f7216d1a17b2b6c53487
2017-03-27 10:30:17 +03:00
Jenkins e91974d034 Merge "Packages for distributed serialization added to provision" into stable/newton 2017-03-24 17:19:18 +00:00
Jenkins eb4e081a51 Merge "Introduce proper packaging for fuel-nailgun deb package" into stable/newton 2017-03-24 16:36:33 +00:00
Alexander Kislitsky 333f2b62ea Packages for distributed serialization added to provision
We are going to use provisioned cluster nodes as workers for
distributed task serialization. Package python-distributed
provides dask-worker for nailgun code execution. Other packages
are nailgun requirements.

Change-Id: I95b7682c64fe2eedb26fc80046909974cc792c91
Implements: blueprint distributed-serialization
2017-03-24 15:57:02 +00:00
Jenkins 778fb3ba69 Merge "Distributed serialization implementation" into stable/newton 2017-03-24 15:52:59 +00:00
Georgy Kibardin 72eaa18921 Use tags instead of roles
Now the deployment behaviour is driven by tags rather than role names, i.e. role
name cannot be relied upon.

Change-Id: Icfabeeb0b7fb6a9d697a09c3cf1fa020bbd4c323
Closes-Bug: #1669743
(cherry picked from commit fba3bc3445)
2017-03-24 12:04:00 +00:00
Alexander Kislitsky f3c440f769 Distributed serialization implementation
Distributed serialization is implemented with python distributed
library. We have scheduler for jobs management and workers for
jobs processing. Scheduler is started on the master node as well
as set of workers on it. Also workers are started on all nodes.
In the cluster settings we can select the type of serialization
and nodes statuses that allows serialization on it. By default
nodes with status 'ready' are excluded from the workers list.

For data serialization we are using only nodes from the cluster
where serialization is performing.

Before the computation fresh nailgun code is sent to the workers
as zip file and it will be imported for job execution. So we always
have fresh nailgun code on the workers.

In one job we are processing chunks of tasks on the workers. This
approach significantly boosts performance. The tasks chunk size
is defined as settings.LCM_DS_TASKS_PER_JOB parameter.

For limiting memory consumption on the master node we use parameter
settings.LCM_DS_NODE_LOAD_COEFF for calculation max number of jobs
in the processing queue.

Synthetic tests of distributed serialization for 500 nodes with
nubmer of ifaces >= 5 performed on 40 cores (4 different machines)
took 6-7 minutes on average.

Change-Id: Id8ff8fada2f1ab036775fc01c78d91befdda9ea2
Implements: blueprint distributed-serialization
2017-03-24 11:11:39 +00:00
Igor Gajsin 6aae44d79c 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
(cherry picked from commit cb8529a84a)
2017-03-23 13:24:12 +00:00
Georgy Kibardin d7ee3e8e4b Moving task cache update into task creation transaction
Doing this we avoid inclusion of task cache update statement into the next
transaction which may cause different problems such as deadlocks.
(update happens inside make_astute_message() function)

Change-Id: I865b98beb621bee089cf79f1304498fd3637d64f
Closes-Bug: #1618852
(cherry picked from commit 2caa56fa6e)
2017-03-23 10:23:41 +00:00
Vladimir Kuklin 746fae6e0a Introduce proper packaging for fuel-nailgun deb package
Closes-bug: #1665311
Related blueprint: distributed-serialization

Change-Id: I0c11d18ed456c253971a312f9fb5a41220549be5
2017-03-21 13:31:53 +00:00
Igor Gajsin 94b19f4edf add tests for alembic migration
There was the commit that removes vmware. It has alembic migrations,
but doesn't have any tests for that. This commit fixes that.

Change-Id: I66090b0a0d7bfbd8e2365ec027fabfefc9d612da
Closes-Bug: #1668249
(cherry picked from commit a8ac320d8f)
2017-03-20 16:14:55 +00:00
Vladimir Kozhukalov 619de44b86 Add dhcp params to network_metadata
Provision as a graph feature assumes we run puppet task
on the master to configure dhcpd, bind and tftp.
This task among other things binds node MACs to IP and
we need to pass some dhcp params as a part of network_metadata.

Change-Id: I221d100a092fd52802c8833ac162a67deeef1906
Implements: blueprint get-rid-cobbler-dnsmasq
2017-03-14 10:19:52 +00:00
Vladimir Kozhukalov ed41575d09 Fix requests requirements
Change-Id: Ib694ea4eb0fd08b2b8532ebe00b36b49155e91a1
Closes-Bug: #1672658
2017-03-14 12:31:17 +03:00
Julia Aranovich 8b895a27c7 Make Ceilometer and MongoDB experimental features
Since Fuel 10, Ceilometer and MongoDB services become experimental features.

* Ceilometer and MongoDB settings are shown on Settings tab in Fuel UI
  only if "experimental" feature group is enabled
* MongoDB role is available if "experimental" feature group is enabled only
* Ceilometer option is removed from the cluster creation wizard

Implements: blueprint remove-ceilometer

Change-Id: I6df3b47c14cafb1544dfe034cd9a2c0ad14205be
2017-02-28 12:57:05 +00:00
Julia Aranovich 91bbc75375 Make Murano an experimental feature
Since Fuel 10, Murano service becomes an experimental feature.

* Murano settings are shown on Settings tab in Fuel UI
  only if "experimental" feature group is enabled
* Murano option is removed from the cluster creation wizard

Implements: blueprint make-murano-experimental

Change-Id: I4dd0853138c045b8d7e8f6ff940c09250763a56b
2017-02-27 14:02:48 +04:00
Jenkins 86027c83d7 Merge "Add limit, offset, order in collection GET" into stable/newton 2017-02-27 09:05:41 +00:00
Igor Gajsin 95b2c06c4f remove vmware
VMware not supported since Fuel 10. Remove it from the nailgun.

Implements: blueprint remove-vmware

Change-Id: Ia26a97d13bb9c3d2e838d639efdababbb15f86da
(cherry picked from commit 634b66df45)
2017-02-22 15:03:27 +00:00
Jenkins 3a6043801f Merge "Using assertIs(Not)None() instead of assert(Not)Equal(None)" into stable/newton 2017-02-22 09:16:52 +00:00
Dmitry Sutyagin c89a8569db Add limit, offset, order in collection GET
Allow limiting the number of objects returned via GET
by providing "limit"
Example: api/notifications?limit=5

Allow offseting (skipping N first records) via "offset"
Example: api/notifications?offset=100

Allow ordering of objects by providing "order_by"
Example: api/notifications?order_by=-id

Add helper functions/classes to:
- get HTTP parameters (limit, offset, order_by)
- get scoped collection query by applying 4 operations
  filter, order, offset, limit
- set Conent-Range header if scope limits are present

Make default NailgunCollection's GET utilize scoped query
This makes default (parent) GET of child handlers support paging
and ordering (overriden GET methods will not get this functionality
automatically)
NailgunCollection.GET is also an example of how to implement
this new functionality.

Helper functions/classes can be utilized in child handler methods
to implement filters / ordering / paging

Related-Bug: 1657348
Change-Id: I7760465f70b3f69791e7a0c558a26e8ba55c934a
(cherry picked from commit 03aaca2dee)
2017-02-22 01:09:31 +00:00
Andreas Jaeger 11eea8b894 Prepare for using standard python tests
Add simple script to setup mysql and postgresql databases, this script
can be run by users during testing and will be run by CI systems for
specific setup before running unit tests. This is exactly what is
currently done by OpenStack CI in project-config.

This allows to change in project-config the python-db jobs to
python-jobs since python-jobs will call this script initially.

See also
http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html

Change-Id: Ib72322030d7dc6979380f74379893084610982a1
(cherry picked from commit 61d12028e6)
2017-02-14 14:04:49 +00:00
Jenkins 680f3702eb Merge "Set nodes' statuses to 'error' when their nodegroup is deleted" into stable/newton 2017-02-14 10:39:17 +00:00
Jenkins 8cd8569d19 Merge "Fix typo in sriov.numvfs 9.2 migration" into stable/newton 2017-02-13 13:57:08 +00:00
Sergey Abramov e41c110cbb Serialize only active configs
DeploymentLCMSerializer should return only active OpenstackConfigs

Change-Id: I2adee9e8a40f4295e807a5ff7a2e060793e55b24
Closes-bug: 1632235
(cherry picked from commit 6266d27f15)
2017-02-10 09:00:27 +00:00
Julia Aranovich aee06be9b6 Fix typo in sriov.numvfs 9.2 migration
Closes-Bug: #1657709

Change-Id: I3297b62df1e887425e9940cc12807a4758423bfd
(cherry picked from commit b315dda52e)
2017-02-09 11:53:49 +00:00
Jenkins 78c176ce70 Merge "Moving task cache update into task creation transaction" into stable/newton 2017-02-09 11:45:12 +00:00
Jenkins 93ede59106 Merge "Handler for changing notifications statuses added" into stable/newton 2017-02-09 11:38:37 +00:00
Jenkins 4decd46f5a Merge "Hide DPDK section if experimental is turned off" into stable/newton 2017-02-09 11:29:54 +00:00
Jenkins a98a58d318 Merge "Make migration file for 9.2 consistent with openstack.yaml" into stable/newton 2017-02-09 11:29:35 +00:00
Vladimir Kuklin f26a168b72 Set nodes' statuses to 'error' when their nodegroup is deleted
According to the bug below and the spec, we did not implement
one multirack feature aspect.

https://specs.openstack.org/openstack/fuel-specs/specs/8.0/multi-rack-static.html#notifications-impact

Now we add resetting node to error to node group deletion callback and
send a notification.

Change-Id: I6b2bae5601ba7dbca620bb3861e95b0e554f8699
Closes-bug: #1644630
(cherry picked from commit cd2ee13830)
2017-02-09 11:19:40 +00:00
zhaorenming ce1f1c1e9d fix assert to assertTrue
Change-Id: I9bc3756b1fdf1ab2c56275b7c045c272dcc8ac8c
(cherry picked from commit d59c3d6f38)
2017-02-09 10:36:01 +00:00
Alexander Kislitsky d66a0cdb97 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
(cherry picked from commit 71fb921dbe)
2017-02-09 07:32:14 +00:00
Dmitry Guryanov 0b5b853317 convert uids to list before passing to make_*_task
RoleResolver returns set of uids, but functions, which
make tasks want list.

Change-Id: I959a61a53ff55da400423ac871a2b61366c75f9a
Closes-Bug: #1606823
(cherry picked from commit 68c0d42ae0)
2017-02-08 19:35:34 +00:00
Jenkins 4dac11b4dd Merge "Handler for counting notifications statuses added" into stable/newton 2017-02-08 14:33:50 +00:00