11165 Commits

Author SHA1 Message Date
Zuul
7f92fdb729 Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-05-05 14:34:16 +00:00
Zuul
8f2a400208 Merge "Update worklist information for contributors" 2019-05-02 07:03:20 +00:00
Chris Dent
e9160abc20 Update worklist information for contributors
When the worklists were first created, cdent was unaware of
how to make the worklists filter by story state so a tag of
'fixed' was being used to indicate "done".

This change updates the docs to reflect new awareness. The
associated worklists have already been updated.

Change-Id: I445b67ff85be7979805d72ac953f0853ee738f46
2019-05-01 14:03:05 -06:00
Zuul
6137a69cbc Merge "Remind people to use postgresql-migrate-db.sh when migrating data" 2019-05-01 03:57:31 +00:00
Matt Riedemann
ae9bdbaa35 Remind people to use postgresql-migrate-db.sh when migrating data
The "Upgrading from Nova to Placement" doc mentions the
postgresql-migrate-db.sh script but within a big wall of
text and the rest of the examples in the guide are using
mysql, so people might miss the postgresql script which
could result in errors later if their sequence ids are
wrong.

This adds a note to serve as a reminder.

Change-Id: Id93531cc2d440b1adde1c0bd7c504f737b14012c
Story: #2005478
Task: #30568
2019-05-01 03:10:24 +00:00
caoyuan
a2513d8ea6 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I62921ef9ee51c391bbd2b4e39941df5b68a9a908
2019-04-29 13:06:10 +08:00
Ghanshyam Mann
da3e8795f3 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I5e4a9148c0e0649ff0e4657ea4c87e50c1b3fd2d
2019-04-22 23:12:02 +00:00
OpenDev Sysadmins
931a9e1242 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:41:22 +00:00
Chris Dent
1b5710db74 Add links to storyboard worklists to contributing.rst
These worklists exist but are not easily discoverable so
they need to be linked from somewhere. contributing.rst seemed
like the best place.

Change-Id: If74cf2f510441f500c2e13612f99631d56cf4bfe
2019-04-18 12:38:09 +01:00
Matt Riedemann
d921ad4bc8 api-ref: fix formatting in member_of param for 1.21
This fixes a formatting issue in the member_of 1.21 parameter
to the GET /allocation_candidates API reference.

Change-Id: I53289e98d76c22b220066b22de7f21552dc5378a
2019-04-12 12:07:22 -04:00
Chris Dent
c3a1aefefb Fix arg typos in contributing.rst
Review of changes to contributing.rst noticed an unrelated
typo in the arguments used in the examples for visual indent.

Change-Id: I2268fa6aa6c9272ffbb7b6d3b439539765197fed
2019-04-09 11:41:47 +01:00
Zuul
bb688d7aba Merge "Correct task status when a task is under review" 2019-04-09 10:29:09 +00:00
Zuul
8c223e95c2 Merge "Remove dead code" 2019-04-05 13:58:59 +00:00
Stephen Finucane
5d0daffaa1 Remove dead code
Far as I can tell, this has no users outside of a unit test and can
therefore be removed.

Change-Id: I844959d2a6cf956cb59a78fddbec5301fb9fdc4b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-04-04 14:44:49 +01:00
Chris Dent
3d29a4b7d8 Correct task status when a task is under review
"Progress" is the wrong state for a task that has been
submitted for review. The correct state is "Review".

Update contributing.rst to reflect this.

Change-Id: I221fc533ba86e82dc6f119ef20fc25a54a162f92
2019-04-02 14:57:57 +01:00
Tetsuro Nakamura
852294bd73 Rename api-ref parameters
Now in API reference, variable name `member_of` is used for
`GET /resource_providers` doc and `member_of_1_12` is used for
`GET /allocation_candidate` doc. However, since we also have
`member_of_granular` this can be confusing.

This patch renames as follows:
 - `member_of` -> `resource_providers_member_of`
 - `member_of_1_12` -> `allocation_candidates_member_of`
 - `member_of_granular` -> `allocation_candidates_member_of_granular`

No content is changed.

Change-Id: I3a8591d9ed76eed60e11d59cff77cfbf95796478
2019-04-02 13:51:43 +00:00
Tetsuro Nakamura
e6f234fe44 FUP on negative-aggregate-membership series
This is a follow up patch on negative-aggregate-membership series.

 - Remove allocation candidate related words in the
   `GET /resource_providers` API reference
 - Fix several typos in the API reference
 - Additionaly write in the release note that the forbidden aggregate
   is also supported in granular requests.

Change-Id: Idb187d7ef83ad65aaaa5dbf968a15c41d73057d1
2019-04-02 12:22:42 +00:00
Zuul
befebba68d Merge "Refactor aggregate _get_trees_matching_all()" 2019-04-03 19:59:10 +00:00
Zuul
10e8143195 Merge "Refactor ResourceProviderListTestCase" 2019-04-03 19:59:09 +00:00
Zuul
2c71b9fe5a Merge "Negative member_of query with microversion 1.32" 2019-04-03 19:59:05 +00:00
Zuul
9207d3d047 Merge "Prepare for negative member queryparam 2" 2019-04-03 19:45:32 +00:00
Takashi NATSUME
a427641759 Fix a broken link in a release note
Fix a broken link for microversion 1.31 in the stein prelude
release note(*).

*: https://docs.openstack.org/releasenotes/placement/stein.html#prelude

Change-Id: I06cfbc6f2cc3c231e77a4035e830b157f4001a05
Story: 2005337
Task: 30277
2019-04-02 10:52:46 +09:00
Tetsuro Nakamura
4040f8980f Refactor aggregate _get_trees_matching_all()
This patch refactors _get_trees_matching_all() not to
return orphaned resource provider due to aggregate filter.

Change-Id: I4d23ecdca67ca0864b24e25902df53c64e7329a7
2019-03-29 05:16:06 +00:00
Tetsuro Nakamura
1060123ae0 Refactor ResourceProviderListTestCase
Some tests in ResourceProviderListTestCase validated the number of
resource providers returned by p_obj.get_all_by_filters(), but didn't
validate if they are proper resource providers.

This patch adds that check adding a small test helper function,
_run_get_all_by_filters().

Change-Id: Id642d89c854744cbc2d36519004c87e9f2546269
2019-03-29 05:14:27 +00:00
Tetsuro Nakamura
0a3dcadb0a Negative member_of query with microversion 1.32
This patch adds microversion 1.32 supporting the forbidden aggregate
expression within existing ``member_of`` queryparam both in
``GET /resource_providers`` and in ``GET /allocation_candidates``.
Forbidden aggregates are prefixed with a ``!``.

We do NOT support ``!`` within the ``in:`` list:

  ?member_of=in:<agg1>,<agg2>,!<agg3>

but we support ``!in:`` prefix:

  ?member_of=!in:<agg1>,<agg2>,<agg3>

which is equivalent to:

  ?member_of=!<agg1>&member_of=!<agg2>&member_of=!<agg3>

where candidate resource providers must not be in agg1, agg2, or agg3.

Change-Id: Ibba7981744c71ab5d4d0ee5d5a40709c6a5c6b5e
Story: 2005297
Task: 30183
2019-03-29 05:14:27 +00:00
Tetsuro Nakamura
69a700041d Prepare for negative member queryparam 2
This patch prepares for supporting negative member_of queryparam
in DB layer changing the following function:

get_trees_matching_all():
    - used in GET /allocation_candidates for the case where the
      granular request is not specified and sharing provider or
      nested provider exists.

Change-Id: Iafa51cca86eb5a4b480c8296e2ee059ae2b69948
Story: 2005297
Task: 30183
2019-03-29 05:14:03 +00:00
Zuul
1436ca1ac0 Merge "Prepare for negative member_of queryparam" 2019-03-28 17:18:56 +00:00
Zuul
15e3e8c6c3 Merge "Spec: Support filtering by forbidden aggregates 2" 2019-03-28 17:09:11 +00:00
Zuul
f8089dfbec Merge "Spec: Support filtering by forbidden aggregates 1" 2019-03-28 17:09:06 +00:00
Zuul
1be6fab6f2 Merge "Fill in the Writing Code section of contributing.rst" 2019-03-28 17:09:00 +00:00
Zuul
087afea315 Merge "Fill in the New Features section of contributing.rst" 2019-03-28 17:08:56 +00:00
Zuul
e155061242 Merge "Fill in reviewing section of contributing.rst" 2019-03-28 15:59:07 +00:00
Zuul
f678512af3 Merge "Fill in the bugs section of contributing.rst" 2019-03-28 15:59:06 +00:00
Zuul
debb35668e Merge "Document alloc-candidates-in-tree" 2019-03-28 15:49:24 +00:00
Zuul
5d65cfdc5e Merge "Fix debug log getting allocation_candidates" 2019-03-28 15:49:24 +00:00
Zuul
21795f8927 Merge "Add link to case studies in alloc_cands api-ref" 2019-03-28 14:42:08 +00:00
Zuul
4794f125ed Merge "Add initial framing for a contributing doc" 2019-03-28 13:48:36 +00:00
Chris Dent
cc959d53de Fill in the Writing Code section of contributing.rst
Provide several rules and guidelines for constructing good
changes to submit to gerrit. This list can never be complete
but this gets us started. As with everything else, there's a
balance between being too prescriptive and not prescriptive
enough.

Change-Id: I30243e81ea8711296ce0884d93e985c6d2b5cefd
2019-03-28 12:22:33 +00:00
Chris Dent
73a585d7a5 Fill in the New Features section of contributing.rst
Write up general outlines on managing specs. As with the other
section, this avoids overloading the description with too many
details. As we discover gaps we can fill them in.

Change-Id: I2d980ea05be5067cd2c98919854cedeb438f6893
2019-03-28 12:12:05 +00:00
Chris Dent
aa1ca270f7 Fill in reviewing section of contributing.rst
This provides some links to more info about reviewing, and some
guidelines on how to be a good reviewer, with special
considerations for cores.

Not included is information on how a patch submitter should hassle
someone to get attention. With the low volume of patches that go
through placement, that should not be something the submitter should
have to care about. It's the job of regular reviewers to be aware
of new stuff. The guideline about latency covers that.

Change-Id: I61cf791c956a75304b87ffb4a16a8252fc36800b
2019-03-28 12:07:35 +00:00
Chris Dent
fcd99b3354 Fill in the bugs section of contributing.rst
For now just the very basics of how to create a good bug, what tags
to use, information to include, etc. And some encouraging words on
doing triage.

At this time no effort is made to describe a process for things like
"backport potential" or what release something is associated with.
We'll figure out that once, as a group, we have a better idea of what
StoryBoard can do for us. It is likely that a combination of tags
and tasks will be the order of the day.

Change-Id: Ie9e3a2c624357c846bf861ae6de39396a0fd958d
2019-03-28 11:58:30 +00:00
Tetsuro Nakamura
bf36ed6151 Fix debug log getting allocation_candidates
This patch fixes the debug log to display proper numbers of found
resource provider trees.

Change-Id: I7c8d917393a3f86bc974ad4b91249f8eb6e4e2e6
2019-03-28 09:41:29 +00:00
Zuul
814fdcc2da Merge "Remove fake resource class from fake_ensure_cache" 2019-03-27 21:17:17 +00:00
Eric Fried
0cbf2635a3 Remove fake resource class from fake_ensure_cache
Following up on [1], it turns out the resource class name and ID values
set up in fake_ensure_cache weren't being used anywhere, so they're
hereby removed.

[1] https://review.openstack.org/#/c/640406/4/placement/tests/unit/objects/base.py@30

Change-Id: I603daae9a8773184f5fd5d39be2cfcc1c4cb70fb
2019-03-26 17:58:43 -05:00
Eric Fried
3752f045d7 s/rc_cache.ensure_rc_cache/rc_cache.ensure/
Following up on [1], this commit renames the `ensure_rc_cache` method to
just `ensure` since it's already in the resource_class_cache module.

[1] https://review.openstack.org/#/c/640114/5/placement/resource_class_cache.py@26

Change-Id: Ibf9798a4ece89113818a53afc98375ecdb974bec
2019-03-26 17:50:38 -05:00
Chris Dent
a83c5a4c82 Add initial framing for a contributing doc
We have contributor documentation, that explains placement
from within, but we don't have much in the way of docs that
explain how to make contributions and the guidelines for
how do it well. This patch is the first in a series that will
add that information.

This first patch simply creates an initial contributing page
with a light intro and titles for four initial sections.

Change-Id: Iea127a052a42ed5cc5349b89137381f782717af3
2019-03-26 20:26:45 +00:00
Zuul
e69366675a Merge "Remove use of oslo.i18n and translation" 2019-03-26 04:02:09 +00:00
Zuul
02fb9cf8c7 Merge "Initial structure for in-tree specs" 2019-03-25 23:24:32 +00:00
Chris Dent
da1a588b8d Remove use of oslo.i18n and translation
Nothing is being translated in placement so, for the sake of being clean
and tidy, this patch removes the framework for translation and the
import of oslo.i18n.

Originally the hope was we could remove the dependency on oslo.i18n and
Babel entirely to save some disk space but many other oslo-related libs
depend on oslo.i18n so they are present anyway. [1]

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-March/004220.html

Change-Id: Ia965d028b6f7c9f04d1f29beb12f4862585631d5
2019-03-25 16:59:21 +00:00
Ian Wienand
c99492cfc6 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I669e77c1cc1d626552939b8f65e093e7901ad754
2019-03-24 20:35:35 +00:00