Uploaded image for project: 'Razor'
  1. Razor
  2. RAZOR-1141

Tags not being removed when rule is not met

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • RAZOR 1.7.1, razor-client 1.9.5
    • None
    • Client
    • None
    • Needs Assessment
    • Needs Assessment

    Description

      I've setup a tag as follows:

       

      razor create-tag --name deploy-target-set  --rule '["and", ["str", ["metadata", "TARGET_DISK"]], ["str", ["metadata", "DISK_URL"]]]'
      

      which should only match when nodes have both the TARGET_DISK and DISK_URL metadata set.

      The tags seems to work as expected, when both the metadata entries are set the tag will be applied:

       What does not seem to work is when the metadata is removed using the following command

      razor remove-node-metadata node1 DISK_URL
      razor remove-node-metadata node1 TARGET_DISK
      

       the tag is not removed

      Attachments

        Activity

          People

            Unassigned Unassigned
            mvgijssel Maarten
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Zendesk Support