Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EPEL now has dependency on http-parser #307

Closed
wyardley opened this issue Sep 6, 2017 · 4 comments
Closed

EPEL now has dependency on http-parser #307

wyardley opened this issue Sep 6, 2017 · 4 comments

Comments

@wyardley
Copy link
Contributor

wyardley commented Sep 6, 2017

Getting this error (on CentOS 7, with Puppet agent 5.x) when the package is coming from epel, including with the latest version of the module.

[root@c7node0 ~]# cat /etc/redhat-release 
CentOS Linux release 7.1.1503 (Core) 
[root@c7node0 ~]# puppet agent --version
5.1.0

(I've tried it with a more up-to-date CentOS version)

Error: Execution of '/bin/yum -d 0 -e 0 -y install nodejs' returned 1: Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
           Requires: http-parser >= 2.7.0
Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
           Requires: libhttp_parser.so.2()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Error: /Stage[main]/Nodejs::Install/Package[nodejs]/ensure: change from 'purged' to 'present' failed: Execution of '/bin/yum -d 0 -e 0 -y install nodejs' returned 1: Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
           Requires: http-parser >= 2.7.0
Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
           Requires: libhttp_parser.so.2()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Error: Execution of '/bin/yum -d 0 -e 0 -y install npm' returned 1: Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
           Requires: http-parser >= 2.7.0
Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
           Requires: libhttp_parser.so.2()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Error: /Stage[main]/Nodejs::Install/Package[npm]/ensure: change from 'purged' to 'present' failed: Execution of '/bin/yum -d 0 -e 0 -y install npm' returned 1: Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
           Requires: http-parser >= 2.7.0
Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
           Requires: libhttp_parser.so.2()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
@wyardley
Copy link
Contributor Author

wyardley commented Sep 6, 2017

Acceptance test enables epel, but pulls from nodesource, also doesn't verify installed version or source. If I set BEAKER_destroy=no, I can reproduce in the container for acceptance tests via.

[root@centos-7-x64 tmp]# cat /tmp/apply_manifest_test.pp 
    class { 'nodejs':
            repo_class => '::epel',
    }
    if $::osfamily == 'RedHat' and $::operatingsystemrelease =~ /^5.(d+)/ {
      class { 'epel': }
      Class['epel'] -> Class['nodejs']
    }
[root@centos-7-x64 tmp]# rpm -e nodejs    
[root@centos-7-x64 tmp]# rm /etc/yum.repos.d/nodesource*
rm: remove regular file ‘/etc/yum.repos.d/nodesource.repo’? y
rm: remove regular file ‘/etc/yum.repos.d/nodesource-source.repo’? y
[root@centos-7-x64 tmp]# puppet apply /tmp/apply_manifest_test.pp 
Warning: /etc/puppetlabs/puppet/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5
   (in /etc/puppetlabs/puppet/hiera.yaml)
Notice: Compiled catalog for centos-7-x64.axsops.net in environment production in 0.32 seconds
Notice: /Stage[main]/Epel/File[/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7]/ensure: defined content as '{md5}58fa8ae27c89f37b08429f04fd4a88cc'
Notice: /Stage[main]/Epel/Epel::Rpm_gpg_key[EPEL-7]/Exec[import-EPEL-7]/returns: executed successfully
Notice: /Stage[main]/Epel/Yumrepo[epel-testing]/ensure: created
Notice: /Stage[main]/Epel/Yumrepo[epel-testing-debuginfo]/ensure: created
Notice: /Stage[main]/Epel/Yumrepo[epel-testing-source]/ensure: created
Notice: /Stage[main]/Epel/Yumrepo[epel]/ensure: created
Notice: /Stage[main]/Epel/Yumrepo[epel-debuginfo]/ensure: created
Notice: /Stage[main]/Epel/Yumrepo[epel-source]/ensure: created
Error: Execution of '/bin/yum -d 0 -e 0 -y install nodejs' returned 1: Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
           Requires: libhttp_parser.so.2()(64bit)
Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
           Requires: http-parser >= 2.7.0
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Error: /Stage[main]/Nodejs::Install/Package[nodejs]/ensure: change from purged to present failed: Execution of '/bin/yum -d 0 -e 0 -y install nodejs' returned 1: Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
           Requires: libhttp_parser.so.2()(64bit)
Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
           Requires: http-parser >= 2.7.0
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Notice: /Stage[main]/Nodejs/Anchor[::nodejs::end]: Dependency Package[nodejs] has failures: true
Warning: /Stage[main]/Nodejs/Anchor[::nodejs::end]: Skipping because of failed dependencies
Notice: Applied catalog in 21.44 seconds

@ekohl
Copy link
Member

ekohl commented Sep 6, 2017

This is broken because http-parser was pulled in RHEL 7.4 so it was removed from EPEL. Until CentOS 7.4 is out this will remain broken.

@wyardley
Copy link
Contributor Author

wyardley commented Sep 6, 2017

Yeah, just noticed this: https://bugzilla.redhat.com/show_bug.cgi?id=1481008

I will try to add a test for this anyway

@wyardley
Copy link
Contributor Author

wyardley commented Sep 7, 2017

not a bug, but still trying to add some tests in #308

@wyardley wyardley closed this as completed Sep 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants