Pulp 3 Minimum Viable Product » History » Sprint/Milestone 122
jortel@redhat.com, 11/30/2017 05:10 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 | 110 | daviddavis | As an authenticated user, I can filter users by: \[[3142](https://pulp.plan.io/issues/3142)\] |
43 | |||
44 | - username: (equality, username_in_list) |
||
45 | |||
46 | 1 | bmbouter | ## Repositories |
47 | |||
48 | 18 | dkliban@redhat.com | As an authenticated user, I can list all repos. |
49 | |||
50 | 60 | bmbouter | - All fields are included \[done\] |
51 | - Pagination is supported \[done\] |
||
52 | 1 | bmbouter | |
53 | 112 | bmbouter | As an authenticated user I can use filters on Repositories list: \[[3079](https://pulp.plan.io/issues/3079)\] |
54 | 109 | amacdona@redhat.com | |
55 | - id: (id_in_list) \# id equality is not necessary, v3/repositories/\<UUID\>/ |
||
56 | - name: (equality, name_in_list) |
||
57 | |||
58 | 18 | dkliban@redhat.com | As an authenticated user, I can CRUD a repository |
59 | |||
60 | 60 | bmbouter | - Create a repo \[done\] |
61 | - Read a repo \[done\] |
||
62 | - Update all mutable repo fields \[done\] |
||
63 | - Delete a repo (asynchronous) \[done\] |
||
64 | 1 | bmbouter | |
65 | 112 | bmbouter | As an authenticated user, I can view content for a repository. |
66 | |||
67 | 18 | dkliban@redhat.com | As an authenticated user, I can list a repository's associated importers and publishers |
68 | |||
69 | 60 | bmbouter | - All fields are included \[done\] |
70 | - Pagination is supported \[done\] |
||
71 | 1 | bmbouter | |
72 | 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)\] |
73 | 18 | dkliban@redhat.com | |
74 | 51 | bmbouter | ## Importers |
75 | |||
76 | note: Importer attributes will commonly be available on importers, but aren't guaranteed to be used by all importers. |
||
77 | |||
78 | 18 | dkliban@redhat.com | As an authenticated user, I can CRUD an importer |
79 | |||
80 | - Create an importer |
||
81 | - Read an importer |
||
82 | - Update all mutable importer fields |
||
83 | 21 | bmbouter | - Delete an importer (asynchronous) |
84 | 1 | bmbouter | |
85 | 113 | bmbouter | As an authenticated user, I have filters on the Importer list: \[[3080](https://pulp.plan.io/issues/3080)\] |
86 | 109 | amacdona@redhat.com | |
87 | - id: (id_in_list) \# id equality is not necessary, objects are referenced by id |
||
88 | - name: (equality, name_in_list) |
||
89 | |||
90 | 64 | mhrivnak | As an authenticated user I can configure the following attributes on an Importer: \[done\] |
91 | 47 | bmbouter | |
92 | 48 | amacdona@redhat.com | - validate (bool) \[optional: defaults to True\]: If true, the plugin will validate imported content. |
93 | - ssl_ca_certificate (str) \[optional\] String containing a PEM encoded CA certificate used to validate the server certificate presented by the external source. |
||
94 | - ssl_client_certificate (str) \[optional\] Contains a PEM encoded client certificate used for authentication. |
||
95 | - ssl_client_key (str) \[optional\] Contains a PEM encoded private key used for authentication. |
||
96 | - ssl_validation (bool) \[optional: defaults to True\]: If true, SSL peer validation must be performed. |
||
97 | 65 | mhrivnak | - proxy_url (str) \[optional\] Contains the proxy URL. Format: scheme://user:password@host:port. |
98 | 48 | amacdona@redhat.com | - username (str) \[optional\] Contains the username to be used for authentication when syncing. |
99 | 1 | bmbouter | - password (str) \[optional\] Contains the password to be used for authentication when syncing. |
100 | 63 | mhrivnak | - <span style="color:orange;">download_policy (str) \[optional\] Contains the downloading policy name. This is a choice of three options: |
101 | \- immediate (default) - Downloading occurs during sync. The sync task does not complete until downloading is done. |
||
102 | \- background - Downloading is started by the sync but occurs in the background. The sync task completes before downloading is complete. |
||
103 | \- 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> |
||
104 | 1 | bmbouter | - feed_url (str) \[optional\] Contains the URL of an external content source. This is optional. |
105 | 63 | mhrivnak | - <span style="color:orange;">sync mode: (str) \[optional\]. It has two choices 'additive' and 'mirror': |
106 | \- additive (default) - all remote content is added to the local repository on sync. During sync no content is removed from the local repository. |
||
107 | \- mirror - the local content will mirror the remote content exactly, removing local content if not also present in the remote content.</span> |
||
108 | 50 | bmbouter | - name (str) \[required\] Contains the name. |
109 | - last_updated (datetime) \[read-only\] Contains the datetime of the last importer update. |
||
110 | 53 | bmbouter | - last_synced (datetime) \[read-only\] Contains the datetime of the last importer sync. |
111 | 51 | bmbouter | |
112 | 52 | bmbouter | ## Publishers |
113 | 51 | bmbouter | |
114 | note: Publisher attributes will commonly be available on publishers, but aren't guaranteed to be used by all publishers. |
||
115 | 47 | bmbouter | |
116 | 18 | dkliban@redhat.com | As an authenticated user, I can CRUD a publisher |
117 | |||
118 | - Create a publisher |
||
119 | 1 | bmbouter | - Read a publisher |
120 | - Update all mutable publisher fields |
||
121 | 50 | bmbouter | - Delete a publisher (asynchronous) |
122 | 1 | bmbouter | |
123 | 113 | bmbouter | As an authenticated user, I have filters on the Publisher list: \[[3081](https://pulp.plan.io/issues/3081)\] |
124 | 109 | amacdona@redhat.com | |
125 | - id: (id_in_list) \# id equality is not necessary, objects are referenced by id |
||
126 | - name: (equality, name_in_list) |
||
127 | |||
128 | 50 | bmbouter | As an authenticated user I can configure the following attributes on a Publisher: |
129 | |||
130 | 1 | bmbouter | - relative_path (str) \[optional\] The (relative) path component of the published url. |
131 | 50 | bmbouter | - name - (str) \[required\] contains the name. |
132 | 109 | amacdona@redhat.com | - last_published (datetime) \[read-only\] When the last successful publis%{color:red}h occurred. |
133 | 50 | bmbouter | - last_updated (datetime) \[read-only\] The datetime of the last publisher update. |
134 | 1 | bmbouter | - <span style="color:red;">auto_publish(bool) - ??? consider adding auto-publish feature to MVP</span> |
135 | |||
136 | 109 | amacdona@redhat.com | ## <span style="color:red;">Distributions</span> |
137 | |||
138 | <span style="color:red;">As an authenticated user, I can CRUD Distributions:</span> |
||
139 | {color:red} \* Create a Distribution |
||
140 | {color:red} \* Read a Distribution |
||
141 | {color:red} \* Update all mutable Distribution fields |
||
142 | {color:red} \* Delete an Distribution (asynchronous?) |
||
143 | |||
144 | 113 | bmbouter | As an authenticated user, I have filters on the Distribution list: \[[3082](https://pulp.plan.io/issues/3082)\] |
145 | 109 | amacdona@redhat.com | |
146 | - id: (id_in_list) \# id equality is not necessary, objects are referenced by id |
||
147 | - name: (equality, name_in_list) |
||
148 | - base_path: (equality, substring, base_path_in_list) |
||
149 | |||
150 | 120 | bmbouter | ## Publications |
151 | 1 | bmbouter | |
152 | 120 | bmbouter | As an authenticated user, I can CRD Publication(s) |
153 | 1 | bmbouter | |
154 | 120 | bmbouter | - Create a publication which triggers a publish. This is asynchronous locking the repository. |
155 | - Read a Publication - id, created datetime, list of distribution hrefs |
||
156 | - List all Publications - ordered by created datetime in descending order |
||
157 | - Delete a Publication - asyncronously with a lock on the repository. |
||
158 | \- prevented if associated with a distribution. |
||
159 | \- single object only. |
||
160 | |||
161 | As an authenticated user, I can list publications and I have enough information to choose which ones to delete. |
||
162 | |||
163 | - choose by created (older ones or perhaps latest) |
||
164 | - choose not associated to a distribution. |
||
165 | - does not imply filtering |
||
166 | |||
167 | As an authenticated user, I can list publications and i have enough information to select a publication to be associated with a distribution. |
||
168 | |||
169 | - choose by created (latest or just by publish date) |
||
170 | \- manual promotion. "My rawhide publication has been tested and now I want to promote it to stable". |
||
171 | \- rollback to an earlier publication. |
||
172 | - does not imply filtering |
||
173 | |||
174 | As an authenticated user, I can determine if and how a publication is distributed. |
||
175 | 109 | amacdona@redhat.com | |
176 | 72 | mhrivnak | ## Sync and Publish |
177 | 1 | bmbouter | |
178 | 66 | mhrivnak | As an authenticated user, I can trigger an importer to sync. \[done\] |
179 | 19 | bmbouter | |
180 | - I can follow the progress of all syncs. (Syncs are asynchronous.) |
||
181 | - I cannot pass "sync" options. |
||
182 | - Auto-publish is not included as an importer property. |
||
183 | |||
184 | 66 | mhrivnak | As an authenticated user, I can trigger a publisher to publish. \[done\] |
185 | 19 | bmbouter | |
186 | - I can follow the progress of all publishes. (Publishes are asynchronous.) |
||
187 | - I cannot pass "publish" options. |
||
188 | |||
189 | 71 | mhrivnak | ## Content Manipulation |
190 | 25 | bmbouter | |
191 | 73 | mhrivnak | #### Uploading Artifacts |
192 | 32 | bmbouter | |
193 | 67 | mhrivnak | As an authenticated user, I can create an Artifact by uploading a file. \[done\] |
194 | 30 | bmbouter | |
195 | 68 | mhrivnak | As an authenticated user, I can specify a size and/or digest to validate the uploaded file. \[done\] |
196 | |||
197 | 71 | mhrivnak | #### Creating Content Units |
198 | 70 | mhrivnak | |
199 | 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\] |
200 | 102 | bmbouter | |
201 | 29 | bmbouter | #### Add / Remove Content from a Repository |
202 | 99 | bmbouter | |
203 | 113 | bmbouter | As an authenticated user, I can add content (specific existing content) to a repository |
204 | 99 | bmbouter | |
205 | - I can specify one or more content units by id/href |
||
206 | - I can follow the progress. (adding are asynchronous). |
||
207 | |||
208 | 113 | bmbouter | As an authenticated user, I can remove specified content from a repository |
209 | 99 | bmbouter | |
210 | - I can specify one or more content units by id/href |
||
211 | - I can follow the progress. (removing are asynchronous). |
||
212 | 101 | bmbouter | |
213 | 1 | bmbouter | #### Simple Copy |
214 | 101 | bmbouter | |
215 | 113 | bmbouter | As an authenticated user, I can search (synchronous call) a repository's content using filtering. |
216 | 101 | bmbouter | |
217 | - note: In a separate call (async), I can add this content to another repository. This is effectively a copy operation in two calls. |
||
218 | |||
219 | As an authenticated user, I can import all content from one repository into another repository in a single async call. (Clone use case) |
||
220 | |||
221 | - I can follow the progress. (adding are asynchronous). |
||
222 | |||
223 | #### Complex Copy |
||
224 | |||
225 | As a plugin writer I can provide a rich search features with abitrary viewsets. e.g. depsolving, verisoning, etc |
||
226 | |||
227 | Examples of specific plugin use cases motivating the above general viewset |
||
228 | |||
229 | - 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. |
||
230 | - As an authenticated user, I can add bunch of dependencies and store n versions back for each RPM. |
||
231 | - As an authenticated user, I can use depsolving and versioning copy features together |
||
232 | - As an authenticated user, I can copy a puppet module and all of it's dependencies from one repository to another. |
||
233 | 71 | mhrivnak | - As an authenticated user, I can depsolve units to be added to a destination repo based on an errata |
234 | 1 | bmbouter | |
235 | 95 | bmbouter | #### Delete |
236 | 1 | bmbouter | |
237 | 109 | amacdona@redhat.com | FAs an authenticated user, I can delete a specific content unit% |
238 | 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> |
239 | <span style="color:red;">\* Artifacts and associated files from the deleted unit are cleaned up</span> |
||
240 | |||
241 | <span style="color:red;">As an authenticated user, I can delete multiple content units with filtering</span> |
||
242 | <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> |
||
243 | <span style="color:red;">\* Artifacts and associated files from deleted units are cleaned up</span> |
||
244 | 1 | bmbouter | |
245 | 112 | bmbouter | #### Filtering |
246 | |||
247 | As an authenticated user, I can filter Content by repository information when plugin writers have provided such a filter |
||
248 | |||
249 | As an authenticated user, I can filter content by repository |
||
250 | |||
251 | As an authenticated user, I can filter content by type |
||
252 | |||
253 | As an authenticated user, I can filter content on plugin specific attributes when plugin writers have provided such a filter |
||
254 | |||
255 | 74 | mhrivnak | ## <span style="color:red;">Versioned Repositories</span> |
256 | 1 | bmbouter | |
257 | 40 | bmbouter | As an authenticated user, I can list the content in a particular repository version |
258 | |||
259 | - All fields are included |
||
260 | - Pagination is supported |
||
261 | - <span style="color:red;">Filtering support</span> |
||
262 | |||
263 | As an authenticated user, I can discover a URL to the latest version of a repository |
||
264 | <span class="resource repository the on attributes or endpoint, API dedicated a through \^ Is" style="color:red;"></span> |
||
265 | 1 | bmbouter | |
266 | 43 | bmbouter | As an authenticated user, I can run a publisher without a repository version and have it default to the latest version. |
267 | |||
268 | 1 | bmbouter | <span style="color:red;">As an authenticated user, I can delete a repository version by specifying the version</span> |
269 | |||
270 | 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> |
271 | |||
272 | 95 | bmbouter | ## Orphan Content Units and Artifacts |
273 | 43 | bmbouter | |
274 | 95 | bmbouter | As an authenticated user, I can cause an action that cleans up **both** orphaned content units and orphaned artifacts. |
275 | 43 | bmbouter | |
276 | 95 | bmbouter | - I cannot specify the units specifically (all types). |
277 | - I can follow the progress of all cleanups. (Cleanups are asynchronous.) |
||
278 | 1 | bmbouter | |
279 | 22 | bmbouter | ## Task Management |
280 | |||
281 | 76 | mhrivnak | As an authenticated user, I can list all tasks |
282 | |||
283 | 22 | bmbouter | - <span style="color:orange;">Filtering support on \['state', 'id', 'group'\]</span> |
284 | 76 | mhrivnak | - <span style="color:orange;">This does not include associated progress reports</span> |
285 | 22 | bmbouter | |
286 | As an authenticated user, I can see a detail view for a specific task \[done\] |
||
287 | |||
288 | - all attributes of a task |
||
289 | 76 | mhrivnak | - all associated progress reports |
290 | 1 | bmbouter | |
291 | As an authenticated user, I can cancel a task \[done\] |
||
292 | |||
293 | 77 | mhrivnak | - don't dare to use the DELETE verb! |
294 | |||
295 | 1 | bmbouter | As an authenticated user, I can delete tasks. |
296 | |||
297 | 114 | daviddavis | As an authenticated user, I can filter tags by: \[[3144](https://pulp.plan.io/issues/3144)\] |
298 | 110 | daviddavis | |
299 | - state (equality, state_in_list) |
||
300 | - started_at(started_in_range) |
||
301 | - finished_at(finished_in_range) |
||
302 | - worker (equality) |
||
303 | - parent (equality) |
||
304 | |||
305 | 78 | mhrivnak | ## Task Group |
306 | 1 | bmbouter | |
307 | <span style="color:red;">I can view a summary of the status of all tasks in a group</span> |
||
308 | |||
309 | 82 | mhrivnak | ## Status |
310 | 1 | bmbouter | |
311 | 121 | bmbouter | As an unauthenticated user I can view the status of Pulp workers and resource managers. \[done\] |
312 | 42 | dkliban@redhat.com | |
313 | 80 | mhrivnak | As an unauthenticated user I can view the status of the web server's connection to the database and message broker. \[done\] |
314 | 46 | bmbouter | |
315 | 28 | bmbouter | As an unauthenticated user I can view the versions of core and each installed plugin. |
316 | 110 | daviddavis | |
317 | 115 | daviddavis | ## Workers |
318 | 110 | daviddavis | |
319 | 115 | daviddavis | As an authenticated user, I can filter workers by: \[[3143](https://pulp.plan.io/issues/3143)\] |
320 | 110 | daviddavis | |
321 | - last_heartbeat (range) |
||
322 | - name (substring) |
||
323 | 116 | daviddavis | - gracefully_stopped (equality) |
324 | 1 | bmbouter | |
325 | 83 | mhrivnak | ## Plugin API |
326 | 1 | bmbouter | |
327 | 83 | mhrivnak | As a plugin writer, I have a plugin API that is semantically versioned at 0.x separate from the REST API \[done\] |
328 | 28 | bmbouter | |
329 | 83 | mhrivnak | As a plugin writer, I can report progress with a message and state \[done\] |
330 | 28 | bmbouter | |
331 | 83 | mhrivnak | As a plugin writer, I can report progress with an optional suffix \[done\] |
332 | 28 | bmbouter | |
333 | 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\] |
334 | 28 | bmbouter | |
335 | 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\] |
336 | 28 | bmbouter | |
337 | 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\] |
338 | 28 | bmbouter | |
339 | 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> |
340 | 28 | bmbouter | |
341 | 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> |
342 | 28 | bmbouter | |
343 | 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\] |
344 | 28 | bmbouter | |
345 | 83 | mhrivnak | As a plugin writer, I can interact with and create Artifacts \[done\] |
346 | 28 | bmbouter | |
347 | 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\] |
348 | 6 | Ichimonji10 | |
349 | 83 | mhrivnak | As a plugin writer, I can use the plugin API to query content units/artifacts associated with a repository. \[done\] |
350 | 1 | bmbouter | |
351 | 8 | Ichimonji10 | As a plugin writer, I can add and remove content units to and from a repository. \[done\] |
352 | 1 | bmbouter | |
353 | 112 | bmbouter | As a plugin writer, I have documentation that shows how I can add filters to filter content responsibly. |
354 | |||
355 | As a plugin writer, I have documentation on how to write a filter for my Content that can use the RepositoryContent through table. |
||
356 | |||
357 | - note: This will allow users to filter content by repository information |
||
358 | |||
359 | 103 | bmbouter | ## Plugin Writer "live APIs" |
360 | |||
361 | 106 | bmbouter | As a plugin writer, I can provide a Live API with arbitrary views and viewsets. |
362 | As a plugin writer, I have documentation on what URLs I should -not use for my views and viewsets |
||
363 | |||
364 | 108 | bmbouter | Here are some concrete use cases driving the very Live API use cases above: |
365 | |||
366 | ~~~ |
||
367 | # Concrete user use cases: |
||
368 | 113 | bmbouter | As an authenticated user, I can use the puppet client to fetch content from Pulp using the Forge API |
369 | As an authenticated user I can use the docker client to fetch content from Pulp using the Docker v1 API |
||
370 | As an authenticated user I can use the docker client to fetch content from Pulp using the Docker v2 API |
||
371 | 108 | bmbouter | |
372 | # Concrete plugin writer use cases |
||
373 | As a puppet plugin developer, I can provide a viewset which handles the server side of the puppet Forge v3 API |
||
374 | As a docker plugin developer, I can provide a viewset which handles the server side of the docker v1 API |
||
375 | As a docker plugin developer, I can provide a viewset which handles the server side of the docker v2 API |
||
376 | ~~~ |
||
377 | |||
378 | 117 | bmbouter | ## Webserver Deployment |
379 | 106 | bmbouter | |
380 | 113 | bmbouter | As an authenticated user, I can deploy all Pulp webservices on one process |
381 | 106 | bmbouter | |
382 | 113 | bmbouter | <span style="color:red;">As an authenticated user, I can deploy the Pulp REST API exclusively in one process</span> |
383 | <span style="color:red;">As an authenticated user, I can deploy the Pulp content serving view exclusively in one process</span> |
||
384 | <span style="color:red;">As an authenticated user, I can deploy the Pulp content serving view with reduced permissions.</span> |
||
385 | <span style="color:red;">As an authenticated user, I can deploy a Plugin's Live API exclusively in one process.</span> |
||
386 | 103 | bmbouter | |
387 | 94 | bizhang | ## CLI |
388 | 93 | bizhang | |
389 | 1 | bmbouter | We will use coreapi-cli to generate a one to one mapping of cli commands to rest api schema #3068 |
390 | 26 | bmbouter | <span style="color:orange;">We will have a wrapper for coreapi-cli. This wrapper will handle parallel progress reporting</span> |
391 | |||
392 | ## Download API |
||
393 | |||
394 | As a plugin writer, I can download files via |
||
395 | |||
396 | - http:// |
||
397 | - https:// |
||
398 | - file:// |
||
399 | 27 | bmbouter | |
400 | As a plugin writer, I can configure a downloader with: |
||
401 | 26 | bmbouter | |
402 | - Basic Auth |
||
403 | - SSL Cert Client Auth |
||
404 | - 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. |
||
405 | |||
406 | As a plugin writer, I can provide arbitrary behaviors for customized downloaders |
||
407 | |||
408 | - For example token authentication in the docker plugin |
||
409 | |||
410 | As a plugin writer, I can have connection pooling/reuse |
||
411 | |||
412 | As a plugin writer, I have proxy settings |
||
413 | |||
414 | - proxy url (containing basic auth info) |
||
415 | |||
416 | As a plugin writer, I can have great logs |
||
417 | |||
418 | 113 | bmbouter | As an authenticated user, I have documentation about how to use something for bandwidth limiting |
419 | 26 | bmbouter | |
420 | As a plugin writer, I can configure the validation mechanisms used at download time |
||
421 | |||
422 | - checksum validation - minimum (md5, sha1, sha256, sha512) |
||
423 | - size validation |
||
424 | 1 | bmbouter | |
425 | <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> |
||
426 | |||
427 | 26 | bmbouter | <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> |
428 | |||
429 | 112 | bmbouter | <span style="color:red;">As a plugin writer I can configure mirror lists and rotate between the mirrors</span> |
430 | <span style="color:red;">\* round robin</span> |
||
431 | <span style="color:red;">\* nearest mirror support</span> |
||
432 | 26 | bmbouter | |
433 | 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. |
434 | 26 | bmbouter | |
435 | 27 | bmbouter | As a plugin writer I can manage the catalog by using ChangeSets |
436 | 26 | bmbouter | |
437 | 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. |
||
438 | 1 | bmbouter | |
439 | As a plugin writer, I can fetch content myself (but I am not encouraged to do so) with code I write |
||
440 | |||
441 | 56 | ttereshc | As a plugin writer, I can CRUD content units |
442 | 1 | bmbouter | |
443 | 118 | bmbouter | ## <span style="color:red;">Consumer Profile Applicability</span> |
444 | 1 | bmbouter | |
445 | 118 | bmbouter | <span style="color:red;">Using Consumer Profiles and repository bindings I can compute applicability with 2.y parity</span> |
446 | 1 | bmbouter | |
447 | 118 | bmbouter | - Performance needs to be awesome% |
448 | 36 | bmbouter | |
449 | 86 | mhrivnak | ## Migrations only involving Pulp 3 |
450 | 1 | bmbouter | |
451 | 87 | mhrivnak | Users can run "pulp-manager migrate" to migrate the database and adjust state in other locations (filesystem, message broker, ...). \[done\] |
452 | 1 | bmbouter | |
453 | ## Web Server Integration |
||
454 | |||
455 | 122 | jortel@redhat.com | As a user, I can have content efficiently served to me by Apache by Pulp using the X-SEND response headers. \[done\] |
456 | As a user, I can have content efficiently served to me by Nginx by Pulp using the X-Accel-Redirect response headers. \[done\] |
||
457 | 105 | bmbouter | |
458 | <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> |
||
459 | <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> |
||
460 | 87 | mhrivnak | |
461 | 89 | mhrivnak | ## Glossary |
462 | 88 | mhrivnak | |
463 | 1 | bmbouter | Repository - A named collection of content. |
464 | |||
465 | 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. |
466 | |||
467 | 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. |
||
468 | 95 | bmbouter | |
469 | Orphan Content (unit): A content unit that is a member of 0 repositories |
||
470 | |||
471 | Orphan Artifact: An Artifact that is associated with 0 Content Units and 0 Publications |
||
472 | 98 | bmbouter | |
473 | Add (Content Unit): An operation causing a repository to contain a content unit(s) |
||
474 | |||
475 | Remove (content unit): An operation causing a repository to not contain a content unit(s) |
||
476 | 119 | bmbouter | |
477 | Consumer Profile - A set of installed units on a specific machine. In Pulp3 this machine is not a "consumer" in the same sense as Pulp2. Pulp is not "managing" the machine anymore; Pulp3 only collects Profile information. |
||
478 | |||
479 | Applicability - A plugin defined term meaning when a package update available in a repository is applicable to a given consumer as determined by the Consumer Profile. |