Could not find declared class ::remote::db

Bug #1689255 reported by Hanxi Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Packstack
Fix Released
Medium
Javier Peña

Bug Description

Hi folks,

I used rdo and packstack to deploy three controller nodes.
At the step of first node deployment, I set:
     CONFIG_MARIADB_INSTALL=n

When I ran
    packstack --answer-file=ocata-answer-file

the error occured:

ERROR : Error appeared during Puppet run: 192.168.2.171_controller.pp
Error: Evaluation Error: Error while evaluating a Resource Statement, Could not find declared class ::remote::db at /var/tmp/packstack/b560f3696df94015aeb04b3cb2e36ec5/modules/packstack/manifests/mariadb.pp:66:5 on node vm001

environment:
CentOS-7.3-1611-x86_64
OpenStack:Ocata
Ceph:Jewel

Hanxi Liu (hanxi-liu)
description: updated
Revision history for this message
Javier Peña (jpena-c) wrote :

Thanks for the report. It looks like we need a couple fixes in the puppet-remote module.

I have proposed https://github.com/paramite/puppet-remote/pull/5 with the required changes, could you try them in your environment? The files to change should be located at /usr/share/openstack-puppet/modules/remote in your setup.

Changed in packstack:
assignee: nobody → Javier Peña (jpena-c)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Hanxi Liu (hanxi-liu) wrote :

It's weird that the file under /usr/share/openstack-puppet/modules/remote/manifests is mysql.pp. I tried to rename mysql.pp to db.pp and use (versioncmp($::operatingsystemmajrelease, '7') <= 0) for comparison. Unfortunately, this
occurred: http://paste.openstack.org/show/609186/. So I check the database in mysql. There are databases such as nova, keystone but no tables. I wonder if there are some configurations i should pay more attention.

Revision history for this message
Hanxi Liu (hanxi-liu) wrote :

this is my ocata-answer-file: http://paste.openstack.org/show/609193/

Revision history for this message
Hanxi Liu (hanxi-liu) wrote :

I have proposed https://github.com/paramite/puppet-remote/pull/6 to fix incorrect file.

Revision history for this message
Javier Peña (jpena-c) wrote :

That new error seems to be related to the Nova Cells v2 additions in Ocata. I'll have a look.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to packstack (master)

Fix proposed to branch: master
Review: https://review.openstack.org/463599

Revision history for this message
Javier Peña (jpena-c) wrote :

I have had a successful installation combining both https://review.openstack.org/463599 and https://github.com/paramite/puppet-remote/pull/5

Revision history for this message
Hanxi Liu (hanxi-liu) wrote :

Thnaks Javier, our system works well after these modifications.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to packstack (master)

Reviewed: https://review.openstack.org/463599
Committed: https://git.openstack.org/cgit/openstack/packstack/commit/?id=cecc30af5d039890677e82ba93ae692c7f9f50f2
Submitter: Jenkins
Branch: master

commit cecc30af5d039890677e82ba93ae692c7f9f50f2
Author: Javier Pena <email address hidden>
Date: Tue May 9 19:06:08 2017 +0200

    Fix database configuration for remote MariaDB setups

    This seems to have been broken for a long time, when
    CONFIG_MARIADB_INSTALL is set to 'n' we where not setting the
    CONFIG_MARIADB_HOST_URL correctly.

    Change-Id: I5ad131ec76eb3dad3adcba78ccee60524efc3bf3
    Partial-Bug: #1689255

Alan Pevec (apevec)
Changed in packstack:
status: In Progress → Fix Released
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.