OpenStack

jclouds with OpenStack => java.util.NoSuchElementException: apiType compute not found in catalog []

孤街浪徒 提交于 2019-12-24 15:23:07
问题 Java jclouds API fails to connect to an OpenStack provider. Exception is thrown with the following message: java.util.NoSuchElementException: apiType compute not found in catalog []. Other APIs (python-novaclient, ruby-fog) work just fine, so the problem looks language (API)-specific. import static com.google.common.io.Closeables.closeQuietly; import java.io.Closeable; import java.util.Set; import org.jclouds.ContextBuilder; import org.jclouds.compute.ComputeService; import org.jclouds

OpenStack: what is a stack?

微笑、不失礼 提交于 2019-12-24 11:53:40
问题 From what I saw, a "Stack" (in OpenStack) is a collection of resources. But I don't understand how it is "delimited". There are multiple questions, but I think they could be answered easily answered together as they are all linked. First of all, what is a resource ? I guess it includes servers, but does it include load balancers ? or load balancer's PoolMember s as a specific kind of resource ? Would a floating IP be considered as a resource or as a part of a resource (of the server it is

Openstack Instance does not use the entire hard disk

我与影子孤独终老i 提交于 2019-12-24 08:30:01
问题 I created new vm instance using "Ubuntu Server 10.04 LTS (Lucid Lynx) - 32 bits" image and m1.small falvour which has 20 GB Disk (OpenStack Icehouse). When i logging to the vm and run df -h , I found that the VM does not use the entire assigned HD. The command results are shown as the following: Filesystem Size Used Avail Use% Mounted on /dev/vda1 1.4G 595M 721M 46% / none 1005M 144K 1005M 1% /dev none 1007M 0 1007M 0% /dev/shm none 1007M 36K 1007M 1% /var/run none 1007M 0 1007M 0% /var/lock

Openstack.Net SDK cannot access services

元气小坏坏 提交于 2019-12-24 00:57:37
问题 We've setup an OpenStack system on our own hardware installing all components, with everything seemingly fine as we've created networks and VMs through the web interface. I'm trying to use openstack.net SDK to do things programatically. I seem to be able to Authenticate fine using a username and password, but when it comes to accessing other services that are installed, we get errors suggesting the API endpoints aren't available to the user. The code we're using is below which works fine

(四)OpenStack---M版---双节点搭建---Glance安装和配置

跟風遠走 提交于 2019-12-24 00:07:45
↓↓↓↓↓↓↓↓视频已上线B站↓↓↓↓↓↓↓↓ 》》》》》》 传送门 1.创建glance数据库 2.获得 admin 凭证来获取只有管理员能执行的命令的访问权限 3.创建服务证数,创建用户,添加角色到项目上 4.创建镜像服务的 API 端点 5.安装Glance软件包,并配置 6.同步数据库服务 7.启动镜像服务并设置开机启动 8.验证操作,上传镜像 1.创建glance数据库 # mysql -uroot -p000000 >create database glance; > grant all privileges on glance.* to 'glance'@'localhost' identified by '000000'; > grant all privileges on glance.* to 'glance'@'%' identified by '000000'; 2.获得 admin 凭证来获取只有管理员能执行的命令的访问权限 # . /root/admin-openrc 3.创建服务证数,创建用户,添加角色到项目上 创建 glance 用户 #openstack user create --domain default --password 000000 glance 添加 admin 角色到 glance 用户和 service 项目上

安装OpenStack QUEENS版本五:neutron

↘锁芯ラ 提交于 2019-12-23 19:54:50
mysql -uroot -ppassword -e "CREATE DATABASE neutron" mysql -uroot -ppassword -e "GRANT ALL PRIVILEGES ON neutron. TO 'neutron'@'localhost' IDENTIFIED BY 'password'" mysql -uroot -ppassword -e "GRANT ALL PRIVILEGES ON neutron. TO 'neutron'@'%' IDENTIFIED BY 'password'" source admin-openrc openstack user create --domain default --password password neutron openstack role add --project service --user neutron admin openstack service create --name neutron --description "OpenStack Networking" network openstack endpoint create --region RegionOne network public http://controller:9696 openstack endpoint

安装OpenStack QUEENS版本六:dashboard

情到浓时终转凉″ 提交于 2019-12-23 19:54:01
yum install openstack-dashboard -y Edit the /etc/openstack-dashboard/local_settings file vim /etc/openstack-dashboard/local_settings OPENSTACK_HOST = "controller" ALLOWED_HOSTS = ['horizon.example.com', 'localhost', 'controller', '192.168.137.36'] SESSION_ENGINE = 'django.contrib.sessions.backends.cache' CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': 'controller:11211', } } OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True OPENSTACK_KEYSTONE_URL = " http://%s:5000/v3 " % OPENSTACK_HOST OPENSTACK_API_VERSIONS = { "data-processing": 1.1,

Is it possible to create an ami from an openstack image?

。_饼干妹妹 提交于 2019-12-23 18:48:25
问题 I'm creating an image from a running instance in OpenStack nova image-create <server-name> and i'm just wondering,can this image be uploaded to ec2? Or do i need to create an ami from it? Can someone guide me on how to go about this? 回答1: glance, the openstack image service is capable of storing a number of image types: Raw Machine (kernel/ramdisk outside of image, a.k.a. AMI) VHD (Hyper-V) VDI (VirtualBox) qcow2 (Qemu/KVM) VMDK (VMWare) OVF (VMWare, others) Ref: http://www.openstack.org

kolla

北城余情 提交于 2019-12-23 02:34:32
Kolla安装Openstack 强出头 关注 2019.03.22 18:42:10 字数 648 阅读 1,471 常见问题 1.Cannot uninstall 'ipaddress'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. 此类问题强制升级此安装包即可。(已发现PyYAML,ipaddress) pip install --ignore-installed ipaddress 2.ImportError: cannot import name decorate pip install -U decorator 环境准备 启动虚拟机 配置如下: 内存: 8G(建议再高点) 处理器:2核(开启嵌套虚拟化后,虚拟机才能正常创建,这里不开暂时不影响部署) 硬盘:100G(系统盘) + 20GB(创建cinder lvm时使用) 网络:2个nat网络,一个有IP,一个没IP [root@localhost ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue

OpenStack及其构成简介

◇◆丶佛笑我妖孽 提交于 2019-12-23 02:06:18
OpenStack及其构成简介 新的一年新的开始,突然想学习下Openstack,之前了解过很多,但是想系统的学习一下,第一次写博客,只想把学到的东西记录下来加深印象,如有写的不好的地方请多多见谅。下面开门见山。 1.What is OpenStack? 是 Rackspace(贡献swift)和NASA(贡献nova)共同发起的开源项目,是一系列软件开源项目的组合。基础设施资源管理平台(类似操作系统可以管理硬件池,可以根据需求提供资源)。 OpenStack三大核心组件 (网络,计算,存储) 概念架构图 逻辑架构图 Core Services (6) NAME SERVICE KEYSTONE Identity 认证* GLANCE Image 镜像* NOVA Compute 计算* NEUTRON Networking 网络* CINDER Block Storage 块存储 SWIFT Object Storage 对象存储 Optional Services (13) NAME SERVICE Horizon Dashboard 面板* Heat Orchestration 编配 Ceilometer Telemetry 监控 Sahara Elastic Map Reduce 大数据部署 ....... ....... 1.Horizon(UI模块) 页面调用api