Bug 1428699

Summary: Please load the glance metadefs to the DB around db_sync time
Product: Red Hat OpenStack Reporter: Attila Fazekas <afazekas>
Component: puppet-glanceAssignee: Christian Schwede (cschwede) <cschwede>
Status: CLOSED ERRATA QA Contact: Avi Avraham <aavraham>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 11.0 (Ocata)CC: aavraham, acanan, aschultz, cschwede, jjoyce, jschluet, scohen, slinaber, tvignaud
Target Milestone: betaKeywords: AutomationBlocker, Triaged
Target Release: 11.0 (Ocata)Flags: scohen: needinfo+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-glance-10.3.0-2.el7ost Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-17 20:04:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Attila Fazekas 2017-03-03 08:09:41 UTC
The metedata definitions are missing from the database.
It can be loaded by:
glance-manage --config-file /etc/glance/glance-api.conf db_load_metadefs

Comment 2 Cyril Roelandt 2017-03-17 17:03:36 UTC
@Avi: Can you confirm you have to do this manually when installing Glance with triple-o?

Comment 3 Christian Schwede (cschwede) 2017-03-20 11:10:31 UTC
These Tempest tests didn't exist in the Newton release, and have been merged in December 2016. Therefore this pops up now, and tests fail in Ocata because "glance-manage db_load_metadefs" is not executed.

We need to add this to puppet-glance therefore.

I'm working on a patch for puppet-glance right now.

Comment 4 Christian Schwede (cschwede) 2017-03-20 13:06:07 UTC
Proposed upstream patch to fix this: https://review.openstack.org/447480

Comment 5 Christian Schwede (cschwede) 2017-03-20 13:06:45 UTC
Upstream bug: https://bugs.launchpad.net/tripleo/+bug/1664995

Comment 6 Christian Schwede (cschwede) 2017-03-21 07:29:15 UTC
Patch merged on master and stable/ocata -> POST.

Comment 10 Avi Avraham 2017-04-20 13:10:23 UTC
# rpm -q puppet-glance
puppet-glance-10.3.0-2.el7ost.noarch


Test that data was upload to DB
[stack@undercloud-0 ~]$ glance md-namespace-list
+------------------------------------------+
| namespace                                |
+------------------------------------------+
| OS::Cinder::Volumetype                   |
| OS::Software::WebServers                 |
| OS::Software::Runtimes                   |
| OS::Software::DBMS                       |
| OS::OperatingSystem                      |
| OS::Glance::Signatures                   |
| OS::Glance::CommonImageProperties        |
| OS::Compute::XenAPI                      |
| OS::Compute::Watchdog                    |
| OS::Compute::VMware                      |
| OS::Compute::VMwareQuotaFlavor           |
| OS::Compute::VMwareFlavor                |
| OS::Compute::VirtCPUTopology             |
| OS::Compute::Trust                       |
| OS::Compute::RandomNumberGenerator       |
| OS::Compute::Quota                       |
| OS::Compute::Libvirt                     |
| OS::Compute::LibvirtImage                |
| OS::Compute::InstanceData                |
| OS::Compute::Hypervisor                  |
| OS::Compute::HostCapabilities            |
| OS::Compute::GuestShutdownBehavior       |
| OS::Compute::GuestMemoryBacking          |
| OS::Compute::CPUPinning                  |
| OS::Compute::AggregateNumInstancesFilter |
| OS::Compute::AggregateIoOpsFilter        |
| OS::Compute::AggregateDiskFilter         |
| CIM::VirtualSystemSettingData            |
| CIM::StorageAllocationSettingData        |
| CIM::ResourceAllocationSettingData       |
| CIM::ProcessorAllocationSettingData      |
+------------------------------------------+

Comment 11 errata-xmlrpc 2017-05-17 20:04:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:1245