Giter Site home page Giter Site logo

miqbox's Introduction

digitronik

miqbox's People

Contributors

digitronik avatar ganeshhubale avatar mnadeem92 avatar valaparthvi avatar yadnyawalkya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

miqbox's Issues

[Feature Request] Search filter to image list

Searching single image from large image list like upstream is more often waste of time, we need some solution to search local and remote images with search filters, something like,

miqbox images -l <image_name>

Most importantly we need to do that without harming its core functions like displaying image list without any extra argument, like,

miqbox image -l or miqbox image -r

We were in search of solution in which we would have used first command. Later we came across technical limitation of click in which click option can not behave as a optional and compulsory both, there is one PR open on repo too.

As a simple solution, we can utilize another option, lets call -f, which can be fully responsible for handling search filter and leaves other options -l and -r to work as they were working previously. Final feature would be something like,

miqbox images -l -f hammer

Suggestions are welcomed.

Need to handle exception for unconfigured box

when we don't set downstream repository and try to pull image or check image we are getting error of improper url. we need to handle this with proper msg.

Version: (5.8, 5.9, 5.10, 5.11) [5.11]: 5.10
Traceback (most recent call last):
  File "/home/ndhandre/Projects/miqbox/env/bin/miqbox", line 11, in <module>
    load_entry_point('miqbox', 'console_scripts', 'miqbox')()
  File "/home/ndhandre/Projects/miqbox/env/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/ndhandre/Projects/miqbox/env/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/ndhandre/Projects/miqbox/env/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ndhandre/Projects/miqbox/env/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ndhandre/Projects/miqbox/env/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/ndhandre/Projects/miqbox/env/lib/python3.7/site-packages/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/home/ndhandre/Projects/miqbox/env/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/ndhandre/Projects/miqbox/miqbox/miqbox.py", line 530, in images
    for img in get_repo_img(url=url, extension=extension):
  File "/home/ndhandre/Projects/miqbox/miqbox/miqbox.py", line 208, in get_repo_img
    page = requests.get(url, verify=ssl_verify).text
  File "/home/ndhandre/Projects/miqbox/env/lib/python3.7/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/home/ndhandre/Projects/miqbox/env/lib/python3.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/ndhandre/Projects/miqbox/env/lib/python3.7/site-packages/requests/sessions.py", line 519, in request
    prep = self.prepare_request(req)
  File "/home/ndhandre/Projects/miqbox/env/lib/python3.7/site-packages/requests/sessions.py", line 462, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/home/ndhandre/Projects/miqbox/env/lib/python3.7/site-packages/requests/models.py", line 313, in prepare
    self.prepare_url(url, params)
  File "/home/ndhandre/Projects/miqbox/env/lib/python3.7/site-packages/requests/models.py", line 387, in prepare_url
    raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL 'None/builds/cfme/5.10/stable': No schema supplied. Perhaps you meant http://None/builds/cfme/5.10/stable?```

Error occured while creating appliance

  • Following error occurred while creating appliance using miqbox create command.
Base appliance disk created...
Database disk created...
libvirt: CPU Driver error : operation failed: guest CPU doesn't match specification: extra features: hypervisor, missing features: hle,rtm,mpx,rdseed,adx,smap,xsavec,xgetbv1,3dnowprefetch
Traceback (most recent call last):
  File "/home/ghubale/venv/bin/miqbox", line 10, in <module>
    sys.exit(cli())
  File "/home/ghubale/venv/lib/python2.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/ghubale/venv/lib/python2.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/ghubale/venv/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ghubale/venv/lib/python2.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ghubale/venv/lib/python2.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/ghubale/venv/lib/python2.7/site-packages/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/home/ghubale/venv/lib/python2.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/ghubale/venv/lib/python2.7/site-packages/miqbox/miqbox.py", line 599, in create
    dom.create()
  File "/home/ghubale/venv/lib/python2.7/site-packages/libvirt.py", line 1068, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirt.libvirtError: operation failed: guest CPU doesn't match specification: extra features: hypervisor, missing features: hle,rtm,mpx,rdseed,adx,smap,xsavec,xgetbv1,3dnowprefetch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.