puppet apply failed - could not find internal_int

Bug #1417661 reported by Mykhaylo Slobodyan on 2015-02-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
High
Fuel Library (Deprecated)

Bug Description

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "6.1"
  api: "1.0"
  build_number: "95"
  build_id: "2015-02-03_10-23-18"
  nailgun_sha: "3a608fcea55b2532b024b53078d097232144570d"
  python-fuelclient_sha: "2ea7b3e91c1d2ff85110bf5abb161a6f4e537358"
  astute_sha: "ed5270bf9c6c1234797e00bd7d4dd3213253a413"
  fuellib_sha: "f2b9d6a4ea47542dd85b5d1e2680451d8ebc5108"
  ostf_sha: "c9100263140008abfcc2704732e98fbdfd644068"

Steps to reproduce:
- install master node from 6.1-95 iso
- add 4 slaves
- create env via WUI: nova-legacy, defaults.
- fuel --env 1 node set --node 1,2,3 --role controller
- fuel --env 1 node set --node 4 --role compute
- fuel --env 1 node --provision --node 1,2,3,4
- fuel --env 1 deployment --default
- ssh to node-1 which is controller, run:
  puppet apply /etc/puppet/modules/osnailyfacter/modular/controller.pp --debug

Actual result:
Notice: Scope(Class[main]): MODULAR: controller.pp
Debug: hiera(): Hiera YAML backend starting
Debug: hiera(): Looking up internal_int in YAML backend
Debug: hiera(): Looking for data source override/node/node-1.test.domain.local
Debug: hiera(): Cannot find datafile /etc/hiera/override/node/node-1.test.domain.local.yaml, skipping
Debug: hiera(): Looking for data source override/common
Debug: hiera(): Cannot find datafile /etc/hiera/override/common.yaml, skipping
Debug: hiera(): Looking for data source globals
Debug: hiera(): Cannot find datafile /etc/hiera/globals.yaml, skipping
Debug: hiera(): Looking for data source astute
Error: Could not find data item internal_int in any Hiera data file and no default supplied at /etc/puppet/modules/osnailyfacter/modular/controller.pp:7 on node node-1.test.domain.local
Error: Could not find data item internal_int in any Hiera data file and no default supplied at /etc/puppet/modules/osnailyfacter/modular/controller.pp:7 on node node-1.test.domain.local

Expected result: manifest should apply.

Possible workaround:
When I try to change affected line
$internal_int = hiera('internal_int')
to look like
$internal_int = hiera('internal_int', undef)
I'm getting:
Error: Could not find data item internal_address in any Hiera data file and no default supplied at /etc/puppet/modules/osnailyfacter/modular/controller.pp:11 on node node-1.test.domain.local
Applying hiera.pp produces no errors.

description: updated
description: updated
description: updated
Ryan Moe (rmoe) on 2015-02-03
Changed in fuel:
status: New → Confirmed
assignee: nobody → Fuel Library Team (fuel-library)
importance: Undecided → High
Daniel Shafer (dshafer) wrote :

Confirmed bug using iso 95

Attached fuel snapshot.

Ryan Moe (rmoe) wrote :

This looks closely related to:: https://bugs.launchpad.net/fuel/+bug/1417579. That bug has the same error but when running a different role.

Dmitry Ilyin (idv1985) wrote :

Cannot find datafile /etc/hiera/globals.yaml

Wait, guyz, did you run hiera first and globals then before running anything else?

Aleksandr Didenko (adidenko) wrote :

It's duplicate of 1417579 ISO #95 does not have fix for it yet.
According to astute.yaml in the snapshot first task is:

- priority: 100
  type: puppet
  uids:
  - '1'
  parameters:
    puppet_modules: "/etc/puppet/modules"
    puppet_manifest: "/etc/puppet/modules/osnailyfacter/modular/ceph-osd.pp"
    timeout: 3600
    cwd: "/"

It's due to wrong task graph. So I'm marking this as duplicate of 1417579.

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

Other bug subscribers