设为首页 收藏本站
查看: 1154|回复: 0

[经验分享] openstack手动玩转

[复制链接]

尚未签到

发表于 2015-4-13 09:44:36 | 显示全部楼层 |阅读模式
  
  openstack or all most cloud env Network desgine  is so much master!
  openstack env arch-->Network 主要有2种,openstack networking(neutron),legacy
  具体网络规划之前写了简单笔记,只是我去那次 没保存,我也就懒得再写了!我这人就这熊样,你懂的!
  想真正玩转openStack,需加强熟悉其组件,组件较多(约10个左右),其功能之强大窥此也可见一斑,,所以ruiy在玩转openstack唱响的口号是,想玩转openstack,先从玩转其组件部署开始,熟不知,百尺高楼跟(根)地基!不然你永远是擦皮鞋的,一般生态论中答案只有2个,玩转;玩不转,答案咫尺天涯,待你书写 !!!
  
  Ruiy 提醒,在决战前先要把基本功做到位,icehource-repo;
  1,identity server install;







  创建admin账号;

  创建角色,租户

  链接admin
  链接 _member_ role admin

  create normal user;

  link the demo user,_member_ role,and demo tenant;

  Create a service tenant

  define service and API endpoints;
  keystone service-create. Describes the service
  keystone endpointe-create.Associate API endpoints with the service

  1,Create a service entry for the identity service:

  2,specify an API endpoint for the identity service,provide url for public API,internal API,and admin API;

  其中得注意下identity 常用的2个端口分别是35357,5000,上面我的测试环境有个事错的;
  3,verify the identity service installtion

  已定义的identity service variables

  unset OS_SERVICE_TOKEN OS_SERVICE_ENDPOINT

  web-base 验证 identity service

  cmd验证

  set variables



  
  (block storage) cinder python-cinderclient create and manage volumes;
  compute nova python-novaclient create manage images,instances,and flavors;
  database service trove python-troveclient create and manage databases;
  identity keystone python-keystoneclient create manage users,tenants,roles,endpoints,and credentials;
  image service glance python-glanceclient create and manage images;
  networking neutron python-neutronclient configure network for guest server,this client was previosly claaed quantum;
  object storage swift python-swiftclient gather statistics,list items,update metadata,and upload,download,and delete files stored by the object storage service,gain access to an object storage installation for ad hoc processing;
  orchestration heat python-heatclient launch stacks from templates,view details of running stacks including events and resources,and update and delete stacks;
  telemetry ceilometer python-ceilometerclient  create and collect measurements across openstack;
  使用identity 列表用户 出现问题,待解决


  1,install the openstack command-line clients
  prerequisite software
  python,setuptools pip;

python-pip.noarch : A tool for installing and managing Python packages
python-setuptools.noarch : Easily build and distribute Python packages
  yum -y install python-pip python python-setuptools;

  https://pypi.python.org/pypi/setuptools

wget https://bootstrap.pypa.io/ez_setup.py -O - | python
https://pypi.python.org/pypi/python-novaclient/
install the clients;
2,install the clients;
ceilometer -->Telemetry API
cinder --> block storage API and extensions
glance --> image service API
heat -->orchestration API
keystone -->identity service API and extensions
neutron -->etworking API
nova -->computer API and extensions
swift -->object stoage API
trove -->database service API
具体落实openstack 组件,使用pip工具

  pip install python-PROJECTclient
  yum -y install python-PROJECTclient;
  基于python package install tool 升级及移除卸载安装包组件命令
  pip install --upgrade python-PROJECTclient;
  pip uninstall python-PROJECTclient;
  3,set environment variables using the openstack RC file;



export OS_USERNAME=admin
export OS_PASSWORD=321
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://master.puppet.cc:35357/v2.0
expect(sshPasswdless noActive);
  小插曲,修改数据库表,修复之前创建enpoint端口问题;

  覆盖环境变量
  keystone --os-password override EnvironmentVariable service-list;





  
  image service enables users to discover,register,and retrieve virtual machine images;
  image service offer a reset API that enables you to query virtual machine image metadata and retrieve an actual image;
  you can store virtual machine images made available through the image service in a variety of locations from simple file systems to object-storage systems like openstack object storage;
  for simplicity,configures the image service are stored a directory on the same system that hosts,directory /var/lib/glance/images;
  image service components:
  glance-api:accept image API calls for image discovery,retrieval,and storage;
  glance-registry:Stores,pocesses,and retrieves metadata about images,Metadata includes items such as size and type;
  INSTALL the image service;
  yum -y install openstack-glance python-glanceclient;

  image service acts as a registry fo virtual disk images,users can add new image or take a snapshot of an image from an existing server for immediate storage;
  类似identity service相关配置信息也是存储在mysql库中的;
  配置image service 数据库存储;

  configure the image service to use the message broker(Ruiy test environment use qpid):

  use the password you created to log in as root and create a glance database  user:

  创造数据表为image service

  create a glance user that the image service can to authenticate with the identity service,choose a password and specify an email address for the glance,use the service tenant and give the admin role;

  configure the image service to use the identity ervice for authentication;

  register the image service with the identity service so that other openstack services can locate it,register the service and create the endpoint;

  start the glance-api and glance-registry service and configure them start when the system boots

  现在我们简单验证下image service;
  CirrOS is a small test image
  http://download.cirros-cloud.net/

  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-56551-1-1.html 上篇帖子: Openstack-Dashboard汉化 下篇帖子: 存储那些事儿(三):OpenStack的块存储Cinder与商业存储的融合
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表