diff --git a/nodeconductor/iaas/migrations/0038_securitygroup_state.py b/nodeconductor/iaas/migrations/0038_securitygroup_state.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/iaas/migrations/0038_securitygroup_state.py
+++ b/nodeconductor/iaas/migrations/0038_securitygroup_state.py
@@ -5,6 +5,11 @@ from django.db import models, migrations
 import django_fsm
 
 
+def mark_security_groups_as_synced(apps, schema_editor):
+    SecurityGroup = apps.get_model('iaas', 'SecurityGroup')
+    SecurityGroup.objects.all().update(state=3)
+
+
 class Migration(migrations.Migration):
 
     dependencies = [
@@ -18,4 +23,5 @@ class Migration(migrations.Migration):
             field=django_fsm.FSMIntegerField(default=1, choices=[(1, 'Sync Scheduled'), (2, 'Syncing'), (3, 'In Sync'), (4, 'Erred')]),
             preserve_default=True,
         ),
+        migrations.RunPython(mark_security_groups_as_synced),
     ]
Mark all exist security groups as synced

 - itacloud-<I>