Project

Profile

Help

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

bmbouter, 06/06/2017 09:16 PM
Posting an idea that came up from a call we didn't commit to but also did not want to loose

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 39 jortel@redhat.com
All REST API calls will update the DB using transactions as necessary to ensure data integrity.
8 37 bmbouter
9 1 bmbouter
## Authentication
10
11 17 semyers
As an authenticated user I can manage user(s).
12
13
  - Add a user
14
  - View user(s)
15
  - Update any user detail
16
  - Delete a user
17
18
As an API user, I can have documentation to generate a JSON Web Token (JWT) without the server being online.
19
20 45 bmbouter
<span style="color:red;">As an administrator, I can disable JWT token expiration. This configuration is in the settings file and is system-wide.</span>
21 1 bmbouter
22 45 bmbouter
<span style="color:red;">As an administrator, I can configure the JWT tokens to expire after a configurable amount of time. This configuration is in the settings file and is system-wide.</span>
23 1 bmbouter
24 45 bmbouter
<span style="color:red;">The JWT shall have a username identifier</span>
25 1 bmbouter
26 45 bmbouter
<span style="color:red;">As an API user, I can authenticate any API call (except to request a JWT) with a JWT.</span>
27 17 semyers
28 45 bmbouter
<span style="color:red;">As an API user, I can invalidate all existing JWT tokens for a given user.</span>
29 17 semyers
30 45 bmbouter
<span style="color:red;">As an authenticated user, when deleting a user 'foo', all of user 'foo's existing JWTs are invalidated.</span>
31 17 semyers
32 45 bmbouter
<span style="color:red;">As an autheticated user, I can invalidate a user's JWTs in the same operation as updating the password.</span>
33
34
<span style="color:red;">As an un-authenticated user, I can obtain a JWT token by using a username and password.</span>
35 1 bmbouter
36
## Repositories
37
38 18 dkliban@redhat.com
As an authenticated user, I can list all repos.
39
40
  - All fields are included
41
  - Pagination is supported
42 22 bmbouter
  - <span style="color:red;">Filtering support</span>
43 18 dkliban@redhat.com
44
As an authenticated user, I can CRUD a repository
45
46
  - Create a repo
47
  - Read a repo
48
  - Update all mutable repo fields
49 21 bmbouter
  - Delete a repo (asynchronous)
50 18 dkliban@redhat.com
51
As an authenticated user, I can list a repository's associated importers and publishers
52
53
  - All fields are included
54
  - Pagination is supported
55 22 bmbouter
  - <span style="color:red;">Filtering support</span>
56 18 dkliban@redhat.com
57 20 bmbouter
<span style="color:red;">As an authenticated user, I can summarize content in a repo (including counts)</span>
58 18 dkliban@redhat.com
59
As an authenticated user, I can CRUD an importer
60
61
  - Create an importer
62
  - Read an importer
63
  - Update all mutable importer fields
64 21 bmbouter
  - Delete an importer (asynchronous)
65 18 dkliban@redhat.com
66
As an authenticated user, I can CRUD a publisher
67
68
  - Create a publisher
69
  - Read a publisher
70
  - Update all mutable publisher fields
71 21 bmbouter
  - Delete a publisher (asynchronous)
72 1 bmbouter
73
## Content Manipulation
74
75 19 bmbouter
As an authenticated user, I can trigger an importer to sync.
76
77
  - I can follow the progress of all syncs. (Syncs are asynchronous.)
78
  - I cannot pass "sync" options.
79
  - Auto-publish is not included as an importer property.
80
81
As an authenticated user, I can trigger a publisher to publish.
82
83
  - I can follow the progress of all publishes. (Publishes are asynchronous.)
84
  - I cannot pass "publish" options.
85
86 25 bmbouter
## Upload & Copy
87
88 32 bmbouter
#### Getting bits from the client to Pulp
89
90 35 bmbouter
As an authenticated user, I can request a file ID from the server to upload a file with
91 19 bmbouter
92 35 bmbouter
As an authenticated user, I can upload a file with the server provided file ID, an optional chunk size, and an optional offset.
93 19 bmbouter
94 35 bmbouter
As an authenticated user, I can rely on Pulp to auto-delete uploaded files after a configurable time. (Eg: 6 hours).
95 30 bmbouter
96 35 bmbouter
As a user, I can delete an uploaded file by file ID
97 30 bmbouter
98 1 bmbouter
#### Creating Artifacts and Content Units
99 35 bmbouter
100 29 bmbouter
As a user, I can reference a file ID at Artifact creation time.
101 1 bmbouter
102 37 bmbouter
As an authenticated user, I can create a content unit by providing the content type, its Artifacts using file upload IDs for each Artifact, and the metadata supplied in the POST body. This call is atomic, either all Artifacts and the content unit are created in the database and on the filesystem or none are.
103 31 bmbouter
104 1 bmbouter
As an authenticated user, I can reuse a file ID to create multiple Artifacts without uploading the file twice.
105
106 37 bmbouter
#### Unit Management / Copy
107 29 bmbouter
108 41 jortel@redhat.com
As an authenticated user, I can add and remove one or more units to and from a destination repo.
109 1 bmbouter
110
  - <span style="color:red;">Filtering support for specifying the unit(s)</span>
111 41 jortel@redhat.com
  - I can follow the progress. (adding and removing are asynchronous).
112 1 bmbouter
113
## Versioned Repositories
114
115 40 bmbouter
As an authenticated user, I can list the content in a particular repository version
116
117
  - All fields are included
118
  - Pagination is supported
119
  - <span style="color:red;">Filtering support</span>
120
121
As an authenticated user, I can discover a URL to the latest version of a repository  
122
<span class="resource repository the on attributes or endpoint, API dedicated a through \^ Is" style="color:red;"></span>
123
124
As an authenticated user, I can run a publisher without a repository version and have it default to the latest version.
125
126
<span style="color:red;">As an authenticated user, I can delete a repository version by specifying the version</span>
127
128
<span style="color:red;">As an authenticated user, I can upload multiple content(s?) and add create a single new version that adds all of them.</span>
129 1 bmbouter
130 20 bmbouter
## Orphans
131
132 43 bmbouter
<span style="color:red;">As an authenticated user, I can clean up orphaned content units</span>  
133 1 bmbouter
<span style="color:red;">\* I can follow the progress of all cleanups. (Cleanups are asynchronous.)</span>
134 43 bmbouter
135
<span style="color:red;">As an authenticated user, I can delete a specific content unit</span>  
136
<span style="color:red;">\* If the content unit is still in at least one repository the delete fails with a listing of all repositories the unit is part of.</span>  
137
<span style="color:red;">\* Artifacts and associated files from the deleted unit are cleaned up</span>
138
139
<span style="color:red;">As an authenticated user, I can delete multiple content units with filtering</span>  
140
<span style="color:red;">\* If a content unit is still in at least one repository the delete fails with a listing of all repositories the unit is part of.</span>  
141
<span style="color:red;">\* Artifacts and associated files from deleted units are cleaned up</span>
142
143
<span style="color:red;">As an authenticated user, I see all (orphans) units that are not in any repositories</span>
144 1 bmbouter
145
## Filter
146
147 44 bmbouter
<span style="color:red;">I can filter all nouns *(What is the meaning of "filter?" What is a noun?)*</span>
148 1 bmbouter
149 22 bmbouter
## Task Management
150
151
As an authenticated user, I can list all tasks
152
153
  - Filtering support on \['state', 'id', 'group'\]
154
  - This does not include associated progress reports
155
156
As an authenticated user, I can see a detail view for a specific task
157
158
  - all attributes of a task
159
  - all associated progress reports
160
161
As an authenticated user, I can cancel a task
162 1 bmbouter
163
  - don't dare to use the DELETE verb!
