当前位置: > 其它学习 > OpenStack >

openstack all-in-one安装

时间:2019-12-26 00:23来源:linux.it.net.cn 作者:IT
[root@openstack ~]# ip add
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:15:5d:44:50:40 brd ff:ff:ff:ff:ff:ff
    inet 192.168.68.58/24 brd 192.168.68.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::215:5dff:fe44:5040/64 scope link
       valid_lft forever preferred_lft forever
[root@openstack ~]# cd /etc/sysconfig
[root@openstack sysconfig]# ls
anaconda    console   ebtables-config  init              iptables         kdump   modules     network-scripts  rsyncd     selinux
authconfig  cpupower  firewalld        ip6tables         iptables-config  kernel  netconsole  rdisc            rsyslog    sshd
cbq         crond     grub             ip6tables-config  irqbalance       man-db  network     readonly-root    run-parts  wpa_supplicant
[root@openstack sysconfig]# cd network-scripts
[root@openstack network-scripts]# ls
ifcfg-eth0  ifdown-bnep  ifdown-isdn    ifdown-sit       ifup          ifup-ippp  ifup-plusb   ifup-sit       ifup-wireless
ifcfg-eth1  ifdown-eth   ifdown-post    ifdown-Team      ifup-aliases  ifup-ipv6  ifup-post    ifup-Team      init.ipv6-global
ifcfg-lo    ifdown-ippp  ifdown-ppp     ifdown-TeamPort  ifup-bnep     ifup-isdn  ifup-ppp     ifup-TeamPort  network-functions
ifdown      ifdown-ipv6  ifdown-routes  ifdown-tunnel    ifup-eth      ifup-plip  ifup-routes  ifup-tunnel    network-functions-ipv6
[root@openstack network-scripts]# vi ifcfg-eth0

[1]+  Stopped                 vi ifcfg-eth0
[root@openstack network-scripts]# vi if
ifcfg-eth0       ifdown-eth       ifdown-ppp       ifdown-tunnel    ifup-ippp        ifup-post        ifup-TeamPort   
ifcfg-eth1       ifdown-ippp      ifdown-routes    ifup             ifup-ipv6        ifup-ppp         ifup-tunnel     
ifcfg-lo         ifdown-ipv6      ifdown-sit       ifup-aliases     ifup-isdn        ifup-routes      ifup-wireless   
ifdown           ifdown-isdn      ifdown-Team      ifup-bnep        ifup-plip        ifup-sit        
ifdown-bnep      ifdown-post      ifdown-TeamPort  ifup-eth         ifup-plusb       ifup-Team       
[root@openstack network-scripts]# vi ifcfg-eth1
[root@openstack network-scripts]# reboot
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(192.168.68.58) at 18:55:03.

Type `help' to learn how to use Xshell prompt.
[C:\~]$

Connecting to 192.168.68.58:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

WARNING! The remote SSH server rejected X11 forwarding request.
Last login: Wed Dec 25 18:52:50 2019 from 192.168.68.80
[root@openstack ~]# ipp a
-bash: ipp: command not found
[root@openstack ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:15:5d:44:50:40 brd ff:ff:ff:ff:ff:ff
    inet 192.168.68.58/24 brd 192.168.68.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::215:5dff:fe44:5040/64 scope link
       valid_lft forever preferred_lft forever
[root@openstack ~]# packstack --allinone
Welcome to the Packstack setup utility

The installation log file is available at: /var/tmp/packstack/20191225-185618-pQd_71/openstack-setup.log

Installing:
Clean Up                                             [ DONE ]
Discovering ip protocol version                      [ DONE ]
Setting up ssh keys                                  [ DONE ]
Preparing servers                                    [ DONE ]
Pre installing Puppet and discovering hosts' details [ DONE ]
Preparing pre-install entries                        [ DONE ]
Setting up CACERT                                    [ DONE ]
Preparing AMQP entries                               [ DONE ]
Preparing MariaDB entries                            [ DONE ]
Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]
Preparing Keystone entries                           [ DONE ]
Preparing Glance entries                             [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ DONE ]
Preparing Cinder entries                             [ DONE ]
Preparing Nova API entries                           [ DONE ]
Creating ssh keys for Nova migration                 [ DONE ]
Gathering ssh host keys for Nova migration           [ DONE ]
Preparing Nova Compute entries                       [ DONE ]
Preparing Nova Scheduler entries                     [ DONE ]
Preparing Nova VNC Proxy entries                     [ DONE ]
Preparing OpenStack Network-related Nova entries     [ DONE ]
Preparing Nova Common entries                        [ DONE ]
Preparing Neutron API entries                        [ DONE ]
Preparing Neutron L3 entries                         [ DONE ]
Preparing Neutron L2 Agent entries                   [ DONE ]
Preparing Neutron DHCP Agent entries                 [ DONE ]
Preparing Neutron Metering Agent entries             [ DONE ]
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 Gnocchi entries                            [ DONE ]
Preparing Redis entries                              [ DONE ]
Preparing Ceilometer entries                         [ DONE ]
Preparing Aodh entries                               [ DONE ]
Preparing Puppet manifests                           [ DONE ]
Copying Puppet modules and manifests                 [ DONE ]
Applying 192.168.68.58_controller.pp
192.168.68.58_controller.pp:                         [ DONE ]         
Applying 192.168.68.58_network.pp
192.168.68.58_network.pp:                            [ DONE ]      
Applying 192.168.68.58_compute.pp
192.168.68.58_compute.pp:                            [ DONE ]      
Applying Puppet manifests                            [ DONE ]
Finalizing                                           [ DONE ]

**** Installation completed successfully ******

Additional information:
* Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS or FWaaS services. Geneve will be used as the encapsulation method for tenant networks
* A new answerfile was created in: /root/packstack-answers-20191225-185621.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host 192.168.68.58. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://192.168.68.58/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/20191225-185618-pQd_71/openstack-setup.log
* The generated manifests are available at: /var/tmp/packstack/20191225-185618-pQd_71/manifests
(责任编辑:IT)
------分隔线----------------------------