kilo.install_bridgeutils() #OpenStack Kilo Configuration File kilo_conf = os.path.join(os.path.dirname(__file__), 'kilo.conf') network_mgmt_ntw_interface = common.get_file_option(kilo_conf, 'network', 'management_network_interface') network_mgmt_ntw_interface_addr = common.get_network_address(network_mgmt_ntw_interface) network_vm_traffic_ntw_interface = common.get_file_option(kilo_conf, 'network', 'vm_traffic_network_interface') network_vm_traffic_ntw_interface_addr = common.get_network_address(network_vm_traffic_ntw_interface) external_network_interface = common.get_file_option(kilo_conf, 'network', 'external_network_interface') controller_server_name = common.get_file_option(kilo_conf, 'controller', 'controller_server_name') print '' common.log('Using network addresses:') print ' Network Node VM Traffic Network IP Address: ' + str(network_vm_traffic_ntw_interface_addr) #Installing NTP Server in Network Node kilo.install_ntp(controller_server_name, False) #Install Neutron Network Service in Network Node neutron_usr_password = common.get_file_option(kilo_conf, 'neutron', 'neutron_usr_password') openstack_rabbitmq_password = common.get_file_option(kilo_conf, 'rabbitmq', 'openstack_rabbitmq_password') metadata_secret = common.get_file_option(kilo_conf, 'neutron', 'metadata_secret') kilo.install_neutron_network_node(controller_server_name, neutron_usr_password, openstack_rabbitmq_password, network_vm_traffic_ntw_interface_addr, metadata_secret, external_network_interface)
#Getting and updating Controller Node's Interface connected to Management Network/VLAN ctrl_mgmt_ntw_interface = common.get_file_option( kilo_conf, 'controller', 'management_network_interface') ctrl_mgmt_ntw_interface_addr = common.get_network_address( ctrl_mgmt_ntw_interface) common.set_file_option(kilo_conf, 'controller', 'management_network_ip', ctrl_mgmt_ntw_interface_addr) print '' common.log('Using network addresses:') print " Controller Node's Interface at Management Network has IP Address: " + str( ctrl_mgmt_ntw_interface_addr) #Installing NTP Server in Controller Node time_server = common.get_file_option(kilo_conf, 'controller', 'time_server') kilo.install_ntp(time_server, True) #Installing MySQL mysql_root_password = common.get_file_option(kilo_conf, 'mysql', 'root_password') kilo.install_mysql(mysql_root_password) #Installing RabbitMQ openstack_rabbitmq_password = common.get_file_option( kilo_conf, 'rabbitmq', 'openstack_rabbitmq_password') kilo.install_rabbitmq(openstack_rabbitmq_password) controller_server_name = common.get_file_option(kilo_conf, 'controller', 'controller_server_name') #Install Keystone Identity Service
#OpenStack Kilo Configuration File kilo_conf = os.path.join(os.path.dirname(__file__), 'kilo.conf') #Getting and updating Controller Node's Interface connected to Management Network/VLAN ctrl_mgmt_ntw_interface = common.get_file_option(kilo_conf, 'controller', 'management_network_interface') ctrl_mgmt_ntw_interface_addr = common.get_network_address(ctrl_mgmt_ntw_interface) common.set_file_option(kilo_conf, 'controller', 'management_network_ip', ctrl_mgmt_ntw_interface_addr) print '' common.log('Using network addresses:') print " Controller Node's Interface at Management Network has IP Address: " + str(ctrl_mgmt_ntw_interface_addr) #Installing NTP Server in Controller Node time_server = common.get_file_option(kilo_conf, 'controller', 'time_server') kilo.install_ntp(time_server, True) #Installing MySQL mysql_root_password = common.get_file_option(kilo_conf, 'mysql', 'root_password') kilo.install_mysql(mysql_root_password) #Installing RabbitMQ openstack_rabbitmq_password = common.get_file_option(kilo_conf, 'rabbitmq', 'openstack_rabbitmq_password') kilo.install_rabbitmq(openstack_rabbitmq_password) controller_server_name = common.get_file_option(kilo_conf, 'controller', 'controller_server_name') #Install Keystone Identity Service keystone_db_password = common.get_file_option(kilo_conf, 'keystone', 'keystone_db_password') admin_token = common.run_command('openssl rand -hex 10') admin_usr_password = common.get_file_option(kilo_conf, 'keystone', 'admin_usr_password')
network_mgmt_ntw_interface) network_vm_traffic_ntw_interface = common.get_file_option( kilo_conf, 'network', 'vm_traffic_network_interface') network_vm_traffic_ntw_interface_addr = common.get_network_address( network_vm_traffic_ntw_interface) external_network_interface = common.get_file_option( kilo_conf, 'network', 'external_network_interface') controller_server_name = common.get_file_option(kilo_conf, 'controller', 'controller_server_name') print '' common.log('Using network addresses:') print ' Network Node VM Traffic Network IP Address: ' + str( network_vm_traffic_ntw_interface_addr) #Installing NTP Server in Network Node kilo.install_ntp(controller_server_name, False) #Install Neutron Network Service in Network Node neutron_usr_password = common.get_file_option(kilo_conf, 'neutron', 'neutron_usr_password') openstack_rabbitmq_password = common.get_file_option( kilo_conf, 'rabbitmq', 'openstack_rabbitmq_password') metadata_secret = common.get_file_option(kilo_conf, 'neutron', 'metadata_secret') kilo.install_neutron_network_node(controller_server_name, neutron_usr_password, openstack_rabbitmq_password, network_vm_traffic_ntw_interface_addr, metadata_secret, external_network_interface)