3082 Commits

Author SHA1 Message Date
Richard Theis
4f23a77de0 Add network segment create, delete and set support
Add network segment create, delete and set in support of routed
networks. This patch set includes documentation, unit tests and
functional tests for the following new commands:
  - "os network segment create"
  - "os network segment delete"
  - "os network segment set"
This patch set also includes support for the name and description
properties.

These new commands are currently marked as beta commands.

Change-Id: I86bc223c4adc5b5fe1b1ee5c9253e43ba52fb5ed
Depends-On: Ib194125162057fccb4e951587c2fa4ec2e2f098c
Partially-Implements: blueprint routed-networks
2016-09-09 15:19:55 -05:00
Jenkins
bee04914b8 Merge "move all functional tests to tests module" 2016-09-09 19:30:10 +00:00
Jenkins
0b203355c4 Merge "standardize release note page ordering" 2016-09-09 15:53:55 +00:00
Steve Martinelli
c14d3efe61 move all functional tests to tests module
functional tests should be grouped with other tests (unit and
integration tests). as part of this commit the "common" module
was renamed to just "base", this was done for simplicity.

the post_test_hook.sh file was also copied to the functional module
since it should live there. a separate change to the infra repo
will be made to call the new location, once that is merged we
can remove the old one (a new change will also be posted for that)

Needed-By: I49d54f009021d65c1ae49faf6b3f0a7acdadd7b3
Change-Id: Ie8c334f6223373b8e06df8bd8466500d2a2c8ede
2016-09-09 03:29:47 +00:00
Steve Martinelli
39839def2e move unit tests to new "unit" test module
this will better isolate the unit tests from the functional tests.
unfortunately, the "integration" tests had to be lumped into the
"unit" tests since we need the separation in testr.conf

Change-Id: Ifd12198c1f90e4e3c951c73bfa1884ab300d8ded
2016-09-08 15:19:50 -07:00
Jenkins
7d1a5d0854 Merge "format token expires time to prevent json loading datetime data" 2016-09-08 20:58:20 +00:00
Jenkins
b4307b1ef6 Merge "Add Subnet service-types to subnets" 2016-09-08 20:54:36 +00:00
Jenkins
085bc5255d Merge "Defer auth prompting until it is actually needed" 2016-09-08 17:40:13 +00:00
Dean Troyer
14dbfe4474 Defer auth prompting until it is actually needed
Auth option prompting happens waaaay to early in the default
os-client-config flow, we need to defer it until adter the commands
have been parsed.  This is why ClientManager.setup_auth() exists,
as it is not called until the first attempt to connect to a server
occurs.  Commands that do not require authentication never hit this.

Also, required options were not being enforced.  By doing this we handle
when no authentication info is present, we fail on missing auth-url rather
than attempt to prompt for a password (default auth is password).

Closes-Bug: 1619274
Change-Id: Ia4eae350e6904c9eb2c8507d9b3429fe52418726
2016-09-08 10:31:13 -05:00
Doug Hellmann
d1de0bac88 standardize release note page ordering
In order to support automatically updating the release notes when we
create stable branches, we want the pages to be in a standard order.
This patch updates the order to be reverse chronological, so the most
recent notes appear at the top.

Change-Id: Ib364dcc8eb31275a31c83b68d7914263b183e393
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-09-07 17:08:46 -04:00
Jenkins
55378953e2 Merge "Clean up FakeClient classes in volume fakes" 2016-09-06 14:03:38 +00:00
Jenkins
bc1c964c40 Merge "better functional test collection" 2016-09-06 14:01:27 +00:00
Jenkins
f7f0f770af Merge "Use assertIn(A, B) instead of assertTrue(A in B )" 2016-09-06 13:53:17 +00:00
Steve Martinelli
eba1bc04f4 better functional test collection
straight up copied from glanceclient [1]

[1] https://github.com/openstack/python-glanceclient/blob/master/glanceclient/tests/functional/hooks/post_test_hook.sh

Change-Id: I9fad6d5c86831a2b872f3a61d4c7fa7383fc1266
2016-09-05 22:21:13 -07:00
Jenkins
20ad61b9d4 Merge "Add "volume service set" command" 2016-09-06 03:40:31 +00:00
Steve Martinelli
24c8b94baf format token expires time to prevent json loading datetime data
When output to shell, the token issue time is fine; however when
selecting the json formatter (via the --format json) option, an
exception is raised when formatting the dataetime data.

