ERROR : Error appeared during Puppet run: 10.0.2.XX_compute.pp

asked 2017-04-24 03:52:01 -0500

Freedom gravatar image

updated 2017-04-25 02:50:14 -0500

First of all, thank you view my question.

I do Openstack installation follow: https://www.rdoproject.org/install/quickstart/ (https://www.rdoproject.org/install/qu...) Then I got these errors:

10.0.2.15_controller.pp:                             [ DONE ]      
Applying 10.0.2.15_network.pp
10.0.2.15_network.pp:                                [ DONE ]   
Applying 10.0.2.15_compute.pp
10.0.2.15_compute.pp:                             [ ERROR ]     
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 10.0.2.15_compute.pp
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install libvirt-daemon-kvm' returned 1: Error downloading packages:

I have piked up these error messages,
cat /var/tmp/packstack/20170424-025335-wqYurx/manifests/10.0.2.15_compute.pp.log

Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install libvirt-daemon-kvm' returned 1: Error downloading packages:
  10:qemu-kvm-ev-2.6.0-28.el7_3.6.1.x86_64: [Errno 256] No more mirrors to try.
Error: /Stage[main]/Nova::Compute::Libvirt::Services/Package[libvirt]/ensure: change from purged to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install libvirt-daemon-kvm' returned 1: Error downloading packages:
  10:qemu-kvm-ev-2.6.0-28.el7_3.6.1.x86_64: [Errno 256] No more mirrors to try.
PuppetError: Error appeared during Puppet run: 10.0.2.15_compute.pp
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install libvirt-daemon-kvm' returned 1: Error downloading packages:

and the error message from /var/spool/mail/root

    From root@localhost.localdomain  Mon Apr 24 03:34:21 2017
    Return-Path: <root@localhost.localdomain>
    X-Original-To: root
    Delivered-To: root@localhost.localdomain
    Received: by localhost.localdomain (Postfix, from userid 0)
            id 0DE2C6128295; Mon, 24 Apr 2017 03:34:21 -0400 (EDT)
    From: Anacron <root@localhost.localdomain>
    To: root@localhost.localdomain
    Content-Type: text/plain; charset="UTF-8"
    Subject: Anacron job 'cron.daily' on localhost.localdomain
    Message-Id: <20170424073421.0DE2C6128295@localhost.localdomain>
    Date: Mon, 24 Apr 2017 03:34:21 -0400 (EDT)

    /etc/cron.daily/logrotate:

error: stat of /var/log/swift/swift.log failed: No such file or directory

Got these new errors:

Applying 10.0.2.15_controller.pp
10.0.2.15_controller.pp:                             [ DONE ]      
Applying 10.0.2.15_network.pp
10.0.2.15_network.pp:                                [ DONE ]   
Applying 10.0.2.15_compute.pp
10.0.2.15_compute.pp:                             [ ERROR ]     
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 10.0.2.15_compute.pp
Notice: /Stage[main]/Nova::Cell_v2::Discover_hosts/Exec[nova-cell_v2-discover_hosts]/returns: OperationalError: (pymysql.err.OperationalError) (1045, u"Access denied for user 'nova'@'10.0.2.15' (using password: YES)")

Error: /Stage[main]/Nova::Cell_v2::Discover_hosts/Exec[nova-cell_v2-discover_hosts]: Failed to call refresh: nova-manage  cell_v2 discover_hosts returned 1 instead of one of [0]
Error: /Stage[main]/Nova::Cell_v2::Discover_hosts/Exec[nova-cell_v2-discover_hosts]: nova-manage  cell_v2 discover_hosts returned 1 instead of one of [0]
edit retag flag offensive close merge delete

Comments

The two errors don't look related. What happend when you run the above yum command manually on 10.0.2.15? Any traces on that host?

The logrotate error can probably explained by an incomplete OpenStack installation: Logrotate is already configured, but Swift hasn't started yet.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-24 04:24:56 -0500 )edit

Thank you. I have edited my question and attached more error messages.

and ... How to start the Swift...

Freedom gravatar imageFreedom ( 2017-04-24 09:08:19 -0500 )edit

It looks like your edits have not been saved.

My guess is that you can't start Swift before you fix the other problem.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-24 20:13:43 -0500 )edit

I'd say something is wrong with the Yum setup on host 10.0.2.15. Try running yum info qemu-kvm-ev-2.6.0-28.el7_3.6.1.x86_64 on that host, or yum install qemu-kvm-ev-2.6.0-28.el7_3.6.1.x86_64.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-24 21:58:53 -0500 )edit

Thanks. I have got new errors...

Freedom gravatar imageFreedom ( 2017-04-25 02:51:04 -0500 )edit