Beispiel #1
0
 def get_volume_connector(self, instance):
     if not self._initiator:
         self._initiator = libvirt_utils.get_iscsi_initiator()
         if not self._initiator:
             LOG.warn(_('Could not determine iscsi initiator name'),
                      instance=instance)
     return {
         'ip': FLAGS.my_ip,
         'initiator': self._initiator,
     }
 def get_volume_connector(self, instance):
     if not self._initiator:
         self._initiator = libvirt_utils.get_iscsi_initiator()
         if not self._initiator:
             LOG.warn(_('Could not determine iscsi initiator name'),
                      instance=instance)
     return {
         'ip': FLAGS.my_ip,
         'initiator': self._initiator,
     }
Beispiel #3
0
 def get_volume_connector(self, instance):
     if not self._initiator:
         self._initiator = libvirt_utils.get_iscsi_initiator()
         if not self._initiator:
             LOG.warn(_('Could not determine iscsi initiator name '
                        'for instance %s') % instance)
     return {
         'ip': CONF.my_ip,
         'initiator': self._initiator,
         'host': CONF.host,
     }
Beispiel #4
0
 def get_volume_connector(self, instance):
     if not self._initiator:
         self._initiator = libvirt_utils.get_iscsi_initiator()
         if not self._initiator:
             LOG.warn(_('Could not determine iscsi initiator name '
                        'for instance %s') % instance)
     return {
         'ip': CONF.my_ip,
         'initiator': self._initiator,
         'host': CONF.host,
     }
 def get_localhost_initiator(self, protocol='iSCSI'):
     if (protocol == 'iSCSI'):
         wwpn = libvirt_utils.get_iscsi_initiator()
         initiator = {'wwpn' : wwpn}
         return initiator
Beispiel #6
0
 def get_volume_connector(self, instance):
     if not self._initiator:
         self._initiator = libvirt_utils.get_iscsi_initiator()
         if not self._initiator:
             LOG.warn(_("Could not determine iscsi initiator name " "for instance %s") % instance)
     return {"ip": CONF.my_ip, "initiator": self._initiator, "host": CONF.host}