Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and deploy openstack ironic

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to install and deploy openstack ironic. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

As soon as you are ready

This article assumes that you have installed other components of the following openstack

1. Nova-compute service2. Keystone-identity service3. Glance-image service4. Neutron-network service

Ironic consists of the following parts:

1. External API2 of ironic-api-ironic components. Ironic-conductor-ironic real worker 3. Ironicclient-4. Database5. Message queue

Two keystone configuration

Keystone user-create-- name=ironic-- pass=IRONIC_PASSWORD-- email=ironic@example.comkeystone user-role-add-- user=ironic-- tenant=service-- role=adminkeystone service-create-- name=ironic-- type=baremetal\-- description= "Ironic baremetal provisioning service" keystone endpoint-create\-service-id=the_service_id_above\-- publicurl= http://IRONIC_NODE:6385\-- internalurl= http://IRONIC_NODE:6385\-- adminurl= http://IRONIC_NODE:6385

Three ironic installation configuration

Database installation

# mysql-u root-pmysql > CREATE DATABASE ironic CHARACTER SET utf8;mysql > GRANT ALL PRIVILEGES ON ironic.* TO 'ironic'@'localhost'\ IDENTIFIED BY' IRONIC_DBPASSWORD';mysql > GRANT ALL PRIVILEGES ON ironic.* TO 'ironic'@'%'\ IDENTIFIED BY' IRONIC_DBPASSWORD'

two。 Install ironic related packages

Ironic components can be installed on multiple nodes or on the same node, and this installation guide is installed on the same node.

Http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/fedora-20/

The following rpm package can be obtained above

Openstack-ironic-api-2014.1-rc1.2.el7.noarch.rpmopenstack-ironic-common-2014.1-rc1.2.el7.noarch.rpmopenstack-ironic-conductor-2014.1-rc1.2.el7.noarch.rpmpython-ironicclient-0.1.2-5.el7.noarch.rpm

Use yum or rpm for installation.

Vi / etc/ironic/ironic.conf

[database] connection = mysql://ironic:IRONIC_DBPASSWORD@DB_IP/ironic?charset= UTF8 [default] rabbit_host=RABBIT_ host [default] auth_strategy= Keystone [Keystone _ authtoken] auth_host=IDENTITY_IP#auth_port=35357#auth_protocol=httpauth_uri= http://IDENTITY_IP:5000/admin_user=ironicadmin_password=IRONIC_PASSWORDadmin_tenant_name=service[neutron]url=http://NEUTRON_IP:9696[glance]glance_host=GLANCE_IP

Synchronize the database and restart the service:

Ironic-dbsync-config-file / etc/ironic/ironic.confservice ironic-api restartservice ironic-conductor restart

Four nova compute configuration

Vi / etc/nova/nova.conf

[default] compute_driver=ironic.nova.virt.ironic.IronicDriverscheduler_host_manager=ironic.nova.scheduler.ironic_host_manager.IronicHostManagerram_allocation_ratio=1.0compute_manager=ironic.nova.comput e.manager.ClusteredComputeManager [ironic] admin_username=ironicadmin_password=IRONIC_PASSWORDadmin_url= http://IDENTITY_IP:35357/v2.0admin_tenant_name=serviceapi_endpoint=http://IRONIC_NODE:6385/v1

Control node restart

Service nova-scheduler restart

Compute node restart

Service nova-compute restart

Five PXE configuration

Sudo mkdir-p / tftprootsudo chown-R ironic:LIBVIRT_GROUP-p / tftprootmkdir-p / tftproot/pxelinux.cfgsudo cp / usr/share/syslinux/pxelinux.0 / tftproot

Six deployment

1. Register the baremetal node information through the ironic node-create, including the driver information used, including the IP/user/password and cpu/mem/disk of the BMC, and register all the network port information of the node to the node through ironic port-create.

two。 Create images, including images run by the system, kernel and ramdisk images needed when PXE starts, can be made with the help of diskimage-builder, a component of TripleO in another project of openstack, and you need to customize your own elements. If you want to do a customized installation, you need to master this tool.

3. Create a specific flavor, set the CPU/MEM/DISK information according to the node information, and set key:baremetal:deploy_kernel_id and baremetal:deploy_ramdisk_id.

Start baremetal instance with nova boot, and the dedicated flavor,image created by flavor for baremetal is baremetal image.

Thank you for reading! This is the end of this article on "how to install and deploy openstack ironic". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report