Fail to build sensu centos images

Bug #1774123 reported by Martin André
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Critical
Unassigned

Bug Description

The sensu-plugins-mailer fails to build. Maybe due to a new version? Anyways, this causes the gate to block all commits.

INFO:kolla.common.utils.sensu-server:[SENSU-INSTALL] Sensu plugin gems to be installed: ["sensu-plugins-mailer", "sensu-plugins-slack"]
INFO:kolla.common.utils.sensu-server:[SENSU-INSTALL] installing Sensu gem 'sensu-plugins-mailer'
INFO:kolla.common.utils.sensu-server:Successfully installed xml-simple-1.1.5
INFO:kolla.common.utils.sensu-server:Successfully installed builder-3.2.3
INFO:kolla.common.utils.sensu-server:Successfully installed mime-types-2.99.3
INFO:kolla.common.utils.sensu-server:Successfully installed mail-2.6.3
INFO:kolla.common.utils.sensu-server:Successfully installed aws-ses-0.6.0
INFO:kolla.common.utils.sensu-server:Building native extensions. This could take a while...
INFO:kolla.common.utils.sensu-server:ERROR: Error installing sensu-plugins-mailer:
INFO:kolla.common.utils.sensu-server: ERROR: Failed to build gem native extension.
INFO:kolla.common.utils.sensu-server: current directory: /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/unf_ext-0.0.7.5/ext/unf_ext
INFO:kolla.common.utils.sensu-server:/opt/sensu/embedded/bin/ruby -r ./siteconf20180530-15-1f05xhn.rb extconf.rb
INFO:kolla.common.utils.sensu-server:checking for -lstdc++... yes
INFO:kolla.common.utils.sensu-server:creating Makefile
INFO:kolla.common.utils.sensu-server:current directory: /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/unf_ext-0.0.7.5/ext/unf_ext
INFO:kolla.common.utils.sensu-server:make "DESTDIR=" clean
INFO:kolla.common.utils.sensu-server:current directory: /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/unf_ext-0.0.7.5/ext/unf_ext
INFO:kolla.common.utils.sensu-server:make "DESTDIR="
INFO:kolla.common.utils.sensu-server:compiling unf.cc
INFO:kolla.common.utils.sensu-server:linking shared-object unf_ext.so
INFO:kolla.common.utils.sensu-server:/usr/bin/ld: unrecognized option '--compress-debug-sections=zlib'
INFO:kolla.common.utils.sensu-server:/usr/bin/ld: use the --help option for usage information
INFO:kolla.common.utils.sensu-server:collect2: error: ld returned 1 exit status
INFO:kolla.common.utils.sensu-server:make: *** [unf_ext.so] Error 1
INFO:kolla.common.utils.sensu-server:make failed, exit code 2
INFO:kolla.common.utils.sensu-server:Gem files will remain installed in /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/unf_ext-0.0.7.5 for inspection.
INFO:kolla.common.utils.sensu-server:Results logged to /opt/sensu/embedded/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0/unf_ext-0.0.7.5/gem_make.out
INFO:kolla.common.utils.sensu-server:
INFO:kolla.common.utils.sensu-server:[SENSU-INSTALL] failed to install Sensu gem 'sensu-plugins-mailer'
INFO:kolla.common.utils.sensu-server:[SENSU-INSTALL] you can run the sensu-install command again with --verbose for more info
INFO:kolla.common.utils.sensu-server:[SENSU-INSTALL] please take note of any failure messages above
INFO:kolla.common.utils.sensu-server:[SENSU-INSTALL] make sure you have build tools installed (e.g. gcc)
INFO:kolla.common.utils.sensu-server:[SENSU-INSTALL] trying to determine the Sensu plugin homepage for sensu-plugins-mailer ...
INFO:kolla.common.utils.sensu-server:homepage: https://github.com/sensu-plugins/sensu-plugins-mailer

