Uploaded image for project: 'PyFi'
  1. PYFI-5

unable to create a package with rules to match hypervisor uuids

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Labels:
      None

      Description

      Using the PyFI package - 0.2.8, we are not able to create packages with rules to match hypervisor UUID.

      1. fifo --version
        fifo 0.2.8
      1. fifo packages create --memory 512MB --cpu_cap 200 --quota 750GB --requirement must uuid =/= 06279ab2-3983-4b5c-9c3d-f74258b2e613 test-package
        Traceback (most recent call last):
        File "/opt/local/bin/fifo", line 132, in <module>
        args.func(args)
        File "/opt/local/lib/python2.7/site-packages/fifo/api/package.py", line 27, in create
        reqs = map(package_rule, args.requirement)
        File "/opt/local/lib/python2.7/site-packages/fifo/api/package.py", line 75, in package_rule
        val = mk_value(rule[3])
        File "/opt/local/lib/python2.7/site-packages/fifo/api/package.py", line 118, in mk_value
        return int(val)
        ValueError: invalid literal for int() with base 10: '06279ab2-3983-4b5c-9c3d-f74258b2e613'

      Other attributes, such as alias appear to work normally.

      1. fifo packages create -p --memory 512MB --cpu_cap 200 --quota 750GB --requirement must alias =/= hyper1 test-package
        0700b008-53dc-47e2-a620-c27453e1c8fe

        Attachments

          Activity

            People

            • Assignee:
              heinz Heinz N. Gies
              Reporter:
              mdillury Marcus Dillury
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: