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

qubes-manager: TypeError: cannot concatenate 'str' and 'QubesAppVM' objects. #2156

Closed
dingensundso opened this Issue Jul 7, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@dingensundso

Qubes OS version (e.g., R3.1):

R3.1

When trying to shutdown a VM which serves block-devices to other VMs, qubes-manager throws the following error:

  ----
  line: msg += ', '.join(["<b>"+v+"</b>("+d+")" for (d,v) in serves_for ])
  func: check_if_serves_as_backend
  line no.: 157
  file: /usr/lib64/python2.7/site-packages/qubesmanager/block.py
  ----
  line: self.blk_manager.check_if_serves_as_backend(vm)
  func: action_shutdownvm_triggered
  line no.: 1227
  file: /usr/lib64/python2.7/site-packages/qubesmanager/main.py

Expected behavior:

Get a normal error message.

Actual behavior:

See above.

Steps to reproduce the behavior:

  1. Pass usb- or other storage controller to appvm1.
  2. qvm-block -a appvm2 appvm1:md-42 (or whatever your storage device is named)
  3. in qubes-manager shutdown appvm1

General notes:

Couldn't find any reference to this error, so I hope this issue is not a duplicate :)
I think this would be fixed by changing v to v.name in /usr/lib64/python2.7/site-packages/qubesmanager/block.py:157

< msg += ', '.join(["<b>"+v+"</b>("+d+")" for (d,v) in serves_for ])
> msg += ', '.join(["<b>"+v.name+"</b>("+d+")" for (d,v) in serves_for ])

@dingensundso dingensundso referenced this issue in QubesOS/qubes-manager Jul 7, 2016

Merged

fix TypeError in check_if_serves_as_backend #7

@dingensundso

This comment has been minimized.

Show comment
Hide comment
@dingensundso

dingensundso Jul 7, 2016

Tested my proposed fix locally and it works. Now I get a warning dialog and after that a confimation dialog.

Tested my proposed fix locally and it works. Now I get a warning dialog and after that a confimation dialog.

@marmarek marmarek closed this Jul 7, 2016

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jul 19, 2016

Member

Automated announcement from builder-github

The package qubes-manager-3.2.3-1.fc23 has been pushed to the r3.2 testing repository for dom0.
To test this update, please install it with the following command:

sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing

Changes included in this update

Member

marmarek commented Jul 19, 2016

Automated announcement from builder-github

The package qubes-manager-3.2.3-1.fc23 has been pushed to the r3.2 testing repository for dom0.
To test this update, please install it with the following command:

sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing

Changes included in this update

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Aug 31, 2016

Member

Automated announcement from builder-github

The package qubes-manager-3.2.3-1.fc23 has been pushed to the r3.2 stable repository for dom0.
To install this update, please use the standard update command:

sudo qubes-dom0-update

Or update dom0 via Qubes Manager.

Changes included in this update

Member

marmarek commented Aug 31, 2016

Automated announcement from builder-github

The package qubes-manager-3.2.3-1.fc23 has been pushed to the r3.2 stable repository for dom0.
To install this update, please use the standard update command:

sudo qubes-dom0-update

Or update dom0 via Qubes Manager.

Changes included in this update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment