Salt / qubesctl errors when configuring USB

49 views
Skip to first unread message

Chris Laprise

unread,
Jan 15, 2017, 12:06:20 AM1/15/17
to qubes-users, Marek Marczykowski-Górecki
Per my post on Qubes Issues...

|$ sudo qubesctl top.enable qvm.f24-clone [ERROR ] An un-handled
exception was caught by salt's global exception handler:
SaltRenderError: Could not find relpath for qvm.f24-clone.top Traceback
(most recent call last): File "/bin/qubesctl", line 91, in <module>
salt_call() File "/usr/lib/python2.7/site-packages/salt/scripts.py",
line 227, in salt_call client.run() File
"/usr/lib/python2.7/site-packages/salt/cli/call.py", line 71, in run
caller.run() File "/usr/lib/python2.7/site-packages/salt/cli/caller.py",
line 236, in run ret = self.call() File
"/usr/lib/python2.7/site-packages/salt/cli/caller.py", line 138, in call
ret['return'] = func(*args, **kwargs) File
"/srv/salt/_extensions/modules/topd.py", line 74, in enable return
TopUtils(__opts__, **kwargs).enable(paths, saltenv) File
"/srv/salt/_extensions/utils/toputils.py", line 600, in enable toppaths,
unseen = self.prepare_paths(paths) File
"/srv/salt/_extensions/utils/toputils.py", line 453, in prepare_paths
toppath = self.toppath(path) File
"/srv/salt/_extensions/utils/toputils.py", line 332, in toppath saltenv
= saltenv or self.saltenv(path, saltenv) File
"/srv/salt/_extensions/utils/pathutils.py", line 127, in saltenv relpath
= self.relpath(path) File "/srv/salt/_extensions/utils/pathutils.py",
line 485, in relpath return self.path(path, saltenv) File
"/srv/salt/_extensions/utils/toputils.py", line 269, in path return
super(TopUtils, self).path(path, saltenv, path_type=path_type) File
"/srv/salt/_extensions/utils/pathutils.py", line 444, in path raise
SaltRenderError('Could not find relpath for {0}'.format(path))
SaltRenderError: Could not find relpath for qvm.f24-clone.top Traceback
(most recent call last): File "/bin/qubesctl", line 91, in <module>
salt_call() File "/usr/lib/python2.7/site-packages/salt/scripts.py",
line 227, in salt_call client.run() File
"/usr/lib/python2.7/site-packages/salt/cli/call.py", line 71, in run
caller.run() File "/usr/lib/python2.7/site-packages/salt/cli/caller.py",
line 236, in run ret = self.call() File
"/usr/lib/python2.7/site-packages/salt/cli/caller.py", line 138, in call
ret['return'] = func(*args, **kwargs) File
"/srv/salt/_extensions/modules/topd.py", line 74, in enable return
TopUtils(__opts__, **kwargs).enable(paths, saltenv) File
"/srv/salt/_extensions/utils/toputils.py", line 600, in enable toppaths,
unseen = self.prepare_paths(paths) File
"/srv/salt/_extensions/utils/toputils.py", line 453, in prepare_paths
toppath = self.toppath(path) File
"/srv/salt/_extensions/utils/toputils.py", line 332, in toppath saltenv
= saltenv or self.saltenv(path, saltenv) File
"/srv/salt/_extensions/utils/pathutils.py", line 127, in saltenv relpath
= self.relpath(path) File "/srv/salt/_extensions/utils/pathutils.py",
line 485, in relpath return self.path(path, saltenv) File
"/srv/salt/_extensions/utils/toputils.py", line 269, in path return
super(TopUtils, self).path(path, saltenv, path_type=path_type) File
"/srv/salt/_extensions/utils/pathutils.py", line 444, in path raise
SaltRenderError('Could not find relpath for {0}'.format(path))
salt.exceptions.SaltRenderError: Could not find relpath for
qvm.f24-clone.top DOM0 configuration failed, not continuing |


Chris

Chris Laprise

unread,
Jan 15, 2017, 4:10:55 PM1/15/17
to qubes-users, Marek Marczykowski-Górecki
The salt failure occurs with any type of VM. This may be due to some
aspect of my dom0 configuration that changed, because when sys-usb was
initially setup the qubesctl commands worked.

Chris

Marek Marczykowski-Górecki

unread,
Jan 15, 2017, 5:02:34 PM1/15/17
to Chris Laprise, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Care to share actual configuration (including where you've placed it)?
The error message clearly is about some file not being found.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJYe/FzAAoJENuP0xzK19csl7EH/Aj6U0943iY+e0FU1KQrVLz0
pwHRBURR3D74RXGEm9r8s2w6kun48UkFRC1sOHr88P6g6gREWzf4wCW2B8m7SdUi
QebiVtRUm3aRqhtvlj+U5iKT4WlEeIzQ3GIyL4UMmuUh263rwZRu/QU0IUnHrDSr
dzaQt3ulwGK2XFIZCzjIJBTxJHErJUtrpEx+M796AOheOrB0T9HapNj/h8t4d0hD
Rt5VDgtrRLBTO/auYl/zLmQlzeCXyX10NxJtnmFnxLzfs6SKLG0kWftgR3Aic4jk
EM3EhIM+RvDyRh8GYO2ojCCtXUbL9UvSFfYwwCqvrpFkPqorJ1NjbR2moOP+sUs=
=be8V
-----END PGP SIGNATURE-----

Chris Laprise

unread,
Jan 15, 2017, 8:02:28 PM1/15/17
to Marek Marczykowski-Górecki, qubes-users
On 01/15/2017 05:02 PM, Marek Marczykowski-Górecki wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> On Sun, Jan 15, 2017 at 04:10:49PM -0500, Chris Laprise wrote:
>> The salt failure occurs with any type of VM. This may be due to some aspect
>> of my dom0 configuration that changed, because when sys-usb was initially
>> setup the qubesctl commands worked.
> Care to share actual configuration (including where you've placed it)?
> The error message clearly is about some file not being found.
>

I didn't mean to suggest I changed it *intentionally*. It could be a bug
or a side-effect of something else I did.

I have customized dom0 in some ways, such as using the 4.8 kernel and
changing auth settings according to the vm-sudo doc. At some point I did
upgrade dom0 with 'testing', but later continued updating with stable.


Chris

Marek Marczykowski-Górecki

unread,
Jan 15, 2017, 8:26:02 PM1/15/17
to Chris Laprise, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Still - I can't help you without seeing actual configuration causing
this issue. You've surely modified something, because default configuration
don't have any reference to name "qvm.f24-clone.top".

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJYfCEkAAoJENuP0xzK19csdzwH/1KPMab5dHquNC3S6WRx9TpA
e71loEiBXAl86NuEQBy/H0qKsmSC4rR52r1aBgJ42F0352hSsnh1R00zWfVw5k1b
qatFXajDsiq2ADpvY4ftsmTp67n6LfslrTRcIqTMYpZ4KQ2cqUYgxxP7vcmpXCoQ
N9mYU9pGa6wVzLeAMihC1Kbt79uIXcZMZjsYqSBtJX6rQjVdk/M0O1tGdPU0C5sR
tbmEGVnIcpSR3ELeKQrDfBuXf26oDMZzMKxuCS6X2wwpm6GcgXnQo6tGRuBwSjow
PMdciCDj4Qe5p1jJ9qDGya5mergsL8kAfqMSkQ+Y8phSIKKp8nMeSfckIHfk6rg=
=pK4e
-----END PGP SIGNATURE-----

Chris Laprise

unread,
Jan 16, 2017, 12:10:05 AM1/16/17
to Marek Marczykowski-Górecki, qubes-users
On 01/15/2017 08:25 PM, Marek Marczykowski-Górecki wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> On Sun, Jan 15, 2017 at 08:02:17PM -0500, Chris Laprise wrote:
>> On 01/15/2017 05:02 PM, Marek Marczykowski-Górecki wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA256
>>>
>>> On Sun, Jan 15, 2017 at 04:10:49PM -0500, Chris Laprise wrote:
>>>> The salt failure occurs with any type of VM. This may be due to some aspect
>>>> of my dom0 configuration that changed, because when sys-usb was initially
>>>> setup the qubesctl commands worked.
>>> Care to share actual configuration (including where you've placed it)?
>>> The error message clearly is about some file not being found.
>>>
>> I didn't mean to suggest I changed it *intentionally*. It could be a bug or
>> a side-effect of something else I did.
>>
>> I have customized dom0 in some ways, such as using the 4.8 kernel and
>> changing auth settings according to the vm-sudo doc. At some point I did
>> upgrade dom0 with 'testing', but later continued updating with stable.
> Still - I can't help you without seeing actual configuration causing
> this issue. You've surely modified something, because default configuration
> don't have any reference to name "qvm.f24-clone.top".
>

The 'qvm.f24-clone' part is supposed to refer to a VM, but I see now
that is not the design.... the 'qvm.sys-usb' is some coded preset that
qubesctl uses. Please disregard.

Chris

Marek Marczykowski-Górecki

unread,
Jan 16, 2017, 5:10:57 AM1/16/17
to Chris Laprise, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

You may want to read https://www.qubes-os.org/doc/salt/, then see
/srv/formulas/base/virtual-machines-formula/qvm/sys-usb.*
You can create own configuration similar to this one.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJYfJwqAAoJENuP0xzK19csbpQH/0eRZmtqxCDqcYdusNdJ9CyX
DgMUSXmQ7qiFQ1hqXEUJ8q5OlvsXNVgHeWK2m3D/A3H7y1wYBQOxUs3uA1uYwz72
Q/RiUyjmkskYrwGgXkN5ym21iX+pQislQOS6fl8Y4Q+dScjRp8mV1cYwar0PWWSL
f+BkdChwMzIUztHa93h2HtkDKeLjgsN/1LCQjSrQJYbvJt+e7mq791sygMtExjYT
bWyHRV+nuxJIR9/b5yysSBdCy9Kd8bqOKNK5AsGae+rZi9v4BrnmM1bV7yRES58t
FGxHLy5rsqofQM6CTUY6X2Al6b7/fkd5imcmWJIZgi0SzCodBEGZ8n6780SPRBc=
=Slms
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages