<div dir="ltr">Maybe you can get your way around this procedure:<div><br></div><div><a href="https://github.com/openstack/ansible-role-openstack-operations/blob/master/README-backup-ops.md">https://github.com/openstack/ansible-role-openstack-operations/blob/master/README-backup-ops.md</a><br></div><div><br></div><div>Also, you can tar.gz the containers or take snapshots so you can rollback.</div><div><br></div><div>Cheers!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 1, 2023 at 6:47 AM Dmitriy Rabotyagov <<a href="mailto:noonedeadpunk@gmail.com">noonedeadpunk@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey,<br>
<br>
Regarding rollaback of upgrade in OSA we indeed don't have any good<br>
established/documented process for that. At the same time it should be<br>
completely possible with some "BUT". It also depends on what exactly<br>
you want to rollback - roles, openstack services or both. As OSA roles<br>
can actually install any openstack service version.<br>
<br>
We keep all virtualenvs from the previous version, so during upgrade<br>
we build just new virtualenvs and reconfigure systemd units to point<br>
there. So fastest way likely would be to just edit systemd unit files<br>
and point them to old venv version and reload systemd daemon and<br>
service and restore DB from backup of course.<br>
You can also define <service>_venv_tag (ie `glance_venv_tag`) to the<br>
old OSA version you was running and execute openstack-ansible<br>
os-<service>-install.yml --tags systemd-service,uwsgi - that in most<br>
cases will be enough to just edit systemd units for the service and<br>
start old version of it. BUT running without tags will result in<br>
having new packages in old venv which is smth you totally want to<br>
avoid.<br>
To prevent that you can also define <service>_git_install_branch and<br>
requirements_git_install_branch in /etc/openstack_deploy/group_vars<br>
(it's important to use group vars if you want to rollback only one<br>
service) and take value from<br>
<a href="https://opendev.org/openstack/openstack-ansible/src/tag/26.0.1/playbooks/defaults/repo_packages/openstack_services.yml" rel="noreferrer" target="_blank">https://opendev.org/openstack/openstack-ansible/src/tag/26.0.1/playbooks/defaults/repo_packages/openstack_services.yml</a><br>
(ofc pick your old version!)<br>
<br>
For a full rollback and not in-place workarounds, I think it should be like that<br>
* checkout to previous osa version<br>
* re-execute scripts/bootstrap-ansible.sh<br>
* you should still take current versions of mariadb and rabbitmq and<br>
define them in user_variables (galera_major_version,<br>
galera_minor_version, rabbitmq_package_version,<br>
rabbitmq_erlang_version_spec) - it's close to never ends well<br>
downgrading these.<br>
* Restore DB backup<br>
* Re-run setup-openstack.yml<br>
<br>
It's quite a rough summary of how I do see this process, but to be<br>
frank I never had to execute full downgrade - I was limited mostly by<br>
downgrading 1 service tops after the upgrade.<br>
<br>
Hope that helps!<br>
<br>
ср, 1 мар. 2023 г. в 12:06, Adivya Singh <<a href="mailto:adivya1.singh@gmail.com" target="_blank">adivya1.singh@gmail.com</a>>:<br>
<br>
><br>
> hi Alvaro,<br>
><br>
> i have installed using Openstack-ansible, The upgrade procedure is consistent<br>
><br>
> but what is the roll back procedure , i m looking for<br>
><br>
> Regards<br>
> Adivya Singh<br>
><br>
> On Wed, Mar 1, 2023 at 12:46 PM Alvaro Soto <<a href="mailto:alsotoes@gmail.com" target="_blank">alsotoes@gmail.com</a>> wrote:<br>
>><br>
>> That will depend on how did you installed your environment: OSA, TripleO, etc.<br>
>><br>
>> Can you provide more information?<br>
>><br>
>> ---<br>
>> Alvaro Soto.<br>
>><br>
>> Note: My work hours may not be your work hours. Please do not feel the need to respond during a time that is not convenient for you.<br>
>> ----------------------------------------------------------<br>
>> Great people talk about ideas,<br>
>> ordinary people talk about things,<br>
>> small people talk... about other people.<br>
>><br>
>> On Tue, Feb 28, 2023, 11:46 PM Adivya Singh <<a href="mailto:adivya1.singh@gmail.com" target="_blank">adivya1.singh@gmail.com</a>> wrote:<br>
>>><br>
>>> Hi Team,<br>
>>><br>
>>> I am planning to upgrade my Current Environment, The Upgrade procedure is available in OpenStack Site and Forums.<br>
>>><br>
>>> But i am looking fwd to roll back Plan , Other then have a Local backup copy of galera Database<br>
>>><br>
>>> Regards<br>
>>> Adivya Singh<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><br></div>Alvaro Soto <div><br><i style="color:rgb(34,34,34)"><span style="font-size:10pt;color:black">Note: My work hours may not be your work hours. Please do not feel the need to respond during a time that is not convenient for you.</span></i><br>----------------------------------------------------------<br>Great people talk about ideas,<br>ordinary people talk about things,<br>small people talk... about other people.</div></div></div>