Ask Your Question
0

Packstack Ocata allinone error: "Could not find declared class ::nova::db::mysql_placement"

asked 2017-03-05 21:40:11 -0600

Bernd Bausch gravatar image

updated 2017-03-06 21:09:58 -0600

Trying to create an Ocata Packstack setup, I follow the instructions at https://www.rdoproject.org/install/qu..., except that I run

sudo packstack -d --default-password=mypasswd --allinone

EDIT: The unchanged command sudo packstack --allinone yields the same result.

I get:

ERROR : Error appeared during Puppet run: 192.168.1.211_controller.pp
Error: Evaluation Error: Error while evaluating a Resource Statement, Could not find declared class ::nova::db::mysql_placement at /var/tmp/packstack/163f5f6b67d547b4a898a5741adfb2ee/modules/packstack/manifests/mariadb/services.pp:104:9 on node controller.home

Indeed, mariadb/services.pp contains

    class { '::nova::db::mysql_placement':
      password      => hiera('CONFIG_NOVA_DB_PW'),
      host          => '%',
      allowed_hosts => '%',
      charset       => 'utf8',
    }

So, it's using the placement service as required by Ocata, but it seems the service definition is missing somewhere. I know nothing about Puppet, so I am in the dark. Bug? User error? Any workaround?

Thanks much in advance.


EDIT2: I found a similar error https://ask.openstack.org/en/question.... If I correctly understand the method in the madness, the ::nova::db::mysql_placement class is declared in /usr/share/openstack-puppet/modules/packstack/manifests/mariadb/services.pp, like this:

class packstack::mariadb::services ()
{
(...snip...)

    if hiera('CONFIG_NOVA_INSTALL') == 'y' {
        class { '::nova::db::mysql':
          password      => hiera('CONFIG_NOVA_DB_PW'),
          host          => '%',
          allowed_hosts => '%',
          charset       => 'utf8',
        }
        class { '::nova::db::mysql_api':
          password      => hiera('CONFIG_NOVA_DB_PW'),
          host          => '%',
          allowed_hosts => '%',
          charset       => 'utf8',
        }
        class { '::nova::db::mysql_placement':
          password      => hiera('CONFIG_NOVA_DB_PW'),
          host          => '%',
          allowed_hosts => '%',
          charset       => 'utf8',
        }
}

and its definition should be in /usr/share/openstack-puppet/nova/manifests/db/. Now, ::nova::db::mysql and ::nova::db::mysql_api are defined in that directory, but ::nova::db::mysql_placement is not. I guess that this is the problem. A solution or a workaround would be welcome.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-03-06 21:20:41 -0600

Bernd Bausch gravatar image

updated 2017-03-06 21:31:26 -0600

I found that I had the Newton version of the puppet modules installed. Removing all traces of Newton solved the problem.

If anybody is interested why:

  • I set up a Centos server on a VM and installed some preliminary software, including centos-release-openstack-newton
  • cloned this server for a Packstack Newton installation. Which worked.
  • later, cloned this server for a Packstack Ocata installation. Which failed because the Newton puppet modules were installed.

Packstack is now diligently working on setting up the cloud.

edit flag offensive delete link more

Comments

So Packstack Ocata does NOT work as-is? Is this correct?

stackattack gravatar imagestackattack ( 2017-04-04 17:29:46 -0600 )edit

It works as is. However, if you install Packstack/Ocata on a server that contains Newton packages, it may not work. Lesson: Ensure you do a clean installation.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-09 02:31:28 -0600 )edit

Hi folks. No - I do only fresh installs of CentOS 7.x minimal. No older/other packages. I've never gotten this part of the install to actually complete. I've run through the doc step by step to no avail.

stackattack gravatar imagestackattack ( 2017-04-10 12:45:18 -0600 )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

1 follower

Stats

Asked: 2017-03-05 21:40:11 -0600

Seen: 446 times

Last updated: Mar 06