Comments (9)
from labgrid.
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. :)
from labgrid.
OK thank you. Actually I am not even using my new code. Presumably I would need to rebase on top of the grpc branch?
from labgrid.
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.
from labgrid.
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?
from labgrid.
Oh, nvm, it was a machine-configuration problem
from labgrid.
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:[email protected]
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
from labgrid.
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.
from labgrid.
I just tried the latest grpc branch and it works! So I am closing this.
from labgrid.
Related Issues (20)
- write_file does not properly escape file names HOT 5
- Exception when sending "purge" to a remote serial driver HOT 4
- linux shell prompt not found HOT 6
- ManagedFile uses `/var/cache/labgrid/..` sync path even when resource is remote HOT 5
- add option to use `scp` instead of `rsync` in `ManagedFile` for syncing files to minimal targets
- Missing serial output at start when using USB loader HOT 6
- linter warnings since pylint 3.2.0 HOT 1
- Use black or ruff formatter HOT 1
- Remote NetworkPowerPort HOT 1
- SerialDriver: BindingErrors hidden by AttributeError caused by not (yet) set target HOT 1
- Timeout Parameter for "labgrid-client reserve" HOT 1
- Labgrid exporter ser2net fails with Invalid accepter port name/number
- Ad-hoc TFTP server driver HOT 2
- ImportError: cannot import name 'identity_realm_name_category' from 'autobahn.wamp.message' HOT 2
- (grpc) No module named 'labgrid.remote.generated' HOT 1
- How to best add support for tp link switches?
- Assume port 20408 for GRPC exporter HOT 2
- "labgrid-client -p Place power get" does not find specified usb port
- Labgird Client API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labgrid.