Project

Profile

Help

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

bmbouter, 10/24/2017 06:20 PM
Posting results of the "Orphans (content / artifacts / publications)" MVP call

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 autheticated user, I can invalidate a user's JWTs in the same operation as updating the password. \[done\]
41 45 bmbouter
42 59 bmbouter
As an un-authenticated user, I can obtain a JWT token by using a username and password. \[done\]
43 1 bmbouter
44
## Repositories
45
46 18 dkliban@redhat.com
As an authenticated user, I can list all repos.
47
48 60 bmbouter
  - All fields are included \[done\]
49
  - Pagination is supported \[done\]
50 61 mhrivnak
  - <span style="color:orange;">Filtering support</span>
51 18 dkliban@redhat.com
52
As an authenticated user, I can CRUD a repository
53
54 60 bmbouter
  - Create a repo \[done\]
55
  - Read a repo \[done\]
56
  - Update all mutable repo fields \[done\]
57
  - Delete a repo (asynchronous) \[done\]
58 18 dkliban@redhat.com
59
As an authenticated user, I can list a repository's associated importers and publishers
60
61 60 bmbouter
  - All fields are included \[done\]
62
  - Pagination is supported \[done\]
63 1 bmbouter
64 62 mhrivnak
<span style="color:orange;">As an authenticated user, I can see the number of content unit types with counts for each</span>
65 18 dkliban@redhat.com
66 51 bmbouter
## Importers
67
68
note: Importer attributes will commonly be available on importers, but aren't guaranteed to be used by all importers.
69
70 18 dkliban@redhat.com
As an authenticated user, I can CRUD an importer
71
72
  - Create an importer
73
  - Read an importer
74
  - Update all mutable importer fields
75 21 bmbouter
  - Delete an importer (asynchronous)
76 18 dkliban@redhat.com
77 64 mhrivnak
As an authenticated user I can configure the following attributes on an Importer: \[done\]
78 47 bmbouter
79 48 amacdona@redhat.com
  - validate (bool) \[optional: defaults to True\]: If true, the plugin will validate imported content.
80
  - ssl_ca_certificate (str) \[optional\] String containing a PEM encoded CA certificate used to validate the server certificate presented by the external source.
81
  - ssl_client_certificate (str) \[optional\] Contains a PEM encoded client certificate used for authentication.
82
  - ssl_client_key (str) \[optional\] Contains a PEM encoded private key used for authentication.
83
  - ssl_validation (bool) \[optional: defaults to True\]: If true, SSL peer validation must be performed.
84 65 mhrivnak
  - proxy_url (str) \[optional\] Contains the proxy URL. Format: scheme://user:password@host:port.
85 48 amacdona@redhat.com
  - username (str) \[optional\] Contains the username to be used for authentication when syncing.
86 1 bmbouter
  - password (str) \[optional\] Contains the password to be used for authentication when syncing.
87 63 mhrivnak
  - <span style="color:orange;">download_policy (str) \[optional\] Contains the downloading policy name. This is a choice of three options:  
88
 \- immediate (default) - Downloading occurs during sync. The sync task does not complete until downloading is done.  
89
 \- background - Downloading is started by the sync but occurs in the background. The sync task completes before downloading is complete.  
90
 \- 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>
91 1 bmbouter
  - feed_url (str) \[optional\] Contains the URL of an external content source. This is optional.
92 63 mhrivnak
  - <span style="color:orange;">sync mode: (str) \[optional\]. It has two choices 'additive' and 'mirror':  
93
 \- additive (default) - all remote content is added to the local repository on sync. During sync no content is removed from the local repository.  
94
 \- mirror - the local content will mirror the remote content exactly, removing local content if not also present in the remote content.</span>
95 50 bmbouter
  - name (str) \[required\] Contains the name.
96
  - last_updated (datetime) \[read-only\] Contains the datetime of the last importer update.
97 53 bmbouter
  - last_synced (datetime) \[read-only\] Contains the datetime of the last importer sync.
98 51 bmbouter
99 52 bmbouter
## Publishers
100 51 bmbouter
101
note: Publisher attributes will commonly be available on publishers, but aren't guaranteed to be used by all publishers.
102 47 bmbouter
103 18 dkliban@redhat.com
As an authenticated user, I can CRUD a publisher
104
105
  - Create a publisher
106
  - Read a publisher
107 1 bmbouter
  - Update all mutable publisher fields
108
  - Delete a publisher (asynchronous)
109 50 bmbouter
110
As an authenticated user I can configure the following attributes on a Publisher:
111
112
  - relative_path (str) \[optional\] The (relative) path component of the published url.
113
  - name - (str) \[required\] contains the name.
114
  - last_published (datetime) \[read-only\] When the last successful publish occurred.
115
  - last_updated (datetime) \[read-only\] The datetime of the last publisher update.
116 56 ttereshc
  - <span style="color:red;">auto_publish(bool) - ??? consider adding auto-publish feature to MVP</span>
117 1 bmbouter
118 72 mhrivnak
## Sync and Publish
119 1 bmbouter
120 66 mhrivnak
As an authenticated user, I can trigger an importer to sync. \[done\]
121 19 bmbouter
122
  - I can follow the progress of all syncs. (Syncs are asynchronous.)
123
  - I cannot pass "sync" options.
124
  - Auto-publish is not included as an importer property.
125
126 66 mhrivnak
As an authenticated user, I can trigger a publisher to publish. \[done\]
127 19 bmbouter
128
  - I can follow the progress of all publishes. (Publishes are asynchronous.)
129
  - I cannot pass "publish" options.
130
131 71 mhrivnak
## Content Manipulation
132 25 bmbouter
133 73 mhrivnak
#### Uploading Artifacts
134 32 bmbouter
135 67 mhrivnak
As an authenticated user, I can create an Artifact by uploading a file. \[done\]
136 30 bmbouter
137 68 mhrivnak
As an authenticated user, I can specify a size and/or digest to validate the uploaded file. \[done\]
138
139 71 mhrivnak
#### Creating Content Units
140 35 bmbouter
141 70 mhrivnak
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\]
142 1 bmbouter
143 95 bmbouter
#### Move / Copy
144 29 bmbouter
145 73 mhrivnak
<span style="color:red;">As an authenticated user, I can add and remove one or more units to and from a destination repo.</span>
146 1 bmbouter
147
  - <span style="color:red;">Filtering support for specifying the unit(s)</span>
148 73 mhrivnak
  - <span style="color:red;">I can follow the progress. (adding and removing are asynchronous).</span>
149 71 mhrivnak
150 95 bmbouter
#### Delete
151 1 bmbouter
152 95 bmbouter
<span style="color:red;">As an authenticated user, I can delete a specific content unit</span>  
153
<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>  
154
<span style="color:red;">\* Artifacts and associated files from the deleted unit are cleaned up</span>
155
156
<span style="color:red;">As an authenticated user, I can delete multiple content units with filtering</span>  
157
<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>  
158
<span style="color:red;">\* Artifacts and associated files from deleted units are cleaned up</span>
159
160 74 mhrivnak
## <span style="color:red;">Versioned Repositories</span>
161 1 bmbouter
162 40 bmbouter
As an authenticated user, I can list the content in a particular repository version
163
164
  - All fields are included
165
  - Pagination is supported
166
  - <span style="color:red;">Filtering support</span>
167
168
As an authenticated user, I can discover a URL to the latest version of a repository  
169
<span class="resource repository the on attributes or endpoint, API dedicated a through \^ Is" style="color:red;"></span>
170 1 bmbouter
171 43 bmbouter
As an authenticated user, I can run a publisher without a repository version and have it default to the latest version.
172
173 1 bmbouter
<span style="color:red;">As an authenticated user, I can delete a repository version by specifying the version</span>
174
175 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>
176
177 95 bmbouter
## Orphan Content Units and Artifacts
178 43 bmbouter
179 95 bmbouter
As an authenticated user, I can cause an action that cleans up **both** orphaned content units and orphaned artifacts.
180 43 bmbouter
181 95 bmbouter
  - I cannot specify the units specifically (all types).
182
  - I can follow the progress of all cleanups. (Cleanups are asynchronous.)
183 1 bmbouter
184 22 bmbouter
<span style="color:red;">As an authenticated user, I see all (orphans) units that are not in any repositories</span>
185
186
## Task Management
187
188 76 mhrivnak
As an authenticated user, I can list all tasks
189
190 22 bmbouter
  - <span style="color:orange;">Filtering support on \['state', 'id', 'group'\]</span>
191 76 mhrivnak
  - <span style="color:orange;">This does not include associated progress reports</span>
192 22 bmbouter
193
As an authenticated user, I can see a detail view for a specific task \[done\]
194
195
  - all attributes of a task
196 76 mhrivnak
  - all associated progress reports
197 1 bmbouter
198
As an authenticated user, I can cancel a task \[done\]
199
200 77 mhrivnak
  - don't dare to use the DELETE verb!
201
202 1 bmbouter
As an authenticated user, I can delete tasks.
203
204 78 mhrivnak
## Task Group
205 1 bmbouter
206
<span style="color:red;">I can view a summary of the status of all tasks in a group</span>
207
208 82 mhrivnak
## Status
209 1 bmbouter
210 82 mhrivnak
As an unauthenticated user I can view the status of Pulp workers, resource managers, and celerybeats. \[done\]
211 42 dkliban@redhat.com
212 80 mhrivnak
As an unauthenticated user I can view the status of the web server's connection to the database and message broker. \[done\]
213 46 bmbouter
214 28 bmbouter
As an unauthenticated user I can view the versions of core and each installed plugin.
215 1 bmbouter
216 83 mhrivnak
## Plugin API
217 1 bmbouter
218 83 mhrivnak
As a plugin writer, I have a plugin API that is semantically versioned at 0.x separate from the REST API \[done\]
219 28 bmbouter
220 83 mhrivnak
As a plugin writer, I can report progress with a message and state \[done\]
221 28 bmbouter
222 83 mhrivnak
As a plugin writer, I can report progress with an optional suffix \[done\]
223 28 bmbouter
224 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\]
225 28 bmbouter
226 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\]
227 28 bmbouter
228 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\]
229 28 bmbouter
230 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>
231 28 bmbouter
232 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>
233 28 bmbouter
234 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\]
235 28 bmbouter
236 83 mhrivnak
As a plugin writer, I can interact with and create Artifacts \[done\]
237 28 bmbouter
238 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\]
239 6 Ichimonji10
240 83 mhrivnak
As a plugin writer, I can use the plugin API to query content units/artifacts associated with a repository. \[done\]
241 1 bmbouter
242 8 Ichimonji10
As a plugin writer, I can add and remove content units to and from a repository. \[done\]
243
244 94 bizhang
## CLI
245 93 bizhang
246 1 bmbouter
We will use coreapi-cli to generate a one to one mapping of cli commands to rest api schema #3068  
247 26 bmbouter
<span style="color:orange;">We will have a wrapper for coreapi-cli. This wrapper will handle parallel progress reporting</span>
248
249
## Download API
250
251
As a plugin writer, I can download files via
252
253
  - http://
254
  - https://
255
  - file://
256 27 bmbouter
257
As a plugin writer, I can configure a downloader with:
258 26 bmbouter
259
  - Basic Auth
260
  - SSL Cert Client Auth
261
  - 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.
262
263
As a plugin writer, I can provide arbitrary behaviors for customized downloaders
264
265
  - For example token authentication in the docker plugin
266
267
As a plugin writer, I can have connection pooling/reuse
268
269
As a plugin writer, I have proxy settings
270
271
  - proxy url (containing basic auth info)
272
273
As a plugin writer, I can have great logs
274
275
As a user, I have documentation about how to use something for bandwidth limiting
276
277
As a plugin writer, I can configure the validation mechanisms used at download time
278
279
  - checksum validation - minimum (md5, sha1, sha256, sha512)
280
  - size validation
281
282
<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>
283
284
<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>
285
286
As a plugin writer I can configure mirror lists and rotate between the mirrors
287
288
  - round robin
289
  - nearest mirror support
290
291 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.
292 26 bmbouter
293 27 bmbouter
As a plugin writer I can manage the catalog by using ChangeSets
294 26 bmbouter
295
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.
296 1 bmbouter
297
As a plugin writer, I can fetch content myself (but I am not encouraged to do so) with code I write
298
299 56 ttereshc
As a plugin writer, I can CRUD content units
300 1 bmbouter
301 49 amacdona@redhat.com
## {color:red} Consumer Applicability
302
303 11 Ichimonji10
<span style="color:red;">Using consumer profiles and repo bindings I can compute applicability with 2.y parity  
304 49 amacdona@redhat.com
Performance needs to be awesome</span>
305 1 bmbouter
306 86 mhrivnak
<span style="color:red;">\_(Is the Pulp Consumer going away in Pulp 3? If so, is this section still appropriate?)\_</span>
307 36 bmbouter
308 86 mhrivnak
## Migrations only involving Pulp 3
309 1 bmbouter
310 87 mhrivnak
Users can run "pulp-manager migrate" to migrate the database and adjust state in other locations (filesystem, message broker, ...). \[done\]
311 1 bmbouter
312
## Web Server Integration
313
314
<span style="color:red;">The content app when deployed with Apache web server or nginx uses their respective features to serve files efficiently.</span>
315 87 mhrivnak
316 89 mhrivnak
## Glossary
317 88 mhrivnak
318 1 bmbouter
Repository - A named collection of content.
319
320 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.
321
322
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.
323 95 bmbouter
324
Orphan Content (unit): A content unit that is a member of 0 repositories
325
326
Orphan Artifact: An Artifact that is associated with 0 Content Units and 0 Publications