Skip to content

assume a property is one when it isn't a number#5647

Merged
sureshanaparti merged 1 commit intoapache:4.16from
shapeblue:ignoreReplacementForProperty
Jan 3, 2022
Merged

assume a property is one when it isn't a number#5647
sureshanaparti merged 1 commit intoapache:4.16from
shapeblue:ignoreReplacementForProperty

Conversation

@DaanHoogland
Copy link
Copy Markdown
Contributor

Description

This PR handles an OVA that uses a property replacement for a disksize value

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)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@DaanHoogland DaanHoogland requested a review from nvazquez November 1, 2021 10:53
Element disk = (Element)diskElements.item(i);
long diskSize = Long.parseLong(disk.getAttribute("ovf:capacity"));
String diskSizeValue = disk.getAttribute("ovf:capacity");
long diskSize = 1;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

not sure here if we should 'some' or 0 (zero)

Comment on lines +256 to +258
// TODO parse the property to get any value can not be done at registration time
// and will have to be done at deploytime, so for orchestration purposes
// we now assume, a value of one
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

more like a design brainstorm than a TODO

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@DaanHoogland any specific reason for completely not supporting those kinds of templates instead of assuming the size to be 1 ? I think this approach will have some effect on the usage records of the volume also.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@harikrishna-patnala this is only the template and there will be only a "real" disksize on/after deployment. This will only fix registration btw, and assumes deployment is going on as usual, probably for bad reason.

@DaanHoogland
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland 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: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1649

@DaanHoogland
Copy link
Copy Markdown
Contributor Author

@blueorangutan test centos7 vmware-70u1

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + vmware-70u1) has been kicked to run smoke tests

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-2510)
Environment: vmware-70u1 (x2), Advanced Networking with Mgmt server 7
Total time taken: 34952 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5647-t2510-vmware-70u1.zip
Smoke tests completed. 91 look OK, 0 have errors
Only failed tests results shown below:

Test Result Time (s) Test File

@yadvr yadvr changed the base branch from main to 4.16 November 15, 2021 10:16
@yadvr yadvr added this to the 4.16.1.0 milestone Nov 15, 2021
@sureshanaparti sureshanaparti merged commit 5f93bc8 into apache:4.16 Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants