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

qvm-block doesn't work with domU loop devices #3172

Closed
3hhh opened this Issue Oct 13, 2017 · 21 comments

Comments

@3hhh

3hhh commented Oct 13, 2017

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

4.0rc1
qubes-core-admin-client.noarch 4.0.7.0.1.fc25 from the current testing repo (it did work with e.g. 4.0.4)

Steps to reproduce the behavior:

  • Create a loop device in e.g. sys-usb.
  • Attempt to attach it to a different VM [domU] from dom0 using qvm-block a.

Expected behavior:

A device appears in [domU].

Actual behavior:

No device appears. qvm-block l however incorrectly shows a non-existing frontend device. In particular no error seems to be logged.

Related issues:

pretty identical bug in 3.2: #2126

General notes:

This is a regression from the current stable repo as it works in version 4.0.4 of the package.

If there's a workaround using e.g. xl block-attach or a downgrade method (cf. #3169), I'd be interested. I tried downgrading qubes-core-admin-client.noarch using yum, but that didn't pull the related dependencies.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Oct 13, 2017

Member

Check kernel messages in target domain - maybe there was some error while attaching the device.

Member

marmarek commented Oct 13, 2017

Check kernel messages in target domain - maybe there was some error while attaching the device.

@3hhh

This comment has been minimized.

Show comment
Hide comment
@3hhh

3hhh Oct 13, 2017

dmesg in domU shows absolutely nothing (last entry was something about iptables/netfilter that always comes up last during boot if I recall correctly).

It only happened after an update from 4.0.4 --> 4.0.7, i.e. I'm pretty sure it's a generic issue.

3hhh commented Oct 13, 2017

dmesg in domU shows absolutely nothing (last entry was something about iptables/netfilter that always comes up last during boot if I recall correctly).

It only happened after an update from 4.0.4 --> 4.0.7, i.e. I'm pretty sure it's a generic issue.

@3hhh

This comment has been minimized.

Show comment
Hide comment
@3hhh

3hhh Oct 14, 2017

Just changed the description as I noticed that #2126 is the 100% identical bug in 3.2, which now also pops up in 4.0rc1.

I also tested xl block-attach and it didn't work and caused the same issues as in #2126.

Contrary to rustybirds statements detaching using qvm-block works in 4.0rc1 though - it's just that nothing appears in domU.

3hhh commented Oct 14, 2017

Just changed the description as I noticed that #2126 is the 100% identical bug in 3.2, which now also pops up in 4.0rc1.

I also tested xl block-attach and it didn't work and caused the same issues as in #2126.

Contrary to rustybirds statements detaching using qvm-block works in 4.0rc1 though - it's just that nothing appears in domU.

@3hhh

This comment has been minimized.

Show comment
Hide comment
@3hhh

3hhh Oct 14, 2017

Ok, did some further testing:

  • unfortunately systemctl restart xendriverdomain after attaching doesn't fix the issue in domU
  • sudo journalctl -b0 shows absolutely nothing related in domU
  • this bug applies to domU AppVMs (I didn't test dispVMs)

3hhh commented Oct 14, 2017

Ok, did some further testing:

  • unfortunately systemctl restart xendriverdomain after attaching doesn't fix the issue in domU
  • sudo journalctl -b0 shows absolutely nothing related in domU
  • this bug applies to domU AppVMs (I didn't test dispVMs)
@3hhh

This comment has been minimized.

Show comment
Hide comment
@3hhh

3hhh Oct 14, 2017

P.S.: I tested with the debian-8 template VM.

3hhh commented Oct 14, 2017

P.S.: I tested with the debian-8 template VM.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Oct 14, 2017

Member

Just changed the description as I noticed that #2126 is the 100% identical bug in 3.2, which now also pops up in 4.0rc1.

We generally don't maintain duplicate issues for the same bug in different Qubes versions. I think that, in a case like this, we would usually reopen #2126 as a regression (if that's indeed what happened; if not, then that suggests it's not really a duplicate). Do you see any reason not to do this (in the future, anyway)?

Member

andrewdavidwong commented Oct 14, 2017

Just changed the description as I noticed that #2126 is the 100% identical bug in 3.2, which now also pops up in 4.0rc1.

We generally don't maintain duplicate issues for the same bug in different Qubes versions. I think that, in a case like this, we would usually reopen #2126 as a regression (if that's indeed what happened; if not, then that suggests it's not really a duplicate). Do you see any reason not to do this (in the future, anyway)?

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Oct 17, 2017

Member

Found the problem, it is in xen-libs package, not qubes-core-admin-client.
To confirm, check /var/log/xen/xldevd.log - you'll see something about inability to read script.

Member

marmarek commented Oct 17, 2017

Found the problem, it is in xen-libs package, not qubes-core-admin-client.
To confirm, check /var/log/xen/xldevd.log - you'll see something about inability to read script.

@3hhh

This comment has been minimized.

Show comment
Hide comment
@3hhh

3hhh Oct 18, 2017

@marmarek :

To confirm, check /var/log/xen/xldevd.log - you'll see something about inability to read script.

/var/log/xen/xldevd.log is a 0 bytes file in my AppVM, the archived ones as well. I guess I'll have to wait for the patch to go to the testing repo and check again then.

@andrewdavidwong : The root cause was a different one as the fix didn't work.

3hhh commented Oct 18, 2017

@marmarek :

To confirm, check /var/log/xen/xldevd.log - you'll see something about inability to read script.

/var/log/xen/xldevd.log is a 0 bytes file in my AppVM, the archived ones as well. I guess I'll have to wait for the patch to go to the testing repo and check again then.

@andrewdavidwong : The root cause was a different one as the fix didn't work.

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Oct 19, 2017

Automated announcement from builder-github

The package xen_4.8.2-8+deb8u1 has been pushed to the r4.0 testing repository for the Debian jessie template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

Automated announcement from builder-github

The package xen_4.8.2-8+deb8u1 has been pushed to the r4.0 testing repository for the Debian jessie template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot qubesos-bot referenced this issue in QubesOS/updates-status Oct 19, 2017

Closed

vmm-xen v4.8.2-8 (r4.0) #276

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Oct 19, 2017

Automated announcement from builder-github

The package xen_4.8.2-8+deb9u1 has been pushed to the r4.0 testing repository for the Debian stretch template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing stretch-testing, then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

Automated announcement from builder-github

The package xen_4.8.2-8+deb9u1 has been pushed to the r4.0 testing repository for the Debian stretch template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing stretch-testing, then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Oct 19, 2017

Automated announcement from builder-github

The package vmm-xen has been pushed to the r4.0 testing repository for the CentOS centos7 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

Automated announcement from builder-github

The package vmm-xen has been pushed to the r4.0 testing repository for the CentOS centos7 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Oct 19, 2017

Automated announcement from builder-github

The package python2-xen-4.8.2-8.fc25 has been pushed to the r4.0 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

Automated announcement from builder-github

The package python2-xen-4.8.2-8.fc25 has been pushed to the r4.0 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

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Oct 19, 2017

Automated announcement from builder-github

The package python2-xen-4.8.2-8.fc24 has been pushed to the r4.0 testing repository for the Fedora fc24 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

Automated announcement from builder-github

The package python2-xen-4.8.2-8.fc24 has been pushed to the r4.0 testing repository for the Fedora fc24 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Oct 19, 2017

Automated announcement from builder-github

The package python2-xen-4.8.2-8.fc25 has been pushed to the r4.0 testing repository for the Fedora fc25 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

Automated announcement from builder-github

The package python2-xen-4.8.2-8.fc25 has been pushed to the r4.0 testing repository for the Fedora fc25 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Oct 19, 2017

Automated announcement from builder-github

The package python2-xen-4.8.2-8.fc26 has been pushed to the r4.0 testing repository for the Fedora fc26 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

Automated announcement from builder-github

The package python2-xen-4.8.2-8.fc26 has been pushed to the r4.0 testing repository for the Fedora fc26 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

@3hhh

This comment has been minimized.

Show comment
Hide comment
@3hhh

3hhh Oct 19, 2017

@marmarek Yes, that fixed it, thanks a lot!

I also found the log line you mentioned in dom0 /var/log/qubes.

3hhh commented Oct 19, 2017

@marmarek Yes, that fixed it, thanks a lot!

I also found the log line you mentioned in dom0 /var/log/qubes.

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Dec 6, 2017

Automated announcement from builder-github

The package python2-xen-4.8.2-11.fc25 has been pushed to the r4.0 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

Automated announcement from builder-github

The package python2-xen-4.8.2-11.fc25 has been pushed to the r4.0 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

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Dec 6, 2017

Automated announcement from builder-github

The package xen_2001:4.8.2-11+deb8u1 has been pushed to the r4.0 stable repository for the Debian jessie template.
To install this update, please use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

Automated announcement from builder-github

The package xen_2001:4.8.2-11+deb8u1 has been pushed to the r4.0 stable repository for the Debian jessie template.
To install this update, please use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Dec 6, 2017

Automated announcement from builder-github

The package xen_2001:4.8.2-11+deb9u1 has been pushed to the r4.0 stable repository for the Debian stretch template.
To install this update, please use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

Automated announcement from builder-github

The package xen_2001:4.8.2-11+deb9u1 has been pushed to the r4.0 stable repository for the Debian stretch template.
To install this update, please use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Dec 6, 2017

Automated announcement from builder-github

The package python2-xen-4.8.2-11.fc24 has been pushed to the r4.0 stable repository for the Fedora fc24 template.
To install this update, please use the standard update command:

sudo yum update

Changes included in this update

Automated announcement from builder-github

The package python2-xen-4.8.2-11.fc24 has been pushed to the r4.0 stable repository for the Fedora fc24 template.
To install this update, please use the standard update command:

sudo yum update

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Dec 6, 2017

Automated announcement from builder-github

The package python2-xen-4.8.2-11.fc25 has been pushed to the r4.0 stable repository for the Fedora fc25 template.
To install this update, please use the standard update command:

sudo yum update

Changes included in this update

Automated announcement from builder-github

The package python2-xen-4.8.2-11.fc25 has been pushed to the r4.0 stable repository for the Fedora fc25 template.
To install this update, please use the standard update command:

sudo yum update

Changes included in this update

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