Code Monkey home page Code Monkey logo

inventory's Introduction

Logo of the project

Inventory

PRs Welcome GitHub license

Background/Overview

Contains CLI tools such as:

  1. Inventories server data
  2. Schedule a bunch of benchmarks to not overutilize CPU resources help to onboard machine.

Start using or developing locally

For more details please refer to documentation in the /docs

Feedback and Support

Feedback and contributions are always welcome!

Please report bugs, suggestions or post questions by opening a Github issue.

Licensing

Project is under Apache 2.0 License. Can be found here.

inventory's People

Contributors

dependabot[bot] avatar aiivashchenko avatar damyan avatar aobort avatar landeleih avatar ogbrugge-sap avatar florinpeter avatar gardener-robot avatar dmvolod avatar

Watchers

 avatar Andre Russ avatar

inventory's Issues

Numa meminfo hugepage size is incorrect

What happened:
I try to get Hugepagesize for numa node

rootPath := "/"
p := printer.NewSvc(true)
meminfo := mem.NewInfoSvc(p, rootPath)

numaStatSvc := numa.NewStatSvc(p)
numaNodeSvc := numa.NewNodeSvc(meminfo, numaStatSvc)
numaSvc := numa.NewSvc(p, numaNodeSvc, rootPath)
data, _ := numaSvc.GetData()
for _, d := range data {
fmt.Printf("Node%v Hugepagesize = %v\n", d.ID, d.Memory.Hugepagesize)
}

Output is:

Node0 Hugepagesize = 0
Node1 Hugepagesize = 0
#  /proc/meminfo | grep Hugepagesize
Hugepagesize:       2048 kB
# /sys/devices/system/node/node*/meminfo | grep Hugepagesize <- no info about Hugepagesize

What you expected to happen:
May be get same as in /sys/devices/system/node/node*/meminfo file or get system default value?

Incorrect LLDP and NDP output

What Happened?
In example you can see unnecessary empty element "- {}" after CLI work.

    count: 2
    nics:
    - lldps:
      - {}
      - capabilities:
        - Bridge
        - Router
        chassisId: 68:21:5f:47:16:6e
        portDescription: Ethernet14
        portId: Eth4/3
        systemDescription: 'Debian GNU/Linux 10 (buster) Linux 4.19.0-6-2-amd64 #1
          SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64'
        systemName: frankfurt-leaf01
      macAddress: 1c:34:da:57:3a:a8
      mtu: 9216
      name: ens5f0np0
      ndps:
      - {}
      - ipAddress: fe80::6a21:5fff:fe47:166e
        macAddress: 68:21:5f:47:16:6e
        state: Stale
      pciAddress: "0000:06:00.0"
      speed: 25000

How it should be?
Without empty element.

Reason:
After some research i think i found a root cause:
LLDP - https://github.com/onmetal/inventory/blob/main/pkg/crd/svc.go#L362-L364
NDP - https://github.com/onmetal/inventory/blob/main/pkg/crd/svc.go#L382-L384

PCI Address string is incorrect

What Happened?
Not valid PCI Address string on interface.

Example:

unable to save inventory resource: unhandled error on creation: Inventory.machine.onmetal.de "e8dee8c0-4984-11ea-af8b-0a94efa9371d" is invalid: spec.nics.nics.pciAddress: Invalid value: "1-1.6:1.0": spec.nics.nics.pciAddress in body should match '^([0-9a-fA-F]{4}:[0-9a-fA-F]{2}:[0-9a-fA-F]{2}.[0-9]{1})|([a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12})$'

How it should be?
Should ignore such interfaces.

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.