stackhpc / stackhpc/ansible-collection-openstack

os_projects is failing due to nova api version

Open
#31 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jinja
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Description

I've encountered that while running CI with the following error:

TASK [stackhpc.openstack.os_projects : Ensure quotas are set] ****************** ... "msg": "BadRequestException: 400: Client Error for url: <redacted, Invalid input for field/attribute quota_set. Value: {'fixed_ips': -1, 'injected_file_content_bytes': -1}. Additional properties are not allowed ('fixed_ips' was unexpected)"}

Fixed IP quotas work only up to version 2.35 as per documentation:
https://docs.ansible.com/ansible/latest/collections/openstack/cloud/quota_module.html#parameter-fixed_ips

Solution:
export OS_COMPUTE_API_VERSION=2.3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the os_projects quota task in the CI failure and review how the OpenStack quota module handles the Nova API version. Reproduce the reported BadRequestException with the documented API-version constraint, then verify that the quota task completes successfully in CI without sending unsupported fixed_ips data.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible
Domain
cloud, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.