Bug 1348147

Summary: Add python-cradox to overcloud image
Product: Red Hat OpenStack Reporter: Yurii Prokulevych <yprokule>
Component: openstack-tripleo-puppet-elementsAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED ERRATA QA Contact: Yurii Prokulevych <yprokule>
Severity: high Docs Contact:
Priority: unspecified    
Version: 9.0 (Mitaka)CC: fbaudin, hbrock, jason.dobies, jjoyce, jslagle, mburns, mkrcmari, pkilambi, rhel-osp-director-maint, tvignaud
Target Milestone: gaKeywords: Triaged
Target Release: 9.0 (Mitaka)   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: rhosp-director-images-9.0-20160712.1.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-11 11:32:51 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:
Bug Depends On:    
Bug Blocks: 1342571    

Description Yurii Prokulevych 2016-06-20 09:52:03 UTC
Description of problem:
To run gnocchi with ceph backend new package python-cradox is required.
According to rhbz 1343144 it's already added to repos. But it's not present in the overcloud image causing gnocchi to fail at start.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Install overcloud:
    openstack overcloud deploy --templates \
    --control-scale 3 \
    --compute-scale 2 \
    --ceph-storage-scale 1 \
    -e gnocchi_ceph.yaml --libvirt-type qemu \
    --ntp-server clock.redhat.com

2. $ cat gnocchi_ceph.yaml 
    GnocchiBackend: 'rbd'

Additional info:
Manually customizing image with next commands helped to have gnocchi up and running:

virt-customize -a /var/lib/libvirt/images/overcloud-full.qcow2 --selinux-relabel --run-command 'yum localinstall -y http://rhos-release.virt.bos.redhat.com/repos/rhos-release/rhos-release-latest.noarch.rpm'

virt-customize -a /var/lib/libvirt/images/overcloud-full.qcow2 --selinux-relabel --run-command 'rhos-release -P 9-director'

virt-customize -a /var/lib/libvirt/images/overcloud-full.qcow2 --selinux-relabel --run-command 'yum install -y python-cradox'


Comment 5 Marian Krcmarik 2016-07-12 11:11:11 UTC
Deployed 2016-07-11.1 puddle with: rhosp-director-images-9.0-20160711.1.el7ost.noarch and openstack-tripleo-puppet-elements-2.0.0-3.el7ost.noarch and python-cradox is not installed on overcloud controller nodes this gnocchi resource fail to start.

Comment 14 Yurii Prokulevych 2016-07-19 16:38:05 UTC
Verified with openstack-tripleo-heat-templates-2.0.0-15.el7ost.noarch

Overcloud deployed with command:
openstack  overcloud deploy --libvirt-type qemu --ntp-server clock.redhat.com --templates --control-scale 3 --compute-scale 2 --ceph-storage-scale 1

Than updated Gnocchi to use ceph backend:
openstack  overcloud deploy --libvirt-type qemu --ntp-server clock.redhat.com --templates --control-scale 3 --compute-scale 2 --ceph-storage-scale 1 -e gnocchi_ceph.yam

cat gnocchi_ceph.yaml
    GnocchiBackend: 'rbd'

Gnocchi API's CRUD test succeeded.

Comment 16 errata-xmlrpc 2016-08-11 11:32:51 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.