2467 Commits

Author SHA1 Message Date
Jenkins
e0573d34eb Merge "Documentation updates" 2016-05-10 06:45:08 +00:00
OpenStack Proposal Bot
34decd83f1 Updated from global requirements
Change-Id: Id56a0313f630dd812218b9b7dfa812f185958a5d
2016-05-10 00:49:36 +00:00
Jenkins
c3acc4175b Merge "Ignore domain related config when using with keystone v2" 2016-05-09 15:52:24 +00:00
Jenkins
3f5fd2f9e1 Merge "Map server power state num to meanful string" 2016-05-09 13:36:56 +00:00
Hieu LE
b8432408e6 Ignore domain related config when using with keystone v2
Currently, "/usr/bin/openstack --insecure token issue"
fails when OS_AUTH_URL and OS_IDENTITY_API_VERSION
indicate keystone v2 if OS_PROJECT_DOMAIN_NAME or
OS_USER_DOMAIN_NAME are set. This patchset ignore domain
related configs if using with keystone v2 and print warning
for each ignored config.

Change-Id: I8afbda787df7855c3f8e868b0f07cbf3b9cd97fd
Closes-bug: #1447704
2016-05-09 12:29:44 +07:00
Jenkins
4cd702c361 Merge "Fix functional test failures" 2016-05-08 19:27:50 +00:00
Richard Theis
c1dba6ab1b Fix functional test failures
There have been a lot of functional test failures for compute
and network.  I believe they are timing related in that the
test_server is sometimes booting a server with a flavor,
image and/or network created by another functional test. Such
resources are then deleted by the owning functional tests
causing various types of failures

Change-Id: Ib82edd487da46610374fb0eb5796cb98f2d3aa2c
2016-05-07 10:38:01 -05:00
Jenkins
fbd48be2ac Merge "Trivial: Remove unuseful comments for assertRaise() checking" 2016-05-07 11:35:05 +00:00
Tang Chen
809239ca1e Map server power state num to meanful string
In _prep_server_detail(), power_state is not formatted
by _format_servers_list_power_state(). So when executing
"server show" or "server create", the power state is
represented by number. This patch map the numbers to
meanful strings.

This patch also adds power_state attribute to FakeServer,
and improves unit tests for this attribute.

Change-Id: I2ec674327de4e5133b8712ba6bb53fa5ce55e3f4
2016-05-07 14:54:44 +08:00
OpenStack Proposal Bot
2244915b50 Updated from global requirements
Change-Id: Ic26729d1ce6e367d1b1cff38f6802cfed0d509ec
2016-05-06 22:22:39 +00:00
Jenkins
79039431f1 Merge "Add describe of overwrite options behavior into devref" 2016-05-06 18:49:57 +00:00
Jenkins
eb22fc7617 Merge "Spec to Implement IP Availability" 2016-05-06 18:49:30 +00:00
Jenkins
467ed54d6d Merge "Make "flavor show" command to show a private flavor properly" 2016-05-06 14:07:54 +00:00
Tang Chen
15c9576817 Trivial: Remove unuseful comments for assertRaise() checking
"Missing required args should bail here" is not understandable
and not necessary. The code is obvious enough. And some of the
comments are misused because of code copy. So remove them.

Change-Id: I031395f2c882386c7a708db5cf4eee75393dc639
2016-05-06 19:55:50 +08:00
Jenkins
5df18843b7 Merge "Ignore domain related config when using with keystone v2" 2016-05-06 10:20:16 +00:00
Tang Chen
f91685f391 Remove unnecessary type conversions in network unit tests
In some tests, when comparing the results data with the
expected ones, many unnecessary type conversions are used.
So remove them to clean up.

Change-Id: I560ca78a3ab5e7b99087bfe1667de500f92c68de
Partial-bug: #1550633
2016-05-06 03:42:27 +00:00
Hieu LE
59de9c477c Ignore domain related config when using with keystone v2
Currently, "/usr/bin/openstack --insecure token issue"
fails when OS_AUTH_URL and OS_IDENTITY_API_VERSION
indicate keystone v2 if OS_PROJECT_DOMAIN_NAME or
OS_USER_DOMAIN_NAME are set. This patchset ignore domain
related configs if using with keystone v2.

Change-Id: If7eea2ed1a4877c60d055ed0114a5e5f31e282a0
Closes-bug: #1447704
2016-05-06 03:42:15 +00:00
Steve Martinelli
461a203f2d bump timeout to prevent gate failures
attempt to fix the transient gate failures by increasing the
timeout

Change-Id: I837652013f94b0d1ed3f4b40fe14ce5a47c687b6
2016-05-05 09:19:41 -07:00
Jenkins
9f91eadb2b Merge "Add a unit test for "flavor create" command" 2016-05-05 15:44:36 +00:00
Jenkins
4d85a3f0c6 Merge "Add functional tests for commands of floating ip" 2016-05-05 07:11:59 +00:00
sharat.sharma
f924fa39e1 Added "name" parameter to the help message.
In OS_IDENTITY_API_VERSION=3, the "openstack help service delete"
allows the user to remove a service based on the name of the
service. So, this patch includes name as positional argument.

Change-Id: Iae7cb0a82af3cdd4d88e0ed2eb651abf9af30fd9
Closes-Bug: #1566909
2016-05-04 12:57:07 +00:00
Huanxuan Ao
68224eafc3 Add a unit test for "flavor create" command
There was not a unit test for "flavor create" command
in the "test_flavor.py".So I add the unit test.

Change-Id: Ib1e821ea524eb33c0ba73643164228c7b83253b4
2016-05-04 18:55:49 +08:00
Jenkins
bf9b0e5ff4 Merge "Fix router set --route option" 2016-05-03 12:54:58 +00:00
Rui Chen
403e6cad5e Add describe of overwrite options behavior into devref
Update the devref to add the describe and code example about
overwrite options behavior.

Change-Id: I65e9a3a30acf8d427906096bde24fa8b4c3ac3f7
Implements: blueprint allow-overwrite-set-options
2016-05-03 03:20:33 +00:00
Michael McCune
b33ee3daf6 remove assert in favor an if/else
the assert usage in the NonNegativeAction has the potential to allow
unexpected behavior when the python is byte-compiled with optimization
turned on.

Changes
* remove assert in favor of if/else in NonNegativeAction class
* add type specifier to parser arguments for non-negative actions
* correct tests for new int based values

Change-Id: I093e7440b8beff4f179e2c4ed81daff82704c40e
Closes-Bug: #1576375
2016-05-02 15:11:45 -04:00
Jenkins
9d7ccd9385 Merge "Fixes BadRequest when no --pool-prefix given" 2016-05-02 16:37:54 +00:00
Ankur Gupta
dc3d3ea77b Spec to Implement IP Availability
Specification to lay out new commands to be added to OSC.
New feature has been implemented and released for Neutron
and python-neutronclient to display IP usages.

Commands will display the IP usage across all networks, or
detailed IP usage specifics for a given network

Partially Implements Blueprint: neutron-ip-capacity

Change-Id: I1c25de1bd924d92a96c20d60fa24d9e966b92dcd
2016-05-02 09:47:07 -05:00
Jenkins
1ccb26b5c9 Merge "add a bandit environment to tox" 2016-05-02 14:03:29 +00:00
Huanxuan Ao
681d6dc2de Make "flavor show" command to show a private flavor properly
The "flavor show" command could not show a
private flavor by flavor name becauce it could
not find a private flavor by flavor name.
In "until.find_resource(parsed_args.flavor)",
If parsed_args.falvor is a name of a flavor,
"flavors.find(name=parsed_args.flavor)"will be
called to find a flavor.But the default value of
"is_public" is "Ture" in "flavors.find()" so that
we can only find public flavors.If we want to find
all flaovrs by flavor name,we should add
"is_public=None" in "flavors.find()".

So I tried to change
"until.find_resource(parsed_args.flavor)" to
"until.find_resource(parsed_args.flavor, is_public=None)",
but then I could not find any flavor by flavor id
because "is_public" is an unexpected argument of
"flavors.get()" in "until.find_resource()".

In this case,I think "until.find_resource()"
can not find a private flavor properly,and
we should combine "manager.get(flavor.id)" and
"manager.find(name=flavor.name, is_public=None)"
by ourselve to find a flavor.

Also,this bug affects other flavor commands like
"flavor set/unset/delete",so I fix them in this patch too.

Change-Id: I4a4ed7b0a2f522ee04d1c3270afcda7064285c39
Closes-Bug: #1575478
2016-05-02 16:47:53 +08:00
Dean Troyer
166a7b8a41 Documentation updates
* Update link to meeting information

Change-Id: I8dc6044b1faaa411e3b8d3b93fb401a480e82348
2016-04-30 09:06:58 -05:00
Daniel Gonzalez
9ec41c0397 Replace tempest-lib with tempest.lib
tempest-lib is deprecated, so replace it with tempest.lib.

Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>

Change-Id: I0495eba110bb7581623fbcf49dc63a27e9cb6d64
Closes-Bug: #1553047
2016-04-29 08:33:45 +00:00
Michael McCune
505659b0aa add a bandit environment to tox
This change is being proposed as part of the OpenStack Security Project
working session at the Austin 2016 summit. It adds support for running
the bandit[1] security linting tool against the python-openstackclient
codebase. This change adds a targetted environment for bandit and also
adds bandit as part of the pep8 job.

The bandit configuration has been tailored to exclude tests that are
currently producing warning against the codebase. These issues will be
followed up with bug reports and patches.

[1]: https://wiki.openstack.org/wiki/Security/Projects/Bandit

Depends-On: Iccd81c17e84df03d249c1012277dad9cb68c5845
Change-Id: I691829c1224557d1d239c9f665ac539d0f13c4d3
2016-04-28 14:52:33 -04:00
Jenkins
f1d14de6da Merge "Doc: Add network resource descriptions" 2016-04-28 16:46:17 +00:00
Jenkins
6bf60180a2 Merge "Fix error in flavor set/unset command" 2016-04-28 16:14:13 +00:00
Jenkins
941217a5f3 Merge "Support for volume service list" 2016-04-28 16:13:46 +00:00
Huanxuan Ao
4524b3605f Fix error in flavor set/unset command
In the "flavor set/unset" command,the "flavor" parameter
can be a name but can not be a id of a flavor.
I think we should find a flavor by using "utils.find_resource()"
in these commands.

Change-Id: I5836788f7ed18813f1ebde31bb808b7c3f932b80
Closes-Bug: #1575624
2016-04-28 19:59:53 +08:00
Huanxuan Ao
9dba843bde Add functional tests for commands of floating ip
This patch add functinal tests for commands of floating ip

Change-Id: I7f29578d0e14884f21183bfb82228d2fe7b7a029
2016-04-28 15:19:16 +08:00
Inessa Vasilevskaya
08759b853a Fixes BadRequest when no --pool-prefix given
--pool-prefix is made required on subnetpool creation.
Closes-bug: #1536479

Change-Id: I3d183e45e9b96bc08011c36f45ec2b7a9c01b627
2016-04-27 18:38:35 +03:00
Jenkins
74162fa31a Merge "Support quota show for current project" 2016-04-25 21:15:43 +00:00
Sheel Rana
4072554608 Support for volume service list
OSC does not support to list volume services.
This patch will provide support for adding volume service related
support.

Closes-bug:#1550999

Implements: bp cinder-command-support

Change-Id: I50ac14aeb96c4b8ddbf7b33e519feea0d126f752
2016-04-25 17:42:12 +00:00
Richard Theis
d0885e5d5a Doc: Add network resource descriptions
Add descriptions to the network resource command documentation.

Change-Id: I547ffb48f8950311a5ee65d6b535846f2aca0efc
2016-04-25 06:46:12 -05:00
Jenkins
a0a29df3e6 Merge "Add new share and default parms to subnet pool cmds" 2016-04-21 17:18:01 +00:00
Jenkins
d0ff8b6db2 Merge "Fixed subnet command host route output" 2016-04-21 17:17:53 +00:00
Richard Theis
27024d70af Support quota show for current project
The "os quota show" command "<project/class>" argument is now
optional. If not specified, the user's current project is used.
This allows non-admin users to show quotas for their current
project.

Change-Id: I602d4cc09c9d29ce84271eff78137f8810cb1a47
Closes-Bug: #1572733
2016-04-21 11:33:24 -05:00
Jenkins
65828f0982 Merge "Add commands of clustering service to doc" 2016-04-21 14:54:33 +00:00
Rui Chen
0d3a06db1c Fix server group document issue
The patch fix server group document typo and format issue.

Implements: blueprint nova-server-group-support
Related-Bug: #1542171

Change-Id: I3e24ddce91ecabc6be1b7be95d0f4e5a2ebe93ab
2016-04-21 14:51:45 +08:00
tengqm
518ef26895 Add commands of clustering service to doc
This patch adds the 'objects'/'resources' provided by the clustering
service (senlin) to the commands doc.

Change-Id: I028bd919f5b357d1b6e806c85e83a1a63c42839c
2016-04-21 01:20:36 -04:00
Brad Behle
48ebc49f20 Add new share and default parms to subnet pool cmds
Add the "share" and "default" parms to subnet pool create command.
Add the "default" and "no-default" parms to subnet pool set command.
Note that "share" can not be modified once subnet pool has been
created, so do not add this to the set command.

Change-Id: I1eecad69527a1cde7fb234669f4aff2be2db491e
Partial-Bug: #1544591
Partial-Bug: #1544586
2016-04-20 20:12:02 -05:00
Jenkins
38759f3edd Merge "Add "server group show" command" 2016-04-20 20:43:07 +00:00
Jenkins
e78113a5fc Merge "Fix mutable default arguments in tests" 2016-04-20 20:22:55 +00:00