Skip to content

[Bug][API] DCIM/IPAM built-in CI models missing after fresh deployment causes 404 on pages #771

@lhy8888

Description

@lhy8888

Contact Details

security-automation@local

This bug is related to UI or API?

API

What happened?

On fresh deployments without full seed data, navigating to DCIM/IPAM pages shows errors such as:

  • The dcim model dcim_region does not exist
  • The subnet model ipam_subnet does not exist
  • The IP Address model ipam_address does not exist

In this state:

  • DCIM tree loading fails
  • adding data center returns 404
  • IPAM overview/address pages fail due to missing built-in CI types

Expected behavior:

  • deployment should provide an idempotent bootstrap path that creates required built-in CI types, attributes, and type relations for DCIM/IPAM.

Fix submitted:

  • added command: flask cmdb-bootstrap-builtin-models
  • command creates/repairs required built-in models and relations
  • command is idempotent and supports --repair-existing

Patch commit:

  • 4b7fcfe4a

PR containing fix:

Version

newest

What browsers are you seeing the problem on?

Chrome

Relevant log output

DCIM?? dcim_region ???
404 Not Found: ?????
???? ipam_subnet ???
IP???? ipam_address ???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions