Starting OpenStack
To start OpenStack:
-
Set hostname and add hosts of other OpenStack
computes/control (important for OpenStack that this is configured):
vi /etc/hosts
[root@junoos-control-compute1 ~]# cat /etc/hosts 127.0.0.1 localhost.localdomain localhost junoos-control-compute1 ::1 localhost6.localdomain6 localhost6 100.1.1.201 junoos-compute2 [root@junoos-compute2 devstack]# cat /etc/hosts 127.0.0.1 localhost.localdomain localhost junos-compute2 junoos-compute2 ::1 localhost6.localdomain6 localhost6 100.1.1.200 junoos-control-compute1
-
Copy or edit the appropriate local.conf in the
/opt/stack/devstack folder
(local.conf appropriate to whether server is intended
as compute or control). Fill in appropriate IP addresses and hostname.
vi local.conf
EXTR-Openstack-Juno-control-compute1-DAKit.ova local.conf file[[local|localrc]] #LOGFILE=stack.sh.log #SCREEN_LOGDIR=/opt/stack/data/log LOG_COLOR=False OFFLINE=True #RECLONE=yes MULTI_HOST=1 disable_service rabbit enable_service qpid enable_service nova enable_service n-api enable_service n-nova enable_service n-cpu enable_service n-cond enable_service n-novnc disable_service n-net enable_service q-agt enable_service q-svc enable_service q-dhcp disable_service q-l3 enable_service q-meta enable_service neutron disable_service tempest enable_service odl-compute HOST_NAME=<you-hostname-here> SERVICE_HOST_NAME=${HOST_NAME} SERVICE_HOST=<your-ipaddress-here> Q_HOST=$SERVICE_HOST HOST_IP=<your-ipaddress-here> Q_PLUGIN=ml2 #Q_ML2_PLUGIN_MECHANISM_DRIVERS=opendaylight,logger #NEUTRON_REPO=https://github.com/CiscoSystems/neutron.git #NEUTRON_BRANCH=odl_ml2 ODL_MGR_IP=<controller-ipaddress-here> #FLOATING_RANGE=100.1.1.0/24 #PUBLIC_NETWORK_GATEWAY=100.1.1.1 VNCSERVER_PROXYCLIENT_ADDRESS=<your-ipaddress-here> VNCSERVER_LISTEN=<your-ipaddress-here> DATABASE_TYPE=mysql MYSQL_HOST=$SERVICE_HOST RABBIT_HOST=$SERVICE_HOST GLANCE_HOSTPORT=$SERVICE_HOST:9292 KEYSTONE_AUTH_HOST=$SERVICE_HOST KEYSTONE_SERVICE_HOST=$SERVICE_HOST MYSQL_PASSWORD=mysql RABBIT_PASSWORD=rabbit QPID_PASSWORD=rabbit SERVICE_TOKEN=service SERVICE_PASSWORD=admin ADMIN_PASSWORD=admin [[post-config|/etc/cinder/cinder.conf]] [DEFAULT] use_syslog=True iscsi_target_prefix=iqn.2010-10.org.openstack: iscsi_ip_address=<your-ipaddress-here> iscsi_port=3260 [[post-config|/etc/nova/nova.conf]] [DEFAULT] vif_plugging_timeout = 600 vif_plugging_is_fatal = False use_syslog=True instance_build_timeout = 600 [[post-config|/etc/neutron/plugins/ml2/ml2_conf.ini]] [ml2] type_drivers = local tenant_network_types = local mechanism_drivers = opendaylight,logger #[ml2_type_vxlan] #vni_ranges = 65537:69999 #[ml2_type_gre] #tunnel_id_ranges = 32769:34000 [ovs] #local_ip = 172.172.172.2 #tunnel_type = vxlan #tunnel_bridge = br-tun #integration_bridge = br-int #tunnel_id_ranges = 65537:69999 #tenant_network_type = flat #enable_tunneling = true [agent] root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf #tunnel_types = vxlan #vxlan_udp_port = 4789 #l2_population = False minimize_polling=True [ml2_odl] url=http://<controller-ipaddress-here>:8080/controller/nb/v2/neutron username=admin password=abc123
EXTR-Openstack-Juno-compute2-DAKit.ova local.conf file[[local|localrc]] #LOGFILE=stack.sh.log LOG_COLOR=False #SCREEN_LOGDIR=/opt/stack/data/log OFFLINE=true #RECLONE=yes disable_all_services enable_service n-api enable_service n-cpu enable_service c-vol enable_service quantum enable_service n-nova enable_service qpid enable_service odl-compute enable_service n-novnc enable_service q-agt HOST_NAME=<your-hostname-here> HOST_IP=<your-ipaddress-here> SERVICE_HOST_NAME=<Control-hostname-here> SERVICE_HOST=<control-ipaddress-here> VNCSERVER_PROXYCLIENT_ADDRESS=<your-ipaddress-here> VNCSERVER_LISTEN=<your-ipaddress-here> Q_PLUGIN=ml2 #Q_ML2_PLUGIN_MECHANISM_DRIVERS=opendaylight,logger ODL_MGR_IP=<controller-ipaddress-here> #FLOATING_RANGE=100.2.1.0/24 DATABASE_TYPE=mysql MYSQL_HOST=$SERVICE_HOST RABBIT_HOST=$SERVICE_HOST GLANCE_HOSTPORT=$SERVICE_HOST:9292 KEYSTONE_AUTH_HOST=$SERVICE_HOST KEYSTONE_SERVICE_HOST=$SERVICE_HOST MYSQL_PASSWORD=mysql RABBIT_PASSWORD=rabbit QPID_PASSWORD=rabbit SERVICE_TOKEN=service SERVICE_PASSWORD=admin ADMIN_PASSWORD=admin [[post-config|/etc/cinder/cinder.conf]] [DEFAULT] use_syslog=True iscsi_target_prefix=iqn.2010-10.org.openstack: iscsi_ip_address=<your-ipaddress-here> iscsi_port=3260 my_ip = <your-ipaddress-here> [[post-config|/etc/nova/nova.conf]] [DEFAULT] vif_plugging_timeout = 600 vif_plugging_is_fatal = False use_syslog=True instance_build_timeout = 600 [[post-config|/etc/neutron/plugins/ml2/ml2_conf.ini]] [ml2] type_drivers = local tenant_network_types = local mechanism_drivers = opendaylight,logger #[ml2_type_vxlan] #vni_ranges = 65537:69999 #[ml2_type_gre] #tunnel_id_ranges = 32769:34000 [ovs] #local_ip = #tunnel_type = vxlan #tunnel_bridge = br-tun #integration_bridge = br-int #tunnel_id_ranges = 65537:69999 #tenant_network_type = flat #enable_tunneling = true [agent] root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf #tunnel_types = vxlan #vxlan_udp_port = 4789 #l2_population = False minimize_polling=True [ml2_odl] url=http:// <controller-ipaddress-here>:8080/controller/nb/v2/neutron username=admin password=abc123
- After deploying Junoos-control-compute1.ova, power on of the Openstack Control Compute1 using the ESXi server. Start OpenStack on the OpenStack Control VM (Openstack-Juno-controlcompute1.ova). Starting OpenStack takes around 10 minutes.
-
Log on as root (user name = root, password = extreme).
cd /root/openstack_scripts ./stack-openstack
- After deploying (Junoos-compute2.ova), power on of the Openstack Compute 2 using the ESXi server. After the Openstack Control VM (Junoos-control-compute1.ova) is completely finished the stack process, start OpenStack on OpenStack Compute VM (Junoos-compute2.ova). Starting OpenStack takes around 5 minutes.
-
Log on as root (user name = root, password = extreme).
cd /root/openstack_scripts ./stack-openstack