Duplicate declaration: Package[build-essential]

Asked by xugangsh on 2016-05-23

I followed below doc url to deploy one single openstack ci node.

http://docs.openstack.org/infra/openstackci/third_party_ci.html

But when run puppet apply --verbose /etc/puppet/manifest/site.pp, it output below error

Error: Duplicate declaration: Package[build-essential] is already declared in file /etc/puppet/modules/zuul/manifests/init.pp:75; cannot redeclare at /etc/puppet/modules/nodepool/manifests/init.pp:69 on node vagrant-ubuntu-trusty-64.example.com
Error: Duplicate declaration: Package[build-essential] is already declared in file /etc/puppet/modules/zuul/manifests/init.pp:75; cannot redeclare at /etc/puppet/modules/nodepool/manifests/init.pp:69 on node vagrant-ubuntu-trusty-64.example.com

Then terminated runnning

I checked /etc/puppet/modules/zuul/manifests/init.pp and /etc/puppet/modules/nodepool/manifests/init.pp

Seemed recently community pused new commit on puppet-zuul

https://github.com/openstack-infra/puppet-zuul/commit/c21307271328b5e49962b7fbb4dee5393fe81d67

which commit leadt to puppet error

Seemed puppet-nodepool has declared build-essentials too

https://github.com/openstack-infra/puppet-nodepool/blob/master/manifests/init.pp#58

Could anyone tell me how to fix?

Thanks in advanced!

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Core Infrastructure Edit question
Assignee:
No assignee Edit question
Last query:
2016-05-23
Last reply:
2016-06-07
KongWei (13851894043-p) said : #1

I remove line 59 of /etc/puppet/modules/nodepool/manifests/init.pp to fix it.

  $packages = [
    'build-essential', # I remove this line
    'libffi-dev',
    'libssl-dev',
    'libgmp-dev', # transitive dep of paramiko
    # xml2 and xslt are needed to build python lxml.
    'libxml2-dev',
    'libxslt-dev',
  ]

Can you help with this problem?

Provide an answer of your own, or ask xugangsh for more information if necessary.

To post a message you must log in.