← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2023231] [NEW] autopkgtest-cloud-worker charm doesn't update worker config if net-name changes

 

Public bug reported:

In charms/focal/autopkgtest-cloud-
worker/reactive/autopkgtest_cloud_worker.py there is the following code:

413 @when_any(
414     "config.changed.worker-default-flavor",
415     "config.changed.worker-big-flavor",
416     "config.changed.worker-args",
417     "config.changed.worker-setup-command",
418     "config.changed.worker-setup-command2",
419     "config.changed.releases",
420     "config.changed.n-workers",
421     "config.changed.lxd-remotes",
422     "config.changed.mirror",
423 )
424 @when_any("config.set.nova-rcs", "config.set.lxd-remotes")
425 def write_worker_config():

and later on we can see /NET_NAME/ being replaced with
config().get("net-name") however that isn't a trigger for this function.

I think we'd want to add "config.changed.net-name" to @when_any.
However, this is a bit complicated to test because we'd have to update
the charm etc....

** Affects: auto-package-testing
     Importance: Undecided
         Status: New

** Description changed:

  In charms/focal/autopkgtest-cloud-
  worker/reactive/autopkgtest_cloud_worker.py there is the following code:
  
  413 @when_any(
  414     "config.changed.worker-default-flavor",
  415     "config.changed.worker-big-flavor",
  416     "config.changed.worker-args",
  417     "config.changed.worker-setup-command",
  418     "config.changed.worker-setup-command2",
  419     "config.changed.releases",
  420     "config.changed.n-workers",
  421     "config.changed.lxd-remotes",
  422     "config.changed.mirror",
  423 )
  424 @when_any("config.set.nova-rcs", "config.set.lxd-remotes")
  425 def write_worker_config():
  
  and later on we can see /NET_NAME/ being replaced with
  config().get("net-name") however that isn't a trigger for this function.
+ 
  I think we'd want to add "config.changed.net-name" to @when_any.
  However, this is a bit complicated to test because we'd have to update
  the charm etc....

-- 
You received this bug notification because you are a member of
Canonical's Ubuntu QA, which is subscribed to Auto Package Testing.
https://bugs.launchpad.net/bugs/2023231

Title:
  autopkgtest-cloud-worker charm doesn't update worker config if net-
  name changes

Status in Auto Package Testing:
  New

Bug description:
  In charms/focal/autopkgtest-cloud-
  worker/reactive/autopkgtest_cloud_worker.py there is the following
  code:

  413 @when_any(
  414     "config.changed.worker-default-flavor",
  415     "config.changed.worker-big-flavor",
  416     "config.changed.worker-args",
  417     "config.changed.worker-setup-command",
  418     "config.changed.worker-setup-command2",
  419     "config.changed.releases",
  420     "config.changed.n-workers",
  421     "config.changed.lxd-remotes",
  422     "config.changed.mirror",
  423 )
  424 @when_any("config.set.nova-rcs", "config.set.lxd-remotes")
  425 def write_worker_config():

  and later on we can see /NET_NAME/ being replaced with
  config().get("net-name") however that isn't a trigger for this
  function.

  I think we'd want to add "config.changed.net-name" to @when_any.
  However, this is a bit complicated to test because we'd have to update
  the charm etc....

To manage notifications about this bug go to:
https://bugs.launchpad.net/auto-package-testing/+bug/2023231/+subscriptions



Follow ups