Commit Graph

52406 Commits

Author SHA1 Message Date
Matt Riedemann 9b69afd457 Remove deprecated hide_server_address_states option
The hide_server_address_states config option and related
policy rule were deprecated in Queens:

  I6040e8c2b3e132b0dfd09f82ae041b4786a63483

They are now removed in Stein as part of the API extension
merge effort.

Part of blueprint api-extensions-merge-stein

Change-Id: Ib3582038274dedbf524ffcaffe818ff0e751489d
2018-09-19 11:36:44 -04:00
Surya c5788293aa Merge extended_volumes extension response into server view builder
As nova extensions have been deprecated already, the goal is to
merge all scattered code into main controller side.
Currently schema and request/response extended code are there
among all extensions.

This commit merges the extended_volumes extension response into server
view builder.

Partially implements: blueprint api-extensions-merge-stein

Change-Id: I412ccfd5495b088c941a819b5946dc56ed86ae22
2018-09-18 16:54:38 -04:00
Zuul a899e09cfe Merge "Merge extended_status extension response into server view builder" 2018-09-18 16:06:51 +00:00
Zuul 1600f4a1fb Merge "Merge security groups extension response into server view builder" 2018-09-18 16:06:45 +00:00
Zuul 755d82a7eb Merge "Fail heal_allocations if placement is borked" 2018-09-18 04:39:26 +00:00
ghanshyam 5c836cc901 Merge extended_status extension response into server view builder
As nova extensions has been deprecated already and goal is to
merge all scattered code into main controller side.
Currently schema and request/response extended code are there
among all extensions.

This commit merge the extended_status extension resposne into server
view builder.

Partially implements: blueprint api-extensions-merge-stein

Change-Id: I35b933a9fa4ab263f5302463a0f3a5b96a99f855
2018-09-17 18:22:20 -04:00
ghanshyam 2e5fd8c8b8 Merge security groups extension response into server view builder
As nova extensions has been deprecated already and goal is to
merge all scattered code into main controller side.
Currently schema and request/response extended code are there
among all extensions.

This commit merge the security groups extension resposne into server
view builder.

Partially implements: blueprint api-extensions-merge-stein

Change-Id: I57141fc6b1ee87ad3933edd9dc255294d03b5651
2018-09-17 17:18:37 -04:00
Zuul 82270cc261 Merge "Fix docs and add functional test for AggregateMultiTenancyIsolation" 2018-09-17 11:31:15 +00:00
Zuul 142e394a38 Merge "add caching to _build_regex_range" 2018-09-17 00:02:28 +00:00
Sean Mooney 90b206894a add caching to _build_regex_range
- _build_regex_range is called 17 times on
  import of nova.api.validation.parameters_types.
  _build_regex_range internally calls re.escape
  and valid_char  on every char returned
  from _get_all_chars.
  _get_all_chars yields all chars up to 0xffff.
  As a result re.escape and valid_char are called
  1.1 million times when
  nova.api.validation.parameters_types is imported.

- This change add a memorize decorator and uses
  it to cache _build_regex_range

- This change does not cache valid_char,
  _is_printable or re.escape as hashing and
  caching them for each invocation would
  be far more costly both in time and memory
  than computing the result.

Change-Id: Ic1f2c560a6da815b26fdf770450bbe439d18d4f9
Closes-Bug: #1790195
2018-09-16 19:56:15 +00:00
Yikun Jiang a7e7c73a9d Rename changes-since test sample file
In the past, we only have changes-since filter, we called it as
timestamp-filter, but now we will add a changes-before filter,
the timestamp-filter is not clear anymore.

In this patch, we rename timestamp to changes-since.

Change-Id: Ieee912e197d17a5ffca7460f3b977316cd21813e
blueprint: support-to-query-nova-resources-filter-by-changes-before
2018-09-14 11:52:37 +08:00
Matt Riedemann 6bc32481fb Fix docs and add functional test for AggregateMultiTenancyIsolation
The docs for AggregateMultiTenancyIsolation were misleading in that
tenants are not restricted to hosts only in a tenant-isolated
aggregate. It's the opposite: hosts in the tenant-isolated aggregate
are only available for tenants configured for that aggregate.

