Add more information on deploying; fix format.
[ganeti_webmgr.git] / ganeti_web / migrations / 0003_version_0_7_delete_old_tables.py
blob51dfd20b51c1d5d29fa2c48309687786d792d349
1 # encoding: utf-8
2 import datetime
3 from south.db import db
4 from south.v2 import DataMigration
5 from django.db import models
6 from ganeti_web.migrations import db_table_exists
8 class Migration(DataMigration):
10 def safe_delete(self, table):
11 """ delete a table only if it exists """
12 if db_table_exists(table):
13 db.delete_table(table)
15 def forwards(self, orm):
16 """ delete tables that were used in version 0.6 and earlier """
17 self.safe_delete('ganeti.testmodel')
18 self.safe_delete('ganeti.quota')
19 self.safe_delete('ganeti.sshkey')
20 self.safe_delete('ganeti.clusteruser')
21 self.safe_delete('ganeti.organization')
22 self.safe_delete('ganeti.profile')
23 self.safe_delete('ganeti.ganetierror')
24 self.safe_delete('ganeti.job')
25 self.safe_delete('ganeti.virtualmachine')
26 self.safe_delete('ganeti.node')
27 self.safe_delete('ganeti.virtualmachinetemplate')
28 self.safe_delete('ganeti.cluster')
30 def backwards(self, orm):
31 """ This migration cannot be reversed """
32 pass
34 models = {
35 'auth.group': {
36 'Meta': {'object_name': 'Group'},
37 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
39 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
41 'auth.permission': {
42 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
43 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
44 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
45 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
48 'auth.user': {
49 'Meta': {'object_name': 'User'},
50 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
51 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
52 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
53 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
54 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
55 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
56 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
57 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
58 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
59 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
60 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
61 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
62 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
64 'contenttypes.contenttype': {
65 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
66 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
67 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
68 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
69 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
71 'ganeti_web.cluster': {
72 'Meta': {'object_name': 'Cluster'},
73 'cached': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
74 'description': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
75 'disk': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
76 'hash': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
77 'hostname': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
78 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
79 'ignore_cache': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
80 'last_job': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'cluster_last_job'", 'null': 'True', 'to': "orm['ganeti_web.Job']"}),
81 'mtime': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
82 'password': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
83 'port': ('django.db.models.fields.PositiveIntegerField', [], {'default': '5080'}),
84 'ram': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
85 'serialized_info': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'}),
86 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50', 'db_index': 'True'}),
87 'username': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
88 'virtual_cpus': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'})
90 'ganeti_web.cluster_perms': {
91 'Meta': {'object_name': 'Cluster_Perms'},
92 'admin': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
93 'create_vm': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
94 'export': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
95 'group': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'Cluster_gperms'", 'null': 'True', 'to': "orm['auth.Group']"}),
96 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
97 'migrate': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
98 'obj': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'operms'", 'to': "orm['ganeti_web.Cluster']"}),
99 'replace_disks': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
100 'tags': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
101 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'Cluster_uperms'", 'null': 'True', 'to': "orm['auth.User']"})
103 'ganeti_web.clusteruser': {
104 'Meta': {'object_name': 'ClusterUser'},
105 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
106 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
107 'real_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']", 'null': 'True'})
109 'ganeti_web.ganetierror': {
110 'Meta': {'object_name': 'GanetiError'},
111 'cleared': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
112 'cluster': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ganeti_web.Cluster']"}),
113 'code': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
114 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
115 'msg': ('django.db.models.fields.TextField', [], {}),
116 'obj_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
117 'obj_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'ganeti_errors'", 'to': "orm['contenttypes.ContentType']"}),
118 'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'})
120 'ganeti_web.job': {
121 'Meta': {'object_name': 'Job'},
122 'cached': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
123 'cleared': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
124 'cluster': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'jobs'", 'to': "orm['ganeti_web.Cluster']"}),
125 'cluster_hash': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
126 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
127 'finished': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
128 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
129 'ignore_cache': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
130 'job_id': ('django.db.models.fields.IntegerField', [], {}),
131 'mtime': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
132 'object_id': ('django.db.models.fields.IntegerField', [], {}),
133 'serialized_info': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'}),
134 'status': ('django.db.models.fields.CharField', [], {'max_length': '10'})
136 'ganeti_web.node': {
137 'Meta': {'object_name': 'Node'},
138 'cached': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
139 'cluster': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['ganeti_web.Cluster']"}),
140 'cluster_hash': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
141 'disk_total': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
142 'hostname': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
143 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
144 'ignore_cache': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
145 'last_job': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ganeti_web.Job']", 'null': 'True'}),
146 'mtime': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
147 'offline': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
148 'ram_total': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
149 'role': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
150 'serialized_info': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'})
152 'ganeti_web.organization': {
153 'Meta': {'object_name': 'Organization', '_ormbases': ['ganeti_web.ClusterUser']},
154 'clusteruser_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['ganeti_web.ClusterUser']", 'unique': 'True', 'primary_key': 'True'}),
155 'group': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'organization'", 'unique': 'True', 'to': "orm['auth.Group']"})
157 'ganeti_web.profile': {
158 'Meta': {'object_name': 'Profile', '_ormbases': ['ganeti_web.ClusterUser']},
159 'clusteruser_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['ganeti_web.ClusterUser']", 'unique': 'True', 'primary_key': 'True'}),
160 'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
162 'ganeti_web.quota': {
163 'Meta': {'object_name': 'Quota'},
164 'cluster': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'quotas'", 'to': "orm['ganeti_web.Cluster']"}),
165 'disk': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True'}),
166 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
167 'ram': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True'}),
168 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'quotas'", 'to': "orm['ganeti_web.ClusterUser']"}),
169 'virtual_cpus': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True'})
171 'ganeti_web.sshkey': {
172 'Meta': {'object_name': 'SSHKey'},
173 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
174 'key': ('django.db.models.fields.TextField', [], {}),
175 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'ssh_keys'", 'to': "orm['auth.User']"})
177 'ganeti_web.testmodel': {
178 'Meta': {'object_name': 'TestModel'},
179 'cached': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
180 'cluster': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ganeti_web.Cluster']"}),
181 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
182 'ignore_cache': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
183 'mtime': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
184 'serialized_info': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'})
186 'ganeti_web.virtualmachine': {
187 'Meta': {'unique_together': "(('cluster', 'hostname'),)", 'object_name': 'VirtualMachine'},
188 'cached': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
189 'cluster': ('django.db.models.fields.related.ForeignKey', [], {'default': '0', 'related_name': "'virtual_machines'", 'to': "orm['ganeti_web.Cluster']"}),
190 'cluster_hash': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
191 'disk_size': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
192 'hostname': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
193 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
194 'ignore_cache': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
195 'last_job': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ganeti_web.Job']", 'null': 'True'}),
196 'mtime': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
197 'operating_system': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
198 'owner': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'virtual_machines'", 'null': 'True', 'to': "orm['ganeti_web.ClusterUser']"}),
199 'pending_delete': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
200 'primary_node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'primary_vms'", 'null': 'True', 'to': "orm['ganeti_web.Node']"}),
201 'ram': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
202 'secondary_node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'secondary_vms'", 'null': 'True', 'to': "orm['ganeti_web.Node']"}),
203 'serialized_info': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'}),
204 'status': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
205 'template': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ganeti_web.VirtualMachineTemplate']", 'null': 'True'}),
206 'virtual_cpus': ('django.db.models.fields.IntegerField', [], {'default': '-1'})
208 'ganeti_web.virtualmachine_perms': {
209 'Meta': {'object_name': 'VirtualMachine_Perms'},
210 'admin': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
211 'group': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'VirtualMachine_gperms'", 'null': 'True', 'to': "orm['auth.Group']"}),
212 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
213 'modify': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
214 'obj': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'operms'", 'to': "orm['ganeti_web.VirtualMachine']"}),
215 'power': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
216 'remove': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
217 'tags': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
218 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'VirtualMachine_uperms'", 'null': 'True', 'to': "orm['auth.User']"})
220 'ganeti_web.virtualmachinetemplate': {
221 'Meta': {'object_name': 'VirtualMachineTemplate'},
222 'boot_order': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
223 'cdrom_image_path': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
224 'cluster': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ganeti_web.Cluster']", 'null': 'True'}),
225 'disk_size': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
226 'disk_template': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
227 'disk_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
228 'iallocator': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
229 'iallocator_hostname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
230 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
231 'kernel_path': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
232 'memory': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
233 'name_check': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
234 'nic_link': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
235 'nic_mode': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
236 'nic_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
237 'os': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
238 'pnode': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
239 'root_path': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '255', 'null': 'True', 'blank': 'True'}),
240 'serial_console': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
241 'snode': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
242 'start': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
243 'template_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
244 'vcpus': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'})
246 'ganeti.cluster': {
247 'Meta': {'object_name': 'Cluster'},
248 'cached': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
249 'description': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
250 'disk': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
251 'hash': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
252 'hostname': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
253 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
254 'ignore_cache': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
255 'last_job': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'cluster_last_job'", 'null': 'True', 'to': "orm['ganeti.Job']"}),
256 'mtime': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
257 'password': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
258 'port': ('django.db.models.fields.PositiveIntegerField', [], {'default': '5080'}),
259 'ram': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
260 'serialized_info': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'}),
261 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50', 'db_index': 'True'}),
262 'username': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
263 'virtual_cpus': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'})
265 'ganeti.clusteruser': {
266 'Meta': {'object_name': 'ClusterUser'},
267 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
268 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
269 'real_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']", 'null': 'True'})
271 'ganeti.ganetierror': {
272 'Meta': {'object_name': 'GanetiError'},
273 'cleared': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
274 'cluster': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ganeti.Cluster']"}),
275 'code': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
276 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
277 'msg': ('django.db.models.fields.TextField', [], {}),
278 'obj_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
279 'obj_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'ganeti_errors'", 'to': "orm['contenttypes.ContentType']"}),
280 'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'})
282 'ganeti.job': {
283 'Meta': {'object_name': 'Job'},
284 'cached': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
285 'cleared': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
286 'cluster': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'jobs'", 'to': "orm['ganeti.Cluster']"}),
287 'cluster_hash': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
288 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
289 'finished': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
290 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
291 'ignore_cache': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
292 'job_id': ('django.db.models.fields.IntegerField', [], {}),
293 'mtime': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
294 'object_id': ('django.db.models.fields.IntegerField', [], {}),
295 'serialized_info': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'}),
296 'status': ('django.db.models.fields.CharField', [], {'max_length': '10'})
298 'ganeti.node': {
299 'Meta': {'object_name': 'Node'},
300 'cached': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
301 'cluster': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['ganeti.Cluster']"}),
302 'cluster_hash': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
303 'disk_total': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
304 'hostname': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
305 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
306 'ignore_cache': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
307 'last_job': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ganeti.Job']", 'null': 'True'}),
308 'mtime': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
309 'offline': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
310 'ram_total': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
311 'role': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
312 'serialized_info': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'})
314 'ganeti.organization': {
315 'Meta': {'object_name': 'Organization', '_ormbases': ['ganeti.ClusterUser']},
316 'clusteruser_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['ganeti.ClusterUser']", 'unique': 'True', 'primary_key': 'True'}),
317 'group': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'organization'", 'unique': 'True', 'to': "orm['auth.Group']"})
319 'ganeti.profile': {
320 'Meta': {'object_name': 'Profile', '_ormbases': ['ganeti.ClusterUser']},
321 'clusteruser_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['ganeti.ClusterUser']", 'unique': 'True', 'primary_key': 'True'}),
322 'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
324 'ganeti.quota': {
325 'Meta': {'object_name': 'Quota'},
326 'cluster': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'quotas'", 'to': "orm['ganeti.Cluster']"}),
327 'disk': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True'}),
328 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
329 'ram': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True'}),
330 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'quotas'", 'to': "orm['ganeti.ClusterUser']"}),
331 'virtual_cpus': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True'})
333 'ganeti.sshkey': {
334 'Meta': {'object_name': 'SSHKey'},
335 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
336 'key': ('django.db.models.fields.TextField', [], {}),
337 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
339 'ganeti.testmodel': {
340 'Meta': {'object_name': 'TestModel'},
341 'cached': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
342 'cluster': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ganeti.Cluster']"}),
343 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
344 'ignore_cache': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
345 'mtime': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
346 'serialized_info': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'})
348 'ganeti.virtualmachine': {
349 'Meta': {'unique_together': "(('cluster', 'hostname'),)", 'object_name': 'VirtualMachine'},
350 'cached': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
351 'cluster': ('django.db.models.fields.related.ForeignKey', [], {'default': '0', 'related_name': "'virtual_machines'", 'to': "orm['ganeti.Cluster']"}),
352 'cluster_hash': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
353 'disk_size': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
354 'hostname': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
355 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
356 'ignore_cache': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
357 'last_job': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ganeti.Job']", 'null': 'True'}),
358 'mtime': ('ganeti_web.fields.PreciseDateTimeField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '6'}),
359 'operating_system': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
360 'owner': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'virtual_machines'", 'null': 'True', 'to': "orm['ganeti.ClusterUser']"}),
361 'pending_delete': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
362 'primary_node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'primary_vms'", 'null': 'True', 'to': "orm['ganeti.Node']"}),
363 'ram': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
364 'secondary_node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'secondary_vms'", 'null': 'True', 'to': "orm['ganeti.Node']"}),
365 'serialized_info': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'}),
366 'status': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
367 'template': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ganeti.VirtualMachineTemplate']", 'null': 'True'}),
368 'virtual_cpus': ('django.db.models.fields.IntegerField', [], {'default': '-1'})
370 'ganeti.virtualmachinetemplate': {
371 'Meta': {'object_name': 'VirtualMachineTemplate'},
372 'boot_order': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
373 'cdrom_image_path': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
374 'cluster': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ganeti.Cluster']", 'null': 'True'}),
375 'disk_size': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
376 'disk_template': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
377 'disk_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
378 'iallocator': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
379 'iallocator_hostname': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
380 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
381 'kernel_path': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
382 'memory': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
383 'name_check': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
384 'nic_link': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
385 'nic_mode': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
386 'nic_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
387 'os': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
388 'pnode': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
389 'root_path': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '255', 'null': 'True', 'blank': 'True'}),
390 'serial_console': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
391 'snode': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
392 'start': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
393 'template_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
394 'vcpus': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'})
398 complete_apps = ['ganeti_web']