Skip to content

api: include tags in listvmsnapshots response#3216

Merged
yadvr merged 1 commit intoapache:masterfrom
shapeblue:vm-snapshot-tags-response
May 10, 2019
Merged

api: include tags in listvmsnapshots response#3216
yadvr merged 1 commit intoapache:masterfrom
shapeblue:vm-snapshot-tags-response

Conversation

@yadvr
Copy link
Member

@yadvr yadvr commented Mar 12, 2019

Problem: Tags of VM snapshots are not returned as part of the listVMSnapshots API and therefore was not shown in the UI.
Root Cause: The API response creator was not setting the tags in the API response.
Solution: The issue was fixed to return tags of a VM snapshot as part of the listVMSnapshots API response and now it is possible to list/add/remove tags using the UI. The tags are also included for VMSnapshot usage records in the listUsageRecords API response when includetags=true parameter is passed.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

This ensures that tags of a VM snapshot are listed in the UI, available
in the list vmsnapshots API response.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr yadvr added this to the 4.13.0.0 milestone Mar 12, 2019
@borisstoyanov
Copy link
Contributor

@blueorangtan package

@yadvr
Copy link
Member Author

yadvr commented Mar 26, 2019

@blueorangutan package

@blueorangutan
Copy link

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2647

@yadvr
Copy link
Member Author

yadvr commented Mar 26, 2019

@blueorangutan test

@blueorangutan
Copy link

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan
Copy link

Trillian test result (tid-3447)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 23474 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3216-t3447-kvm-centos7.zip
Smoke tests completed. 70 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

@yadvr yadvr changed the title api: include tags in listvmsnapshots response [WIP DO NOT MERGE] api: include tags in listvmsnapshots response Mar 29, 2019
@yadvr yadvr added the type:bug label Mar 29, 2019
@yadvr yadvr requested a review from borisstoyanov March 29, 2019 06:42
Copy link
Contributor

@nvazquez nvazquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM

Copy link
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tags are listed as following:

      "tags": [
        {
          "account": "user",
          "domain": "ROOT",
          "domainid": "c1bf87c5-4fb7-11e9-b7a8-1e004901077b",
          "key": "vm-snap-tag1",
          "resourceid": "b1d32493-33fa-47cb-bcd8-a3d5f53dd499",
          "resourcetype": "VMSnapshot",
          "value": "vm-snap-tag1-value"
        }
      ],

@DagSonsteboSB
Copy link

LGTM

@yadvr yadvr changed the title [WIP DO NOT MERGE] api: include tags in listvmsnapshots response api: include tags in listvmsnapshots response May 10, 2019
@yadvr yadvr merged commit bfad334 into apache:master May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants