Skip to content

Increase the length for parameters that expect a list of domain IDs.#5763

Merged
sureshanaparti merged 1 commit into
apache:4.16from
CLDIN:increase-domainids-length-in-updateserviceoffering
Dec 15, 2021
Merged

Increase the length for parameters that expect a list of domain IDs.#5763
sureshanaparti merged 1 commit into
apache:4.16from
CLDIN:increase-domainids-length-in-updateserviceoffering

Conversation

@GabrielBrascher
Copy link
Copy Markdown
Member

Description

This PR proposes setting a length for domain id parameters that allow passing a list of UUIDs separated by a comma. Allowing to run the API command in use-cases where there are many domain admins.

Currently when calling API command with multiple domain ids (for example updateServiceOffering) it leads to the following API error:

Error: (HTTP 431, error code 9999) Unable to execute API command updateserviceoffering due to invalid value.
Value greater than max allowed length 255 for param: domainIds"

I am targeting this implementation at 4.16.1.0 and considering it a bug due to the fact that we could not relly on the API to execute a few critical updates.

Admins end up either calling multiple times the API or (:warning: don't go this way) doing DB changes.

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

Currently, when updating a service offering there is a limitation of the number of domains the offering can be updated.

Multiple domain ids lead to the following API error:
Error: (HTTP 431, error code 9999) Unable to execute API command updateserviceoffering due to invalid value. Value greater than max allowed length 255 for param: domainIds"
@GabrielBrascher GabrielBrascher added this to the 4.16.1.0 milestone Dec 10, 2021
@GabrielBrascher GabrielBrascher self-assigned this Dec 10, 2021
@wido
Copy link
Copy Markdown
Contributor

wido commented Dec 10, 2021

@GabrielBrascher
Copy link
Copy Markdown
Member Author

@GabrielBrascher
Copy link
Copy Markdown
Member Author

GabrielBrascher commented Dec 13, 2021

@wido just updating that updateBackupOffering does not have domain IDs; therefore, it does not need changes.

Copy link
Copy Markdown
Contributor

@sureshanaparti sureshanaparti 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

@sureshanaparti
Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@sureshanaparti 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 1888

@sureshanaparti
Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

@sureshanaparti 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-2656)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 32392 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5763-t2656-kvm-centos7.zip
Smoke tests completed. 90 look OK, 1 have errors
Only failed tests results shown below:

Test Result Time (s) Test File
test_08_arping_in_ssvm Failure 5.18 test_diagnostics.py

@weizhouapache
Copy link
Copy Markdown
Member

code LGTM

@sureshanaparti
Copy link
Copy Markdown
Contributor

Trillian test result (tid-2656) Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7 Total time taken: 32392 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5763-t2656-kvm-centos7.zip Smoke tests completed. 90 look OK, 1 have errors Only failed tests results shown below:

Test Result Time (s) Test File
test_08_arping_in_ssvm Failure 5.18 test_diagnostics.py

Test failure ^^^ is not related to the changes in this PR.

@sureshanaparti sureshanaparti merged commit 8ace272 into apache:4.16 Dec 15, 2021
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Dec 20, 2021
)

Currently, when updating a service offering there is a limitation of the number of domains the offering can be updated.

Multiple domain ids lead to the following API error:
Error: (HTTP 431, error code 9999) Unable to execute API command updateserviceoffering due to invalid value. Value greater than max allowed length 255 for param: domainIds"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

complexity:trivial 10 minnutes to a few days at most Severity:Trivial type:bug

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants