Project

Profile

Help

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

amacdona@redhat.com, 11/17/2017 04:02 PM

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 57 mhrivnak
  - This is not a direct replacement for Pulp 2.
8
  - This is the minimum required for a 3.0.0 beta and GA.
9
  - All REST API calls will update the DB using transactions as necessary to ensure data integrity.
10 37 bmbouter
11 59 bmbouter
## Legend
12
13
\[done\] means merged and documented  
14
\[in-progress\] means started but not fully done  
15
If there is no label the effort has not yet been started
16
17 1 bmbouter
## Authentication
18
19 59 bmbouter
As an authenticated user I can manage user(s). \[done\]
20 17 semyers
21
  - Add a user
22
  - View user(s)
23 58 mhrivnak
  - Update any user detail
24 1 bmbouter
  - Delete a user
25
26 59 bmbouter
As an API user, I can have documentation to generate a JSON Web Token (JWT) without the server being online. \[done\]
27 1 bmbouter
28 59 bmbouter
As an administrator, I can disable JWT token expiration. This configuration is in the settings file and is system-wide. \[done\]
29 1 bmbouter
30 59 bmbouter
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. \[done\]
31 1 bmbouter
32 59 bmbouter
The JWT shall have a username identifier \[done\]
33 1 bmbouter
34 59 bmbouter
<span style="color:red;">As an API user, I can authenticate any API call (except to request a JWT) with a JWT. (not certain if this should be the behavior) \[in progress\]</span>
35 17 semyers
36 59 bmbouter
As an API user, I can invalidate all existing JWT tokens for a given user. \[done\]
37 17 semyers
38 59 bmbouter
As an authenticated user, when deleting a user 'foo', all of user 'foo's existing JWTs are invalidated. \[done\]
39 17 semyers
40 59 bmbouter
As an un-authenticated user, I can obtain a JWT token by using a username and password. \[done\]
41 1 bmbouter
42
## Repositories
43
44 18 dkliban@redhat.com
As an authenticated user, I can list all repos.
45
46 60 bmbouter
  - All fields are included \[done\]
47
  - Pagination is supported \[done\]
48 1 bmbouter
49 109 amacdona@redhat.com
As a user I can use filters on Repositories list: \[[3079](https://pulp.plan.io/issues/3079)\]
50
51
  - id: (id_in_list) \# id equality is not necessary, v3/repositories/\<UUID\>/
52
  - name: (equality, name_in_list)
53
54 18 dkliban@redhat.com
As an authenticated user, I can CRUD a repository
55
56 60 bmbouter
  - Create a repo \[done\]
57
  - Read a repo \[done\]
58
  - Update all mutable repo fields \[done\]
59
  - Delete a repo (asynchronous) \[done\]
60 18 dkliban@redhat.com
61
As an authenticated user, I can list a repository's associated importers and publishers
62
63 60 bmbouter
  - All fields are included \[done\]
64
  - Pagination is supported \[done\]
65 1 bmbouter
66 104 bmbouter
As an authenticated user, I can see the number of content unit types with counts for each \[done\]\[[3059](https://pulp.plan.io/issues/3059)\]
67 18 dkliban@redhat.com
68 51 bmbouter
## Importers
69
70
note: Importer attributes will commonly be available on importers, but aren't guaranteed to be used by all importers.
71
72 18 dkliban@redhat.com
As an authenticated user, I can CRUD an importer
73
74
  - Create an importer
75
  - Read an importer
76
  - Update all mutable importer fields
77 21 bmbouter
  - Delete an importer (asynchronous)
78 1 bmbouter
79 109 amacdona@redhat.com
As a user I have filters on the Importer list: \[[3080](https://pulp.plan.io/issues/3080)\]
80
81
  - id: (id_in_list) \# id equality is not necessary, objects are referenced by id
82
  - name: (equality, name_in_list)
83
84 64 mhrivnak
As an authenticated user I can configure the following attributes on an Importer: \[done\]
85 47 bmbouter
86 48 amacdona@redhat.com
  - validate (bool) \[optional: defaults to True\]: If true, the plugin will validate imported content.
87
  - ssl_ca_certificate (str) \[optional\] String containing a PEM encoded CA certificate used to validate the server certificate presented by the external source.
88
  - ssl_client_certificate (str) \[optional\] Contains a PEM encoded client certificate used for authentication.
89
  - ssl_client_key (str) \[optional\] Contains a PEM encoded private key used for authentication.
90
  - ssl_validation (bool) \[optional: defaults to True\]: If true, SSL peer validation must be performed.
91 65 mhrivnak
  - proxy_url (str) \[optional\] Contains the proxy URL. Format: scheme://user:password@host:port.
92 48 amacdona@redhat.com
  - username (str) \[optional\] Contains the username to be used for authentication when syncing.
93 1 bmbouter
  - password (str) \[optional\] Contains the password to be used for authentication when syncing.
94 63 mhrivnak
  - <span style="color:orange;">download_policy (str) \[optional\] Contains the downloading policy name. This is a choice of three options:  
95
 \- immediate (default) - Downloading occurs during sync. The sync task does not complete until downloading is done.  
96
 \- background - Downloading is started by the sync but occurs in the background. The sync task completes before downloading is complete.  
97
 \- 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.</span>
98 1 bmbouter
  - feed_url (str) \[optional\] Contains the URL of an external content source. This is optional.
99 63 mhrivnak
  - <span style="color:orange;">sync mode: (str) \[optional\]. It has two choices 'additive' and 'mirror':  
100
 \- additive (default) - all remote content is added to the local repository on sync. During sync no content is removed from the local repository.  
101
 \- mirror - the local content will mirror the remote content exactly, removing local content if not also present in the remote content.</span>
102 50 bmbouter
  - name (str) \[required\] Contains the name.
103
  - last_updated (datetime) \[read-only\] Contains the datetime of the last importer update.
104 53 bmbouter
  - last_synced (datetime) \[read-only\] Contains the datetime of the last importer sync.
105 51 bmbouter
106 52 bmbouter
## Publishers
107 51 bmbouter
108
note: Publisher attributes will commonly be available on publishers, but aren't guaranteed to be used by all publishers.
109 47 bmbouter
110 18 dkliban@redhat.com
As an authenticated user, I can CRUD a publisher
111
112
  - Create a publisher
113 1 bmbouter
  - Read a publisher
114
  - Update all mutable publisher fields
115 50 bmbouter
  - Delete a publisher (asynchronous)
116 1 bmbouter
117 109 amacdona@redhat.com
As a user I have filters on the Publisher list: \[[3081](https://pulp.plan.io/issues/3081)\]
118
119
  - id: (id_in_list) \# id equality is not necessary, objects are referenced by id
120
  - name: (equality, name_in_list)
121
122 50 bmbouter
As an authenticated user I can configure the following attributes on a Publisher:
123
124 1 bmbouter
  - relative_path (str) \[optional\] The (relative) path component of the published url.
125 50 bmbouter
  - name - (str) \[required\] contains the name.
126 109 amacdona@redhat.com
  - last_published (datetime) \[read-only\] When the last successful publis%{color:red}h occurred.
127 50 bmbouter
  - last_updated (datetime) \[read-only\] The datetime of the last publisher update.
128 1 bmbouter
  - <span style="color:red;">auto_publish(bool) - ??? consider adding auto-publish feature to MVP</span>
129
130 109 amacdona@redhat.com
## <span style="color:red;">Distributions</span>
131
132
<span style="color:red;">As an authenticated user, I can CRUD Distributions:</span>  
133
{color:red} \* Create a Distribution  
134
{color:red} \* Read a Distribution  
135
{color:red} \* Update all mutable Distribution fields  
136
{color:red} \* Delete an Distribution (asynchronous?)
137
138
As a user I have filters on the Distribution list: \[[3082](https://pulp.plan.io/issues/3082)\]
139
140
  - id: (id_in_list) \# id equality is not necessary, objects are referenced by id
141
  - name: (equality, name_in_list) 
142
  - base_path: (equality, substring, base_path_in_list)
143
144
## <span style="color:red;">Publications</span>
145
146
{color:red} \* Read a Publication  
147
{color:red} \* List all Publications  
148
{color:red} \* Delete a Publication (asynchronous?)
149
150
{color:red} As a user, I have filters on the Publication list:  
151
{color:red} \* id: (id_in_list) \# id equality is not necessary, objects are referenced by id
152
153 72 mhrivnak
## Sync and Publish
154 1 bmbouter
155 66 mhrivnak
As an authenticated user, I can trigger an importer to sync. \[done\]
156 19 bmbouter
157
  - I can follow the progress of all syncs. (Syncs are asynchronous.)
158
  - I cannot pass "sync" options.
159
  - Auto-publish is not included as an importer property.
160
161 66 mhrivnak
As an authenticated user, I can trigger a publisher to publish. \[done\]
162 19 bmbouter
163
  - I can follow the progress of all publishes. (Publishes are asynchronous.)
164
  - I cannot pass "publish" options.
165
166 71 mhrivnak
## Content Manipulation
167 25 bmbouter
168 73 mhrivnak
#### Uploading Artifacts
169 32 bmbouter
170 67 mhrivnak
As an authenticated user, I can create an Artifact by uploading a file. \[done\]
171 30 bmbouter
172 68 mhrivnak
As an authenticated user, I can specify a size and/or digest to validate the uploaded file. \[done\]
173
174 71 mhrivnak
#### Creating Content Units
175 70 mhrivnak
176 1 bmbouter
As an authenticated user, I can create a content unit by providing the content type (in the URL), references to Artifacts, and the metadata supplied in the POST body. \[done\]
177 102 bmbouter
178 29 bmbouter
#### Add / Remove Content from a Repository
179 99 bmbouter
180 1 bmbouter
As a user I can add content (specific existing content) to a repository
181 99 bmbouter
182
  - I can specify one or more content units by id/href
183
  - I can follow the progress. (adding are asynchronous).
184
185
As a user I can remove specified content from a repository
186
187
  - I can specify one or more content units by id/href
188
  - I can follow the progress. (removing are asynchronous).
189 101 bmbouter
190 1 bmbouter
#### Simple Copy
191 101 bmbouter
192
As a user, I can search (synchronous call) a repository's content using filtering.
193
194
  - note: In a separate call (async), I can add this content to another repository. This is effectively a copy operation in two calls.
195
196
As an authenticated user, I can import all content from one repository into another repository in a single async call. (Clone use case)
197
198
  - I can follow the progress. (adding are asynchronous).
199
200
#### Complex Copy
201
202
As a plugin writer I can provide a rich search features with abitrary viewsets. e.g. depsolving, verisoning, etc
203
204
Examples of specific plugin use cases motivating the above general viewset
205
206
  - As an authenticated user, I can add an Errata from one repository to another repository along with packages mentioned in the Errata and all their dependencies that are present in the source repository.
207
  - As an authenticated user, I can add bunch of dependencies and store n versions back for each RPM.
208
  - As an authenticated user, I can use depsolving and versioning copy features together
209
  - As an authenticated user, I can copy a puppet module and all of it's dependencies from one repository to another. 
210 71 mhrivnak
  - As an authenticated user, I can depsolve units to be added to a destination repo based on an errata
211 1 bmbouter
212 95 bmbouter
#### Delete
213 1 bmbouter
214 109 amacdona@redhat.com
FAs an authenticated user, I can delete a specific content unit%  
215 95 bmbouter
<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>  
216
<span style="color:red;">\* Artifacts and associated files from the deleted unit are cleaned up</span>
217
218
<span style="color:red;">As an authenticated user, I can delete multiple content units with filtering</span>  
219
<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>  
220
<span style="color:red;">\* Artifacts and associated files from deleted units are cleaned up</span>
221
222 74 mhrivnak
## <span style="color:red;">Versioned Repositories</span>
223 1 bmbouter
224 40 bmbouter
As an authenticated user, I can list the content in a particular repository version
225
226
  - All fields are included
227
  - Pagination is supported
228
  - <span style="color:red;">Filtering support</span>
229
230
As an authenticated user, I can discover a URL to the latest version of a repository  
231
<span class="resource repository the on attributes or endpoint, API dedicated a through \^ Is" style="color:red;"></span>
232 1 bmbouter
233 43 bmbouter
As an authenticated user, I can run a publisher without a repository version and have it default to the latest version.
234
235 1 bmbouter
<span style="color:red;">As an authenticated user, I can delete a repository version by specifying the version</span>
236
237 43 bmbouter
<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>
238
239 95 bmbouter
## Orphan Content Units and Artifacts
240 43 bmbouter
241 95 bmbouter
As an authenticated user, I can cause an action that cleans up **both** orphaned content units and orphaned artifacts.
242 43 bmbouter
243 95 bmbouter
  - I cannot specify the units specifically (all types).
244
  - I can follow the progress of all cleanups. (Cleanups are asynchronous.)
245 1 bmbouter
246 22 bmbouter
## Task Management
247
248 76 mhrivnak
As an authenticated user, I can list all tasks
249
250 22 bmbouter
  - <span style="color:orange;">Filtering support on \['state', 'id', 'group'\]</span>
251 76 mhrivnak
  - <span style="color:orange;">This does not include associated progress reports</span>
252 22 bmbouter
253
As an authenticated user, I can see a detail view for a specific task \[done\]
254
255
  - all attributes of a task
256 76 mhrivnak
  - all associated progress reports
257 1 bmbouter
258
As an authenticated user, I can cancel a task \[done\]
259
260 77 mhrivnak
  - don't dare to use the DELETE verb!
261
262 1 bmbouter
As an authenticated user, I can delete tasks.
263
264 78 mhrivnak
## Task Group
265 1 bmbouter
266
<span style="color:red;">I can view a summary of the status of all tasks in a group</span>
267
268 82 mhrivnak
## Status
269 1 bmbouter
270 82 mhrivnak
As an unauthenticated user I can view the status of Pulp workers, resource managers, and celerybeats. \[done\]
271 42 dkliban@redhat.com
272 80 mhrivnak
As an unauthenticated user I can view the status of the web server's connection to the database and message broker. \[done\]
273 46 bmbouter
274 28 bmbouter
As an unauthenticated user I can view the versions of core and each installed plugin.
275 1 bmbouter
276 83 mhrivnak
## Plugin API
277 1 bmbouter
278 83 mhrivnak
As a plugin writer, I have a plugin API that is semantically versioned at 0.x separate from the REST API \[done\]
279 28 bmbouter
280 83 mhrivnak
As a plugin writer, I can report progress with a message and state \[done\]
281 28 bmbouter
282 83 mhrivnak
As a plugin writer, I can report progress with an optional suffix \[done\]
283 28 bmbouter
284 83 mhrivnak
As a plugin writer, I can report progress with a total count of things to do an the current count of things done \[done\]
285 28 bmbouter
286 83 mhrivnak
As a plugin writer, non-fatal exceptions 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. \[done\]
287 28 bmbouter
288 83 mhrivnak
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. \[done\]
289 28 bmbouter
290 84 bmbouter
<span style="color:red;">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. (a circular import problem needs to be discussed and may cause this to change) \[done\]</span>
291 28 bmbouter
292 83 mhrivnak
<span style="color:red;">As a plugin writer, I can provide a subclassed Publisher. The publisher's responsibility is to publish content. (a circular import problem needs to be discussed and may cause this to change) \[done\]</span>
293 28 bmbouter
294 83 mhrivnak
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. \[done\]
295 28 bmbouter
296 83 mhrivnak
As a plugin writer, I can interact with and create Artifacts \[done\]
297 28 bmbouter
298 83 mhrivnak
As a plugin writer, my app will be discovered by Pulp's app via an entry point provided by the plugin writer \[done\]
299 6 Ichimonji10
300 83 mhrivnak
As a plugin writer, I can use the plugin API to query content units/artifacts associated with a repository. \[done\]
301 1 bmbouter
302 8 Ichimonji10
As a plugin writer, I can add and remove content units to and from a repository. \[done\]
303
304 103 bmbouter
## Plugin Writer "live APIs"
305
306 106 bmbouter
As a plugin writer, I can provide a Live API with arbitrary views and viewsets.  
307
As a plugin writer, I have documentation on what URLs I should -not use for my views and viewsets
308
309 108 bmbouter
Here are some concrete use cases driving the very Live API use cases above:
310
311
~~~
312
# Concrete user use cases:
313
    As a user, I can use the puppet client to fetch content from Pulp using the Forge API
314
    As a user I can use the docker client to fetch content from Pulp using the Docker v1 API
315
    As a user I can use the docker client to fetch content from Pulp using the Docker v2 API
316
317
# Concrete plugin writer use cases
318
    As a puppet plugin developer, I can provide a viewset which handles the server side of the puppet Forge v3 API
319
    As a docker plugin developer, I can provide a viewset which handles the server side of the docker v1 API
320
    As a docker plugin developer, I can provide a viewset which handles the server side of the docker v2 API
321
~~~
322
323 106 bmbouter
## Deployment
324
325
As a user, I can deploy all Pulp webservices on one process
326
327 107 bmbouter
<span style="color:red;">As a user, I can deploy the Pulp REST API exclusively in one process</span>  
328
<span style="color:red;">As a user, I can deploy the Pulp content serving view exclusively in one process</span>  
329
<span style="color:red;">As a user, I can deploy the Pulp content serving view with reduced permissions.</span>  
330
<span style="color:red;">As a user, I can deploy a Plugin's Live API exclusively in one process.</span>
331 103 bmbouter
332 94 bizhang
## CLI
333 93 bizhang
334 1 bmbouter
We will use coreapi-cli to generate a one to one mapping of cli commands to rest api schema #3068  
335 26 bmbouter
<span style="color:orange;">We will have a wrapper for coreapi-cli. This wrapper will handle parallel progress reporting</span>
336
337
## Download API
338
339
As a plugin writer, I can download files via
340
341
  - http://
342
  - https://
343
  - file://
344 27 bmbouter
345
As a plugin writer, I can configure a downloader with:
346 26 bmbouter
347
  - Basic Auth
348
  - SSL Cert Client Auth
349
  - 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.
350
351
As a plugin writer, I can provide arbitrary behaviors for customized downloaders
352
353
  - For example token authentication in the docker plugin
354
355
As a plugin writer, I can have connection pooling/reuse
356
357
As a plugin writer, I have proxy settings
358
359
  - proxy url (containing basic auth info)
360
361
As a plugin writer, I can have great logs
362
363
As a user, I have documentation about how to use something for bandwidth limiting
364
365
As a plugin writer, I can configure the validation mechanisms used at download time
366
367
  - checksum validation - minimum (md5, sha1, sha256, sha512)
368
  - size validation
369
370
<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>
371
372
<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>
373
374
As a plugin writer I can configure mirror lists and rotate between the mirrors
375
376
  - round robin
377
  - nearest mirror support
378
379 1 bmbouter
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.
380 26 bmbouter
381 27 bmbouter
As a plugin writer I can manage the catalog by using ChangeSets
382 26 bmbouter
383
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.
384 1 bmbouter
385
As a plugin writer, I can fetch content myself (but I am not encouraged to do so) with code I write
386
387 56 ttereshc
As a plugin writer, I can CRUD content units
388 1 bmbouter
389 49 amacdona@redhat.com
## {color:red} Consumer Applicability
390
391 11 Ichimonji10
<span style="color:red;">Using consumer profiles and repo bindings I can compute applicability with 2.y parity  
392 49 amacdona@redhat.com
Performance needs to be awesome</span>
393 1 bmbouter
394 86 mhrivnak
<span style="color:red;">\_(Is the Pulp Consumer going away in Pulp 3? If so, is this section still appropriate?)\_</span>
395 36 bmbouter
396 86 mhrivnak
## Migrations only involving Pulp 3
397 1 bmbouter
398 87 mhrivnak
Users can run "pulp-manager migrate" to migrate the database and adjust state in other locations (filesystem, message broker, ...). \[done\]
399 1 bmbouter
400
## Web Server Integration
401
402 105 bmbouter
<span style="color:red;">As a user, I can have content efficiently served to me by Apache by Pulp using the X-SEND response headers \[[2914](https://pulp.plan.io/issues/2914)\]</span>  
403
<span style="color:red;">As a user, I can have content efficiently served to me by Nginx by Pulp using the X-Accel-Redirect response headers \[[2914](https://pulp.plan.io/issues/2914)\]</span>
404
405
<span style="color:red;">As a user, I can have an Ansible role to install Apache which enables Apache integration for Pulp and configures Apache to serve Pulp. \[[2921](https://pulp.plan.io/issues/2921)\]</span>  
406
<span style="color:red;">As a user, I can have an Ansible role to install Nginx which enables Nginx integration for Pulp and configures Nginx to serve Pulp. \[[2922](https://pulp.plan.io/issues/2922)\]</span>
407 87 mhrivnak
408 89 mhrivnak
## Glossary
409 88 mhrivnak
410 1 bmbouter
Repository - A named collection of content.
411
412 39 jortel@redhat.com
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.
413
414
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.
415 95 bmbouter
416
Orphan Content (unit): A content unit that is a member of 0 repositories
417
418
Orphan Artifact: An Artifact that is associated with 0 Content Units and 0 Publications
419 98 bmbouter
420
Add (Content Unit): An operation causing a repository to contain a content unit(s)
421
422
Remove (content unit): An operation causing a repository to not contain a content unit(s)