查看: 1785|回复: 0

使用git下载kilo版本的nova源码用于更新nova组件

[复制链接]
论坛徽章:
4
Hadoop研习者初级
日期:2016-06-30 14:32:16nosql徽章
日期:2016-07-14 11:21:27Openstack徽章
日期:2016-11-17 15:59:19mysql徽章
日期:2017-07-11 15:58:37
发表于 2017-3-10 19:36 | 显示全部楼层 |阅读模式

tm 源码

1.使用git下载nova源码,下载后大小为290MB:
devstack@devstackcontrol:/tmp$ git clone https://github.com/openstack/nova.git
Cloning into 'nova'...
fatal: unable to access 'https://github.com/openstack/nova.git/': GnuTLS recv error (-9): A TLS packet with unexpected length was received.
devstack@devstackcontrol:/tmp$ git clone https://github.com/openstack/nova.git
Cloning into 'nova'...
remote: Counting objects: 441921, done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 441921 (delta 23), reused 5 (delta 5), pack-reused 441881
Receiving objects: 100% (441921/441921), 251.11 MiB | 41.00 KiB/s, done.
Resolving deltas: 100% (353269/353269), done.
Checking connectivity... done.

2.切换到kilo版本的最终版本kilo-eol代表kilo end of file
devstack@devstackcontrol:/tmp/nova$ git branch
* master
devstack@devstackcontrol:/tmp/nova$ git checkout kilo-eol
Note: checking out 'kilo-eol'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at cd81512... Merge "VMware: Use virtual disk size instead of image size" into stable/kilo
3.已经切换到kilo:
devstack@devstackcontrol:/tmp/nova$ git branch           
* (detached from kilo-eol)
  master
4.查看当前nova版本为12.0.5.dev4:
devstack@devstackcontrol:/tmp/nova$ pip list | grep nova     
nova (12.0.5.dev4, /opt/stack/nova)
python-novaclient (2.35.0)
You are using pip version 7.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

执行pip install --upgrade pip后:
devstack@devstackcontrol:/tmp/nova$ pip list | grep nova     
nova (12.0.5.dev4, /opt/stack/nova)
python-novaclient (2.35.0)
You are using pip version 7.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

5.再Nova目录下执行pip install . 即可完成更新Nova到版本()
(所有运行了 nova-* 服务的节点(控制节点和计算节点)都需要更新源代码并重启服务)
pip install .

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

 

GMT+8, 2019-8-26 16:01 , Processed in 0.086677 second(s), 29 queries .