First, the basic introduction
This experiment was to deploy OpenStack (Juno version) on virtual machine ubuntu14.04 (64bit,desktop) on VMware Workstation. The tool used is openshit.
Openshit is a project on GitHub, see website:
Https://github.com/windworst/openshit.
Precautions:
1. The environment is best for the new Ubuntu system, which may not have been successful if OpenStack was previously installed in the system using other methods such as Devstack.
2.ubuntu source do not change, that is/etc/apt/sources.list file with the system default is good.
3. Update the source before installing OpenStack. Otherwise, there will be some errors about the Python package not being downloaded during the OpenStack installation.
The memory of the 4.ubuntu virtual machine is better set, My computer is 8G memory, so I give ubuntu4g memory. If the memory is small, OpenStack will compare the card when it is installed and then viewed on the Web interface when it is successfully installed.
5.openshit is supported for both ubuntu14.04 Server and desktop editions, and the desktop version is selected for this experiment.
6. If an error occurs during execution, you can run the following command to clear the installed OpenStack-related configuration and components, remove the Openshit folder, and re-obtain the openshit for installation.
$./openshit.sh--all Clean &&/openshit.sh--all Uninstall
$CD:
$sudo RM-RF Openshit
Second, the installation process detailed records
1. First update Ubuntu source
$sudo apt-get Update
$sudo Apt-get Upgrade
2. Restart for the update to take effect
$sudo reboot
3. Install git
$sudo apt-get Install git
4. Get Openshit
$CD/Home
$git Clone Https://github.com/windworst/openshit.git
5. Edit the configuration file setting.conf
Openshit after downloading in the current directory will have a Openshit folder, access to the folder, modify the setting.conf permissions, so that users can read, write operations.
$CD Openshit
$sudo chmod 777 Setting.conf
$sudo gedit setting.conf
At this point, you can use ctrl+alt+t and then open a terminal, enter the command ifconfig view the IP address of this host
$ifconfig
It is known that the IP address of this host is 192.168.58.141,
In the setting.conf file, the SET_CONTROLLER_IP,SET_COMPUTE_IP is set to the IP address of this host. That
set_controller_ip=192.168.58.141
set_compute_ip=192.168.58.141
Also modify all the passwords here, I will set all the passwords to 123456.
Finally, please attach my modified setting.conf file for reference (do not copy it directly)
# This is openshit configure file
# All the settings in this file
# Update to Openstack component Configure file
# node IP
set_controller_ip=192.168.58.141
set_compute_ip=192.168.58.141
Set_interface_name=eth0
#vnc
set_vnc_ip= $SET _controller_ip
set_vnc_connect_ip= $SET _controller_ip
# MySQL Configure
set_mysql_ip= $SET _controller_ip
Set_mysql_user=root
set_mysql_pass=123456
set_mysql_port=3306
# Rabbit Password
set_rabbitmq_ip= $SET _controller_ip
set_rabbitmq_pass=123456
# Keystone Service Configure
set_keystone_ip= $SET _compute_ip
set_keystone_auth_url=http://$SET _keystone_ip:35357/v2.0
set_keystone_auth_url_public=http://$SET _keystone_ip:5000/v2.0
Set_os_service_token=admin
Set_keystone_admin_tenant=admin
Set_keystone_admin_role=admin
Set_keystone_admin=admin
set_keystone_dbpass=123456
set_keystone_admin_pass=123456
# Glance Service Configure
set_glance_ip= $SET _controller_ip
set_glance_dbpass=123456
set_glance_pass=123456
# Nova Service Configure
set_nova_ip= $SET _controller_ip
set_nova_dbpass=123456
set_nova_pass=123456
# Dashboard Service Configure
set_dash_dbpass=dashboard888
# Cinder Service Configure
set_cinder_ip= $SET _controller_ip
set_cinder_dbpass=123456
set_cinder_pass=123456
# Neutron Service Configure
set_neutron_ip= $SET _controller_ip
set_neutron_dbpass=123456
set_neutron_pass=123456
set_neutron_metadata_secret=123456
# Heat Service Configure
#SET_HEAT_DBPASS =
#SET_HEAT_PASS =
# Ceilometer Service Configure
#SET_CEILOMETER_DBPASS =
#SET_CEILOMETER_PASS =
# Trove Service Configure
#SET_TROVE_DBPASS =
#SET_TROVE_PASS =
6. Installing OpenStack
$echo y |./openshit.sh--all Install
In this process, a purple dialog will appear allowing you to enter the password for the database, which is the same password that you entered when configuring the setting.conf file above, which is 123456.
7. Configuration
$./openshit.sh--all Config
Third, the installation results
$source admin-env.sh
$nova service-list
The results of success should be as follows:
Open the browser, enter Http://host-ip/horizon,
Note: Replace the HOST-IP with the IP of your host, for example this experiment should enter Http://192.168.58.141/horizon
Browser interface:
User name: admin
Password: 123456 (according to setting.conf settings)
Enter the following interface as follows:
At this point, the process of installing OpenStack with Openshit One click is basically complete.
Note that the network section (neutron) needs to be installed separately when there is only calculation (compute) in the Project column on the Web interface and no network.
$./openshit.sh Neutron Install
$./openshit.sh Neutron Config
Now there's a network in the project.
Iv. Openshit Order Supplement
Basic usage:
Access to the Openshit folder allows you to manipulate the various OpenStack components by using commands such as./openshit.sh.
$./openshit.sh <SERVICE_Name> [Aciton]
For example:
$./openshit.sh--all Install/uninstall
#注释: Install or uninstall all components
$./openshit.sh Cinder Install/uninstall
#注释: Install or uninstall cinder [block storage]
$./openshit.sh Dashboard Install/uninstall
#注释: Install or uninstall [graphical interface management]
$./openshit.sh Glance Install/uninstall
#注释: Install or uninstall [image management]
$./openshit.sh Keystone Install/uninstall
#注释: Install or uninstall [identity authentication]
$./openshit.sh MySQL Install/uninstall
#注释: Install or uninstall [database]
$./openshit.sh Neutron Install/uninstall
#注释: Install or uninstall [Network Services]
$./openshit.sh Nova Install/uninstall
#注释: Install or uninstall [calculate]
$./openshit.sh nova-network Linstall/uninstall
#注释: Install or uninstall [Nova-network]
$./openshit.sh RABBITMQ Install/uninstall
#注释: Install or uninstall [Message Queuing]
Configuration commands
$./openshit.sh--all Config
Clear
$./openshit.sh--all Clean
V. References
1.https://github.com/windworst/openshit
2.http://www.aboutyun.com/thread-11706-1-1.html
Use Openshit to deploy OpenStack (Juno version) in ubuntu14.04 next key