mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 03:30:02 -03:30
* Modify instance model to container a version number for the node * Update that version number during the heartbeat * If during a heartbeat any of the nodes are of a newer version then shutdown the current node. The idea behind this is that if all nodes were upgraded at the same time then at the moment of the healthcheck they should all be at the newer version. Otherwise we put the system in a state where it can receive the upgrade but stay down until that happens. During setup playbook run the services will be fully restarted.
20 lines
407 B
Python
20 lines
407 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('main', '0036_v311_insights'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='instance',
|
|
name='version',
|
|
field=models.CharField(max_length=24, blank=True),
|
|
),
|
|
]
|