1. Bjoern Sagstad

Bjoern Sagstad

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: MFLib question – querying the entire fabric environment #7262
    Bjoern Sagstad
    Participant
      One follow up question for this:

      My question is, from the available resources method mentioned above, it’s simple to check if a rack has a specific NIC. However, I couldn’t find this information as readily using the infrastructure-metric site. Is there a query that returns that information on a node level? ie: w2 on the wash site has 2 cx5 NICs available.

      in reply to: MFLIB error in instrumentazion #7183
      Bjoern Sagstad
      Participant

        Yes. The last time I got the error that was how I got it.

        in reply to: MFLIB error in instrumentazion #7133
        Bjoern Sagstad
        Participant

          Hi,
          I just encountered the error again. I think it’s might be related to when I restart the notebook. So, not when I first create the slice but when I reload the slice to use it without having to delete the slice and go through all the setup again.

          Sites used:BRIST, MICH, RUTG
          Slice name: MyMonitoredSliceTwo
          Fablib version: 1.6.5
          MFLib version: 1.0.40

          I have also attached the log to this.

          Update: I wasn’t able to upload the log file so here are the logs in plain text:

          
          
          06/18/2024 15:33:41 PM mflib.core INFO Using core_class_version 1.0.38
          06/18/2024 15:33:41 PM mflib.core INFO -----Set slice name MyMonitoredSliceTwo.-----
          06/18/2024 15:33:43 PM mflib.mflib INFO Inititializing slice "MyMonitoredSliceTwo" for MeasurementFramework.
          06/18/2024 15:33:43 PM mflib.mflib INFO Found meas node as meas-node at 2620:0:c80:1003:f816:3eff:fe84:7927
          06/18/2024 15:35:56 PM mflib.mflib DEBUG Instrumentizing slice "MyMonitoredSliceTwo"
          06/18/2024 15:35:56 PM mflib.mflib DEBUG Setting up Prometheus...
          06/18/2024 15:35:56 PM mflib.core INFO Run create for prometheus
          06/18/2024 15:35:56 PM mflib.core DEBUG Data is None.
          06/18/2024 16:37:38 PM mflib.core INFO Creating mflib object.
          06/18/2024 16:37:38 PM mflib.core INFO Using core_class_version 1.0.38
          06/18/2024 16:37:38 PM mflib.core INFO Using core_class_version 1.0.38
          06/18/2024 16:37:38 PM mflib.core INFO -----Set slice name MyMonitoredSliceTwo.-----
          06/18/2024 16:37:38 PM mflib.core INFO -----Set slice name MyMonitoredSliceTwo.-----
          06/18/2024 16:37:41 PM mflib.mflib INFO Inititializing slice "MyMonitoredSliceTwo" for MeasurementFramework.
          06/18/2024 16:37:41 PM mflib.mflib INFO Inititializing slice "MyMonitoredSliceTwo" for MeasurementFramework.
          06/18/2024 16:37:41 PM mflib.mflib INFO Found meas node as meas-node at 2620:0:c80:1003:f816:3eff:fe6e:b221
          06/18/2024 16:37:41 PM mflib.mflib INFO Found meas node as meas-node at 2620:0:c80:1003:f816:3eff:fe6e:b221
          06/18/2024 16:39:54 PM mflib.mflib DEBUG Instrumentizing slice "MyMonitoredSliceTwo"
          06/18/2024 16:39:54 PM mflib.mflib DEBUG Instrumentizing slice "MyMonitoredSliceTwo"
          06/18/2024 16:39:54 PM mflib.mflib DEBUG Setting up Prometheus...
          06/18/2024 16:39:54 PM mflib.mflib DEBUG Setting up Prometheus...
          06/18/2024 16:39:54 PM mflib.core INFO Run create for prometheus
          06/18/2024 16:39:54 PM mflib.core INFO Run create for prometheus
          06/18/2024 16:39:54 PM mflib.core DEBUG Data is None.
          06/18/2024 16:39:54 PM mflib.core DEBUG Data is None.
          06/18/2024 16:42:19 PM mflib.core DEBUG STDOUT: ""
          06/18/2024 16:42:19 PM mflib.core DEBUG STDOUT: ""
          06/18/2024 16:42:19 PM mflib.core ERROR Unable to convert returned comand json.
          Traceback (most recent call last):
          File "/opt/conda/lib/python3.11/site-packages/mflib/core.py", line 815, in _run_service_command
          ret_data = json.loads(jsonstr)
          ^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/json/__init__.py", line 346, in loads
          return _default_decoder.decode(s)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/json/decoder.py", line 337, in decode
          obj, end = self.raw_decode(s, idx=_w(s, 0).end())
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/json/decoder.py", line 355, in raw_decode
          raise JSONDecodeError("Expecting value", s, err.value) from None
          json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
          06/18/2024 16:42:19 PM mflib.core ERROR Unable to convert returned comand json.
          Traceback (most recent call last):
          File "/opt/conda/lib/python3.11/site-packages/mflib/core.py", line 815, in _run_service_command
          ret_data = json.loads(jsonstr)
          ^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/json/__init__.py", line 346, in loads
          return _default_decoder.decode(s)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/json/decoder.py", line 337, in decode
          obj, end = self.raw_decode(s, idx=_w(s, 0).end())
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/json/decoder.py", line 355, in raw_decode
          raise JSONDecodeError("Expecting value", s, err.value) from None
          json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
          06/18/2024 16:42:19 PM mflib.core DEBUG STDERR: sudo: unknown user: mfuser
          sudo: unable to initialize policy plugin
          
          06/18/2024 16:42:19 PM mflib.core DEBUG STDERR: sudo: unknown user: mfuser
          sudo: unable to initialize policy plugin

           

          in reply to: Mflib – Prometheus instrumentize error #7054
          Bjoern Sagstad
          Participant

            I just tested the prometheus system and it works fine. Thank you so much for the quick fix!

          Viewing 4 posts - 1 through 4 (of 4 total)