Ansible playbook to setup openupgrade infra #3807
Replies: 8 comments 7 replies
-
Hi. I'm interested to see that work. Regarding the PR, I'm not sure to know where to do it. (subdirectory, new branches, etc...) thanks ! |
Beta Was this translation helpful? Give feedback.
-
Hello, I like to thank @rvalyi and @pedrobaeza for bringing up some valuable and important questions. (Disclaimer. I am not an Odoo developer, just a simple Odoo CE user with Linux skills) A CEO of a successful company once told me: "whatever you do, never stall a decision. A bad decision is always, always, preferable to making no decision at all.". So, yes, there are many, many alternatives to automating OpenUpgrade. But leaving this decision hanging out there does the project IMHO a disservice. I am not saying the direction I have chosen is the best one. Far from it. But "it works for me (TM)". :-) The current version I uploaded (https://github.com/kwoot/automating-openupgrade) does not (yet) handle extra OCA modules (or from others). But it is possible to use the scripts and tweak them as you like. And it does away with the first boring part of setting everything up in a consistent way. Especially when you need to upgrade from Odoo8 al the way up to Odoo15. Of course I could just let the code stay at my repo, but then only a few people will probably find it. But I think it would be much better if it were somehow merged with this repo., say, under a subdirectory like "/contrib/ansible". Then maybe somebody can actually use this :-). I would love to see some global OCA database or web service or other solution (maybe it already exists?) that stores module info and also handles renaming and merging of modules between versions, but that is probably for another day. "Life is too short to spent it on upgrading stuff." So, please tell me your thoughts on this! Regards, Jeroen |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Okay, now I need some help: So, I have the easy stuff running, except for the extra installed addons part. For instance, suppose I find a warning in the migration that 'account_financial_report' is currently missing. This makes sense as it is not yet available in the migration toolchain. Regards, Jeroen |
Beta Was this translation helpful? Give feedback.
-
Hi. |
Beta Was this translation helpful? Give feedback.
-
It took some hacking, but I seem to have succeeded in migrating a production database from 12 to 13. |
Beta Was this translation helpful? Give feedback.
-
At the moment I was able to successfully migrate 12 to 13. |
Beta Was this translation helpful? Give feedback.
-
Okay. Declaring it a 1.0. Renamed addons can be handled. |
Beta Was this translation helpful? Give feedback.
-
Hi,
So it took me two weeks and now I have some Ansible playbooks and Linux shell scripts to configure a (Ubuntu) server to run OpenUpgrade stuff.
I just used a script to download a database and filestore from another server, and run the migration script.
No, it is not polished yet, but it seems to work and could use some feedback from people who actually know what they are doing (with regard to OpenUpgrade).
Of course I will also document my stuff.
Would anybody be interested if I created a PR for this, in ,say, an 'Ansible" subdirectory?
Looking forward to any and all responses.
Jeroen Baten
Beta Was this translation helpful? Give feedback.
All reactions