preflight check for librarian access on appservers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Benji York |
Bug Description
Working on RT 41379, Tom reckons that we're good to go but we're changing a system that is rather static and heavyweight to change. I'd like to have a small script we can run both now, and when bringing up new machines, to check that they have the needed access.
It needs to establish that the librarian's restricted and public upload ports work, and the restricted private download port works (because we use that from appservers). It needs to let us check that things were uploaded appropriately from a machine that can access the public librarian (because we don't necessarily let that work from all sppservers directly).
So, I think it can be very simple:
- do a private-upload
- download from private-download
- do a public-upload
- report a url which can be used to check the public uploaded content is accessible (e.g. sysadmins can throw it at wget locally)
The last step is belts and braces, the first three are the crucial steps.
Related branches
- Graham Binns (community): Approve (code)
-
Diff: 213 lines (+199/-0)3 files modifiedlib/canonical/librarian/smoketest.py (+64/-0)
lib/canonical/librarian/tests/test_smoketest.py (+109/-0)
utilities/smoke-test-librarian.py (+26/-0)
tags: | added: canonical-losa-lp |
Changed in launchpad-foundations: | |
assignee: | nobody → Benji York (benji) |
Changed in launchpad-foundations: | |
status: | Triaged → In Progress |
tags: |
added: qa-untestable removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
Changed in launchpad: | |
milestone: | none → 11.01 |
We also want to be able to specify the URL and port to use for each one, so that if/when we're switching those, we can do so without needing to rewrite the script.