Commit Graph

236 Commits

Author SHA1 Message Date
OpenDev Sysadmins 9ed5ab90bb 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:36:35 +00:00
Ian Wienand b3b53de759 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I08e284ae1aecb68782993d819badde13d45568d7
2019-03-24 20:34:11 +00:00
Rikimaru Honjo 33a81c5c47 Add masakari-systemfault-integration-ci to .zuul.yaml
This patch modifies .zuul.yaml to run masakari-systemfault-integration-ci.

Change-Id: I9792d972e04ca28133fd0cd4c5d5fcf12ad17ca6
2019-02-06 04:36:40 +00:00
Nguyen Hai db48d2b0af import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I826899e99ec86cedf0e3d8e3c6f2559407384f52
Story: #2002586
Task: #24310
2018-08-17 19:21:43 +09:00
OpenStack Release Bot 7ba3de5544 Update UPPER_CONSTRAINTS_FILE for stable/queens
The new stable upper-constraints file is only available
after the openstack/requirements repository is branched.
This will happen around the RC1 timeframe.

Recheck and merge this change once the requirements
repository has been branched.

The CI system will work with this patch before the requirements
repository is branched because zuul configues the job to run
with a local copy of the file and defaults to the master branch.
However, accepting the patch will break the test configuration
on developers' local systems, so please wait until after the
requirements repository is branched to merge the patch.

Change-Id: I133002dd6c6dcc1c148d23d936883cf4a750f4ac
2018-03-03 13:52:02 +00:00
OpenStack Release Bot 92721d8ebb Update .gitreview for stable/queens
Change-Id: If68f7a9a7ea5bfedb5d414d00b69cdfef19cccee
2018-03-03 13:51:57 +00:00
Zuul 7b6255af24 Merge "Fix default value of 'nova_catalog_admin_info'" 2018-02-21 16:12:31 +00:00
dineshbhor d6483b9282 Fix default value of 'nova_catalog_admin_info'
Devstack deploys nova service with name as 'nova' but in
masakari.conf 'nova_catalog_admin_info' default is
'compute:Compute Service:publicURL' which causes below error
while executing masakari notifications:

EndpointNotFound: publicURL endpoint for compute service named
Compute Service not found.

This patch fixes this issue by changing the default value of config
option 'nova_catalog_admin_info' to 'compute:nova:publicURL'.

NOTE:
In real production deployment of masakari operator has to set the
value of this config option according to the nova service name that
he/she configures.

Closes-Bug: #1746229
Change-Id: I032d85e7e11836a282251885a7f9d4bc76ce7045
2018-02-21 14:46:29 +09:00
Zuul 0bb3e0c23a Merge "Ignore '409 Conflict' when adding reserved_host to aggregate" 2018-02-20 07:30:21 +00:00
Zuul d23b19edf6 Merge "Improve the home-page url in setup.cfg" 2018-02-20 02:54:11 +00:00
OpenStack Proposal Bot 38937a46f1 Updated from global requirements
Change-Id: Ia3bd9abe422c6ea83d295e992601e28a4801a438
2018-02-01 07:13:52 +00:00
Zuul 66123f9bb8 Merge "Remove setting of version/release from releasenotes" 2018-01-31 13:18:01 +00:00
ghanshyam 2395cd75f8 Remove use of unsupported TEMPEST_SERVICES variable
TEMPEST_SERVICES global variable is not supported
by devstack since long back.
- I380dd20e5ed716a0bdf92aa02c3730359b8136e4
- I9c24705e494689f09a885eb0a640efd50db33fcf

Service availability of tempest known services will be
set by devstack with local check.
- I02be777bf93143d946ccbb8e9eff637bfd1928d4

masakari does not have tempest plugin so it does
not need to have service register in tempest.

This commit removes the TEMPEST_SERVICES setting.

Change-Id: I30673a3d739e013caec2b8d4a2295d71ab40e491
Related-Bug: #1743688
2018-01-23 16:40:03 +03:00
Zuul 4daa43330d Merge "Stop using deprecated 'message' attribute in Exception" 2018-01-23 03:01:36 +00:00
Kengo Takahara 83b77df247 Ignore '409 Conflict' when adding reserved_host to aggregate
This patch modifies that masakari-engine ignores '409 Conflict'
when adding reserved_host to aggregate.

Change-Id: I4603df36370154a8168d53b74c551feefc13cb4b
Closes-Bug: #1739383
2018-01-19 15:17:58 +09:00
Rikimaru Honjo cc90f7edb7 Stop using deprecated 'message' attribute in Exception
The 'message' attribute has been deprecated and removed
from Python3.
For more details, please check:
https://www.python.org/dev/peps/pep-0352/

P.S.
The 'message' attribute still exists in the below file.

masakari/api/validation/validators.py

Because jsonschema.ValidationError has 'message' attribute:
http://python-jsonschema.readthedocs.io/en/latest/errors/#jsonschema.exceptions.ValidationError.message

Change-Id: Id83f15b6d7c7cd4811f2b2e2e56db607a0e19f4d
2018-01-15 17:53:37 +09:00
shangxiaobj f43de14376 Improve the home-page url in setup.cfg
Replace the home-page of masakari with the full url in setup.cfg.

Change-Id: I195951761931d2c4e1a6cd7ea9742ea4b11a1c6a
2017-12-26 07:12:07 +00:00
Zuul b53771cc08 Merge "Masakari operator's documentation" 2017-12-12 02:30:52 +00:00
Zuul 2dfe50dd92 Merge "Masakari developer's documentation" 2017-12-12 02:30:51 +00:00
Zuul 750029757b Merge "Masakari API Specifications" 2017-12-12 02:30:51 +00:00
Zuul db2ca32722 Merge "Updated from global requirements" 2017-12-12 01:37:27 +00:00
Zuul 4acc66e953 Merge "Remove unnecessary sleep" 2017-12-12 01:37:27 +00:00
Kengo Takahara d621267402 Evacuates instances which task_state is not none
This patch added implementation so that masakari can evacuate
instances which task_state is not none.
After the instance evacuated, it is recovered with original
vm_state. So if the instance's vm_state was 'stopped', it is
recovered with 'stopped', and if 'error', it is recovered
with 'error'.

Change-Id: I7af8552de0ee77b948a071b7f787514a81ccebc3
Closes-Bug: #1721742
2017-12-11 18:44:21 +09:00
Kengo Takahara 8cac6b77a9 Remove unnecessary sleep
This patch removed unnecessary sleep which existed in host-failure
recovery process.

Change-Id: Ic1df0200c8ddf7d6be7548f1df5b37b74a9ba737
Closes-Bug: #1736906
2017-12-11 17:34:52 +09:00
OpenStack Proposal Bot c75a4d5bf4 Updated from global requirements
Change-Id: Idfaf27e09059eeefeafa6420cca067535e140909
2017-12-10 07:12:41 +00:00
Abhishek Kekane fa0e35dc29 Masakari operator's documentation
Added overview of masakari, sample configuration and policies
required for masakari.

Change-Id: If81e92dbdaa4bd9869b7e60d5aaf313532c25676
2017-11-27 05:31:21 +00:00
Abhishek Kekane c54d45f5db Masakari developer's documentation
Added documentation for how to get involved, development qucikstart
and masakari system architecture.

Change-Id: Ie2cbdde7698a79a1b996e485d141eb15dbded4cd
2017-11-27 05:31:13 +00:00
Abhishek Kekane f5e074c9e4 Masakari API Specifications
Added api specifications for versions, segments, hosts and
notifications as per OpenStack standards.

Change-Id: Iefc83254e22fc31d1f0d13f52e71d42c63e82b7d
2017-11-27 05:29:45 +00:00
rajat29 c541f394f1 Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.

Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.

This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html

Change-Id: I2f61f9767882c74b7fb7b54ec890a5c1b8f03aaf
2017-11-17 10:23:50 +05:30
OpenStack Proposal Bot 42e4807626 Updated from global requirements
Change-Id: I1f879d0595b991ca6c06593bc33dc67689941155
2017-11-15 11:47:47 +00:00
Zuul fdedef247f Merge "Updated from global requirements" 2017-11-14 08:40:16 +00:00
Zuul abf1ec6c8c Merge "Make eventlet hub use a monotonic clock" 2017-11-14 07:49:18 +00:00
OpenStack Proposal Bot d6578d572e Updated from global requirements
Change-Id: Ibc65156c494b2132dcad2feff0fc2ec9e0634e7d
I1f879d0595b991ca6c06593bc33dc67689941155
2017-11-14 16:45:13 +09:00
Zuul bcb7a6b5fe Merge "Use service_type and service_name of nova_catalog_admin_info" 2017-11-14 07:28:50 +00:00
Dinesh Bhor 2c4574bfdc Make eventlet hub use a monotonic clock
If system time is adjusted first forward and then backward while a
masakari-engine service is running, then the periodic tasks stops
for the duration of time the system clock was adjusted backward.

This was supposed to be fixed by the following patch to oslo.service
https://review.openstack.org/#/c/286838/ , but the order of imports
in unit tests and production code is different, so masakari services
end up starting with the default eventlet hub, that does not use a
monotonic clock and, thus, is affected by changes of system time.

Testing the change done in the patch is problematic, as it's a
subject of imports order and is not reproduced in functional or
unit tests (oslo_service is always imported earlier than eventlet
hub is initialized, so it just does "the right thing").
The alternative is to make an assertion when services start.

Co-Authored-By: Roman Podoliaka <rpodolyaka@mirantis.com>
Closes-Bug: #1510234
Change-Id: I9d917b3151d9cdf7340a173b5baf98def63c76cd
2017-11-14 07:15:45 +00:00
Dinesh Bhor 57bbe7dead Fix devstack installation of masakari
Recently a commit: 188173a807 got
merged into masakari which replaces a rpc method 'get_transport'
with 'get_rpc_transport'. The 'get_rpc_transport' expects the
oslo.messaging config option 'transport_url' [1] to be present in
the [DEFAULT] section of masakari.conf. The current masakari devstack
script doesn't add 'transport_url' in masakari.conf which results
into failure of devstack installation of masakari.

This patch fixes this issue by using an inbuilt devstack function
'iniset_rpc_backend' to add the 'transport_url' config option in
masakari.conf.

[1] * https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/transport.py#L44
    * https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/transport.py#L201

Closes-Bug: #1728544
Change-Id: I75da054c6669aa90dd96c3ede3ae98de74275de2
2017-11-14 04:31:47 +00:00
Rikimaru Honjo bdafc3ef32 Modify unit testcases according to oslo.context
oslo.context>=2.19.1 outputs 'project' key in context's to_dict
function.
The value of 'project' key is same as 'project_id' key.

So this patch modifies unit testcases according to the above changs.

And, this patch adds oslo.context to requirements.txt.
oslo.context had been installed related to oslo.versioned object
until now.
But, it is better to describe it explicitly because Masakari uses
the library.

Change-Id: Ibebed8a4e5bfd49f192b1cf876b7538f9c057f97
2017-11-14 04:06:23 +00:00
Kengo Takahara 99dd18d053 Use service_type and service_name of nova_catalog_admin_info
Masakari has never used service_type and service_name of
nova_catalog_admin_info. However, these can be specified
when masakari creates a novalient object.
This patch modified so that masakari uses these.

Change-Id: I7fdd3b47230bea004a9129234c88d20d611814bf
Closes-Bug: #1724764
2017-10-19 16:45:57 +09:00
Jenkins 7ef4e96949 Merge "Upgrade oslo.db and Replace DbMigrationError with DBMigrationError" 2017-10-13 05:45:04 +00:00
Abhishek Kekane 26f00f4ad7 Add ssl support for masakari plugin
To enable ssl support for masakari using devstack just
mention 'ENABLED_SERVICES+=,tls-proxy' in local.conf
file.

