a Practice NoteOperating system version: Centos7 OpenStack version: Ocata
two practical steps1 Prepare virtual machine memory: 6G Processor: 2 core hard disk: 64G network environment:
[Root@localhost network-scripts]# cat ifcfg-enp0s3
type=ethernet
bootproto=none
defroute=yes
_failure_fatal=no
ipv6init=yes
ipv6_autoconf=yes
ipv6_defroute=yes
ipv6_failure_fatal=no
Ipv6_addr_gen_mode=stable-privacy
name=enp0s3
uuid=4d03487c-46c4-49e9-bf44-4258044135cc
DEVICE= ENP0S3
onboot=yes
ipaddr=192.168.0.120
prefix=24
gateway=192.168.0.1
dns1=223.5.5.5
Ipv6_peerdns=yes
Ipv6_peerroutes=yes
Ipv6_privacy=no
2 Configuration CentOS for Ali
cd/etc/yum.repos.d/
mv Centos-base.repo centos-base.repo_bak
wget http://mirrors.aliyun.com/repo/ Centos-7.repo
mv Centos-7.repo centos-base.repo yum clean all yum makecache yum
Update
The following two lines are added to the 3/etc/environment file:
Lang=en_us.utf-8
Lc_all=en_us.utf-8
4 Installation Steps
Systemctl Disable FIREWALLD
systemctl stop firewalld systemctl disable NetworkManager systemctl
Stop NetworkManager
systemctl Enable network
systemctl start network yum install-y
Centos-release-openstack-ocata
yum update-y
yum install-y openstack-packstack packstack--allinone
5 When the first installation, reported the following error
Applying 192.168.0.120_CONTROLLER.PP testing If puppet the Apply is finished:192.168.0.120_controller.pp [\] 192.168.0.120 _CONTROLLER.PP: [ERROR] applying Puppet manifests [ERROR] ERR Or:error appeared during Puppet run:192.168.0.120_controller.pp error:execution of '/usr/bin/yum-d 0-e 0-y-Install Python-openstackclient ' returned 1:error downloading packages:you'll find all trace in log/var/tmp/packstack/2018031 7-203645-gewzfu/manifests/192.168.0.120_controller.pp.log Please check log file/var/tmp/packstack/20180317-203645- Gewzfu/openstack-setup.log For more information Additional information: * A new answerfile is created in:/root/packstack -answers-20180317-203646.txt * Time synchronization installation is skipped.
Please note this unsynchronized time on server instances might is problem for some OpenStack. * File/root/keystonerc_admin has been created on OpenStack client host 192.168.0.120. To usE The command line tools for you need to source the file.
* To access the OpenStack Dashboard browse to Http://192.168.0.120/dashboard.
Please find your login credentials stored in the keystonerc_admin in your home directory. You have mail in/var/spool/mail/root
6 The second installation is successful, the installation uses the following script Packstack--answer-file packstack-answers-20180317-203646.txt to install, the second installation process is as follows:
[Root@localhost ~]# packstack--answer-file packstack-answers-20180317-203646.txt Welcome to the packstack setup utility
The installation log file is available at:/var/tmp/packstack/20180318-091906-r_bx4u/openstack-setup.log Installing: Discovering IP protocol version [done] ] Setting up SSH keys [done] Preparing servers [DON E] Pre installing Puppet and discovering hosts ' details [done] preparing pre-install entries [D One] Setting up CACert [done] preparing AMQP entries [ Done] Preparing MARIADB entries [do] fixing Keystone LDAP config parameters to be undef i F empty[done] preparing Keystone entries preparing glance
[Done] Checking ifThe cinder server has a cinder-volumes vg[done] preparing cinder (done) entries Nova API entries [done] creating SSH keys to nova migration [done] Gatherin G SSH host keys for Nova migration [done] preparing Nova Compute entries [done] Prepar ing Nova Scheduler entries [done] preparing Nova VNC Proxy entries [done] Prep Aring OpenStack network-related Nova entries [done] preparing Nova Common entries [done] Pr
eparing neutron Lbaas Agent entries [done] preparing neutron API entries [done] Preparing neutron L3 entries [done] preparing neutron Agent L2 [done ] Preparing neutron DHCP agent entries [done] preparing neutron metering Agent entries [DON E] Checking if networkmAnager is enabled and running (done) preparing OpenStack Client entries [done] preparing Horizon Entries [done] preparing Swift builder entries [done] preparing Swift Proxy entries [done] preparing Swift storage entries [done] preparing GNOC Chi entries [done] preparing MongoDB entries [done] preparing Re Dis entries [done] preparing ceilometer entries [done] Preparing Aodh entries [done] preparing Puppet manifests [done] copying Puppet modules and manifests [done] applying 192.168.0.120_CONTROLLER.PP 192.168.0.120_controller.pp:
[Done] Applying 192.168.0.120_network.pp 192.168.0.120_network.pp: [Done] ApPlying 192.168.0.120_compute.pp 192.168.0.120_compute.pp: [done] applying Puppet Manif ESTs [done] finalizing [done] * * * * * * installation C ompleted successfully Additional information: * Time synchronization installation is skipped.
Please note this unsynchronized time on server instances might is problem for some OpenStack. * File/root/keystonerc_admin has been created on OpenStack client host 192.168.0.120.
To use the command line tools for you need to source the file.
* To access the OpenStack Dashboard browse to Http://192.168.0.120/dashboard.
Please find your login credentials stored in the keystonerc_admin in your home directory. * The installation log file is available at:/var/tmp/packstack/20180318-091906-r_bx4u/openstack-setup.log * the Generate D manifests are available at:/var/tmp/packstack/20180318-091906-r_bx4u/manifests for you have new mail In/var/spooL/mail/root
Three installation verification12 ways to find a password
Admin Password is: B3EBD382F8C248DC
Demo's password is: 2E1E215EA9054CDA
[Root@localhost ~]# Cat Packstack-answers-20180317-203646.txt # Password to use for the
Identity service ' admin ' user.
CONFIG_KEYSTONE_ADMIN_PW=B3EBD382F8C248DC # Password to use for the
Identity Service ' demo ' user.
Config_keystone_demo_pw=2e1e215ea9054cda
[Root@localhost ~]# cat keystonerc_admin
unset os_service_token
export os_username=admin
export Os_ PASSWORD=B3EBD382F8C248DC
export os_auth_url=http://192.168.0.120:5000/v3
export ps1= ' [\u@\h \w (Keystone_ Admin)]\$ '
export os_project_name=admin
export os_user_domain_name=default
export os_project_ Domain_name=default
Export os_identity_api_version=3
2 Login Authentication URL: Http://192.168.0.120/dashboard user name: admin password: B3EBD382F8C248DC
four practical references1 Official installation packstack-pike version HTTPS://WWW.RDOPROJECT.ORG/INSTALL/PACKSTACK/2 centos7 Packstack-mitaka version installation http:// blog.csdn.net/wzf28/article/details/52185353 3 http://mirrors.aliyun.com/repo/directory has CentOS source and Epel source repo files and settings method, Configured for Ali, is installed with Mitaka. http://blog.csdn.net/Titan0427/article/details/52555133 4 Centos7 Packstack-ocata version installation method http://blog.csdn.net/ ns2250225/article/details/77336995 5 centos7 packstack-pike version installed http://blog.csdn.net/chenhaifeng2016/article/ details/78924857 http://blog.csdn.net/wylfengyujiancheng/article/details/78658406 6 Configuration Pike version OpenStack source, configured with Aliyun source http://blog.csdn.net/wylfengyujiancheng/article/details/78658406 7 Centos6, the method of configuring OpenStack source and CentOS source, using the Grizzly version Https://jingyan.baidu.com/article/6c67b1d6a1fb992787bb1eae.html 8 Centos6,centos using the source of NetEase, the use of grizzly http:// Www.jb51.net/article/101880.htm 9 Very detailed OpenStack installation process https://www.cnblogs.com/yaohong/archive/2017/07/29/7251852. Html
Five OpenStack installation involves three sources, optionally using1 CentOS Source: CentOS Basic installation Source, set CentOS7 CentOS source for Ali's source setting method reference to the following article. Https://www.cnblogs.com/muyunren/p/7221505.html 2 Epel Source: Epel is a yum software source that contains a number of basic sources of software settings Epel source for Ali's source method reference to the following article. https://www.cnblogs.com/imweihao/p/7357484.html CentOS users can install and enable epel-release directly through Yum install Epel. CentOS extra contains the package by default, refer to the following article. Https://www.cnblogs.com/sxdcgaq8080/p/7516186.html 3 OpenStack Source: The mirrored addresses of the OpenStack versions of the installation files Aliyun are as follows http:// Mirrors.aliyun.com/centos/7.4.1708/cloud/x86_64/openstack-ocata sets the method for the OpenStack source to be Ali. http://blog.csdn.net/wylfengyujiancheng/article/details/78658406
six domestic mirror sourceHttps://www.cnblogs.com/liuzhi/p/6238054.html