博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
openstack学习笔记十一 Nova
阅读量:5963 次
发布时间:2019-06-19

本文共 7324 字,大约阅读时间需要 24 分钟。

计算节点   跑虚拟机

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[root@hequan ~]
# yum  install  openstack-nova.noarch      openstack-nova-api.noarch  openstack-nova-conductor.noarch  
openstack-nova-novncproxy.noarch   openstack-nova-scheduler.noarch  openstack-nova-console.noarch   
##控制节点
[root@hequan ~]
# yum install  openstack-nova-compute.noarch  ##计算节点
keystone  user-create  --name  nova  --pass  hequan
keystone  user-role-add --user   nova  --role admin  --tenant  services
keystone  service-create  --name  nova --
type 
compute  --description  nova
 
 
| 7708b5c40aec4cf3b59d6d84596a5f6b |    nova    |   compute    |   Openstack Compute Service    |
| 017bdbf9f335436cbd7f65fe74089b28 |  nova_ec2  |     ec2      |          EC2 Service           |
| 4f7b60427d304fd89658f4f8c23dd708 |   novav3   |  computev3   |  Openstack Compute Service v3  |
+----------------------------------+-----------+-------------------------------------------------+-------------------------------------------------+--------------------------------------------+----------------------------------+
|                
id                
|   region  |                    publicurl                    |                   internalurl                   |                  adminurl                  |            service_id            |
+----------------------------------+-----------+-------------------------------------------------+-------------------------------------------------+--------------------------------------------+----------------------------------+
| 0bda7145ebc944a99112c53e97362fa1 | RegionOne |    http:
//115
.29.107.17:8774
/v2/
%(tenant_id)s   |    http:
//115
.29.107.17:8774
/v2/
%(tenant_id)s   | http:
//115
.29.107.17:8774
/v2/
%(tenant_id)s | 7708b5c40aec4cf3b59d6d84596a5f6b |
| 731be711c3be4497b57c8751ce111986 | RegionOne |     http:
//115
.29.107.17:8773
/services/Cloud    
|     http:
//115
.29.107.17:8773
/services/Cloud    
|  http:
//115
.29.107.17:8773
/services/Admin  
| 017bdbf9f335436cbd7f65fe74089b28 |
| 7ec9cb12959f4bedb7e0757c79b636fd | RegionOne |             http:
//127
.0.0.1:8774
/v3            
|             http:
//127
.0.0.1:8774
/v3            
|          http:
//127
.0.0.1:8774
/v3          
| 4f7b60427d304fd89658f4f8c23dd708 |
 
 
keystone  endpoint-create --service-
id    
--publicul 
''  
--internalurl 
'' 
--adminurl 
''
openstack-db  --init --service  nova --password hequan --root 123456
 
 
[root@hequan ~]
# ls -ld /var/log/nova/
drwxr-x--- 2 nova root 4096 7月  23 00:08 
/var/log/nova/
[root@hequan ~]
# chown nova.nova  /var/log/nova/  -R
[root@hequan nova(keystone_admin)]
# mv nova.conf nova.conf.bak
[root@hequan nova(keystone_admin)]
# systemctl   list-unit-files | grep nova
openstack-nova-api.service                    enabled
openstack-nova-cert.service                   enabled
openstack-nova-compute.service                enabled
openstack-nova-conductor.service              enabled
openstack-nova-console.service                disabled
openstack-nova-consoleauth.service            enabled
openstack-nova-metadata-api.service           disabled
openstack-nova-novncproxy.service             enabled
openstack-nova-scheduler.service              enabled
openstack-nova-xvpvncproxy.service            disabled
vncserver_proxyclient_address=115.29.107.17  
##改成本机的IP


vim nova.conf


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
[DEFAULT]
internal_service_availability_zone=internal
default_availability_zone=nova
novncproxy_host=0.0.0.0
novncproxy_port=6080
notify_api_faults=False
state_path=
/var/lib/nova
report_interval=10
enabled_apis=ec2,osapi_compute,metadata
ec2_listen=0.0.0.0
ec2_listen_port=8773
ec2_workers=1
osapi_compute_listen=0.0.0.0
osapi_compute_listen_port=8774
osapi_compute_workers=1
metadata_listen=0.0.0.0
metadata_listen_port=8775
metadata_workers=1
compute_manager=nova.compute.manager.ComputeManager
service_down_time=60
rootwrap_config=
/etc/nova/rootwrap
.conf
volume_api_class=nova.volume.cinder.API
auth_strategy=keystone
use_forwarded_for=False
heal_instance_info_cache_interval=60
reserved_host_memory_mb=512
cpu_allocation_ratio=16.0
ram_allocation_ratio=1.5
network_api_class=nova.network.neutronv2.api.API
default_floating_pool=public
force_snat_range =0.0.0.0
/0
metadata_host=115.29.107.17
dhcp_domain=novalocal
security_group_api=neutron
scheduler_default_filters=RetryFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,CoreFilter
scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
compute_driver=libvirt.LibvirtDriver
vif_plugging_is_fatal=True   
##  修改False  如果有报错   实例执行请求失败
vif_plugging_timeout=300     
## 修改为0
firewall_driver=nova.virt.firewall.NoopFirewallDriver
force_raw_images=True
debug=False
verbose=True
log_dir=
/var/log/nova
use_syslog=False
syslog_log_facility=LOG_USER
use_stderr=True
notification_topics=notifications
rpc_backend=rabbit
amqp_durable_queues=False
sql_connection=mysql:
//nova
:hequan@115.29.107.17
/nova
image_service=nova.image.glance.GlanceImageService
lock_path=
/var/lib/nova/tmp
osapi_volume_listen=0.0.0.0
vncserver_proxyclient_address=115.29.107.17  
##修改本机地址
vnc_keymap=en-us
vnc_enabled=True
vncserver_listen=0.0.0.0
novncproxy_base_url=http:
//115
.29.107.17:6080
/vnc_auto
.html
[api_database]
[barbican]
[cells]
[cinder]
catalog_info=volumev2:cinderv2:publicURL
[conductor]
[cors]
[cors.subdomain]
[database]
[ephemeral_storage_encryption]
[glance]
api_servers=115.29.107.17:9292
[guestfs]
[hyperv]
[image_file_url]
[ironic]
[keymgr]
[keystone_authtoken]
auth_uri=http:
//115
.29.107.17:5000
/v2
.0
identity_uri=http:
//115
.29.107.17:35357
admin_user=nova
admin_password=hequan
admin_tenant_name=services
[libvirt]
virt_type=qemu
inject_password=False
inject_key=False
inject_partition=-1
live_migration_uri=qemu+tcp:
//nova
@%s
/system
cpu_mode=none
vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver
[matchmaker_redis]
[matchmaker_ring]
[metrics]
[neutron]
service_metadata_proxy=True
metadata_proxy_shared_secret =hequan
url=http:
//115
.29.107.17:9696
admin_username=neutron
admin_password=hequan
admin_tenant_name=services
region_name=RegionOne
admin_auth_url=http:
//115
.29.107.17:5000
/v2
.0
auth_strategy=keystone
ovs_bridge=br-int
extension_sync_interval=600
timeout=30
default_tenant_id=default
[osapi_v21]
[oslo_concurrency]
[oslo_messaging_amqp]
[oslo_messaging_qpid]
[oslo_messaging_rabbit]
kombu_reconnect_delay=1.0
rabbit_host=115.29.107.17
rabbit_port=5672
rabbit_hosts=115.29.107.17:5672
rabbit_use_ssl=False
rabbit_userid=guest
rabbit_password=guest
rabbit_virtual_host=/
rabbit_ha_queues=False
heartbeat_timeout_threshold=0
heartbeat_rate=2
[oslo_middleware]
[rdp]
[serial_console]
[spice]
[ssl]
[trusted_computing]
[upgrade_levels]
[vmware]
[vnc]
[workarounds]
[xenserver]
[zookeeper]
[osapi_v3]
enabled=False



1
2
3
4
5
6
7
8
9
10
11
12
[root@hequan ~]
# nova-manage service list
[root@hequan ~(keystone_admin)]
# nova  host-list
+---------------+-------------+----------+
| host_name     | service     | zone     |
+---------------+-------------+----------+
| hequan.lol    | consoleauth | internal |
| hequan.lol    | scheduler   | internal |
| hequan.lol    | conductor   | internal |
| hequan.lol    | compute     | nova     |
| hequan.lol    | cert        | internal |
[root@hequan ~]
# systemctl is-active  libvirtd.service
active
本文转自 295631788 51CTO博客,原文链接:http://blog.51cto.com/hequan/1832697,如需转载请自行联系原作者
你可能感兴趣的文章
实时数据平台设计:解决从OLTP到OLAP实时流转缺失
查看>>
三家公司在SD-WAN方面的新动作
查看>>
C#在PDF中如何以不同颜色高亮文本
查看>>
在同一页面显示多个JavaScript统计图表
查看>>
Mac电脑Tomcat下载及安装(详细)MAC在Eclipse里配置tomcat
查看>>
多线程之-----------定时器
查看>>
C#语法——反射,架构师的入门基础。
查看>>
Beego Models 之 一
查看>>
代码生成工具Database2Sharp中增加视图的代码生成以及主从表界面生成功能
查看>>
Kubernetes部署的最佳安全实践
查看>>
理解C语言——从小菜到大神的晋级之路(8)——数组、指针和字符串
查看>>
Windows Shellcode学习笔记——shellcode在栈溢出中的利用与优化
查看>>
关于多线程中使用SendMessage
查看>>
【云栖大会】阿里云移动云Apsara Mobile重磅发布 推出Cloud Native App全新研发范式...
查看>>
【PMP】Head First PMP 学习笔记 第九章 人力资源管理
查看>>
2015年末必备前端工具集
查看>>
【Solidity】8. 杂项 - 深入理解Solidity
查看>>
关于在VS2005中编写DLL遇到 C4251 警告的解决办法
查看>>
Go语言大神亲述:历七劫方可成为程序员!
查看>>
CYQ.Data 轻量数据层之路 V4.5 版本发布[更好的使用体验,更优的缓存机制]
查看>>