Use a specific secgroup for each running autopkg nova instance
Bug #1763445 reported by
Junien F
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Auto Package Testing |
Fix Released
|
Medium
|
Julian Andres Klode |
Bug Description
Hi,
In order to work around bug 1763442, could you please have each _running_ autopkg nova instance in a different secgroup ?
A new secgroup for each instance is not needed. For example, if you can run 10 instances in parallel, having 10 secgroups (say, adt-sg-0 to adt-sg-9) would be enough - and said secgroups can be reused by successive instances, no need to destroy/recreate them each time.
Thanks !
Related branches
~juliank/autopkgtest-cloud:copy-security-group
- Ubuntu Release Team: Pending requested
-
Diff: 225 lines (+124/-10)10 files modifieddeployment/charms/xenial/autopkgtest-cloud-worker/autopkgtest@.service (+6/-3)
deployment/charms/xenial/autopkgtest-cloud-worker/hooks/install (+1/-1)
tools/copy-security-group (+89/-0)
tools/exec-in-region (+22/-0)
worker-config-production/worker-bos01.conf (+1/-1)
worker-config-production/worker-bos02-arm64.conf (+1/-1)
worker-config-production/worker-bos02-ppc64el.conf (+1/-1)
worker-config-production/worker-bos02-s390x.conf (+1/-1)
worker-config-production/worker-canonistack.conf (+1/-1)
worker-config-production/worker.conf (+1/-1)
tags: | added: sts |
Changed in auto-package-testing: | |
status: | Triaged → Fix Committed |
assignee: | nobody → Julian Andres Klode (juliank) |
status: | Fix Committed → In Progress |
To post a comment you must log in.
Sure, although I'd appreciate it if you could try to get that bug worked on...
To fix this, we need to add an ExecStartPre/ ExecStopPost to create/destroy the secgroup. We also need to pass this as "-s" as an argument to the SSH setup script ("args" in the .conf file).