以下所有操作在baremetal节点执行。
vi /etc/ironic/ironic.conf
1 2 | [DEFAULT] my_ip = <HOST_IP> |
1 2 3 4 | [database] # The SQLAlchemy connection string used to connect to the # database (string value) connection = mysql+pymysql://ironic:PASSWORD@controller/ironic?charset=utf8 |
1 2 | [DEFAULT] transport_url = rabbit://RPC_USER:RPC_PASSWORD@RPC_HOST:RPC_PORT/ |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | [DEFAULT] rpc_transport = json-rpc [json_rpc] # Authentication type to load (string value) auth_type = password # Authentication URL (string value) auth_url = http://controller:5000/ # Username (string value) username = ironic # User's password (string value) password = PASSWORD # Project name to scope to (string value) project_name = service # Domain ID containing project (string value) project_domain_id = default # User's domain id (string value) user_domain_name = default |
1 2 | [conductor] api_url = http://${IRONIC_API_IP}:${IRONIC_API_PORT} |
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 | [neutron] auth_type = password auth_url = http://controller:5000/ username = ironic password = PASSWORD project_name = service project_domain_id = default user_domain_id = default cafile = /opt/stack/data/ca-bundle.pem region_name = RegionOne valid_interfaces = public [glance] region_name = RegionOne cafile = /opt/stack/data/ca-bundle.pem project_domain_id = default user_domain_id = default project_name = service password = PASSWORD username = ironic auth_url = http://controller:5000/v3/ auth_type = password [swift] region_name = RegionOne cafile = /opt/stack/data/ca-bundle.pem project_domain_id = default user_domain_id = default project_name = service password = PASSWORD username = ironic auth_url = http://controller/v3/ auth_type = password [cinder] region_name = RegionOne cafile = /opt/stack/data/ca-bundle.pem project_domain_id = default user_domain_id = default project_name = service password = PASSWORD username = ironic auth_url = http://controller:5000/v3/ auth_type = password [service_catalog] region_name = RegionOne cafile = /opt/stack/data/ca-bundle.pem project_domain_id = default user_domain_id = default project_name = service password = PASSWORD username = ironic auth_url = http://controller:5000/v3/ auth_type = password |
1 2 3 4 5 6 7 8 9 10 11 12 | [agent] deploy_logs_collect = always deploy_logs_storage_backend = local deploy_logs_local_path = /var/log/ironic/deploy [deploy] erase_devices_priority = 0 default_boot_option = local default_boot_mode = bios [neutron] port_setup_delay = 15 |
1 2 | systemctl restart openstack-ironic-conductor systemctl status openstack-ironic-conductor |