利用packstack工具快速安装单机版OpenStack的完整过程以及出现错误的解决方法

CentOS 7 快速安装单机版OpenStack

准备环境

  1. 安装CentOS 7 虚拟机,vCPU 2x2, 内存16G,网络模式为NAT,要保证可以正常上网。

    [root@localhost ~]# ping www.baidu.com
    PING www.a.shifen.com (110.242.68.4) 56(84) bytes of data.
    64 bytes from 110.242.68.4 (110.242.68.4): icmp_seq=1 ttl=128 time=13.5 ms
    ^C
    --- www.a.shifen.com ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 0ms
    rtt min/avg/max/mdev = 13.522/13.522/13.522/0.000 ms
    
  2. 修改网卡的IP地址获取方式为静态

    [root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens33 
    TYPE=Ethernet
    PROXY_METHOD=none
    BROWSER_ONLY=no
    BOOTPROTO=none
    DEFROUTE=yes
    IPV4_FAILURE_FATAL=no
    IPV6INIT=yes
    IPV6_AUTOCONF=yes
    IPV6_DEFROUTE=yes
    IPV6_FAILURE_FATAL=no
    IPV6_ADDR_GEN_MODE=stable-privacy
    NAME=ens33
    UUID=024abfb4-51eb-4f89-bb8b-83e9dfcea62e
    DEVICE=ens33
    ONBOOT=yes
    IPADDR=192.168.84.197
    PREFIX=24
    GATEWAY=192.168.84.2
    DNS1=8.8.8.8
    DNS2=192.168.84.2
    
  3. 配置主机名:

    [root@localhost ~]# hostnamectl set-hostname jason
    
  4. 修改/etc/hosts文件,增加本机主机记录:

    [root@localhost ~]# vim /etc/hosts
    [root@localhost ~]# cat /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    192.168.84.197    jason
    [root@localhost ~]# ping jason
    PING jason (192.168.84.197) 56(84) bytes of data.
    64 bytes from jason (192.168.84.197): icmp_seq=1 ttl=64 time=0.040 ms
    ^C
    --- jason ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 0ms
    rtt min/avg/max/mdev = 0.040/0.040/0.040/0.000 ms
    
  5. 修改/etc/ssh/sshd_config文件,允许可以root身份登录,并重启ssh服务,然后重启虚拟机:

    [root@localhost ssh]# vim sshd_config 
    [root@localhost ssh]# cat sshd_config 
    ~  #省略
    PermitRootLogin yes
    #省略
    [root@localhost ssh]# systemctl restart sshd.service
    
6. 关闭selinux,NetwokMnager,firewalld

```shell
[root@jason ~]# sed -i 's/enforcing/disabled/g' /etc/selinux/config
[root@jason ~]# systemctl stop firewalld
[root@jason ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@jason ~]# systemctl stop NetworkManager
[root@jason ~]# systemctl disable NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
Removed symlink /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service.
[root@jason ~]# setenforce 0
  1. 配置Yum源

    备份系统原来的repo文件

    [root@jason ~]# cd /etc/yum.repos.d/
    [root@jason yum.repos.d]# ls
    CentOS-Base.repo  CentOS-CR.repo  CentOS-Debuginfo.repo  CentOS-fasttrack.repo  CentOS-Media.repo  CentOS-Sources.repo  CentOS-Vault.repo  CentOS-x86_64-kernel.repo
    [root@jason yum.repos.d]# ls -A | xargs -i mv {} {}.bak
    [root@jason yum.repos.d]# ls -alh
    total 48K
    drwxr-xr-x.   2 root root  252 Jan 10 07:20 .
    drwxr-xr-x. 139 root root 8.0K Jan 10 07:14 ..
    -rw-r--r--.   1 root root 1.7K Apr  7  2020 CentOS-Base.repo.bak
    -rw-r--r--.   1 root root 1.3K Apr  7  2020 CentOS-CR.repo.bak
    -rw-r--r--.   1 root root  649 Apr  7  2020 CentOS-Debuginfo.repo.bak
    -rw-r--r--.   1 root root  314 Apr  7  2020 CentOS-fasttrack.repo.bak
    -rw-r--r--.   1 root root  630 Apr  7  2020 CentOS-Media.repo.bak
    -rw-r--r--.   1 root root 1.3K Apr  7  2020 CentOS-Sources.repo.bak
    -rw-r--r--.   1 root root 7.4K Apr  7  2020 CentOS-Vault.repo.bak
    -rw-r--r--.   1 root root  616 Apr  7  2020 CentOS-x86_64-kernel.repo.bak
    [root@jason yum.repos.d]#
    

下载新的CentOS-Base.repo 到/etc/yum.repos.d/

[root@jason yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@jasn yum.repos.d]# yum clean all
[root@jason yum.repos.d]# yum makecach
[root@jason yum.repos.d]# yum update

安装epol源

[root@jason yum.repos.d]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

可以在这个节点对虚拟机拍个快照。

时间同步

[root@jason ~]# yum -y install ntpdate
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
epel                                                                                                                                                                                  | 4.7 kB  00:00:00
(1/3): epel/x86_64/group_gz                                                                                                                                                           |  99 kB  00:00:00
(2/3): epel/x86_64/updateinfo                                                                                                                                                         | 1.0 MB  00:00:01
(3/3): epel/x86_64/primary_db                                                                                                                                                         | 7.0 MB  00:00:04
Package ntpdate-4.2.6p5-29.el7.centos.2.x86_64 already installed and latest version
Nothing to do
[root@jason ~]# ntpdate ntp.aliyun.com>>/var/log/ntpdate.log
[root@jason ~]# ntpdate ntp.aliyun.com
10 Jan 07:39:27 ntpdate[8913]: adjust time server 203.107.6.88 offset 0.001035 sec
[root@jason ~]# crontab -e
no crontab for root - using an empty one
crontab: installing new crontab
[root@jason ~]# crontab -l
*/30 * * * * /usr/sbin/ntpdate ntp.aliyun.com >>/var/log/ntpdate.log
[root@jason ~]# systemctl restart crond
[root@jason ~]# systemctl enable crond
[root@jason ~]#

安装OpenStacck-train源

[root@jason ~]# yum -y install centos-release-openstack-train
[root@jason ~]# cd /etc/yum.repos.d/
[root@jason yum.repos.d]# ls -alh
total 116K
drwxr-xr-x.   2 root root 4.0K Jan 10 07:41 .
drwxr-xr-x. 139 root root 8.0K Jan 10 07:31 ..
-rw-r--r--.   1 root root 2.5K Aug  4 03:04 CentOS-Base.repo
-rw-r--r--.   1 root root 1.7K Apr  7  2020 CentOS-Base.repo.bak
-rw-r--r--    1 root root  956 Jun 19  2019 CentOS-Ceph-Nautilus.repo
-rw-r--r--.   1 root root 1.3K Nov 23  2020 CentOS-CR.repo
-rw-r--r--.   1 root root 1.3K Apr  7  2020 CentOS-CR.repo.bak
-rw-r--r--.   1 root root  649 Nov 23  2020 CentOS-Debuginfo.repo
-rw-r--r--.   1 root root  649 Apr  7  2020 CentOS-Debuginfo.repo.bak
-rw-r--r--.   1 root root  314 Nov 23  2020 CentOS-fasttrack.repo
-rw-r--r--.   1 root root  314 Apr  7  2020 CentOS-fasttrack.repo.bak
-rw-r--r--.   1 root root  630 Nov 23  2020 CentOS-Media.repo
-rw-r--r--.   1 root root  630 Apr  7  2020 CentOS-Media.repo.bak
-rw-r--r--    1 root root  717 Mar 23  2020 CentOS-NFS-Ganesha-28.repo
-rw-r--r--    1 root root 1.3K Oct 22  2019 CentOS-OpenStack-train.repo
-rw-r--r--    1 root root  612 Feb  1  2019 CentOS-QEMU-EV.repo
-rw-r--r--.   1 root root 1.3K Nov 23  2020 CentOS-Sources.repo
-rw-r--r--.   1 root root 1.3K Apr  7  2020 CentOS-Sources.repo.bak
-rw-r--r--    1 root root  353 Jul 31  2018 CentOS-Storage-common.repo
-rw-r--r--.   1 root root 8.4K Nov 23  2020 CentOS-Vault.repo
-rw-r--r--.   1 root root 7.4K Apr  7  2020 CentOS-Vault.repo.bak
-rw-r--r--.   1 root root  616 Nov 23  2020 CentOS-x86_64-kernel.repo
-rw-r--r--.   1 root root  616 Apr  7  2020 CentOS-x86_64-kernel.repo.bak
-rw-r--r--.   1 root root  664 Aug  4 03:04 epel.repo

重装Leatherman(重要)

leatherman rpm包版本问题, 已经安装版本是1.10.0-1,而facter需要1.3.0,需要回退这个leatherman的版本:

[root@jason ~]# yum list | grep leatherman
leatherman.x86_64                        1.10.0-1.el7                  epel
leatherman-devel.x86_64                  1.10.0-1.el7                  epel
[root@jason ~]# yum install leatherman-1.3.0
[root@jason ~]# yum install leatherman-1.3.0

安装OpenStack-packstack软件包

[root@jason ~]# yum -y install openstack-utils
[root@jason ~]# yum -y install openstack-packstack
  1. 生成应答文件

    [root@jason ~]# packstack --gen-answer-file=aa.txt
    
  2. 修改应答文件

    [root@jason ~]# vim preinstall.sh
    [root@jason ~]# cat preinstall.sh
    #!/bin/bash
    IP=$(ifconfig ens33 | awk '/inet /{print $2}')  #这里网卡名称要与实际一致
    
    sed -i '/^CONFIG_COMPUTE_HOSTS=/cCONFIG_COMPUTE_HOSTS='$IP'' aa.txt
    sed -i '/^CONFIG_PROVISION_DEMO=/cCONFIG_PROVISION_DEMO=n' aa.txt
    sed -i '/^CONFIG_NEUTRON_ML2_TYPE_DRIVERS=/cCONFIG_NEUTRON_ML2_TYPE_DRIVERS=flat,vxlan' aa.txt
    sed -i '/^CONFIG_NEUTRON_ML2_FLAT_NETWORKS=/cCONFIG_NEUTRON_ML2_FLAT_NETWORKS=datacentre' aa.txt
    sed -i '/^CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=/cCONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=datacentre:br-ex' aa.txt
    #sed -i '/^CONFIG_HEAT_INSTALL=/cCONFIG_HEAT_INSTALL=y' aa.txt
    sed -i.bak -r 's/(.+_PW)=[0-9a-z]+/\1=redhat/g' aa.txt
    
3. 开始安装

```shell
packstack --answer-file=aa.txt

执行报以下错误:

ERROR : Error appeared during Puppet run: 192.168.84.197_controller.pp
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install openstack-keystone' returned 1: Error: Package: python2-qpid-proton-0.26.0-2.el7.x86_64 (centos-openstack-train)
You will find full trace in log /var/tmp/packstack/20230110-075226-4XhHJs/manifests/192.168.84.197_controller.pp.log
Please check log file /var/tmp/packstack/20230110-075226-4XhHJs/openstack-setup.log for more information
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
 * 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.84.197. To use the command line tools you need to source the file.
 * To access the OpenStack Dashboard browse to http://192.168.84.197/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.

需要下载python2-qpid-proton-0.26.0-2.el7.x86_64.rpm,下载地址:

https://cbs.centos.org/koji/buildinfo?buildID=25414
[root@jason ~]# mv ~/Downloads/python2-qpid-proton-0.26.0-2.el7.x86_64.rpm .
[root@jason ~]# rpm -ivh python2-qpid-proton-0.26.0-2.el7.x86_64.rpm
error: Failed dependencies:
        qpid-proton-c(x86-64) = 0.26.0-2.el7 is needed by python2-qpid-proton-0.26.0-2.el7.x86_64
        libqpid-proton.so.11()(64bit) is needed by python2-qpid-proton-0.26.0-2.el7.x86_64
[root@jason ~]# yum install  python2-qpid-proton-0.26.0-2.el7.x86_64
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * centos-ceph-nautilus: mirrors.bfsu.edu.cn
 * centos-nfs-ganesha28: mirrors.bupt.edu.cn
 * centos-openstack-train: mirrors.bfsu.edu.cn
 * centos-qemu-ev: mirrors.bfsu.edu.cn
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package python2-qpid-proton.x86_64 0:0.26.0-2.el7 will be installed
--> Processing Dependency: qpid-proton-c(x86-64) = 0.26.0-2.el7 for package: python2-qpid-proton-0.26.0-2.el7.x86_64
--> Processing Dependency: libqpid-proton.so.11()(64bit) for package: python2-qpid-proton-0.26.0-2.el7.x86_64
--> Running transaction check
---> Package qpid-proton-c.x86_64 0:0.26.0-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================
 Package                                              Arch                                    Version                                          Repository                                               Size
=============================================================================================================================================================================================================
Installing:
 python2-qpid-proton                                  x86_64                                  0.26.0-2.el7                                     centos-openstack-train                                  217 k
Installing for dependencies:
 qpid-proton-c                                        x86_64                                  0.26.0-2.el7                                     centos-openstack-train                                  185 k

Transaction Summary
=============================================================================================================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 402 k
Installed size: 1.9 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): python2-qpid-proton-0.26.0-2.el7.x86_64.rpm                                                                                                                                    | 217 kB  00:00:00
(2/2): qpid-proton-c-0.26.0-2.el7.x86_64.rpm                                                                                                                                          | 185 kB  00:00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                        757 kB/s | 402 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : qpid-proton-c-0.26.0-2.el7.x86_64                                                                                                                                                         1/2
  Installing : python2-qpid-proton-0.26.0-2.el7.x86_64                                                                                                                                                   2/2
  Verifying  : qpid-proton-c-0.26.0-2.el7.x86_64                                                                                                                                                         1/2
  Verifying  : python2-qpid-proton-0.26.0-2.el7.x86_64                                                                                                                                                   2/2

Installed:
  python2-qpid-proton.x86_64 0:0.26.0-2.el7

Dependency Installed:
  qpid-proton-c.x86_64 0:0.26.0-2.el7

Complete!
[root@jason ~]#

安装成功,重新执行packstack


 **** 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
 * 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.84.197. To use the command line tools you need to source the file.
 * To access the OpenStack Dashboard browse to http://192.168.84.197/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/20230110-083948-6QqIw1/openstack-setup.log
 * The generated manifests are available at: /var/tmp/packstack/20230110-083948-6QqIw1/manifests
You have new mail in /var/spool/mail/root
[root@jason ~]#

至此成功安装了OpenStack

创建桥接网络

[root@jason ~]# vim postinstall.sh
[root@jason ~]# cat postinstall.sh
#!/bin/bash
IP=$(ifconfig ens33 | awk '/inet /{print $2}')
GW=$(echo $IP | awk -F. '{print $1"."$2"."$3"."2}')
dir="/etc/sysconfig/network-scripts/"
cat > $dir/ifcfg-br-ex <<EOF
DEVICE=br-ex
DEVICETYPE=ovs
TYPE=OVSBridge
BOOTPROTO=none
IPADDR=$IP
NETMASK=255.255.255.0
GATEWAY=$GW
DNS1=$GW
ONBOOT=yes
EOF

