Commit Graph

2991 Commits

Author SHA1 Message Date
Tony Breeds ca6c3e5666 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: I5c56db0df3194dcbc8f3ba3d25c9b2282a8a345b
2017-09-12 16:03:21 -06:00
Jenkins 3e0ac73abc Merge "Expect id and disabled_reason in GET /os-services response" 2017-07-24 19:54:34 +00:00
OpenStack Proposal Bot 19b3128034 Updated from global requirements
Change-Id: I431f85c07465a184af16a9956f40396c63b05985
2017-07-23 19:08:30 +00:00
OpenStack Proposal Bot 6dc996f9ca Updated from global requirements
Change-Id: Id6714ca11b033b715004f4899b59dd6951320882
2017-07-23 13:52:24 +00:00
OpenStack Proposal Bot c3f0864998 Updated from global requirements
Change-Id: I6c7062c45fbc66512e7683552cd5fe477196c42c
2017-07-22 16:38:55 +00:00
Matt Riedemann ed058c46a1 Expect id and disabled_reason in GET /os-services response
Since we no longer have v2 extensions, the GET /os-services
response is going to have an id and disabled_reason field,
so we don't need to have conditional checks around those.

Change-Id: I5d11ffb48febb53f70bf1193b2cba5ec839a3f0d
2017-07-21 13:41:35 -04:00
OpenStack Proposal Bot 02145d765c Updated from global requirements
Change-Id: Ia28ac9c04a663a2ce36950dae9cb9b348af01bc4
2017-07-21 04:46:09 +00:00
Jenkins 712b533dd0 Merge "Adjust test_resize_down_revert to account for counting quotas" 2017-07-20 15:28:25 +00:00
Matt Riedemann 617eb742ab Adjust test_resize_down_revert to account for counting quotas
Change I9269ffa2b80e48db96c622d0dc0817738854f602 in the Nova
server removes the need for reservations, which means that
once the server is resized in nova-compute and the vcpus and
memory_mb are changed on the instances record, the usage count
will also change, before the resize is confirmed. This means
we need to adjust the usage assertions in the resize down test.
Usage changes once the server is in VERIFY_RESIZE state, and
the usage will change again if the resize is reverted.

Note that if we were getting usage without the 'reserved'
query paramter to the 'limits' API, the behavior would have
been the same regardless of the change to Nova for counting
quotas.

Depends-On: I9269ffa2b80e48db96c622d0dc0817738854f602

Related to blueprint cells-count-resources-to-check-quota-in-api

Change-Id: I91ca0d204454987dcce1c68d9bf0f532b469df6d
2017-07-19 18:49:10 -04:00
OpenStack Proposal Bot 1945d1c3bc Updated from global requirements
Change-Id: Ia734b9f1dac610693a75df70ec1ffe0fe45dfcab
2017-07-19 22:30:30 +00:00
Jenkins a473c81c0a Merge "Microversion 2.52 - Support tag when boot" 2017-07-19 21:15:17 +00:00
Jenkins 938e2e3bc9 Merge "doc: Switch from oslosphinx to openstackdocstheme" 2017-07-19 21:00:31 +00:00
Jenkins acc18e04c8 Merge "doc: Create directory structure for docs migration" 2017-07-19 21:00:25 +00:00
Jenkins 8e01de9e85 Merge "Fix the inappropriate parameter name" 2017-07-19 19:30:00 +00:00
Jenkins 8d6bde276b Merge "Add resize down test which also verifies quota changes" 2017-07-19 19:28:07 +00:00
Jenkins f36331a95e Merge "Add functional test for resize-confirm plus quota validation" 2017-07-19 19:27:54 +00:00
Kevin_Zheng 30c9215da7 Microversion 2.52 - Support tag when boot
Change-Id: Ib65894f0e128c599db8d3440fe5a8427e62d5782
Depends-On: Ifcaaf285c8f98a1d0e8bbbc87b2f57fbce057346
Implements: blueprint support-tag-instance-when-boot
2017-07-19 14:19:56 -04:00
OpenStack Proposal Bot 24e4e92c1e Updated from global requirements
Change-Id: I7ec074495426c43bb20f7d3c00ee1a122c351e87
2017-07-18 01:56:34 +00:00
zhangdaolong baa23254ec Fix the inappropriate parameter name
The argument to the function should be the volume ID,
not the attachment ID.So the argument name of the
function here is easy to misunderstand.

Change-Id: Ie093b6acebe8b9e8dbdfed89856666db25bcf756
2017-07-16 23:34:57 +08:00
Matt Riedemann 9c21ad0db3 Add resize down test which also verifies quota changes
This adds a functional test which creates a server at a larger
flavor and then resizes it down to a smaller flavor, and then
reverts the resize. It checks quota before, during and after
the resize. This is an important wrinkle with the counting
quotas changes happening in the server in Pike.

Change-Id: If1bb59e513b91a99fae2b6825248a40d8e7ac7b9
2017-07-16 09:07:07 -04:00
Matt Riedemann 8ab54527f8 Add functional test for resize-confirm plus quota validation
With the upcoming counting quotas changes in Nova, and the
fact the novaclient functional tests are run in serial with
the same tenant, it would be useful to validate that
"nova resize-confirm" works as expected and that the quota usage
before, during and after the resize is confirmed is as expected,
that is, when resizing we expect the quota usage to change.

Change-Id: Id5be8edfde446b9e714460a606b446a2daf64007
2017-07-15 12:54:48 -04:00
Matt Riedemann 66c11374aa Add support for the 2.51 microversion
The 2.51 microversion adds the 'volume-extended' server
external event to the os-server-external-events API.

This is an admin-only API by default and this event is
currently only used by Cinder as part of extending the
size of an attached volume, and therefore does not
have any CLI or python API binding impacts in the client.

Part of blueprint nova-support-attached-volume-extend

Change-Id: I8293704dbb4f75306fe32d3a0118d5bf42c8457e
2017-07-14 21:34:14 -04:00
Matt Riedemann 5bfa57a433 Microversion 2.50 - fix quota class sets resource usage
This adds support for the 2.50 microversion which does the following:

* Adds the server_groups and server_groups_members resources to the output
  for the 'nova quota-class-show' and 'nova quota-class-update' CLIs.
* Removes the ability to show or update network-related resource quota class
  values, specifically floating_ips, fixed_ips, security_groups and
  security_group_members.
* Defines explicit kwargs for the update() method in the python API binding.

This also fixes a problem where the 'nova quota-class-update' CLI was
incorrectly capped at the 2.35 microversion for updating network-related
resources. That was true for the os-quota-sets API which is tenant-specific,
but not for the os-quota-class-sets API which is global.

Functional tests are added for the 2.1 and 2.50 microversion behavior for
both commands.

Part of blueprint fix-quota-classes-api

Change-Id: I2531f9094d92e1b9ed36ab03bc43ae1be5290790
2017-07-14 21:34:10 -04:00
OpenStack Proposal Bot 77f940c534 Updated from global requirements
Change-Id: I4d947576ce0e8bfe1fda9d662faac7d32c1f32f3
2017-07-13 14:24:25 +00:00
chenxing 945e155f05 doc: Switch from oslosphinx to openstackdocstheme
Change-Id: I4c242007dedf74821acae926329f4a59cedae6d5
2017-07-12 15:12:45 +01:00
Stephen Finucane e11efd8d76 doc: Create directory structure for docs migration
The spec [1] recommends the following sections:

- install
- contributor
- configuration
- cli
- admin
- user
- reference

Only a few of these are useful here:

- contributor
- cli
- user
- reference

Add these and populate them.

[1] specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration

Change-Id: I8a9ddcc915f25ebfaa1e994dba6c15883bd2715d
2017-07-12 15:07:35 +01:00
Takashi NATSUME e11a1266bb Microversion 2.49 - Virt device tagged attach
Change-Id: I65a2d33710f85e9b8c342d6ff4c1e4cc82990b8c
Implements: blueprint virt-device-tagged-attach-detach
2017-07-12 01:16:31 +09:00
Andrey Kurilin bd0a2adefe Fix cropping the endpoint url
`nova version-list` crops the endpoint url to exclude API version and
project-id(for microversions < 2.18). It is ok, but the code was
designed before Nova-API moved under uwsgi, which changed the endpoint
url format.

