Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-2905

oA 2: oaconfig install fails, cause get_disk_size of CD-Rom drive fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.20
    • Fix Version/s: 2.0.22
    • Component/s: Backend: Local Storage
    • Labels:
      None
    • External issue ID:
      bsc#1064413

      Description

      oA 2: oaconfig install fails, cause get_disk_size of CD-Rom drive fails

      checking disk /dev/sr0
      Traceback (most recent call last):
        File "manage.py", line 26, in <module>
          execute_from_command_line(sys.argv)
        File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
          utility.execute()
        File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
          self.fetch_command(subcommand).run_from_argv(self.argv)
        File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
          self.execute(*args, **options.__dict__)
        File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 285, 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/site-packages/django/dispatch/dispatcher.py", line 185, in send
          response = receiver(signal=self, sender=sender, **named)
        File "/usr/share/openattic/volumes/management/__init__.py", line 88, in update_disks
          megs = int(get_dbus_object("/volumes").get_disk_size(dev.device_node))
        File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 70, in __call__
          return self._proxy_method(*args, **keywords)
        File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
          **keywords)
        File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
          message, timeout)
      dbus.exceptions.DBusException: org.freedesktop.DBus.Python.IOError: Traceback (most recent call last):
        File "/usr/lib/python2.7/site-packages/dbus/service.py", line 707, in _message_cb
          retval = candidate_method(self, *args, **keywords)
        File "/usr/share/openattic/systemd/plugins.py", line 51, in loggedfunc
          return func(*args, **kwargs)
        File "/usr/share/openattic/volumes/systemapi.py", line 244, in get_disk_size
          with open(device, "rb") as fd:
      IOError: [Errno 123] No medium found: dbus.String(u'/dev/sr0')
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            swagner Sebastian Wagner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: