Activity log for bug #1525800

Date Who What changed Old value New value Message
2015-12-14 07:32:54 Sergey Yezhkov bug added bug
2016-02-02 03:55:30 Jake Kitchener bug added subscriber Jake Kitchener
2016-03-02 03:06:51 John Belamaric heat: status New Confirmed
2016-03-02 03:06:58 John Belamaric heat: assignee John Belamaric (jbelamaric)
2016-04-05 23:55:47 OpenStack Infra tags ceilometer heat ceilometer heat in-stable-liberty
2016-04-19 11:48:32 Edward Hope-Morley heat: status Confirmed Fix Released
2016-04-19 11:56:59 Edward Hope-Morley description I use OpenStack Liberty deployed by instruction for CentOS7 from docs.openstack.org I'm trying to create OS::Ceilometer::Alarm resource In heat-engine.log i have error 2015-12-14 12:59:00.696 6672 ERROR heat.engine.resource BadRequest: Expecting to find domain in project - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-3d4ab42b-213b-4141-bd28-f8dbb2b79e96) environment [root@controller ~]# yum list installed | grep heat openstack-heat-api.noarch 1:5.0.0-1.el7 @centos-openstack-liberty openstack-heat-api-cfn.noarch 1:5.0.0-1.el7 @centos-openstack-liberty openstack-heat-common.noarch 1:5.0.0-1.el7 @centos-openstack-liberty openstack-heat-engine.noarch 1:5.0.0-1.el7 @centos-openstack-liberty python-heatclient.noarch 0.8.0-1.el7 @centos-openstack-liberty [root@controller ~]# yum list installed | grep ceilometer openstack-ceilometer-alarm.noarch openstack-ceilometer-api.noarch 1:5.0.0-1.el7 @centos-openstack-liberty python-ceilometer.noarch 1:5.0.0-1.el7 @centos-openstack-liberty python-ceilometerclient.noarch 1.5.0-1.el7 @centos-openstack-liberty my suggestion, bug in heat/engine/clients/os/ceilometer.py class CeilometerClientPlugin(client_plugin.ClientPlugin): ... def _create(self): ... args = { 'auth_url': con.auth_url, 'service_type': self.METERING, 'project_name': con.tenant, <--- HERE!!! 'token': lambda: self.auth_token, 'endpoint_type': endpoint_type, 'os_endpoint': endpoint, 'cacert': self._get_client_option('ceilometer', 'ca_file'), 'cert_file': self._get_client_option('ceilometer', 'cert_file'), 'key_file': self._get_client_option('ceilometer', 'key_file'), 'insecure': self._get_client_option('ceilometer', 'insecure') } if use 'project_id': con.tenant_id, instead 'project_name': con.tenant, it works fine [Impact] * Creating a stack with e.g. OS::Ceilometer::Alarm is failing because Ceilometer client is being passed incorrect parameters. This patch fixes heat ceilometer client. [Test Case] * deploy Openstack Liberty * create a stack using a HOT template containing e.g. http://paste.ubuntu.com/15928508/ * check that stack goes to CREATE_COMPLETE status [Regression Potential] * None I use OpenStack Liberty deployed by instruction for CentOS7 from docs.openstack.org I'm trying to create OS::Ceilometer::Alarm resource In heat-engine.log i have error 2015-12-14 12:59:00.696 6672 ERROR heat.engine.resource BadRequest: Expecting to find domain in project - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-3d4ab42b-213b-4141-bd28-f8dbb2b79e96) environment [root@controller ~]# yum list installed | grep heat openstack-heat-api.noarch 1:5.0.0-1.el7 @centos-openstack-liberty openstack-heat-api-cfn.noarch 1:5.0.0-1.el7 @centos-openstack-liberty openstack-heat-common.noarch 1:5.0.0-1.el7 @centos-openstack-liberty openstack-heat-engine.noarch 1:5.0.0-1.el7 @centos-openstack-liberty python-heatclient.noarch 0.8.0-1.el7 @centos-openstack-liberty [root@controller ~]# yum list installed | grep ceilometer openstack-ceilometer-alarm.noarch openstack-ceilometer-api.noarch 1:5.0.0-1.el7 @centos-openstack-liberty python-ceilometer.noarch 1:5.0.0-1.el7 @centos-openstack-liberty python-ceilometerclient.noarch 1.5.0-1.el7 @centos-openstack-liberty my suggestion, bug in heat/engine/clients/os/ceilometer.py class CeilometerClientPlugin(client_plugin.ClientPlugin):     ...     def _create(self):     ...    args = {             'auth_url': con.auth_url,             'service_type': self.METERING,             'project_name': con.tenant, <--- HERE!!!             'token': lambda: self.auth_token,             'endpoint_type': endpoint_type,             'os_endpoint': endpoint,             'cacert': self._get_client_option('ceilometer', 'ca_file'),             'cert_file': self._get_client_option('ceilometer', 'cert_file'),             'key_file': self._get_client_option('ceilometer', 'key_file'),             'insecure': self._get_client_option('ceilometer', 'insecure')         } if use        'project_id': con.tenant_id, instead       'project_name': con.tenant, it works fine
2016-04-19 11:57:06 Edward Hope-Morley tags ceilometer heat in-stable-liberty ceilometer heat in-stable-liberty sts-sru
2016-04-19 11:57:16 Edward Hope-Morley summary ceilometer client error when create Alarm [SRU] ceilometer client error when create Alarm
2016-04-19 12:41:58 James Page bug task added ceilometer (Ubuntu)
2016-04-19 12:42:16 James Page bug task added cloud-archive
2016-04-19 12:42:27 James Page nominated for series cloud-archive/liberty
2016-04-19 12:42:27 James Page bug task added cloud-archive/liberty
2016-04-19 12:42:36 James Page cloud-archive: status New Invalid
2016-04-19 12:43:09 Launchpad Janitor heat (Ubuntu): status New Confirmed
2016-04-19 12:43:09 James Page affects ceilometer (Ubuntu) heat (Ubuntu)
2016-04-19 12:43:22 James Page nominated for series Ubuntu Wily
2016-04-19 12:43:22 James Page bug task added heat (Ubuntu Wily)
2016-04-19 12:43:30 James Page heat (Ubuntu): status New Invalid
2016-04-19 13:57:22 Edward Hope-Morley heat (Ubuntu Wily): assignee Edward Hope-Morley (hopem)
2016-04-19 13:57:28 Edward Hope-Morley heat (Ubuntu Wily): status New In Progress
2016-04-19 14:03:52 Edward Hope-Morley attachment added lp1525800-wily.debdiff https://bugs.launchpad.net/heat/+bug/1525800/+attachment/4639865/+files/lp1525800-wily.debdiff
2016-04-19 14:04:20 Edward Hope-Morley bug added subscriber Ubuntu Sponsors Team
2016-04-20 04:13:08 Mathew Hodson heat (Ubuntu): importance Undecided Medium
2016-04-20 04:13:10 Mathew Hodson heat (Ubuntu Wily): importance Undecided Medium
2016-04-20 12:10:51 Corey Bryant heat (Ubuntu Wily): status In Progress Fix Committed
2016-04-21 20:41:31 Brian Murray bug added subscriber Ubuntu Stable Release Updates Team
2016-04-21 20:41:33 Brian Murray bug added subscriber SRU Verification
2016-04-21 20:41:42 Brian Murray tags ceilometer heat in-stable-liberty sts-sru ceilometer heat in-stable-liberty sts-sru verification-needed
2016-04-21 20:43:07 Brian Murray removed subscriber Ubuntu Sponsors Team
2016-04-22 17:06:14 Corey Bryant tags ceilometer heat in-stable-liberty sts-sru verification-needed ceilometer heat in-stable-liberty sts-sru verification-done
2016-05-04 16:51:55 Launchpad Janitor heat (Ubuntu Wily): status Fix Committed Fix Released
2016-05-04 16:52:01 Chris J Arges removed subscriber Ubuntu Stable Release Updates Team
2016-05-05 13:24:10 James Page cloud-archive/liberty: status New Fix Committed
2016-05-05 13:24:12 James Page tags ceilometer heat in-stable-liberty sts-sru verification-done ceilometer heat in-stable-liberty sts-sru verification-done verification-liberty-needed
2016-05-06 17:21:27 Igor Meneguitte Ávila attachment added heat-engine.log https://bugs.launchpad.net/cloud-archive/liberty/+bug/1525800/+attachment/4657396/+files/heat-engine.log
2016-05-06 19:38:01 Igor Meneguitte Ávila attachment added log-stack-autoscaling.txt https://bugs.launchpad.net/cloud-archive/liberty/+bug/1525800/+attachment/4657487/+files/log-stack-autoscaling.txt
2016-05-10 10:53:17 Edward Hope-Morley tags ceilometer heat in-stable-liberty sts-sru verification-done verification-liberty-needed ceilometer heat in-stable-liberty sts-sru verification-done verification-liberty-done
2016-05-10 11:03:38 James Page cloud-archive/liberty: status Fix Committed Fix Released