Rather than pass in the datetime data, we should format the data
with the ISO 8601 formatting.

Closes-Bug: 1619937
Change-Id: Iffebb2d5413fabfd283dfa94fc560fc37270f9dd
2016-09-05 17:23:42 +00:00
Doug Hellmann
3b75c9aae5 Update reno for stable/newton
Change-Id: Ice2d2eb4cc922e911c1f92020e8f5a298383f7f3
2016-09-02 15:54:49 +00:00
Bin Zhou
1626b63f56 Use assertIn(A, B) instead of assertTrue(A in B )
Developers should use assertIn(A, B) instead of assertTrue(A in B ).

TrivialFix

Change-Id: I0d7c542272315590536c427a8865e49660361e55
2016-09-02 12:48:41 +08:00
OpenStack Proposal Bot
45d3e67b98 Updated from global requirements
Change-Id: I610346bca6a1a8ff9e0ab20fec664d3aff58c44c
2016-09-01 18:50:33 +00:00
Jenkins
59404393d3 Merge "Rearrange integration tests" 2016-09-01 13:17:05 +00:00
Dean Troyer
ca15cd434b Rearrange integration tests
Move the integration tests into their final home...

* Create tests/integ to hold the integration tests
* Split tests/test_shell_integ.py into tests/integ/base.py and
  tests/integ/cli/test_shell.py
* Rename TestXXXXInteg classes to TestIntegXXXX
* Adds tests/integ/cli/test_project.py for some simple project argument tests

Change-Id: I2cdd340d1d446d61784eae35dd5aa09d40d5899d
2016-08-31 14:59:36 -05:00
OpenStack Proposal Bot
a24d6ba605 Updated from global requirements
Change-Id: I87af564cffaf44669e1efe4ca45c75a6307f1286
2016-08-31 09:14:50 +00:00
OpenStack Proposal Bot
8241f08ee1 Updated from global requirements
Change-Id: I2eedd06457425f48353e416b4d5145ce1967d57c
3.2.0
2016-08-30 14:53:39 +00:00
Dean Troyer
84c83fc3ae Provide fallback prompt function for current osc-lib
Leaving the pw_func uninitialize in osc-lib turned out to be a
bad idea as the test to prompt in setup_auth() doesn't check
for a callback of None.

Also, release note

Change-Id: I8f875fa8a942d02a040238359ee22c603a4e5956
2016-08-29 19:22:06 -05:00
Jenkins
c5f8f761de Merge "Fix auth prompt brokenness" 2016-08-29 21:09:58 +00:00
Dean Troyer
bec206fa0a Fix auth prompt brokenness
We start by fixing this in the already-present OSC_Config class so OSC
can move forward.  This change needs to get ported down into
os-client-config in the near future, maybe even soon enough to make the
client library freeze this week.

* Add the pw-func argument to the OSC_Config (or OpenStackConfig) __init__()
* When looping through the auth options from the KSA plugin look for any
  that have a prompt defined and do not have a value already, so ask for one.

Closes-bug: #1617384
Change-Id: Ic86d56b8a6844516292fb74513712b486fec4442
2016-08-29 11:58:49 -05:00
Jenkins
0ee74b4b27 Merge "Updated from global requirements" 2016-08-29 15:30:50 +00:00
Jenkins
c4610557a9 Merge "[docs] fix incorrect rst markups" 2016-08-29 13:17:56 +00:00
Jenkins
8fce974d2d Merge "Clean imports in code" 2016-08-29 13:13:32 +00:00
Jenkins
b42740816d Merge "Fix six typos" 2016-08-29 12:49:43 +00:00
OpenStack Proposal Bot
5b14741fcc Updated from global requirements
Change-Id: I90afe332e959ba8bbfb1f04cc84454d30a4cf4a8
2016-08-29 10:57:56 +00:00
Andreas Jaeger
9962403d3c Cleanup after install
Tox tests are run on developer machines and on long lived slaves. We
should not leave lots of directories like
/tmp/python-openstackclient-tox_install-sdnltRu lying around.

Instead delete the temporary directory after our run.

Remove also an obsolete comment.

Change-Id: I939eae82dba3287fd4e4086128ebf4609a0e0770
2016-08-28 08:48:23 +02:00
Jenkins
a08b62523f Merge "Restore default auth-type for token/endpoint" 3.1.0 2016-08-25 21:07:03 +00:00
Atsushi SAKAI
c97e8187fe Fix six typos
disassoiate => disassociate
nmaes       => names
mutiually   => mutually
aviod       => avoid
CLustering  => Clustering
availble    => available

Change-Id: I84545bf46acfccc9dde3e85020700edb5a8375a6
2016-08-25 19:54:24 +09:00
OpenStack Proposal Bot
2774145e44 Updated from global requirements
Change-Id: I87cd3d1aaf2d7e8706b4e89ef679c03de69cf611
2016-08-25 09:31:05 +00:00
Cao Xuan Hoang
f854b7d6ea Clean imports in code
In some part in the code we import objects.
In the Openstack style guidelines they recommend to import only modules.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: I2eb35dc53f0fdb61c31022bb70293d1df8aaf482
2016-08-25 13:50:38 +07:00
OpenStack Proposal Bot
afda6f846f Updated from global requirements
Change-Id: I14eec90a7bfe8301b8698dd4337f3748c3732b78
2016-08-25 01:11:34 +00:00
Dean Troyer
188709c668 Restore default auth-type for token/endpoint
The split to osc-lib shell lost the detection of --os-token and
--os-url to set --os-auth-type token_endpoint

Closes-bug: 1615988
Change-Id: I248f776a3a7b276195c162818f41ba20760ee545
2016-08-24 16:57:56 -05:00
OpenStack Proposal Bot
3f86cc0d80 Updated from global requirements
Change-Id: I53797c068d919027c7cfadcb245ab06eb9affc9e
2016-08-24 13:35:57 +00:00
KATO Tomoyuki
50a5c2a163 [docs] fix incorrect rst markups
The incorrect md-style markups break Sphinx builds,
which do not properly generate web page.

http://docs.openstack.org/developer/python-openstackclient/plugin-commands.html

Change-Id: I36ae2cf922836cff42653283c0a683359bd91344
2016-08-24 16:38:21 +09:00
Jenkins
351bfb7915 Merge "Fix post and periodic jobs" 2016-08-23 06:27:32 +00:00
Huanxuan Ao
8f07fec3f2 Clean up FakeClient classes in volume fakes
Put FakeTransferClient and FakeServiceClient classes
into FakeVolumeClient class, I think we need not to
create FakeClient classes for every objects, we can use
only FakeVolumeClient for all volume objects. This can
reduce repetition, unified codes and make codes look
cleaner and easier.

Change-Id: I2729ef0e80166f4d49ccd9a48b653e2f215e3bfe
2016-08-23 10:31:24 +08:00
Dean Troyer
684412ca4c Work around a version clash issue with os-client-config
Need to add the fixed_arguments arg to _validate_auth() so
os-client-config 1.19.1 and 1.20.0 can call our version properly.

Change-Id: I328e47ba2f8115e6b18bf1482fd4aa35056907a4
3.0.1
2016-08-22 08:29:35 -05:00
Andreas Jaeger
ea5a8dd80b Fix post and periodic jobs
The usage of zuul-cloner in tox_install breaks post and periodic jobs.
Update the script, it does not need to handle unconstrainted installs
anymore (see tox.ini). There's no need to set ZUUL_BRANCH explicitely
- it's set via the environment and branch is passed in as well.

Note that this script is needed for the edit-constraints call, add a
comment.

Change-Id: I0077c986a17d6bb92791474e03d1e77776e9382f
Closes-Bug: #1615430
2016-08-22 12:19:39 +02:00
Jenkins
cb31fda264 Merge "Updated from global requirements" 3.0.0 2016-08-21 03:33:12 +00:00
Jenkins
90b89acf60 Merge "Integ test cleanup" 2016-08-21 02:37:11 +00:00
OpenStack Proposal Bot
2f0d419e7c Updated from global requirements
Change-Id: Ia8340e97b90f7497244f57c7ab7e46d7a461b896
2016-08-21 00:10:10 +00:00
Brian Haley
cf9ad08ab6 Add Subnet service-types to subnets
Add '--service-type' to subnet arguments to support
Subnet service-types.

Change-Id: I215d83e4d4cf53e03fa35041c5e41a328641b3a9
Partially-implements: blueprint service-subnets
2016-08-19 11:05:33 -04:00
Jenkins
8f63da4621 Merge "Fix errors in volume set/unset image properties unit tests" 2016-08-19 02:48:08 +00:00
Jenkins
7489fa36aa Merge "Add support for domain specific roles" 2016-08-18 23:30:54 +00:00