translated

This commit is contained in:
geekpi 2016-06-04 11:42:15 +08:00
parent 309ffa9188
commit f1943160f0
2 changed files with 78 additions and 79 deletions

View File

@ -1,79 +0,0 @@
translating---geekpi
Test Fedora 24 Beta in an OpenStack cloud
===========================================
![](https://major.io/wp-content/uploads/2012/01/fedorainfinity.png)
Although there are a few weeks remaining before [Fedora 24][1] is released, you can test out the Fedora 24 Beta release today! This is a great way to get [a sneak peek at new features][2] and help find bugs that still need a fix.
The [Fedora Cloud][3] image is available for download from your favorite [local mirror][4] or directly from [Fedoras servers][5]. In this post, Ill show you how to import this image into an OpenStack environment and begin testing Fedora 24 Beta.
One last thing: this is beta software. It has been reliable for me so far, but your experience may vary. I would recommend waiting for the final release before deploying any mission critical applications on it.
### Importing the image
The older glance client (version 1) allows you to import an image from a URL that is reachable from your OpenStack environment. This is helpful since my OpenStack cloud has a much faster connection to the internet (1 Gbps) than my home does (~ 20 mbps upload speed). However, the functionality to import from a URL was [removed in version 2 of the glance client][6]. The [OpenStackClient][7] doesnt offer the feature either.
There are two options here:
- Install an older version of the glance client
- Use Horizon (the web dashboard)
Getting an older version of glance client installed is challenging. The OpenStack requirements file for the liberty release [leaves the version of glance client without a maximum version cap][8] and its difficult to get all of the dependencies in order to make the older glance client work.
Lets use Horizon instead so we can get back to the reason for the post.
### Adding an image in Horizon
Log into the Horizon panel and click Compute > Images. Click + Create Image at the top right of the page and a new window should appear. Add this information in the window:
- **Name**: Fedora 24 Cloud Beta
- **Image Source**: Image Location
- **Image Location**: http://mirrors.kernel.org/fedora/releases/test/24_Beta/CloudImages/x86_64/images/Fedora-Cloud-Base-24_Beta-1.6.x86_64.qcow2
- **Format**: QCOW2 QEMU Emulator
- **Copy Data**: ensure the box is checked
When youre finished, the window should look like this:
![](https://major.io/wp-content/uploads/2016/05/horizon_image.png)
Click Create Image and the images listing should show Saving for a short period of time. Once it switches to Active, youre ready to build an instance.
### Building the instance
Since were already in Horizon, we can finish out the build process there.
On the image listing page, find the row with the image we just uploaded and click Launch Instance on the right side. A new window will appear. The Image Name drop down should already have the Fedora 24 Beta image selected. From here, just choose an instance name, select a security group and keypair (on the Access & Security tab), and a network (on the Networking tab). Be sure to choose a flavor that has some available storage as well (m1.tiny is not enough).
Click Launch and wait for the instance to boot.
Once the instance build has finished, you can connect to the instance over ssh as the fedora user. If your [security group allows the connection][9] and your keypair was configured correctly, you should be inside your new Fedora 24 Beta instance!
Not sure what to do next? Here are some suggestions:
- Update all packages and reboot (to ensure that you are testing the latest updates)
- Install some familiar applications and verify that they work properly
- Test out your existing automation or configuration management tools
- Open bug tickets!
--------------------------------------------------------------------------------
via: https://major.io/2016/05/24/test-fedora-24-beta-openstack-cloud/
作者:[major.io][a]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://major.io/about-the-racker-hacker/
[1]: https://fedoraproject.org/wiki/Releases/24/Schedule
[2]: https://fedoraproject.org/wiki/Releases/24/ChangeSet
[3]: https://getfedora.org/en/cloud/
[4]: https://admin.fedoraproject.org/mirrormanager/mirrors/Fedora/24/x86_64
[5]: https://getfedora.org/en/cloud/download/
[6]: https://wiki.openstack.org/wiki/Glance-v2-v1-client-compatability
[7]: http://docs.openstack.org/developer/python-openstackclient/
[8]: https://github.com/openstack/requirements/blob/stable/liberty/global-requirements.txt#L159
[9]: https://major.io/2016/05/16/troubleshooting-openstack-network-connectivity/

View File

@ -0,0 +1,78 @@
在OpenStack云中测试Fedora 24 Beta
===========================================
![](https://major.io/wp-content/uploads/2012/01/fedorainfinity.png)
虽然离[Fedora 24][1]还有几周你可以今天就测试Fedora 24 Beta了。这是一个[窥探新特性][2]的好机会并且可以帮助找出仍需要修复的bug。
[Fedora Cloud][3]镜像可以从你最喜欢的[本地镜像][4]或者[Fedora的服务器][5]中下载。本篇文章我将向你展示如何将这个镜像导入Openstack环境并且测试Fedora 24 Beta。
最后说一下这还是beta软件。目前对我来说是可靠的但是你的体验可能会不同。我建议你等到正式版发布再在上面部署关键的应用。
### 导入镜像
旧版的glance客户端版本1允许你在Openstack环境中导入一个URL镜像。由于我Openstack云的连接速度1 Gbps比我家 (大约20 mbps上传速度)快这个功能对我很有用。然而从URL导入的功能[在glance v2中被移除了]。[OpenStackClient][7]也不支持这个功能。
现在由两个选择:
- 安装旧版的glance客户端
- 使用 Horizon (网页面板)
获取旧版本的glance是有挑战性的。Openstack自由发布的需求文件[对glance客户端没有最高版本上限][8],并且很难找到让旧版客户端工作的依赖文件。
让我们使用Horizon来回到写这篇文章的原因。
### 在Horizon中添加一个镜像
登录Horizon面板点击Compute->Image. 点击页面右上方的“+”创建新镜像,一个新的窗口会显示出来。并且窗口中有这些信息:
- **Name**: Fedora 24 Cloud Beta
- **Image Source**: Image位置
- **Image Location**: http://mirrors.kernel.org/fedora/releases/test/24_Beta/CloudImages/x86_64/images/Fedora-Cloud-Base-24_Beta-1.6.x86_64.qcow2
- **Format**: QCOW2 QEMU Emulator
- **Copy Data**: 确保勾选了
完成后,你会看到这个:
![](https://major.io/wp-content/uploads/2016/05/horizon_image.png)
点击创建镜像接着会显示一段时间的Saving。一旦切换到Active你可以构建一个实例了。
### 构建实例
既然我们在Horizon我们可以完成构建过程了。
在镜像列表页面找出我们上传的镜像并且点击右边的启动实例。一个新的窗口会显示出来。下拉框中应该已经选择了Fedora 24 Beta的镜像。在这里选择一个实例名选择一个安全组和密钥对在Access & Security中和网络在Networking标签。确保选择有足够容量的存储m1.tiny还不够
点击启动并且等待实例启动。
一旦实例构建完成你可以作为fedora用户通过ssh连接。如果你的[安全组允许连接][9]并且你的密钥对正确配置了你应该在Fedora 24 Beta中了
还不确定接下来做什么?有下面几点建议:
- 升级所有的包并且重启(确保你测试的是最新的更新)
- 安装一些相似的应用并且验证它们可以正常工作
- 测试你已有的自动化或者配置管理工具
- 打开bug报告
--------------------------------------------------------------------------------
via: https://major.io/2016/05/24/test-fedora-24-beta-openstack-cloud/
作者:[major.io][a]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://major.io/about-the-racker-hacker/
[1]: https://fedoraproject.org/wiki/Releases/24/Schedule
[2]: https://fedoraproject.org/wiki/Releases/24/ChangeSet
[3]: https://getfedora.org/en/cloud/
[4]: https://admin.fedoraproject.org/mirrormanager/mirrors/Fedora/24/x86_64
[5]: https://getfedora.org/en/cloud/download/
[6]: https://wiki.openstack.org/wiki/Glance-v2-v1-client-compatability
[7]: http://docs.openstack.org/developer/python-openstackclient/
[8]: https://github.com/openstack/requirements/blob/stable/liberty/global-requirements.txt#L159
[9]: https://major.io/2016/05/16/troubleshooting-openstack-network-connectivity/