Commit Graph

492 Commits

Author SHA1 Message Date
Tony Breeds 7bca0815f8 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: Iabebb3bc357f071586ff49e6ee8ae65bc098e1a6
2017-09-12 16:08:15 -06:00
Jenkins 0aeed64bbb Merge "Update URLs in documents according to document migration" 2017-07-13 18:52:54 +00:00
Jenkins 276cff6a95 Merge "Improving cover testenv" 2017-07-13 11:22:10 +00:00
ChangBo Guo(gcb) fb177735ae Update URLs in documents according to document migration
Change-Id: I3c35d5046f8fecf091a12f87e522eefdebecef27
2017-07-13 10:17:21 +08:00
Akihiro Motoki a1598502bd rearrange existing documentation to fit the new standard layout
For more detail, see the doc migration spec:
http://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html
There is also the recent status of the work posted in the dev ML:
http://lists.openstack.org/pipermail/openstack-dev/2017-July/119221.html

Change-Id: I1e728fc0bc671150d826747010eb980176f0cc13
2017-07-11 14:11:12 +00:00
Akihiro Motoki 01443b8380 Switch from oslosphinx to openstackdocstheme
Change-Id: Ic1e2786783fa47f305f8a849d36648efe3e46ac4
2017-07-11 14:11:11 +00:00
Akihiro Motoki 8d0a5a7fea Enable warning-is-error in doc build
- Fix docstring warnings
- pbr warnerrors is no longer needed.

Change-Id: I70532d99f34023b5fcce4373b6456cae2fbb642a
2017-07-11 14:11:03 +00:00
Vipin Balachandran ad8274cb8f Use request_handler() for ExtensionManager APIs
Modifying find_extension() and register_extension() in vim_util
to use request_handler() in service module. Currently these
methods call vSphere APIs directly and hence suds web faults
are not translated.

Change-Id: Ic0ef099a3c94962bb6895473dcdf69e66112e482
Closes-bug: 1703478
2017-07-10 17:32:04 -07:00
Nguyen Van Trung 45c4ba26bb Improving cover testenv
- Add whitelist_externals envconfig setting
- Add percentage report to further analyze code-base

result:

Name                                Stmts   Miss Branch BrPart     Cover
------------------------------------------------------------------------
oslo_vmware/__init__.py                 0      0      0      0   100.00%
oslo_vmware/_i18n.py                    4      0      0      0   100.00%
oslo_vmware/api.py                    205      5     50      6    95.69%
oslo_vmware/common/__init__.py          0      0      0      0   100.00%
oslo_vmware/common/loopingcall.py      76      8     20      8    83.33%
oslo_vmware/constants.py                5      0      0      0   100.00%
oslo_vmware/exceptions.py             155     12     30      2    90.27%
oslo_vmware/image_transfer.py         117     23     22      4    77.70%
oslo_vmware/image_util.py               9      0      0      0   100.00%
oslo_vmware/objects/__init__.py         0      0      0      0   100.00%
oslo_vmware/objects/datacenter.py       9      0      4      0   100.00%
oslo_vmware/objects/datastore.py      172     18     56      8    87.72%
oslo_vmware/pbm.py                     94      8     20      0    92.98%
oslo_vmware/rw_handles.py             289     52     52     10    80.65%
oslo_vmware/service.py                239     14     88     12    90.21%
oslo_vmware/version.py                  2      2      0      0     0.00%
oslo_vmware/vim.py                     14      2      2      0    87.50%
oslo_vmware/vim_util.py               218      1     56     10    95.99%
------------------------------------------------------------------------
TOTAL                                1608    145    400     60    88.79%

Change-Id: Ib5dc6a9f0600f7399d0a773e8a78102bbbfd7893
2017-07-08 23:06:52 +07:00
Ngo Quoc Cuong c5aed4fe30 Add hacking rule to prevent log translations
Since we have removed log translations completely, we should also add
hacking rule to prevent future mistakes

Change-Id: I8df524e23ab072d198cbc256e8018671e5f32764
2017-07-03 02:47:10 -04:00
Jenkins 5b01c09e86 Merge "Make sure host in maintenance mode excluded from image upload" 2017-06-28 08:33:07 +00:00
OpenStack Proposal Bot c48eefee76 Updated from global requirements
Change-Id: I69f284a9592e16c2017455c140cdf3ad97c8e755
2017-06-27 12:20:43 +00:00
Radoslav Gerganov 49c5999903 Do not prune some special XML elements which are empty
There are some special elements like VirtualMachineEmptyProfileSpec
which are allowed to be empty and should not be pruned.

Change-Id: Icf09849083c5a83cf69ec3cb6216697870527096
2017-06-21 11:33:03 +03:00
OpenStack Proposal Bot e9578e13d0 Updated from global requirements
Change-Id: I5becceac18a491a667d607ecbc85de51c8ccee60
2017-06-10 21:47:14 +00:00
OpenStack Proposal Bot 7378218300 Updated from global requirements
Change-Id: I06cd7c45eab306f0e3e5c3f20ed8d0e597d60621
2017-06-02 22:05:49 +00:00
zhangdaolong 8862c9bc55 Wrong member variable name in class Datastore
Change-Id: Ib3ee33b3fa2d567df7852c960b03511537682966
2017-05-31 17:33:35 +08:00
Zhongcheng Lao 37f72b0db6 Make sure host in maintenance mode excluded from image upload
Currently when selecting host for image upload, hosts in maintenance
mode will also be included.

This commit adds a check for available hosts to make sure these
hosts excluded from the list.

Change-Id: I46e4a879245e4f9258178738da9920b34b65a187
2017-05-24 04:21:46 -07:00
OpenStack Proposal Bot 677ca7b6e9 Updated from global requirements
Change-Id: Ife42e7987ae9e194c680837efe0c595112ecd425
2017-05-23 11:58:25 +00:00
OpenStack Proposal Bot 4c1fded4b6 Updated from global requirements
Change-Id: I0e7b7603e9a654ba22459136293f0418d4ecee6e
2017-05-17 13:48:23 +00:00
OpenStack Proposal Bot 37c3d53d5b Updated from global requirements
Change-Id: If24b3b5f2c74b55e7f1a598788039256d891a0ae
2017-05-17 03:57:02 +00:00
OpenStack Proposal Bot f4cad40ad6 Updated from global requirements
Change-Id: Ie8470e3c3f19e814c148556910ea17813ddc122a
2017-05-15 00:53:19 +00:00
OpenStack Proposal Bot be31ad8b6b Updated from global requirements
Change-Id: I5cb78551b84786ee7287e2f239c61a22c2df787b
2017-04-12 04:20:29 +00:00
Jenkins 406512a787 Merge "Trivial: Remove testscenarios from test-requirements.txt" 2017-03-28 18:53:16 +00:00
ChangBo Guo(gcb) eadcdd3540 Trivial: Remove testscenarios from test-requirements.txt
We don't use testscenarios anywhere, need remove it.

Change-Id: Id664af4c8e5b5d8939230f6654a2d59a1e50c1e7
2017-03-28 23:33:05 +08:00
loooosy 89b4a8a1b9 Remove log translations
Log messages are no longer being translated. This removes all use of the
_LE, _LI, and _LW translation markers to simplify logging and to avoid
confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: Ib7bb69eac558fa157331f9cf0fb452e6053714a7
2017-03-24 07:24:50 +00:00
Jenkins d1524a48b5 Merge "Make the mock call in MemoryCacheTest forward-compatible" 2017-03-11 07:01:54 +00:00
OpenStack Proposal Bot 145b124f2d Updated from global requirements
Change-Id: I6ebe9d246da72fb4635675f08d3cdb3432f3e70c
2017-03-03 00:03:29 +00:00
ricolin 7f8f3f6b96 [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: Ibfea7ba6692ccf633ccd96a3c4dbb3d7328725a6
2017-03-02 18:18:05 +08:00
OpenStack Proposal Bot c3e96dbaa2 Updated from global requirements
Change-Id: Ie327ffe86da9726cfb29f7d4a9a97b0bda7485cb
2017-03-01 04:15:03 +00:00
Jenkins 26154eca0d Merge "Improve logging for task updates" 2017-02-27 14:34:06 +00:00
Javier Pena abad2ebdb1 Make the mock call in MemoryCacheTest forward-compatible
Previously, we were only mocking the call to
suds.reader.DocumentReader.download, and this call is removed in
later versions of suds-jurko (see
46f1501e66).

Updating the mock patch to work with both the current and
later version of suds-jurko.

Change-Id: Iaa0b68fd2ad0ef6934410bcf5bebf9957a63d11e
2017-02-13 12:24:12 +01:00
OpenStack Proposal Bot f7c0582c48 Updated from global requirements
Change-Id: I0bd97039f86e5f197ca435ab678074ea94cd7ab7
2017-02-11 17:50:47 +00:00
OpenStack Proposal Bot 0520c71ada Updated from global requirements
Change-Id: I59acc5b0ad4bcc9dbbe2290821292c78de4e263c
2017-02-10 05:58:07 +00:00
Vipin Balachandran f9c8241989 Improve unit test coverage
Adding unit tests for ServiceMessagePlugin.add_attribute_for_value()
to cover cases where node name is 'removeKey'.

Change-Id: I0f6f0bfe1b20258efe05932e6a1756a29d315767
2017-02-07 15:31:22 +05:30
Jenkins 6e4d16d911 Merge "Add in support for removeKey" 2017-02-07 09:32:35 +00:00
Jenkins f15613e71e Merge "pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz)" 2017-02-07 01:10:40 +00:00
Davanum Srinivas 7bc972c171 pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz)
We need to pass into VersionInfo what one would expect from running:
 setup.py --name

 Right now we pass in say oslo_context and pbr fails if there is no .git in
  the python source tree

  Closes-Bug: #1662266

Change-Id: I0e4e20a91b640c21f9ee008dc6cf4055d40bc4d5
2017-02-06 12:49:23 -05:00
Gary Kotton ab1b0b3306 Add in support for removeKey
When setting a removeKey the VC would return an error indicating that it
"Unable to determine type of Any". We need to update this to ensure that
the type set is a string or an integer. This is due to the fact that it
can be both.

Change-Id: I494a1d19341f30f22803a3fe6baf020a67ad6b08
2017-02-05 19:12:58 +00:00
Eric Brown 0d75328047 Use https for references to openstack.org
The openstack.org pages now support https and our references to
the site should by default be one signed by the organization.

Change-Id: Icea6f111373df87cb92d242811fb938efe4ee1a1
2017-01-30 14:13:49 -08:00
OpenStack Release Bot dfc15963f2 Update reno for stable/ocata
Change-Id: Ib0123a7120e3a7a0fa8d7c69ab17ef6678bacccd
2017-01-20 20:41:28 +00:00
Radoslav Gerganov ca17b7bd39 Fix setting the SOAP headers for remote calls.
We use SOAP headers to set 'opID' for all service calls and
'vcSessionCookie' for PBM service calls. Commit 6a6336 introduced
regression in setting the vcSessionCookie. This patch fixes this by
setting all headers in one place.

Change-Id: If9630a14d6275f30275825f1822f2cf9af2959a7
2017-01-13 13:08:54 +02:00
Eric Brown 99d23f8bfa Remove references to Python 3.4
Now that there exists only a gate job for Python 3.5 and not 3.4,
we should remove those references to the 3.4 that is untested.

Change-Id: I067d84b89167c5e84373cb0656348d3e7a573a45
2017-01-05 15:36:32 -08:00
OpenStack Proposal Bot e7e8c72262 Updated from global requirements
Change-Id: If690e166ee2f1cbec87281357a7ea35be573954e
2016-12-23 03:18:44 +00:00
Radoslav Gerganov c9357e8677 Remove some useless log messages
'Waiting for function _invoke_api to return' doesn't give any
information and only makes log files hard to read.

Also reduce logging when polling NFC leases.

Change-Id: I08653a0f529a186405695cbcfb9fc9018c93f856
2016-12-21 17:40:49 +02:00
Jenkins 9b7e1deb2c Merge "Add operation ID for remote calls" 2016-12-21 08:44:07 +00:00
Radoslav Gerganov 6a63362919 Add operation ID for remote calls
The operation ID is a random string which can be added in the SOAP
headers of the remote request. vCenter and ESX will append this opID to
every log message associated with the remote request. This allows
administrators to correlate log messages for particular operation across
different systems (OpenStack -> vCenter -> ESX).

There is also addition keyword argument 'skip_op_id' which allows
callers to disable logging the opID if set to True.

Example for correlating logs for CreateVM_Task on devstack, vCenter and
ESX: http://paste.openstack.org/show/592614/

Change-Id: I75cb71c7c58b4ee9cd36fc977eb2a18a911f161f
2016-12-20 17:46:49 +02:00
Vipin Balachandran a95530e97d Fix image meta-data update for Glance v2
This patch fixes the following issues with Glance v2 image meta-
data update:

* Glance v2 doesn't support updating image size. The size will
be set by the glance service and there is no need to update it.

* We need to convert the image version to string before update
because Glance v2 doesn't support integer values for properties.

This patch also deprecates the image version kwarg because it is
not used by VMware drivers.

Change-Id: I0da5958cbde8be2008ee00602e6e9561bf167bfd
Closes-bug: #1611288
2016-12-16 07:01:47 +00:00
Tony Breeds 0c3a089d10 Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove oslo.vmware.

Change-Id: I6d20d90191f5b0e9dce17affd7aca40081cf7cc7
2016-12-13 15:40:18 +11:00
OpenStack Proposal Bot a0650fbd4b Updated from global requirements
Change-Id: Icfea4b2d61fb8f86c90100bdd37b4c2b08e2bdcb
2016-12-02 05:12:37 +00:00
Jenkins e0fb3094f2 Merge "Files with no code must be left completely empty" 2016-11-29 15:08:41 +00:00