gnmic icon indicating copy to clipboard operation
gnmic copied to clipboard

OS freezing issues

Open LoboDCOK opened this issue 2 years ago • 2 comments

Hi this is my gnmi config

username: <edited>
password: <edited>
timeout: 10s
skip-verify: true
#no-prefix: true
log-file: /var/log/gnmic/gnmic.log
debug: false
qos: 20

targets:
  172.26.243.183:32767:
    name: <edited>
    encoding: PROTO
    subscriptions:
      - port_stats
      - rpm
    outputs:
      - output-influxdb
#      - output-file
  172.26.243.55:32767:
    name: <edited>
    encoding: PROTO
    subscriptions:
      - port_stats
      - rpm
    outputs:
      - output-influxdb
#      - output-file
  172.26.244.151:32767:
    name: <edited>
    encoding: PROTO
    subscriptions:
      - port_stats
      - rpm
    outputs:
      - output-influxdb
#      - output-file

subscriptions:
  port_stats:
    paths:
      - "/interfaces/interface/state/counters/"
      - "/interfaces/interface/subinterfaces/subinterface/state/counters/"
    mode: STREAM
#    stream-mode: SAMPLE
    stream-mode: TARGET_DEFINED
    sample-interval: 30s
    encoding: PROTO
    suppress-redundant: false
    updates-only: true
  rpm:
    paths:
      - "/junos/rpm/history-results"
    mode: STREAM
#    stream-mode: SAMPLE
    stream-mode: TARGET_DEFINED
    sample-interval: 30s
    encoding: PROTO
    suppress-redundant: false
    updates-only: true

outputs:
  output-file:
    type: file
    format: event
    filename: /var/log/gnmic/gnmic-out.json
    override-timestamp: false
    multiline: true
    indent: " "
    enabled-metrics: true
    event-processors:
      - add-tag-1
      - add-tag-2
      - delete-all
#      - delete-rpm
  output-influxdb:
    type: influxdb
    url: http://<edited>:8086
    org: AMX
    bucket: AMXGRAPH2
    token: <edited>
    batch-size: 1000
    flush-timer: 10s
    use-gzip: false
    enable-tls: false
#    override-timestamps: false
    override-timestamps: true
    health-check-period: 30s
    debug: false
    enable-metrics: false
    event-processors:
      - add-tag-1
      - add-tag-2
      - delete-all
#      - delete-rpm

processors:
  add-tag-1:
    event-add-tag:
      value-names:
        - "^/interfaces/interface/subinterfaces/subinterface/state/"
      add:
        subscription_type: "subinterfaces"
  add-tag-2:
    event-add-tag:
      value-names:
        - "^/interfaces/interface/state/"
      add:
        subscription_type: "interfaces"
#  delete-rpm:
#   event-delete:
#     tag-names:
#       - "history-single-test-results_owner"
  delete-all:
    event-strings:
      value-names:
        - ".*"
      transforms:
        - trim-prefix:
            apply-on: "name"
            prefix: "/interfaces/interface/subinterfaces/subinterface/state/counters/"
        - trim-prefix:
            apply-on: "name"
            prefix: "/interfaces/interface/state/counters/"
        - trim-prefix:
            apply-on: "name"
            prefix: "/junos/rpm/history-results/history-test-results/history-single-test-results/"

I tried to use this one in Debian & Ubuntu (both of them in their last version)

In both case, the OS is income freezing.

Do you have any idea why it's happened?

LoboDCOK avatar Jun 11 '22 17:06 LoboDCOK

Hi, what does OS income freezing mean? Can you share how are you running gnmic? from the shell, systemd, as a container? Do you see any logs in /var/log/gnmic/gnmic.log ?

karimra avatar Jun 11 '22 18:06 karimra

Ok

This’s the gnmic.log’s file