164
165
## Task Group
166
167
I can view a summary of the status of all tasks in a group
168
169
## Event Listener Notifier
170
171 12 Ichimonji10
I can receive serialized task info via AMQP on each task save
172
173 1 bmbouter
*Can this be restated in more pedantic terms? Does this mean that an arbitrary host can attach itself to Pulp's AMQP message bus and get updates on the progress of tasks?*
174
175
## Status
176
177 42 dkliban@redhat.com
As an unauthenticated user I can view the status of Pulp workers, resource managers, and celerybeats.
178 1 bmbouter
179 42 dkliban@redhat.com
As an unauthenticated user I can view the status of httpd's connection to the database and message broker.
180
181 46 bmbouter
<span style="color:red;">As an administrator, the WSGI app will not start if all migrations have not been applied</span>
182
183 28 bmbouter
## Plugin API
184 1 bmbouter
185 28 bmbouter
As a plugin writer, I have a plugin API that is semantically versioned at 0.x separate from the REST API
186 1 bmbouter
187 28 bmbouter
As a plugin writer, I can report progress with a message and state
188
189
As a plugin writer, I can report progress with an optional suffix
190
191
As a plugin writer, I can report progress with a total count of things to do an the current count of things done
192
193
As a plugin writer, non-fatal exceptions a 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.
194
195
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.
196
197
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.
198
199
As a plugin writer, I can provide a subclassed Publisher. The publisher's responsibility is to publish content.
200
201
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.
202
203
As a plugin writer, I can interact with and create Artifacts
204
205
As a plugin writer, my app will be discovered by Pulp's app via an entry point provided by the plugin writer
206
207
As a plugin writer, I can use the plugin API to query content units/artifacts associated with a repository.
208 6 Ichimonji10
209 41 jortel@redhat.com
As a plugin writer, I can add and remove content units to and from a repository.
210 1 bmbouter
211 8 Ichimonji10
## CLI
212
213 1 bmbouter
We will port what is there with as little effort as possible *(Does this mean that porting will be easy for developers, or that switching from the Pulp 2-3 CLI will be easy for users? If the former, isn't this an implementation detail that doesn't belong in an MVP document? If the latter, does this mean that we're going to carry forward the issues with pulp-admin, like a lack of status codes?)*
214
215
repo CRUD  
216
CRUD for importers  
217
CRUD for publishers  
218
trigger syncs  
219
trigger publish  
220
list content in a repo  
221
upload  
222 8 Ichimonji10
server status  
223
list and cancel tasks  
224 1 bmbouter
authn via basic auth  
225 24 bmbouter
*(Should the supported set of operations be stated in terms of "The capabilities listed in the 'Authenctication,' 'Repositories,' and 'Filter' sections will be supported by the CLI."?)*
226 1 bmbouter
227 26 bmbouter
## Download API
228
229
As a plugin writer, I can download files via
230
231
  - http://
232
  - https://
233
  - file://
234
235
As a plugin writer, I can configure a downloader with:
236 27 bmbouter
237
  - Basic Auth
238 26 bmbouter
  - SSL Cert Client Auth
239
  - 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.
240
241
As a plugin writer, I can provide arbitrary behaviors for customized downloaders
242
243
  - For example token authentication in the docker plugin
244
245
As a plugin writer, I can have connection pooling/reuse
246
247
As a plugin writer, I have proxy settings
248
249
  - proxy url (containing basic auth info)
250
251
As a plugin writer, I can have great logs
252
253
As a user, I have documentation about how to use something for bandwidth limiting
254
255
As a plugin writer, I can configure the validation mechanisms used at download time
256
257
  - checksum validation - minimum (md5, sha1, sha256, sha512)
258
  - size validation
259
260
<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>
261
262
<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>
263
264
As a plugin writer I can configure mirror lists and rotate between the mirrors
265
266
  - round robin
267
  - nearest mirror support
268
269
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.
270
271 1 bmbouter
As a plugin writer I can manage the catalog by using ChangeSets
272 26 bmbouter
273 27 bmbouter
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.
274 26 bmbouter
275
As a plugin writer, I can fetch content myself (but I am not encouraged to do so) with code I write
276 1 bmbouter
277
As a plugin writer, I can CRUD content units
278
279
## Consumer Applicability
280
281
Using consumer profiles and repo bindings I can compute applicability with 2.y parity  
282 11 Ichimonji10
Performance needs to be awesome
283
284 1 bmbouter
*(Is the Pulp Consumer going away in Pulp 3? If so, is this section still appropriate?)*
285
286
## Plugin compatibility
287
288
rpm will work with platform  
289
puppet will work with platform  
290
ostree will work with platform  
291
python will work with platform  
292
file_plugin will work with platform  
293
docker will work with platform
294
295
## Migrations
296 20 bmbouter
297
users can run an executable similar to pulp-manage-db that is not named pulp-manage-db *(Why the change in name?)*
298 36 bmbouter
299
<span style="color:red;">What about migrating fields that we don't use in 3.0 but will use in 3.1+. For example the auto-publish feature?</span>
300 1 bmbouter
301
## Glossary
302
303 39 jortel@redhat.com
Repository - A named collection of content.
304
305
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.
306
307
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.