Code Monkey home page Code Monkey logo

Comments (11)

jdrew82 avatar jdrew82 commented on June 23, 2024 1

Let me see if I can recreate the issue then. It sounds like the signal that creates the CustomFields is being triggered after the upgrade and that shouldn't happen.

from nautobot-plugin-ssot-arista-cloudvision.

jdrew82 avatar jdrew82 commented on June 23, 2024

This would most likely be because we're using signals to create the Custom Fields upon the initial start of the App. I don't believe you should need to run the post_migrate command to force them to be created.

from nautobot-plugin-ssot-arista-cloudvision.

erjac77 avatar erjac77 commented on June 23, 2024

@jdrew82 One thing I forgot to mention is that we are using the Nautobot Docker image.

from nautobot-plugin-ssot-arista-cloudvision.

jdrew82 avatar jdrew82 commented on June 23, 2024

If you're using Docker containers I'd advise that you rebuild them. You shouldn't need to run any post_migrate commands after upgrading.

from nautobot-plugin-ssot-arista-cloudvision.

erjac77 avatar erjac77 commented on June 23, 2024

We build Nautobot with all the plugins according to the instructions found here:
https://github.com/nautobot/nautobot-docker-compose/tree/main/plugin_example

Moreover, I don't see in the docs an option to skip the post_migrate command.

from nautobot-plugin-ssot-arista-cloudvision.

jdrew82 avatar jdrew82 commented on June 23, 2024

Perhaps I misunderstood. I thought from your original comment that you had executed the post_migrate_create_custom_fields after you had upgraded, ie rebuilt your containers for the newer version. If you're stating that you had simply started the containers and that command ran automatically and threw the error, that's different.

from nautobot-plugin-ssot-arista-cloudvision.

erjac77 avatar erjac77 commented on June 23, 2024

Sorry for the misunderstood. It's the latter.

If you're stating that you had simply started the containers and that command ran automatically and threw the error, that's different.

from nautobot-plugin-ssot-arista-cloudvision.

jdrew82 avatar jdrew82 commented on June 23, 2024

I've attempted to recreate the issue with a fresh environment and I'm not seeing the error that you are. I used the development environment in this project to first build using Nautobot 1.4.7 and python 3.9 and then updated it to use Nautobot 1.5.7. I'm not seeing any post_migrate command being run. I do see some migrations but nothing that triggers the error you're citing.

aristacv-sync-nautobot-1       | Running migrations:
aristacv-sync-nautobot-1       |   Applying extras.0049_alter_tag_slug... OK
aristacv-sync-nautobot-1       |   Applying extras.0050_customfield_grouping... OK
aristacv-sync-nautobot-1       |   Applying extras.0051_add_job_task_queues... OK
aristacv-sync-nautobot-1       |   Applying dcim.0017_locationtype_nestable... OK
aristacv-sync-nautobot-1       |   Applying dcim.0018_device_redundancy_group... OK
aristacv-sync-nautobot-1       |   Applying dcim.0019_device_redundancy_group_data_migration...
aristacv-sync-nautobot-1       |     Model dcim.DeviceRedundancyGroup
aristacv-sync-nautobot-1       |       Linking to existing status Planned (planned)
aristacv-sync-nautobot-1       |       Linking to existing status Staging (staging)
aristacv-sync-nautobot-1       |       Linking to existing status Active (active)
aristacv-sync-nautobot-1       |       Linking to existing status Decommissioning (decommissioning)
aristacv-sync-nautobot-1       |       Linking to existing status Retired (retired)
aristacv-sync-nautobot-1       |     Added 0, linked 5 status records
aristacv-sync-nautobot-1       |  OK
aristacv-sync-nautobot-1       |   Applying extras.0052_configcontext_device_redundancy_groups... OK
aristacv-sync-nautobot-1       |   Applying extras.0053_relationship_required_on... OK
aristacv-sync-nautobot-1       |   Applying taggit.0004_alter_taggeditem_content_type_alter_taggeditem_tag... OK
aristacv-sync-nautobot-1       |   Applying taggit.0005_auto_20220424_2025... OK
aristacv-sync-nautobot-1       | 18:27:20.504 INFO    nautobot.extras.utils utils.py        refresh_job_model_from_job_class() :
aristacv-sync-nautobot-1       |   Refreshed Job "SSoT - Arista CloudVision: CloudVision ⟹ Nautobot" from <plugins: CloudVisionDataSource>
aristacv-sync-nautobot-1       | 18:27:20.509 INFO    nautobot.extras.utils utils.py        refresh_job_model_from_job_class() :
aristacv-sync-nautobot-1       |   Refreshed Job "SSoT - Arista CloudVision: Nautobot ⟹ CloudVision" from <plugins: CloudVisionDataTarget>
aristacv-sync-nautobot-1       | 18:27:20.513 INFO    nautobot.extras.utils utils.py        refresh_job_model_from_job_class() :
aristacv-sync-nautobot-1       |   Refreshed Job "Device/Software Lifecycle Reporting: Device Software Validation Report" from <plugins: DeviceSoftwareValidationFullReport>
aristacv-sync-nautobot-1       | 18:27:20.526 INFO    nautobot.extras.utils utils.py        refresh_job_model_from_job_class() :
aristacv-sync-nautobot-1       |   Refreshed Job "Device/Software Lifecycle Reporting: Inventory Item Software Validation Report" from <plugins: InventoryItemSoftwareValidationFullReport>
aristacv-sync-nautobot-1       | 18:27:20.547 INFO    nautobot.extras.utils utils.py        refresh_job_model_from_job_class() :
aristacv-sync-nautobot-1       |   Refreshed Job "CVE Tracking: Generate Vulnerabilities" from <plugins: GenerateVulnerabilities>

Can you share the logs from your container startup that shows the error occurring? If nothing else, you could delete the CustomFields and just restart and that should resolve it.

from nautobot-plugin-ssot-arista-cloudvision.

jdrew82 avatar jdrew82 commented on June 23, 2024

I think that #143 and this one are related.

from nautobot-plugin-ssot-arista-cloudvision.

jdrew82 avatar jdrew82 commented on June 23, 2024

This should be resolved now. Please confirm you're no longer seeing the issue.

from nautobot-plugin-ssot-arista-cloudvision.

erjac77 avatar erjac77 commented on June 23, 2024

Hi Justin, sorry for the delay. I can't share my container logs because we dropped and rebuilt the database and I couldn't find time to recreate the issue. Problem #143 and this one seem definitely related. Thanks for the fix.

from nautobot-plugin-ssot-arista-cloudvision.

Related Issues (20)

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.