[Bug 1525800] Re: [SRU] ceilometer client error when create Alarm

Igor Meneguitte Ávila igoravila at gmail.com
Thu May 5 18:02:08 UTC 2016


Hi,

I'm having the same problem with ceilometer.

2016-05-04 11:55:20.420 18699 ERROR heat.engine.resource 
2016-05-04 11:55:21.465 18699 INFO heat.engine.service [-] Stack create failed, status FAILED
2016-05-04 11:55:21.510 18699 INFO heat.engine.stack [-] Stack CREATE FAILED (autoscalingv1): Resource CREATE failed: BadRequest: resources.cpu_alarm_low: 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-7825392d-8178-4166-9cd0-adfb33ae04e8)
2016-05-04 11:55:29.465 18704 INFO heat.engine.service [req-62c6336c-e75b-4418-9243-a941b9994e91 - -] Service 03b808ce-b97d-4ca5-8bc6-f314782bf641 is updated

I checked the versions and package 1: 5.0.1-0ubuntu2 (heat) must be
installed. I'm having trouble installing this package. I do not know to
create the .deb.

Can someone help me? I followed these steps
(https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-
dsc-file-in-linux-896928/), but I could not install. It appeared the
following message:

dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package heat
dpkg-buildpackage: source version 1:5.0.1-0ubuntu2
dpkg-buildpackage: source distribution wily
dpkg-buildpackage: source changed by Edward Hope-Morley <edward.hope-morley at canonical.com>
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build pacote
dpkg-source: info: using options from pacote/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/
 fakeroot debian/rules clean
dh clean --buildsystem=python_distutils  --with python2,systemd
   dh_testdir -O--buildsystem=python_distutils
   debian/rules override_dh_auto_clean
make[1]: Entering directory `/home/igoravila/pacote'
dh_auto_clean
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
python: can't open file 'setup.py': [Errno 2] No such file or directory
dh_auto_clean: python setup.py clean -a returned exit code 2
make[1]: *** [override_dh_auto_clean] Error 2
make[1]: Leaving directory `/home/igoravila/pacote'
make: *** [clean] Error 2
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
root at controller:/home/igoravila/pacote# make install
make: *** No rule to make target `install'.  Stop.
root at controller:/home/igoravila/pacote# make
make: *** No targets specified and no makefile found.  Stop.

Regards,

Igor

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1525800

Title:
  [SRU] ceilometer client error when create Alarm

Status in Ubuntu Cloud Archive:
  Invalid
Status in Ubuntu Cloud Archive liberty series:
  Fix Committed
Status in heat:
  Fix Released
Status in heat package in Ubuntu:
  Invalid
Status in heat source package in Wily:
  Fix Released

Bug description:
  [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 at 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 at 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

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1525800/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list