[INTPAK-120] Fix false dep mismatch for /usr/bin/env Created: 13/Dec/17  Updated: 15/Jan/18  Resolved: 14/Dec/17

Status: Closed
Project: integration-packaging
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Daniel Farrell Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I'm seeing RPM build jobs in RelEng Jenkins fail with a dep mismatch, calling out `/usr/bin/env`.

I didn't see this in my sandbox runs yesterday, so I suspect it only happens in RelEng. Not sure why there would be this difference between the two however. Could also be related to lots of recent infra changes that are happening as we move to new cloud provider.

Also the sandbox is currently down because Rackspace (old provider) infra can't spawn VMs. Need to figure out how to work with the new prototype sandbox on new cloud provider to get an env for testing.



 Comments   
Comment by Daniel Farrell [ 13/Dec/17 ]

Working for Nitrogen release in the new sandbox: https://jenkins.opendaylight.org/sandbox/job/packaging-build-rpm-carbon/1/console

Comment by Daniel Farrell [ 13/Dec/17 ]

But failing for the same Carbon autorelease RPM I was trying in RelEng: https://jenkins.opendaylight.org/sandbox/job/packaging-build-rpm-carbon/2/console

So it seems to be related to the version of ODL we're packaging, which is strange since I think all the logic should be the same.

Comment by Daniel Farrell [ 13/Dec/17 ]

Working for a recent Oxygen snapshot: https://jenkins.opendaylight.org/sandbox/job/packaging-build-rpm-carbon/3/console

Comment by Daniel Farrell [ 13/Dec/17 ]

Failing for a recent Carbon snapshot: https://jenkins.opendaylight.org/sandbox/job/packaging-build-rpm-carbon/4/

So seems like it's related to Karaf 3 vs Karaf 4.

Comment by Daniel Farrell [ 13/Dec/17 ]

The Carbon RPMs don't have an extra requirement for /usr/bin/env, it's that the whitelist we're checking against in the job has it and the actual Carbon RPMs don't. The whitelist comes from Nitrogen RPMs on the CBS. Looking at requirements of various RPMs on the CBS, it seems like Carbon RPMs actually don't have /usr/bin/env and Nitrogen RPMs do. Obviously I expected all the RPMs built on the CBS to have the same requirements, can't image why they wouldn't.

Comment by Daniel Farrell [ 13/Dec/17 ]

These are all RPMs from the CBS. The Boron and Carbon ones don't show /usr/bin/env, the Nitrogen and Oxygen ones do. Really does seem like Karaf 3 vs Karaf 4.

$ rpm -qpR opendaylight-5.4.0-1.el7.noarch.rpm
/bin/bash
/bin/sh
/bin/sh
/bin/sh
java >= 1:1.7.0
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
shadow-utils
rpmlib(PayloadIsXz) <= 5.2-1

$ rpm -qpR opendaylight-6.3.0-0.1.20171124snap212.el7.noarch.rpm
/bin/bash
/bin/sh
/bin/sh
/bin/sh
java >= 1:1.8.0
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
shadow-utils
rpmlib(PayloadIsXz) <= 5.2-1

$ rpm -qpR opendaylight-6.2.0-1.el7.noarch.rpm
/bin/bash
/bin/sh
/bin/sh
/bin/sh
java >= 1:1.8.0
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
shadow-utils
rpmlib(PayloadIsXz) <= 5.2-1

$ rpm -qpR opendaylight-7.0.0-1.el7.noarch.rpm
/bin/bash
/bin/sh
/bin/sh
/bin/sh
/usr/bin/env
java >= 1:1.8.0
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
shadow-utils
rpmlib(PayloadIsXz) <= 5.2-1

$ rpm -qpR opendaylight-7.1.0-1.el7.noarch.rpm
/bin/bash
/bin/sh
/bin/sh
/bin/sh
/usr/bin/env
java >= 1:1.8.0
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
shadow-utils
rpmlib(PayloadIsXz) <= 5.2-1

$ rpm -qpR opendaylight-8.0.0-0.1.20171203snap1039.el7.noarch.rpm
/bin/bash
/bin/sh
/bin/sh
/bin/sh
/usr/bin/env
java >= 1:1.8.0
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
shadow-utils
rpmlib(PayloadIsXz) <= 5.2-1

Comment by Daniel Farrell [ 13/Dec/17 ]

Patch: https://git.opendaylight.org/gerrit/#/c/66442/

Generated at Wed Feb 07 20:03:40 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.