Lines Matching refs:name

99                     'the name of a supported OpenSSL cipher algorithm.'),
150 # Mapping between supported zone brands and the name of the corresponding
215 if propertee.name == prop and propertee.value == value:
257 def create(self, context, size, name, description, snapshot=None,
266 :param name: display_name of the new volume
299 kwargs['display_name'] = name
302 kwargs['name'] = name
321 :param fields: a dictionary of of the name/value pairs to update
358 % (self.zone.name, reason))
378 % (self.zone.name, reason))
405 % (prop, resource, self.zone.name, reason))
431 % (resource, self.zone.name, reason))
447 % (resource, self.zone.name, reason))
460 % (props, resource, self.zone.name, reason))
473 'name' elsewhere. As far as this layer is concerned, 'instance ID' and
474 'instance name' are synonyms.
476 Note that the instance ID or name is not human-readable or
656 """ Return the iSCSI initiator node name IQN for this host """
661 # Initiator node name: iqn.1986-03.com.sun:01:e00000000000.4f757217
669 def _get_zone_by_name(self, name):
670 """Return a Solaris Zones object via RAD by name."""
673 zonemgr.Zone(), rad.client.ADRGlobPattern({'name': name}))
765 for name, data in kstat_obj.getMap().items():
766 ks_data[name] = getattr(data, KSTAT_TYPE[str(data.type)])
829 """Get the current status of an instance, by name (not ID!)
836 name = instance['name']
837 zone = self._get_zone_by_name(name)
839 raise exception.InstanceNotFound(instance_id=name)
879 return instance.name in self.list_instances()
904 instances_list.append(self.rad_connection.get_object(zone).name)
936 "for instance '%s'") % instance['name'])
947 % instance['name'])
961 zone = self._get_zone_by_name(instance['name'])
1035 "'%s'.") % instance['name'])
1075 name = instance['name']
1076 zone = self._get_zone_by_name(name)
1078 raise exception.InstanceNotFound(instance_id=name)
1208 flavor=flavor['name'],
1263 (data['export'].replace(':', ''), data['name'])
1315 def _set_global_properties(self, name, extra_specs, brand):
1317 zone = self._get_zone_by_name(name)
1319 raise exception.InstanceNotFound(instance_id=name)
1346 % (prop, name))
1359 % (instance['name'], instance['uuid']),
1371 "'%s': %s") % (instance['name'], reason))
1431 def _set_boot_device(self, name, connection_info, brand):
1433 zone = self._get_zone_by_name(name)
1435 raise exception.InstanceNotFound(instance_id=name)
1451 def _set_num_cpu(self, name, vcpus, brand):
1453 zone = self._get_zone_by_name(name)
1455 raise exception.InstanceNotFound(instance_id=name)
1469 def _set_memory_cap(self, name, memory_mb, brand):
1471 zone = self._get_zone_by_name(name)
1473 raise exception.InstanceNotFound(instance_id=name)
1538 '-z', instance['name'],
1542 % (instance['name'], reason))
1553 % (instance['name'], anetdict))
1564 instance['name']))
1577 % (instance['name'], reason))
1581 if port.split('/')[0] != instance['name']:
1661 def _set_network(self, context, name, instance, network_info, brand,
1664 zone = self._get_zone_by_name(name)
1666 raise exception.InstanceNotFound(instance_id=name)
1723 """Use the instance name to specify the pathname for the suspend image.
1725 name = instance['name']
1726 zone = self._get_zone_by_name(name)
1728 raise exception.InstanceNotFound(instance_id=name)
1740 usercheck = lambda e: e.attrib.get('name') == 'system/config-user'
1741 hostcheck = lambda e: e.attrib.get('name') == 'system/identity'
1746 name = instance.get('hostname')
1761 # root's password is set, the admin account name is set and
1765 if pg.attrib.get('name') == 'root_account':
1771 if props.attrib.get('name') == 'nodename':
1804 if hostname_needed and name is not None:
1806 sysconfig.create_sc_profile(fp, sysconfig.create_hostname(name))
1811 name = instance['name']
1812 if self._get_zone_by_name(name) is not None:
1813 raise exception.InstanceExists(name=name)
1823 % flavor['name']))
1831 % (brand, name)))
1852 % (name, instance['display_name']))
1854 self.zone_manager.create(name, None, template)
1855 self._set_global_properties(name, extra_specs, brand)
1858 zone = self._get_zone_by_name(name)
1863 self._set_boot_device(name, connection_info, brand)
1864 self._set_num_cpu(name, instance['vcpus'], brand)
1865 self._set_memory_cap(name, instance['memory_mb'], brand)
1866 self._set_network(context, name, instance, network_info, brand,
1871 "via zonemgr(3RAD): %s") % (name, reason))
1889 name = instance['name']
1893 '-s', VNC_CONSOLE_BASE_FMRI, 'add', name)
1897 "console SMF service for instance '%s'") % name)
1902 name, reason))
1907 name = instance['name']
1913 name)
1918 % name)
1923 % (VNC_CONSOLE_BASE_FMRI + ':' + name, reason))
1928 name = instance['name']
1930 console_fmri = VNC_CONSOLE_BASE_FMRI + ':' + name
1946 % name)
1993 name = instance['name']
1996 "console SMF service for instance '%s'") % name)
1998 console_fmri = VNC_CONSOLE_BASE_FMRI + ':' + name
2020 name = instance['name']
2024 % name)
2026 console_fmri = VNC_CONSOLE_BASE_FMRI + ':' + name
2036 % (name, reason))
2041 name = instance['name']
2042 console_fmri = VNC_CONSOLE_BASE_FMRI + ':' + name
2052 name = instance['name']
2053 zone = self._get_zone_by_name(name)
2055 raise exception.InstanceNotFound(instance_id=name)
2071 (name, instance['display_name']))
2076 "'%s' via zonemgr(3RAD): %s") % (name, reason))
2082 (name, instance['display_name']))
2086 name = instance['name']
2087 zone = self._get_zone_by_name(name)
2089 raise exception.InstanceNotFound(instance_id=name)
2122 "zonemgr(3RAD): %s") % (name, reason))
2140 name = instance['name']
2141 zone = self._get_zone_by_name(name)
2143 raise exception.InstanceNotFound(instance_id=name)
2147 % (name, zone.state))
2155 % (name, reason))
2160 name = instance['name']
2161 if self._get_zone_by_name(name) is None:
2162 raise exception.InstanceNotFound(instance_id=name)
2165 self.zone_manager.delete(name)
2169 "via zonemgr(3RAD): %s") % (name, reason))
2219 name = instance['name']
2234 "instance %s: %s") % (volume['id'], name, reason))
2257 "'%s'") % (name, reason))
2266 "zonemgr(3RAD): %s") % (name, reason))
2272 "zonemgr(3RAD): %s") % (name, reason))
2300 name = instance['name']
2301 zone = self._get_zone_by_name(name)
2303 raise exception.InstanceNotFound(instance_id=name)
2323 "zonemgr(3RAD): %s" % (name, reason)))
2327 "via zonemgr(3RAD): %s") % (name, reason))
2339 name = instance['name']
2341 self._set_num_cpu(name, instance.vcpus, brand)
2342 self._set_memory_cap(name, instance.memory_mb, brand)
2397 name = instance['name']
2398 zone = self._get_zone_by_name(name)
2402 % name)
2415 "%s") % (name, reason))
2480 name = instance['name']
2481 zone = self._get_zone_by_name(name)
2483 raise exception.InstanceNotFound(instance_id=name)
2521 "zonemgr(3RAD): %s") % (name, reason))
2560 logfile_pattern = '/var/log/zones/%s.console*' % instance['name']
2599 name = instance['name']
2602 "completed installation. Try again later.") % name)
2607 "instance '%s'") % name)
2611 console_fmri = VNC_CONSOLE_BASE_FMRI + ':' + name
2722 "because the cpu list keeps changing.") % zone.name)
2739 name = instance['name']
2740 zone = self._get_zone_by_name(name)
2742 raise exception.InstanceNotFound(instance_id=name)
2782 name = instance['name']
2783 zone = self._get_zone_by_name(name)
2785 raise exception.InstanceNotFound(instance_id=name)
2813 "zonemgr(3RAD): %s") % (suri, name, reason))
2821 name = instance['name']
2822 zone = self._get_zone_by_name(name)
2824 raise exception.InstanceNotFound(instance_id=name)
2841 "'%s'") % (suri, name))
2855 % (suri, name))
2862 props = filter(lambda prop: prop.name in needed_props,
2908 name = instance['name']
2909 zone = self._get_zone_by_name(name)
2911 raise exception.InstanceNotFound(instance_id=name)
2925 "zonemgr(3RAD): %s") % (name, reason))
2933 anet = ''.join([name, '/', anetname])
2950 name = instance['name']
2951 zone = self._get_zone_by_name(name)
2953 raise exception.InstanceNotFound(instance_id=name)
2961 "instance '%s'.") % (vif['address'], name))
2967 if brand == ZONE_BRAND_SOLARIS and prop.name == 'linkname':
2970 elif brand != ZONE_BRAND_SOLARIS and prop.name == 'id':
2985 "in use.") % (anetname, name))
2993 props = filter(lambda prop: prop.name in needed_props,
3000 port = ''.join([name, '/', anetname])
3130 name = instance['name']
3131 zone = self._get_zone_by_name(name)
3133 raise exception.InstanceNotFound(instance_id=name)
3141 raise exception.InstanceNotRunning(instance_id=name)
3159 'name': snapshot['name'],
3187 zone_name = instance['name']
3288 name = instance['name']
3303 self._set_num_cpu(name, cpu, brand)
3304 self._set_memory_cap(name, mem, brand)
3330 zone = self._get_zone_by_name(name)
3332 raise exception.InstanceNotFound(instance_id=name)
3355 out, err = utils.execute('/usr/sbin/zlogin', '-S', name,
3358 out, err = utils.execute('/usr/sbin/zlogin', '-S', name,
3413 name = instance['name']
3414 zone = self._get_zone_by_name(name)
3416 raise exception.InstanceNotFound(instance_id=name)
3425 self._set_boot_device(name, connection_info, zone.brand)
3552 name = instance['name']
3553 zone = self._get_zone_by_name(name)
3555 raise exception.InstanceNotFound(instance_id=name)
3566 reason = (_("Instance '%s' is not running.") % name)
3586 "zonemgr(3RAD): %s") % (name, reason))
3608 name = instance['name']
3609 zone = self._get_zone_by_name(name)
3611 raise exception.InstanceNotFound(instance_id=name)
3621 reason = (_("Instance '%s' is not suspended.") % name)
3630 "zonemgr(3RAD): %s") % (name, reason))
3639 name = instance['name']
3640 zone = self._get_zone_by_name(name)
3642 raise exception.InstanceNotFound(instance_id=name)
3767 out, err = utils.execute('/usr/sbin/zfs', 'list', '-Ho', 'name', '/')
3867 def _live_migration(self, name, dest, dry_run=False):
3869 zone = self._get_zone_by_name(name)
3871 raise exception.InstanceNotFound(instance_id=name)
3902 name = instance['name']
3904 self._live_migration(name, dest, dry_run=False)
3910 % (name, dest, reason))
3968 name = instance['name']
3969 zone = self._get_zone_by_name(name)
3973 % name)
3981 "via zonemgr(3RAD): %s") % (name, reason))
4121 name = instance['name']
4124 self._live_migration(name, dest, dry_run=True)
4223 name = instance['name']
4224 zone = self._get_zone_by_name(name)
4226 raise exception.InstanceNotFound(instance_id=name)
4229 out, err = utils.execute('/usr/sbin/zlogin', '-S', name,
4233 raise exception.InstanceNotRunning(instance_id=name)
4239 and so the instance is being specified as instance.name. The second
4306 The name of the host whose maintenance mode should be changed.
4466 | [{'opt_name': 'bootfile-name',
4499 The name of the host to add to the given `aggregate`.
4518 The name of the host to remove from the given `aggregate`.
4535 machine that will be making the connection, the name of the iscsi
4558 LOG.debug(_("Could not determine iSCSI initiator name"),
4637 % instance['name'])
4686 LOG.debug(_("Cleaning up for instance %s"), instance['name'])
4749 """Provide a default root device name for the driver.
4767 """Get the next device name based on the block device mapping.
4770 requesting a device name
4778 :returns: The chosen device name.