Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-945

Unable to iterate over mon.ports_listening

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cf-monitord
    • Labels:
      None

      Description

      I am unable to iterate over ports listening in the mon scope.
      I can however import the list locally and iterate over that.

      I should be able to iterate over lists in in mon just like any other list.

      sudo cf-agent -KIf ./mon.cf -b test
      > 2013-10-21T16:47:33-0500 info: Using command line specified bundlesequence
      Unable to iterate over mon list
      > 2013-10-21T16:47:33-0500 notice: R: mon.listening_ports: $(mon.listening_ports)
      Successfully iterate over locally imported mon list
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 54101
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 80
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 25
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 35001
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 631
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 22
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 53
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 32469
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 8307
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 32400
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 111
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 33998
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 45772
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 1194
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 55016
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 902
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 1186
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 34269
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 5308
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 17500
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 32443
      > 2013-10-21T16:47:33-0500 notice: R: test.listening_ports: 443
      Successfully iterate over global common list
      > 2013-10-21T16:47:33-0500 notice: R: global common list: 1
      > 2013-10-21T16:47:33-0500 notice: R: global common list: 2
      Successfully iterate over global agent list
      > 2013-10-21T16:47:33-0500 notice: R: global agent list: 1
      > 2013-10-21T16:47:33-0500 notice: R: global agent list: 2

        Attachments

        1. mon_test.cf
          1 kB
        2. mon.cf
          0.4 kB

          Activity

            People

            • Assignee:
              a10020 Maciej Mrowiec
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel