Commit Graph

2188 Commits

Author SHA1 Message Date
Tony Breeds b69f046d73 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: I107bd8eafb21c5a195d483d68521fea055eb6f5b
2017-09-12 15:37:44 -06:00
Jenkins c009fdff76 Merge "Fix the doc instruction to restart congress in devstack" 2017-07-22 00:47:30 +00:00
Jenkins a67a9f2b24 Merge "return prettified input rule string in rule insert" 2017-07-21 06:28:19 +00:00
Songming Yan d9f1a9f268 Fix the doc instruction to restart congress in devstack
Now devstack using systemd instead of screen.

Change-Id: Ib11e001b9bf6364c4cd4f63f12fea8ed5a354aa8
2017-07-20 22:48:48 -07:00
Songming Yan bc258e6461 Fix the problem of using keystone
Now we use "openstack project list" instead of 
keystone tenant-list.

Change-Id: I1f7d3484813e5a3f878514506ffccd955773716d
2017-07-20 06:59:01 +00:00
Jenkins 1c66aeceff Merge "Switch from oslosphinx to openstackdocstheme" 2017-07-20 03:58:49 +00:00
Eric Kao 9312684e0f return prettified input rule string in rule insert
Instead of the unreadable column-eliminated version.

Example:
Old:
$ openstack congress policy rule create classification \
'server_with_bad_flavor(id) :- nova:servers(id=id,flavor_id=flavor_id),
nova:flavors(id=flavor_id, name=flavor), not permitted_flavor(flavor)'
+---------+----------------------------------------------------------------------------------+
| Field   | Value                                                                            |
+---------+----------------------------------------------------------------------------------+
| comment |                                                                                  |
| id      | 80415ef6-ac68-46ee-99f3-511f757ce826                                             |
| name    | None                                                                             |
| rule    | server_with_bad_flavor(id) :-                                                    |
|         |     nova:servers(id, x_21, x_22, x_23, x_24, x_25, x_26, flavor_id, x_28, x_29), |
|         |     nova:flavors(flavor_id, flavor, x_12, x_13, x_14, x_15, x_16),               |
|         |     not permitted_flavor(flavor)                                                 |
+---------+----------------------------------------------------------------------------------+

New:
+---------+----------------------------------------------------------+
| Field   | Value                                                    |
+---------+----------------------------------------------------------+
| comment |                                                          |
| id      | 80415ef6-ac68-46ee-99f3-511f757ce826                     |
| name    | None                                                     |
| rule    | server_with_bad_flavor(id) :-                            |
|         |   nova:servers(id=id,flavor_id=flavor_id),               |
|         |   nova:flavors(id=flavor_id, name=flavor),               |
|         |   not permitted_flavor(flavor)                           |
+---------+----------------------------------------------------------+

Change-Id: I840d6ff0b35aca09dc3ef630b6b8629228b0b7ce
2017-07-18 21:46:23 +00:00
Jenkins 596a42e317 Merge "Add policy creation with rules or from policy library" 2017-07-18 20:47:15 +00:00
OpenStack Proposal Bot 6173d31b47 Updated from global requirements
Change-Id: Ie2dea3aa04cffc15895b5db9c113c7bf09a1f79d
2017-07-18 01:45:01 +00:00
Eric Kao 94fdc38c86 Add policy creation with rules or from policy library
persistent_create_policy_with_rules method added to agnostic runtime
to transactionally create policy along with rules. The main work is
done by the persistent_insert_rules method extended to allow creation
of the target policy along with the rule inserts.

Database transactions added in persistent_insert_rules to make sure
all changes (policy add and rules insert) can be committed or rolled
back together.

DB table locking expanded to the `policies` table in the policy
creation case to prevent conflicting policy changes from other nodes.

policy_model add_item API method extended to accept policy item with
rules, (exclusive) or parameter specifying ID of library policy to
activate.

Partially implements: blueprint policy-library
Partial-Bug: 1693622

Change-Id: I2a83ac11b7014d417ff7553f602a8bb96a9adc34
2017-07-17 16:26:24 -07:00
Eric Kao c29537054c copy library subdirectories in devstack install
Change-Id: Id1b9768d51f4f71daa2d9242f8e90efde8f57389
2017-07-14 23:22:02 -07:00
Jenkins aa1aad9bff Merge "Improving cover testenv" 2017-07-14 06:20:23 +00:00
Jenkins edd21747c1 Merge "Enable warning-is-error in doc build" 2017-07-14 02:09:36 +00:00
Eric Kao 842bafdb7f fix YAML format in library policy
Change-Id: Idaa6782eed8b0e26a9dd55fbf87ae78f650fc22d
2017-07-12 15:53:46 -07:00
Jenkins 8509657bb9 Merge "Automatically load library policy files at start" 2017-07-12 09:28:17 +00:00
Jenkins 99bbc3b431 Merge "Replace the usage of 'admin_manager' with 'os_admin'" 2017-07-11 20:17:36 +00:00
deepakmourya 8c40295b14 Replace the usage of 'admin_manager' with 'os_admin'
In tempest, alias 'admin_manager' has been moved to 'os_admin'
in version Pike, and it will be removed in version Queens [1].

[1] https://review.openstack.org/#/c/467852/

Change-Id: I73be6d843c0bfb760a60ff00659b42a3e96a18fd
2017-07-11 10:30:25 +05:30
rajat29 3c872602ce Switch from oslosphinx to openstackdocstheme
As part of the docs migration work for Pike we need to switch to use
the openstackdocstheme.

Change-Id: I73d80355f81bd68b0072d1879a3f21154cc6c8d7
2017-07-11 04:11:15 +00:00
rajat29 51bb08c2ea Enable warning-is-error in doc build
- Fix docstring warnings
- pbr warnerrors is no longer needed.
- pbr audodoc temporarily disabled

Co-authored-By: Nguyen Van Trung <trungnv@vn.fujitsu.com>
Change-Id: I37d5d78fc7895bd112a8555840c6c3b3eb294ad3
2017-07-10 18:50:32 -07:00
Nguyen Van Trung 30bc6587c3 Improving cover testenv
- Add percentage report to further analyze code-base

Change-Id: If326e95a546f6db6ec4bfe30c353c362c01c2648
2017-07-08 22:36:58 +07:00
Jenkins e6b0f8dffb Merge "Set access_policy for messaging's dispatcher" 2017-07-07 04:38:57 +00:00
Eric Kao cd9aa33451 Automatically load library policy files at start
harness.py loads library policy from disk files to DB

uniqueness constraint added on library policy name.

devstack plugin updated to install library policy files
to default location

updated congress stand-alone install instruction

Partially implements: blueprint policy-library
Closes-Bug: 1693619
Closes-Bug: 1693672

Change-Id: I51097081f6576755751231feb5ed2b0be642d91e
2017-07-06 17:45:19 -07:00
Jenkins 48765b818f Merge "Updated from global requirements" 2017-07-07 00:29:48 +00:00
Jenkins 518a7fa1c7 Merge "Update congress-dashoard installation instructions" 2017-07-07 00:09:47 +00:00
OpenStack Proposal Bot 64e31836c6 Updated from global requirements
Change-Id: I2f430eeb613b970b9adf8fcfed00092f8d66110c
2017-07-04 17:46:40 +00:00
Songming Yan 579caeb8c1 Add the instruction of install jre in README
In READE Separate install just show the instruction of install
default-jre on ubuntu, Federa should be added.

Change-Id: I876f116361e51d232514e452d1e4972d444bff14
2017-07-04 01:49:44 +00:00
Jenkins a724dfb59c Merge "policy library DB interface, DSE service, API" 2017-06-29 04:34:01 +00:00
rajat29 7d3e786296 Set access_policy for messaging's dispatcher
oslo.messaging allow dispatcher to restrict endpoint methods
since 5.11.0 in d3a8f280ebd6fd12865fd20c4d772774e39aefa2, set with
DefaultRPCAccessPolicy to fix FutureWarning like:

FutureWarning: The access_policy argument is changing its default
value to <class 'oslo_messaging.rpc.dispatcher.DefaultRPCAccessPolicy'>
in version '?', please update the code to explicitly set None as the
value: access_policy defaults to LegacyRPCAccessPolicy which exposes
private methods. Explicitly set access_policy to DefaultRPCAccessPolicy
or ExplicitRPCAccessPolicy.

Change-Id: Ie17832d64075080c17c09df675b216dbe8af16e6
2017-06-29 03:41:34 +00:00
Jenkins fcb13917ed Merge "Replace assertRaisesRegexp with assertRaisesRegex" 2017-06-28 12:03:56 +00:00
Anusha Ramineni d078da889c Update congress-dashoard installation instructions
This commit updates README to add congress-dashboard installation
instructions.

Change-Id: I4704ef00b8d416e5c23eaeda643f9f67cffb5edb
2017-06-28 11:28:50 +05:30
Jenkins 3dbdd5774b Merge "Replace assertEqual([], items) with assertEmpty(items)" 2017-06-28 05:42:23 +00:00
OpenStack Proposal Bot 8e9cf3292f Updated from global requirements
Change-Id: Icc37805466fcab1e9f885743ebc8579a886d1194
2017-06-27 12:08:56 +00:00
Eric Kao 7d0bbc3df6 policy library DB interface, DSE service, API
DB interface for adding, getting, and deleting library policies
A DSE service for adding, getting, and deleting library policies
Alembic migration script for adding the new DB table
policy library API model
Tempest smoke test

Closes-Bug: 1693617
Partially implements: blueprint policy-library

Change-Id: I15dda797e6e29ff5155f5758d93d68499539f8fc
2017-06-25 21:57:20 -07:00
Vu Cong Tuan b23c20eb44 Replace the usage of 'manager' with 'os_primary'
In tempest, alias 'manager' has been moved to 'os_primary'
in version Pike, and it will be removed in version Queens.
This patch is to replace the usage of 'manager' with 'os_primary'.

For other details, please check [1] and [2]
[1] https://review.openstack.org/#/c/468036/
[2] https://review.openstack.org/#/c/463484/

Change-Id: I524695532290c9a87783958a860e5d570328c11b
2017-06-25 22:50:16 +00:00
Vu Cong Tuan baecc5d5de Replace assertRaisesRegexp with assertRaisesRegex
assertRaisesRegexp was renamed to assertRaisesRegex in Py3.2
For more details, please check:
https://docs.python.org/3/library/
unittest.html#unittest.TestCase.assertRaisesRegex

Change-Id: Ied395e2c7bff32a4108ac3194f88249e0f2a1760
Closes-Bug: #1436957
2017-06-25 22:50:03 +00:00
OpenStack Proposal Bot 7553d89db2 Updated from global requirements
Change-Id: I9883455888987d90d89bece7f49780de04234fb0
2017-06-24 00:02:35 +00:00
Jenkins 0105805125 Merge "Fix ParserError" 2017-06-23 20:48:01 +00:00
Anusha Ramineni bc61322634 Fix ParserError
Closes-Bug:#1699666
Change-Id: Idcf06914eebf310442aadb1c44aec0168059709a
2017-06-23 11:12:23 +05:30
Jenkins 66fc7decab Merge "add exec permission for testing scripts" 2017-06-22 20:07:38 +00:00
Vu Cong Tuan 0aba00d693 Replace assertEqual([], items) with assertEmpty(items)
Since assertEmpty() function has already been implemented in tempest,
let's use this function instead of generic assertEqual() function.
This change makes the code and the error messages to be more readable.
Therefore it improves maintainability a little bit.

Change-Id: I20879ed2e662040e2d5c843634f9f90f396c33b8
2017-06-13 09:56:19 +07:00
Jenkins 85171bc794 Merge "Extend devstack support to Red Hat-based distros" 2017-06-09 23:44:54 +00:00
Eric Kao 265bbb5a8d add exec permission for testing scripts
Change-Id: If7aab299c0bf4d159d8b62104a686df43b9e5848
2017-06-08 14:35:09 -07:00
OpenStack Proposal Bot 9fc1d330e5 Updated from global requirements
Change-Id: Ib0b273fe7f16881567f8bb0efe7e0fd154d91fe1
2017-06-05 11:55:14 +00:00
Jenkins 29ac8c4d9c Merge "Replace oslo_utils.timeutils.isotime" 2017-06-05 10:34:21 +00:00
Jenkins 0662827d41 Merge "Add tempest tests for keystonev3 driver" 2017-06-02 05:15:52 +00:00
OpenStack Proposal Bot 764dc078a8 Updated from global requirements
Change-Id: I368d56684990f7a6e049c06b731fc9374678ec84
2017-05-30 13:33:16 +00:00
Luong Anh Tuan b75464882c Replace oslo_utils.timeutils.isotime
Function 'oslo_utils.timeutils.isotime()' is deprecated in version '1.6'
and will be removed in a future version. We use
datetime.datetime.isoformat() instead. For more informations:
http://docs.openstack.org/developer/oslo.utils/api/timeutils.html#oslo_utils.timeutils.isotime

Change-Id: I60c0fab866ddf5c18afb056c694dfa24b6391bad
Closes-Bug: #1514331
2017-05-29 15:27:14 +00:00
Carlos Goncalves 011e77f28d Extend devstack support to Red Hat-based distros
Congress devstack assumes system is Debian-based. That results in
default-jre package not found under Red Hat-based distros.
JRE package name under other distros may differ, too. Explicitely abort
deployment for untested distros.

Closes-Bug: #1693216
Change-Id: Id25931946da1f97e08bf9aeb5f6b7668bfbf48a1
2017-05-24 15:23:09 +02:00
Anusha Ramineni 19edf0488c Enable HA test
Closes-Bug:#1689220
Change-Id: I8c67843b563ec43491cb1adb90122420ee7fc072
2017-05-24 09:15:44 +05:30
Jenkins 5d8d5e2af4 Merge "Update devstack plugin to use new repo" 2017-05-23 20:27:35 +00:00