The latest endpoint url contains the hostname and port which can be one
for several services and it is a wrong case to cut the whole path from
the endpoint.

Closes-Bug: #1702194

Change-Id: Icba858b496855e2ffd71b35168e8057b28236119
2017-07-07 20:33:23 +00:00
Jenkins da5b563143 Merge "Deprecate binary argument in nova service enable/disable/force-down CLIs" 2017-06-29 13:30:47 +00:00
Jenkins d9404db867 Merge "Cleanup duplicated methods" 2017-06-29 13:26:42 +00:00
Matt Riedemann e7b84daa87 Deprecate binary argument in nova service enable/disable/force-down CLIs
Change If1e03c9343b8cc9c34bd51c2b4d25acdb21131ff in the API in Pike
makes the os-services API look up services records via the host mapping
in the API datadabase to determine which cell the service lives in.
The host mappings only exist for nova-compute services, which means
you can only enable/disable/force-down nova-compute services now, which
is realistically the only service that ever made sense for those actions.

That change broke some functional tests in novaclient though which loop
through all services and disables them or forces them down. This change
fixes those tests by only attempting the action on nova-compute services.

This change also deprecates the binary argument to the service
enable/disable/force-down commands since the only value that ever really
worked or does anything is nova-compute, so a future version of the CLI
should just hard-code that value.

Change-Id: Idd0d2be960ca0ed59097c10c931da47a1a3e66fb
Closes-Bug: #1700359
2017-06-27 19:20:51 -04:00
OpenStack Proposal Bot 6ac6c5f8e0 Updated from global requirements
Change-Id: I2c603cc617628c6e2ef8f6b6cbec1087ffbe5165
2017-06-27 12:22:08 +00:00
Takashi NATSUME a0301ecf59 Microversion 2.48: Standardization of VM diagnostics
Change-Id: I4b63b0d2d8856e8c8c14375d8b99ae248ba4f10f
Implements: blueprint restore-vm-diagnostics
2017-06-26 22:55:56 +00:00
Chris Friesen 78986dcae2 2.47: Show flavor info in server details
This adds support for microversion 2.47 which directly embeds the
flavor information in the server details.  With this change, CLI
requests with microversion >= 2.47 will no longer need to do
additional queries to get the flavor and flavor extra_specs
information.  Instead, the flavor information will be output
as separate key/value pairs with the keys namespaced with the
"flavor:" prefix.  As one would expect, these keys can also be
specified as output fields when listing servers.

Change-Id: Ic00ec95485485dff0fd4dcf8cad6ca56a481d512
Implements: blueprint instance-flavor-api
Depends-On: If646149efb7eec8c90bf7d07c39ff4c495349941
2017-06-26 09:50:50 -06:00
Andrey Kurilin c6d58d4356 Cleanup duplicated methods
Methods `get_vnc_console`, `get_rdp_console`, `get_serial_console` and
`get_spice_console` of ServersManager have complitely equal code, args spec
and docstrings for 2.0-2.5 and 2.6+ microversions. There is no reason to
duplicate those methods, so this patch removes duplicates.

Change-Id: I8c0e6f1f9138958bdb5d840cfd89e584c89895b0
2017-06-22 15:11:29 +03:00
Tovin Seven c23324ef48 Make --profile load from environment variables
--profile argument can be loaded from OS_PROFILE environment variables
to avoid repeating --profile in client commands.

Co-Authored-By: Hieu LE <hieulq@vn.fujitsu.com>
Change-Id: I52415354f0c7a7483eddaa48f2acafcdecbb26fd
2017-06-19 13:37:51 +07:00
Sean Dague ddb386b2df Revert "client.logger.warning wrongly used in migrations"
This is a partial revert of the previous patch. The inline setup of
the logger ends up causing issues when this is consumed by other
libraries that want control over the logger.

