Upload packaging diffs to swift
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CI Train [cu2d] |
Fix Released
|
Critical
|
Robert Bruce Park |
Bug Description
So I've recently upgraded the citrain charm to supply the openstack credentials into the train instance, which means it's now possible to upload diffs into swift, which means we'll finally be rid of the last bit of data stored in the jenkins instance (this is a necessary prerequisite for getting rid of jenkins).
The credentials are stored here:
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
You'll need to author a script that reads those into environment variables (the environment variable names can be derived by uppercasing and s/./_/g the filenames), and then using python-swiftclient to upload the diffs immediately after generation.
The swift container name should be something like request-
Changed in cupstream2distro: | |
importance: | Undecided → Critical |
Changed in cupstream2distro: | |
assignee: | nobody → Robert Bruce Park (robru) |
status: | New → In Progress |
Changed in cupstream2distro: | |
status: | In Progress → Fix Released |
Considering that this will require a lot of schlepping around of files and environment variables, I feel like a shell script is best suited to this purpose.
It'd start by reading the files like this:
export OS_AUTH_URL=$(cat ~/os.auth.url)
And then iterate over commandline args and upload to swift like this:
swift upload $SILONAME $filename
($SILONAME is already defined by the train so you'd just get that for free)
And then you'd want to call that script after the diffs get generated, from here:
http:// bazaar. launchpad. net/+branch/ cupstream2distr o/view/ head:/cupstream 2distro/ packagemanager. py#L221
(bonus points if you can remove that pylint disable ;-)