Pulp 3 Minimum Viable Product » History » Sprint/Milestone 159
bmbouter, 04/10/2018 04:45 PM
Fixing a heading's formatting
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 | 1 | bmbouter | ## Authentication |
12 | |||
13 | 59 | bmbouter | As an authenticated user I can manage user(s). \[done\] |
14 | 17 | semyers | |
15 | - Add a user |
||
16 | - View user(s) |
||
17 | 58 | mhrivnak | - Update any user detail |
18 | 1 | bmbouter | - Delete a user |
19 | |||
20 | 135 | bmbouter | As an API user, I can authenticate any API call with Basic auth \[done\] |
21 | 1 | bmbouter | |
22 | 110 | daviddavis | As an authenticated user, I can filter users by: \[[3142](https://pulp.plan.io/issues/3142)\] |
23 | |||
24 | - username: (equality, username_in_list) |
||
25 | |||
26 | 1 | bmbouter | ## Repositories |
27 | |||
28 | 18 | dkliban@redhat.com | As an authenticated user, I can list all repos. |
29 | |||
30 | 60 | bmbouter | - All fields are included \[done\] |
31 | - Pagination is supported \[done\] |
||
32 | 1 | bmbouter | |
33 | 112 | bmbouter | As an authenticated user I can use filters on Repositories list: \[[3079](https://pulp.plan.io/issues/3079)\] |
34 | 109 | amacdona@redhat.com | |
35 | - id: (id_in_list) \# id equality is not necessary, v3/repositories/\<UUID\>/ |
||
36 | - name: (equality, name_in_list) |
||
37 | |||
38 | 18 | dkliban@redhat.com | As an authenticated user, I can CRUD a repository |
39 | |||
40 | 60 | bmbouter | - Create a repo \[done\] |
41 | - Read a repo \[done\] |
||
42 | 152 | amacdona@redhat.com | - Update all mutable repo fields (asynchronous) \[done\] |
43 | 130 | daviddavis | - Delete a repo (asynchronous) |
44 | 112 | bmbouter | |
45 | 152 | amacdona@redhat.com | As an authenticated user, when viewing a repository, I can discover a URL to the latest version of a repository. \[done\]\[[3235](https://pulp.plan.io/issues/3235)\] |
46 | 130 | daviddavis | |
47 | 149 | dkliban@redhat.com | ## Remotes |
48 | 51 | bmbouter | |
49 | 149 | dkliban@redhat.com | note: Remote attributes will commonly be available on remotes, but aren't guaranteed to be used by all remotes. |
50 | 51 | bmbouter | |
51 | 149 | dkliban@redhat.com | As an authenticated user, I can CRUD an remote |
52 | 18 | dkliban@redhat.com | |
53 | 149 | dkliban@redhat.com | - Create an remote |
54 | - Read an remote |
||
55 | 152 | amacdona@redhat.com | - Update all mutable remote fields (asynchronous) |
56 | 1 | bmbouter | - Delete an remote (asynchronous) |
57 | 149 | dkliban@redhat.com | |
58 | 155 | amacdona@redhat.com | As an authenticated user, I have filters on the Remote list: \[[3080](https://pulp.plan.io/issues/3080)\] |
59 | 21 | bmbouter | |
60 | 1 | bmbouter | - name: (equality, name_in_list) |
61 | 109 | amacdona@redhat.com | |
62 | 155 | amacdona@redhat.com | As an authenticated user I can configure the following attributes on an Remote: \[done\] |
63 | 109 | amacdona@redhat.com | |
64 | - validate (bool) \[optional: defaults to True\]: If true, the plugin will validate imported content. |
||
65 | 48 | amacdona@redhat.com | - ssl_ca_certificate (str) \[optional\] String containing a PEM encoded CA certificate used to validate the server certificate presented by the external source. |
66 | 1 | bmbouter | - ssl_client_certificate (str) \[optional\] Contains a PEM encoded client certificate used for authentication. |
67 | 135 | bmbouter | - ssl_client_key (str) \[optional\] Contains a PEM encoded private key used for authentication. |
68 | - ssl_validation (bool) \[optional: defaults to True\]: If true, SSL peer validation must be performed. |
||
69 | 1 | bmbouter | - proxy_url (str) \[optional\] Contains the proxy URL. Format: scheme://user:password@host:port. |
70 | 136 | daviddavis | - username (str) \[optional\] Contains the username to be used for authentication when syncing. |
71 | 63 | mhrivnak | - password (str) \[optional\] Contains the password to be used for authentication when syncing. |
72 | 1 | bmbouter | - name (str) \[required\] Contains the name. |
73 | 149 | dkliban@redhat.com | - last_updated (datetime) \[read-only\] Contains the datetime of the last remote update. |
74 | - last_synced (datetime) \[read-only\] Contains the datetime of the last remote sync. |
||
75 | 50 | bmbouter | |
76 | 52 | bmbouter | ## Publishers |
77 | 51 | bmbouter | |
78 | note: Publisher attributes will commonly be available on publishers, but aren't guaranteed to be used by all publishers. |
||
79 | 47 | bmbouter | |
80 | 18 | dkliban@redhat.com | As an authenticated user, I can CRUD a publisher |
81 | |||
82 | - Create a publisher |
||
83 | 1 | bmbouter | - Read a publisher |
84 | 152 | amacdona@redhat.com | - Update all mutable publisher fields (asynchronous) |
85 | 50 | bmbouter | - Delete a publisher (asynchronous) |
86 | 1 | bmbouter | |
87 | 109 | amacdona@redhat.com | As an authenticated user, I have filters on the Publisher list: \[[3081](https://pulp.plan.io/issues/3081)\] |
88 | |||
89 | - name: (equality, name_in_list) |
||
90 | |||
91 | 50 | bmbouter | As an authenticated user I can configure the following attributes on a Publisher: |
92 | |||
93 | 1 | bmbouter | - relative_path (str) \[optional\] The (relative) path component of the published url. |
94 | 152 | amacdona@redhat.com | - name (str) \[required\] contains the name. |
95 | 109 | amacdona@redhat.com | - last_published (datetime) \[read-only\] When the last successful publis%{color:red}h occurred. |
96 | 50 | bmbouter | - last_updated (datetime) \[read-only\] The datetime of the last publisher update. |
97 | 1 | bmbouter | |
98 | 123 | bmbouter | ## Distributions |
99 | 1 | bmbouter | |
100 | As an authenticated user, I can CRUD Distributions: |
||
101 | 123 | bmbouter | |
102 | 1 | bmbouter | - Create a Distribution. |
103 | 123 | bmbouter | - Read a Distribution |
104 | - List Distributions |
||
105 | - Update all mutable Distribution fields (synchronous) |
||
106 | 155 | amacdona@redhat.com | \- base path |
107 | 123 | bmbouter | - Delete an Distribution (synchronous) |
108 | |||
109 | 153 | dkliban@redhat.com | As a user, my distribution base paths don't conflict and my create/update is rejected identifying the conflicting distributions \[[2987](https://pulp.plan.io/issues/2987)\] |
110 | 123 | bmbouter | |
111 | 1 | bmbouter | As an authenticated user, I can create or update a distribution that is not associated with any publication (NULL) |
112 | |||
113 | 123 | bmbouter | As an authenticated user, I can create or update a distribution that is not associated with any publisher (NULL) |
114 | 1 | bmbouter | |
115 | 153 | dkliban@redhat.com | As a user, I can update a Distribution to distribute a specific Publication |
116 | As a user, I want a newly created publication to be automatically served by the content as defined by distributions. |
||
117 | 150 | dkliban@redhat.com | |
118 | 153 | dkliban@redhat.com | As a user, I can see the full urls my base path is served at |
119 | As an authenticated user, I have filters on the Distribution list: \[[3082](https://pulp.plan.io/issues/3082)\]% |
||
120 | 109 | amacdona@redhat.com | |
121 | 1 | bmbouter | - name: (equality, name_in_list) |
122 | - base_path: (equality, substring, base_path_in_list) |
||
123 | |||
124 | ## Publications |
||
125 | |||
126 | 141 | daviddavis | As an authenticated user, when creating a Publication, I can post a repo version href to be published. \[[3221](https://pulp.plan.io/issues/3221)\] |
127 | 1 | bmbouter | |
128 | 142 | daviddavis | As an authenticated user, I can publish a repository's latest version by posting a repository href to be published. \[[3223](https://pulp.plan.io/issues/3223)\] |
129 | 130 | daviddavis | |
130 | 140 | daviddavis | As an authenticated user, I can view which repository version was used to create a particular publication. \[[3237](https://pulp.plan.io/issues/3237)\] |
131 | 130 | daviddavis | |
132 | As an authenticated user, I can read Publication(s) |
||
133 | |||
134 | - Read a Publication - id, created datetime, list of distribution hrefs, repo version |
||
135 | 120 | bmbouter | - List all Publications - ordered by created datetime in descending order |
136 | |||
137 | 130 | daviddavis | As an authenticated user, I can delete publications. |
138 | \- asynchronously with a lock on the repository version. |
||
139 | \- prevented if associated with a distribution. |
||
140 | \- single object only. |
||
141 | 1 | bmbouter | |
142 | As an authenticated user, I can list publications and I have enough information to choose which ones to delete. |
||
143 | |||
144 | 130 | daviddavis | - choose by created (older ones or perhaps latest) |
145 | 120 | bmbouter | - choose not associated to a distribution. |
146 | - does not imply filtering |
||
147 | |||
148 | As an authenticated user, I can list publications and i have enough information to select a publication to be associated with a distribution. |
||
149 | |||
150 | 155 | amacdona@redhat.com | - choose by created (latest or just by publish date) |
151 | - manual promotion. "My rawhide publication has been tested and now I want to promote it to stable". |
||
152 | - rollback to an earlier publication. |
||
153 | 120 | bmbouter | - does not imply filtering |
154 | 109 | amacdona@redhat.com | |
155 | 72 | mhrivnak | As an authenticated user, I can determine if and how a publication is distributed. |
156 | 1 | bmbouter | |
157 | 144 | dkliban@redhat.com | ## Exporters |
158 | 70 | mhrivnak | |
159 | 1 | bmbouter | <span style="color:black;">As a plugin writer, I can contribute an exporter that is discovered by core</span> |
160 | 102 | bmbouter | <span style="color:black;">As a plugin writer, I have docs on how to create a discoverable exporter</span> |
161 | 151 | dkliban@redhat.com | <span style="color:black;">As a plugin writer, I can contribute an exporter that uses a publication.</span> |
162 | 99 | bmbouter | |
163 | 156 | amacdona@redhat.com | ## Artifacts |
164 | 1 | bmbouter | |
165 | 99 | bmbouter | As an authenticated user, I can create an Artifact by uploading a file. \[done\] |
166 | |||
167 | 156 | amacdona@redhat.com | <span style="color:red;">As an authenticated user, I can specify a size and/or digest to validate the uploaded file. \[done\]</span> |
168 | 1 | bmbouter | |
169 | 156 | amacdona@redhat.com | ## Content Units |
170 | 1 | bmbouter | |
171 | 156 | amacdona@redhat.com | As an authenticated user, I can create a content unit. |
172 | 127 | bmbouter | |
173 | 156 | amacdona@redhat.com | As an authenticated user, I can read and list content units. |
174 | <span style="color:red;">\* As an authenticated user, I can filter content by repository version</span> |
||
175 | 130 | daviddavis | |
176 | 156 | amacdona@redhat.com | <span style="color:red;">As an authenticated user, I can delete a specific content unit if it is not in any repository version. (orphan)</span> |
177 | 1 | bmbouter | |
178 | - Error message saying that the unit is in use by a repo version and a link to the filter to return all of the repo versions. |
||
179 | 129 | daviddavis | - As a user, I know that files (Artifacts) associated with the Content unit are not removed by this call (docs) |
180 | 1 | bmbouter | |
181 | ## Versioned Repositories |
||
182 | 129 | daviddavis | |
183 | 1 | bmbouter | #### CRD |
184 | |||
185 | As an authenticated user, I can list versions for a particular repository. \[done\] |
||
186 | 129 | daviddavis | |
187 | - Pagination is supported |
||
188 | 1 | bmbouter | |
189 | As an authenticated user, I can filter repository versions by: \[[3238](https://pulp.plan.io/issues/3238)\] |
||
190 | |||
191 | 137 | daviddavis | - number (equality, lt/lte, gt/gte) |
192 | 129 | daviddavis | - content id (equality, content_in_list) |
193 | 136 | daviddavis | - created datetime (range) |
194 | |||
195 | 140 | daviddavis | As an authenticated user, I can delete any repository version. \[[3219](https://pulp.plan.io/issues/3219)\] |
196 | 129 | daviddavis | |
197 | 155 | amacdona@redhat.com | - Latest versions are deleted simply. |
198 | - Content set changes are "squashed" into the following version when non-latest versions are deleted. |
||
199 | |||
200 | 136 | daviddavis | As an authenticated user, I can view content that was added or removed in a particular repository version (as compared to the previous version). \[done\] |
201 | 133 | amacdona@redhat.com | |
202 | 155 | amacdona@redhat.com | 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)\] |
203 | |||
204 | 138 | daviddavis | #### Repository Version Content |
205 | 129 | daviddavis | |
206 | As a user, I know content sets for repository versions are immutable. \[done\] |
||
207 | |||
208 | 139 | daviddavis | As an authenticated user, I can list the content in a particular repository version \[done\] |
209 | 129 | daviddavis | |
210 | 139 | daviddavis | - All fields are included |
211 | 40 | bmbouter | - Pagination is supported |
212 | 43 | bmbouter | |
213 | 139 | daviddavis | As an authenticated user, I can create a new version by adding or removing content to the latest version. \[[3234](https://pulp.plan.io/issues/3234)\] |
214 | 130 | daviddavis | |
215 | 136 | daviddavis | - I can follow the progress. (adding/removing are asynchronous). |
216 | 130 | daviddavis | - can add and remove together in a single call |
217 | 152 | amacdona@redhat.com | |
218 | 43 | bmbouter | ## Orphan Content Units and Artifacts |
219 | 95 | bmbouter | |
220 | 153 | dkliban@redhat.com | As an authenticated user, I can cause an action that cleans up **both** orphaned content units and orphaned artifacts. |
221 | 151 | dkliban@redhat.com | |
222 | 22 | bmbouter | - I cannot specify the units specifically (all types). |
223 | - I can follow the progress of all cleanups. (Cleanups are asynchronous.) |
||
224 | 76 | mhrivnak | |
225 | ## Task Management |
||
226 | 22 | bmbouter | |
227 | 76 | mhrivnak | As an authenticated user, I can list all tasks |
228 | 1 | bmbouter | |
229 | - This does not include associated progress reports |
||
230 | |||
231 | As an authenticated user, I can see a detail view for a specific task \[done\] |
||
232 | |||
233 | - all attributes of a task |
||
234 | - all associated progress reports |
||
235 | |||
236 | As an authenticated user, I can cancel a task \[done\] |
||
237 | |||
238 | - don't dare to use the DELETE verb! |
||
239 | |||
240 | As an authenticated user, I can delete tasks. |
||
241 | |||
242 | As an authenticated user, I can filter tasks by: \[[3144](https://pulp.plan.io/issues/3144)\] |
||
243 | |||
244 | - state (equality, state_in_list) |
||
245 | - started_at(started_in_range) |
||
246 | - finished_at(finished_in_range) |
||
247 | - worker (equality) |
||
248 | - parent (equality) |
||
249 | |||
250 | 146 | daviddavis | ## Status |
251 | 153 | dkliban@redhat.com | |
252 | 22 | bmbouter | As an unauthenticated user I can view the status of Pulp workers and resource managers. \[done\] |
253 | |||
254 | 76 | mhrivnak | As an unauthenticated user I can view the status of the web server's connection to the database and message broker. \[done\] |
255 | 1 | bmbouter | |
256 | As an unauthenticated user I can view the versions of core and each installed plugin. |
||
257 | |||
258 | 77 | mhrivnak | ## Workers |
259 | |||
260 | 1 | bmbouter | As an authenticated user, I can filter workers by: \[[3143](https://pulp.plan.io/issues/3143)\] |
261 | |||
262 | 114 | daviddavis | - last_heartbeat (range) |
263 | 110 | daviddavis | - name (substring) |
264 | 147 | daviddavis | - gracefully_stopped (equality) |
265 | 156 | amacdona@redhat.com | |
266 | 159 | bmbouter | ## Plugin User Content Management stories |
267 | 156 | amacdona@redhat.com | |
268 | #### Simple Copy |
||
269 | |||
270 | As an authenticated user of a plugin, I can search (synchronous call) a repository version's content using filtering. |
||
271 | |||
272 | - note: In a separate call (async), I can add_content_units or remove_content_units to another repository's latest version. |
||
273 | |||
274 | #### Complex Copy |
||
275 | |||
276 | As a plugin writer I can provide a rich search features with arbitrary viewsets. e.g. depsolving, versioning, etc |
||
277 | |||
278 | Examples of specific plugin use cases motivating the above general viewset |
||
279 | |||
280 | - 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. |
||
281 | - As an authenticated user, I can add bunch of dependencies and store n versions back for each RPM. |
||
282 | - As an authenticated user, I can use depsolving and versioning copy features together |
||
283 | - As an authenticated user, I can copy a puppet module and all of it's dependencies from one repository to another. |
||
284 | - As an authenticated user, I can depsolve units to be added to a destination repo based on an errata |
||
285 | 1 | bmbouter | |
286 | 83 | mhrivnak | ## Plugin API |
287 | 28 | bmbouter | |
288 | 83 | mhrivnak | As a plugin writer, I have a plugin API that is semantically versioned at 0.x separate from the REST API \[done\] |
289 | 28 | bmbouter | |
290 | 157 | amacdona@redhat.com | As a plugin writer, my app will be discovered by Pulp's app via an entry point provided by the plugin writer \[done\] |
291 | |||
292 | #### Task |
||
293 | |||
294 | 1 | bmbouter | As a plugin writer, I can report progress with a message and state \[done\] |
295 | 83 | mhrivnak | |
296 | 28 | bmbouter | As a plugin writer, I can report progress with an optional suffix \[done\] |
297 | |||
298 | 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\] |
299 | 1 | bmbouter | |
300 | 28 | bmbouter | 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\] |
301 | 83 | mhrivnak | |
302 | 28 | bmbouter | 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\] |
303 | 1 | bmbouter | |
304 | 157 | amacdona@redhat.com | #### Remote |
305 | |||
306 | 154 | dkliban@redhat.com | As a plugin writer, I can provide a subclassed Remote. I can add custom fields to the subclassed Remote. |
307 | 28 | bmbouter | |
308 | 154 | dkliban@redhat.com | As a plugin writer, I can provide a UserFacingTask to perform a sync operation using information stored in a Remote. |
309 | 1 | bmbouter | |
310 | 155 | amacdona@redhat.com | As a plugin writer, I can provide a ViewSet for the subclassed Remote that has a 'sync' endpoint that dispatches the sync task with a reservation for Repository and Remote. |
311 | 154 | dkliban@redhat.com | |
312 | 157 | amacdona@redhat.com | #### Publisher |
313 | |||
314 | 154 | dkliban@redhat.com | As a plugin writer, I can provide a subclassed Publisher. I can add custom fields to the subclassed Publisher. |
315 | |||
316 | As a plugin writer, I can provide a UserFacingTask to perform a publish operation using information from the subclassed Publisher. |
||
317 | 112 | bmbouter | |
318 | As a plugin writer, I can provide a ViewSet for the subclassed Publisher that has a 'publish' endpoint that dispatches the publish task with a reservation for Repository and Publisher. |
||
319 | 1 | bmbouter | |
320 | 157 | amacdona@redhat.com | #### Content |
321 | 1 | bmbouter | |
322 | 157 | amacdona@redhat.com | As a plugin writer, I can provide a subclassed Content unit. I can add custom fields to the subclassed Content. \[done\] |
323 | |||
324 | <span style="color:red;">As a plugin writer, I have documentation that shows how I can add filters to filter content responsibly.</span> |
||
325 | |||
326 | <span style="color:red;">As a plugin writer, I have documentation on how to write a filter for my Content that can use the RepositoryVersion manager.</span> |
||
327 | <span style="color:red;">\* note: This will allow users to filter content by repository version</span> |
||
328 | |||
329 | #### Content Management |
||
330 | |||
331 | 1 | bmbouter | As a plugin writer, I can interact with and create Artifacts \[done\] |
332 | |||
333 | 157 | amacdona@redhat.com | As a plugin writer, I can query content units/artifacts associated with a repository. \[done\] |
334 | 1 | bmbouter | |
335 | 157 | amacdona@redhat.com | As a plugin writer, I can create a new repository version: \[done\] |
336 | 1 | bmbouter | |
337 | 157 | amacdona@redhat.com | - When I create the new version, it is incomplete. |
338 | - The new version starts with all the content from the previous version. |
||
339 | - I can add and remove content units to and from an incomplete repository version. |
||
340 | - When I am finished with the incomplete version, core finalizes the repository version for me. |
||
341 | - I have exclusive access to the new repository version while my code is running. |
||
342 | 1 | bmbouter | |
343 | 157 | amacdona@redhat.com | #### Publishing |
344 | 1 | bmbouter | |
345 | 157 | amacdona@redhat.com | As a plugin writer, I can create a new publication: \[done\] |
346 | 1 | bmbouter | |
347 | 157 | amacdona@redhat.com | - When I create the new publication, it is incomplete. |
348 | - When I am finished with the incomplete publication, core finalizes the publication for me. |
||
349 | - I have exclusive access to the repository version while my code is running. |
||
350 | - I have exclusive access to the new publication while my code is running. |
||
351 | 1 | bmbouter | |
352 | 157 | amacdona@redhat.com | #### "live APIs" |
353 | |||
354 | 154 | dkliban@redhat.com | <span style="color:red;">As a plugin writer, I can provide a Live API with arbitrary views and viewsets \[3473\] |
355 | 134 | bmbouter | As a plugin writer, I have documentation on what URLs I should not use for my views and viewsets \[3473\]</span> |
356 | 1 | bmbouter | |
357 | 136 | daviddavis | Here are some concrete use cases driving the very Live API use cases above: |
358 | 134 | bmbouter | |
359 | 155 | amacdona@redhat.com | ~~~ |
360 | # Concrete user use cases: |
||
361 | 134 | bmbouter | As an authenticated user, I can use the puppet client to fetch content from Pulp using the Forge API |
362 | 1 | bmbouter | As an authenticated user I can use the docker client to fetch content from Pulp using the Docker v1 API |
363 | As an authenticated user I can use the docker client to fetch content from Pulp using the Docker v2 API |
||
364 | 134 | bmbouter | |
365 | 136 | daviddavis | # Concrete plugin writer use cases |
366 | 154 | dkliban@redhat.com | As a puppet plugin developer, I can provide a viewset which handles the server side of the puppet Forge v3 API |
367 | 134 | bmbouter | As a docker plugin developer, I can provide a viewset which handles the server side of the docker v1 API |
368 | As a docker plugin developer, I can provide a viewset which handles the server side of the docker v2 API |
||
369 | ~~~ |
||
370 | 154 | dkliban@redhat.com | |
371 | 157 | amacdona@redhat.com | |
372 | h4. Storage |
||
373 | 134 | bmbouter | |
374 | 157 | amacdona@redhat.com | As a plugin writer, the plugin API provides an API that returns a fully qualified path to a shared and namespaced storage location used to store content. \["3182"https://pulp.plan.io/issues/3182\] |
375 | \*****\*****\*\*\*\* |
||
376 | 106 | bmbouter | |
377 | 132 | bmbouter | ## Webserver Deployment |
378 | |||
379 | As a system administrator, I can deploy all Pulp web applications on one process |
||
380 | 113 | bmbouter | As a system administrator, I can deploy the Pulp REST API exclusively in one process |
381 | 132 | bmbouter | As a system administrator, I can deploy the Pulp content serving view exclusively in one process |
382 | |||
383 | 93 | bizhang | As a system administrator, I can deploy all Pulp web applications inside a virtualenv. |
384 | 1 | bmbouter | As a system administrator, I can deploy all Pulp web applications without root permissions. |
385 | 26 | bmbouter | |
386 | ## CLI |
||
387 | |||
388 | We will use coreapi-cli to generate a one to one mapping of cli commands to rest api schema #3068 |
||
389 | <span style="color:orange;">We will have a wrapper for coreapi-cli. This wrapper will handle parallel progress reporting</span> |
||
390 | |||
391 | ## Download API |
||
392 | |||
393 | 27 | bmbouter | As a plugin writer, I can download files via |
394 | 26 | bmbouter | |
395 | - http:// |
||
396 | - https:// |
||
397 | 1 | bmbouter | - file:// |
398 | |||
399 | 26 | bmbouter | As a plugin writer, I can configure a downloader with: |
400 | |||
401 | - Basic Auth |
||
402 | - SSL Cert Client Auth |
||
403 | - 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. |
||
404 | |||
405 | As a plugin writer, I can provide arbitrary behaviors for customized downloaders |
||
406 | |||
407 | - For example token authentication in the docker plugin |
||
408 | 1 | bmbouter | |
409 | As a plugin writer, I can have connection pooling/reuse |
||
410 | |||
411 | 26 | bmbouter | As a plugin writer, I have proxy settings |
412 | 113 | bmbouter | |
413 | 1 | bmbouter | - proxy url (containing basic auth info) |
414 | 154 | dkliban@redhat.com | |
415 | 26 | bmbouter | <span style="color:red;">As a plugin writer, I can have great logs</span> |
416 | 154 | dkliban@redhat.com | |
417 | 26 | bmbouter | <span style="color:red;">As an authenticated user, I have documentation about how to use something for bandwidth limiting</span> |
418 | |||
419 | 1 | bmbouter | As a plugin writer, I can configure the validation mechanisms used at download time |
420 | |||
421 | - checksum validation - minimum (md5, sha1, sha256, sha512) |
||
422 | 26 | bmbouter | - size validation |
423 | |||
424 | 1 | bmbouter | <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> |
425 | 26 | bmbouter | |
426 | 27 | 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> |
427 | 154 | dkliban@redhat.com | |
428 | 26 | bmbouter | <span style="color:red;">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.</span> |
429 | 154 | dkliban@redhat.com | |
430 | 1 | bmbouter | <span style="color:red;">As a plugin writer I can manage the catalog by using ChangeSets</span> |
431 | 154 | dkliban@redhat.com | |
432 | 118 | bmbouter | <span style="color:red;">As a plugin writer, the plugin can participate in adding content for cases where the decision to add additional content is based on the content that has been downloaded.</span> |
433 | |||
434 | 1 | bmbouter | As a plugin writer, I can fetch content myself (but I am not encouraged to do so) with code I write |
435 | 154 | dkliban@redhat.com | |
436 | 86 | mhrivnak | <span style="color:red;">As a plugin writer, I can CRUD content units</span> need a convention to handle multiple content units - see https://pulp.plan.io/issues/3472 |
437 | 1 | bmbouter | |
438 | 87 | mhrivnak | ## Migrations only involving Pulp 3 |
439 | 1 | bmbouter | |
440 | Users can run "pulp-manager migrate" to migrate the database and adjust state in other locations (filesystem, message broker, ...). \[done\] |
||
441 | 122 | jortel@redhat.com | |
442 | 1 | bmbouter | ## Web Server Integration |
443 | 122 | jortel@redhat.com | |
444 | 105 | bmbouter | As a user, I can have content efficiently served to me by Apache by Pulp using the X-SEND response headers. \[done\] |
445 | 132 | bmbouter | As a user, I can have content efficiently served to me by Nginx by Pulp using the X-Accel-Redirect response headers. \[done\] |
446 | |||
447 | 87 | mhrivnak | 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)\] |
448 | 89 | mhrivnak | 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)\] |
449 | 88 | mhrivnak | |
450 | 131 | bmbouter | ## Glossary |
451 | 130 | daviddavis | |
452 | 119 | bmbouter | Add (Content Unit): An operation causing a new repository version to contain a content unit(s) |
453 | 1 | bmbouter | |
454 | 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. |
||
455 | |||
456 | 131 | bmbouter | 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. |
457 | 1 | bmbouter | |
458 | 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. |
||
459 | |||
460 | Distribution: Where and how the content app serves a Publication. i.e. http vs https and base path component of the URL. A Distribution defines: |
||
461 | |||
462 | - the base path of the repository publication (required) |
||
463 | - serving via http (default=False) |
||
464 | - serving via https (default=True) |
||
465 | 134 | bmbouter | - relationship w/ a Publisher for auto-distribution (should be allowed to be NULL) |
466 | 145 | dkliban@redhat.com | - relationship with Publication (should be allowed to be NULL) |
467 | 132 | bmbouter | |
468 | Exporter: An Exporter exports a Publication out of Pulp. e.g. rsync exporter exports content to a remote server |
||
469 | 131 | bmbouter | |
470 | Live API: a viewset endpoint contributed by plugin. For examples see the [associated MVP section](https://pulp.plan.io/projects/pulp/wiki/Pulp_3\_Minimum_Viable_Product#Plugin-Writer-live-APIs) |
||
471 | |||
472 | Orphan Artifact: An Artifact that is associated with 0 Content Units and 0 Publications |
||
473 | |||
474 | Orphan Content (unit): A content unit that is a member of 0 repository versions |
||
475 | |||
476 | Remove (content unit): An operation causing a new repository version to not contain a content unit(s) |
||
477 | |||
478 | Repository - A named collection of repository versions. |
||
479 | 1 | bmbouter | |
480 | Repository Version - An immutable set of content which is versioned by a sequential number. |