Ask Your Question
0

Function Call, Could not find class ::tripleo::profile::base::tuned

asked 2019-07-16 06:54:37 -0500

ClaudiuPID gravatar image

Hi, I'm trying to deploy a test overcloud on 2 controller nodes with HA and one compute node. I am facing the bellow error, any ideas how to fix it?

 fatal: [test-controller01]: FAILED! => {
    "failed_when_result": true,
    "outputs.stdout_lines | default([]) | union(outputs.stderr_lines | default([]))": [
        "puppet-user: Warning: Support for ruby version 2.0.0 is deprecated and will be removed in a future release. See https://puppet.com/docs/puppet/latest/system_requirements.html for a list of supported ruby versions.",
        "puppet-user:    (location: /usr/share/ruby/vendor_ruby/puppet.rb:130:in `<module:Puppet>')",
        "puppet-user: Warning: The function 'hiera' is deprecated in favor of using 'lookup'. See https://puppet.com/docs/puppet/5.5/deprecated_language.html\\n   (file & line not available)",
        "puppet-user: Warning: /etc/puppet/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5",
        "puppet-user:    (file: /etc/puppet/hiera.yaml)",
        "puppet-user: Warning: Undefined variable '::deploy_config_name'; \\n   (file & line not available)",
        "puppet-user: Warning: ModuleLoader: module 'tripleo' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\\n   (file & line not available)",
        "puppet-user: Warning: Unknown variable: '::deployment_type'. (file: /etc/puppet/modules/tripleo/manifests/profile/base/database/mysql/client.pp, line: 89, column: 31)",
        "puppet-user: Warning: ModuleLoader: module 'pacemaker' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\\n   (file & line not available)",
        "puppet-user: error: Could not connect to cluster (is it running?)",
        "puppet-user: Warning: ModuleLoader: module 'concat' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\\n   (file & line not available)",
        "puppet-user: Warning: tag is a metaparam; this value will inherit to all contained resources in the tripleo::firewall::rule definition",
        "puppet-user: Notice: Scope(Class[Tripleo::Firewall::Post]): At this stage, all network traffic is blocked.",
        "puppet-user: Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::tripleo::profile::base::tuned for test-controller01.localdomain (file: /var/lib/tripleo-config/puppet_step_config.pp, line: 46, column: 1) on node test-controller01.localdomain"
    ]
}
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-07-22 15:31:31 -0500

raf@les gravatar image

For some reason /usr/share/openstack-puppet/modules/tripleo/manifests/profile/base/tuned.pp was not copied from undercloud to overcloud nodes during deploy.

Workaround:

  1. Copy /usr/share/openstack-puppet/modules/tripleo/manifests/profile/base/tuned.pp to /etc/puppet/modules/tripleo/manifests/profile/base/tuned.pp on each overcloud node with OS::TripleO::Services::Tuned service in role definition.
  2. Re-run openstack overcloud deploy with the same environment/roles/network files included
edit flag offensive delete link more

Comments

No matter how many times I run the deployment using various tutorials or the plain documentation I get to the same error. And yes your workaround works fine, this might be something from my config files since no one else reported the error.

ClaudiuPID gravatar imageClaudiuPID ( 2019-08-02 07:04:22 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2019-07-16 06:54:37 -0500

Seen: 96 times

Last updated: Jul 22