909 Commits

Author SHA1 Message Date
Jenkins
bae1d9cc21 Merge "Deprecate nova-manage vm list command" 2016-07-11 15:23:47 +00:00
Jenkins
66d4ab7579 Merge "Add nova-manage quota_usage_refresh command" 2016-07-10 06:12:38 +00:00
Matt Riedemann
5a5b06fb24 Deprecate nova-manage vm list command
The nova-manage vm command is replaced with the nova list command
in python-novaclient, and has been for a long time.

As of microversion 2.3, the fields that are output from
nova-manage vm list are all covered in the REST API for showing server
details, which can also be used via the --fields option of the nova
list command. The nova list command also allows filtering by host.

This sets the timer for deprecation and then removal in Ocata.

Change-Id: Ibce8c3deb24a16019b721d3b91640ca342ae541b
Closes-Bug: #1494841
2016-07-07 16:15:09 -04:00
Matt Riedemann
c1d7fc702a Remove live-migration from nova-manage man page
There is no command for live-migration in nova-manage
so remove it from the man page.

Change-Id: I29764bcc4592ce023cfce53a477a851a633e6541
2016-07-07 16:04:13 -04:00
Chuck Carmack
8d25383ad2 Add nova-manage quota_usage_refresh command
This is the final patch in the sequence.

The nova-manage quota_usage_refresh command will
sync a project or user's usage in the database
with the actual usage.

Implements blueprint: refresh-quotas-usage

Change-Id: Ic6da10b9c567ad5396b4a22b160e1abef8fa8f28
2016-07-06 22:24:02 +00:00
Mikhail Feoktistov
d60d70598e libvirt: virtuozzo instance rescue mode support
Adapt "nova rescue" code to support Virtuozzo ploop disks.
In rescue mode we use static mount point /mnt/rescue for original filesystem.
As far as ploop disks are in fact directories
we use rmtree function to delete rescue disks in unrescue procedure.

Implements: blueprint virtuozzo-rescue-support
Change-Id: I07b9e3a8b726635294395b0292fc3592a1b0f918
2016-06-29 17:29:30 +03:00
Mikhail Feoktistov
d4aa455d53 libvirt: virtuozzo instance resize support
Adapt "nova resize" code to support Virtuozzo ploop disks.
As far as ploop disks are in fact directories we add '-r' argument
to all utilities that deal with instance' disks such as cp, rsync and scp.
Thus we copy disks universally whether they are folders or files.

Also using "prl_disk_tool" instead of "qemu-img" is better for ploop images
because it resizes guest filesystem as well.

We can't resize disks from guest OS in containers,
because they are not allowed to write directly to block device.
ploop tool can resize partition table and internal filesystem,
but only for container's disks. Such disks must have only one partition
with ext filesystem.

prl_disk_tool can resize disks with internal filesystems
and doesn't require any special layout so it can resize disks
for virtual machines.  So it's better to use this tool instead of ploop.

Also we make compute.filters more strict
We call "ploop" only with "restore-descriptor" argument
And we set disk size in megabytes for prl_disk_tool

Co-Authored-By: Dmitry Guryanov <dguryanov@parallels.com>
Depends-On: I04c4379459c2fc1fd4801ec2aad53d0f6053b6d6
Change-Id: I38dbf73beb01fe1939ddca63fbfedbec1dc3c826
Implements: blueprint virtuozzo-instance-resize-support
2016-06-28 22:13:49 +03:00
Jenkins
5730a39ed7 Merge "fix developer docs on API" 2016-06-24 12:47:03 +00:00
Jenkins
2983c4ecb0 Merge "Modify "policy.conf" to "policy.json"" 2016-06-23 19:17:44 +00:00
Sean Dague
c9f7b84df9 fix developer docs on API
During the defcore discussion about the fact that the extensions
facility was deleted from Nova, folks pointed to this doc and the word
extensions to state that it was clearly still supported. There are
many levels of confusion there.

This tries to crisp up the introduction and links to the API docs for
Nova.

Change-Id: Ic0be29fb14bfb00ed7691439318325967d138dc9
2016-06-22 15:06:12 -04:00
zte-hanrong
f967d5c570 Modify "policy.conf" to "policy.json"
Because "policy.conf" does not exist in nova project, modify it
to "policy.json" instead.

Change-Id: Ib3e51412d2b6fcb8393bef967da371873cc6a91d
2016-06-22 17:13:08 +08:00
He Jie Xu
2066e43e7f Add a note for policy enforcement by user_id
The policy enforcement by user_id isn't supported by Nova, add a
note to devref to clarify that.

Change-Id: I11aece03f28a8cbe3d37681f49e4325689999142
2016-06-22 14:17:41 +08:00
Jenkins
c867b3b85d Merge "Do not register notification objects" 2016-06-10 10:49:10 +00:00
Jenkins
2edb4bb8ed Merge "Update Support Matrix" 2016-06-09 10:25:15 +00:00
Balazs Gibizer
520ee65a55 Do not register notification objects
Only registering the notification objects during unit test.
Notification objects are never used in the Nova RPC interface
and shall not be mixed with such objects.

Change-Id: Iba9079bb204e6ef1302529ac159199ab9fa6272b
2016-06-08 11:32:53 +02:00
Jenkins
220439fcd6 Merge "Make available to build docs with python3" 2016-05-26 17:24:03 +00:00
Chris Dent
bd199e3f9b Support for both microversion headers
In this change the new OpenStack-API-Version headers is allowed,
but not required, for requesting a microversion.

Both headers are accepted in the request and both headers are sent in
the response (both the header and its value, and the addition to the Vary
header).

Many tests which explicitly use a microversion header have been
updated to use both. This change is not 100% as most of the tests
are testing the handling of the value of the header, not which
header is involved.

Partially-Implements: blueprint modern-microversions
Change-Id: I68da13b5ba0c2f3357523e765a5b9db81899daf1
2016-05-25 21:41:27 +00:00
Yosef Hoffman
74d6c42a1f Update Support Matrix
HyperV: Nova serial console access support [1] has been merged
successfully. Update support matrix accordingly.

[1] https://review.openstack.org/145004

Change-Id: Ie6792e91c5c6c24d4af448605e4bb7d245bf41a8
Closes-Bug: #1584199
2016-05-23 21:57:03 -04:00
Andrey Volkov
9053a4685b Make available to build docs with python3
On Ubuntu 16.04 a tox package is for python3 by default
and this causes errors in building docs in tox enviroment.

In these changes iterators are replaced with lists where it's needed.
Also external command calls result are decoded from bytes to unicode.

Change-Id: I88ef54405b4bc13c269bdda55ae8289676311ee1
2016-05-23 15:30:20 +03:00
Lucian Petrut
3f96f3039a Hyper-V: Implement nova rescue
The root disk image is moved to a separate disk slot while the
rescue image will take it's place. If the instance requires it,
a temporary config drive is created as well.

Unrescuing the instance will move the root disk image back in
place, removing temporary images.

DocImpact

Implements: blueprint hyper-v-rescue

Change-Id: I6059ae35a77d675f54b98b2b43b5762e1d24365b
2016-05-21 02:15:04 +03:00
Jenkins
101cbb9e39 Merge "docs: link to Laski's cells talk from the Austin summit" 2016-05-17 10:17:08 +00:00
jichenjc
a90488ed31 Not talking about V2 API code in review doc guide
V2 code is gone , there is no need to talk about this
in our document any more.

Partially implements blueprint remove-legacy-v2-api-code

Change-Id: Ibca00e3e862c1487f0a440fdcc7d11d09026c7a8
2016-05-07 02:40:21 +08:00
Jenkins
eaa72fdd73 Merge "Fix typo in support-matrix.ini: re(set)=>(re)set" 2016-05-06 18:32:14 +00:00
jichenjc
20cbfa0119 Update stable API doc to indicate code removal
V2 API is totally removed, we can update document to tell this
to reader, keep this document might be helpful to some users
who are new to V2.1(legacy)/V2.1 concept.

Partially implements blueprint remove-legacy-v2-api-code

Change-Id: Idb67a34d89acaeb3f87ffb7e6c35f2a171a3fc76
2016-05-05 18:58:32 +08:00
Jenkins
035fed4e9c Merge "Fix doc build if git is absent" 2016-05-04 00:14:36 +00:00
Matt Riedemann
409085a8c0 docs: link to Laski's cells talk from the Austin summit
Andrew Laski gave a nice presentation at the Austin Newton summit
of cells v1 and v2, along with work complete and what's being
worked on. This fits nicely into our documentation on cells and is
good to watch before reading further in detail.

Change-Id: I4c0245c000bb74c159fc02c36a83a11f145208a3
2016-05-02 12:23:08 -04:00
Eric Fried
9077837805 Fix typo in support-matrix.ini: re(set)=>(re)set
In [operation.set-admin-password], the parens in the following:

mechanism to re(set) the password

...imply it can be read as:

mechanism to re the password

...or

mechanism to reset the password

The former is obviously not as intended.

Change-Id: I696658a45d220a13a509d4f904d6b0fb996d7925
2016-04-29 15:14:42 -05:00
Atsushi SAKAI
340b7e9404 [doc] fix 5 typos
tweek        => tweak
adminstrator => administrator
mulitple     => multiple
definied     => defined (2-locations)

Change-Id: Ibe2c04e1b225515f7a6c83b5a4a8d91e8385140a
2016-04-28 20:40:18 +09:00
Jenkins
134514f283 Merge "Fixed typo in word "were"" 2016-04-25 19:01:31 +00:00
Jenkins
af9f2d5161 Merge "Add 415 to list of exceptions for microversions devref" 2016-04-22 23:04:06 +00:00
Gábor Antal
24d49c67a0 Fixed typo in word "were"
In how_to_get_involved.rst file there is a typo
in the word "were" as it is written as "ware"

Change-Id: Ib8338d7b89737f115e1dd74c0d7d6239690b631f
2016-04-22 14:58:24 +02:00
Jenkins
d151ece252 Merge "Add rebuild action descriptions in support-matrix" 2016-04-21 13:28:43 +00:00
Matt Riedemann
e781103841 Add 415 to list of exceptions for microversions devref
There was some confusion/debate in reviewing
I5fa1fdba56803b2ef63b1efaaeeced6ceb7779d9 and whether or
not it required a microversion to change the response code.

This was a pretty common sense scenario where 415 was a
more appropriate error code for 400 and is a better client
experience when hitting that error.

This change updates the potentially confusing part of the
devref about this and adds a note to ask the Nova API
subteam when in doubt about whether or not a microversion
is needed for changing error codes.

Change-Id: I8a2836076b7fadc697bdc013578c3d777d02a833
Related-Bug: #1567977
2016-04-20 14:33:19 -04:00
Thomas Bechtold
82a23c682e Fix doc build if git is absent
When building packages if git is absent, then we should not set
html_last_updated_fmt. It can still be set via the -D switch
when building with sphinx-build.

Change-Id: I5da86b7a163c0e795cd34abf79b0980a8552f79b
Closes-Bug: #1552251
2016-04-13 09:35:57 +02:00
Jenkins
a03fc2325c Merge "Make swap-volume an admin-only API by default" 2016-04-11 02:18:42 +00:00
Matt Riedemann
f738483e84 Make swap-volume an admin-only API by default
Cinder's volume migration API is, by default, an admin-only operation.
This includes the migrate_volume_completion API.

When Cinder is doing a volume migration, it calls Nova's swap-volume
API to detach the old volume that we're migrating from and attach
the volume that we're migrating to. Then Nova calls Cinder's
migrate_volume_completion API to signal Nova is done and Cinder
can finish the volume migration.

The problem is that swap-volume is not an admin-only API in Nova
per the default policy. So if a non-admin user tries to perform
a swap-volume operation, it will fail with a 403 when calling
Cinder's migrate_volume_completion API, since that requires an
admin user.

Also, because of 98739761f17b5e0b32abd8cd262f5beda030f886 we can't
simply avoid calling migrate_volume_completion for non-migration
cases because that API handles the actual detach/attach for the old
and new volumes, swap-volume is broken without calling that.

So given swap-volume relies on an admin-only Cinder API, and is called
from an admin-only Cinder operation (volume migration), we should
just make it default to admin-only also.

Change-Id: Iac03258735f3d856a474ab96fe9b0a087e32906f
Closes-Bug: #1522705
2016-04-08 20:12:00 +00:00
Jenkins
bce9acc07c Merge "Fix typos in document" 2016-04-07 14:31:06 +00:00
Matt Riedemann
a61219721a Document our policy on fixing v2.0 API bugs
There was recent discussion in some reviews about fixing
latent bugs in the legacy v2.0 API code. Since the
v2.0 API is deprecated and v2.1 is the default since Liberty,
we shouldn't need to fix latent low-priority bugs in v2.0
anymore.

However, we'll still fix critical bugs, and we shouldn't
knowingly introduce new regressions that would result
in a 500 response.

Change-Id: I9937d9226a99754dadcc48d599090296f5ae01f7
2016-04-05 19:58:07 -04:00
ChangBo Guo(gcb)
03344561c0 doc: clean up oslo-incubator related stuff
We nuke oslo-incubator in commit b1871e57590efdbdf0bfada7bf0ae2c48bec9922,
This is follow up to clean up documents about oslo-incubator.

Change-Id: I4a6b7342570118ae116e896f29ce0a223421793a
2016-04-05 09:44:45 +00:00
Hironori Shiina
467953b2fd Fix typos in document
Fix a few typos in Feature Support Matrix.

Change-Id: I79bef54554c4dead75d2f98827c869167ee5a7ad
2016-03-25 02:24:55 +00:00
Diana Clarke
4994b411da Minor updates to the how_to_get_involved docs
- fixed a broken link
- updated a couple of links from mitaka -> newton
- added some missing apostrophes
- added some custom gerrit review dashboards

Change-Id: I1cc5087e7073244b13eaf9e8044e79a0fbe4aa9d
Closes-Bug: #1568292
2016-04-11 20:22:14 -04:00
jichenjc
23d8dff46c Add rebuild action descriptions in support-matrix
Currently the rebuild action is supported in API and CLI of nova
though only ironic driver has its own implementation, we can still
list it into the support matix to provide more info to user.

Change-Id: I391b54a383501d3cdd2ac799d0ce4ccf66243f5a
2016-03-21 18:18:56 +08:00
Jenkins
7baf124ee7 Merge "Remove auto generated module api documentation" 2016-03-18 21:07:05 +00:00
Jenkins
3266c5ca1f Merge "Support-matrix of vmware for chap is wrong" 2016-03-18 20:46:10 +00:00
Sean Dague
92a15091e7 Remove auto generated module api documentation
This disables the generation of the raw module api documentation in
our docs target. It is mostly not useful, as it builds a giant tree of
module documentation that are 98% boiler plate lists of methods with
no real content.

We leave the sphinx.ext.autodoc in the conf, which allows you to
specifically pull in modules for documentation when you want
to. doc/source/services.rst is an example of doing this in tree, which
still works after this change.

Change-Id: I4c10a8e45756cdcf612faca574e2fb3b7ffa2bdb
2016-03-18 07:18:07 -04:00
Jenkins
169409b74e Merge "Update to openSUSE versions." 2016-03-17 12:57:43 +00:00
Pranav Salunke
51819c6942 Update to openSUSE versions.
* Removing openSUSE 13.1 and adding openSUSE 42.1 (LEAP).
* Removing Factory as its called as Tumbleweed now.

Change-Id: Iea26ac4ea343b63bc07cdf9fef0659a2887fe584
2016-03-17 12:12:42 +01:00
Jenkins
3ccff4d85d Merge "Replace deprecated LOG.warn with LOG.warning" 2016-03-17 05:36:59 +00:00
xhzhf
def71059a1 Support-matrix of vmware for chap is wrong
Truely vmware driver can not attach cinder volume using chap
authentication over iscsi
Closes-Bug: #1557938

Change-Id: I05b1e81a3deffc855be34efff2d3e9dac8b63e82
2016-03-16 16:17:39 +08:00
Swapnil Kulkarni (coolsvap)
a023c32c70 Replace deprecated LOG.warn with LOG.warning
LOG.warn is deprecated. It still used in a few places.
Updated to non-deprecated LOG.warning.

Change-Id: I42c7b6a172b64a3c1ac6e0703df48ac2ddf8390a
Partial-Bug:#1508442
2016-03-15 11:57:56 +00:00