Duplicate declaration: Exec[exec-setfacl-ceph-openstack-glance] is already declared at (file: /etc/puppet/modules/tripleo/manifests/profile/base/glance/backend/rbd.pp

Bug #2004595 reported by swogat pradhan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Incomplete
Undecided
Manojkatari

Bug Description

Hi,
I am trying to deploy DCN and when running the edge site deployment i am facing the below error:
2023-02-03 03:47:28.867213 | | WARNING | ERROR: Can't run container container-puppet-glance_api
stderr: + /usr/bin/puppet apply --summarize --detailed-exitcodes --color=false --modulepath=/etc/puppet/modules:/usr/share/openstack-puppet/modules --tags '"file,file_line,concat,augeas,cron,glance_api_config,glance_api_paste_ini,glance_swift_config,glance_cache_config,glance_image_import_config"' /etc/config.pp
+ logger -s -t puppet-user
<13>Feb 2 19:47:05 puppet-user: Warning: Facter: Operation not permitted @ io_fread - /sys/module/kdb/parameters/enable_nmi
<13>Feb 2 19:47:05 puppet-user: Warning: /etc/puppet/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5
<13>Feb 2 19:47:05 puppet-user: (file: /etc/puppet/hiera.yaml)
<13>Feb 2 19:47:05 puppet-user: Warning: Undefined variable '::deploy_config_name';
<13>Feb 2 19:47:05 puppet-user: (file & line not available)
<13>Feb 2 19:47:05 puppet-user: Warning: The function 'hiera' is deprecated in favor of using 'lookup'. See https://puppet.com/docs/puppet/7.8/deprecated_language.html
<13>Feb 2 19:47:05 puppet-user: (file & line not available)
<13>Feb 2 19:47:05 puppet-user: Warning: Scope(Class[Glance::Api]): The show_multiple_locations parameter is deprecated, and will be removed in a future release
<13>Feb 2 19:47:05 puppet-user: Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Exec[exec-setfacl-ceph-openstack-glance] is already declared at (file: /etc/puppet/modules/tripleo/manifests/profile/base/glance/backend/rbd.pp, line: 100); cannot redeclare (file: /etc/puppet/modules/tripleo/manifests/profile/base/glance/backend/rbd.pp, line: 100) (file: /etc/puppet/modules/tripleo/manifests/profile/base/glance/backend/rbd.pp, line: 100, column: 7) on node dcn01-hci-2.bdxworld.com
+ rc=1
+ '[' false = false ']'
+ set +x
2023-02-03 03:47:28.868941 | 48d539a1-1679-a5ae-b605-0000000030e1 | FATAL | Manage Puppet containers (generate config) for step 1 | dcn01-hci-2 | error={
    "changed": false,
    "invocation": {
        "module_args": {
            "concurrency": 6,
            "config_dir": "/var/lib/tripleo-config/container-puppet-config/step_1",
            "config_id": "tripleo_puppet_step1",
            "config_overrides": {},
            "config_patterns": "container-puppet-*.json",
            "debug": false,
            "log_base_path": "/var/log/containers/stdouts"
        }
    },
    "msg": "Failed containers: container-puppet-glance_api"
}
2023-02-03 03:47:28.870551 | 48d539a1-1679-a5ae-b605-0000000030e1 | TIMING | Manage Puppet containers (generate config) for step 1 | dcn01-hci-2 | 0:07:14.373951 | 25.39s
host: dcn01-hci-0, task: None
host: dcn01-hci-1, task: None
host: dcn01-hci-2, task: None

PLAY RECAP *********************************************************************
dcn01-hci-0 : ok=250 changed=58 unreachable=0 failed=1 skipped=127 rescued=0 ignored=1
dcn01-hci-1 : ok=239 changed=58 unreachable=0 failed=1 skipped=127 rescued=0 ignored=1
dcn01-hci-2 : ok=238 changed=58 unreachable=0 failed=1 skipped=127 rescued=0 ignored=1

Glance.yaml:

parameter_defaults:
    GlanceEnabledImportMethods: web-download,copy-image
    GlanceBackend: rbd
    GlanceStoreDescription: 'dcn01 rbd glance store'
    GlanceBackendID: dcn01
    GlanceMultistoreConfig:
      ceph:
        GlanceBackend: rbd
        GlanceStoreDescription: 'Default glance store backend.'
        CephClusterName: ceph

Revision history for this message
John Fulton (jfulton-org) wrote :

This should work as described in:

https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/features/distributed_multibackend_storage.html#override-glance-defaults-for-dcn0

This Duplicate declaration error:

<13>Feb 2 19:47:05 puppet-user: Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Exec[exec-setfacl-ceph-openstack-glance] is already declared at (file: /etc/puppet/modules/tripleo/manifests/profile/base/glance/backend/rbd.pp, line: 100); cannot redeclare (file: /etc/puppet/modules/tripleo/manifests/profile/base/glance/backend/rbd.pp, line: 100) (file: /etc/puppet/modules/tripleo/manifests/profile/base/glance/backend/rbd.pp, line: 100, column: 7) on node dcn01-hci-2.bdxworld.com

Makes me wonder if there's a conflict in the following in your glance.yaml:

    GlanceBackendID: dcn01 # primary
    GlanceMultistoreConfig:
      ceph: # secondary 1

Was there ever a time where the secondary and primary had the same name within the life of your deployment? If so they might not be cleaning.

Try redeploying the central site and naming it "central" and deploying the secondary site named dcn01.

Changed in glance:
status: New → Incomplete
Manojkatari (mkatari)
Changed in glance:
assignee: nobody → Manojkatari (mkatari)
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.