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