Change-Id: Ia65d20083c8740d7dbbc38600ffd7de06cf08010
2017-09-29 12:22:21 +05:30
Zuul 3e51c4cf54 Merge "iso8601.is8601.Utc No Longer Exists" 2017-09-29 04:46:44 +00:00
poojajadhav 892e9b116c Hacking: do not translate log messages
Community has decided to do not translate log messages anymore.
The motivation behind removing translation jobs for log messages
is that when operators encounters any unfamiliar situations(e.g.
nova error, keystone error etc.), searching on the Internet
based on actual log content would have more results than searching
translated log messages.

In this patch I have added hacking rule to check that logs are
not translated.

Change-Id: I90d53d617aac6839c2f2ab119847cbf24a1300e0
2017-09-25 14:34:25 +05:30
Yaguo Zhou db67c44897 Upgrade oslo.db and Replace DbMigrationError with DBMigrationError
DbMigrationError is deprecated and will NOT be thrown in oslo.db
since oslo.db >=4.27.0, DBMigrationError will be thrown instead.
Consumers should catch DBMigrationError instead of DbMigrationError

Depends-On: Iab0566cf9f4552e91fa417e64472fa106e8bc86d
Depends-On: I0ebd69c3d778acb5bec9e136627e345e7fcf2bd3

Change-Id: I8e4968d2f2ed90edc22161db60712896f6e9f024
2017-09-22 21:56:31 +08:00
Jenkins 12f91c29a7 Merge "Use get_rpc_transport instead of get_transport" 2017-09-20 00:42:20 +00:00
Sampath Priyankara d9c87bba0a iso8601.is8601.Utc No Longer Exists
iso8601.UTC is correct datetime UTC field object.
iso8601 >= 0.1.12 includes only iso8601.UTC for python3
while both UTC and Utc() for python2. Less then 0.1.12
included both UTC and Utc() for both python2/3.

Change-Id: I9b2a8ba5a5ab44c95e68d67e0e3ee8e2c0024b03
Closes-Bug: #1715486
2017-09-07 10:36:39 +09:00
Jenkins 93556d3116 Merge "Make 'error' instances recovery configurable" 2017-08-17 06:08:52 +00:00
Dinesh Bhor a67e0c5038 Make 'error' instances recovery configurable
Currently on master error instances are evacuated from failed
compute host and stopped at the destination host after evacuation.
Some operators may not want to evacuate error instances in some
cases like below:
If user is running 1ACT/n SBY application on instances, launching
error instances will cause unexpected effect.

This patch adds a new config option 'ignore_instances_in_error_state'
under [host_failure] section which makes the recovery of error
instances configurable. If this config option set to True, masakari
will skip the recovery of error instances otherwise it will evacuate
error instances from a failed source compute node along with other
instances. The default value for this config option is set to False.

Change-Id: I24f8282357f28544fd1b56f270da22c7329a9f3d
2017-08-17 10:24:52 +05:30
Jenkins f9d67962e7 Merge "Add missing domain name to novaclient" 2017-08-16 07:11:18 +00:00
Jenkins cba0222522 Merge "Update the documentation link for doc migration" 2017-08-16 07:05:10 +00:00
liyingjun 6139da28da Add missing domain name to novaclient
Domain name is needed when using keystone v3 to create keystoneauth
session[1], otherwise the following error will be raised:

InvalidInput: Invalid input received: Expecting to find domain in
project - the server could not comply with the request since it is
either malformed or otherwise incorrect

[1]: https://docs.openstack.org/keystoneauth/latest/authentication-plugins.html#v3-identity-plugins

Change-Id: I557a7107b51ae4ffab15d045a4be6e3ed1940bd8
Closes-bug: #1710570
2017-08-16 14:34:09 +08:00