Giter Site home page Giter Site logo

Comments (4)

nathangoulding avatar nathangoulding commented on August 27, 2024 1

@rgl Agreed this would be a good capability to create a default "wait-for-work" template + container that comes baked with Tinkerbell. We also need this in Packet, and I think would have broad appeal. Perhaps we can capture that in a separate issue.

from smee.

rgl avatar rgl commented on August 27, 2024

Instead of being a noop I would like to be able to specify a workflow for the machines that do not (yet) have a workflow. That way I can deal with them (e.g. run some kind of inventory application on them and show the machine in some kind of "un-provisioned/new" machines catalog).

from smee.

Cbkhare avatar Cbkhare commented on August 27, 2024

Updates so far.

-) Development & Testing activity:

  1. Changes to fetch worker id for given hardware. Dev + test (Done)

  2. Changes to fetch workflow for a given worker id. Dev - (Done) + Test in progress.

  3. Point 2 requires addition of a rpc client to fetch workflow, changes is required in both boots and tink. Actually, I was using existing client to fetch workflow and after i got go panic error i found, rpc client is currently specific to hardware clis. So, i added a rpc client for workflow. Dev (Done) + Boots Test (Done) + Tink in progress.

  4. Endpoints to fetch workflow using client. Dev (Done) + Test, in progress, currently fixing client in point3.

  5. Using above workflow client, i can fetch workflows and filter which are active. Once, my testing on clients and endpoints are completed i will complete this. Dev + Test (in progress)

I have raised below PR, for workflow client changes in boots and tink. Later, i will add my other changes in same branch.

96bb35d
tinkerbell/tink@f14f070

from smee.

Cbkhare avatar Cbkhare commented on August 27, 2024

Tested this PR along with tinkerbell/tink#200.

  • Testing with Active workflow :- completed

{"level":"info","ts":1593695857.2480636,"caller":"job/job.go:55","msg":"found active workflow for hardware 0eba0bf8-3772-4b4a-ab9f-6ebe93b90a94 with workflow id d0f730bc-894d-42de-8c37-9e423f5c761d","service":"github.com/tinkerbell/boots","pkg":"http","dhcp":"0eba0bf8-3772-4b4a-ab9f-6ebe93b90a94"}

  • Testing without active workflow:-completed

{"level":"info","ts":1593696050.6527524,"caller":"boots/dhcp.go:76","msg":"retrieved job is empty","service":"github.com/tinkerbell/boots","pkg":"main","type":"DHCPDISCOVER","mac":"08:00:27:00:00:01","err":"No active workflow found for hardware 0eba0bf8-3772-4b4a-ab9f-6ebe93b90a94"}

image

from smee.

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.