Closes-Bug: #1697452

This reverts commit 9a27201416.

Change-Id: I1d61d4952aef1039e72a2aac629cb13a6a15d7b2
2017-06-15 10:33:45 -04:00
Jenkins 4bdc6003db Merge "Clean up ShellTest unit tests" 2017-06-14 16:17:34 +00:00
Jenkins c45bb4dfc7 Merge "Error out if nic auto or none are not alone" 2017-06-14 14:16:21 +00:00
Jenkins 2975ac09ec Merge "strip the remote prefixes from the release note branch specifiers" 2017-06-14 14:00:58 +00:00
Chris Friesen c496531435 Clean up ShellTest unit tests
Convert all the individual tests to use the common mocked client
that is defined in setUp().  This simplifies the individual tests
and lays the groundwork for supporting specifying the API version
in the mocked client since it'll be needed in a future commit.

Change-Id: I4c0722296d3b1997eed878e5b90198f8982157d1
2017-06-14 13:11:28 +00:00
Takashi NATSUME 264c22a9cc Fix setting 'global_request_id' in SessionClient
In Ic75be3acb8b77aae8da631e3c4cd6f545a9a35cb,
'global_request_id' is set
in the constructor of class keystoneauth1.adaptor.Adapter.

But 'global_request_id' was not passed to the constructor,
'global_request_id' was cleared.
It caused the test failure.

It is not necessary to set 'global_request_id'
in the constructor of class SessionClient
and just passing 'global_request_id' in kwargs
is required.

Change-Id: Id587e35c221fe2b11889469f88557d254125ea7e
Closes-Bug: #1697358
2017-06-13 12:15:39 -04:00
Jenkins e62d1e50b7 Merge "Better handle key=value pair not being key=value" 2017-06-08 15:56:28 +00:00
Jenkins 7585703978 Merge "Updated from global requirements" 2017-06-07 14:39:40 +00:00
OpenStack Proposal Bot 4b0c5e4a28 Updated from global requirements
Change-Id: I6b0a4cbb93ee0ec3a8d69990b2ae261c1786b50e
2017-06-07 11:59:58 +00:00
Matt Riedemann a8d4cec28e Prevent 2.32 release note from showing up in 9.0.0 release notes
The release note for the 2.32 microversion support was originally
added in the Newton release and tagged on 5.0.0:

7fb0bd4f35

Then it was modified on master (pike) with change:

aa7f35d76b

That makes reno think that it's a new unreleased release note,
which makes it show up in the unreleased notes which are going
to eventually be the release notes for the 9.0.0 release. This
is wrong and confusing since 2.32 support happened in 5.0.0 not
9.0.0.

Reverting the typo change doesn't help since reno is still picking
up the release note from that change in the git history. The only
way to remove the release note from being processed on the current
branch (master) is to delete it. The note would still be available
in stable/ocata and stable/newton branches.

Change-Id: Ie6e9b930ff49621244df286d8f1d2cedffa2ff11
2017-06-07 11:22:21 +00:00
Matt Riedemann c055f15133 Skip rebuild functional test due to persistent vif plugging timeout
The test_rebuild functional test has been failing at a very high rate
lately, above 50%, so it's blocking other changes from getting in.

This change skips the test due to the bug until the bug is fixed
but we need to unblock other changes.

Change-Id: Ib5f6474f642c4fa14d82349c47d51009e9341045
Related-Bug: #1694371
2017-06-06 21:47:14 -04:00
Jenkins a12dcfb046 Merge "client.logger.warning wrongly used in migrations" 2017-06-06 07:51:22 +00:00
Doug Hellmann e996906718 strip the remote prefixes from the release note branch specifiers
Change-Id: I3f0403497a8a5e06f45f4b01df808c4306085915
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-05 14:14:00 -04:00
Chris Friesen 2cb8d85781 2.46: match nova API version
This just bumps API_MAX_VERSION to match nova.  In this microversion nova
just adds a new header to the response, no client changes are needed.

Change-Id: I4c9a37c2a6f79388259032ba90c328d195051f94
2017-06-02 13:31:00 -06:00