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

`oaconfig install` requires lvm2 systemd services

    XMLWordPrintable

    Details

      Description

      Found lo
      Found eth0
      The authentication token for 'openattic' does already exist.
      /usr/share/openattic/lvm/management/__init__.py:29: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'.
        get_cache("systemd").delete_many(["/sbin/lvs", "/sbin/vgs", "/sbin/pvs"])
      
      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/lvm/management/__init__.py", line 32, in create_vgs
          vgs = dbus_to_python(lvm.vgs())
        File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
          return self._proxy_method(*args, **keywords)
        File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
          **keywords)
        File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
          message, timeout)
      dbus.exceptions.DBusException: org.freedesktop.DBus.Python.SystemError: Traceback (most recent call last):
        File "/usr/lib/python2.7/dist-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/lvm/systemapi.py", line 116, in vgs
          return lvm_vgs()
        File "/usr/share/openattic/lvm/systemapi.py", line 91, in lvm_vgs
          info = dict([(lv["LVM2_VG_NAME"], lv) for lv in lvm_command(["/sbin/vgs", '-o', '+vg_tags'])])
        File "/usr/share/openattic/lvm/systemapi.py", line 41, in lvm_command
          raise SystemError(err)
      SystemError:   /run/lvm/lvmetad.socket: connect failed: No such file or directory
        WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
      
      

      The fix of this problem was to do the following:

      systemctl enable lvm2-lvmetad.service
      systemctl enable lvm2-lvmetad.socket
      systemctl start lvm2-lvmetad.service
      systemctl start lvm2-lvmetad.socket
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              lpaduano Paduano, Laura
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: