Git Product home page Git Product logo

Comments (9)

sjg20 avatar sjg20 commented on June 30, 2024

asc.txt

from labgrid.

jluebbe avatar jluebbe commented on June 30, 2024

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.

sjg20 avatar sjg20 commented on June 30, 2024

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.

jluebbe avatar jluebbe commented on June 30, 2024

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.

sjg20 avatar sjg20 commented on June 30, 2024

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.

sjg20 avatar sjg20 commented on June 30, 2024

Oh, nvm, it was a machine-configuration problem

from labgrid.

sjg20 avatar sjg20 commented on June 30, 2024

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.

jluebbe avatar jluebbe commented on June 30, 2024

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.

sjg20 avatar sjg20 commented on June 30, 2024

I just tried the latest grpc branch and it works! So I am closing this.

from labgrid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.