Giter VIP home page Giter VIP logo

puppetlabs-puppet_data_service's People

Contributors

binford2k avatar davidsandilands avatar mcka1n avatar reidmv avatar timidri avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ody mcka1n

puppetlabs-puppet_data_service's Issues

Issues on 2019.8.9

Describe the Bug

PDS-migrations fails to run and errors exit 2 on 2019.8.9

Notice: /Stage[main]/Puppet_data_service::Server/File[/etc/puppetlabs/pds/pds-server.yaml]/content: content changed '{md5}3f86759b0cb5871c4a018831388010ba' to '{md5}4a0422f4ea78b238b80ac6858cb42d76'
Info: /Stage[main]/Puppet_data_service::Server/File[/etc/puppetlabs/pds/pds-server.yaml]: Scheduling refresh of Service[pds-server]
Notice: /Stage[main]/Puppet_data_service::Server/Exec[pds-migrations]/returns: [output redacted]
Error: [command redacted] returned 2 instead of one of [0]
Error: /Stage[main]/Puppet_data_service::Server/Exec[pds-migrations]/returns: change from 'notrun' to ['0'] failed: [command redacted] returned 2 instead of one of [0] (corrective)
Notice: /Stage[main]/Puppet_data_service::Server/Service[pds-server]: Dependency Exec[pds-migrations] has failures: true
Warning: /Stage[main]/Puppet_data_service::Server/Service[pds-server]: Skipping because of failed dependencies

Expected Behavior

pds-migrations should run correctly

Steps to Reproduce

Run the install on a 2019.8.9 server

Environment

PE 2019.8.9

Additional Context

Disccused with Edwin who verified this is an issue he experienced

PDS URI's hierarchy is not honoured

Describe the Bug

PDS URI's hierarchy in hiera.yaml is not honoured.

Expected Behavior

As we have below hierarchy followed... Expectation is first it needs to find the Key values from nodes/%{trusted.certname} level if not found go to os/%{operatingsystem} and then to common.

hierarchy:

  • name: "Puppet Data Service"
    data_hash: puppet_data_service::data_hash
    uris:
    • "nodes/%{trusted.certname}"
    • "os/%{operatingsystem}"
    • "common"
      options:
      on_config_absent: "continue"

Steps to Reproduce

Steps to reproduce the behavior:

  1. Lets say Create a <Key/Value> at common level (i.e., pds-cli hiera upsert common abc::package_version -v '"10.0.0.1"'
  2. When you do puppet lookup abc::package_version --explain it is trying to lookup from all the levels but unable to find the key.
  3. If you give at first level say nodes/%{trusted.certname} or keeping common level at the top it works fine.

Environment

  • PDS Module Version - 0.1.0
  • Platform [e.g. Ubuntu 18.04]

Additional Context

As i see there is an issue with data_hash.rb file under ../modules/puppet_data_service/lib/puppet/functions/puppet_data_service/ at line number 63 we are trying to return the parsed_options which is not allowing to go to next level and accepted a top level declared only... Is this intentional?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.