Merge lp:~noise/tanuki-agent/tutorial-twerks into lp:tanuki-agent

Proposed by Bret Barker
Status: Merged
Approved by: Bret Barker
Approved revision: 171
Merged at revision: 171
Proposed branch: lp:~noise/tanuki-agent/tutorial-twerks
Merge into: lp:tanuki-agent
Diff against target: 82 lines (+11/-9)
2 files modified
agent.py (+2/-2)
docs/tutorial2.md (+9/-7)
To merge this branch: bzr merge lp:~noise/tanuki-agent/tutorial-twerks
Reviewer Review Type Date Requested Status
Roberto Alsina (community) Approve
Review via email: mp+278644@code.launchpad.net

Commit message

fix agent configparser cfg; tweaks to tutorial

To post a comment you must log in.
Revision history for this message
Roberto Alsina (ralsina) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'agent.py'
--- agent.py 2015-11-25 19:37:18 +0000
+++ agent.py 2015-11-25 20:48:01 +0000
@@ -7,8 +7,8 @@
7Tanuki Agent7Tanuki Agent
88
9Usage:9Usage:
10 agent.py [-vq] [--once] [--drain] [--register] [--debug] \10 agent.py [-vq] [--once] [--drain] [--register] [--debug] <configfile>
11 [--local-test <test_opportunity_json_file>] <configfile>11 agent.py [-vq] [--debug] --local-test <test_opportunity_json_file> <configfile>
12 agent.py --default-config [<configfile>]12 agent.py --default-config [<configfile>]
13 agent.py --interactive-login [<configfile>]13 agent.py --interactive-login [<configfile>]
1414
1515
=== modified file 'docs/tutorial2.md'
--- docs/tutorial2.md 2015-11-24 19:07:08 +0000
+++ docs/tutorial2.md 2015-11-25 20:48:01 +0000
@@ -261,8 +261,9 @@
261For the purposes of Product Integration testing, we are only concerned about the list of snaps that compose the product and some additional metadata decribed here:261For the purposes of Product Integration testing, we are only concerned about the list of snaps that compose the product and some additional metadata decribed here:
262262
263- ```name```: A short name to identify this Product, does not need to be unique.263- ```name```: A short name to identify this Product, does not need to be unique.
264- ```primary_snap_name```: the fully qualified name of the snap
265 package that defines this product and access to product test information.
264- ```release```: the Ubuntu Core release this products aims for (currently "15.04-core" or "rolling-core" as known by the Store)266- ```release```: the Ubuntu Core release this products aims for (currently "15.04-core" or "rolling-core" as known by the Store)
265- ```base_image_reference```: optional (TODO: we should make it optional as it shouldn't be needed in all-snaps land anymore)
266- ```snaps```: the list of snap names that that comprise the product267- ```snaps```: the list of snap names that that comprise the product
267268
268TODO: instruct them to export SSO_USERNAME or have the agent login step do it.269TODO: instruct them to export SSO_USERNAME or have the agent login step do it.
@@ -284,7 +285,7 @@
284 ]285 ]
285 }'286 }'
286287
287output will contain the ID newly created product definition. You will need to export this as an environment variable for use in later API calls as follows:288the output will contain the ID newly created product definition. You will need to export this as an environment variable for use in later API calls as follows:
288289
289 export PRODUCT_ID=<id from output above>290 export PRODUCT_ID=<id from output above>
290291
@@ -306,17 +307,18 @@
306307
307 ./api_example.py -X POST config.ini https://spi.canonical.com/products/$PRODUCT_ID/tests/specs --data '{308 ./api_example.py -X POST config.ini https://spi.canonical.com/products/$PRODUCT_ID/tests/specs --data '{
308 "name": "Tutorial Example Test Specification",309 "name": "Tutorial Example Test Specification",
310 "platform": "armhf",
309 "product_id": "$PRODUCT_ID",311 "product_id": "$PRODUCT_ID",
310 "channels": [ ['base': 'stable', 'update': 'edge'] ],312 "channels": [ ['base': 'stable', 'update': 'edge'] ],
311 "test_payload": {313 "test_payload": {
312 "tarball_url": "https://spi.canonical.com/assets/test_tarball2.tar.gz",314 "tarball_url": "https://spi.canonical.com/assets/test_tarball2.tar.gz",
313 "test_cmd": "./test"315 "test_cmd": "./test2"
314 }316 }
315 }'317 }'
316318
317At this point the system is configured for your product and tests, and will supervise the Store for new versions of the snaps listed in your Product.319At this point the system is configured for your product and tests, and will supervise the Store for new versions of the snaps listed in your Product.
318320
319TODO: note about not being in all-snaps land yet.321TODO: note about not being in all-snaps land yet and how that affects os/kernel.
320322
321323
322### First test run324### First test run
@@ -365,7 +367,7 @@
365 "event_type": "QUEUED_FOR_AGENTS"367 "event_type": "QUEUED_FOR_AGENTS"
366 },368 },
367 {369 {
368 "platform": "spi-tutorial-raspi2",370 "platform": "armhf",
369 "timestamp": "2015-10-28T18:34:58.988000+00:00",371 "timestamp": "2015-10-28T18:34:58.988000+00:00",
370 "agent_group": "default",372 "agent_group": "default",
371 "agent_id": "special",373 "agent_id": "special",
@@ -452,12 +454,12 @@
452454
453 [environment]455 [environment]
454 ARTIFACT_DIR='/home/user/artifacts'456 ARTIFACT_DIR='/home/user/artifacts'
455457
456#### Generated GM Candidate images458#### Generated GM Candidate images
457459
458The images that are generated by the provisioning kit may be stored for later use. For example if tests pass and you would like to release the image you will want to retrieve the binary from the Agent host.460The images that are generated by the provisioning kit may be stored for later use. For example if tests pass and you would like to release the image you will want to retrieve the binary from the Agent host.
459461
460The sample provisioning kit stores the images in a ./run/images462The sample provisioning kit stores the images in a ```./run/images```
461subdirector of the agent installation. You are responsible for463subdirector of the agent installation. You are responsible for
462handling transport of the images from there to a storage system of your choice.464handling transport of the images from there to a storage system of your choice.
463465

Subscribers

People subscribed via source and target branches

to all changes: