Fuel 9.0快速部署Openstack Mitaka 图文详解(3)

Fuel 9.0快速部署Openstack Mitaka 图文详解


 
2.2 增加本地源.
打开 /var/www/nailgun 目录 ,用ls发现目录下现在是没有mirrors文件夹.因为我采用的是离线模式安装,没有从官方的链接中下载一些必要的库,所以从国外找了一些源下载了以后放置在网盘中了.
  cd /var/www/nailgun

我已经上传本地源文件到我的百度盘,下载下面2个连接的文件包,传输到/var/www/nailgun目录下,有冲突的部分直接替换掉.

Bootstraps 与Mirrors  可从以下信息的得到下载:

点击这个 链接关注 Linux公社官方微信,关注后回复数字144680。即可得到网友的分享密码。

如果取消关注Linux公社公众号,即使再次关注,也将无法提供本服务!

链接:https://pan.baidu.com/s/1mhHD1Hm 密码:获得见上面的方法,地址失效请在下面留言。

------------------------------------------分割线------------------------------------------

使用XFTP软件将本地源文件copy到Fuel,具体如下图.也可以自己在PC或者服务器上建立FTP服务器,然后利用wget命令传输文件.总之不管用什么方法都可以,只要能把文件上传到相应的文件夹内即可.

Fuel 9.0快速部署Openstack Mitaka 图文详解

Fuel 9.0快速部署Openstack Mitaka 图文详解

Fuel 9.0快速部署Openstack Mitaka 图文详解

运行 Fuel-createmirror命令, 此命令目的是让web后台管理界面的源地址变为本地地址.(默认为一些官方链接下载地址,这些地址速度很慢,有的甚至连接不到,所以这里替换为本地源地址.)
[root@fuel nailgun]#fuel-createmirror
This script is DEPRECATED. Please usefuel-mirror utility!
Starting new HTTP connection (1):10.20.0.2
Starting new HTTP connection (1):10.20.0.2
Starting new HTTP connection (1):10.20.0.2
Starting new HTTP connection (1):10.20.0.2
Failed to open url -: <urlopen error [Errno -2] Name orservice not known>. retries left - 2.
Traceback (mostrecent call last):
  File"/usr/lib/python2.7/site-packages/packetary/library/connections.py",line 214, in open_stream
    return self.opener.open(request)
  File"/usr/lib64/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File"/usr/lib64/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File"/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File"/usr/lib64/python2.7/urllib2.py", line 1244, in http_open
    return self.do_open(httplib.HTTPConnection,req)
  File"/usr/lib64/python2.7/urllib2.py", line 1214, in do_open
    raise URLError(err)
URLError: <urlopenerror [Errno -2] Name or service not known>
Failed to open url -:<urlopen error [Errno -2] Name or service not known>. retries left - 1.
Traceback (mostrecent call last):
 File "/usr/lib/python2.7/site-packages/packetary/library/connections.py",line 214, in open_stream
    return self.opener.open(request)
  File"/usr/lib64/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File"/usr/lib64/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File"/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File"/usr/lib64/python2.7/urllib2.py", line 1244, in http_open
    return self.do_open(httplib.HTTPConnection,req)
  File"/usr/lib64/python2.7/urllib2.py", line 1214, in do_open
    raise URLError(err)
URLError: <urlopenerror [Errno -2] Name or service not known>
Failed to open url -:<urlopen error [Errno -2] Name or service not known>. retries left - 0.
Traceback (most recentcall last):
  File"/usr/lib/python2.7/site-packages/packetary/library/connections.py",line 214, in open_stream
    return self.opener.open(request)
  File"/usr/lib64/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File"/usr/lib64/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File"/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File"/usr/lib64/python2.7/urllib2.py", line 1244, in http_open
    return self.do_open(httplib.HTTPConnection,req)
  File"/usr/lib64/python2.7/urllib2.py", line 1214, in do_open
    raise URLError(err)
URLError: <urlopenerror [Errno -2] Name or service not known>
<urlopen error[Errno -2] Name or service not known>
Starting new HTTP connection(1): 10.20.0.2
Starting new HTTPconnection (1): 10.20.0.2
Starting new HTTPconnection (1): 10.20.0.2
Starting new HTTPconnection (1): 10.20.0.2
Updating the Clusterrepositories...
Updating the releaserepositories...
Try to update theRelease 'Mitaka on Ubuntu 14.04'
Try to update theRelease 'Mitaka on Ubuntu+UCA 14.04'
Operations have been completed successfully
更换本地源后和bootstrp后,查看是否有已经激活的bootstrp.

Fuel 9.0快速部署Openstack Mitaka 图文详解

如果这里没有激活很可能是你下载的文件损坏了.可以尝试找其他bootstrp文件来覆盖.

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/b2c318966de033782d09bab7527fd1a2.html