标签:alc extern 更新 服务 max openstack strong esc vendor
自动化kolla-ansible部署ubuntu20.04+openstack-victoria之裸金属-20
欢迎加QQ群:1026880196 进行交流学习
#安装ironic
1. 在 /etc/kolla/globals.yml配置
vim /etc/kolla/globals.yml
enable_horizon_ironic: "{{ enable_ironic | bool }}"
enable_ironic: "yes"
enable_nova_serialconsole_proxy: "yes"
ironic_dnsmasq_dhcp_range: "192.168.1.10,192.168.1.100" #随便定义一个,并不会用到
ironic_dnsmasq_interface: "ens35"
ironic_cleaning_network: "public1"
ironic_inspector_kernel_cmdline_extras: [‘ipa-lldp-timeout=90.0‘, ‘ipa-collect-lldp=1‘]
2. 配置内核与存储
source admin-openrc.sh
mkdir /etc/kolla/config/ironic
curl https://tarballs.opendev.org/openstack/ironic-python-agent/dib/files/ipa-centos8-stable-victoria.kernel -o /etc/kolla/config/ironic/ironic-agent.kernel
curl https://tarballs.opendev.org/openstack/ironic-python-agent/dib/files/ipa-centos8-stable-victoria.initramfs -o /etc/kolla/config/ironic/ironic-agent.initramfs
3. 创建部署内核和ramdis
openstack image create --disk-format aki --container-format aki --public --file /etc/kolla/config/ironic/ironic-agent.kernel deploy-vmlinuz
openstack image create --disk-format ari --container-format ari --public --file /etc/kolla/config/ironic/ironic-agent.initramfs deploy-initrd
4. 配置ironic.conf #纳管dell 服务器配置清单 其他设备不支持
vim /etc/kolla/config/ironic.conf
[DEFAULT]
enabled_drivers = pxe_ipmitool_socat,pxe_ipmitool
enabled_hardware_types = redfish,idrac
enabled_power_interfaces = ipmitool,redfish,idrac-wsman,idrac,idrac-redfish
enabled_management_interfaces = ipmitool,redfish,idrac-wsman,idrac-redfish
enabled_network_interfaces = flat,neutron,noop
enabled_bios_interfaces = idrac-wsman,idrac-redfish,no-bios
enabled_raid_interfaces = idrac-wsman,idrac,no-raid
enabled_vendor_interfaces = idrac-wsman,idrac,idrac-redfish,no-vendor
enabled_inspect_interfaces = idrac-wsman,idrac,idrac-redfish,inspector,no-inspect
enabled_boot_interfaces = ipxe,pxe,idrac-redfish-virtual-media
enabled_console_interfaces = no-console
enabled_deploy_interfaces = iscsi,directansible,ramdisk
enabled_rescue_interfaces = no-rescue,agent
enabled_storage_interfaces = noop,cinder,external
[conductor]
sync_power_state_interval = 10
power_state_sync_max_retries = 20
deploy_callback_timeout = 900
force_power_state_during_sync = true
[pxe]
pxe_append_params = coreos.autologin rd.auto=1 nofb nomodeset vga=normal console=ttyS0,115200n8
[disk_utils]
iscsi_verify_attempts = 30
5. 检查依赖
kolla-ansible -i ./multinode bootstrap-servers -vv
6. 对主机进行部署前检查
ansible -i multinode all -m ping
kolla-ansible -i ./multinode prechecks -vv
7. 安装部署
kolla-ansible -i ./multinode deploy -vv
8. 安装ironicclient
apt install python3-ironicclient python3-dracclient -y
9. 安装依赖
pip3 install ‘python-dracclient>=3.1.0‘ ‘sushy>=2.0.0‘
10. 检查
[root@controller1 ~]#
openstack baremetal driver list
nova service-list
如:
+---------------------+---------------------------------------+
| Supported driver(s) | Active host(s) |
+---------------------+---------------------------------------+
| idrac | controller3, controller2, controller1 |
| redfish | controller3, controller2, controller1 |
+---------------------+---------------------------------------+
root@controller1:~# nova service-list
+--------------------------------------+----------------+--------------------+----------+---------+-------+----------------------------+-----------------+-------------+
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |
+--------------------------------------+----------------+--------------------+----------+---------+-------+----------------------------+-----------------+-------------+
| 8d59816c-59ae-4bb6-9b1c-c09ea91028f2 | nova-scheduler | controller1 | internal | enabled | up | 2021-03-03T19:05:18.000000 | - | False |
| 47d940ee-12ba-40c6-ab1e-b68883c59221 | nova-scheduler | controller3 | internal | enabled | up | 2021-03-03T19:05:18.000000 | - | False |
| c5b99ae6-a2da-466f-b18e-6b36124bb861 | nova-scheduler | controller2 | internal | enabled | up | 2021-03-03T19:05:20.000000 | - | False |
| 7e2a81ae-67dc-4b53-aeea-af77c2f48cca | nova-conductor | controller1 | internal | enabled | up | 2021-03-03T19:05:21.000000 | - | False |
| ad93fe22-1acd-4f66-b4e0-d2fe8407b04f | nova-conductor | controller2 | internal | enabled | up | 2021-03-03T19:05:19.000000 | - | False |
| d4de37f2-da51-4c44-98c6-d63a6ce87c26 | nova-conductor | controller3 | internal | enabled | up | 2021-03-03T19:05:19.000000 | - | False |
| ff4c3555-0651-4e1d-ae1b-4bb6b774e93d | nova-compute | compute2 | nova | enabled | up | 2021-03-03T19:05:13.000000 | - | False |
| 82ed1ae7-659b-4f70-85c2-572f936515b4 | nova-compute | compute1 | nova | enabled | up | 2021-03-03T19:05:18.000000 | - | False |
| 6aebc11b-178b-4beb-9424-fd51d1459039 | nova-compute | controller1-ironic | nova | enabled | up | 2021-03-03T19:05:14.000000 | - | False |
| 9c3634fc-e2ab-4a09-997f-4ec751e98ede | nova-compute | controller2-ironic | nova | enabled | up | 2021-03-03T19:05:16.000000 | - | False |
| abc6630a-d8e0-4b3f-8eba-1d85679f70a4 | nova-compute | controller3-ironic | nova | enabled | up | 2021-03-03T19:05:16.000000 | - | False |
+--------------------------------------+----------------+--------------------+----------+---------+-------+----------------------------+-----------------+-------------+
注册裸金属
最近项目比较忙,晚点更新...
自动化kolla-ansible部署ubuntu20.04+openstack-victoria之裸金属-20
标签:alc extern 更新 服务 max openstack strong esc vendor
原文地址:https://www.cnblogs.com/yyx66/p/14546950.html