Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Bootstrap for DLM 3.0 and Correct Docs #586

Merged
merged 12 commits into from
Oct 24, 2024
Merged

Fix Bootstrap for DLM 3.0 and Correct Docs #586

merged 12 commits into from
Oct 24, 2024

Conversation

jdrew82
Copy link
Contributor

@jdrew82 jdrew82 commented Oct 24, 2024

This PR closes #585 and also updates the documentation on the Bootstrap integration to clarify installation and settings.

@jdrew82 jdrew82 added type: bug Issues/PRs addressing a bug. type: documentation Issues/PRs addressing documentation. integration: bootstrap Issues/PRs for Bootstrap integration labels Oct 24, 2024
@jdrew82 jdrew82 self-assigned this Oct 24, 2024
@jdrew82 jdrew82 requested review from bile0026 and a team as code owners October 24, 2024 13:33
SoftwareLCM = apps.get_model("nautobot_device_lifecycle_mgmt", "SoftwareLCM")
signal_to_model_mapping["software"] = SoftwareLCM
except LookupError as err:
print(f"Unable to find SoftwareLCM model from Device Lifecycle Management App. {err}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my mind we should either.

  • Rely on pyproject.toml to ensure we side step this issue by pinning / setting the proper versions of dependencies
  • Support both new and old versions

The print to me would not be easily seen, and as far as I can tell, not let the customer know the issue is exactly.

Copy link
Contributor Author

@jdrew82 jdrew82 Oct 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@itdependsnetworks The problem is this isn't a direct dependency. The Bootstrap integration supports both Golden Config and Device Lifecycle Management Apps. The problem is that with DLM's change to get rid of SoftwareLCM and SoftwareImageLCM we need to account for that with this integration as it was blowing up my testing of the DLM update.

Copy link
Contributor

@bile0026 bile0026 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small edit to docs but otherwise looks good to me.

docs/admin/integrations/bootstrap_setup.md Outdated Show resolved Hide resolved
Copy link
Contributor

@bile0026 bile0026 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jdrew82 jdrew82 merged commit cb072ee into develop Oct 24, 2024
15 checks passed
@jdrew82 jdrew82 deleted the patch-fix_585 branch October 25, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration: bootstrap Issues/PRs for Bootstrap integration type: bug Issues/PRs addressing a bug. type: documentation Issues/PRs addressing documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrading to DLM 3.0 Throws LookupError
3 participants