[Bug 1466124] [NEW] Please provide a way to get the progress in used from a plugin

Michael Vogt michael.vogt at canonical.com
Wed Jun 17 15:11:35 UTC 2015


Public bug reported:

For snappy we use a plugin to apply the upgrade.  I.e. we set:
"""
[hooks]
apply: ubuntucoreupgrader.apply.ApplyUpgrade
"""

We also send progress data in the form of spinner json progress
data. In our system-image-snappy-cli  fork we set what progress
into the config and query it later from the plugin to know if
it should send progress reporting or not. It would be nice if
s-i 3.0 could do the same.

I hope this bugreport is not too confused, if it is, please let me know.

It might be as simple as in main.py:
"""
config.progress += meter
"""

** Affects: system-image (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to system-image in Ubuntu.
https://bugs.launchpad.net/bugs/1466124

Title:
  Please provide a way to get the progress in used from a plugin

Status in system-image package in Ubuntu:
  New

Bug description:
  For snappy we use a plugin to apply the upgrade.  I.e. we set:
  """
  [hooks]
  apply: ubuntucoreupgrader.apply.ApplyUpgrade
  """

  We also send progress data in the form of spinner json progress
  data. In our system-image-snappy-cli  fork we set what progress
  into the config and query it later from the plugin to know if
  it should send progress reporting or not. It would be nice if
  s-i 3.0 could do the same.

  I hope this bugreport is not too confused, if it is, please let me
  know.

  It might be as simple as in main.py:
  """
  config.progress += meter
  """

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/system-image/+bug/1466124/+subscriptions



More information about the foundations-bugs mailing list