2054 Commits

Author SHA1 Message Date
raiesmh08
09571ba7dc Adding missing nova read only CLI test
1. nova quota-defaults
2. nova bash-completion

Previously these were proposed at  -
https://review.openstack.org/#/c/98735/
Change-Id: I3c2e9aa652cb712b41b9347cb144044012e2338e
2015-06-08 03:25:56 -07:00
Jenkins
773eea811d Merge "Fix all doc warnings and gate on warnings" 2015-06-05 04:51:56 +00:00
Jenkins
7e27f13782 Merge "Add docs tox env" 2015-06-05 04:35:51 +00:00
OpenStack Proposal Bot
5ebe89f0a1 Updated from global requirements
Change-Id: I9ae60f20f6e3050d1cc82ae78c25df1dfab876af
2015-06-04 20:14:15 +00:00
Joe Gordon
4e9a2b4c69 Fix all doc warnings and gate on warnings
* Remove releases (File removed in e334096aa3a4badb2930c766cb4b42bbcc9ac107)
* Add link to man page
* Fix some docstring formatting

Change-Id: Iec67a6d32f0365e514394c1e3eb7d8e4ae6aff65
2015-06-04 17:10:50 +09:00
Joe Gordon
d37c19a13f Add docs tox env
Just like in nova, lets add a 'docs' env to here so you can simply run
'tox -edocs' and build the docs which get published to

http://docs.openstack.org/developer/python-novaclient/

Change-Id: Ie381a78477b60b4b9981576d75c911cb0deb5696
2015-06-04 16:56:11 +09:00
Jenkins
072ab6cd5a Merge "add ips to novaclient server manager" 2.26.0 2015-06-03 16:33:59 +00:00
Matt Riedemann
acf6d1fe65 Remove unused novaclient.tests.unit.v2.utils module
This is an old carry over from pre-testtools days and has a nose import.
Nothing is using it so remove it.

Closes-Bug: #1458272

Change-Id: I01b5d35d2e2aec161bd3dbaecb4670ddf3ee8794
2015-06-02 14:14:11 -07:00
Matt Riedemann
3502c8aee2 Add documentation on command deprecation process
Since we haven't removed deprecated commands before, add some
documentation to the devref on the process for this type of change.

Change-Id: Iff6f5df372bec524757b84747c7a95bbf6412c35
2015-06-02 14:14:11 -07:00
Matt Riedemann
23f13437dd Deprecate volume/volume-type/volume-snapshot CRUD CLIs/APIs
This deprecates all of the volume CLIs/APIs that go directly to the
cinder API via the volume service type.

This will emit a warning each time a deprecated CLI/API is used and also
updates the help docs for the deprecated CLIs and docstrings for APIs.

The plan is to do a release once this is merged so people start seeing
it and then we'll actually remove the deprecated CLIs/APIs in the first
python-novaclient release after the Nova server 2016.1 'M' release.

DocImpact: The volume, volume-type and volume-snapshot CRUD CLIs/APIs are
           deprecated and will be removed after the Nova 2016.1 release.
           Use python-cinderclient or openstackclient for CLIs instead.
           Use python-cinderclient or python-openstacksdk for APIs instead.

Related-Bug: #1454369

Change-Id: I4e92f924739de9b664e08117984bfb60359f2212
2015-06-02 14:14:06 -07:00
Jenkins
2fad863909 Merge "server-group-list support 'all_projects' parameter" 2015-05-30 00:43:24 +00:00
Doug Hellmann
e649cea843 Do not check requirements when loading entry points
Update the calls to pkg_resources to avoid forcing a requirements check
when the plugins are being loaded.

There are 2 versions of the entry point API in different releases of
setuptools. In one version, the require keyword argument can be passed
to load(). In the other, separate methods resolve() and require() need
to be used. This change updates the mock and fake objects to support
either, since the fakes are subclasses of the EntryPoint class in
pkg_resources.

It would be better to replace the calls to pkg_resources with stevedore,
which provides a more stable API, abstracts away this difference, and
provides an API for creating test managers directly. That change would
have required more extensive updates to the test suite, though, and
since I'm not as familiar with this code base as others will be, I will
leave those changes for someone else.

Change-Id: I2a9aeb53ccad04c7fa687f25340306b84218f9ff
Partial-bug: #1457100
2015-05-27 18:08:02 +00:00
Kevin L. Mitchell
0a327ce375 Eliminate test comprehensions
The novaclient tests are rife with examples of using a list comprehension
to perform a series of asserts, when a simple for loop would be more
appropriate and more idiomatic; part of the problem is the propensity
for people to cut and paste.  Eliminating the existing examples should
remove the temptation for developers to use this non-idiom to perform
tests.

Change-Id: I2cc8979e720740eae81692a60e30a3d95dce2a2c
2015-05-21 19:12:35 -05:00
Jenkins
c5b850fb1e Merge "Use clouds.yaml for functional test credentials" 2015-05-21 23:09:36 +00:00
Andrey Kurilin
aa4c947519 Remove redundant check for version of requests
Novaclient requirements list contains next entry:
  requests>=2.5.2

so we don't need to check that installed version of requests is greater
than '2.4.1'

Change-Id: I7d270e6d75c76bc56e21f42c683fde9284a8dfd7
2015-05-15 18:05:14 +03:00
Monty Taylor
22569f218e Use clouds.yaml for functional test credentials
devstack emits a clouds.yaml file now, so it can be used for finding the
credentials needed to connect to the cloud for functional testing.

Depends-On: I1150b943f52f10d19f8434b27e8dde73a14d7843
Change-Id: If278565ef07de1a8fef3ff96fc3608e41f3ceea3
2015-05-14 19:55:00 -07:00
Sean Dague
6379287480 pass credentials via config file instead of magic
Passing credentials via an assumed environment inheritance is bad
form, and breaks under new tox. Honestly, we only really need 2 vars
passed in, so we might as well make it a config file that we'll parse.

Add a functional_creds.conf.sample for people to know what one should
look like. Update README to explain it.

Related-Bug: #1455102

Change-Id: Ifdab38a03c94f51d30449149c0dbd9c6265460a5
2015-05-14 10:48:01 -04:00
Rui Chen
9cfecf922a server-group-list support 'all_projects' parameter
Supporting 'all_projects' in server-group-list so that
admin users can list other tenant's server groups.

Change-Id: Ie50288464ebc6585590a1a74efa8804584771ebc
Closes-Bug: #1454523
2015-05-13 16:32:42 +08:00
Doug Hellmann
0e35f2a2fa Drop use of 'oslo' namespace package
The Oslo libraries have moved all of their code out of the 'oslo'
namespace package into per-library packages. The namespace package was
retained during kilo for backwards compatibility, but will be removed by
the liberty-2 milestone. This change removes the use of the namespace
package, replacing it with the new package names.

The patches in the libraries will be put on hold until application
patches have landed, or L2, whichever comes first. At that point, new
versions of the libraries without namespace packages will be released as
a major version update.

Please merge this patch, or an equivalent, before L2 to avoid problems
with those library releases.

Blueprint: remove-namespace-packages
https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages

Change-Id: If5e8257085b5fd0a26a34705505fc0077adbabb2
2.25.0
2015-05-11 15:30:11 +00:00
Jenkins
4aac927894 Merge "refactor functional test base class to no inherit from tempest_lib" 2015-05-08 19:03:31 +00:00
Jenkins
569aed335e Merge "Reuse uuidutils frim oslo_utils" 2015-05-08 18:52:23 +00:00
Jenkins
f2b762733a Merge "Sync latest code from oslo-incubator" 2015-05-08 18:52:14 +00:00
Andrey Kurilin
667f1af972 Reuse uuidutils frim oslo_utils
Change-Id: I0c5ec41215e97dafd7377179979b01a67704cb05
2015-05-08 12:36:41 +03:00
Andrey Kurilin
4a7cf96766 Sync latest code from oslo-incubator
Hash of latest commit in oslo: f5646edc61b9653d7ff71ed0177ed77811bbdcd0

