-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 2.0.20
-
Fix Version/s: None
-
Component/s: Backend: Local Storage
... Running migrations: Rendering model states... DONE Applying contenttypes.0001_initial... OK Applying auth.0001_initial... OK Applying admin.0001_initial... OK Applying contenttypes.0002_remove_content_type_name... OK Applying auth.0002_alter_permission_name_max_length... OK Applying auth.0003_alter_user_email_max_length... OK Applying auth.0004_alter_user_username_opts... OK Applying auth.0005_alter_user_last_login_null... OK Applying auth.0006_require_contenttypes_0002... OK Applying authtoken.0001_initial... OK Applying authtoken.0002_auto_20160226_1747... OK Applying ifconfig.0001_initial... OK Applying ifconfig.0002_auto_20160329_1248... OK Applying cmdlog.0001_initial... OK Applying cron.0001_initial... OK Applying volumes.0001_initial... OK Applying http.0001_initial... OK Applying ifconfig.0003_host_is_oa_host... OK Applying lio.0001_initial... OK Applying nagios.0001_initial... OK Applying nagios.0002_auto_20170126_1628... OK Applying nfs.0001_initial... OK Applying samba.0001_initial... OK Applying sessions.0001_initial... OK Applying sites.0001_initial... OK Applying taskqueue.0001_initial... OK Applying taskqueue.0002_taskqueue_description_textfield... OK Applying userprefs.0001_initial... OK /usr/share/openattic/volumes/models.py:31: RemovedInDjango19Warning: django.contrib.contenttypes.generic is deprecated and will be removed in Django 1.9. Its contents have been moved to the fields, forms, and admin submodules of django.contrib.contenttypes. from django.contrib.contenttypes import generic /usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py:229: RemovedInDjango19Warning: initial_data fixtures are deprecated. Use data migrations instead. RemovedInDjango19Warning Installed 66 object(s) from 2 fixture(s) /usr/share/openattic/volumes/models.py:31: RemovedInDjango19Warning: django.contrib.contenttypes.generic is deprecated and will be removed in Django 1.9. Its contents have been moved to the fields, forms, and admin submodules of django.contrib.contenttypes. from django.contrib.contenttypes import generic /usr/share/openattic/volumes/models.py:31: RemovedInDjango19Warning: django.contrib.contenttypes.generic is deprecated and will be removed in Django 1.9. Its contents have been moved to the fields, forms, and admin submodules of django.contrib.contenttypes. from django.contrib.contenttypes import generic Created default user "openattic" with password "openattic". Waiting for /var/cache/nagios3/status.dat to appear OK /usr/share/openattic/volumes/models.py:31: RemovedInDjango19Warning: django.contrib.contenttypes.generic is deprecated and will be removed in Django 1.9. Its contents have been moved to the fields, forms, and admin submodules of django.contrib.contenttypes. from django.contrib.contenttypes import generic /usr/share/openattic/sysutils/management/commands/post_install.py:19: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9. from django.utils.importlib import import_module Adding lo Adding {'peer': '127.0.0.1', 'netmask': '255.0.0.0', 'addr': '127.0.0.1'} Adding {'netmask': 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', 'addr': '::1'} Adding enp1s0 Adding br0 Adding {'broadcast': '10.80.255.255', 'netmask': '255.255.0.0', 'addr': '10.80.1.20'} Adding virbr0 Adding {'broadcast': '192.168.122.255', 'netmask': '255.255.255.0', 'addr': '192.168.122.1'} Adding virbr0-nic Traceback (most recent call last): File "manage.py", line 26, in <module> execute_from_command_line(sys.argv) File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 346, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 394, in run_from_argv self.execute(*args, **cmd_options) File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute output = self.handle(*args, **options) File "/usr/share/openattic/sysutils/management/commands/post_install.py", line 49, in handle sysutils.models.post_install.send(sender=sysutils.models) File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 189, in send response = receiver(signal=self, sender=sender, **named) File "/usr/share/openattic/volumes/management/__init__.py", line 51, in update_disks if int(dev.attributes["size"].strip("\0")) == 0: TypeError: 'Attributes' object has no attribute '__getitem__'
my disks:
$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom sda 8:0 0 111,8G 0 disk ├─sda2 8:2 0 300M 0 part /boot ├─sda3 8:3 0 111,4G 0 part │ ├─mmwork-home 253:1 0 55G 0 lvm /home │ ├─mmwork-ubu12 253:2 0 17G 0 lvm / │ ├─mmwork-swap 253:0 0 4,4G 0 lvm [SWAP] │ └─mmwork-qwe 253:3 0 35G 0 lvm └─sda1 8:1 0 100M 0 part /boot/efi