omniti-labs / pkg5

Note, this is a quasi-private archive for OmniTI, you probably want https://omniosce.org
1 stars 2 forks source link

zone install will traceback in pkg(5) if a configured publisher is AWOL #8

Open richlowe opened 8 years ago

richlowe commented 8 years ago

I happen to have tried to install a zone with one of the publisher configured in the GZ down. The zone install failed, and pkg(5) traced back.

Traceback (most recent call last):
  File "/usr/bin/pkg", line 6346, in handle_errors
    __ret = func(*args, **kwargs)
  File "/usr/bin/pkg", line 6252, in main_func
    return func(api_inst, pargs)
  File "/usr/bin/pkg", line 4110, in copy_publishers_from
    api_inst.refresh()
  File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 2797, in refresh
    pubs=pubs, immediate=immediate)
  File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 2821, in __refresh
    progtrack=self.__progresstracker)
  File "/usr/lib/python2.6/vendor-packages/pkg/client/image.py", line 3384, in refresh_publishers
    raise e
CatalogRefreshException

I'm unsure why zone install didn't crash gracefully when everything else seemed to.