@.***:/var/log/gnmic$ cat gnmic.log 2022/06/12 16:56:57.608308 [gnmic] version=0.25.0, commit=dbc5bdd, date=2022-06-11T18:30:28Z, gitURL=https://github.com/karimra/gnmic, docs=https://gnmic.kmrd.dev 2022/06/12 16:56:57.608345 [gnmic] using config file "/usr/local/bin/.gnmic.yml" 2022/06/12 16:56:57.608518 [config] validating processor "data-convert-1" config 2022/06/12 16:56:57.608527 [config] validating processor "add-tag-1" config 2022/06/12 16:56:57.608530 [config] validating processor "add-tag-2" config 2022/06/12 16:56:57.608534 [config] validating processor "delete-all" config 2022/06/12 16:56:57.609329 [gnmic] starting output type file 2022/06/12 16:56:57.609348 [gnmic] starting output type influxdb 2022/06/12 16:56:57.609383 [gnmic] queuing target "3BBIRP_ARCFOL01" 2022/06/12 16:56:57.609400 [gnmic] starting target "3BBIRP_ARCFOL01" listener 2022/06/12 16:56:57.609414 [gnmic] subscribing to target: "3BBIRP_ARCFOL01" 2022/06/12 16:56:57.609480 [gnmic] queuing target "3BBIRP_GTGUPB01" 2022/06/12 16:56:57.609500 [gnmic] subscribing to target: "3BBIRP_GTGUPB01" 2022/06/12 16:56:57.609556 [gnmic] queuing target "3BBIRP_ARCFGR01" 2022/06/12 16:56:57.609580 [gnmic] starting target "3BBIRP_GTGUPB01" listener 2022/06/12 16:56:57.609579 [file_output] added event processor 'data-convert-1' of type=event-data-convert to file output 2022/06/12 16:56:57.609593 [gnmic] starting target "3BBIRP_ARCFGR01" listener 2022/06/12 16:56:57.609672 [file_output] added event processor 'add-tag-1' of type=event-add-tag to file output 2022/06/12 16:56:57.609787 [file_output] added event processor 'add-tag-2' of type=event-add-tag to file output 2022/06/12 16:56:57.609595 [gnmic] subscribing to target: "3BBIRP_ARCFGR01" 2022/06/12 16:56:57.609919 [influxdb_output] added event processor 'data-convert-1' of type=event-data-convert to influxdb output 2022/06/12 16:56:57.609965 [file_output] added event processor 'delete-all' of type=event-strings to file output 2022/06/12 16:56:57.609977 [influxdb_output] added event processor 'add-tag-1' of type=event-add-tag to influxdb output 2022/06/12 16:56:57.610036 [influxdb_output] added event processor 'add-tag-2' of type=event-add-tag to influxdb output 2022/06/12 16:56:57.610076 [file_output] initialized file output: {"Cfg":{"FileName":"/var/log/gnmic/gnmic-out.json","FileType":"","Format":"event","Multiline":true,"Indent":" ","Separator":"\n","OverrideTimestamps":false,"AddTarget":"","TargetTemplate":"","EventProcessors":["data-convert-1","add-tag-1","add-tag-2","delete-all"],"MsgTemplate":"","ConcurrencyLimit":1000,"EnableMetrics":false,"Debug":false}} 2022/06/12 16:56:57.610197 [influxdb_output] added event processor 'delete-all' of type=event-strings to influxdb output 2022/06/12 16:56:57.611322 [influxdb_output] health check result: {"checks":[],"commit":"a2f8538837","message":"ready for queries and writes","name":"influxdb","status":"pass","version":"v2.2.0"} 2022/06/12 16:56:57.611429 [influxdb_output] initialized influxdb client: {"Cfg":{"URL":"http://10.190.0.88:8086","Org":"AMX","Bucket":"AMXGRAPH2","Token":"PF4w1jOVnXfjvB7F30IYAiboODvYjmFR8fATvOepM21T-7v9nznRZmOmKR1Im1wZPL2V3XksuQko4z-ByrSImw==","BatchSize":1000,"FlushTimer":10000000000,"UseGzip":false,"EnableTLS":false,"HealthCheckPeriod":30000000000,"Debug":false,"AddTarget":"","TargetTemplate":"","EventProcessors":["data-convert-1","add-tag-1","add-tag-2","delete-all"],"EnableMetrics":false,"OverrideTimestamps":true,"GnmiCacheConfig":null,"CacheFlushTimer":0}} 2022/06/12 16:56:57.611451 [influxdb_output] starting worker-0 2022/06/12 16:56:57.619787 [gnmic] target "3BBIRP_ARCFOL01" gNMI client created 2022/06/12 16:56:57.620429 [gnmic] sending gNMI SubscribeRequest: subscribe='subscribe:{subscription:{path:{elem:{name:"interfaces"} elem:{name:"interface"} elem:{name:"state"} elem:{name:"counters"}} sample_interval:30000000000} subscription:{path:{elem:{name:"interfaces"} elem:{name:"interface"} elem:{name:"subinterfaces"} elem:{name:"subinterface"} elem:{name:"state"} elem:{name:"counters"}} sample_interval:30000000000} encoding:PROTO updates_only:true}', mode='STREAM', encoding='PROTO', to 3BBIRP_ARCFOL01 2022/06/12 16:56:57.620486 [gnmic] sending gNMI SubscribeRequest: subscribe='subscribe:{subscription:{path:{elem:{name:"junos"} elem:{name:"rpm"} elem:{name:"history-results"}} sample_interval:30000000000} encoding:PROTO updates_only:true}', mode='STREAM', encoding='PROTO', to 3BBIRP_ARCFOL01 2022/06/12 16:56:57.623208 [gnmic] target "3BBIRP_ARCFGR01" gNMI client created 2022/06/12 16:56:57.623283 [gnmic] sending gNMI SubscribeRequest: subscribe='subscribe:{subscription:{path:{elem:{name:"junos"} elem:{name:"rpm"} elem:{name:"history-results"}} sample_interval:30000000000} encoding:PROTO updates_only:true}', mode='STREAM', encoding='PROTO', to 3BBIRP_ARCFGR01 2022/06/12 16:56:57.623315 [gnmic] sending gNMI SubscribeRequest: subscribe='subscribe:{subscription:{path:{elem:{name:"interfaces"} elem:{name:"interface"} elem:{name:"state"} elem:{name:"counters"}} sample_interval:30000000000} subscription:{path:{elem:{name:"interfaces"} elem:{name:"interface"} elem:{name:"subinterfaces"} elem:{name:"subinterface"} elem:{name:"state"} elem:{name:"counters"}} sample_interval:30000000000} encoding:PROTO updates_only:true}', mode='STREAM', encoding='PROTO', to 3BBIRP_ARCFGR01 2022/06/12 16:56:58.023602 [gnmic] target "3BBIRP_GTGUPB01" gNMI client created 2022/06/12 16:56:58.023706 [gnmic] sending gNMI SubscribeRequest: subscribe='subscribe:{subscription:{path:{elem:{name:"interfaces"} elem:{name:"interface"} elem:{name:"state"} elem:{name:"counters"}} sample_interval:30000000000} subscription:{path:{elem:{name:"interfaces"} elem:{name:"interface"} elem:{name:"subinterfaces"} elem:{name:"subinterface"} elem:{name:"state"} elem:{name:"counters"}} sample_interval:30000000000} encoding:PROTO updates_only:true}', mode='STREAM', encoding='PROTO', to 3BBIRP_GTGUPB01 2022/06/12 16:56:58.023745 [gnmic] sending gNMI SubscribeRequest: subscribe='subscribe:{subscription:{path:{elem:{name:"junos"} elem:{name:"rpm"} elem:{name:"history-results"}} sample_interval:30000000000} encoding:PROTO updates_only:true}', mode='STREAM', encoding='PROTO', to 3BBIRP_GTGUPB01 2022/06/12 16:57:27.612374 [influxdb_output] health check result: {"checks":[],"commit":"a2f8538837","message":"ready for queries and writes","name":"influxdb","status":"pass","version":"v2.2.0"} 2022/06/12 16:57:57.612456 [influxdb_output] health check result: {"checks":[],"commit":"a2f8538837","message":"ready for queries and writes","name":"influxdb","status":"pass","version":"v2.2.0"} .. N times repeats of the same text .. 2022/06/12 18:14:57.612649 [influxdb_output] health check result: {"checks":[],"commit":"a2f8538837","message":"ready for queries and writes","name":"influxdb","status":"pass","version":"v2.2.0"} 2022/06/12 18:15:27.612593 [influxdb_output] health check result: {"checks":[],"commit":"a2f8538837","message":"ready for queries and writes","name":"influxdb","status":"pass","version":"v2.2.0"}

Rigth now, i running gnmic 0.25.0 in an UBUNTU Linux gnmic 5.15.0-37-generic #39-Ubuntu SMP Wed Jun 1 19:16:45 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Virtualizated over VMWare technology.

Regards

Enviado desde Correohttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows

De: Karim @.> Enviado: sábado, 11 de junio de 2022 15:25 Para: @.> CC: @.>; @.> Asunto: Re: [karimra/gnmic] OS freezing issues (Issue #608)

Hi, what does OS income freezing mean? Can you share how are you running gnmic? from the shell, systemd, as a container? Do you see any logs in /var/log/gnmic/gnmic.log ?

— Reply to this email directly, view it on GitHubhttps://github.com/karimra/gnmic/issues/608#issuecomment-1152976956, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZNMGB4CCSOPCRSAQSCTXBTVOTK2TANCNFSM5YQNDSNQ. You are receiving this because you authored the thread.Message ID: @.***>

LoboDCOK avatar Jun 12 '22 23:06 LoboDCOK

Well

You can close this issues too.

Because is a BUG in my VMWare’s cloud. Sorry.

Regads.

Enviado desde Correohttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows

De: Karim @.> Enviado: sábado, 11 de junio de 2022 15:25 Para: @.> CC: @.>; @.> Asunto: Re: [karimra/gnmic] OS freezing issues (Issue #608)

Hi, what does OS income freezing mean? Can you share how are you running gnmic? from the shell, systemd, as a container? Do you see any logs in /var/log/gnmic/gnmic.log ?

— Reply to this email directly, view it on GitHubhttps://github.com/karimra/gnmic/issues/608#issuecomment-1152976956, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZNMGB4CCSOPCRSAQSCTXBTVOTK2TANCNFSM5YQNDSNQ. You are receiving this because you authored the thread.Message ID: @.***>

LoboDCOK avatar Oct 11 '22 07:10 LoboDCOK