Change-Id: I2f3bf41434591fcfc811ae6dec40ccabd42db741
2015-05-08 12:27:59 +03:00
OpenStack Proposal Bot
d03a85a205 Updated from global requirements
Change-Id: I9b195f06731e390087f8850fbba59afacc89239f
2015-05-07 23:37:26 +00:00
Jenkins
fbcfaca847 Merge "nova client now support limits subcommand" 2015-05-06 22:52:14 +00:00
Jenkins
8f2e1b57ed Merge "Make _discover_extensions public" 2015-05-06 18:34:13 +00:00
kylin7-sg
02c04c5658 Make _discover_extensions public
Heat uses `novaclient.shell.OpenStackComputeShell._discover_extensions`
function, which is private currently. It's better to change this method
to public for public use.

Change-Id: I15879d56db2ec88a9bef99b6af8924ebd4ad169b
Closes-bug: #1440779
2015-05-06 14:10:59 +08:00
OpenStack Proposal Bot
99fcc6939e Updated from global requirements
Change-Id: I897e515d571c81c318206758c2cd419b4bbed55f
2015-05-04 20:09:13 +00:00
rajiv.kumar
bf6fbdb8d7 nova client now support limits subcommand
Added new subcommand "limits" which displays absolute limits and
rate limits both. do_limits() functions calls get() only once and
then passes limits.rate and limits.absolute to _print_rate_limits
and _print_absolute_limits respectively; these functions then
format the output.

Change-Id: I1344da1a3925a3f3a757e340f11381b69a668bf7
Closes-Bug: #1172254
2015-05-04 04:59:05 +00:00
Ken'ichi Ohmichi
95421a3702 Don't use SessionClient for version-list API
The endpoint of version API doesn't contain "/v2/{project-id}" and it is
just "/". SessionClient is based on the endpoint "/v2/{project-id}/...",
so this patch makes a client use a raw url for version-list API.

Change-Id: I53f2afacce2dda14ac9761e824b48887f7c192f9
Closes-Bug: #1444235
2015-05-03 21:27:24 +00:00
Jenkins
2a7c2f14c2 Merge "Don't lookup service url when bypass_url is given" 2015-04-27 17:12:51 +00:00
Jenkins
95a743f164 Merge "Deprecate v1.1 and remove v3" 2015-04-27 13:23:13 +00:00
Ken'ichi Ohmichi
86ec0c6bac Add min/max microversions to version-list cmd
Since Id464a07d624d0e228fe0aa66a04c8e51f292ba0c, Nova returns min/max
microversions on a "list versions" API response.
For using microversions, API users need to know available microversions.
This patch adds them to version-list command.

Change-Id: I81f667ca4f0403183cac918e416a730c16b6eeff
2015-04-26 15:43:17 +00:00
Jenkins
7a2075756e Merge "Add --all-tenants option to 'nova delete'" 2015-04-23 11:42:34 +00:00
Jenkins
3251bc430f Merge "Handle binary userdata files such as gzip" 2015-04-23 11:41:01 +00:00
Jenkins
d0263a76a3 Merge "Fix displaying of an unavailable flavor of a showing instance" 2015-04-23 03:20:00 +00:00
Jenkins
fdef4cea12 Merge "Report better error message --ephemeral poor usage" 2015-04-23 03:11:44 +00:00
Jenkins
9b6dcd13e5 Merge "Revert "nova flavor-show command is inconsistent"" 2015-04-22 21:29:08 +00:00
Jenkins
ac4390c3ea Merge "Update README to work with release tools" 2015-04-22 19:08:30 +00:00
Andrey Kurilin
61ef35fe79 Deprecate v1.1 and remove v3
Module novaclient.v1_1 is already deprecated, so it's time to stop using it
inside novaclient.

Since support of v3 nova is undocumented feature, which uses v2
implementation, we can remove code related to it.

Also, this patch removes redundant check for compute api version != 1.0.

Change-Id: I06b349f704d5ae2c592d8d286da268870f2a69e9
2015-04-22 15:03:07 +03:00
Sean Dague
31f97a011b fix FloatingIP repr
The FloatingIP repr added in d614dbcab9cc8c5732ce28c655738218e147aad7
is incorrect, and can cause fails when you attempt to do bulk creation
activities with logging turned on.

This removes the __repr__ for FloatingIP so that it fails back to the
Resource defaults which are safe.

Partial Revert of d614dbcab9cc8c5732ce28c655738218e147aad7

Closes-Bug: #1437244

Change-Id: I8cedf418917157ce632606bef640049140134372
2.24.1
2015-04-22 06:56:38 -04:00
melanie witt
4f9e65c438 Don't lookup service url when bypass_url is given
Change https://review.openstack.org/#/c/164321 broke the bypass_url
option. It made the assumption that self.service_catalog won't be set
in novaclient/client.py when bypass_url is specified, which isn't
necessarily true. This change adds a check for self.bypass_url and
looks up service url only if bypass_url hasn't been specified.

Closes-Bug: #1445086

Change-Id: I72d2b3e3199aeae7fb2f2c68be259774e07a4501
2015-04-21 23:54:14 +00:00
melanie witt
098116d6a5 Revert "nova flavor-show command is inconsistent"
This reverts commit 4e79285b45ec1490c8e923f724cbaf4d42fe81c4.

The aforementioned commit broke flavor-show for mixed case flavorids.
The reason is a bit complex. On the nova api side, there is caching of
db items for flavors, keyed off the flavorid retrieved from the db,
case sensitive, unlike the db query itself. Attempts to flavor-show
a flavor with flavorid composed of letters will fail with a 400 if
the capitalization doesn't match.

For the flavor names, they work in lowercase because the find_resource
function falls back on a search by "human_id" after failing every other
attempt to find the flavor, because "human_id" is a oslo-slugified
string (all lowercase, non-word characters removed, spaces converted
to hyphens).

Closes-Bug: #1446850

Change-Id: I73247b50f5a6918167c071ccc13cd676aa2c7fec
2015-04-21 22:19:06 +00:00
Sean Dague
de4e40a754 add ips to novaclient server manager
This exposes the ips Resource from the nova server manager which the
infra team believes will help them optimize some of their API load on
various clouds.

Change-Id: I00730dc809ae4e86d728e2ec76bfb38024d7634e
2015-04-21 12:40:53 -04:00
Doug Hellmann
af7c850bb8 Update README to work with release tools
The README file needs to have links to the project documentation and bug
tracker in a parsable format in order for some of the release tools
scripts to work (particularly the one that prints the release note
email).

Change-Id: I37e0acc5ed8e1af565359290fa622456901c735e
2015-04-21 15:44:09 +00:00
Sean Dague
420dc2884a refactor functional test base class to no inherit from tempest_lib
Test base classes inheriting outside the existing source tree to
anything higher up the stack than testtools is really an anti
pattern. It makes it *far* less clear what is going on. We really need
to own and understand our base class setup for tests.

This does that unwind, so that we only now call out to tempest_lib in
specific ways (like building clients, using decorators). The timeout
and log capture pieces are pulled inline.

At the end of this we end up with a base test that defines:

 - self.client - a Nova API client
 - self.flavor - a workable flavor for booting guests
 - self.image - a workable image for booting guests
 - self.cli_clients - tempest_lib cli clients

Change-Id: I716be51d7d1825a757934298f06b2f04d64cf0dd
2015-04-21 11:06:00 -04:00
Jenkins
5eab1430f2 Merge "Remove all imports from oslo namespace" 2.24.0 2015-04-20 22:42:54 +00:00
Jenkins
2b1f70c4ff Merge "Fix typo on class Client sample" 2015-04-20 19:56:35 +00:00
Andrey Kurilin
ccff3d3c94 Remove all imports from oslo namespace
oslo namespace is deprecated

Change-Id: I345eb210222d8e973b99f27821099f52883ab27d
2015-04-20 13:52:38 +03:00