Commit Graph

3604 Commits

Author SHA1 Message Date
Tony Breeds a4f5e129ad 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: I4b316814b25f0f27367401f48d34404dc73804fb
2017-09-12 15:45:55 -06:00
Jenkins fa171bd3e9 Merge "Remoe obsolete apidocs" 2017-07-16 11:28:09 +00:00
Jenkins c60262f6b8 Merge "Updated from global requirements" 2017-07-16 04:01:17 +00:00
Doug Hellmann 9d39a42e3e move from oslosphinx to openstackdocstheme
Change-Id: I3089bda6683322f21addd2999ab193de3c070fe3
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-07-14 09:10:07 -05:00
Doug Hellmann 46c9b84d44 import content from cli-reference guide in openstack-manuals
Change-Id: Ie26dfefcdb684996050ce50ef17de5eeef69fc01
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-07-14 08:52:53 -05:00
Doug Hellmann 0e4e71f419 import admin-guide content from openstack-manuals
Change-Id: I8d3bd82b959ce1e44c212b692e2ce7343373b2c5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-07-14 08:48:44 -05:00
Doug Hellmann 0859794433 rearrange existing docs to fit the new standard layout
Refer to
https://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html
for details.

Change-Id: Icd7cca752c8b87eb4543f0307bbf6e7ae07194b5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-07-14 08:47:01 -05:00
OpenStack Proposal Bot 92e2029310 Updated from global requirements
Change-Id: I39a3891e016f4d8c1ee955c9670b3b11bead8988
2017-07-14 13:09:41 +00:00
Jenkins 3ec5f770a7 Merge "Trove:trove guide link" 2017-07-14 11:11:09 +00:00
Jenkins 2874d53ce1 Merge "Fix a exception error" 2017-07-11 15:29:44 +00:00
jiansong 37f6675bc5 Fix a exception error
For shrink, if not specified instance_id should throw
"Not instances specified for shrink operation."

Change-Id: I1aa48d9306873e50e6dd5bb54f624508faac97c6
2017-07-07 08:04:35 +00:00
Andreas Jaeger daee6f3fe6 Remoe obsolete apidocs
The integration directory contains the obsolete apidocs, remove them as
they are old and unused. There's a separate api-ref document instead.

Also, remove unneeded imported .gitignore file.

Change-Id: I4fefc99c03145a517e3b2f080b8e9173f46ebccf
2017-07-03 10:08:16 +02:00
Amrith Kumar 822dfcee19 When running in gate environment, don't start services
When running in the gate environment, there's no need to start
services. Also, it is harder to dertermine whether the services are
wsgi'ed or not and that has been causing intermittent gate failures.

Change-Id: Ibe6a96a9319becf2053d26180fb7e6835a4e3a97
2017-06-29 12:08:10 -04:00
Jenkins 7c258abb01 Merge "Trove user-delete API can use periods in user names in fact" 2017-06-17 15:46:10 +00:00
Jenkins 142f89d8f9 Merge "Removed instance reset_password from trove" 2017-06-17 15:10:29 +00:00
Jenkins a42496e68d Merge "Wrong comment symbol in configuration file" 2017-06-16 05:26:11 +00:00
Jenkins 1c848cc8be Merge "Improve list-of-ports validation" 2017-06-16 03:35:40 +00:00
Trevor McCasland 4a16721e07 TrivialFix: Update api-ref link
Currently the link in our developer documentation to our api-ref
is old. This updates it to the new one.

Change-Id: I68a36d4136422b823f2a71f3ea579896c7813c81
2017-06-15 14:32:25 -05:00
Jenkins 2983962fb7 Merge "Fix a few typos" 2017-06-15 07:17:50 +00:00
Jenkins 92d391fffc Merge "Fix some reST field lists in docstrings" 2017-06-15 06:41:52 +00:00
Jenkins 0dee0e6977 Merge "Log the right attached configuration id" 2017-06-15 04:42:01 +00:00
Jenkins 404a2f0322 Merge "Fix glance cli option" 2017-06-15 04:30:49 +00:00
Jenkins 378af0ef06 Merge "Fix user-list failed if host uses host_ip/netmask" 2017-06-15 03:46:32 +00:00
jiansong f6659e8045 Redis 'repl-backlog-size' conf parameter using wrong MIN value
Redis configuration validation for the 'repl-backlog-size' parameter
uses a wrong MIN value of '0'.When set to less than 16384 value,
I can see that the value in redis.conf[1], but through the
'config get *' see are 16384[2]. Because the minimum default value
in redis is 16384[3]. So I want to modify Min value to 16384.

[1]: repl-backlog-size 0
[2]: 59) "repl-backlog-size"
     60) "16384"
[3]:58f79e2ff4/src/server.h (L110)

Closes-Bug: #1697596
Change-Id: I81cb1c02943edf0af3d7bf67ff2f083a4c07d518
2017-06-14 08:26:54 -07:00
Jenkins 74200eb601 Merge "handle impending oslo.messaging deprecation" 2017-06-10 14:32:22 +00:00
Jenkins b269b78495 Merge "Handle isotime deprecation in oslo_utils.timeutils" 2017-06-10 13:46:57 +00:00
OpenStack Proposal Bot 6ff164b48e Updated from global requirements
Change-Id: Ib2f8f902b3b2be921510bd95c92fc0e997e1141f
2017-06-09 20:50:28 +00:00
Amrith Kumar 109ff94951 Handle isotime deprecation in oslo_utils.timeutils
oslo_utils.timeutils is deprecating isotime(). In reality they are
deprecating some other things as well but Trove doesn't (currently)
use any of those things.

Much has been written on the subject of this deprecation. I think the
proposal to merely replace isotime with datetime.datetime.isoformat()
is a little simplistic. Well intentioned, but nonetheless I believe
that it is simplistic.

The primary issue I could find with oslo_utils.timeutils.isotime() was
the fact that it was naive. I think it could well have been fixed in
oslo_utils but for whatever reason(s) oslo decided not to want to go
that route.

The primary challenge from Trove's perspective is that I want to
respect the existing API contract while at the same time get an
implementation of time handling that is not identical in its flaws
with oslo_utils.timeutils.isotime().

This change set attempts to address that by making
trove.common.timeutils.isotime() that is aware. It also implements a
utcnow_aware() function that is aware.

ISO 8601 allows for four representations of timezone and those are

<time>Z
<time>[+-]hh:mm
<time>[+-]hhmm
<time>[+-]hh

Trove conventionally used the first one, even if the time wasn't
really a UTC time. That's one of the things being fixed here.

In review cp16net asked whether this change removes the 'Z' at the end
of time strings generated by the isotime() function. The answer is
NO. The new isotime() function performs identical to the old and now
deprecated function in oslo_utils.timeutils for UTC (Z) times.

There was a utcnow() function in trove.common.utils which just wrapped
datetime.datetime.utcnow(). That has been moved now to
trove.common.timeutils with the other new time related functions.

There were a couple of places in Trove where code was using
datetime.now() which was not ideal. Those have been corrected now as
well.

Unit tests have been proposed for the new routines.

Closes-Bug: #1532120
Change-Id: Ic5abf6669edd4f1a9fd62e61f437565aa887aebe
2017-06-09 16:22:11 +00:00
OpenStack Proposal Bot 4a82920da3 Updated from global requirements
Change-Id: I18fb55e558d11beb135d049ed8fb941f4cdca8fd
2017-06-08 16:30:27 +00:00
OpenStack Proposal Bot fb870b306e Updated from global requirements
Change-Id: I6f1d1e967b7cb6993294f984c995051351a7fadd
2017-06-08 06:12:38 +00:00
Jenkins c5d5007d18 Merge "Handle log message interpolation by the logger in common/" 2017-06-07 06:22:57 +00:00
Jenkins ea9f8aec5c Merge "Handle log message interpolation by the logger part 8" 2017-06-07 05:56:02 +00:00
Jenkins 435ce7e85c Merge "Handle log message interpolation by the logger part 10" 2017-06-07 02:53:18 +00:00
Jenkins c9c6a951ee Merge "Remove usage of parameter enforce_type" 2017-06-07 02:53:14 +00:00
Jenkins 22d9154853 Merge "Handle log message interpolation by the logger part 9" 2017-06-07 02:53:02 +00:00
Jenkins c9b6127688 Merge "Handle log message interpolation by the logger part 11" 2017-06-07 02:52:55 +00:00
Jenkins 7a3ccd4beb Merge "Handle log message interpolation by the logger part 7" 2017-06-07 00:22:00 +00:00
Jenkins 2bf6c30055 Merge "Handle log message interpolation by the logger part 6" 2017-06-07 00:21:45 +00:00
Jenkins 15952b7f68 Merge "Handle log message interpolation by the logger part 5" 2017-06-07 00:21:38 +00:00
Jenkins 5d05c68e26 Merge "Handle log message interpolation by the logger in common/strategies/" 2017-06-06 21:36:12 +00:00
Gábor Antal 219d8f9dc4 Handle log message interpolation by the logger part 10
The following directories were fixed in this commit:
  - module/
  - quota/
  - taskmanager/

According to OpenStack Guideline[1], logged string message should be
interpolated by the logger.

[1]: http://docs.openstack.org/developer/oslo.i18n/guidelines.html#adding-variables-to-log-messages

Change-Id: Iabfb6e8caeae3afe057b77315f26f9fdcaffda54
Related-Bug: #1642552
2017-06-06 16:03:27 +02:00
Jenkins 96086da218 Merge "Update reno for stable/ocata" 2017-06-06 01:05:54 +00:00
Jenkins 3174b06183 Merge "Mask passwords in configuration-show" 2017-06-05 21:57:31 +00:00
zhanggang 650235435d Log the right attached configuration id
Method 'rolling_configuration_update' in trove/cluster/models.py.
It allow re-applying the same configuration to an instance.In if code
block, if the instance does not attach any configuration or it has
attached the configuration that the parameter passed, then do attach
thing. "else" block means the instance has attached another config,
should use "instance.configuration.id" instead of "configuration_id",
one is a attached configuration, one is a wanted configuration, and
they are not the same.
Besides, fix a spelling mistake in trove/instance/models.py

Change-Id: I4b6fb338de611ce39a8173dcf4b6e17714c380b9
Closes-Bug: 1693466
2017-06-01 21:53:15 -04:00
Trevor McCasland 91d443e06b Improve list-of-ports validation
List options tcp_ports and udp_ports are lists of strings and some
with a '-' in the middle to indicate a range. To help validate the
options better a new type was introduced to oslo.config called Range.

oslo.config version 3.18.0 merged this Range type which will no
longer require the following in our project:
    * utility function gen_ports because a Range of ints are returned
    * test to check for proper from-to format, the type is smart so
    it flips the numbers around for us. So 63000-300 returns
    Range(300, 63001) 63001 because inclusion=True is set by default.

Change-Id: I63b6a865a3f3c79202dd299f6cd25dd59e182252
Closes-Bug: #1500141
2017-06-01 13:36:02 -05:00
OpenStack Proposal Bot 321b38219c Updated from global requirements
Change-Id: Id6c203a23f3992a978730146e4ab4d28e43c3452
2017-05-31 16:47:47 +00:00
Matt Van Dijk f7d41c7b7c Mask passwords in configuration-show
Use the mask_dict_password util on the configuration view.

Change-Id: Ifbc2f317d217497ce6aad05423f5af7dc883721c
Closes-Bug: #1645792
2017-05-31 16:01:20 +00:00
Jenkins adff356315 Merge "Add port 16379 to conf.sample" 2017-05-31 15:23:15 +00:00
Gábor Antal ded64b45c6 Handle log message interpolation by the logger in common/
According to OpenStack Guideline[1], logged string message should be
interpolated by the logger.

[1]: http://docs.openstack.org/developer/oslo.i18n/guidelines.html#adding-variables-to-log-messages

Change-Id: I946422e662b5efc453bfe76f3631ece1716dbb4c
Related-Bug: #1642552
2017-05-31 11:37:25 +00:00
wangyao 4bfe5b58a1 Fix user-list failed if host uses host_ip/netmask
According bug exception trace this problem cause by host name validate .
The origin code use netaddr.IPAddress to validate host name, it just fit ip address,
so the ip/netmask style do not match this rule.To solve this problem,
I changed this method to netaddr.IPNetwork, which support ip and
ip/netmask. Also provide a test case to validate the method.

Change-Id: I8dad9d1496d09372698821b832d1baa4f0c35a0d
Closes-Bug: #1673874
2017-05-31 09:00:22 +08:00