Playbook Upgrade Odoo XX.0
The playbook supports two modes: test and production. When executing the production mode the production database will be replaced with the upgraded database at the very end.
Prepare 📝
Copy the production database to the upgrade environment.
task upgrade-odoo acme dump
task upgrade-odoo acme filestore
task upgrade-odoo acme dropUpgrade ⬆️
Run the test upgrade.
task upgrade-odoo acme test
task upgrade-odoo acme clear-assets
task upgrade-odoo acme init
task upgrade-odoo acme uninstall
task upgrade-odoo acme update
task upgrade-odoo acme configure-test
task upgrade-odoo acme restartConfigure ⚙️
Update snippets.
source task load-env acme
task disable-snippet $TARGET_HOST snippets/sale.report_saleorder_document.add_note_space.xml
task install-snippet $TARGET_HOST snippets/sale.report_saleorder_document.add_signature_note.xmlTesting 🔬
Run the test cases and process the feedback.
Production 🚀
Rename the databases and filestore if production mode.
task upgrade-odoo acme rename-productionUpdate the proxy configuration and update Ansible inventory.
Cleanup 🧹
Remove the outdated Odoo container, volume, data and database.
Merge the upgrade host definition into the main host definition.
Troubleshooting 💡
Document and resolve upgrade issues.
Title of the issue 🟥
Problem
How to reproduce the problem?
Solution
What is the solution to resolve the issue?