Project

Profile

Help

Pulp 3 Minimum Viable Product » History » Sprint/Milestone 52

bmbouter, 06/21/2017 03:53 AM

1 1 bmbouter
# Pulp 3.0.0 Minimum Viable Product (MVP)
2
3 21 bmbouter
<span style="color:red;">Lines highlighted in red need more attention.</span>
4 20 bmbouter
5 37 bmbouter
## Overall Guarantees
6
7 39 jortel@redhat.com
All REST API calls will update the DB using transactions as necessary to ensure data integrity.
8 37 bmbouter
9 1 bmbouter
## Authentication
10
11 17 semyers
As an authenticated user I can manage user(s).
12
13
  - Add a user
14
  - View user(s)
15
  - Update any user detail
16
  - Delete a user
17
18
As an API user, I can have documentation to generate a JSON Web Token (JWT) without the server being online.
19
20 45 bmbouter
<span style="color:red;">As an administrator, I can disable JWT token expiration. This configuration is in the settings file and is system-wide.</span>
21 1 bmbouter
22 45 bmbouter
<span style="color:red;">As an administrator, I can configure the JWT tokens to expire after a configurable amount of time. This configuration is in the settings file and is system-wide.</span>
23 1 bmbouter
24 45 bmbouter
<span style="color:red;">The JWT shall have a username identifier</span>
25 1 bmbouter
26 45 bmbouter
<span style="color:red;">As an API user, I can authenticate any API call (except to request a JWT) with a JWT.</span>
27 17 semyers
28 45 bmbouter
<span style="color:red;">As an API user, I can invalidate all existing JWT tokens for a given user.</span>
29 17 semyers
30 45 bmbouter
<span style="color:red;">As an authenticated user, when deleting a user 'foo', all of user 'foo's existing JWTs are invalidated.</span>
31 17 semyers
32 45 bmbouter
<span style="color:red;">As an autheticated user, I can invalidate a user's JWTs in the same operation as updating the password.</span>
33
34
<span style="color:red;">As an un-authenticated user, I can obtain a JWT token by using a username and password.</span>
35 1 bmbouter
36
## Repositories
37
38 18 dkliban@redhat.com
As an authenticated user, I can list all repos.
39
40
  - All fields are included
41
  - Pagination is supported
42 22 bmbouter
  - <span style="color:red;">Filtering support</span>
43 18 dkliban@redhat.com
44
As an authenticated user, I can CRUD a repository
45
46
  - Create a repo
47
  - Read a repo
48
  - Update all mutable repo fields
49 21 bmbouter
  - Delete a repo (asynchronous)
50 18 dkliban@redhat.com
51
As an authenticated user, I can list a repository's associated importers and publishers
52
53
  - All fields are included
54
  - Pagination is supported
55 22 bmbouter
  - <span style="color:red;">Filtering support</span>
56 18 dkliban@redhat.com
57 20 bmbouter
<span style="color:red;">As an authenticated user, I can summarize content in a repo (including counts)</span>
58 18 dkliban@redhat.com
59 51 bmbouter
## Importers
60
61
note: Importer attributes will commonly be available on importers, but aren't guaranteed to be used by all importers.
62
63 18 dkliban@redhat.com
As an authenticated user, I can CRUD an importer
64
65
  - Create an importer
66
  - Read an importer
67
  - Update all mutable importer fields
68 21 bmbouter
  - Delete an importer (asynchronous)
69 18 dkliban@redhat.com
70 50 bmbouter
As an authenticated user I can configure the following attributes on an Importer:
71 47 bmbouter
72 48 amacdona@redhat.com
  - validate (bool) \[optional: defaults to True\]: If true, the plugin will validate imported content.
73
  - ssl_ca_certificate (str) \[optional\] String containing a PEM encoded CA certificate used to validate the server certificate presented by the external source.
74
  - ssl_client_certificate (str) \[optional\] Contains a PEM encoded client certificate used for authentication.
75
  - ssl_client_key (str) \[optional\] Contains a PEM encoded private key used for authentication.
76
  - ssl_validation (bool) \[optional: defaults to True\]: If true, SSL peer validation must be performed.
77
  - proxy_url (str) \[optional\] Contains the proxy URL. Format: scheme://user:password@host:port.
78
  - username (str) \[optional\] Contains the username to be used for authentication when syncing.
79 1 bmbouter
  - password (str) \[optional\] Contains the password to be used for authentication when syncing.
80 50 bmbouter
  - download_policy (str) \[optional\] Contains the downloading policy name. This is a choice of three options:  
81
    \- immediate (default) - Downloading occurs during sync. The sync task does not complete until downloading is done.  
82
    \- background - Downloading is started by the sync but occurs in the background. The sync task completes before downloading is complete.  
83
    \- on-demand - The sync task records everything that would be downloaded but does not download content. Downloading occurs on demand as driven by client requests for content.
84 1 bmbouter
  - feed_url (str) \[optional\] Contains the URL of an external content source. This is optional.
85 50 bmbouter
  - sync mode: (str) \[optional\]. It has two choices 'additive' and 'mirror':  
86
    \- additive (default) - all remote content is added to the local repository on sync. During sync no content is removed from the local repository.  
87
    \- mirror - the local content will mirror the remote content exactly, removing local content if not also present in the remote content.
88
  - name (str) \[required\] Contains the name.
89
  - last_updated (datetime) \[read-only\] Contains the datetime of the last importer update.
90 51 bmbouter
91 52 bmbouter
## Publishers
92 51 bmbouter
93
note: Publisher attributes will commonly be available on publishers, but aren't guaranteed to be used by all publishers.
94 47 bmbouter
95 18 dkliban@redhat.com
As an authenticated user, I can CRUD a publisher
96
97
  - Create a publisher
98
  - Read a publisher
99 1 bmbouter
  - Update all mutable publisher fields
100
  - Delete a publisher (asynchronous)
101 50 bmbouter
102
As an authenticated user I can configure the following attributes on a Publisher:
103
104
  - relative_path (str) \[optional\] The (relative) path component of the published url.
105
  - name - (str) \[required\] contains the name.
106
  - last_published (datetime) \[read-only\] When the last successful publish occurred.
107
  - last_updated (datetime) \[read-only\] The datetime of the last publisher update.
108 1 bmbouter
109
## Content Manipulation
110
111 19 bmbouter
As an authenticated user, I can trigger an importer to sync.
112
113
  - I can follow the progress of all syncs. (Syncs are asynchronous.)
114
  - I cannot pass "sync" options.
115
  - Auto-publish is not included as an importer property.
116
117
As an authenticated user, I can trigger a publisher to publish.
118
119
  - I can follow the progress of all publishes. (Publishes are asynchronous.)
120
  - I cannot pass "publish" options.
121
122 25 bmbouter
## Upload & Copy
123
124 32 bmbouter
#### Getting bits from the client to Pulp
125
126 35 bmbouter
As an authenticated user, I can request a file ID from the server to upload a file with
127 19 bmbouter
128 35 bmbouter
As an authenticated user, I can upload a file with the server provided file ID, an optional chunk size, and an optional offset.
129 19 bmbouter
130 35 bmbouter
As an authenticated user, I can rely on Pulp to auto-delete uploaded files after a configurable time. (Eg: 6 hours).
131 30 bmbouter
132 35 bmbouter
As a user, I can delete an uploaded file by file ID
133 30 bmbouter
134 1 bmbouter
#### Creating Artifacts and Content Units
135 35 bmbouter
136 29 bmbouter
As a user, I can reference a file ID at Artifact creation time.
137 1 bmbouter
138 37 bmbouter
As an authenticated user, I can create a content unit by providing the content type, its Artifacts using file upload IDs for each Artifact, and the metadata supplied in the POST body. This call is atomic, either all Artifacts and the content unit are created in the database and on the filesystem or none are.
139 31 bmbouter
140 1 bmbouter
As an authenticated user, I can reuse a file ID to create multiple Artifacts without uploading the file twice.
141
142 37 bmbouter
#### Unit Management / Copy
143 29 bmbouter
144 41 jortel@redhat.com
As an authenticated user, I can add and remove one or more units to and from a destination repo.
145 1 bmbouter
146
  - <span style="color:red;">Filtering support for specifying the unit(s)</span>
147 41 jortel@redhat.com
  - I can follow the progress. (adding and removing are asynchronous).
148 1 bmbouter
149
## Versioned Repositories
150
151 40 bmbouter
As an authenticated user, I can list the content in a particular repository version
152
153
  - All fields are included
154
  - Pagination is supported
155
  - <span style="color:red;">Filtering support</span>
156
157
As an authenticated user, I can discover a URL to the latest version of a repository  
158
<span class="resource repository the on attributes or endpoint, API dedicated a through \^ Is" style="color:red;"></span>
159
160
As an authenticated user, I can run a publisher without a repository version and have it default to the latest version.
161
162
<span style="color:red;">As an authenticated user, I can delete a repository version by specifying the version</span>
163
164
<span style="color:red;">As an authenticated user, I can upload multiple content(s?) and add create a single new version that adds all of them.</span>
165 1 bmbouter
166 20 bmbouter
## Orphans
167
168 43 bmbouter
<span style="color:red;">As an authenticated user, I can clean up orphaned content units</span>  
169 1 bmbouter
<span style="color:red;">\* I can follow the progress of all cleanups. (Cleanups are asynchronous.)</span>
170 43 bmbouter
171
<span style="color:red;">As an authenticated user, I can delete a specific content unit</span>  
172
<span style="color:red;">\* If the content unit is still in at least one repository the delete fails with a listing of all repositories the unit is part of.</span>  
173
<span style="color:red;">\* Artifacts and associated files from the deleted unit are cleaned up</span>
174
175
<span style="color:red;">As an authenticated user, I can delete multiple content units with filtering</span>  
176
<span style="color:red;">\* If a content unit is still in at least one repository the delete fails with a listing of all repositories the unit is part of.</span>  
177
<span style="color:red;">\* Artifacts and associated files from deleted units are cleaned up</span>
178
179
<span style="color:red;">As an authenticated user, I see all (orphans) units that are not in any repositories</span>
180 1 bmbouter
181
## Filter
182
183 44 bmbouter
<span style="color:red;">I can filter all nouns *(What is the meaning of "filter?" What is a noun?)*</span>
184 1 bmbouter
185 22 bmbouter
## Task Management
186
187
As an authenticated user, I can list all tasks
188
189
  - Filtering support on \['state', 'id', 'group'\]
190
  - This does not include associated progress reports
191
192
As an authenticated user, I can see a detail view for a specific task
193
194
  - all attributes of a task
195
  - all associated progress reports
196
197
As an authenticated user, I can cancel a task
198 1 bmbouter
199
  - don't dare to use the DELETE verb!
200
201
## Task Group
202
203
I can view a summary of the status of all tasks in a group
204
205
## Event Listener Notifier
206
207 12 Ichimonji10
I can receive serialized task info via AMQP on each task save
208
209 1 bmbouter
*Can this be restated in more pedantic terms? Does this mean that an arbitrary host can attach itself to Pulp's AMQP message bus and get updates on the progress of tasks?*
210
211
## Status
212
213 42 dkliban@redhat.com
As an unauthenticated user I can view the status of Pulp workers, resource managers, and celerybeats.
214 1 bmbouter
215 42 dkliban@redhat.com
As an unauthenticated user I can view the status of httpd's connection to the database and message broker.
216
217 46 bmbouter
<span style="color:red;">As an administrator, the WSGI app will not start if all migrations have not been applied</span>
218
219 28 bmbouter
## Plugin API
220 1 bmbouter
221 28 bmbouter
As a plugin writer, I have a plugin API that is semantically versioned at 0.x separate from the REST API
222 1 bmbouter
223 28 bmbouter
As a plugin writer, I can report progress with a message and state
224
225
As a plugin writer, I can report progress with an optional suffix
226
227
As a plugin writer, I can report progress with a total count of things to do an the current count of things done
228
229
As a plugin writer, non-fatal exceptions a on the Task and are included in the Task detail. non_fatal exceptions do not cause the Task to be marked as failed, but may be interpreted by the user as not fully successful.
230
231
As a plugin writer, the working directory is set before Task work is done and cleaned up afterwards. I should not need to interact with the file system outside of the working dir.
232
233
As a plugin writer, I can provide a subclassed Importer. The importer's responsibility is to synchronize the content of a Pulp repository with the content of a remote repository.
234
235
As a plugin writer, I can provide a subclassed Publisher. The publisher's responsibility is to publish content.
236
237
As a plugin writer, I can define unit types by subclassing Content models to provide concrete content unit types to be manged by the platform.
238
239
As a plugin writer, I can interact with and create Artifacts
240
241
As a plugin writer, my app will be discovered by Pulp's app via an entry point provided by the plugin writer
242
243
As a plugin writer, I can use the plugin API to query content units/artifacts associated with a repository.
244 6 Ichimonji10
245 41 jortel@redhat.com
As a plugin writer, I can add and remove content units to and from a repository.
246 1 bmbouter
247 8 Ichimonji10
## CLI
248
249 1 bmbouter
We will port what is there with as little effort as possible *(Does this mean that porting will be easy for developers, or that switching from the Pulp 2-3 CLI will be easy for users? If the former, isn't this an implementation detail that doesn't belong in an MVP document? If the latter, does this mean that we're going to carry forward the issues with pulp-admin, like a lack of status codes?)*
250
251
repo CRUD  
252
CRUD for importers  
253
CRUD for publishers  
254
trigger syncs  
255
trigger publish  
256
list content in a repo  
257
upload  
258 8 Ichimonji10
server status  
259
list and cancel tasks  
260 1 bmbouter
authn via basic auth  
261 24 bmbouter
*(Should the supported set of operations be stated in terms of "The capabilities listed in the 'Authenctication,' 'Repositories,' and 'Filter' sections will be supported by the CLI."?)*
262 1 bmbouter
263 26 bmbouter
## Download API
264
265
As a plugin writer, I can download files via
266
267
  - http://
268
  - https://
269
  - file://
270
271
As a plugin writer, I can configure a downloader with:
272 27 bmbouter
273
  - Basic Auth
274 26 bmbouter
  - SSL Cert Client Auth
275
  - Custom CAs will be configured via a "trust store" either on the system or similar. Pulp will not do anything to read/load/manage CAs directly.
276
277
As a plugin writer, I can provide arbitrary behaviors for customized downloaders
278
279
  - For example token authentication in the docker plugin
280
281
As a plugin writer, I can have connection pooling/reuse
282
283
As a plugin writer, I have proxy settings
284
285
  - proxy url (containing basic auth info)
286
287
As a plugin writer, I can have great logs
288
289
As a user, I have documentation about how to use something for bandwidth limiting
290
291
As a plugin writer, I can configure the validation mechanisms used at download time
292
293
  - checksum validation - minimum (md5, sha1, sha256, sha512)
294
  - size validation
295
296
<span style="color:red;">As a plugin writer, I expect units that are missing from the remote repository to not be created in Pulp when using the immediate download policy.</span>
297
298
<span style="color:red;">As a plugin writer, I expect units that are missing from the remote repository to be created in Pulp when using background or on_demand download policies.</span>
299
300
As a plugin writer I can configure mirror lists and rotate between the mirrors
301
302
  - round robin
303
  - nearest mirror support
304
305
As a plugin writer, the plugin API provides tooling whereby I can provide the content to be added and removed from the repository. This tooling supports both immediate and deferred downloading.
306
307 1 bmbouter
As a plugin writer I can manage the catalog by using ChangeSets
308 26 bmbouter
309 27 bmbouter
As a plugin writer, the plugin can participate in adding content for cases where the decision to add additional content is based content that has been downloaded.
310 26 bmbouter
311
As a plugin writer, I can fetch content myself (but I am not encouraged to do so) with code I write
312 1 bmbouter
313
As a plugin writer, I can CRUD content units
314
315 49 amacdona@redhat.com
## <span style="color:red;">Consumer Applicability</span>
316 1 bmbouter
317 49 amacdona@redhat.com
<span style="color:red;">Using consumer profiles and repo bindings I can compute applicability with 2.y parity  
318
Performance needs to be awesome</span>
319 11 Ichimonji10
320 49 amacdona@redhat.com
<span style="color:red;">\_(Is the Pulp Consumer going away in Pulp 3? If so, is this section still appropriate?)\_</span>
321 1 bmbouter
322
## Plugin compatibility
323
324
rpm will work with platform  
325
puppet will work with platform  
326
ostree will work with platform  
327
python will work with platform  
328
file_plugin will work with platform  
329
docker will work with platform
330
331
## Migrations
332 20 bmbouter
333
users can run an executable similar to pulp-manage-db that is not named pulp-manage-db *(Why the change in name?)*
334 36 bmbouter
335
<span style="color:red;">What about migrating fields that we don't use in 3.0 but will use in 3.1+. For example the auto-publish feature?</span>
336 1 bmbouter
337
## Glossary
338
339 39 jortel@redhat.com
Repository - A named collection of content.
340
341
Artifact - A file associated with one content (unit). Artifacts are not shared between content (units). Create a content unit using an uploaded file ID as the source for its metadata. Create Artifacts associated with the content unit using an uploaded file ID for each; commit as a single transaction.
342
343
Content (unit) - A single piece of content manged by Pulp. Each file associated with a content (unit) is called an Artifact. Each content (unit) may have zero or many Artifacts.