This fixes the docs including an example for clarification, and also
adds a functional test to show the behavior of the filter.

Change-Id: Ic55b88e7ad21ab5b7ad063eac743ff9406aae559
Related-Bug: #1771523
2018-09-13 16:46:53 -04:00
Zuul ffdd809838 Merge "hyperv: Cleans up live migration Planned VM" 2018-09-13 17:56:07 +00:00
Zuul bf7c2cdcc6 Merge "Fix mock.patch usage in unit tests" 2018-09-13 16:50:42 +00:00
Balazs Gibizer 63dcd4bd90 Fix mock.patch usage in unit tests
There are various places where a patcher was started but never stopped
or the test stopped the wrong thing. This causes that the mocking is not
removed at the end of the test case execution. So the subsequnet test
cases executed by the same executor will see the same mocked function.
Depending on the test case exection order it can lead to intermittent
test failures.

Change-Id: I8e66154c19c125f3093c8a1990b0c79332996560
2018-09-13 02:54:07 +00:00
Zuul 0ba34a8184 Merge "Update RequestSpec.flavor on resize_revert" 2018-09-13 00:35:19 +00:00
Zuul 90cfa5d9f5 Merge "Follow devstack-plugin-ceph job rename" 2018-09-12 21:09:53 +00:00
Zuul 976efd4493 Merge "Use check_string_length from oslo_utils" 2018-09-12 21:01:14 +00:00
Zuul 06e533bc96 Merge "Update docs for live_migration_progress_timeout option" 2018-09-12 18:17:58 +00:00
ghanshyam e18ed6b00c Follow devstack-plugin-ceph job rename
The devstack-plugin-ceph jobs have migrated to zuul v3
& in-repo and renamed[1], this commit use the new job.

Patch removing old job from openstack-infra/openstack-zuul-jobs[2]
[1] https://review.openstack.org/543048
[2] https://review.openstack.org/#/c/601316/

Change-Id: Ib3c71593a9fad48eb86ccc4f5c0209fbef89edb9
2018-09-12 11:38:11 +00:00
Zuul c5a80f4843 Merge "Cleanup zuul.yaml" 2018-09-11 21:47:04 +00:00
Zuul fec07cd72a Merge "add python 3.6 unit test job" 2018-09-11 21:46:55 +00:00
Zuul d465f5fe15 Merge "switch documentation job to new PTI" 2018-09-11 21:46:47 +00:00
Zuul ac1e3800ee Merge "import zuul job settings from project-config" 2018-09-11 20:42:48 +00:00
Zuul fa7df873dc Merge "Add an example to add more pci devices in nova.conf" 2018-09-11 09:18:57 +00:00
Andreas Jaeger 2785cc791e Cleanup zuul.yaml
Couple of cleanups:
* Use openstack-lower-constraints-template, remove jobs that are part
  of templates.
* Use openstack-tox-cover template, this runs the cover job
  in the check queue only. Remove post job.
* Sort list of jobs and templates
* Use dsvm-irrelevant-files for newly imported jobs

Change-Id: Ibce77d3442e21bbd5f5ce379c203542f1f31ce9e
2018-09-11 06:46:54 +02:00
Zuul 6a74828621 Merge "Document differences and similaries between extra specs and hints" 2018-09-10 20:18:41 +00:00
Zuul 580a544350 Merge "Remove redundant image GET call in _do_rebuild_instance" 2018-09-10 20:17:57 +00:00
Doug Hellmann 42975e623b add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: If2587dbbbdc88ab01d1fb16ab6b5efe446453957
Story: #2002586
Task: #24315
2018-09-10 21:55:48 +02:00
Doug Hellmann b3dadd23e4 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I102d40d5897a4f0963dffe6d4c25186c057fa856
Story: #2002586
Task: #24315
2018-09-10 21:55:48 +02:00
Doug Hellmann 05ab017907 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Id44018e3c19d96f5f2dd104d0ed4d85973cd84e8
Story: #2002586
Task: #24315
2018-09-10 21:55:44 +02:00
Zuul aa9f9448c9 Merge "Do not dump all instances in the scheduler" 2018-09-09 11:13:53 +00:00
Zuul 31f3722d20 Merge "fix a spelling error" 2018-09-08 23:29:28 +00:00
Zuul 5c528df45d Merge "Use six.string_types to improve python2/3 compatibility" 2018-09-08 13:53:28 +00:00
zhangshj 3ed77b1a25 fix a spelling error
Change-Id: Ia7f724c756a616b577d6233dd653bcf7b15881f5
2018-09-08 15:23:00 +08:00
Zuul 957f4818b0 Merge "Use uuidsentinel from oslo.utils" 2018-09-08 07:19:34 +00:00
Zuul e5c6ebc6c5 Merge "doc: update info for hypervisors" 2018-09-08 01:27:25 +00:00
Matt Riedemann f34877f936 Update docs for live_migration_progress_timeout option
Change I1a1143ddf8da5fb9706cf53dbfd6cbe84e606ae1 in Ocata
deprecated the libvirt.live_migration_progress_timeout
and disabled it by default. This change updates the config
option help to refer to the bug so people don't have to hunt
for it via git history, and also touches up the admin docs.
In the one doc, mention of the option is removed altogether
because it basically says, "here is a loaded gun, but don't
use it!". It's better to just not mention the option at all.

Change-Id: I33f3d508a2af6c94435f86ac740cf24b97dba76e
Related-Bug: #1644248
2018-09-07 23:22:25 +00:00
Zuul 762d9a1c19 Merge "Fix formatting in changes-since guide" 2018-09-07 22:48:13 +00:00
fpxie d086389366 Add an example to add more pci devices in nova.conf
The help for the [pci]aliases config option was confusing in that it
wasn't clear how to specify multiple aliases. The default value being []
made it seem like you ought to be able to specify a list as:

 alias = [{...}, {...}, ...]

This won't actually work; you instead have to say:

 alias = {...}
 alias = {...}
 ...

So this patch adds a multi-alias example to the help string and
explicitly calls out the fact that you can't use list values.

See the referenced bug for more details.
Change-Id: I71d4c440340db31d22a73a8b3e3abc51771aa7bc
Closes-Bug: #1786870
2018-09-07 20:02:55 +00:00
Matt Riedemann de27a387b0 Fix formatting in changes-since guide
This fixes the weird formatting in the changes-since
guide along with splitting up the giant wall of text
so this is easier to consume.

Change-Id: Ia15d3b5e3e1e8279d9109ca9c54f213c3e7838bb
2018-09-07 14:29:57 -04:00
Zuul 3d31e6c95a Merge "Configure placement DB context manager for nova-manage/status" 2018-09-07 13:15:20 +00:00
Radoslav Gerganov 4fd7c93726 Do not dump all instances in the scheduler
There is a log message in the scheduler which dumps all instances
running on a compute host. There are at least 2 problems with this:
1. it generates huge amount of logs which are not really useful
2. it crashes when there is an instance with non-ascii name

Instead of fixing 2), just print instance UUIDs.

Closes-Bug: #1790126
Related-Bug: #1620692
Change-Id: I0eda1c58a7eb54121230c880818b4b1d0fdf4893
2018-09-07 15:56:51 +03:00
Zuul d8004bddae Merge "fup: Fix import order and test nit" 2018-09-07 11:16:23 +00:00
Zuul ebfb4157f8 Merge "Add encrypted volume support to feature matrix docs" 2018-09-07 11:16:16 +00:00
Zuul 999c230576 Merge "Docs: update link for remote debugging" 2018-09-07 11:16:07 +00:00
Zuul b1b7f64e60 Merge "Update volume-attachment API url in policies" 2018-09-07 11:15:52 +00:00
Chen a09ba76fe7 Use six.string_types to improve python2/3 compatibility
Change-Id: I336525cf1c49692b1bbd58e42c94dd1670cd071e
2018-09-07 17:05:24 +08:00
Chen de8292ccff doc: update info for hypervisors
Update links and add info for UML hypervisor.

Change-Id: Id2a5ed802b2849c4edd5b92debe37c921bc859cc
2018-09-07 15:33:19 +08:00
Zuul c7991409f4 Merge "Fix TypeError in nova-manage cell_v2 list_cells" 2018-09-07 05:38:45 +00:00