Comments (11)
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.
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.
@jdrew82 One thing I forgot to mention is that we are using the Nautobot Docker image.
from nautobot-plugin-ssot-arista-cloudvision.
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.
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.
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.
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.
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.
I think that #143 and this one are related.
from nautobot-plugin-ssot-arista-cloudvision.
This should be resolved now. Please confirm you're no longer seeing the issue.
from nautobot-plugin-ssot-arista-cloudvision.
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)
- Invalid Platforms Imported HOT 1
- An exception occurred: KeyError: 'enabledState'
- prefix 'arista_' is missing on custom fields HOT 1
- Traceback KeyError: 'mtu' HOT 19
- Job run fail HOT 15
- Getting Interfaces Missing Link/Operational Status
- Job run failed, but Dry run is successful HOT 13
- Add CVP Controller Device and Relationship to Managed Devices
- Import Relevant Device Hardware HOT 1
- Add custom_fields to have arista_topology_rack HOT 4
- Add arista_toplogy_pod in custom_field HOT 3
- cloudvision -> nautobot indexerror: list index out of range HOT 5
- 802.1q mode is wrong HOT 14
- Collection arista.tag.v1 will be deprecated soon HOT 1
- CustomField issues after upgrading to 1.5.0
- Sync SSOT very slow HOT 8
- Error running CloudVision ⟹ Nautobot job on 1.6.0 HOT 19
- Use filter instead of test in loop HOT 2
- Customfield Sync-failure HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nautobot-plugin-ssot-arista-cloudvision.