Skip to content

[BUG] Scanned Redfish devices not saved to cache by default #123

@davidallendj

Description

@davidallendj

Describe the bug
When performing a scan, the cache database is not created in a predictable manner. By default, it should be found at /tmp/$USER/magellan/assets.db when the --cache flag is not set.

To Reproduce
Steps to reproduce the behavior:

  1. Clone and build from main branch
  2. Run command (used with emulator): magellan scan --subnet 172.21.0.0/24 --port 5000 --include=bmcs -l debug

Expected behavior
An SQLite database should be created in the default location with the reproducible steps above. The database should only not be created when the disable-cache flag is set.

Check the default cache location with ls /tmp/$USER/magellan after running steps to reproduce. You should see a assets.db file there.

Additional context
The cache database is strangely created only when setting the -F format flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions