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