Support Migration Notice: To update migrated JIRA cases click here to open a new case use www.vmware.com/go/sr | vFabric Hyperic 5.7.0 is Now Available

HQApi

Add role support to command line group sync command

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Case Links:
    none

Description

New feature request to help with role assignments for groups. Currently this needs to be managed through modification of XML, which is not ideal.

RFE is to add the following command line group sync switches

--addRole=<Role Name>
--removeRole=<Role Name>
--clearRoles (boolean flag)

Activity

Ryan Morgan made changes -
Field Original Value New Value
Link This issue is Support ticket SUPPORT-8373 [ SUPPORT-8373 ]
Ryan Morgan made changes -
Link This issue Depends on HHQ-4152 [ HHQ-4152 ]
Hide
Ryan Morgan added a comment -

Fixed in HQApi 2.6 and 3.3. The role options act exclusively from other command group sync options. I.e. you cannot use these when using --prototype or --platform to build the groups set of resources. This is noted in the help text, these options only work with --name=<group_name> and that group name must exist.

Some examples:

~/hyperic/hq-trunk/hqapi/build/hqapi1-2.6(hqapi-2.x) $ ./bin/hqapi.sh group sync --name="CPUS" --addRole=Role1
CPUS: Adding role Role1
CPUS: Success (now contains 1 role)
~/hyperic/hq-trunk/hqapi/build/hqapi1-2.6(hqapi-2.x) $ ./bin/hqapi.sh group sync --name="CPUS" --addRole=Role2
CPUS: Adding role Role2
CPUS: Success (now contains 2 roles)
~/hyperic/hq-trunk/hqapi/build/hqapi1-2.6(hqapi-2.x) $ ./bin/hqapi.sh group sync --name="CPUS" --removeRole=Role1
CPUS: Removing role Role1
CPUS: Success (now contains 1 role)
~/hyperic/hq-trunk/hqapi/build/hqapi1-2.6(hqapi-2.x) $ ./bin/hqapi.sh group sync --name="CPUS" --clearRoles
CPUS: Clearing 1 roles
CPUS: Success (now contains 0 roles)
Show
Ryan Morgan added a comment - Fixed in HQApi 2.6 and 3.3. The role options act exclusively from other command group sync options. I.e. you cannot use these when using --prototype or --platform to build the groups set of resources. This is noted in the help text, these options only work with --name=<group_name> and that group name must exist. Some examples:
~/hyperic/hq-trunk/hqapi/build/hqapi1-2.6(hqapi-2.x) $ ./bin/hqapi.sh group sync --name="CPUS" --addRole=Role1
CPUS: Adding role Role1
CPUS: Success (now contains 1 role)
~/hyperic/hq-trunk/hqapi/build/hqapi1-2.6(hqapi-2.x) $ ./bin/hqapi.sh group sync --name="CPUS" --addRole=Role2
CPUS: Adding role Role2
CPUS: Success (now contains 2 roles)
~/hyperic/hq-trunk/hqapi/build/hqapi1-2.6(hqapi-2.x) $ ./bin/hqapi.sh group sync --name="CPUS" --removeRole=Role1
CPUS: Removing role Role1
CPUS: Success (now contains 1 role)
~/hyperic/hq-trunk/hqapi/build/hqapi1-2.6(hqapi-2.x) $ ./bin/hqapi.sh group sync --name="CPUS" --clearRoles
CPUS: Clearing 1 roles
CPUS: Success (now contains 0 roles)
Ryan Morgan made changes -
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Wes Schlichter made changes -
Verify By kparikh
Ranking 15570000000
Component/s HQApi [ 10190 ]
Key HHQ-4145 HQAPI-78
Affects Version/s 4.3 [ 10500 ]
Regression No
Project Hyperic HQ [ 10022 ] HQApi [ 10160 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:
    Last comment:
    3 years, 39 weeks, 5 days ago