通过packstack一键安装openstack遇到各种不兼容错误和包缺失错误等问题详细解决方法,ERROR : Error appeared during Puppet run: 192.168.1

ERROR : Error appeared during Puppet run: 192.168.100.2_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/20240813-182454-0RsIBR/manifests/192.168.100.2_controller.pp.log
Please check log file /var/tmp/packstack/20240813-182454-0RsIBR/openstack-setup.log for more information.

在这里插入图片描述

主要错误类似如下:

[root@localhost ~]# packstack --answer-file=install.txt
Welcome to the Packstack setup utility

The installation log file is available at: /var/tmp/packstack/20240813-182454-0RsIBR/openstack-setup.log

Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DONE ]
root@192.168.100.2’s password:
root@192.168.100.6’s password:
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.100.2_controller.pp
192.168.100.2_controller.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.100.2_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/20240813-182454-0RsIBR/manifests/192.168.100.2_controller.pp.log
Please check log file /var/tmp/packstack/20240813-182454-0RsIBR/openstack-setup.log for more information
Additional information:

  • Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
  • Warning: NetworkManager is active on 192.168.100.2, 192.168.100.6. OpenStack networking currently does not work on systems that have the Network Manager service enabled.
  • File /root/keystonerc_admin has been created on OpenStack client host 192.168.100.2. To use the command line tools you need to source the file.
  • To access the OpenStack Dashboard browse to http://192.168.100.2/dashboard .
    Please, find your login credentials stored in the keystonerc_admin in your home directory.
    [root@localhost ~]#

解决方法:

1)控制节点和计算节点分别手动安装以来包:

yum install python2-qpid-proton-0.26.0-2.el7.x86_64 -y

2)控制节点安装依赖包:

 yum install openstack-keystone -y

再次执行,即可成功:

[root@localhost ~]# packstack --answer-file=install.txt
Welcome to the Packstack setup utility

The installation log file is available at: /var/tmp/packstack/20240814-085023-wFiOvx/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.100.2_controller.pp
192.168.100.2_controller.pp: [ DONE ]
Applying 192.168.100.2_network.pp
192.168.100.2_network.pp: [ DONE ]
Applying 192.168.100.6_compute.pp
192.168.100.6_compute.pp: [ DONE ]
Applying Puppet manifests [ DONE ]
Finalizing [ DONE ]

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

Additional information:

  • Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
  • Warning: NetworkManager is active on 192.168.100.2, 192.168.100.6. OpenStack networking currently does not work on systems that have the Network Manager service enabled.
  • File /root/keystonerc_admin has been created on OpenStack client host 192.168.100.2. To use the command line tools you need to source the file.
  • To access the OpenStack Dashboard browse to http://192.168.100.2/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/20240814-085023-wFiOvx/openstack-setup.log
  • The generated manifests are available at: /var/tmp/packstack/20240814-085023-wFiOvx/manifests
    您在 /var/spool/mail/root 中有新邮件
    [root@localhost ~]#

查看服务:

[root@localhost ~]# source keystonerc_admin

[root@localhost ~(keystone_admin)]# openstack compute service list
+----+----------------+------------+----------+---------+-------+----------------------------+
| ID | Binary         | Host       | Zone     | Status  | State | Updated At                 |
+----+----------------+------------+----------+---------+-------+----------------------------+
|  2 | nova-conductor | controller | internal | enabled | up    | 2024-08-14T01:45:26.000000 |
|  7 | nova-scheduler | controller | internal | enabled | up    | 2024-08-14T01:45:23.000000 |
| 11 | nova-compute   | nova       | nova     | enabled | up    | 2024-08-14T01:45:28.000000 |
+----+----------------+------------+----------+---------+-------+----------------------------+


[root@localhost ~(keystone_admin)]# neutron agent-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+--------------------------------------+--------------------+------------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host       | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+------------+-------------------+-------+----------------+---------------------------+
| 13f04824-ec7f-4e74-8fc2-43e9754da41a | Metering agent     | controller |                   | :-)   | True           | neutron-metering-agent    |
| 47dc998e-fc9e-48f5-8aeb-a8960a2bbef9 | Open vSwitch agent | nova       |                   | :-)   | True           | neutron-openvswitch-agent |
| 4c822acf-5238-420e-aa97-0551aed4c31b | Metadata agent     | controller |                   | :-)   | True           | neutron-metadata-agent    |
| 66060c5e-102c-452b-8340-047260ea8671 | Open vSwitch agent | controller |                   | :-)   | True           | neutron-openvswitch-agent |
| 6d39dd54-5213-43cc-8e47-651f9d0f03d6 | DHCP agent         | controller | nova              | :-)   | True           | neutron-dhcp-agent        |
| 73840bf9-de6a-43de-94f1-73b412742267 | L3 agent           | controller | nova              | :-)   | True           | neutron-l3-agent          |
+--------------------------------------+--------------------+------------+-------------------+-------+----------------+---------------------------+
[root@localhost ~(keystone_admin)]#


[root@localhost ~(keystone_admin)]# nova hypervisor-stats
+----------------------+--------+
| Property             | Value  |
+----------------------+--------+
| count                | 1      |
| current_workload     | 0      |
| disk_available_least | 32493  |
| free_disk_gb         | 32496  |
| free_ram_mb          | 256776 |
| local_gb             | 32496  |
| local_gb_used        | 0      |
| memory_mb            | 257288 |
| memory_mb_used       | 512    |
| running_vms          | 0      |
| vcpus                | 48     |
| vcpus_used           | 0      |
+----------------------+--------+
[root@localhost ~(keystone_admin)]#
  • 2
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

代码讲故事

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值