Skip to content

Unify templates/ISOs checksum API output#2911

Merged
yadvr merged 1 commit into
apache:4.11from
shapeblue:checksumoutputunify
Oct 21, 2018
Merged

Unify templates/ISOs checksum API output#2911
yadvr merged 1 commit into
apache:4.11from
shapeblue:checksumoutputunify

Conversation

@nvazquez
Copy link
Copy Markdown
Contributor

@nvazquez nvazquez commented Oct 19, 2018

Description

Unify checksum API output for templates and ISOs: not list the checksum algorithm on:

  • KVM direct downloads

  • On in progress normal template downloads. The algorithm is shown on the listtemplates API, but after it is downloaded it is not shown anymore:

(qa11) 🐵 > list templates id=0699767e-ce21-4967-a53a-3c0f37fe9154 templatefilter=all filter=status,checksum
{
  "count": 1,
  "template": [
    {
      "checksum": "{SHA-256}ae490ce8b7a55fa92365f72e7581c3eed651da710794989f263f3816b9dc2ea9",
      "status": "50% Downloaded",
    }
  ]
}
(qa11) 🐵 > list templates id=0699767e-ce21-4967-a53a-3c0f37fe9154 templatefilter=all
{
  "count": 1,
  "template": [
    {
      "checksum": "ae490ce8b7a55fa92365f72e7581c3eed651da710794989f263f3816b9dc2ea9",
      "status": "Download Complete",
    }
  ]
}

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)

Screenshots (if appropriate):

How Has This Been Tested?

  • KVM direct downloads:
(local) SBCM5> list templates templatefilter=all id=7713ca67-cf3a-4281-82fb-58b5ddc25d6b filter=status,checksum
{
  "count": 1,
  "template": [
    {
      "checksum": "6952e58f39b470bd166ace11ffd20bf479bed936",
      "status": "Bypassed Secondary Storage"
    }
  ]
}
  • Non direct downloads:
(local) SBCM5> list templates templatefilter=all filter=status,checksum id=c612129c-0fd0-449e-81f6-4d69ab11e5cb
{
  "count": 1,
  "template": [
    {
      "checksum": "6952e58f39b470bd166ace11ffd20bf479bed936",
      "status": "84% Downloaded"
    }
  ]
}
(local) SBCM5> list templates templatefilter=all filter=status,checksum id=c612129c-0fd0-449e-81f6-4d69ab11e5cb
{
  "count": 1,
  "template": [
    {
      "checksum": "6952e58f39b470bd166ace11ffd20bf479bed936",
      "status": "Download Complete"
    }
  ]
}

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Oct 20, 2018

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

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

@nvazquez
Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-3096)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 24725 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2911-t3096-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Smoke tests completed. 67 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

@yadvr yadvr merged commit 5cf163d into apache:4.11 Oct 21, 2018
@yadvr yadvr added this to the 4.11.3.0 milestone Oct 21, 2018
@yadvr yadvr added the type:bug label Oct 21, 2018
@yadvr yadvr modified the milestones: 4.11.3.0, 4.11.2.0 Oct 24, 2018
@DaanHoogland
Copy link
Copy Markdown
Contributor

@nvazquez don't we want to see the algorithm?

@nvazquez
Copy link
Copy Markdown
Contributor Author

@DaanHoogland I prefer not showing it, as it is important for the template registration, and at that point the user can control which algorithm to provide. But after the template gets registered it does not give any other value IMHO.

@nvazquez nvazquez deleted the checksumoutputunify branch November 7, 2018 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants