CL201课堂笔记-RCHA认证之路-OpenStack
DAY ONE - AM
课前讲解
for i in director power workstation utility controller0 compute0 ceph0; do
rht-vmctl start $i
virsh list
done
ssh kiosk@172.16.108.177
chapter3
utility.lab.example.com
admin
RedHat123^
关于时间问题:
[root@foundation0 ~]# timedatectl set-ntp false
[root@foundation0 ~]# timedatectl set-time 2019-08-01
[root@foundation0 ~]# rht-vmctl reset all
classroom和utility的httpd服务是否正常启动,因为他们管理http和httpd的证书。
如果证书过期,建议将时间调整为2019-05-01
实验环境:ooo架构,Openstack(Undercloud) On Openstack(overcloude)
模块 | 作用 | 应用 | 宿主机 | 备注 |
---|---|---|---|---|
undercloud | 安装、管理、升级 | ipmi电源管理 | director | |
classroom | 提供所需要的服务的服务器 | |||
workstation | 主要执行实验环境中的脚本 | |||
power | 虚拟的IPMI | |||
httpd服务 | utility | IPA服务器 | ||
overcloud | 运行虚拟机(干活的) | controller0 | 默认不启动,通过ipmi启动 | |
compute0 | ||||
compute1 | ||||
超融合节点 | computehci0 | |||
ceph |
ipmi启动openstack虚机
ssh stack@direcoter
rht-overcloud.sh start
#关闭虚机
rht-overcloud.sh stop
两种类型的桥接接口
- linux bridge:常见在KVMbrctl show
- Openvswitch bridge: 软件定义的虚拟交换机 ovs-vsctl show
电源管理,控制的设备清单:
[root@power ~]# cat /etc/bmc/vms
# List the VMs that the fake ipmi will manage. Include in the list one
# VM name per line along with the proxy IP the IPMI client (ipmitool)
# will use to manage it.
#
# EXAMPLE: VM_NAME,IP_ADDRESS
controller0,172.25.249.101
compute0,172.25.249.102
ceph0,172.25.249.103
computehci0,172.25.249.106
compute1,172.25.249.112
第一章 Openstack architecture
ssh root@utility
systemctl httpd status
kinit admin
password: RedHat123^
[root@utility ~]# ipa user-find |grep "用户"
已匹配29个用户
用户登录名: admin
用户登录名: architect1
用户登录名: architect2
用户登录名: architect3
用户登录名: architect4
用户登录名: architect5
用户登录名: architect6
用户登录名: architect7
用户登录名: architect8
用户登录名: architect9
用户登录名: developer1
用户登录名: developer2
用户登录名: developer3
用户登录名: developer4
用户登录名: developer5
用户登录名: developer6
用户登录名: developer7
用户登录名: developer8
用户登录名: developer9
用户登录名: operator1
用户登录名: operator2
用户登录名: operator3
用户登录名: operator4
用户登录名: operator5
用户登录名: operator6
用户登录名: operator7
用户登录名: operator8
用户登录名: operator9
用户登录名: svc-ldap
#检测虚机IPMI状态
(undercloud) [stack@director ~]$ ipmitool -I lanplus -U admin -P password -H 172.25.249.112 power status
Chassis Power is on
查看:firefox上地址:utility.lab.example.com 验证apache是否正常工作。
IPA服务器的用户口令
admin/RedHat123^
查看openstack服务列表:
(undercloud) [stack@director ~]$ openstack server list
+--------------------------------------+-------------+--------+------------------------+----------------+-----------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+-------------+--------+------------------------+----------------+-----------+
| 67ec3852-e2b0-493a-b7e6-83244c6f2f08 | compute1 | ACTIVE | ctlplane=172.25.249.55 | overcloud-full | baremetal |
| 2fa177e2-3fdf-4643-9229-9f37abd0cc5e | compute0 | ACTIVE | ctlplane=172.25.249.54 | overcloud-full | baremetal |
| 270e81d7-b905-4d8d-99d1-a8cc9cc7b17d | computehci0 | ACTIVE | ctlplane=172.25.249.59 | overcloud-full | baremetal |
| 1dfc01e4-5060-415e-a28e-4642c8bcb0f2 | controller0 | ACTIVE | ctlplane=172.25.249.57 | overcloud-full | baremetal |
| a341c1c8-cd16-4ad4-a4c7-3814b101b4dd | ceph0 | ACTIVE | ctlplane=172.25.249.58 | overcloud-full | baremetal |
+--------------------------------------+-------------+--------+------------------------+----------------+-----------+
(undercloud) [stack@director ~]$ openstack service list
+----------------------------------+------------------+-------------------------+
| ID | Name | Type |
+----------------------------------+------------------+-------------------------+
| 0175f01b32e34e048e65480466ca0df1 | placement | placement |
| 19e6c0e055fb4f77b5edc9db4c34941b | heat-cfn | cloudformation |
| 261998639f5b464fafaadcc0ff4d85d7 | zaqar-websocket | messaging-websocket |
| 32f1900fc5104ec0a032eb2f0bbe63b6 | ironic | baremetal |
| 70564b321fa349678465e01cc57e69f7 | keystone | identity |
| 7193f91efeb44525ae2780420f752c0f | glance | image |
| 8c4172704dba426a83a3c3633553df65 | ironic-inspector | baremetal-introspection |
| 941164cdcd574ef294fc39b776141855 | heat | orchestration |
| 9df43eebd74740c9a5d6ad026b53146b | neutron | network |
| d1f5fa857c7e40db88e48b713d28debd | swift | object-store |
| e8e21db59b7c47879cfa9c51c780777f | mistral | workflowv2 |
| eade3c9269134a528a15f598ca70421b | nova | compute |
| f0a5a41b6bbe4c229f13964e47f754d6 | zaqar | messaging |
+----------------------------------+------------------+-------------------------+
(undercloud) [stack@director ~]$ openstack endpoint list
+----------------------------------+-----------+------------------+-------------------------+---------+-----------+----------------------------------------------------+
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+----------------------------------+-----------+------------------+-------------------------+---------+-----------+----------------------------------------------------+
| 0428dfac8f2c4c73a773e8ea8c283a97 | regionOne | heat-cfn | cloudformation | True | internal | http://172.25.249.202:8000/v1/%(tenant_id)s |
| 0805e9f0df6241bcac52a40c5d745fe2 | regionOne | heat | orchestration | True | admin | http://172.25.249.202:8004/v1/%(tenant_id)s |
| 0e7057a4823c48b793a5a455fdfbcfe1 | regionOne | glance | image | True | internal | http://172.25.249.202:9292 |
| 0ec1b29d2ebe45678336281710f5003e | regionOne | ironic | baremetal | True | public | https://172.25.249.201:13385 |
| 152496ecc2a342ce9d3f558c1ba2519c | regionOne | heat-cfn | cloudformation | True | public | https://172.25.249.201:13800/v1/%(tenant_id)s |
| 160aa5d2ebc449ffbf2e9d2b1f7beb8c | regionOne | keystone | identity | True | public | https://172.25.249.201:13000 |
| 1d1e11fffff14224aa6c40da43dc3a4f | regionOne | zaqar | messaging | True | internal | http://172.25.249.202:8888 |
| 1eb2f256ff8a4ae78caa19f9146c7f90 | regionOne | ironic | baremetal | True | internal | http://172.25.249.202:6385 |
| 2534ba84823f489cab615c896a7fe2ad | regionOne | mistral | workflowv2 | True | internal | http://172.25.249.202:8989/v2 |
| 264efe408e0944c586f79c542f6187c5 | regionOne | heat | orchestration | True | internal | http://172.25.249.202:8004/v1/%(tenant_id)s |
| 38026f0e6dbc4b598af5bc28fd84759c | regionOne | keystone | identity | True | admin | http://172.25.249.202:35357 |
| 38b2a57e7bfc4d5cb75edb584b8877e3 | regionOne | heat-cfn | cloudformation | True | admin | http://172.25.249.202:8000/v1/%(tenant_id)s |
| 3d11b05f6b894fd1bf8321b998867745 | regionOne | neutron | network | True | public | https://172.25.249.201:13696 |
| 41067ffe121a4a48b0fa7367f7216664 | regionOne | zaqar-websocket | messaging-websocket | True | public | wss://172.25.249.201:9000 |
| 42494c6c86dc49dba00ec5f935fba1d2 | regionOne | zaqar | messaging | True | public | https://172.25.249.201:13888 |
| 48ec67d3e9ca4a27a155f5cd4453362f | regionOne | placement | placement | True | public | https://172.25.249.201:13778/placement |
| 513e0053e0cb41938577bd9df3362a0f | regionOne | glance | image | True | admin | http://172.25.249.202:9292 |
| 52faf91c588f4500840611d8a00ccd70 | regionOne | mistral | workflowv2 | True | admin | http://172.25.249.202:8989/v2 |
| 539507dc847a456bbb4af4aeb1aa338f | regionOne | mistral | workflowv2 | True | public | https://172.25.249.201:13989/v2 |
| 617a63609da64ffc8c0cf8009c7d3d16 | regionOne | zaqar-websocket | messaging-websocket | True | admin | ws://172.25.249.202:9000 |
| 69af0928c52e49a0ae1f51860eae029f | regionOne | nova | compute | True | internal | http://172.25.249.202:8774/v2.1 |
| 726d20d1c24d49778be49efa39323083 | regionOne | ironic-inspector | baremetal-introspection | True | public | https://172.25.249.201:13050 |
| 72f589172b76434c9bdfa2e0be8d94e3 | regionOne | ironic-inspector | baremetal-introspection | True | admin | http://172.25.249.202:5050 |
| 742abe9ccc0145b682b1623ff74df939 | regionOne | zaqar | messaging | True | admin | http://172.25.249.202:8888 |
| 7995b9e58758460faee058b34421dd8a | regionOne | nova | compute | True | public | https://172.25.249.201:13774/v2.1 |
| 7f9713eae34a4d8c9c49ab82d1994467 | regionOne | ironic | baremetal | True | admin | http://172.25.249.202:6385 |
| 87d81f9e508f4817aacd5961dad2062e | regionOne | placement | placement | True | internal | http://172.25.249.202:8778/placement |
| 8872f8420861429d91e325c3282f7d88 | regionOne | ironic-inspector | baremetal-introspection | True | internal | http://172.25.249.202:5050 |
| 890b778b66c24122bdda03d1c6fdaf65 | regionOne | placement | placement | True | admin | http://172.25.249.202:8778/placement |
| b2625deb7d054fe3878e642583f2e25c | regionOne | swift | object-store | True | internal | http://172.25.249.202:8080/v1/AUTH_%(tenant_id)s |
| b35cb234bf78440bbdddb59000bad505 | regionOne | nova | compute | True | admin | http://172.25.249.202:8774/v2.1 |
| b397d22b8c3a4a57b56d54fa1df4842a | regionOne | swift | object-store | True | public | https://172.25.249.201:13808/v1/AUTH_%(tenant_id)s |
| b6a01b941cca4956b4a86be2df6248fc | regionOne | neutron | network | True | internal | http://172.25.249.202:9696 |
| bcfb80d7217942d285a88caea46f2e25 | regionOne | heat | orchestration | True | public | https://172.25.249.201:13004/v1/%(tenant_id)s |
| ca87021f085f4ba5ae863cc9504bb4b3 | regionOne | zaqar-websocket | messaging-websocket | True | internal | ws://172.25.249.202:9000 |
| d6767c93381843718941051dc9a46239 | regionOne | keystone | identity | True | internal | http://172.25.249.202:5000 |
| d6a297b5dc2746a2973a97eb7d5ab398 | regionOne | neutron | network | True | admin | http://172.25.249.202:9696 |
| f72df09504644cac99153b01c712f123 | regionOne | glance | image | True | public | https://172.25.249.201:13292 |
| fdfb9f3bcf124e45817206469df8a9ba | regimionOne | swift | object-store | True | admin | http://172.25.249.202:8080 |
+----------------------------------+-----------+------------------+-------------------------+---------+-----------+----------------------------------------------------+
(undercloud) [stack@director ~]$ openstack image list
+--------------------------------------+------------------------+--------+
| ID | Name | Status |
+--------------------------------------+------------------------+--------+
| fab32297-d1e2-4598-9e4e-6b02c8982c6f | bm-deploy-kernel | active |
| bc8408a7-3074-4c56-8992-a56637f561e0 | bm-deploy-ramdisk | active |
| ff82c9a3-eead-489f-a862-ca7b2b245a60 | overcloud-full | active |
| 86901767-c252-4711-867e-a06eb52b4bfc | overcloud-full-initrd | active |
| 4b823922-4757-468f-aad4-1e7bf0f585fa | overcloud-full-vmlinuz | active |
+-------oepn-------------------------------+------------------------+--------+
(undercloud) [stack@director ~]$ openstack baremetal node list
+--------------------------------------+-------------+--------------------------------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+-------------+--------------------------------------+-------------+--------------------+-------------+
| 50d44b91-92ee-4548-8ea0-84f690cb2af7 | controller0 | 1dfc01e4-5060-415e-a28e-4642c8bcb0f2 | power on | active | False |
| 63995e5d-92f2-4265-a1d8-f3b79c0cf89b | compute0 | 2fa177e2-3fdf-4643-9229-9f37abd0cc5e | power on | active | False |
| f135fec3-4716-48f5-a36a-d63c4fdfce17 | computehci0 | 270e81d7-b905-4d8d-99d1-a8cc9cc7b17d | power on | active | False |
| 101491cd-a395-480e-823a-464b9c669c48 | compute1 | 67ec3852-e2b0-493a-b7e6-83244c6f2f08 | power on | active | False |
| 771f87ec-ac04-43fb-bd63-140483996c5d | ceph0 | a341c1c8-cd16-4ad4-a4c7-3814b101b4dd | power on | active | False |
+--------------------------------------+-------------+--------------------------------------+-------------+--------------------+-------------+
手动启动bare metal
如果发现某个节点没有启动,可以手动启动该节点:
openstack baremetal node power on ceph0
参考文献:
Director Installation & Usage guide for Red Hat OpenStack Platform 13
https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.1/html/director_installation_and_usage/index
ipmi:
https://www.intel.cn/content/www/cn/zh/servers/ipmi/ipmi-intelligent-platform-mgt-interface-spec-2nd-gen-v2-0-spec-update.html?wapkw=IPMI