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

VM Migration Can't Set Quota #91

Open
Smithx10 opened this issue Mar 18, 2023 · 2 comments
Open

VM Migration Can't Set Quota #91

Smithx10 opened this issue Mar 18, 2023 · 2 comments

Comments

@Smithx10
Copy link

During a Migration we saw this. I'm not 100% sure if the operator resized these instances outside of the inst resize, or went higher than the "billing id". I believe during this failure the cancel chain didn't walk back the changes and booted this one up with quota=none.

        {
          "type": "progress",
          "message": "switching instances",
          "phase": "switch",
          "state": "failed",
          "started_timestamp": "2023-03-18T04:32:43.408Z",
          "current_progress": 1,
          "total_progress": 100,
          "job_uuid": "9448d587-366a-4dd1-968d-145f8733f3b3",
          "finished_timestamp": "2023-03-18T04:32:56.232Z",
          "error": "zfs set failure: Command failed: /usr/sbin/zfs set quota=88992907263 zones/3be3db4b-9a22-40cb-8b02-85f9b0927890\ncannot set property for 'zones/3be3db4b-9a22-40cb-8b02-85f9b0927890': size is less than current used or reserved space\n",
          "disallowRetry": true
        }
@Smithx10 Smithx10 changed the title Can't Set Quota VM Migration Can't Set Quota Mar 18, 2023
@danmcd
Copy link

danmcd commented Mar 20, 2023

"size is less than current used or reserved space" From libzfs...

        case ENOSPC:
                /*
                 * For quotas and reservations, ENOSPC indicates
                 * something different; setting a quota or reservation
                 * doesn't use any disk space.
                 */
                switch (prop) { 
                case ZFS_PROP_QUOTA:
                case ZFS_PROP_REFQUOTA:
                        zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
                            "size is less than current used or "
                            "reserved space")); 
                        (void) zfs_error(hdl, EZFS_PROPSPACE, errbuf);
                        break;

There may be some interaction with refreservation and other dataset properties.

@bahamat
Copy link
Member

bahamat commented Jan 5, 2024

I think this was fixed as part of db7971d3 which is included in release-20231130 and later. @Smithx10 Can you test this on a platform with that change?

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

No branches or pull requests

3 participants