Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to create Project Resource Policy #2988

Closed
Tracked by #2987
ironAiken2 opened this issue Dec 24, 2024 · 0 comments · Fixed by #2989
Closed
Tracked by #2987

Failed to create Project Resource Policy #2988

ironAiken2 opened this issue Dec 24, 2024 · 0 comments · Fixed by #2989
Assignees

Comments

@ironAiken2
Copy link
Contributor

What Operating System(s) are you seeing this problem on?

macOS (Apple Silicon)

Backend.AI version

24.12.0a1

Describe the bug

Failed to create Project Resource Policy

Error:

"(sqlalchemy.dialects.postgresql.asyncpg.Error) <class 'asyncpg.exceptions.DataError'>: invalid input for query argument $4: Undefined ('UndefinedType' object cannot be interpreted as an integer)\n[SQL: INSERT INTO project_resource_policies (name, max_vfolder_count, max_quota_scope_size, max_network_count) VALUES (%s, %s, %s, %s)]\n[parameters: ('test', 0, -1, Undefined)]\n(Background on this error at: https://sqlalche.me/e/14/dbapi)"

To Reproduce

No response

Expected Behavior

No response

Anything else?

No response

@ironAiken2 ironAiken2 self-assigned this Dec 24, 2024
ironAiken2 added a commit that referenced this issue Dec 26, 2024
<!--
Please precisely, concisely, and concretely describe what this PR changes, the rationale behind codes,
and how it affects the users and other developers.
-->

### This PR resolves [#2988](#2988) issue.

Related PR: [Core #2857](lablup/backend.ai#2857)

Fixes an issue where the addition of the `max_network_count` field to the Project resource policy prevented the creation of a new project resource policy due to the undefinedType input of that field.

**Changes:**
- Since core version "24.12.0", `max_network_count` field was added to the proeject resource policy.

**Checklist:** (if applicable)

- [ ] Mention to the original issue
- [ ] Documentation
- [ ] Minium required manager version
- [ ] Specific setting for review (eg., KB link, endpoint or how to setup)
- [ ] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant