{"id":313,"date":"2016-09-24T00:12:56","date_gmt":"2016-09-23T17:12:56","guid":{"rendered":"http:\/\/www.rickyadams.com\/wp\/?p=313"},"modified":"2016-09-24T00:12:56","modified_gmt":"2016-09-23T17:12:56","slug":"openstack-setting-up-a-local-repository-for-an-isolated-fuel-deployment","status":"publish","type":"post","link":"https:\/\/www.rickyadams.com\/wp\/openstack-setting-up-a-local-repository-for-an-isolated-fuel-deployment\/","title":{"rendered":"OpenStack, Setting up a Local Repository for an Isolated Fuel Deployment"},"content":{"rendered":"<div class=\"row\">\n<div class=\"col-lg-8\">\n<h2>Set up a local repository<\/h2>\n<\/div>\n<div class=\"docs-actions\"><\/div>\n<\/div>\n<div class=\"row docs-byline\">\n<div class=\"docs-updated\">updated: 2016\/09\/21<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-lg-12\">\n<div class=\"docs-top-contents\">\n<h5><a href=\"http:\/\/docs.openstack.org\/developer\/fuel-docs\/index.html\">Contents<\/a><\/h5>\n<ul>\n<li>\n<ul>\n<li><a class=\"reference internal\" href=\"http:\/\/docs.openstack.org\/developer\/fuel-docs\/userdocs\/fuel-install-guide\/upgrade\/upgrade-local-repo.html#about-the-fuel-createmirror-script\">About the fuel-createmirror script<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"docs-body\">\n<div id=\"set-up-a-local-repository\" class=\"section\"><span id=\"upgrade-local-repo\"><\/span>Fuel downloads the OpenStack and operating system packages from the predefined repositories on the Fuel Master node. If your Fuel Master node does not have an Internet connection, you must configure a local repository mirror with the required packages and configure Fuel to use this repository.<\/p>\n<p>You can set up a local repository in the Fuel web UI or through Fuel CLI using the <code class=\"docutils literal\"><span class=\"pre\">fuel-createmirror<\/span><\/code> script.<\/p>\n<p><strong>To set up a local repository in the Fuel web UI<\/strong><\/p>\n<ol class=\"arabic simple\">\n<li>In the Fuel web UI, navigate to the <em class=\"guilabel\">Settings<\/em> tab and then scroll down to the <em class=\"guilabel\">Repositories<\/em> section.<\/li>\n<li>Change the path under <em class=\"guilabel\">URI<\/em>.<\/li>\n<\/ol>\n<p><strong>To set up a local repository with the &#8220;fuel-createmirror&#8220; script<\/strong><\/p>\n<ol class=\"arabic\">\n<li>\n<p class=\"first\">Log in to the Fuel Master node CLI.<\/p>\n<\/li>\n<li>\n<p class=\"first\">Run the <code class=\"docutils literal\"><span class=\"pre\">fuel-createmirror<\/span><\/code> script:<\/p>\n<ul>\n<li>\n<p class=\"first\">If you use the default Fuel root password, type:<\/p>\n<div class=\"highlight-python\">\n<div class=\"highlight\">\n<pre><span class=\"n\">fuel<\/span><span class=\"o\">-<\/span><span class=\"n\">createmirror<\/span>\r\n<\/pre>\n<\/div>\n<\/div>\n<\/li>\n<li>\n<p class=\"first\">If you change the default Fuel root password, type:<\/p>\n<div class=\"highlight-python\">\n<div class=\"highlight\">\n<pre>fuel-createmirror --password PASSWORD\r\n<\/pre>\n<\/div>\n<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p class=\"first\">Restart the the docker daemon<\/p>\n<div class=\"highlight-python\">\n<div class=\"highlight\">\n<pre>service docker restart\r\n<\/pre>\n<\/div>\n<\/div>\n<p>Alternatively (recommended), reboot the Fuel Master node.<\/li>\n<\/ol>\n<div id=\"about-the-fuel-createmirror-script\" class=\"section\">\n<h2>About the fuel-createmirror script<a class=\"headerlink\" title=\"Permalink to this headline\" href=\"http:\/\/docs.openstack.org\/developer\/fuel-docs\/userdocs\/fuel-install-guide\/upgrade\/upgrade-local-repo.html#about-the-fuel-createmirror-script\">\u00b6<\/a><\/h2>\n<p>The <code class=\"docutils literal\"><span class=\"pre\">fuel-createmirror<\/span><\/code> is a built-in Fuel script that enables you to modify the Fuel repository sources from the CLI.<\/p>\n<ul>\n<li>\n<p class=\"first\">The script supports only RSYNC mirrors. See the <a class=\"reference external\" href=\"https:\/\/launchpad.net\/ubuntu\/+archivemirrors\">the list of official upstream Ubuntu mirrors<\/a>.<\/p>\n<\/li>\n<li>\n<p class=\"first\">The script uses a Docker container with Ubuntu to support dependencies resolution.<\/p>\n<\/li>\n<li>\n<p class=\"first\">To view help information, type <code class=\"docutils literal\"><span class=\"pre\">fuel-createmirror<\/span> <span class=\"pre\">-h<\/span><\/code>.<\/p>\n<\/li>\n<li>\n<p class=\"first\">The script supports running behind an HTTP proxy configured to Port 873 (rsync). The following environment variables can be set either system-wide (via ~\/.bashrc), or in the script configuration file:<\/p>\n<div class=\"highlight-python\">\n<div class=\"highlight\">\n<pre>http_proxy=http:\/\/username:password@host:port\/\r\nRSYNC_PROXY=username:password@host:port\r\n<\/pre>\n<\/div>\n<\/div>\n<\/li>\n<li>\n<p class=\"first\">You can also configure Docker to use the proxy to download the Ubuntu image needed to resolve the packages dependencies. Add the environment variables to the <cite>\/etc\/sysconfig\/docker<\/cite> file, and export them:<\/p>\n<div class=\"highlight-python\">\n<div class=\"highlight\">\n<pre>http_proxy=http:\/\/username:password@host:port\/\r\nRSYNC_PROXY=username:password@host:port\r\nexport http_proxy RYSNC_PROXY\r\n<\/pre>\n<\/div>\n<\/div>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"docs-actions\"><\/div>\n<div class=\"row docs-byline bottom\">\n<div class=\"docs-updated\">updated: 2016\/09\/21<\/div>\n<\/div>\n<div class=\"docs-updated\">SOURCE: http:\/\/docs.openstack.org\/developer\/fuel-docs\/userdocs\/fuel-install-guide\/upgrade\/upgrade-local-repo.html<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Set up a local repository updated: 2016\/09\/21 Contents About the fuel-createmirror script Fuel downloads the OpenStack and operating system packages from the predefined repositories on the Fuel Master node. If your Fuel Master node does not have an Internet connection, you must configure a local repository mirror with the required packages and configure Fuel to use this repository. You can set up a local repository in the Fuel web UI or through Fuel CLI using the fuel-createmirror script. To set&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.rickyadams.com\/wp\/openstack-setting-up-a-local-repository-for-an-isolated-fuel-deployment\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,3],"tags":[],"class_list":["post-313","post","type-post","status-publish","format-standard","hentry","category-openstack","category-virtualization"],"_links":{"self":[{"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/posts\/313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/comments?post=313"}],"version-history":[{"count":2,"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/posts\/313\/revisions"}],"predecessor-version":[{"id":371,"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/posts\/313\/revisions\/371"}],"wp:attachment":[{"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/media?parent=313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/categories?post=313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rickyadams.com\/wp\/wp-json\/wp\/v2\/tags?post=313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}