GithubHelp home page GithubHelp logo

sapcc / baremetal_temper Goto Github PK

View Code? Open in Web Editor NEW
7.0 36.0 0.0 10.92 MB

Automatically inspects nodes via redfish and creates new nodes in ironic based on the redfish data.

License: Apache License 2.0

Go 98.95% Dockerfile 0.50% Makefile 0.55%
redfish ironic baremetal inspection golang

baremetal_temper's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

baremetal_temper's Issues

missing internal directory

During make on my machine I always get a error for a missing internal directory. As this does seem to exist can we either remove it from the makefile or create it?

make all
find: ‘internal’: Datei oder Verzeichnis nicht gefunden
GOOS=linux GOARCH=amd64 go build -ldflags "-X github.com/sapcc/baremetal_temper/pkg/baremetal_temper.VERSION=3f5c762a" -v -i -o bin/linux/temper ./cmd/temper
go: -i flag is deprecated
GOOS=linux GOARCH=amd64 go build -ldflags "-X github.com/sapcc/baremetal_temper/pkg/baremetal_temper.VERSION=3f5c762a" -v -i -o bin/linux/scheduler ./cmd/scheduler
go: -i flag is deprecated

Filter in imagetoid for property git_branch

The image IDs used should not only consider the age and name of the image, but also the properties. Proper images should have a property git_branch: master set. I think it should be possible to add this in the getimageid function somewhere here:

err = images.ListDetail(cl, images.ListOpts{Name: name, Status: "active"}).EachPage(

But I'm not fluent in go to propose this change myself

Missing file does not lead to an error

If the temper is not finding a file it does not give an error or even a warning but fails down the road with followup issues, example

go run main.go run -w 5 -t ironic.create -t ironic.validate -t ironic.prepare -q BB425 --node-status planned -c etc/config-eu-de-2.yml -s=false -l 10
WARN[0000] did not find boot image for cable check. run check without it 
ERRO[0000] error loading nodes: Get "https:///api/dcim/devices/?q=BB425&role=server&status=planned": http: no Host in request URL 
ERRO[0000] error loading nodes: Get "https:///api/dcim/devices/?q=BB425&role=server&status=planned": http: no Host in request URL

-> The filename was wrong thus the host was empty, it would be nice if there would be any kind of warning or error that the file wasn't found.

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.