The patch in [1] introduced filtering network ports by fixed-ip in the
openstackclient, but it doesn't really work because the filter isn't
accepted in the sdk.
Add that option and add an unit test for the filter list.
[1] https://review.openstack.org/388575
Change-Id: I6cbb7f1aaff8ad12234f68ddb3fe564c556ece54
Closes-Bug: 1712527
doc8 is a linter for documents and used in openstack-manuals.
It is better to enforce document linters for simple checking.
This change is to add doc8 in tox file and fix line too long
in some files.
The current rules are as bellow:
- invalid rst format - D000
- lines should not be longer than 79 characters - D001
- RST exception: line with no whitespace except in the beginning
- RST exception: lines with http or https urls
- RST exception: literal blocks
- RST exception: rst target directives
- no trailing whitespace - D002
- no tabulation for indentation - D003
- no carriage returns (use unix newlines) - D004
- no newline at end of file - D005
Change-Id: I5b409fbfd95e05921310c6ecf4afea0220fb0bf0
The l7rules patch had a bad rebase and ended up getting merged in a broken
state as indicated by the functional test gate failure (non-voting).
This patch fixes this issues from the bad rebase and allows the tests to pass.
Change-Id: I4b2270f32c467e18d6ec203f20692685453687cd
When creating a listener with a loadbalance id by openstacksdk,there
have an error with the message "Listener must be created with a
loadbalancer or pool." I guess the reason is that I give the parameter
"loadbalancer_id" but it be ignored in the code.
I modify the listener class, I add a new line load_balancer_id =
resource.Body('loadbalancer_id'), then successfully create a listener.
Change-Id: Id05fcdc0be8f50304a974c01d1aada4eaa4053cd
Closes-Bug: 1708780
Adds the health monitor resources for Octavia.
Co-Authored-By: Michael Johnson <johnsomor@gmail.com>
Change-Id: I0c7232d166673563fabb9d9eba74c5849ce9e3cd
When I create a healthmonitor with a pool id by openstack sdk, there is an
error with the message "Failed to parse request. Required attribute
'pool_id' not specified", Then I find the code has no the parameter that
"pool_id".
I modify the healthmonitor class, I add a new line pool_id =
resource.Body('pool_id'), then successfully create a healthmonitor.
Change-Id: I95901152849341862333f1b3694c6265c43879ce
Closes-Bug: 1711546
When I create a pool with a listener id or a loadbalance id, there is an
error with the message "Pool must be created with a loadbalancer or
listener." Then I find the code has no the parameter that
"loadbalancer_id".
I modify the pool class, I add new lines load_balancer_id =
resource.Body('loadbalancer_id'),listener_id =
resource.Body('listener_id'), then successfully create a pool.
Change-Id: I37f041de8284c23fdb3291d932548aa1a1a9f00a
Closes-Bug: 1711528
Adds SDK support for load-balancer listeners.
Co-Authored-By: Michael Johnson <johnsomor@gmail.com>
Change-Id: I50af4a1d95b18c50a0684b546cc5ed48aecf8cca
The preview API only accept few parameters, so the adopt API and
adopt-preview API can't use the same parameters.
Change-Id: Iea193672f33826551a370516c98ab4c950c71c1c
Partial-Bug: #1710620
The developer docs seem to have moved so this updates
any references to docs.openstack.org/developer
Change-Id: Ie622b9514dfffc0bbf5ed553f38f0b736d698a64
This patch updates the load_balancer.v2.load_balancer for the current
state of the API
It also updates the post_test_hook script to accept an argument to
restrict the functional tests run. Since the load-balancer tests can
take a significant time to run, this allows us to run a parallel gate
job for the load-balancer functional tests.
Co-Authored-By: Michael Johnson <johnsomor@gmail.com>
Change-Id: I6c526cd8225a929d3d5984da10b6478312461e6f
1.As mentioned in [1], we should avoid using six.iteritems to achieve
iterators. We can use dict.items instead, as it will return iterators
in PY3 as well. And dict.items/keys will more readable.
2.In py2, the performance about list should be negligible, see the
link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html
Change-Id: If5ab2f298e887a90cd43530e3fccc0294412f5c9
This was previously causing the resource listing to call the agent docs
the network.v2.network docs.
Change-Id: I4d61840b5356cbe698ffb7d5c7c65f1808f4988f
Closes: 1697966