Project

General

Profile

Actions

Bug #20348

closed

Missing special target in group selection for rules

Added by François ARMAND over 2 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

This should have been corrected by https://issues.rudder.io/issues/20127 but they are still missing as of rc1.


Files

clipboard-202112011106-ywb8a.png (69.7 KB) clipboard-202112011106-ywb8a.png François ARMAND, 2021-12-01 11:06

Related issues 1 (0 open1 closed)

Related to Rudder - User story #20127: Missing data for Rule pageReleasedFrançois ARMANDActions
Actions #1

Updated by François ARMAND over 2 years ago

Actions #2

Updated by Nicolas CHARLES over 2 years ago

Yt they are in the JSON returned by the API rudder/secure/api/groups/tree , under the targets (and in 2 categories)

{
   "action":"getGroupTree",
   "result":"success",
   "data":{
      "groupCategories":{
         "id":"GroupRoot",
         "name":"Root of the group and group categories",
         "description":"This is the root category for the groups (both dynamic and static) and group categories",
         "parent":"GroupRoot",
         "categories":[
            {
               "id":"SystemGroups",
               "name":"System groups",
               "description":"That category holds all the system and special target",
               "parent":"GroupRoot",
               "categories":[

               ],
               "groups":[
                  {
                     "id":"all-nodes-with-cfengine-agent",
                     "displayName":"All classic Nodes",
                     "description":"All classic Nodes known by Rudder (Using a CFEngine based agent)",
                     "category":"SystemGroups",
                     "query":{
                        "select":"nodeAndPolicyServer",
                        "composition":"And",
                        "where":[
                           {
                              "objectType":"node",
                              "attribute":"agentName",
                              "comparator":"eq",
                              "value":"cfengine" 
                           }
                        ]
                     },
                     "nodeIds":[
                        "66185216-2ebf-4b97-b0cd-99d628bb3f96",
                        "root" 
                     ],
                     "dynamic":true,
                     "enabled":true,
                     "groupClass":[
                        "group_all_classic_nodes",
                        "group_all_nodes_with_cfengine_agent" 
                     ],
                     "properties":[

                     ],
                     "system":true,
                     "target":"group:all-nodes-with-cfengine-agent" 
                  },
                  {
                     "id":"hasPolicyServer-root",
                     "displayName":"All classic Nodes managed by root policy server",
                     "description":"All classic Nodes known by Rudder directly connected to the root server. This group exists only as internal purpose and should not be used to configure nodes.",
                     "category":"SystemGroups",
                     "query":{
                        "select":"nodeAndPolicyServer",
                        "composition":"And",
                        "where":[
                           {
                              "objectType":"node",
                              "attribute":"policyServerId",
                              "comparator":"eq",
                              "value":"root" 
                           },
                           {
                              "objectType":"node",
                              "attribute":"agentName",
                              "comparator":"eq",
                              "value":"cfengine" 
                           }
                        ]
                     },
                     "nodeIds":[
                        "66185216-2ebf-4b97-b0cd-99d628bb3f96",
                        "root" 
                     ],
                     "dynamic":true,
                     "enabled":true,
                     "groupClass":[
                        "group_all_classic_nodes_managed_by_root_policy_server",
                        "group_haspolicyserver_root" 
                     ],
                     "properties":[

                     ],
                     "system":true,
                     "target":"group:hasPolicyServer-root" 
                  }
               ],
               "targets":[
                  {
                     "id":"policyServer:root",
                     "displayName":"Root policy server",
                     "description":"Only the root policy server",
                     "enabled":true,
                     "target":"policyServer:root" 
                  },
                  {
                     "id":"special:all_exceptPolicyServers",
                     "displayName":"All managed nodes",
                     "description":"All nodes known by Rudder (excluding Rudder policy servers)",
                     "enabled":true,
                     "target":"special:all_exceptPolicyServers" 
                  },
                  {
                     "id":"special:all",
                     "displayName":"All nodes",
                     "description":"All nodes known by Rudder (including Rudder policy servers)",
                     "enabled":true,
                     "target":"special:all" 
                  }
               ]
            }
         ],
         "groups":[

         ],
         "targets":[
            {
               "id":"policyServer:root",
               "displayName":"Root policy server",
               "description":"Only the root policy server",
               "enabled":true,
               "target":"policyServer:root" 
            },
            {
               "id":"special:all_exceptPolicyServers",
               "displayName":"All managed nodes",
               "description":"All nodes known by Rudder (excluding Rudder policy servers)",
               "enabled":true,
               "target":"special:all_exceptPolicyServers" 
            },
            {
               "id":"special:all",
               "displayName":"All nodes",
               "description":"All nodes known by Rudder (including Rudder policy servers)",
               "enabled":true,
               "target":"special:all" 
            }
         ]
      }
   }
}

Actions #3

Updated by Nicolas CHARLES over 2 years ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #5

Updated by Nicolas CHARLES over 2 years ago

  • Status changed from In progress to New
  • Assignee deleted (Nicolas CHARLES)

it seems fairly easy, but I can't get it to work
I yield this one to people more clever than me

Actions #6

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 7.0.0~rc2 to 7.0.0~rc3
Actions #7

Updated by Raphael GAUTHIER over 2 years ago

  • Status changed from New to In progress
  • Assignee set to Raphael GAUTHIER
Actions #8

Updated by Raphael GAUTHIER over 2 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Raphael GAUTHIER to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/4068
Actions #9

Updated by Raphael GAUTHIER over 2 years ago

  • Assignee changed from François ARMAND to Nicolas CHARLES
Actions #10

Updated by Raphael GAUTHIER over 2 years ago

  • Status changed from Pending technical review to Pending release
Actions #11

Updated by Vincent MEMBRÉ over 2 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.0.0~rc3 which was released today.

Actions

Also available in: Atom PDF