cat > $dir/ifcfg-ens33 <<EOF
DEVICE=ens33
DEVICETYPE=ovs
TYPE=OVSPort
ONBOOT=yes
BOOTPROTO=none
OVS_BRIDGE=br-ex
EOF

 [root@jason ~]#  openstack user create --password redhat test
Missing value auth-url required for auth plugin password

[root@jason ~]# vim admin-openrc.sh
[root@jason ~]# cat admin-openrc.sh
export OS_USERNAME=admin
export OS_PASSWORD=5fcd852727e6414c
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://192.168.84.197:35357/v3
export OS_IDENTITY_API_VERSION=3
source admin-openrc.sh
[root@jason ~]#

source admin-openrc

需要接下来执行:

[root@jason ~]# . keystonerc_admin
[root@jason ~(keystone_admin)]# systemctl restart httpd
                           802/rpcbind
[root@jason ~(keystone_admin)]# netstat -tunlp  |grep :35357
[root@jason ~(keystone_admin)]# nova list
+----+------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+----+------+--------+------------+-------------+----------+
+----+------+--------+------------+-------------+----------+
[root@jason ~(keystone_admin)]# openstack user create --password redhat test
+---------------------+----------------------------------+
| Field               | Value                            |
+---------------------+----------------------------------+
| domain_id           | default                          |
| enabled             | True                             |
| id                  | efdefc7b7db348369f861e4c587af08d |
| name                | test                             |
| options             | {}                               |
| password_expires_at | None                             |
+---------------------+----------------------------------+
[root@jason ~(keystone_admin)]# openstack project create test
+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description |                                  |
| domain_id   | default                          |
| enabled     | True                             |
| id          | 659b277d4e7640a99de0665468c1de14 |
| is_domain   | False                            |
| name        | test                             |
| options     | {}                               |
| parent_id   | default                          |
| tags        | []                               |
+-------------+----------------------------------+
[root@jason ~(keystone_admin)]# openstack role add --user test --project test admin
[root@jason ~(keystone_admin)]# openstack role assignment list --name
+---------------+--------------------+-------+------------------+--------+--------+-----------+
| Role          | User               | Group | Project          | Domain | System | Inherited |
+---------------+--------------------+-------+------------------+--------+--------+-----------+
| admin         | glance@Default     |       | services@Default |        |        | False     |
| ResellerAdmin | ceilometer@Default |       | services@Default |        |        | False     |
| admin         | ceilometer@Default |       | services@Default |        |        | False     |
| admin         | cinder@Default     |       | services@Default |        |        | False     |
| _member_      | demo@Default       |       | demo@Default     |        |        | False     |
| admin         | aodh@Default       |       | services@Default |        |        | False     |
| admin         | swift@Default      |       | services@Default |        |        | False     |
| admin         | admin@Default      |       | admin@Default    |        |        | False     |
| admin         | placement@Default  |       | services@Default |        |        | False     |
| admin         | neutron@Default    |       | services@Default |        |        | False     |
| admin         | nova@Default       |       | services@Default |        |        | False     |
| admin         | test@Default       |       | test@Default     |        |        | False     |
| admin         | gnocchi@Default    |       | services@Default |        |        | False     |
| admin         | admin@Default      |       |                  |        | all    | False     |
+---------------+--------------------+-------+------------------+--------+--------+-----------+


[root@jason ~(keystone_admin)]# ls /etc/sysconfig/network-scripts/
ifcfg-ens33             ifdown-ib               ifdown-post             ifdown-TeamPort         ifup-eth                ifup-ovs                ifup-routes             ifup-wireless
ifcfg-lo                ifdown-ippp             ifdown-ppp              ifdown-tunnel           ifup-ib                 ifup-plip               ifup-sit                init.ipv6-global
ifdown                  ifdown-ipv6             ifdown-routes           ifup                    ifup-ippp               ifup-plusb              ifup-Team               network-functions
ifdown-bnep             ifdown-isdn             ifdown-sit              ifup-aliases            ifup-ipv6               ifup-post               ifup-TeamPort           network-functions-ipv6
ifdown-eth              ifdown-ovs              ifdown-Team             ifup-bnep               ifup-isdn               ifup-ppp                ifup-tunnel
[root@jason ~(keystone_admin)]# ls /etc/sysconfig/network-scripts/ifcfg-eth
ls: cannot access /etc/sysconfig/network-scripts/ifcfg-eth: No such file or directory
[root@jason ~(keystone_admin)]# ls /etc/sysconfig/network-scripts/ifcfg-
ifcfg-ens33  ifcfg-lo
[root@jason ~(keystone_admin)]# ls /etc/sysconfig/network-scripts/ifcfg-
ifcfg-ens33  ifcfg-lo
[root@jason ~(keystone_admin)]# ping www.baidu.com
PING www.a.shifen.com (110.242.68.3) 56(84) bytes of data.
64 bytes from 110.242.68.3 (110.242.68.3): icmp_seq=1 ttl=128 time=13.4 ms
64 bytes from 110.242.68.3 (110.242.68.3): icmp_seq=2 ttl=128 time=14.3 ms
^C
--- www.a.shifen.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 13.488/13.940/14.392/0.452 ms
[root@jason ~(keystone_admin)]# cat /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=024abfb4-51eb-4f89-bb8b-83e9dfcea62e
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.84.197
PREFIX=24
GATEWAY=192.168.84.2
DNS1=8.8.8.8
DNS2=192.168.84.2
[root@jason ~(keystone_admin)]# ls -alh
total 356K
dr-xr-x---. 17 root root 4.0K Jan 10 10:05 .
dr-xr-xr-x. 17 root root  244 Jan 10 07:37 ..
-rw-------   1 root root  51K Jan 10 08:39 aa.txt
-rw-r--r--   1 root root  246 Jan 10 09:27 admin-openrc.sh
-rw-------.  1 root root 1.7K Jan 10 07:03 anaconda-ks.cfg
-rw-------.  1 root root 2.1K Jan 10 09:24 .bash_history
-rw-r--r--.  1 root root   18 Dec 28  2013 .bash_logout
-rw-r--r--.  1 root root  176 Dec 28  2013 .bash_profile
-rw-r--r--.  1 root root  176 Dec 28  2013 .bashrc
drwx------. 15 root root 4.0K Jan 10 08:37 .cache
drwx------. 14 root root  261 Jan 10 07:05 .config
-rw-r--r--.  1 root root  100 Dec 28  2013 .cshrc
drwx------.  3 root root   25 Jan 10 07:04 .dbus
drwxr-xr-x.  2 root root    6 Jan 10 07:05 Desktop
drwxr-xr-x.  2 root root    6 Jan 10 07:05 Documents
drwxr-xr-x.  2 root root    6 Jan 10 08:38 Downloads
-rw-------.  1 root root   16 Jan 10 07:05 .esd_auth
-rw-------.  1 root root 1.3K Jan 10 09:28 .ICEauthority
-rw-r--r--.  1 root root 1.7K Jan 10 07:05 initial-setup-ks.cfg
-rw-------   1 root root  374 Jan 10 07:54 keystonerc_admin
-rw-------   1 root root  319 Jan 10 07:54 keystonerc_demo
drwx------.  3 root root   19 Jan 10 07:05 .local
drwxr-xr-x   4 root root   39 Jan 10 08:37 .mozilla
drwxr-xr-x.  2 root root    6 Jan 10 07:05 Music
-rw-------   1 root root  518 Jan 10 07:53 .my.cnf
drwxr-xr-x   4 root root  150 Jan 10 10:12 .novaclient
drwxr-xr-x.  2 root root    6 Jan 10 07:05 Pictures
-rw-r--r--   1 root root  423 Jan 10 09:05 postinstall.sh
-rw-r--r--   1 root root  611 Jan 10 07:51 preinstall.sh
drwxr-xr-x.  2 root root    6 Jan 10 07:05 Public
-rw-r--r--   1 root root 217K Jan 10 08:37 python2-qpid-proton-0.26.0-2.el7.x86_64.rpm
dr-x------   2 root root   61 Jan 10 07:52 .ssh
-rw-r--r--.  1 root root  129 Dec 28  2013 .tcshrc
drwxr-xr-x.  2 root root    6 Jan 10 07:05 Templates
drwxr-xr-x.  2 root root    6 Jan 10 07:05 Videos
-rw-------   1 root root 5.3K Jan 10 10:05 .viminfo
-rw-------   1 root root  102 Jan 10 09:26 .Xauthority


posted @ 2023-01-10 23:24  Jason_huawen  阅读(1015)  评论(0编辑  收藏  举报