Commit Graph

98 Commits

Author SHA1 Message Date
Nate Johnston 1388136246 Retire the python-congressclient project
Recently the TC has worked on determining the criteria for when an
OpenStack project should be retired.  When there was not a PTL nominee
for the Congress project, that triggered the TC to review the project
health per [1], and the TC has determined [2] that development work on
the project has ceased.  This decision was announced in the
openstack-discuss mailing list in April 2020 [3].

This commit retires the repository per the process for governance
removal in the Victoria cycle as specified in the Mandatory Repository
Retirement resolution [4] and detailed in the infra manual [5].

Should interest in developing Congress as part of OpenStack revive,
please revert this commit to have the project rejoin the list of active
projects.

The community wishes to express our thanks and appreciation to all of
those who have contributed to the Congress project over the years.

[1] https://governance.openstack.org/tc/reference/dropping-projects.html
[2] http://eavesdrop.openstack.org/irclogs/%23openstack-tc/latest.log.html#t2020-04-20T15:36:59
[3] http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014292.html
[4] https://governance.openstack.org/tc/resolutions/20190711-mandatory-repository-retirement.html
[5] https://docs.opendev.org/opendev/infra-manual/latest/drivers.html#retiring-a-project

Change-Id: Ib13d3325a5497064d037b007e9823609f836988d
2020-05-28 12:13:08 -04:00
ZhijunWei b4d62092f6 Update hacking version
1. update hacking version to latest
2. fix pep8 failed

Change-Id: I9a7be34b2b2307676c8469ea65aa5c408845955c
2019-01-03 19:38:28 +08:00
Pierre Crégut 0ba0ead929 Adds support for z3 policies
z3 is a new kind of theory where rules are treated by Microsoft Z3 engine.
The end-user must explicitly mark policies using this engine.

Change-Id: I519821ccb8a14d9a28bf890bb98c55c01c2a0e9c
Partially-implements: blueprint alternative-engine-z3
2018-07-20 09:25:04 +02:00
Zuul a8ec6c8525 Merge "Enable include_rules option for library policy" 2017-12-05 05:13:28 +00:00
Anusha Ramineni 5c101cbd8a Enable include_rules option for library policy
This commit enables 'include_rules' option for library policies
in client lib

Depends-On: Ib27119ba03d5658ff937f514f6ff3abfe5c390fe
Change-Id: I2271579f655481b156ec66382d887b8784b13ad6
2017-11-23 14:56:32 +05:30
Anusha Ramineni 598d496ce4 Support activating library policy
This commit adds support in client library for create_policy to 
accept params 'library_policy' as expected by server for activating 
a library policy. Change needed by dashboard, for activating library
policy.

Change-Id: I0c4a70002bd172c0b5842cc7de1c9bb5ad0bcf5a
Closes-Bug:#1731194
2017-11-10 02:58:40 +00:00
Eric Kao e2baac2796 Set default max-width to 80 everywhere
Openstack client now defaults to unlimited max-width
instead of the previous fit-to-terminal width. As a
result, many commands have very wide and unreadable
output. This change fixes the issue by setting a
default max width of 80 (traditional terminal width).

User still has the option to set a different max-width
or specify --fit-width to fit to terminal width.

Change-Id: I5898639942bd4eb17b69c403277b46eb69951265
2017-07-25 21:04:27 -07:00
Jenkins e52bba21f5 Merge "Fix the problem of default width is small" 2017-07-25 19:10:12 +00:00
Jenkins 4fd0a08efd Merge "Use 'project' instead of 'tenant' when switching to openstackclient command" 2017-07-25 19:05:41 +00:00
Jenkins 8291ae7b34 Merge "Revert "Fix the problem of default width is small"" 2017-07-25 19:04:35 +00:00
Eric Kao 85a18b6505 Fix the problem of default width is small
When max-width was not specified, the default to 40 is too small.
Instead use the traditional terminal default of 80.

Change-Id: If10e891757cf38012261648017384cb2c8f34d4a
2017-07-25 11:57:37 -07:00
Eric Kao 87cc67b7a8 Revert "Fix the problem of default width is small"
In further testing, the default output without limit is unreadable on some consoles. The --fit-width option can be specified to fit to terminal width.

I think this is a new behavior that has to do with an openstackclient change that defaults fit-width to off. Reverting this change given the new situation.

This reverts commit 46e4bc630a.

Change-Id: Ia43dd7e4dad8e8ca37d8822ffedaad750c73ba6c
2017-07-25 18:54:26 +00:00
Kiran_totad e579e9a0df Use 'project' instead of 'tenant' when switching to openstackclient command
We tend to use 'project' rather than 'tenant' when switching to openstackclient
command, such as:

  openstack role add --user <user> --project <project> <role>

Change-Id: Iddfa57ccd0e419d452534cb2e0a927ebc792f2a0
2017-07-24 10:52:16 +05:30
Hangdong Zhang ce7008299f Update the documentation link for doc migration
1. Update URLs according to document migration
2. Optimize (e.g. http -> https)

Change-Id: I6a00171fe52e79e3bd8f9c2f73f8fafa3a35a077
2017-07-24 10:23:01 +08:00
Jenkins 1a0164f3f3 Merge "Add command to create policy from file" 2017-07-20 06:35:08 +00:00
Jenkins 7ab6bf0415 Merge "doc migration" 2017-07-20 06:34:02 +00:00
Eric Kao 2ad2a87fa8 doc migration
- fix sphinx errors
- enable warning-is-error
- reorganize structure
- use openstackdocstheme

Change-Id: I87df64b3a57e03618072a53bbe66bd3e83ac4e72
2017-07-19 15:46:08 -07:00
Eric Kao b162bc9d20 remove redundant path variables in v1/client.py
Change-Id: If78187505e6d6b6e8bc80855c5336cf88d895853
2017-07-18 06:33:32 +00:00
Jenkins 989b7cf91a Merge "Add client methods for library policy CRUD" 2017-07-18 06:30:26 +00:00
Eric Kao 4866a0efab Add client methods for library policy CRUD
Not yet integrated into or tested with OSC CLI.
Client methods put in place first to allow GUI dev to proceed.

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

Change-Id: Ib94dd4de6242faeb29756f43afaa05621b7df1ac
2017-07-17 05:32:39 +00:00
Eric Kao 673faa262f Add command to create policy from file
Add the following command for importing policy from file
`congress policy create-from-file <file path>`

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

Change-Id: Ic989a4d8319b04ccd5b52771ca6ae2190c9e15f5
2017-07-14 21:28:19 -07:00
SongmingYan 46e4bc630a Fix the problem of default width is small
Delete the "max_width" in ShowDatasourceActions because we should
let the terminal to make the max_width of the output fit the screen.

Change-Id: Id51462cff8f14c912a6d0a24e2b85d67a8c7567c
2017-06-30 06:12:03 +00:00
Rui Yuan Dou 2496d211a4 Remove log translations
Log messages are no longer being translated. This removes all use of the _LE, _LI, and _LW translation markers to simplify logging and to avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: I635981726bf2da9558ed451ce6f3ab06c9e04edc
2017-03-21 15:05:43 +08:00
ricolin 613dac781d [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: Ibfbd501b07ddf1ecfe737f520bbfd033a26ba73c
2017-03-03 00:09:55 +08:00
Anusha Ramineni e241273b48 Use oslo_log instead of system logging for consistency
Change-Id: Ib064017fb281b0ff528c046d1bd2c2537d1c188c
2017-01-24 14:54:41 +05:30
Eric K 191919a86a Fall back to UUID when delete by name fails
Because pre-Ocata congress-server did not support
datasource delete by name(+), client code that attempts
to delete by name(++) fails with pre-Ocata server

This patch fixes the regression by falling back to
delete by UUID when delete by name fails.

For backward compatibility with pre-Ocata congress-server
that does not have this patch:

(+) added in this patch:
https://review.openstack.org/#/c/412303/

(++) introduced in this patch:
https://review.openstack.org/#/c/407329/

Change-Id: Ib8a86304bcff70b9e777d6923d0eaf88cbce7d60
2017-01-23 16:11:33 -08:00
Jenkins fd5dfc4d8f Merge "Remove unnecessary utf coding" 2017-01-20 20:11:01 +00:00
Jenkins f07029fdae Merge "Add method to show datasource" 2017-01-20 20:09:43 +00:00
Anusha Ramineni 585cd34562 Add method to show datasource
This commit adds method to retrieve single datasource.
Call will be used in horizon.

Related-Bug:#1651037
Depends-On: I1005d571b49e1378aab27b4eb045f49051827e04
Change-Id: I04de77bfc5b5df4a0749ebf62e92571326428b3c
2017-01-20 19:49:49 +00:00
Cao Xuan Hoang 21f569e52f Remove unnecessary utf coding
Trivialfix

Change-Id: I81650352268e3e9d63db040f6b7bcdb48f251545
2016-12-08 13:01:03 +07:00
Anusha Ramineni 0fd8e34c55 Remove unnecessary db calls to list_datasources
This commit removes unnecessary db calls to list_datasources
as the api calls work for both datasource name or id

Change-Id: I4028f88cbdabe2752b2b78250dbc2a011532604e
Closes-Bug:#1647535
2016-12-06 05:49:31 +00:00
Steve Martinelli e12a973645 no longer use oslo-incubator code
As part of the first community-wide goal [1], teams were asked
to remove the openstack/common package of their projects
if one existed. This was a byproduct of the old oslo-incubator
form of syncing common functionality.

- Most of the apiclient package was not actually used in code,
  only the exceptions were. So remove most of it.
- Copy the exceptions from apiclient to an existing top level
  location.
- Create an i18n module to remove the gettextutils dependency,
  this creates a new requirement - oslo.i18n.
- Remove a test (test_base) since it was testing the
  functionality of apiclient.base, which was not used in
  congressclient.
- General cleanup to other openstack/common references

[1] http://governance.openstack.org/goals/ocata/remove-incubated-oslo-code.html

Change-Id: I2f7f5d2d43e6a5c2e4dfe35266951efb4293093d
2016-11-11 00:47:23 -05:00
Eric K e7072eb79d Minor edit of misleading message
The message is sometimes reached not on delete:
"Multiple resources have this name %s. Delete by id." % name

Minor edit to make it clearer.

Change-Id: I7ef8219646c0f3d322a1cd3ab42cbc8f1b5a585b
2016-11-03 17:12:36 -07:00
KATO Tomoyuki 55955c93c5 Add plug-in summary for osc doc
Stevedore Sphinx extension handles this comment.
http://docs.openstack.org/developer/python-openstackclient/plugin-commands.html

Change-Id: I3b2534b3ff2859f1528c8fc8145c9285e2a39907
2016-10-14 13:48:41 +09:00
Jenkins 88f45f21c7 Merge "Support push rows to datasources" 2016-08-30 15:28:56 +00:00
Masahito Muroi 103056ed33 Support push rows to datasources
congress client supports push row data into push type datasource.

Example:
 $ openstack congress datasource row update <datasource id/name> \
       <table id> <row string>
 $ openstack congress datasource row update push \
          data '[ ["data1", "data2"], ["data3", "data4"]]'

Change-Id: Icf3b0b116b20ef76957c0d6fc93c38d803e3aae0
2016-08-30 14:26:31 +09:00
Jenkins bd06160b31 Merge "Add __ne__ built-in function" 2016-07-22 18:56:23 +00:00
Tang Chen b5af897a73 Remove python-keystoneclient dependency
No need to depend on python-keystoneclient any more.

And also, the example in add_client() is out-of-date.
So remove it.

Change-Id: Ie092414220ff9e8a97cf5883081cc0cab7986d74
2016-07-19 14:51:04 +08:00
yuyafei ec6abb3dbe Add __ne__ built-in function
In Python 3 __ne__ by default delegates to __eq__ and inverts the
result, but in Python 2 they urge you to define __ne__ when you
define __eq__ for it to work properly [1].There are no implied
relationships among the comparison operators. The truth of x==y
does not imply that x!=y is false. Accordingly, when defining
__eq__(), one should also define __ne__() so that the operators
will behave as expected.
[1]https://docs.python.org/2/reference/datamodel.html#object.__ne__

Change-Id: I50234892bd3dadcda533d97c03414067e06ef0f4
Closes-Bug: #1586268
2016-07-14 11:34:35 +08:00
yuyafei c0a33d06ff Remove white space between print and ()
TrivialFix

Change-Id: Ieeab460b47d2c82125dedb5e3270ae254187ea85
2016-07-05 16:23:30 +08:00
Anusha Ramineni 0c6e93a23f Replace keystoneclient with keystoneauth1
keystoneclient.adapter.Adapter is deprecated as of 2.1.0
release. So replace the same with keystoneauth1

Change-Id: If1d005ecd656a52f33acdebc2af24b081934b0a1
2016-06-22 05:23:31 +00:00
Masahito Muroi 26d39efbb9 Allows DataSource's config field to have not dict type obj
CongressClient expects all datasource driver has dict object in
config field. It raises an error when a datasource doesn't have
any config.

This patch allows config fields to be None object.

Change-Id: I73354f1073f3f814854652eaeaa4b3bbe4bfcf7d
2016-04-12 14:20:17 +09:00
Anusha Ramineni 78d6a63cda Display driver field while listing datasources
This commit displays driver field while listing datasources and
hides the type field as it is None always

Change-Id: I9b8550f3fb97fecee14f74a6447d908550cfdfc4
2016-03-18 13:13:15 +05:30
Anusha Ramineni 99f20808a1 Update help message for datasource CLI
This commit is to update the help messages to support datasource
related data can be queried using both datasource name or ID

Change-Id: I93eb5063f02cf114715ba876b081f32818872187
Closes-Bug:#1552212
2016-03-03 09:29:18 +05:30
Anusha Ramineni 59adf8d68f Move to oslo libraries for common code
This commit reuses the code from oslo libraries for better
maintainability of code.

Change-Id: I75594b47f62f284b0027d6035cd2338838000a36
Closes-Bug:#1497180
2016-01-11 09:57:47 +05:30
Jenkins 2ba7e1c329 Merge "Replace assertEqual(None, *) with assertIsNone in tests" 2016-01-08 15:44:32 +00:00
Jenkins 95bd79b2ef Merge "Add help infomation for policy abbreviation" 2016-01-08 15:41:39 +00:00
Jenkins e288e67173 Merge "Remove unicode prefix from output of datasource-list" 2016-01-08 15:36:11 +00:00
Steve Martinelli 337270e2d5 use keystoneclient exceptions instead of oslo-incubator code
depending on any oslo-incubator code from another project is
dangerous. keystoneclient makes its exceptions public and it's
not recommended to use any code from
keystoneclient.openstack.common.apiclient since it's maintained
by oslo-incubator.

Change-Id: Ief63705f8ff1325bdd91491b47221d00cd767181
2015-12-27 01:35:13 -05:00
Shuquan Huang 20b4700893 Replace assertEqual(None, *) with assertIsNone in tests
Replace assertEqual(None, *) with assertIsNone in tests to have
more clear messages in case of failure.

Change-Id: I429c8ab3eb4e79a7556ea6f966dd7aa32ee9b86d
Closes-bug: #1280522
2015-12-17 21:36:58 +08:00