digitronik / miqbox Goto Github PK
View Code? Open in Web Editor NEWSpin ManageIQ/CFME Appliance locally
License: Other
Spin ManageIQ/CFME Appliance locally
License: Other
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.
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?```
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.