Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sf-client crash when showing an instance #253

Closed
mikalstill opened this issue Aug 1, 2020 · 0 comments
Closed

sf-client crash when showing an instance #253

mikalstill opened this issue Aug 1, 2020 · 0 comments

Comments

@mikalstill
Copy link
Collaborator

sf-client instance create training_ubuntu_16 2 2048 -D type=disk,size=20,base=XXX -N network_uuid=a553c8ab-f8c5-4ff9-96b2-08d89e148a2d,macaddress=00:0c:29:2e:ad:06,model=e1000 -V model=cirrus,memory=32768 --namespace XXX-000 -p sf-1
uuid        : fd837f38-45a7-49eb-b3bd-82ae57da0389
name        : training_ubuntu_16
namespace   : XXX-000
cpus        : 2
memory      : 2048
Traceback (most recent call last):
  File "/usr/local/bin/sf-client", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.6/dist-packages/shakenfist/client/main.py", line 27, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/shakenfist/client/main.py", line 880, in instance_create
    namespace=namespace, video=video))
  File "/usr/local/lib/python3.6/dist-packages/shakenfist/client/main.py", line 659, in _show_instance
    _pretty_dict(15, i['disk_spec'], d_space)))
  File "/usr/local/lib/python3.6/dist-packages/shakenfist/client/main.py", line 608, in _pretty_dict
    ret += _pretty_data(rows[0], space_rules)
  File "/usr/local/lib/python3.6/dist-packages/shakenfist/client/main.py", line 600, in _pretty_data
    ret += key + '=' + str(row[key]).ljust(space_rules[key]) + '  '
KeyError: 'bus'
@mikalstill mikalstill self-assigned this Aug 1, 2020
mikalstill added a commit that referenced this issue Aug 1, 2020
mandoonandy pushed a commit that referenced this issue Aug 2, 2020
* Tweak config drive to remove Ubuntu 18.04 parse errors.

We needed to change the interface type. Fixes #250.

* Increase gunicorn timeout to fix Ubuntu downloads.

* Keep track of networks a bit better.

* Handle the network being entirely missing.

* Remove stray networks.

Fixes #161.

* Remove network interfaces which are not associated with a running instance.

Fixes #252.

* Handle missing fields in sf-client pretty output.

Fixes #253.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants