Closed sjg20 closed 2 months ago
It looks like the SunxiUSBLoader
isn't handled by your exporter correctly. It shouldn't pass the match:
properties to the coordinator, as the are only useful locally. Instead it should probably send the properties for a class derived from RemoteUSBResource
. This is handled by USBGenericExport
in the exporter.
We could improve the error message though. :)
OK thank you. Actually I am not even using my new code. Presumably I would need to rebase on top of the grpc branch?
OK thank you. Actually I am not even using my new code. Presumably I would need to rebase on top of the grpc branch?
Yes, or reduce your exporter config to only the resources supported in master. Note that we'll likely rebase the grpc branch again.
OK thanks.
I did a rebase, but I'm actually not sure how to run the exporter. Is there a docs update? I tried:
$ labgrid-coordinator -l kea:20408 INFO:root:loaded 34 place(s)
then
$ LG_COORDINATOR=kea:20408 labgrid-exporter ../cfg/export_kea.yaml exporter name: kea exporter hostname: kea resource config file: ../cfg/export_kea.yaml INFO:root:creating poll task Exporting completed (129 resources) ERROR:root:coordinator is unavailable: DNS resolution failed for kea:20408: C-ares status is not ARES_SUCCESS qtype=A name=kea is_balancer=0: Misformatted domain name
What is the format for LG_COORDINATOR?
Oh, nvm, it was a machine-configuration problem
So now I get:
aliases: []
comment:
tags: {}
matches: [{'exporter': 'kea', 'group': 'samus', 'cls': '*', 'name': None, 'rename': ''}]
acquired: ellesmere/sglass
acquired_resources: []
allowed: []
created: 1714407553.7462535
changed: 1718206688.5672858
reservation: None
labgrid-client: error: binding NetworkPowerDriver failed: no NetworkPowerPort resource found in Target(name='samus', env=Environment(config_file='/vid/software/devel/ubtest/lab/env_rpi_try.cfg'), var_dict=None)
This may be caused by disconnected exporter or wrong match entries.
You can use the 'show' command to review all matching resources.
aliases: []
comment:
tags: {}
matches: [{'exporter': 'kea', 'group': 'samus', 'cls': '*', 'name': None, 'rename': ''}]
acquired: None
acquired_resources: []
allowed: []
created: 1714407553.7462535
changed: 1718206688.8642414
reservation: None
I have:
samus:
location: lab
Servo:
servo_name: samus
serial: 686203-00047
port: 9900
board: samus
ServoSerialPort:
servo_name: samus
ServoReset:
servo_name: samus
NetworkPowerPort:
## dli_second_port3
model: digitalloggers_http
host: http://admin:1234@192.168.4.22
index: 3
SFEmulator:
serial: DP025143
chip: W25Q64CV
and
samus:
resources:
RemotePlace:
name: samus
features:
- flash
- build
- variants ## chromebook_samus_tpl
drivers:
NetworkPowerDriver: {}
SerialDriver: {}
ServoDriver: {}
ServoResetDriver: {}
SFEmulatorDriver: {}
UBootDriver:
prompt: '=>'
login_timeout: 25
ShellDriver:
prompt: 'root@\w+:[^ ]+ '
login_prompt: ' login: '
username: 'root'
UBootStrategy: {}
UBootProviderDriver:
board: chromebook_samus
binman_indir: /vid/software/devel/samus/bin
UBootWriterDriver:
method: em100
There's still something broken with acquiring the resources on the exporter when locking places, which I'm looking at now. I'll keep you updated on IRC/Matrix.
I just tried the latest grpc branch and it works! So I am closing this.
This is what I got trying the new grpc branch: