[Openstack-operators] [Ceilometer][Hardware] ERROR         ceilometer.hardware.pollsters.generic NoMatches: No         'ceilometer.hardware.inspectors' driver found

andres sanchez ramos andressanchezramos at hotmail.com
Tue Oct 31 23:55:56 UTC 2017


Hello Gordon,


In order to avoid previous erroneous configurations I started over the ceilometer implementation. I tried including modifying the pipeline file as proposed and now I am finding errors like this when I Try to make change similar to the one you proposed.


2017-10-31 23:45:35.707 14436 ERROR cotyledon [-] Unhandled exception
2017-10-31 23:45:35.707 14436 ERROR cotyledon Traceback (most recent call last):
2017-10-31 23:45:35.707 14436 ERROR cotyledon   File "/usr/lib/python2.7/dist-packages/cotyledon/__init__.py", line 62, in _exit_on_exception
2017-10-31 23:45:35.707 14436 ERROR cotyledon     yield
2017-10-31 23:45:35.707 14436 ERROR cotyledon   File "/usr/lib/python2.7/dist-packages/cotyledon/__init__.py", line 140, in _run
2017-10-31 23:45:35.707 14436 ERROR cotyledon     self.run()
2017-10-31 23:45:35.707 14436 ERROR cotyledon   File "/usr/lib/python2.7/dist-packages/ceilometer/agent/manager.py", line 417, in run
2017-10-31 23:45:35.707 14436 ERROR cotyledon     self.polling_manager = pipeline.setup_polling()
2017-10-31 23:45:35.707 14436 ERROR cotyledon   File "/usr/lib/python2.7/dist-packages/ceilometer/pipeline.py", line 855, in setup_polling
2017-10-31 23:45:35.707 14436 ERROR cotyledon     return PollingManager(cfg_file)
2017-10-31 23:45:35.707 14436 ERROR cotyledon   File "/usr/lib/python2.7/dist-packages/ceilometer/pipeline.py", line 817, in __init__
2017-10-31 23:45:35.707 14436 ERROR cotyledon     cfg = self.load_config(cfg_info)
2017-10-31 23:45:35.707 14436 ERROR cotyledon   File "/usr/lib/python2.7/dist-packages/ceilometer/pipeline.py", line 639, in load_config
2017-10-31 23:45:35.707 14436 ERROR cotyledon     conf = yaml.safe_load(data)
2017-10-31 23:45:35.707 14436 ERROR cotyledon   File "/usr/lib/python2.7/dist-packages/yaml/__init__.py", line 93, in safe_load
2017-10-31 23:45:35.707 14436 ERROR cotyledon     return load(stream, SafeLoader)
2017-10-31 23:45:35.707 14436 ERROR cotyledon   File "/usr/lib/python2.7/dist-packages/yaml/__init__.py", line 71, in load
2017-10-31 23:45:35.707 14436 ERROR cotyledon     return loader.get_single_data()
2017-10-31 23:45:35.707 14436 ERROR cotyledon   File "/usr/lib/python2.7/dist-packages/yaml/constructor.py", line 37, in get_single_data
2017-10-31 23:45:35.707 14436 ERROR cotyledon     node = self.get_single_node()
2017-10-31 23:45:35.707 14436 ERROR cotyledon   File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 36, in get_single_node
2017-10-31 23:45:35.707 14436 ERROR cotyledon     document = self.compose_document()
2017-10-31 23:45:35.707 14436 ERROR cotyledon   File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 55, in compose_document
2017-10-31 23:45:35.707 14436 ERROR cotyledon     node = self.compose_node(None, None)
2017-10-31 23:45:35.707 14436 ERROR cotyledon   File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
2017-10-31 23:45:35.707 14436 ERROR cotyledon     node = self.compose_mapping_node(anchor)
2017-10-31 23:45:35.707 14436 ERROR cotyledon   File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
2017-10-31 23:45:35.707 14436 ERROR cotyledon     while not self.check_event(MappingEndEvent):
2017-10-31 23:45:35.707 14436 ERROR cotyledon   File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 98, in check_event
2017-10-31 23:45:35.707 14436 ERROR cotyledon     self.current_event = self.state()
2017-10-31 23:45:35.707 14436 ERROR cotyledon   File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
2017-10-31 23:45:35.707 14436 ERROR cotyledon     "expected <block end>, but found %r" % token.id, token.start_mark)
2017-10-31 23:45:35.707 14436 ERROR cotyledon ParserError: while parsing a block mapping
2017-10-31 23:45:35.707 14436 ERROR cotyledon   in "<string>", line 2, column 1:
2017-10-31 23:45:35.707 14436 ERROR cotyledon     sources:
2017-10-31 23:45:35.707 14436 ERROR cotyledon     ^
2017-10-31 23:45:35.707 14436 ERROR cotyledon expected <block end>, but found '<block sequence start>'
2017-10-31 23:45:35.707 14436 ERROR cotyledon   in "<string>", line 15, column 5:
2017-10-31 23:45:35.707 14436 ERROR cotyledon         - name: meter_source
2017-10-31 23:45:35.707 14436 ERROR cotyledon         ^
2017-10-31 23:45:35.707 14436 ERROR cotyledon


Follows the pipeline file, with those comments it works out as expected. I'm trying to add the ODL and SNMP configuration but when I add them it starts throwing out those errors.


---
sources:
#   - name: meter_snmp
#     interval: 60
#     resources:
#         - snmp://OS_community@192.168.0.1
#         - snmp://OS_community@192.168.0.2
#     meters:
#       - "hardware.cpu*"
#       - "hardware.memory*"
#       - "hardware.disk*"
#       - "hardware.network*"
#     sinks:
#       - meter_sink
    - name: meter_source
      interval: 60
      meters:
          - "*"
      sinks:
          - meter_sink
    - name: cpu_source
      interval: 60
      meters:
          - "cpu"
      sinks:
          - cpu_sink
          - cpu_delta_sink
    - name: disk_source
      interval: 60
      meters:
          - "disk.read.bytes"
          - "disk.read.requests"
          - "disk.write.bytes"
          - "disk.write.requests"
          - "disk.device.read.bytes"
          - "disk.device.read.requests"
          - "disk.device.write.bytes"
          - "disk.device.write.requests"
      sinks:
          - disk_sink
    - name: network_source
      interval: 60
      meters:
          - "network.incoming.bytes"
          - "network.incoming.packets"
          - "network.outgoing.bytes"
          - "network.outgoing.packets"
      sinks:
          - network_sink
#     - name: meter_source
#       interval: 60
#       meters:
#           - switch.flow.duration_seconds
#       sinks:
#           - meter_sink
#       resources:
#           - opendaylight://127.0.0.1:8080/controller/nb/v2?container_name=default&container_name=egg&auth=basic&user=admin&password=admin&scheme=http
sinks:
    - name: meter_sink
      transformers:
      publishers:
          - notifier://
    - name: cpu_sink
      transformers:
          - name: "rate_of_change"
            parameters:
                target:
                    name: "cpu_util"
                    unit: "%"
                    type: "gauge"
                    scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))"
      publishers:
          - notifier://
    - name: cpu_delta_sink
      transformers:
          - name: "delta"
            parameters:
                target:
                    name: "cpu.delta"
                growth_only: True
      publishers:
          - notifier://
    - name: disk_sink
      transformers:
          - name: "rate_of_change"
            parameters:
                source:
                    map_from:
                        name: "(disk\\.device|disk)\\.(read|write)\\.(bytes|requests)"
                        unit: "(B|request)"
                target:
                    map_to:
                        name: "\\1.\\2.\\3.rate"
                        unit: "\\1/s"
                    type: "gauge"
      publishers:
          - notifier://
    - name: network_sink
      transformers:
          - name: "rate_of_change"
            parameters:
                source:
                   map_from:
                       name: "network\\.(incoming|outgoing)\\.(bytes|packets)"
                       unit: "(B|packet)"
                target:
                    map_to:
                        name: "network.\\1.\\2.rate"
                        unit: "\\1/s"
                    type: "gauge"
      publishers:
          - notifier://


________________________________
On 26/10/17 08:33 AM, andres sanchez ramos wrote:
>
> import pbr.version
> version_info = pbr.version.VersionInfo('ceilometer')
>
> and the output was 7.0.3


what happens if you use:

     - name: meter_source
       interval: 60
       meters:
           - switch.flow.duration_seconds
           - <any network specific meter>
       sinks:
           - meter_sink
       resources:
           -
opendaylight://127.0.0.1:8080/controller/nb/v2?container_name=default&container_name=egg&auth=basic&user=admin&password=admin&scheme=http

--
gord



Enviado desde Outlook<http://aka.ms/weboutlook>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20171031/6012b6e5/attachment.html>


More information about the OpenStack-operators mailing list