Lines Matching refs:url

576 def _url_exists(url):
579 :param url: HTTP url
582 LOG.debug("_url_exists: url: %s" % (url.strip()))
584 _open_url = urllib2.urlopen(urllib2.Request(url))
587 LOG.debug(_("URL %s not reachable: %s") % (url, err))
705 url = urlparse(uri)
708 if url.scheme == "glance":
710 url.netloc)
720 images.fetch(task.context, url.netloc, temp_uri)
727 % (url.netloc, err))
745 url.path.replace("/", ""))
767 % (url.netloc, err))
776 if url.scheme == "glance":
947 url = urlparse(archive_uri)
949 if url.scheme not in VALID_ARCHIVE_SCHEMES:
952 % (url.scheme, archive_uri))
954 if not url.netloc and not url.path:
958 if url.scheme == "glance":
968 if not url.netloc:
975 size = images.download_size(task.context, url.netloc)
976 LOG.debug("Image %s size: %s" % (url.netloc, str(size)))
979 "Glance image not found: %s") % (url.netloc))
984 (url.netloc, err))
986 elif url.scheme in ["http", "https"]:
993 elif url.scheme == "file":
995 url.netloc.strip(os.sep),
996 url.path.strip(os.sep))
1014 url = urlparse(archive_uri)
1016 if url.scheme == "glance":
1021 url.netloc)
1075 url = urlparse(uri)
1077 if url.scheme not in VALID_URI_SCHEMES:
1080 " in URI (%s).") % (url.scheme, uri))
1082 if not url.netloc and not url.path:
1086 if url.scheme in ["http", "https"]:
1096 elif url.scheme == "file":
1098 url.netloc.strip(os.sep),
1099 url.path.strip(os.sep))
1105 (url.scheme))
1106 elif url.scheme == "glance":
1116 if not url.netloc:
1123 size = images.download_size(task.context, url.netloc)
1124 LOG.debug("Image %s size: %s" % (url.netloc, str(size)))
1127 "Glance image not found: %s") % (url.netloc))
1135 (url.netloc, err))
1168 url = urlparse(fmri)
1170 if url.scheme != "pkg":
1173 % (url.scheme, fmri))
1175 if url.netloc:
1179 if not url.path:
1184 if not is_valid_pkg_name(url.path.strip("/")):
1236 url = urlparse(obj_uri)
1246 if url.scheme == "glance":
1262 if url.scheme == "glance":
1270 if url.scheme == "glance":
1782 url = urlparse(archive_uri)
1783 if url.scheme == "glance":
1785 url.netloc)
1789 url.path.replace("/", ""))
1850 url = urlparse(archive_uri)
1851 if url.scheme == "glance":
1853 url.netloc)
1857 url.path.replace("/", ""))