Lines Matching refs:fmri
63 from pkg.fmri import IllegalFmri, PkgFmri
137 'fmri': _("List of IPS package FMRIs to be installed. "
143 "name@origin. Required if fmri property is set."),
1169 """Validate fmri for format, etc
1171 driver_info/fmri is a plus(+) delimited list of IPS package
1175 :raises: InvalidParameterValue if invalid fmri
1178 fmri = task.node.driver_info['fmri']
1180 # Split fmri into list of possible packages
1181 pkg_list = [pkg.strip() for pkg in fmri.split('+') if pkg.strip()]
1182 for fmri in pkg_list:
1183 _validate_fmri_format(fmri)
1186 def _validate_fmri_format(fmri):
1192 Note the fmri only contains a single backslash.
1194 :param fmri: IPS FMRI
1197 LOG.debug("SolarisDeploy._validate_fmri_format: fmri: %s" % (fmri))
1198 url = urlparse(fmri)
1202 "Unsupported IPS scheme (%s) referenced in fmri (%s).")
1203 % (url.scheme, fmri))
1207 "Cannot specify publisher name in fmri (%s).") % (fmri))
1211 "Missing IPS package name in fmri (%s).") % (fmri))
1217 _pkgfmri = PkgFmri(fmri.strip('@latest'))
1525 # archive_uri, publishers or fmri are ignored if a ai_manifest is
1530 task.node.driver_info.get('fmri'))):
1550 if task.node.driver_info.get('fmri') and \
1553 "Must specify custom publisher with custom fmri."))
1560 # Ensure node fmri is valid if specified
1561 if task.node.driver_info.get('fmri'):
1562 # Validate fmri for format, etc
1686 fmri = task.node.driver_info.get('fmri', None)
1695 # archive_uri, publishers or fmri are ignored if a ai_manifest is
1697 if ((ai_manifest) and (archive_uri or publishers or fmri)):
1739 if fmri and not publishers:
1741 "Must specify custom publisher with custom fmri."))
1748 # Ensure node fmri is valid if specified
1749 if fmri:
1750 # Validate fmri, format, etc
1778 publishers, fmri)
2010 fmri = task.node.driver_info.get('fmri')
2049 if fmri:
2050 pkg_list = [pkg.strip() for pkg in fmri.split('+')
2052 script_str += ' fmri=%s' % ('+'.join(pkg_list))
2502 publishers, fmri):
2510 :param fmri: IPS package FMRIs to install
2532 if fmri:
2533 pkg_list = [pkg.strip() for pkg in fmri.split('+')
2535 ai_cmd += ",fmri='%s'" % ('+'.join(pkg_list))