Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-29488

Can't remove LSST_DDS_DOMAIN variable from CSC environment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Invalid
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: ts_middleware
    • Labels:
      None
    • Team:
      Telescope and Site
    • Urgent?:
      No

      Description

      I wanted someone to know I tried this, and it failed;  I'm not sure if this is strictly a bug, or if it happened because I tried to do this before it was supported:

       

      I tried removing the LSST_DDS_DOMAIN environment variable from the CSC environment, since we're using ospl-shmem.xml and the ospl-daemon.    When I tried that, I got the following dump: 

      Traceback (most recent call last):
        File "/home/saluser/dm_ATArchiver/bin/run_at_archiver_csc.py", line 6, in <module>
          asyncio.run(ATArchiverCSC.amain(index=None))
        File "/opt/lsst/software/stack/miniconda/lib/python3.8/asyncio/runners.py", line 44, in run
          return loop.run_until_complete(main)
        File "/opt/lsst/software/stack/miniconda/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
          return future.result()
        File "/opt/lsst/software/stack/miniconda/lib/python3.8/site-packages/lsst/ts/salobj/base_csc.py", line 410, in amain
          csc = cls.make_from_cmd_line(index=index, **kwargs)
        File "/opt/lsst/software/stack/miniconda/lib/python3.8/site-packages/lsst/ts/salobj/base_csc.py", line 390, in make_from_cmd_line
          csc = cls(**kwargs)
        File "/home/saluser/dm_ATArchiver/python/lsst/dm/ATArchiver/atarchiver_csc.py", line 36, in __init__
          super().__init__("ATArchiver", initial_state=salobj.State.STANDBY)
        File "/home/saluser/dm_csc_base/python/lsst/dm/csc/base/archiver_csc.py", line 45, in __init__
          super().__init__(name, initial_state=initial_state)
        File "/home/saluser/dm_csc_base/python/lsst/dm/csc/base/dm_csc.py", line 48, in __init__
          super().__init__(name, initial_state=initial_state)
        File "/opt/lsst/software/stack/miniconda/lib/python3.8/site-packages/lsst/ts/salobj/base_csc.py", line 172, in __init__
          super().__init__(name=name, index=index, do_callbacks=True)
        File "/opt/lsst/software/stack/miniconda/lib/python3.8/site-packages/lsst/ts/salobj/controller.py", line 172, in __init__
          domain = Domain()
        File "/opt/lsst/software/stack/miniconda/lib/python3.8/site-packages/lsst/ts/salobj/domain.py", line 200, in __init__
          self.participant = dds.DomainParticipant(qos=participant_qos)
        File "dds.pyx", line 2128, in dds.DomainParticipant.__cinit__
      dds.DDSException: Failed to create participant  Return code: Error

        Attachments

          Activity

          Hide
          dmills Dave Mills added a comment -

          Deprecation of LSST_DDS_DOMAIN is in SAL 6, but it should work if you supply the
          LSST_DDS_PARTITION_PREFIX instead.

          Show
          dmills Dave Mills added a comment - Deprecation of LSST_DDS_DOMAIN is in SAL 6, but it should work if you supply the LSST_DDS_PARTITION_PREFIX instead.
          Hide
          dmills Dave Mills added a comment -

          What is your LSST_DDS_QOS pointing to, and does it exist

          Show
          dmills Dave Mills added a comment - What is your LSST_DDS_QOS pointing to, and does it exist
          Hide
          spietrowicz Steve Pietrowicz added a comment -

          I set LSST_DDS_PARTITION_PREFIX, and have LSST_DDS_QOS set as well:

           

          LSST_DDS_QOS=file:///home/saluser/ts_dds_config/qos/QoS.xml

          LSST_DDS_PARTITION_PREFIX=ncsa

          LSST_DDS_INTERFACE=p3p2

           

          The ts_dds_config is v0.5.1

           

          Show
          spietrowicz Steve Pietrowicz added a comment - I set LSST_DDS_PARTITION_PREFIX, and have LSST_DDS_QOS set as well:   LSST_DDS_QOS= file:///home/saluser/ts_dds_config/qos/QoS.xml LSST_DDS_PARTITION_PREFIX=ncsa LSST_DDS_INTERFACE=p3p2   The ts_dds_config is v0.5.1  
          Hide
          dmills Dave Mills added a comment -

          Any clues in ospl-error.log ?

          Show
          dmills Dave Mills added a comment - Any clues in ospl-error.log ?
          Hide
          spietrowicz Steve Pietrowicz added a comment -

          nothing obvious to me

          Show
          spietrowicz Steve Pietrowicz added a comment - nothing obvious to me
          Hide
          dmills Dave Mills added a comment -

          There should not be anything in ospl-error.log.....
          What is in QoS.xml ?

          Show
          dmills Dave Mills added a comment - There should not be anything in ospl-error.log..... What is in QoS.xml ?
          Hide
          dmills Dave Mills added a comment -

          Ahhh, it should be LSST_DDS_QOS=file:///home/saluser/ts_ddsconfig/qos/QoS.xml

          Show
          dmills Dave Mills added a comment - Ahhh, it should be LSST_DDS_QOS= file:///home/saluser/ts_ddsconfig/qos/QoS.xml
          Hide
          spietrowicz Steve Pietrowicz added a comment -

          doh.  Good catch.  I'll change that.

          Show
          spietrowicz Steve Pietrowicz added a comment - doh.  Good catch.  I'll change that.

            People

            Assignee:
            dmills Dave Mills
            Reporter:
            spietrowicz Steve Pietrowicz
            Watchers:
            Dave Mills, Russell Owen, Steve Pietrowicz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.