Duplicate declaration: Package[build-essential]

Bug #1584649 reported by xugangsh
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
New
Undecided
Unassigned

Bug Description

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!

Revision history for this message
KongWei (13851894043-p) wrote :

I remove line 59 of the /etc/puppet/modules/nodepool/manifests/init.pp to fix this bug.
  $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',
  ]

Revision history for this message
xugangsh (xugangsh) wrote :

Sorry to answer later.
Currently I focused on another project

I will not test above again.

I did verify again and will verify soon.

Thanks!

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

Other bug subscribers

Related questions

Remote bug watches

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