http://logs.openstack.org/74/570874/3/check/kolla-build-centos-binary/3934562/logs/build/000_FAILED_sensu-server.txt.gz

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to kolla (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/571109

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kolla (master)

Reviewed: https://review.openstack.org/571109
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=5a914622d4543436ef847feaf4dbbb1181315e65
Submitter: Zuul
Branch: master

commit 5a914622d4543436ef847feaf4dbbb1181315e65
Author: Martin André <email address hidden>
Date: Wed May 30 09:03:47 2018 +0200

    Unblock gate

    Add kolla-toolbox and sensu-base to skip list to unblock gate. Then we
    can merge the proper fix and remove the images from skip list.

    Change-Id: I34285fffc7a3542007161d2e10e713756710b4ca
    Related-Bug: #1773938
    Related-Bug: #1774123

Revision history for this message
Martin André (mandre) wrote :

The breakage was caused by an update of sensu from sensu-1.4.2-1.el7.x86_64 to sensu-1.4.2-2.el7.x86_64 in https://sensu.global.ssl.fastly.net/ repo.

I'm thinking we should install sensu from centos-opstools (http://cbs.centos.org/koji/packageinfo?packageID=2234) instead and drop https://sensu.global.ssl.fastly.net/ entirely. The sensu version will be slightly older but we would hopefully reach more stability.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to kolla (stable/queens)

Related fix proposed to branch: stable/queens
Review: https://review.openstack.org/571181

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kolla (stable/queens)

Reviewed: https://review.openstack.org/571181
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=c0838d2a61eedf0adf98b84d4cdc5d97151ccba5
Submitter: Zuul
Branch: stable/queens

commit c0838d2a61eedf0adf98b84d4cdc5d97151ccba5
Author: Martin André <email address hidden>
Date: Wed May 30 09:03:47 2018 +0200

    Unblock gate

    Add kolla-toolbox and sensu-base to skip list to unblock gate. Then we
    can merge the proper fix and remove the images from skip list.

    Change-Id: I34285fffc7a3542007161d2e10e713756710b4ca
    Related-Bug: #1773938
    Related-Bug: #1774123
    (cherry picked from commit 5a914622d4543436ef847feaf4dbbb1181315e65)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/571175
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=76a965ad8032e70cdb3286f989f21876e0af7a76
Submitter: Zuul
Branch: master

commit 76a965ad8032e70cdb3286f989f21876e0af7a76
Author: Martin André <email address hidden>
Date: Wed May 30 13:32:01 2018 +0200

    Install sensu from centos-opstools

    This should help improve stability overall, in exchange for slightly
    older package version.

    Cap all the sensu plugins to their known major version that works with
    the ruby interpreter shipped with the current version of
    rhel/centos/oraclelinux -- currently ruby 2.0. All sensu plugins use
    semantic versioning so we're assured they don't introduce breaking
    changes in the capped major version.

    Change-Id: Ic5ca679c40da3e466433b0e04f762d2bbffbf156
    Closes-Bug: #1774123

Changed in kolla:
status: Triaged → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 7.0.0.0b2

This issue was fixed in the openstack/kolla 7.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/585987

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla (stable/queens)

Change abandoned by Michal Nasiadka (<email address hidden>) on branch: stable/queens
Review: https://review.openstack.org/585987

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/queens)

Reviewed: https://review.openstack.org/585987
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=3bef3ad814c4cc824795307cfa270edecf3f3dfe
Submitter: Zuul
Branch: stable/queens

commit 3bef3ad814c4cc824795307cfa270edecf3f3dfe
Author: Martin André <email address hidden>
Date: Wed May 30 13:32:01 2018 +0200

    Install sensu from centos-opstools

    This should help improve stability overall, in exchange for slightly
    older package version.

    Cap all the sensu plugins to their known major version that works with
    the ruby interpreter shipped with the current version of
    rhel/centos/oraclelinux -- currently ruby 2.0. All sensu plugins use
    semantic versioning so we're assured they don't introduce breaking
    changes in the capped major version.

    Change-Id: Ic5ca679c40da3e466433b0e04f762d2bbffbf156
    Closes-Bug: #1774123

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 6.1.1

This issue was fixed in the openstack/kolla 6.1.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.