[RFC PATCH V2 00/31] Split code into Wok server and Kimchi plugin

Github branch URL: https://github.com/lcorreia/kimchi/tree/lcorreia/wok-v2 This patchset splits code into web server framework (Wok) and virtualization layer functionality (Kimchi, made a plugin). Wok stands for Webserver Originated from Kimchi. It's now stable and working. Despite the size of patchset, the review will be straightforward. The biggest patches have only repetitive changes, like file/variable renames or URI changes. Patches organization: * 01 to 04: just renames/copies files, no code changes. * 05 to 13: initial changes - mostly repetitive stuff like renames * 14 and 15: core changes - a good summary of reorganization done to the code * 16 to 28: small fixes necessary for the reorganization to work * 29 to 31: additional fixes not specific to this new structure Patches 01 to 28 should be applied as a single commit in order to not break functionality. They are separated here to easy the reviewers work. The patchset is [RFC] because of that and also because there are some todo's yet: * TODO: Split error messages between wok and kimchi * TODO: Move netinfo.py from wok to kimchi (requires ginger adaptation for that) * TODO: Still need to run more detailed/deep tests This hopefully will be the base for next release (just after 1.5). Thanks, Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> Lucio Correia (31): Create kimchi plugin Rename src/kimchi to src/wok Rename kimchi-named files to wok Duplicate some kimchi files back to wok Update wok docs Update kimchi plugin docs Update wok build files Update kimchi plugin makefiles Update wok daemon and specs Update kimchi plugin rpm specs Adapt imports to the new plugin structure Update server references to wok Use plugin relative URLs Setup wok Setup kimchi plugin Use InternalRedirect for all plugin redirects Dynamically add authed URLs to plugin conf Do not use tabs dir for kimchi plugin html templates Refer to kimchi plugin specific js/css in htmls Do not generate help index Fix import_module Make render_cheetah_file() plugin-aware Make cachebust's href() plugin-aware Default to first tab of first plugin Fix storage pool URI split Correctly join help pathes for plugins case Install plugin .mo files to default locale dir Adapt automated tests to the new plugin structure Use pool_uri to avoid case pool_name is not defined Fix Fedora RPM build issue Organize imports in all .py files .gitignore | 18 +- COPYING | 13 +- Makefile.am | 91 +- config/Makefile.am | 18 - config/ui/Makefile.am | 22 - config/ui/tabs.xml | 38 - configure.ac | 38 +- contrib/DEBIAN/control.in | 15 +- contrib/DEBIAN/postrm | 4 +- contrib/Makefile.am | 12 +- contrib/kimchi.spec.fedora.in | 189 -- contrib/kimchi.spec.suse.in | 120 - contrib/kimchid-upstart.conf.debian | 34 - contrib/kimchid-upstart.conf.fedora | 33 - contrib/kimchid.service.fedora | 13 - contrib/kimchid.sysvinit | 104 - contrib/make-deb.sh.in | 2 +- contrib/wok.spec.fedora.in | 159 ++ contrib/wok.spec.suse.in | 94 + contrib/wokd-upstart.conf.debian | 28 + contrib/wokd-upstart.conf.fedora | 28 + contrib/wokd.service.fedora | 13 + contrib/wokd.sysvinit | 104 + docs/API.md | 1123 +--------- docs/Makefile.am | 9 +- docs/README-federation.md | 60 - docs/README.md | 202 +-- docs/{kimchid.8.in => wokd.8.in} | 0 plugins/Makefile.am | 2 +- plugins/kimchi/.gitignore | 37 + plugins/kimchi/API.json | 836 +++++++ plugins/kimchi/INSTALL | 369 +++ plugins/kimchi/Makefile.am | 159 ++ plugins/kimchi/README.md | 1 + plugins/kimchi/VERSION | 1 + plugins/kimchi/__init__.py | 21 + plugins/kimchi/autogen.sh | 21 + plugins/kimchi/build-aux/config.rpath | 672 ++++++ plugins/kimchi/build-aux/genChangelog | 25 + plugins/kimchi/build-aux/pkg-version | 59 + plugins/kimchi/config.py.in | 139 ++ plugins/kimchi/config.rpath | 672 ++++++ plugins/kimchi/configure.ac | 123 + plugins/kimchi/contrib/DEBIAN/Makefile.am | 17 + plugins/kimchi/contrib/DEBIAN/control.in | 36 + plugins/kimchi/contrib/Makefile.am | 34 + plugins/kimchi/contrib/check_i18n.py | 82 + plugins/kimchi/contrib/kimchi.spec.fedora.in | 124 + plugins/kimchi/contrib/kimchi.spec.suse.in | 108 + {contrib => plugins/kimchi/contrib}/make-deb.sh.in | 0 plugins/kimchi/control/Makefile.am | 27 + plugins/kimchi/control/__init__.py | 26 + plugins/kimchi/control/config.py | 57 + plugins/kimchi/control/cpuinfo.py | 37 + plugins/kimchi/control/debugreports.py | 61 + plugins/kimchi/control/groups.py | 28 + plugins/kimchi/control/host.py | 157 ++ plugins/kimchi/control/interfaces.py | 46 + plugins/kimchi/control/networks.py | 54 + plugins/kimchi/control/peers.py | 29 + plugins/kimchi/control/storagepools.py | 116 + plugins/kimchi/control/storageservers.py | 60 + plugins/kimchi/control/storagevolumes.py | 83 + plugins/kimchi/control/tasks.py | 37 + plugins/kimchi/control/templates.py | 58 + plugins/kimchi/control/users.py | 35 + plugins/kimchi/control/vm/Makefile.am | 26 + plugins/kimchi/control/vm/__init__.py | 26 + plugins/kimchi/control/vm/hostdevs.py | 43 + plugins/kimchi/control/vm/ifaces.py | 45 + plugins/kimchi/control/vm/snapshots.py | 58 + plugins/kimchi/control/vm/storages.py | 45 + plugins/kimchi/control/vms.py | 67 + plugins/kimchi/disks.py | 196 ++ plugins/kimchi/distroloader.py | 67 + {src => plugins/kimchi}/distros.d/Makefile.am | 0 {src => plugins/kimchi}/distros.d/debian.json | 0 {src => plugins/kimchi}/distros.d/fedora.json | 0 {src => plugins/kimchi}/distros.d/gentoo.json | 0 {src => plugins/kimchi}/distros.d/opensuse.json | 0 {src => plugins/kimchi}/distros.d/ubuntu.json | 0 plugins/kimchi/docs/API.md | 1147 ++++++++++ plugins/kimchi/docs/Makefile.am | 28 + plugins/kimchi/docs/README-federation.md | 60 + plugins/kimchi/docs/README.md | 247 ++ {docs => plugins/kimchi/docs}/kimchi-guest.png | Bin 192281 -> 192281 bytes {docs => plugins/kimchi/docs}/kimchi-login.png | Bin 318041 -> 318041 bytes {docs => plugins/kimchi/docs}/kimchi-templates.png | Bin 329678 -> 329678 bytes {src => plugins}/kimchi/i18n.py | 0 plugins/kimchi/imageinfo.py | 72 + plugins/kimchi/iscsi.py | 88 + plugins/kimchi/isoinfo.py | 506 +++++ plugins/kimchi/kimchi.conf | 45 + plugins/kimchi/kvmusertests.py | 79 + plugins/kimchi/m4/ac_python_module.m4 | 30 + plugins/kimchi/m4/gettext.m4 | 383 ++++ plugins/kimchi/m4/iconv.m4 | 214 ++ plugins/kimchi/m4/intlmacosx.m4 | 51 + plugins/kimchi/m4/lib-ld.m4 | 110 + plugins/kimchi/m4/lib-link.m4 | 774 +++++++ plugins/kimchi/m4/lib-prefix.m4 | 224 ++ plugins/kimchi/m4/nls.m4 | 32 + plugins/kimchi/m4/po.m4 | 449 ++++ plugins/kimchi/m4/progtest.m4 | 92 + plugins/kimchi/mockmodel.py | 624 +++++ plugins/kimchi/model/Makefile.am | 25 + {src => plugins}/kimchi/model/__init__.py | 0 plugins/kimchi/model/config.py | 176 ++ plugins/kimchi/model/cpuinfo.py | 126 ++ plugins/kimchi/model/debugreports.py | 213 ++ plugins/kimchi/model/diskutils.py | 75 + plugins/kimchi/model/featuretests.py | 259 +++ plugins/kimchi/model/groups.py | 67 + plugins/kimchi/model/host.py | 476 ++++ plugins/kimchi/model/hostdev.py | 324 +++ plugins/kimchi/model/interfaces.py | 44 + plugins/kimchi/model/libvirtconnection.py | 136 ++ plugins/kimchi/model/libvirtstoragepool.py | 264 +++ plugins/kimchi/model/model.py | 52 + plugins/kimchi/model/networks.py | 381 ++++ plugins/kimchi/model/peers.py | 72 + plugins/kimchi/model/storagepools.py | 478 ++++ plugins/kimchi/model/storageservers.py | 81 + plugins/kimchi/model/storagetargets.py | 122 + plugins/kimchi/model/storagevolumes.py | 541 +++++ plugins/kimchi/model/tasks.py | 64 + plugins/kimchi/model/templates.py | 303 +++ plugins/kimchi/model/users.py | 90 + plugins/kimchi/model/utils.py | 161 ++ plugins/kimchi/model/vmhostdevs.py | 336 +++ plugins/kimchi/model/vmifaces.py | 186 ++ plugins/kimchi/model/vms.py | 1303 +++++++++++ plugins/kimchi/model/vmsnapshots.py | 204 ++ plugins/kimchi/model/vmstorages.py | 252 +++ plugins/kimchi/osinfo.py | 214 ++ plugins/kimchi/po/LINGUAS | 11 + plugins/kimchi/po/Makefile.in.in | 398 ++++ {po => plugins/kimchi/po}/Makevars | 0 plugins/kimchi/po/POTFILES.in | 3 + plugins/kimchi/po/de_DE.po | 2320 +++++++++++++++++++ plugins/kimchi/po/en_US.po | 2156 ++++++++++++++++++ plugins/kimchi/po/es_ES.po | 2337 +++++++++++++++++++ plugins/kimchi/po/fr_FR.po | 2360 +++++++++++++++++++ {po => plugins/kimchi/po}/gen-pot.in | 0 plugins/kimchi/po/it_IT.po | 2306 +++++++++++++++++++ plugins/kimchi/po/ja_JP.po | 2301 +++++++++++++++++++ {po => plugins/kimchi/po}/kimchi.pot | 0 plugins/kimchi/po/ko_KR.po | 2228 ++++++++++++++++++ plugins/kimchi/po/pt_BR.po | 2370 ++++++++++++++++++++ plugins/kimchi/po/ru_RU.po | 2230 ++++++++++++++++++ plugins/kimchi/po/zh_CN.po | 2196 ++++++++++++++++++ plugins/kimchi/po/zh_TW.po | 2170 ++++++++++++++++++ plugins/kimchi/repositories.py | 529 +++++ plugins/kimchi/root.py | 70 + plugins/kimchi/scan.py | 89 + plugins/kimchi/screenshot.py | 184 ++ plugins/kimchi/swupdate.py | 263 +++ {src => plugins/kimchi}/template.conf | 0 plugins/kimchi/tests/Makefile.am | 50 + plugins/kimchi/tests/iso_gen.py | 212 ++ plugins/kimchi/tests/run_tests.sh.in | 55 + plugins/kimchi/tests/test_authorization.py | 166 ++ plugins/kimchi/tests/test_config.py.in | 193 ++ plugins/kimchi/tests/test_exception.py | 113 + plugins/kimchi/tests/test_host.py | 200 ++ plugins/kimchi/tests/test_mock_network.py | 71 + plugins/kimchi/tests/test_mock_storagepool.py | 141 ++ plugins/kimchi/tests/test_mock_storagevolume.py | 94 + plugins/kimchi/tests/test_mockmodel.py | 139 ++ plugins/kimchi/tests/test_model.py | 1240 ++++++++++ plugins/kimchi/tests/test_model_network.py | 145 ++ plugins/kimchi/tests/test_model_storagepool.py | 105 + plugins/kimchi/tests/test_model_storagevolume.py | 272 +++ plugins/kimchi/tests/test_networkxml.py | 172 ++ plugins/kimchi/tests/test_objectstore.py | 97 + plugins/kimchi/tests/test_osinfo.py | 69 + plugins/kimchi/tests/test_plugin.py | 127 ++ plugins/kimchi/tests/test_rest.py | 1219 ++++++++++ plugins/kimchi/tests/test_rollbackcontext.py | 99 + plugins/kimchi/tests/test_server.py | 289 +++ plugins/kimchi/tests/test_storagepoolxml.py | 171 ++ plugins/kimchi/tests/test_template.py | 362 +++ plugins/kimchi/tests/test_utils.py | 69 + plugins/kimchi/tests/test_vmtemplate.py | 116 + plugins/kimchi/tests/test_yumparser.py | 163 ++ plugins/kimchi/tests/utils.py | 260 +++ plugins/kimchi/ui/Makefile.am | 20 + plugins/kimchi/ui/config/Makefile.am | 22 + plugins/kimchi/ui/config/tab-ext.xml | 38 + plugins/kimchi/ui/css/Makefile.am | 26 + plugins/kimchi/ui/css/theme-default/button.css | 501 +++++ .../kimchi/ui}/css/theme-default/circleGauge.css | 0 .../kimchi/ui}/css/theme-default/form.css | 0 .../kimchi/ui}/css/theme-default/grid.css | 0 plugins/kimchi/ui/css/theme-default/guest-edit.css | 418 ++++ .../ui}/css/theme-default/guest-storage-add.css | 0 plugins/kimchi/ui/css/theme-default/host.css | 287 +++ .../ui}/css/theme-default/jquery-ui.custom.css | 0 .../kimchi/ui}/css/theme-default/line-chart.css | 0 plugins/kimchi/ui/css/theme-default/list.css | 326 +++ plugins/kimchi/ui/css/theme-default/message.css | 135 ++ plugins/kimchi/ui/css/theme-default/network.css | 319 +++ plugins/kimchi/ui/css/theme-default/popover.css | 124 + .../kimchi/ui}/css/theme-default/report-add.css | 0 .../kimchi/ui/css/theme-default/report-rename.css | 39 + .../ui}/css/theme-default/repository-add.css | 0 .../ui}/css/theme-default/repository-edit.css | 0 plugins/kimchi/ui/css/theme-default/storage.css | 654 ++++++ .../css/theme-default/storagepool-add-volume.css | 0 .../kimchi/ui}/css/theme-default/template-edit.css | 0 .../kimchi/ui}/css/theme-default/template.css | 0 .../kimchi/ui/css/theme-default/template_add.css | 313 +++ .../kimchi/ui}/css/theme-default/template_list.css | 0 .../kimchi/ui}/css/theme-default/tile-check.css | 0 .../kimchi/ui}/css/theme-default/toolbar.css | 0 plugins/kimchi/ui/images/Makefile.am | 22 + {ui => plugins/kimchi/ui}/images/icon-centos.png | Bin 4734 -> 4734 bytes {ui => plugins/kimchi/ui}/images/icon-debian.png | Bin 4239 -> 4239 bytes {ui => plugins/kimchi/ui}/images/icon-fedora.png | Bin 4449 -> 4449 bytes {ui => plugins/kimchi/ui}/images/icon-gentoo.png | Bin 15307 -> 15307 bytes {ui => plugins/kimchi/ui}/images/icon-opensuse.png | Bin 3046 -> 3046 bytes {ui => plugins/kimchi/ui}/images/icon-ubuntu.png | Bin 4818 -> 4818 bytes {ui => plugins/kimchi/ui}/images/icon-vm.png | Bin 2976 -> 2976 bytes plugins/kimchi/ui/images/logo.ico | Bin 0 -> 1214 bytes plugins/kimchi/ui/images/theme-default/Makefile.am | 20 + .../kimchi/ui}/images/theme-default/ac22_pause.png | Bin 1219 -> 1219 bytes .../ui}/images/theme-default/ac22_pause_grey.png | Bin 1175 -> 1175 bytes .../ui}/images/theme-default/ac24_resume.png | Bin 1341 -> 1341 bytes .../ui}/images/theme-default/ac24_resume_grey.png | Bin 1282 -> 1282 bytes .../kimchi/ui}/images/theme-default/alert.png | Bin 3537 -> 3537 bytes .../ui/images/theme-default/arrow-down-black.png | Bin 0 -> 2942 bytes .../images/theme-default/arrow-down-disable.png | Bin 472 -> 472 bytes .../kimchi/ui}/images/theme-default/arrow-down.png | Bin 537 -> 537 bytes .../kimchi/ui}/images/theme-default/arrow-up.png | Bin 510 -> 510 bytes .../kimchi/ui}/images/theme-default/arrow_out.png | Bin 3048 -> 3048 bytes plugins/kimchi/ui/images/theme-default/bg-mask.png | Bin 0 -> 2899 bytes .../ui}/images/theme-default/check-green.png | Bin 3501 -> 3501 bytes .../kimchi/ui}/images/theme-default/check-grey.png | Bin 3535 -> 3535 bytes .../ui/images/theme-default/folder-arrow-down.png | Bin 0 -> 2956 bytes .../images/theme-default/folder-arrow-right.png | Bin 2958 -> 2958 bytes .../kimchi/ui}/images/theme-default/group.png | Bin 1703 -> 1703 bytes .../ui}/images/theme-default/host-icon-sprite.png | Bin 1034 -> 1034 bytes .../kimchi/ui}/images/theme-default/icon-alert.png | Bin 3545 -> 3545 bytes .../kimchi/ui}/images/theme-default/icon-back.png | Bin 244 -> 244 bytes .../ui}/images/theme-default/icon-camera.png | Bin 4860 -> 4860 bytes .../ui}/images/theme-default/icon-design.png | Bin 4562 -> 4562 bytes .../ui}/images/theme-default/icon-detail.png | Bin 3079 -> 3079 bytes .../kimchi/ui}/images/theme-default/icon-event.png | Bin 3791 -> 3791 bytes .../kimchi/ui}/images/theme-default/icon-iso.png | Bin 4188 -> 4188 bytes .../kimchi/ui}/images/theme-default/icon-list.png | Bin 2983 -> 2983 bytes .../kimchi/ui}/images/theme-default/icon-load.png | Bin 3678 -> 3678 bytes .../kimchi/ui}/images/theme-default/icon-local.png | Bin 425 -> 425 bytes .../ui}/images/theme-default/icon-power-down.png | Bin 4372 -> 4372 bytes .../ui}/images/theme-default/icon-power-up.png | Bin 4367 -> 4367 bytes .../kimchi/ui}/images/theme-default/icon-qcow2.png | Bin 4684 -> 4684 bytes .../kimchi/ui}/images/theme-default/icon-raw.png | Bin 4679 -> 4679 bytes .../ui}/images/theme-default/icon-remote.png | Bin 1005 -> 1005 bytes .../kimchi/ui}/images/theme-default/icon-reset.png | Bin 4576 -> 4576 bytes .../ui}/images/theme-default/icon-search.png | Bin 4197 -> 4197 bytes .../ui}/images/theme-default/icon-setting.png | Bin 3664 -> 3664 bytes .../kimchi/ui}/images/theme-default/icon-sort.png | Bin 3421 -> 3421 bytes .../kimchi/ui}/images/theme-default/icon-tool.png | Bin 4466 -> 4466 bytes .../kimchi/ui}/images/theme-default/icon-tree.png | Bin 3526 -> 3526 bytes .../kimchi/ui}/images/theme-default/icon-user.png | Bin 5366 -> 5366 bytes .../images/theme-default/icon-volume-default.png | Bin 4265 -> 4265 bytes .../ui}/images/theme-default/kimchi-loading.gif | Bin 6181 -> 6181 bytes .../images/theme-default/kimchi-loading15x15.gif | Bin 1653 -> 1653 bytes .../kimchi/ui}/images/theme-default/loading.gif | Bin 2190 -> 2190 bytes .../kimchi/ui/images/theme-default/logo-white.png | Bin 0 -> 9879 bytes .../ui}/images/theme-default/thumb-guest.png | Bin 3896 -> 3896 bytes .../kimchi/ui}/images/theme-default/thumb-host.png | Bin 5069 -> 5069 bytes .../kimchi/ui}/images/theme-default/user.png | Bin 1322 -> 1322 bytes plugins/kimchi/ui/js/Makefile.am | 27 + plugins/kimchi/ui/js/src/kimchi.api.js | 1355 +++++++++++ {ui => plugins/kimchi/ui}/js/src/kimchi.form.js | 0 plugins/kimchi/ui/js/src/kimchi.grid.js | 528 +++++ plugins/kimchi/ui/js/src/kimchi.guest_add_main.js | 86 + plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js | 759 +++++++ plugins/kimchi/ui/js/src/kimchi.guest_main.js | 511 +++++ .../kimchi/ui/js/src/kimchi.guest_media_main.js | 56 + .../ui/js/src/kimchi.guest_storage_add.main.js | 199 ++ plugins/kimchi/ui/js/src/kimchi.host.js | 858 +++++++ plugins/kimchi/ui/js/src/kimchi.line-chart.js | 202 ++ plugins/kimchi/ui/js/src/kimchi.main.js | 26 + plugins/kimchi/ui/js/src/kimchi.network.js | 391 ++++ plugins/kimchi/ui/js/src/kimchi.report_add_main.js | 72 + .../kimchi/ui/js/src/kimchi.report_rename_main.js | 66 + .../kimchi/ui/js/src/kimchi.repository_add_main.js | 96 + .../ui/js/src/kimchi.repository_edit_main.js | 74 + {ui => plugins/kimchi/ui}/js/src/kimchi.select.js | 0 plugins/kimchi/ui/js/src/kimchi.storage_main.js | 419 ++++ .../ui/js/src/kimchi.storagepool_add_main.js | 415 ++++ .../js/src/kimchi.storagepool_add_volume_main.js | 179 ++ .../kimchi/ui/js/src/kimchi.template_add_main.js | 441 ++++ .../kimchi/ui/js/src/kimchi.template_edit_main.js | 343 +++ plugins/kimchi/ui/js/src/kimchi.template_main.js | 111 + .../kimchi/ui}/js/widgets/circleGauge.js | 0 plugins/kimchi/ui/libs/Makefile.am | 22 + plugins/kimchi/ui/libs/themes/Makefile.am | 18 + plugins/kimchi/ui/libs/themes/base/Makefile.am | 22 + .../kimchi/ui/libs/themes/base/images/Makefile.am | 20 + .../libs/themes/base/images/animated-overlay.gif | Bin 0 -> 1738 bytes .../base/images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 0 -> 180 bytes .../base/images/ui-bg_flat_75_ffffff_40x100.png | Bin 0 -> 178 bytes .../base/images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 0 -> 120 bytes .../base/images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 105 bytes .../base/images/ui-bg_glass_75_dadada_1x400.png | Bin 0 -> 111 bytes .../base/images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 0 -> 110 bytes .../base/images/ui-bg_glass_95_fef1ec_1x400.png | Bin 0 -> 119 bytes .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 0 -> 101 bytes .../themes/base/images/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes .../themes/base/images/ui-icons_2e83ff_256x240.png | Bin 0 -> 4369 bytes .../themes/base/images/ui-icons_454545_256x240.png | Bin 0 -> 4369 bytes .../themes/base/images/ui-icons_888888_256x240.png | Bin 0 -> 4369 bytes .../themes/base/images/ui-icons_cd0a0a_256x240.png | Bin 0 -> 4369 bytes plugins/kimchi/ui/pages/Makefile.am | 22 + plugins/kimchi/ui/pages/error.html.tmpl | 69 + plugins/kimchi/ui/pages/guest-add.html.tmpl | 93 + .../kimchi/ui}/pages/guest-edit.html.tmpl | 0 .../kimchi/ui/pages/guest-storage-add.html.tmpl | 103 + plugins/kimchi/ui/pages/guest.html.tmpl | 77 + plugins/kimchi/ui/pages/guests.html.tmpl | 65 + plugins/kimchi/ui/pages/help/Makefile.am | 34 + plugins/kimchi/ui/pages/help/de_DE/Makefile.am | 23 + .../kimchi/ui}/pages/help/de_DE/guests.dita | 0 .../kimchi/ui}/pages/help/de_DE/host.dita | 0 .../kimchi/ui}/pages/help/de_DE/network.dita | 0 .../kimchi/ui}/pages/help/de_DE/storage.dita | 0 .../kimchi/ui}/pages/help/de_DE/templates.dita | 0 {ui => plugins/kimchi/ui}/pages/help/dita-help.xsl | 0 plugins/kimchi/ui/pages/help/en_US/Makefile.am | 23 + .../kimchi/ui}/pages/help/en_US/guests.dita | 0 .../kimchi/ui}/pages/help/en_US/host.dita | 0 .../kimchi/ui}/pages/help/en_US/network.dita | 0 .../kimchi/ui}/pages/help/en_US/storage.dita | 0 .../kimchi/ui}/pages/help/en_US/templates.dita | 0 plugins/kimchi/ui/pages/help/es_ES/Makefile.am | 23 + .../kimchi/ui}/pages/help/es_ES/guests.dita | 0 .../kimchi/ui}/pages/help/es_ES/host.dita | 0 .../kimchi/ui}/pages/help/es_ES/network.dita | 0 .../kimchi/ui}/pages/help/es_ES/storage.dita | 0 .../kimchi/ui}/pages/help/es_ES/templates.dita | 0 plugins/kimchi/ui/pages/help/fr_FR/Makefile.am | 23 + .../kimchi/ui}/pages/help/fr_FR/guests.dita | 0 .../kimchi/ui}/pages/help/fr_FR/host.dita | 0 .../kimchi/ui}/pages/help/fr_FR/network.dita | 0 .../kimchi/ui}/pages/help/fr_FR/storage.dita | 0 .../kimchi/ui}/pages/help/fr_FR/templates.dita | 0 plugins/kimchi/ui/pages/help/it_IT/Makefile.am | 23 + .../kimchi/ui}/pages/help/it_IT/guests.dita | 0 .../kimchi/ui}/pages/help/it_IT/host.dita | 0 .../kimchi/ui}/pages/help/it_IT/network.dita | 0 .../kimchi/ui}/pages/help/it_IT/storage.dita | 0 .../kimchi/ui}/pages/help/it_IT/templates.dita | 0 plugins/kimchi/ui/pages/help/ja_JP/Makefile.am | 23 + .../kimchi/ui}/pages/help/ja_JP/guests.dita | 0 .../kimchi/ui}/pages/help/ja_JP/host.dita | 0 .../kimchi/ui}/pages/help/ja_JP/network.dita | 0 .../kimchi/ui}/pages/help/ja_JP/storage.dita | 0 .../kimchi/ui}/pages/help/ja_JP/templates.dita | 0 {ui => plugins/kimchi/ui}/pages/help/kimchi.css | 0 plugins/kimchi/ui/pages/help/ko_KR/Makefile.am | 23 + .../kimchi/ui}/pages/help/ko_KR/guests.dita | 0 .../kimchi/ui}/pages/help/ko_KR/host.dita | 0 .../kimchi/ui}/pages/help/ko_KR/network.dita | 0 .../kimchi/ui}/pages/help/ko_KR/storage.dita | 0 .../kimchi/ui}/pages/help/ko_KR/templates.dita | 0 plugins/kimchi/ui/pages/help/pt_BR/Makefile.am | 23 + .../kimchi/ui}/pages/help/pt_BR/guests.dita | 0 .../kimchi/ui}/pages/help/pt_BR/host.dita | 0 .../kimchi/ui}/pages/help/pt_BR/network.dita | 0 .../kimchi/ui}/pages/help/pt_BR/storage.dita | 0 .../kimchi/ui}/pages/help/pt_BR/templates.dita | 0 plugins/kimchi/ui/pages/help/ru_RU/Makefile.am | 23 + .../kimchi/ui}/pages/help/ru_RU/guests.dita | 0 .../kimchi/ui}/pages/help/ru_RU/host.dita | 0 .../kimchi/ui}/pages/help/ru_RU/network.dita | 0 .../kimchi/ui}/pages/help/ru_RU/storage.dita | 0 .../kimchi/ui}/pages/help/ru_RU/templates.dita | 0 plugins/kimchi/ui/pages/help/zh_CN/Makefile.am | 23 + .../kimchi/ui}/pages/help/zh_CN/guests.dita | 0 .../kimchi/ui}/pages/help/zh_CN/host.dita | 0 .../kimchi/ui}/pages/help/zh_CN/network.dita | 0 .../kimchi/ui}/pages/help/zh_CN/storage.dita | 0 .../kimchi/ui}/pages/help/zh_CN/templates.dita | 0 plugins/kimchi/ui/pages/help/zh_TW/Makefile.am | 23 + .../kimchi/ui}/pages/help/zh_TW/guests.dita | 0 .../kimchi/ui}/pages/help/zh_TW/host.dita | 0 .../kimchi/ui}/pages/help/zh_TW/network.dita | 0 .../kimchi/ui}/pages/help/zh_TW/storage.dita | 0 .../kimchi/ui}/pages/help/zh_TW/templates.dita | 0 plugins/kimchi/ui/pages/host.html.tmpl | 177 ++ plugins/kimchi/ui/pages/i18n.json.tmpl | 187 ++ plugins/kimchi/ui/pages/network.html.tmpl | 132 ++ plugins/kimchi/ui/pages/report-add.html.tmpl | 53 + plugins/kimchi/ui/pages/report-rename.html.tmpl | 53 + plugins/kimchi/ui/pages/repository-add.html.tmpl | 105 + plugins/kimchi/ui/pages/repository-edit.html.tmpl | 115 + plugins/kimchi/ui/pages/storage.html.tmpl | 146 ++ .../ui/pages/storagepool-add-volume.html.tmpl | 77 + plugins/kimchi/ui/pages/storagepool-add.html.tmpl | 178 ++ plugins/kimchi/ui/pages/template-add.html.tmpl | 229 ++ plugins/kimchi/ui/pages/template-edit.html.tmpl | 193 ++ plugins/kimchi/ui/pages/templates.html.tmpl | 77 + plugins/kimchi/ui/robots.txt | 2 + plugins/kimchi/ui/spice-html5/Makefile.am | 25 + .../kimchi/ui}/spice-html5/atKeynames.js | 0 {ui => plugins/kimchi/ui}/spice-html5/bitmap.js | 0 plugins/kimchi/ui/spice-html5/css/Makefile.am | 20 + .../kimchi/ui}/spice-html5/css/spice.css | 0 {ui => plugins/kimchi/ui}/spice-html5/cursor.js | 0 {ui => plugins/kimchi/ui}/spice-html5/display.js | 0 {ui => plugins/kimchi/ui}/spice-html5/enums.js | 0 {ui => plugins/kimchi/ui}/spice-html5/inputs.js | 0 {ui => plugins/kimchi/ui}/spice-html5/lz.js | 0 {ui => plugins/kimchi/ui}/spice-html5/main.js | 0 plugins/kimchi/ui/spice-html5/pages/Makefile.am | 20 + .../kimchi/ui/spice-html5/pages/spice_auto.html | 200 ++ {ui => plugins/kimchi/ui}/spice-html5/playback.js | 0 {ui => plugins/kimchi/ui}/spice-html5/png.js | 0 {ui => plugins/kimchi/ui}/spice-html5/quic.js | 0 {ui => plugins/kimchi/ui}/spice-html5/resize.js | 0 .../kimchi/ui}/spice-html5/simulatecursor.js | 0 .../kimchi/ui}/spice-html5/spicearraybuffer.js | 0 {ui => plugins/kimchi/ui}/spice-html5/spiceconn.js | 0 .../kimchi/ui}/spice-html5/spicedataview.js | 0 {ui => plugins/kimchi/ui}/spice-html5/spicemsg.js | 0 {ui => plugins/kimchi/ui}/spice-html5/spicetype.js | 0 .../kimchi/ui/spice-html5/thirdparty/Makefile.am | 20 + .../kimchi/ui}/spice-html5/thirdparty/jsbn.js | 0 .../kimchi/ui}/spice-html5/thirdparty/prng4.js | 0 .../kimchi/ui}/spice-html5/thirdparty/rng.js | 0 .../kimchi/ui}/spice-html5/thirdparty/rsa.js | 0 .../kimchi/ui}/spice-html5/thirdparty/sha1.js | 0 {ui => plugins/kimchi/ui}/spice-html5/ticket.js | 0 {ui => plugins/kimchi/ui}/spice-html5/utils.js | 0 {ui => plugins/kimchi/ui}/spice-html5/webm.js | 0 {ui => plugins/kimchi/ui}/spice-html5/wire.js | 0 plugins/kimchi/utils.py | 40 + plugins/kimchi/vmtemplate.py | 431 ++++ plugins/kimchi/xmlutils/Makefile.am | 25 + {src => plugins}/kimchi/xmlutils/__init__.py | 0 {src => plugins}/kimchi/xmlutils/cpu.py | 0 plugins/kimchi/xmlutils/disk.py | 164 ++ plugins/kimchi/xmlutils/graphics.py | 45 + plugins/kimchi/xmlutils/interface.py | 61 + plugins/kimchi/xmlutils/network.py | 122 + {src => plugins}/kimchi/xmlutils/qemucmdline.py | 0 plugins/kimchi/yumparser.py | 271 +++ plugins/sample/API.json | 2 +- plugins/sample/__init__.py | 14 +- plugins/sample/model.py | 4 +- plugins/sample/sample.conf.in | 12 +- plugins/sample/ui/js/util.js | 6 +- .../sample/ui/pages/help/en_US/sample-tab1.html | 2 +- .../sample/ui/pages/help/en_US/sample-tab2.html | 2 +- plugins/sample/ui/pages/i18n.json.tmpl | 2 +- po/Makevars | 2 +- po/POTFILES.in | 3 +- po/gen-pot.in | 2 +- po/{kimchi.pot => wok.pot} | 0 src/Makefile.am | 24 +- src/firewalld.xml | 4 +- src/kimchi.conf.in | 65 - src/kimchi/API.json | 836 ------- src/kimchi/Makefile.am | 61 - src/kimchi/asynctask.py | 74 - src/kimchi/auth.py | 352 --- src/kimchi/cachebust.py | 30 - src/kimchi/config.py.in | 324 --- src/kimchi/control/Makefile.am | 27 - src/kimchi/control/__init__.py | 26 - src/kimchi/control/base.py | 381 ---- src/kimchi/control/config.py | 57 - src/kimchi/control/cpuinfo.py | 37 - src/kimchi/control/debugreports.py | 61 - src/kimchi/control/groups.py | 28 - src/kimchi/control/host.py | 156 -- src/kimchi/control/interfaces.py | 46 - src/kimchi/control/networks.py | 54 - src/kimchi/control/peers.py | 29 - src/kimchi/control/plugins.py | 27 - src/kimchi/control/storagepools.py | 115 - src/kimchi/control/storageservers.py | 60 - src/kimchi/control/storagevolumes.py | 83 - src/kimchi/control/tasks.py | 37 - src/kimchi/control/templates.py | 58 - src/kimchi/control/users.py | 35 - src/kimchi/control/utils.py | 149 -- src/kimchi/control/vm/Makefile.am | 26 - src/kimchi/control/vm/__init__.py | 26 - src/kimchi/control/vm/hostdevs.py | 43 - src/kimchi/control/vm/ifaces.py | 45 - src/kimchi/control/vm/snapshots.py | 58 - src/kimchi/control/vm/storages.py | 45 - src/kimchi/control/vms.py | 66 - src/kimchi/disks.py | 197 -- src/kimchi/distroloader.py | 66 - src/kimchi/exception.py | 102 - src/kimchi/imageinfo.py | 72 - src/kimchi/iscsi.py | 88 - src/kimchi/isoinfo.py | 506 ----- src/kimchi/kvmusertests.py | 79 - src/kimchi/mockmodel.py | 625 ------ src/kimchi/model/Makefile.am | 25 - src/kimchi/model/config.py | 175 -- src/kimchi/model/cpuinfo.py | 126 -- src/kimchi/model/debugreports.py | 211 -- src/kimchi/model/diskutils.py | 75 - src/kimchi/model/featuretests.py | 259 --- src/kimchi/model/groups.py | 67 - src/kimchi/model/host.py | 476 ---- src/kimchi/model/hostdev.py | 323 --- src/kimchi/model/interfaces.py | 43 - src/kimchi/model/libvirtconnection.py | 137 -- src/kimchi/model/libvirtstoragepool.py | 264 --- src/kimchi/model/model.py | 51 - src/kimchi/model/networks.py | 382 ---- src/kimchi/model/peers.py | 72 - src/kimchi/model/plugins.py | 28 - src/kimchi/model/storagepools.py | 476 ---- src/kimchi/model/storageservers.py | 80 - src/kimchi/model/storagetargets.py | 121 - src/kimchi/model/storagevolumes.py | 541 ----- src/kimchi/model/tasks.py | 64 - src/kimchi/model/templates.py | 303 --- src/kimchi/model/users.py | 90 - src/kimchi/model/utils.py | 160 -- src/kimchi/model/vmhostdevs.py | 336 --- src/kimchi/model/vmifaces.py | 186 -- src/kimchi/model/vms.py | 1300 ----------- src/kimchi/model/vmsnapshots.py | 204 -- src/kimchi/model/vmstorages.py | 251 --- src/kimchi/objectstore.py | 133 -- src/kimchi/osinfo.py | 213 -- src/kimchi/proxy.py | 105 - src/kimchi/repositories.py | 529 ----- src/kimchi/root.py | 149 -- src/kimchi/scan.py | 89 - src/kimchi/screenshot.py | 184 -- src/kimchi/server.py | 188 -- src/kimchi/sslcert.py | 91 - src/kimchi/swupdate.py | 262 --- src/kimchi/template.py | 111 - src/kimchi/utils.py | 549 ----- src/kimchi/vmtemplate.py | 430 ---- src/kimchi/vnc.py | 78 - src/kimchi/xmlutils/Makefile.am | 25 - src/kimchi/xmlutils/disk.py | 164 -- src/kimchi/xmlutils/graphics.py | 46 - src/kimchi/xmlutils/interface.py | 62 - src/kimchi/xmlutils/network.py | 123 - src/kimchi/yumparser.py | 271 --- src/kimchid.in | 99 - src/nginx/Makefile.am | 6 +- src/nginx/kimchi.conf.in | 78 - src/nginx/wok.conf.in | 78 + src/wok.conf.in | 65 + src/wok/API.json | 6 + src/wok/Makefile.am | 61 + src/{kimchi => wok}/__init__.py | 0 src/wok/asynctask.py | 74 + src/wok/auth.py | 352 +++ src/{kimchi => wok}/basemodel.py | 0 src/wok/cachebust.py | 35 + src/wok/config.py.in | 202 ++ src/wok/control/Makefile.am | 25 + src/wok/control/__init__.py | 26 + src/wok/control/base.py | 381 ++++ src/wok/control/plugins.py | 27 + src/wok/control/utils.py | 147 ++ src/wok/exception.py | 102 + src/{kimchi => wok}/i18n.py | 0 src/wok/model/Makefile.am | 25 + src/{kimchi => wok}/model/__init__.py | 0 src/wok/model/model.py | 49 + src/wok/model/plugins.py | 28 + src/{kimchi => wok}/netinfo.py | 0 src/{kimchi => wok}/network.py | 0 src/wok/objectstore.py | 132 ++ src/wok/proxy.py | 105 + src/{kimchi => wok}/rollbackcontext.py | 0 src/wok/root.py | 148 ++ src/wok/server.py | 203 ++ src/wok/sslcert.py | 89 + src/wok/template.py | 112 + src/wok/utils.py | 533 +++++ src/wok/vnc.py | 77 + src/wok/xmlutils/Makefile.am | 25 + src/{kimchi/model => wok/xmlutils}/__init__.py | 0 src/{kimchi => wok}/xmlutils/utils.py | 0 src/wokd.in | 99 + tests/Makefile.am | 50 - tests/iso_gen.py | 211 -- tests/run_tests.sh.in | 55 - tests/test_authorization.py | 166 -- tests/test_config.py.in | 196 -- tests/test_exception.py | 112 - tests/test_host.py | 192 -- tests/test_mock_network.py | 71 - tests/test_mock_storagepool.py | 141 -- tests/test_mock_storagevolume.py | 94 - tests/test_mockmodel.py | 138 -- tests/test_model.py | 1228 ---------- tests/test_model_network.py | 144 -- tests/test_model_storagepool.py | 104 - tests/test_model_storagevolume.py | 269 --- tests/test_networkxml.py | 171 -- tests/test_objectstore.py | 96 - tests/test_osinfo.py | 70 - tests/test_plugin.py | 128 -- tests/test_rest.py | 1208 ---------- tests/test_rollbackcontext.py | 99 - tests/test_server.py | 287 --- tests/test_storagepoolxml.py | 171 -- tests/test_template.py | 362 --- tests/test_utils.py | 69 - tests/test_vmtemplate.py | 116 - tests/test_yumparser.py | 162 -- tests/utils.py | 260 --- ui/Makefile.am | 4 +- ui/css/Makefile.am | 2 +- ui/css/theme-default/guest-edit.css | 418 ---- ui/css/theme-default/host.css | 287 --- ui/css/theme-default/list.css | 326 --- ui/css/theme-default/network.css | 319 --- ui/css/theme-default/report-rename.css | 39 - ui/css/theme-default/storage.css | 658 ------ ui/css/theme-default/template_add.css | 313 --- ui/css/theme-default/topbar.css | 4 + ui/images/Makefile.am | 4 +- ui/images/theme-default/Makefile.am | 2 +- ui/js/Makefile.am | 8 +- ui/js/src/kimchi.api.js | 1411 ------------ ui/js/src/kimchi.cookie.js | 40 - ui/js/src/kimchi.grid.js | 528 ----- ui/js/src/kimchi.guest_add_main.js | 86 - ui/js/src/kimchi.guest_edit_main.js | 759 ------- ui/js/src/kimchi.guest_main.js | 511 ----- ui/js/src/kimchi.guest_media_main.js | 56 - ui/js/src/kimchi.guest_storage_add.main.js | 199 -- ui/js/src/kimchi.host.js | 856 ------- ui/js/src/kimchi.lang.js | 50 - ui/js/src/kimchi.line-chart.js | 202 -- ui/js/src/kimchi.login.js | 72 - ui/js/src/kimchi.main.js | 366 --- ui/js/src/kimchi.message.js | 116 - ui/js/src/kimchi.network.js | 391 ---- ui/js/src/kimchi.popable.js | 34 - ui/js/src/kimchi.report_add_main.js | 72 - ui/js/src/kimchi.report_rename_main.js | 66 - ui/js/src/kimchi.repository_add_main.js | 96 - ui/js/src/kimchi.repository_edit_main.js | 74 - ui/js/src/kimchi.storage_main.js | 419 ---- ui/js/src/kimchi.storagepool_add_main.js | 415 ---- ui/js/src/kimchi.storagepool_add_volume_main.js | 179 -- ui/js/src/kimchi.substitute.js | 45 - ui/js/src/kimchi.template_add_main.js | 441 ---- ui/js/src/kimchi.template_edit_main.js | 343 --- ui/js/src/kimchi.template_main.js | 111 - ui/js/src/kimchi.topic.js | 48 - ui/js/src/kimchi.user.js | 43 - ui/js/src/kimchi.utils.js | 193 -- ui/js/src/kimchi.window.js | 70 - ui/js/src/wok.api.js | 91 + ui/js/src/wok.cookie.js | 40 + ui/js/src/wok.lang.js | 50 + ui/js/src/wok.login.js | 72 + ui/js/src/wok.main.js | 355 +++ ui/js/src/wok.message.js | 116 + ui/js/src/{kimchi.object.js => wok.object.js} | 0 ui/js/src/wok.popable.js | 34 + ui/js/src/{kimchi.string.js => wok.string.js} | 0 ui/js/src/wok.substitute.js | 45 + ui/js/src/wok.topic.js | 48 + ui/js/src/wok.user.js | 43 + ui/js/src/wok.utils.js | 193 ++ ui/js/src/wok.window.js | 70 + ui/js/widgets/button-dropDown.js | 2 +- ui/js/widgets/combobox.js | 2 +- ui/js/widgets/filter-select.js | 2 +- ui/js/widgets/select-menu.js | 2 +- ui/libs/Makefile.am | 2 +- ui/libs/themes/base/Makefile.am | 2 +- ui/libs/themes/base/images/Makefile.am | 2 +- ui/pages/Makefile.am | 4 +- ui/pages/error.html.tmpl | 8 +- ui/pages/guest-add.html.tmpl | 93 - ui/pages/guest-storage-add.html.tmpl | 103 - ui/pages/guest.html.tmpl | 77 - ui/pages/help/Makefile.am | 35 - ui/pages/help/de_DE/Makefile.am | 23 - ui/pages/help/en_US/Makefile.am | 23 - ui/pages/help/es_ES/Makefile.am | 23 - ui/pages/help/fr_FR/Makefile.am | 23 - ui/pages/help/gen-index.py | 63 - ui/pages/help/it_IT/Makefile.am | 23 - ui/pages/help/ja_JP/Makefile.am | 23 - ui/pages/help/ko_KR/Makefile.am | 23 - ui/pages/help/pt_BR/Makefile.am | 23 - ui/pages/help/ru_RU/Makefile.am | 23 - ui/pages/help/zh_CN/Makefile.am | 23 - ui/pages/help/zh_TW/Makefile.am | 23 - ui/pages/i18n.json.tmpl | 2 +- ui/pages/kimchi-ui.html.tmpl | 141 -- ui/pages/login.html.tmpl | 8 +- ui/pages/report-add.html.tmpl | 53 - ui/pages/report-rename.html.tmpl | 53 - ui/pages/repository-add.html.tmpl | 105 - ui/pages/repository-edit.html.tmpl | 115 - ui/pages/storagepool-add-volume.html.tmpl | 77 - ui/pages/storagepool-add.html.tmpl | 178 -- ui/pages/tabs/Makefile.am | 20 - ui/pages/tabs/guests.html.tmpl | 56 - ui/pages/tabs/host.html.tmpl | 168 -- ui/pages/tabs/network.html.tmpl | 128 -- ui/pages/tabs/storage.html.tmpl | 142 -- ui/pages/tabs/templates.html.tmpl | 73 - ui/pages/template-add.html.tmpl | 229 -- ui/pages/template-edit.html.tmpl | 193 -- ui/pages/websockify/Makefile.am | 2 +- ui/pages/websockify/console.html | 12 +- ui/pages/wok-ui.html.tmpl | 141 ++ ui/spice-html5/Makefile.am | 25 - ui/spice-html5/css/Makefile.am | 20 - ui/spice-html5/pages/Makefile.am | 20 - ui/spice-html5/pages/spice_auto.html | 200 -- ui/spice-html5/thirdparty/Makefile.am | 20 - 728 files changed, 69789 insertions(+), 37853 deletions(-) delete mode 100644 config/Makefile.am delete mode 100644 config/ui/Makefile.am delete mode 100644 config/ui/tabs.xml delete mode 100644 contrib/kimchi.spec.fedora.in delete mode 100644 contrib/kimchi.spec.suse.in delete mode 100644 contrib/kimchid-upstart.conf.debian delete mode 100644 contrib/kimchid-upstart.conf.fedora delete mode 100644 contrib/kimchid.service.fedora delete mode 100644 contrib/kimchid.sysvinit create mode 100644 contrib/wok.spec.fedora.in create mode 100644 contrib/wok.spec.suse.in create mode 100644 contrib/wokd-upstart.conf.debian create mode 100644 contrib/wokd-upstart.conf.fedora create mode 100644 contrib/wokd.service.fedora create mode 100644 contrib/wokd.sysvinit delete mode 100644 docs/README-federation.md rename docs/{kimchid.8.in => wokd.8.in} (100%) create mode 100644 plugins/kimchi/.gitignore create mode 100644 plugins/kimchi/API.json create mode 100644 plugins/kimchi/INSTALL create mode 100644 plugins/kimchi/Makefile.am create mode 120000 plugins/kimchi/README.md create mode 100644 plugins/kimchi/VERSION create mode 100644 plugins/kimchi/__init__.py create mode 100755 plugins/kimchi/autogen.sh create mode 100644 plugins/kimchi/build-aux/config.rpath create mode 100755 plugins/kimchi/build-aux/genChangelog create mode 100755 plugins/kimchi/build-aux/pkg-version create mode 100644 plugins/kimchi/config.py.in create mode 100644 plugins/kimchi/config.rpath create mode 100644 plugins/kimchi/configure.ac create mode 100644 plugins/kimchi/contrib/DEBIAN/Makefile.am create mode 100644 plugins/kimchi/contrib/DEBIAN/control.in create mode 100644 plugins/kimchi/contrib/Makefile.am create mode 100755 plugins/kimchi/contrib/check_i18n.py create mode 100644 plugins/kimchi/contrib/kimchi.spec.fedora.in create mode 100644 plugins/kimchi/contrib/kimchi.spec.suse.in copy {contrib => plugins/kimchi/contrib}/make-deb.sh.in (100%) create mode 100644 plugins/kimchi/control/Makefile.am create mode 100644 plugins/kimchi/control/__init__.py create mode 100644 plugins/kimchi/control/config.py create mode 100644 plugins/kimchi/control/cpuinfo.py create mode 100644 plugins/kimchi/control/debugreports.py create mode 100644 plugins/kimchi/control/groups.py create mode 100644 plugins/kimchi/control/host.py create mode 100644 plugins/kimchi/control/interfaces.py create mode 100644 plugins/kimchi/control/networks.py create mode 100644 plugins/kimchi/control/peers.py create mode 100644 plugins/kimchi/control/storagepools.py create mode 100644 plugins/kimchi/control/storageservers.py create mode 100644 plugins/kimchi/control/storagevolumes.py create mode 100644 plugins/kimchi/control/tasks.py create mode 100644 plugins/kimchi/control/templates.py create mode 100644 plugins/kimchi/control/users.py create mode 100644 plugins/kimchi/control/vm/Makefile.am create mode 100644 plugins/kimchi/control/vm/__init__.py create mode 100644 plugins/kimchi/control/vm/hostdevs.py create mode 100644 plugins/kimchi/control/vm/ifaces.py create mode 100644 plugins/kimchi/control/vm/snapshots.py create mode 100644 plugins/kimchi/control/vm/storages.py create mode 100644 plugins/kimchi/control/vms.py create mode 100644 plugins/kimchi/disks.py create mode 100644 plugins/kimchi/distroloader.py rename {src => plugins/kimchi}/distros.d/Makefile.am (100%) rename {src => plugins/kimchi}/distros.d/debian.json (100%) rename {src => plugins/kimchi}/distros.d/fedora.json (100%) rename {src => plugins/kimchi}/distros.d/gentoo.json (100%) rename {src => plugins/kimchi}/distros.d/opensuse.json (100%) rename {src => plugins/kimchi}/distros.d/ubuntu.json (100%) create mode 100644 plugins/kimchi/docs/API.md create mode 100644 plugins/kimchi/docs/Makefile.am create mode 100644 plugins/kimchi/docs/README-federation.md create mode 100644 plugins/kimchi/docs/README.md rename {docs => plugins/kimchi/docs}/kimchi-guest.png (100%) rename {docs => plugins/kimchi/docs}/kimchi-login.png (100%) rename {docs => plugins/kimchi/docs}/kimchi-templates.png (100%) copy {src => plugins}/kimchi/i18n.py (100%) create mode 100644 plugins/kimchi/imageinfo.py create mode 100644 plugins/kimchi/iscsi.py create mode 100644 plugins/kimchi/isoinfo.py create mode 100644 plugins/kimchi/kimchi.conf create mode 100644 plugins/kimchi/kvmusertests.py create mode 100644 plugins/kimchi/m4/ac_python_module.m4 create mode 100644 plugins/kimchi/m4/gettext.m4 create mode 100644 plugins/kimchi/m4/iconv.m4 create mode 100644 plugins/kimchi/m4/intlmacosx.m4 create mode 100644 plugins/kimchi/m4/lib-ld.m4 create mode 100644 plugins/kimchi/m4/lib-link.m4 create mode 100644 plugins/kimchi/m4/lib-prefix.m4 create mode 100644 plugins/kimchi/m4/nls.m4 create mode 100644 plugins/kimchi/m4/po.m4 create mode 100644 plugins/kimchi/m4/progtest.m4 create mode 100644 plugins/kimchi/mockmodel.py create mode 100644 plugins/kimchi/model/Makefile.am copy {src => plugins}/kimchi/model/__init__.py (100%) create mode 100644 plugins/kimchi/model/config.py create mode 100644 plugins/kimchi/model/cpuinfo.py create mode 100644 plugins/kimchi/model/debugreports.py create mode 100644 plugins/kimchi/model/diskutils.py create mode 100644 plugins/kimchi/model/featuretests.py create mode 100644 plugins/kimchi/model/groups.py create mode 100644 plugins/kimchi/model/host.py create mode 100644 plugins/kimchi/model/hostdev.py create mode 100644 plugins/kimchi/model/interfaces.py create mode 100644 plugins/kimchi/model/libvirtconnection.py create mode 100644 plugins/kimchi/model/libvirtstoragepool.py create mode 100644 plugins/kimchi/model/model.py create mode 100644 plugins/kimchi/model/networks.py create mode 100644 plugins/kimchi/model/peers.py create mode 100644 plugins/kimchi/model/storagepools.py create mode 100644 plugins/kimchi/model/storageservers.py create mode 100644 plugins/kimchi/model/storagetargets.py create mode 100644 plugins/kimchi/model/storagevolumes.py create mode 100644 plugins/kimchi/model/tasks.py create mode 100644 plugins/kimchi/model/templates.py create mode 100644 plugins/kimchi/model/users.py create mode 100644 plugins/kimchi/model/utils.py create mode 100644 plugins/kimchi/model/vmhostdevs.py create mode 100644 plugins/kimchi/model/vmifaces.py create mode 100644 plugins/kimchi/model/vms.py create mode 100644 plugins/kimchi/model/vmsnapshots.py create mode 100644 plugins/kimchi/model/vmstorages.py create mode 100644 plugins/kimchi/osinfo.py create mode 100644 plugins/kimchi/po/LINGUAS create mode 100644 plugins/kimchi/po/Makefile.in.in copy {po => plugins/kimchi/po}/Makevars (100%) create mode 100644 plugins/kimchi/po/POTFILES.in create mode 100644 plugins/kimchi/po/de_DE.po create mode 100644 plugins/kimchi/po/en_US.po create mode 100644 plugins/kimchi/po/es_ES.po create mode 100644 plugins/kimchi/po/fr_FR.po copy {po => plugins/kimchi/po}/gen-pot.in (100%) create mode 100644 plugins/kimchi/po/it_IT.po create mode 100644 plugins/kimchi/po/ja_JP.po copy {po => plugins/kimchi/po}/kimchi.pot (100%) create mode 100644 plugins/kimchi/po/ko_KR.po create mode 100644 plugins/kimchi/po/pt_BR.po create mode 100644 plugins/kimchi/po/ru_RU.po create mode 100644 plugins/kimchi/po/zh_CN.po create mode 100644 plugins/kimchi/po/zh_TW.po create mode 100644 plugins/kimchi/repositories.py create mode 100644 plugins/kimchi/root.py create mode 100644 plugins/kimchi/scan.py create mode 100644 plugins/kimchi/screenshot.py create mode 100644 plugins/kimchi/swupdate.py rename {src => plugins/kimchi}/template.conf (100%) create mode 100644 plugins/kimchi/tests/Makefile.am create mode 100644 plugins/kimchi/tests/iso_gen.py create mode 100644 plugins/kimchi/tests/run_tests.sh.in create mode 100644 plugins/kimchi/tests/test_authorization.py create mode 100644 plugins/kimchi/tests/test_config.py.in create mode 100644 plugins/kimchi/tests/test_exception.py create mode 100644 plugins/kimchi/tests/test_host.py create mode 100644 plugins/kimchi/tests/test_mock_network.py create mode 100644 plugins/kimchi/tests/test_mock_storagepool.py create mode 100644 plugins/kimchi/tests/test_mock_storagevolume.py create mode 100644 plugins/kimchi/tests/test_mockmodel.py create mode 100644 plugins/kimchi/tests/test_model.py create mode 100644 plugins/kimchi/tests/test_model_network.py create mode 100644 plugins/kimchi/tests/test_model_storagepool.py create mode 100644 plugins/kimchi/tests/test_model_storagevolume.py create mode 100644 plugins/kimchi/tests/test_networkxml.py create mode 100644 plugins/kimchi/tests/test_objectstore.py create mode 100644 plugins/kimchi/tests/test_osinfo.py create mode 100644 plugins/kimchi/tests/test_plugin.py create mode 100644 plugins/kimchi/tests/test_rest.py create mode 100644 plugins/kimchi/tests/test_rollbackcontext.py create mode 100644 plugins/kimchi/tests/test_server.py create mode 100644 plugins/kimchi/tests/test_storagepoolxml.py create mode 100644 plugins/kimchi/tests/test_template.py create mode 100644 plugins/kimchi/tests/test_utils.py create mode 100644 plugins/kimchi/tests/test_vmtemplate.py create mode 100644 plugins/kimchi/tests/test_yumparser.py create mode 100644 plugins/kimchi/tests/utils.py create mode 100644 plugins/kimchi/ui/Makefile.am create mode 100644 plugins/kimchi/ui/config/Makefile.am create mode 100644 plugins/kimchi/ui/config/tab-ext.xml create mode 100644 plugins/kimchi/ui/css/Makefile.am create mode 100644 plugins/kimchi/ui/css/theme-default/button.css rename {ui => plugins/kimchi/ui}/css/theme-default/circleGauge.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/form.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/grid.css (100%) create mode 100644 plugins/kimchi/ui/css/theme-default/guest-edit.css rename {ui => plugins/kimchi/ui}/css/theme-default/guest-storage-add.css (100%) create mode 100644 plugins/kimchi/ui/css/theme-default/host.css rename {ui => plugins/kimchi/ui}/css/theme-default/jquery-ui.custom.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/line-chart.css (100%) create mode 100644 plugins/kimchi/ui/css/theme-default/list.css create mode 100644 plugins/kimchi/ui/css/theme-default/message.css create mode 100644 plugins/kimchi/ui/css/theme-default/network.css create mode 100644 plugins/kimchi/ui/css/theme-default/popover.css rename {ui => plugins/kimchi/ui}/css/theme-default/report-add.css (100%) create mode 100644 plugins/kimchi/ui/css/theme-default/report-rename.css rename {ui => plugins/kimchi/ui}/css/theme-default/repository-add.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/repository-edit.css (100%) create mode 100644 plugins/kimchi/ui/css/theme-default/storage.css rename {ui => plugins/kimchi/ui}/css/theme-default/storagepool-add-volume.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/template-edit.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/template.css (100%) create mode 100644 plugins/kimchi/ui/css/theme-default/template_add.css rename {ui => plugins/kimchi/ui}/css/theme-default/template_list.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/tile-check.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/toolbar.css (100%) create mode 100644 plugins/kimchi/ui/images/Makefile.am rename {ui => plugins/kimchi/ui}/images/icon-centos.png (100%) rename {ui => plugins/kimchi/ui}/images/icon-debian.png (100%) rename {ui => plugins/kimchi/ui}/images/icon-fedora.png (100%) rename {ui => plugins/kimchi/ui}/images/icon-gentoo.png (100%) rename {ui => plugins/kimchi/ui}/images/icon-opensuse.png (100%) rename {ui => plugins/kimchi/ui}/images/icon-ubuntu.png (100%) rename {ui => plugins/kimchi/ui}/images/icon-vm.png (100%) create mode 100644 plugins/kimchi/ui/images/logo.ico create mode 100644 plugins/kimchi/ui/images/theme-default/Makefile.am rename {ui => plugins/kimchi/ui}/images/theme-default/ac22_pause.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/ac22_pause_grey.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/ac24_resume.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/ac24_resume_grey.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/alert.png (100%) create mode 100644 plugins/kimchi/ui/images/theme-default/arrow-down-black.png rename {ui => plugins/kimchi/ui}/images/theme-default/arrow-down-disable.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/arrow-down.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/arrow-up.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/arrow_out.png (100%) create mode 100644 plugins/kimchi/ui/images/theme-default/bg-mask.png rename {ui => plugins/kimchi/ui}/images/theme-default/check-green.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/check-grey.png (100%) create mode 100644 plugins/kimchi/ui/images/theme-default/folder-arrow-down.png rename {ui => plugins/kimchi/ui}/images/theme-default/folder-arrow-right.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/group.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/host-icon-sprite.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-alert.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-back.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-camera.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-design.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-detail.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-event.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-iso.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-list.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-load.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-local.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-power-down.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-power-up.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-qcow2.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-raw.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-remote.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-reset.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-search.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-setting.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-sort.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-tool.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-tree.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-user.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-volume-default.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/kimchi-loading.gif (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/kimchi-loading15x15.gif (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/loading.gif (100%) create mode 100644 plugins/kimchi/ui/images/theme-default/logo-white.png rename {ui => plugins/kimchi/ui}/images/theme-default/thumb-guest.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/thumb-host.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/user.png (100%) create mode 100644 plugins/kimchi/ui/js/Makefile.am create mode 100644 plugins/kimchi/ui/js/src/kimchi.api.js rename {ui => plugins/kimchi/ui}/js/src/kimchi.form.js (100%) create mode 100644 plugins/kimchi/ui/js/src/kimchi.grid.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.guest_add_main.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.guest_main.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.guest_media_main.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.guest_storage_add.main.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.host.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.line-chart.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.main.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.network.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.report_add_main.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.report_rename_main.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.repository_add_main.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.repository_edit_main.js rename {ui => plugins/kimchi/ui}/js/src/kimchi.select.js (100%) create mode 100644 plugins/kimchi/ui/js/src/kimchi.storage_main.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.storagepool_add_main.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.storagepool_add_volume_main.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.template_add_main.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.template_edit_main.js create mode 100644 plugins/kimchi/ui/js/src/kimchi.template_main.js rename {ui => plugins/kimchi/ui}/js/widgets/circleGauge.js (100%) create mode 100644 plugins/kimchi/ui/libs/Makefile.am create mode 100644 plugins/kimchi/ui/libs/themes/Makefile.am create mode 100644 plugins/kimchi/ui/libs/themes/base/Makefile.am create mode 100644 plugins/kimchi/ui/libs/themes/base/images/Makefile.am create mode 100644 plugins/kimchi/ui/libs/themes/base/images/animated-overlay.gif create mode 100644 plugins/kimchi/ui/libs/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png create mode 100644 plugins/kimchi/ui/libs/themes/base/images/ui-bg_flat_75_ffffff_40x100.png create mode 100644 plugins/kimchi/ui/libs/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png create mode 100644 plugins/kimchi/ui/libs/themes/base/images/ui-bg_glass_65_ffffff_1x400.png create mode 100644 plugins/kimchi/ui/libs/themes/base/images/ui-bg_glass_75_dadada_1x400.png create mode 100644 plugins/kimchi/ui/libs/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png create mode 100644 plugins/kimchi/ui/libs/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png create mode 100644 plugins/kimchi/ui/libs/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png create mode 100644 plugins/kimchi/ui/libs/themes/base/images/ui-icons_222222_256x240.png create mode 100644 plugins/kimchi/ui/libs/themes/base/images/ui-icons_2e83ff_256x240.png create mode 100644 plugins/kimchi/ui/libs/themes/base/images/ui-icons_454545_256x240.png create mode 100644 plugins/kimchi/ui/libs/themes/base/images/ui-icons_888888_256x240.png create mode 100644 plugins/kimchi/ui/libs/themes/base/images/ui-icons_cd0a0a_256x240.png create mode 100644 plugins/kimchi/ui/pages/Makefile.am create mode 100644 plugins/kimchi/ui/pages/error.html.tmpl create mode 100644 plugins/kimchi/ui/pages/guest-add.html.tmpl rename {ui => plugins/kimchi/ui}/pages/guest-edit.html.tmpl (100%) create mode 100644 plugins/kimchi/ui/pages/guest-storage-add.html.tmpl create mode 100644 plugins/kimchi/ui/pages/guest.html.tmpl create mode 100644 plugins/kimchi/ui/pages/guests.html.tmpl create mode 100644 plugins/kimchi/ui/pages/help/Makefile.am create mode 100644 plugins/kimchi/ui/pages/help/de_DE/Makefile.am rename {ui => plugins/kimchi/ui}/pages/help/de_DE/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/de_DE/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/de_DE/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/de_DE/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/de_DE/templates.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/dita-help.xsl (100%) create mode 100644 plugins/kimchi/ui/pages/help/en_US/Makefile.am rename {ui => plugins/kimchi/ui}/pages/help/en_US/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/en_US/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/en_US/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/en_US/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/en_US/templates.dita (100%) create mode 100644 plugins/kimchi/ui/pages/help/es_ES/Makefile.am rename {ui => plugins/kimchi/ui}/pages/help/es_ES/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/es_ES/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/es_ES/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/es_ES/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/es_ES/templates.dita (100%) create mode 100644 plugins/kimchi/ui/pages/help/fr_FR/Makefile.am rename {ui => plugins/kimchi/ui}/pages/help/fr_FR/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/fr_FR/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/fr_FR/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/fr_FR/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/fr_FR/templates.dita (100%) create mode 100644 plugins/kimchi/ui/pages/help/it_IT/Makefile.am rename {ui => plugins/kimchi/ui}/pages/help/it_IT/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/it_IT/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/it_IT/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/it_IT/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/it_IT/templates.dita (100%) create mode 100644 plugins/kimchi/ui/pages/help/ja_JP/Makefile.am rename {ui => plugins/kimchi/ui}/pages/help/ja_JP/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ja_JP/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ja_JP/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ja_JP/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ja_JP/templates.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/kimchi.css (100%) create mode 100644 plugins/kimchi/ui/pages/help/ko_KR/Makefile.am rename {ui => plugins/kimchi/ui}/pages/help/ko_KR/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ko_KR/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ko_KR/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ko_KR/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ko_KR/templates.dita (100%) create mode 100644 plugins/kimchi/ui/pages/help/pt_BR/Makefile.am rename {ui => plugins/kimchi/ui}/pages/help/pt_BR/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/pt_BR/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/pt_BR/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/pt_BR/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/pt_BR/templates.dita (100%) create mode 100644 plugins/kimchi/ui/pages/help/ru_RU/Makefile.am rename {ui => plugins/kimchi/ui}/pages/help/ru_RU/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ru_RU/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ru_RU/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ru_RU/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ru_RU/templates.dita (100%) create mode 100644 plugins/kimchi/ui/pages/help/zh_CN/Makefile.am rename {ui => plugins/kimchi/ui}/pages/help/zh_CN/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_CN/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_CN/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_CN/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_CN/templates.dita (100%) create mode 100644 plugins/kimchi/ui/pages/help/zh_TW/Makefile.am rename {ui => plugins/kimchi/ui}/pages/help/zh_TW/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_TW/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_TW/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_TW/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_TW/templates.dita (100%) create mode 100644 plugins/kimchi/ui/pages/host.html.tmpl create mode 100644 plugins/kimchi/ui/pages/i18n.json.tmpl create mode 100644 plugins/kimchi/ui/pages/network.html.tmpl create mode 100644 plugins/kimchi/ui/pages/report-add.html.tmpl create mode 100644 plugins/kimchi/ui/pages/report-rename.html.tmpl create mode 100644 plugins/kimchi/ui/pages/repository-add.html.tmpl create mode 100644 plugins/kimchi/ui/pages/repository-edit.html.tmpl create mode 100644 plugins/kimchi/ui/pages/storage.html.tmpl create mode 100644 plugins/kimchi/ui/pages/storagepool-add-volume.html.tmpl create mode 100644 plugins/kimchi/ui/pages/storagepool-add.html.tmpl create mode 100644 plugins/kimchi/ui/pages/template-add.html.tmpl create mode 100644 plugins/kimchi/ui/pages/template-edit.html.tmpl create mode 100644 plugins/kimchi/ui/pages/templates.html.tmpl create mode 100644 plugins/kimchi/ui/robots.txt create mode 100644 plugins/kimchi/ui/spice-html5/Makefile.am rename {ui => plugins/kimchi/ui}/spice-html5/atKeynames.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/bitmap.js (100%) create mode 100644 plugins/kimchi/ui/spice-html5/css/Makefile.am rename {ui => plugins/kimchi/ui}/spice-html5/css/spice.css (100%) rename {ui => plugins/kimchi/ui}/spice-html5/cursor.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/display.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/enums.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/inputs.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/lz.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/main.js (100%) create mode 100644 plugins/kimchi/ui/spice-html5/pages/Makefile.am create mode 100644 plugins/kimchi/ui/spice-html5/pages/spice_auto.html rename {ui => plugins/kimchi/ui}/spice-html5/playback.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/png.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/quic.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/resize.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/simulatecursor.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/spicearraybuffer.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/spiceconn.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/spicedataview.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/spicemsg.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/spicetype.js (100%) create mode 100644 plugins/kimchi/ui/spice-html5/thirdparty/Makefile.am rename {ui => plugins/kimchi/ui}/spice-html5/thirdparty/jsbn.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/thirdparty/prng4.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/thirdparty/rng.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/thirdparty/rsa.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/thirdparty/sha1.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/ticket.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/utils.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/webm.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/wire.js (100%) create mode 100644 plugins/kimchi/utils.py create mode 100644 plugins/kimchi/vmtemplate.py create mode 100644 plugins/kimchi/xmlutils/Makefile.am rename {src => plugins}/kimchi/xmlutils/__init__.py (100%) rename {src => plugins}/kimchi/xmlutils/cpu.py (100%) create mode 100644 plugins/kimchi/xmlutils/disk.py create mode 100644 plugins/kimchi/xmlutils/graphics.py create mode 100644 plugins/kimchi/xmlutils/interface.py create mode 100644 plugins/kimchi/xmlutils/network.py rename {src => plugins}/kimchi/xmlutils/qemucmdline.py (100%) create mode 100644 plugins/kimchi/yumparser.py rename po/{kimchi.pot => wok.pot} (100%) delete mode 100644 src/kimchi.conf.in delete mode 100644 src/kimchi/API.json delete mode 100644 src/kimchi/Makefile.am delete mode 100644 src/kimchi/asynctask.py delete mode 100644 src/kimchi/auth.py delete mode 100644 src/kimchi/cachebust.py delete mode 100644 src/kimchi/config.py.in delete mode 100644 src/kimchi/control/Makefile.am delete mode 100644 src/kimchi/control/__init__.py delete mode 100644 src/kimchi/control/base.py delete mode 100644 src/kimchi/control/config.py delete mode 100644 src/kimchi/control/cpuinfo.py delete mode 100644 src/kimchi/control/debugreports.py delete mode 100644 src/kimchi/control/groups.py delete mode 100644 src/kimchi/control/host.py delete mode 100644 src/kimchi/control/interfaces.py delete mode 100644 src/kimchi/control/networks.py delete mode 100644 src/kimchi/control/peers.py delete mode 100644 src/kimchi/control/plugins.py delete mode 100644 src/kimchi/control/storagepools.py delete mode 100644 src/kimchi/control/storageservers.py delete mode 100644 src/kimchi/control/storagevolumes.py delete mode 100644 src/kimchi/control/tasks.py delete mode 100644 src/kimchi/control/templates.py delete mode 100644 src/kimchi/control/users.py delete mode 100644 src/kimchi/control/utils.py delete mode 100644 src/kimchi/control/vm/Makefile.am delete mode 100644 src/kimchi/control/vm/__init__.py delete mode 100644 src/kimchi/control/vm/hostdevs.py delete mode 100644 src/kimchi/control/vm/ifaces.py delete mode 100644 src/kimchi/control/vm/snapshots.py delete mode 100644 src/kimchi/control/vm/storages.py delete mode 100644 src/kimchi/control/vms.py delete mode 100644 src/kimchi/disks.py delete mode 100644 src/kimchi/distroloader.py delete mode 100644 src/kimchi/exception.py delete mode 100644 src/kimchi/imageinfo.py delete mode 100644 src/kimchi/iscsi.py delete mode 100644 src/kimchi/isoinfo.py delete mode 100644 src/kimchi/kvmusertests.py delete mode 100644 src/kimchi/mockmodel.py delete mode 100644 src/kimchi/model/Makefile.am delete mode 100644 src/kimchi/model/config.py delete mode 100644 src/kimchi/model/cpuinfo.py delete mode 100644 src/kimchi/model/debugreports.py delete mode 100644 src/kimchi/model/diskutils.py delete mode 100644 src/kimchi/model/featuretests.py delete mode 100644 src/kimchi/model/groups.py delete mode 100644 src/kimchi/model/host.py delete mode 100644 src/kimchi/model/hostdev.py delete mode 100644 src/kimchi/model/interfaces.py delete mode 100644 src/kimchi/model/libvirtconnection.py delete mode 100644 src/kimchi/model/libvirtstoragepool.py delete mode 100644 src/kimchi/model/model.py delete mode 100644 src/kimchi/model/networks.py delete mode 100644 src/kimchi/model/peers.py delete mode 100644 src/kimchi/model/plugins.py delete mode 100644 src/kimchi/model/storagepools.py delete mode 100644 src/kimchi/model/storageservers.py delete mode 100644 src/kimchi/model/storagetargets.py delete mode 100644 src/kimchi/model/storagevolumes.py delete mode 100644 src/kimchi/model/tasks.py delete mode 100644 src/kimchi/model/templates.py delete mode 100644 src/kimchi/model/users.py delete mode 100644 src/kimchi/model/utils.py delete mode 100644 src/kimchi/model/vmhostdevs.py delete mode 100644 src/kimchi/model/vmifaces.py delete mode 100644 src/kimchi/model/vms.py delete mode 100644 src/kimchi/model/vmsnapshots.py delete mode 100644 src/kimchi/model/vmstorages.py delete mode 100644 src/kimchi/objectstore.py delete mode 100644 src/kimchi/osinfo.py delete mode 100644 src/kimchi/proxy.py delete mode 100644 src/kimchi/repositories.py delete mode 100644 src/kimchi/root.py delete mode 100644 src/kimchi/scan.py delete mode 100644 src/kimchi/screenshot.py delete mode 100644 src/kimchi/server.py delete mode 100644 src/kimchi/sslcert.py delete mode 100644 src/kimchi/swupdate.py delete mode 100644 src/kimchi/template.py delete mode 100644 src/kimchi/utils.py delete mode 100644 src/kimchi/vmtemplate.py delete mode 100644 src/kimchi/vnc.py delete mode 100644 src/kimchi/xmlutils/Makefile.am delete mode 100644 src/kimchi/xmlutils/disk.py delete mode 100644 src/kimchi/xmlutils/graphics.py delete mode 100644 src/kimchi/xmlutils/interface.py delete mode 100644 src/kimchi/xmlutils/network.py delete mode 100644 src/kimchi/yumparser.py delete mode 100644 src/kimchid.in delete mode 100644 src/nginx/kimchi.conf.in create mode 100644 src/nginx/wok.conf.in create mode 100644 src/wok.conf.in create mode 100644 src/wok/API.json create mode 100644 src/wok/Makefile.am rename src/{kimchi => wok}/__init__.py (100%) create mode 100644 src/wok/asynctask.py create mode 100644 src/wok/auth.py rename src/{kimchi => wok}/basemodel.py (100%) create mode 100644 src/wok/cachebust.py create mode 100644 src/wok/config.py.in create mode 100644 src/wok/control/Makefile.am create mode 100644 src/wok/control/__init__.py create mode 100644 src/wok/control/base.py create mode 100644 src/wok/control/plugins.py create mode 100644 src/wok/control/utils.py create mode 100644 src/wok/exception.py rename src/{kimchi => wok}/i18n.py (100%) create mode 100644 src/wok/model/Makefile.am copy src/{kimchi => wok}/model/__init__.py (100%) create mode 100644 src/wok/model/model.py create mode 100644 src/wok/model/plugins.py rename src/{kimchi => wok}/netinfo.py (100%) rename src/{kimchi => wok}/network.py (100%) create mode 100644 src/wok/objectstore.py create mode 100644 src/wok/proxy.py rename src/{kimchi => wok}/rollbackcontext.py (100%) create mode 100644 src/wok/root.py create mode 100644 src/wok/server.py create mode 100644 src/wok/sslcert.py create mode 100644 src/wok/template.py create mode 100644 src/wok/utils.py create mode 100644 src/wok/vnc.py create mode 100644 src/wok/xmlutils/Makefile.am rename src/{kimchi/model => wok/xmlutils}/__init__.py (100%) rename src/{kimchi => wok}/xmlutils/utils.py (100%) create mode 100644 src/wokd.in delete mode 100644 tests/Makefile.am delete mode 100644 tests/iso_gen.py delete mode 100644 tests/run_tests.sh.in delete mode 100644 tests/test_authorization.py delete mode 100644 tests/test_config.py.in delete mode 100644 tests/test_exception.py delete mode 100644 tests/test_host.py delete mode 100644 tests/test_mock_network.py delete mode 100644 tests/test_mock_storagepool.py delete mode 100644 tests/test_mock_storagevolume.py delete mode 100644 tests/test_mockmodel.py delete mode 100644 tests/test_model.py delete mode 100644 tests/test_model_network.py delete mode 100644 tests/test_model_storagepool.py delete mode 100644 tests/test_model_storagevolume.py delete mode 100644 tests/test_networkxml.py delete mode 100644 tests/test_objectstore.py delete mode 100644 tests/test_osinfo.py delete mode 100644 tests/test_plugin.py delete mode 100644 tests/test_rest.py delete mode 100644 tests/test_rollbackcontext.py delete mode 100644 tests/test_server.py delete mode 100644 tests/test_storagepoolxml.py delete mode 100644 tests/test_template.py delete mode 100644 tests/test_utils.py delete mode 100644 tests/test_vmtemplate.py delete mode 100644 tests/test_yumparser.py delete mode 100644 tests/utils.py delete mode 100644 ui/css/theme-default/guest-edit.css delete mode 100644 ui/css/theme-default/host.css delete mode 100644 ui/css/theme-default/list.css delete mode 100644 ui/css/theme-default/network.css delete mode 100644 ui/css/theme-default/report-rename.css delete mode 100644 ui/css/theme-default/storage.css delete mode 100644 ui/css/theme-default/template_add.css delete mode 100644 ui/js/src/kimchi.api.js delete mode 100644 ui/js/src/kimchi.cookie.js delete mode 100644 ui/js/src/kimchi.grid.js delete mode 100644 ui/js/src/kimchi.guest_add_main.js delete mode 100644 ui/js/src/kimchi.guest_edit_main.js delete mode 100644 ui/js/src/kimchi.guest_main.js delete mode 100644 ui/js/src/kimchi.guest_media_main.js delete mode 100644 ui/js/src/kimchi.guest_storage_add.main.js delete mode 100644 ui/js/src/kimchi.host.js delete mode 100644 ui/js/src/kimchi.lang.js delete mode 100644 ui/js/src/kimchi.line-chart.js delete mode 100644 ui/js/src/kimchi.login.js delete mode 100644 ui/js/src/kimchi.main.js delete mode 100644 ui/js/src/kimchi.message.js delete mode 100644 ui/js/src/kimchi.network.js delete mode 100644 ui/js/src/kimchi.popable.js delete mode 100644 ui/js/src/kimchi.report_add_main.js delete mode 100644 ui/js/src/kimchi.report_rename_main.js delete mode 100644 ui/js/src/kimchi.repository_add_main.js delete mode 100644 ui/js/src/kimchi.repository_edit_main.js delete mode 100644 ui/js/src/kimchi.storage_main.js delete mode 100644 ui/js/src/kimchi.storagepool_add_main.js delete mode 100644 ui/js/src/kimchi.storagepool_add_volume_main.js delete mode 100644 ui/js/src/kimchi.substitute.js delete mode 100644 ui/js/src/kimchi.template_add_main.js delete mode 100644 ui/js/src/kimchi.template_edit_main.js delete mode 100644 ui/js/src/kimchi.template_main.js delete mode 100644 ui/js/src/kimchi.topic.js delete mode 100644 ui/js/src/kimchi.user.js delete mode 100644 ui/js/src/kimchi.utils.js delete mode 100644 ui/js/src/kimchi.window.js create mode 100644 ui/js/src/wok.api.js create mode 100644 ui/js/src/wok.cookie.js create mode 100644 ui/js/src/wok.lang.js create mode 100644 ui/js/src/wok.login.js create mode 100644 ui/js/src/wok.main.js create mode 100644 ui/js/src/wok.message.js rename ui/js/src/{kimchi.object.js => wok.object.js} (100%) create mode 100644 ui/js/src/wok.popable.js rename ui/js/src/{kimchi.string.js => wok.string.js} (100%) create mode 100644 ui/js/src/wok.substitute.js create mode 100644 ui/js/src/wok.topic.js create mode 100644 ui/js/src/wok.user.js create mode 100644 ui/js/src/wok.utils.js create mode 100644 ui/js/src/wok.window.js delete mode 100644 ui/pages/guest-add.html.tmpl delete mode 100644 ui/pages/guest-storage-add.html.tmpl delete mode 100644 ui/pages/guest.html.tmpl delete mode 100644 ui/pages/help/Makefile.am delete mode 100644 ui/pages/help/de_DE/Makefile.am delete mode 100644 ui/pages/help/en_US/Makefile.am delete mode 100644 ui/pages/help/es_ES/Makefile.am delete mode 100644 ui/pages/help/fr_FR/Makefile.am delete mode 100755 ui/pages/help/gen-index.py delete mode 100644 ui/pages/help/it_IT/Makefile.am delete mode 100644 ui/pages/help/ja_JP/Makefile.am delete mode 100644 ui/pages/help/ko_KR/Makefile.am delete mode 100644 ui/pages/help/pt_BR/Makefile.am delete mode 100644 ui/pages/help/ru_RU/Makefile.am delete mode 100644 ui/pages/help/zh_CN/Makefile.am delete mode 100644 ui/pages/help/zh_TW/Makefile.am delete mode 100644 ui/pages/kimchi-ui.html.tmpl delete mode 100644 ui/pages/report-add.html.tmpl delete mode 100644 ui/pages/report-rename.html.tmpl delete mode 100644 ui/pages/repository-add.html.tmpl delete mode 100644 ui/pages/repository-edit.html.tmpl delete mode 100644 ui/pages/storagepool-add-volume.html.tmpl delete mode 100644 ui/pages/storagepool-add.html.tmpl delete mode 100644 ui/pages/tabs/Makefile.am delete mode 100644 ui/pages/tabs/guests.html.tmpl delete mode 100644 ui/pages/tabs/host.html.tmpl delete mode 100644 ui/pages/tabs/network.html.tmpl delete mode 100644 ui/pages/tabs/storage.html.tmpl delete mode 100644 ui/pages/tabs/templates.html.tmpl delete mode 100644 ui/pages/template-add.html.tmpl delete mode 100644 ui/pages/template-edit.html.tmpl create mode 100644 ui/pages/wok-ui.html.tmpl delete mode 100644 ui/spice-html5/Makefile.am delete mode 100644 ui/spice-html5/css/Makefile.am delete mode 100644 ui/spice-html5/pages/Makefile.am delete mode 100644 ui/spice-html5/pages/spice_auto.html delete mode 100644 ui/spice-html5/thirdparty/Makefile.am

This patch only moves or duplicates files. No code changes. - Move virtualization layer to plugins/kimchi - Move kimchi-specific Web UI to plugins/kimchi - Copy autogen, configure, build-aux, m4 files to plugins/kimchi - Copy documentation files to plugins/kimchi Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/.gitignore | 43 ++ {src => plugins}/kimchi/API.json | 0 plugins/kimchi/INSTALL | 369 ++++++++++ plugins/kimchi/Makefile.am | 165 +++++ README.md => plugins/kimchi/README.md | 0 VERSION => plugins/kimchi/VERSION | 0 plugins/kimchi/autogen.sh | 21 + plugins/kimchi/build-aux/config.rpath | 672 +++++++++++++++++ plugins/kimchi/build-aux/genChangelog | 25 + plugins/kimchi/build-aux/pkg-version | 59 ++ plugins/kimchi/config.rpath | 672 +++++++++++++++++ plugins/kimchi/configure.ac | 147 ++++ .../kimchi/contrib}/DEBIAN/Makefile.am | 0 .../kimchi/contrib}/DEBIAN/control.in | 0 {contrib => plugins/kimchi/contrib}/Makefile.am | 0 plugins/kimchi/contrib/check_i18n.py | 82 ++ .../kimchi/contrib}/kimchi.spec.fedora.in | 0 .../kimchi/contrib}/kimchi.spec.suse.in | 0 {contrib => plugins/kimchi/contrib}/make-deb.sh.in | 0 {src => plugins}/kimchi/control/Makefile.am | 0 {src => plugins}/kimchi/control/__init__.py | 0 {src => plugins}/kimchi/control/config.py | 0 {src => plugins}/kimchi/control/cpuinfo.py | 0 {src => plugins}/kimchi/control/debugreports.py | 0 {src => plugins}/kimchi/control/groups.py | 0 {src => plugins}/kimchi/control/host.py | 0 {src => plugins}/kimchi/control/interfaces.py | 0 {src => plugins}/kimchi/control/networks.py | 0 {src => plugins}/kimchi/control/peers.py | 0 {src => plugins}/kimchi/control/storagepools.py | 0 {src => plugins}/kimchi/control/storageservers.py | 0 {src => plugins}/kimchi/control/storagevolumes.py | 0 {src => plugins}/kimchi/control/tasks.py | 0 {src => plugins}/kimchi/control/templates.py | 0 {src => plugins}/kimchi/control/users.py | 0 {src => plugins}/kimchi/control/vm/Makefile.am | 0 {src => plugins}/kimchi/control/vm/__init__.py | 0 {src => plugins}/kimchi/control/vm/hostdevs.py | 0 {src => plugins}/kimchi/control/vm/ifaces.py | 0 {src => plugins}/kimchi/control/vm/snapshots.py | 0 {src => plugins}/kimchi/control/vm/storages.py | 0 {src => plugins}/kimchi/control/vms.py | 0 {src => plugins}/kimchi/disks.py | 0 {src => plugins}/kimchi/distroloader.py | 0 {src => plugins/kimchi}/distros.d/Makefile.am | 0 {src => plugins/kimchi}/distros.d/debian.json | 0 {src => plugins/kimchi}/distros.d/fedora.json | 0 {src => plugins/kimchi}/distros.d/gentoo.json | 0 {src => plugins/kimchi}/distros.d/opensuse.json | 0 {src => plugins/kimchi}/distros.d/ubuntu.json | 0 {docs => plugins/kimchi/docs}/API.md | 0 {docs => plugins/kimchi/docs}/Makefile.am | 0 {docs => plugins/kimchi/docs}/README-federation.md | 0 {docs => plugins/kimchi/docs}/README.md | 0 {docs => plugins/kimchi/docs}/kimchi-guest.png | Bin 192281 -> 192281 bytes {docs => plugins/kimchi/docs}/kimchi-login.png | Bin 318041 -> 318041 bytes {docs => plugins/kimchi/docs}/kimchi-templates.png | Bin 329678 -> 329678 bytes {src => plugins}/kimchi/i18n.py | 0 {src => plugins}/kimchi/imageinfo.py | 0 {src => plugins}/kimchi/iscsi.py | 0 {src => plugins}/kimchi/isoinfo.py | 0 {src => plugins}/kimchi/kvmusertests.py | 0 plugins/kimchi/m4/ac_python_module.m4 | 30 + plugins/kimchi/m4/gettext.m4 | 383 ++++++++++ plugins/kimchi/m4/iconv.m4 | 214 ++++++ plugins/kimchi/m4/intlmacosx.m4 | 51 ++ plugins/kimchi/m4/lib-ld.m4 | 110 +++ plugins/kimchi/m4/lib-link.m4 | 774 ++++++++++++++++++++ plugins/kimchi/m4/lib-prefix.m4 | 224 ++++++ plugins/kimchi/m4/nls.m4 | 32 + plugins/kimchi/m4/po.m4 | 449 ++++++++++++ plugins/kimchi/m4/progtest.m4 | 92 +++ {src => plugins}/kimchi/mockmodel.py | 0 {src => plugins}/kimchi/model/Makefile.am | 0 {src => plugins}/kimchi/model/__init__.py | 0 {src => plugins}/kimchi/model/config.py | 0 {src => plugins}/kimchi/model/cpuinfo.py | 0 {src => plugins}/kimchi/model/debugreports.py | 0 {src => plugins}/kimchi/model/diskutils.py | 0 {src => plugins}/kimchi/model/featuretests.py | 0 {src => plugins}/kimchi/model/groups.py | 0 {src => plugins}/kimchi/model/host.py | 0 {src => plugins}/kimchi/model/hostdev.py | 0 {src => plugins}/kimchi/model/interfaces.py | 0 {src => plugins}/kimchi/model/libvirtconnection.py | 0 .../kimchi/model/libvirtstoragepool.py | 0 {src => plugins}/kimchi/model/model.py | 0 {src => plugins}/kimchi/model/networks.py | 0 {src => plugins}/kimchi/model/peers.py | 0 {src => plugins}/kimchi/model/storagepools.py | 0 {src => plugins}/kimchi/model/storageservers.py | 0 {src => plugins}/kimchi/model/storagetargets.py | 0 {src => plugins}/kimchi/model/storagevolumes.py | 0 {src => plugins}/kimchi/model/tasks.py | 0 {src => plugins}/kimchi/model/templates.py | 0 {src => plugins}/kimchi/model/users.py | 0 {src => plugins}/kimchi/model/utils.py | 0 {src => plugins}/kimchi/model/vmhostdevs.py | 0 {src => plugins}/kimchi/model/vmifaces.py | 0 {src => plugins}/kimchi/model/vms.py | 0 {src => plugins}/kimchi/model/vmsnapshots.py | 0 {src => plugins}/kimchi/model/vmstorages.py | 0 {src => plugins}/kimchi/osinfo.py | 0 {po => plugins/kimchi/po}/LINGUAS | 0 {po => plugins/kimchi/po}/Makefile.in.in | 0 {po => plugins/kimchi/po}/Makevars | 0 {po => plugins/kimchi/po}/POTFILES.in | 0 {po => plugins/kimchi/po}/de_DE.po | 0 {po => plugins/kimchi/po}/en_US.po | 0 {po => plugins/kimchi/po}/es_ES.po | 0 {po => plugins/kimchi/po}/fr_FR.po | 0 {po => plugins/kimchi/po}/gen-pot.in | 0 {po => plugins/kimchi/po}/it_IT.po | 0 {po => plugins/kimchi/po}/ja_JP.po | 0 {po => plugins/kimchi/po}/kimchi.pot | 0 {po => plugins/kimchi/po}/ko_KR.po | 0 {po => plugins/kimchi/po}/pt_BR.po | 0 {po => plugins/kimchi/po}/ru_RU.po | 0 {po => plugins/kimchi/po}/zh_CN.po | 0 {po => plugins/kimchi/po}/zh_TW.po | 0 {src => plugins}/kimchi/repositories.py | 0 {src => plugins}/kimchi/scan.py | 0 {src => plugins}/kimchi/screenshot.py | 0 {src => plugins}/kimchi/swupdate.py | 0 {src => plugins/kimchi}/template.conf | 0 {tests => plugins/kimchi/tests}/Makefile.am | 0 {tests => plugins/kimchi/tests}/iso_gen.py | 0 {tests => plugins/kimchi/tests}/run_tests.sh.in | 0 .../kimchi/tests}/test_authorization.py | 0 {tests => plugins/kimchi/tests}/test_config.py.in | 0 {tests => plugins/kimchi/tests}/test_exception.py | 0 {tests => plugins/kimchi/tests}/test_host.py | 0 .../kimchi/tests}/test_mock_network.py | 0 .../kimchi/tests}/test_mock_storagepool.py | 0 .../kimchi/tests}/test_mock_storagevolume.py | 0 {tests => plugins/kimchi/tests}/test_mockmodel.py | 0 {tests => plugins/kimchi/tests}/test_model.py | 0 .../kimchi/tests}/test_model_network.py | 0 .../kimchi/tests}/test_model_storagepool.py | 0 .../kimchi/tests}/test_model_storagevolume.py | 0 {tests => plugins/kimchi/tests}/test_networkxml.py | 0 .../kimchi/tests}/test_objectstore.py | 0 {tests => plugins/kimchi/tests}/test_osinfo.py | 0 {tests => plugins/kimchi/tests}/test_plugin.py | 0 {tests => plugins/kimchi/tests}/test_rest.py | 0 .../kimchi/tests}/test_rollbackcontext.py | 0 {tests => plugins/kimchi/tests}/test_server.py | 0 .../kimchi/tests}/test_storagepoolxml.py | 0 {tests => plugins/kimchi/tests}/test_template.py | 0 {tests => plugins/kimchi/tests}/test_utils.py | 0 {tests => plugins/kimchi/tests}/test_vmtemplate.py | 0 {tests => plugins/kimchi/tests}/test_yumparser.py | 0 {tests => plugins/kimchi/tests}/utils.py | 0 {config => plugins/kimchi/ui}/Makefile.am | 0 .../ui => plugins/kimchi/ui/config}/Makefile.am | 0 .../kimchi/ui/config/tab-ext.xml | 0 {ui => plugins/kimchi/ui}/css/Makefile.am | 0 .../kimchi/ui}/css/theme-default/button.css | 0 .../kimchi/ui}/css/theme-default/circleGauge.css | 0 .../kimchi/ui}/css/theme-default/form.css | 0 .../kimchi/ui}/css/theme-default/grid.css | 0 .../kimchi/ui}/css/theme-default/guest-edit.css | 0 .../ui}/css/theme-default/guest-storage-add.css | 0 .../kimchi/ui}/css/theme-default/host.css | 0 .../ui}/css/theme-default/jquery-ui.custom.css | 0 .../kimchi/ui}/css/theme-default/line-chart.css | 0 .../kimchi/ui}/css/theme-default/list.css | 0 .../kimchi/ui}/css/theme-default/message.css | 0 .../kimchi/ui}/css/theme-default/network.css | 0 .../kimchi/ui}/css/theme-default/popover.css | 0 .../kimchi/ui}/css/theme-default/report-add.css | 0 .../kimchi/ui}/css/theme-default/report-rename.css | 0 .../ui}/css/theme-default/repository-add.css | 0 .../ui}/css/theme-default/repository-edit.css | 0 .../kimchi/ui}/css/theme-default/storage.css | 0 .../css/theme-default/storagepool-add-volume.css | 0 .../kimchi/ui}/css/theme-default/template-edit.css | 0 .../kimchi/ui}/css/theme-default/template.css | 0 .../kimchi/ui}/css/theme-default/template_add.css | 0 .../kimchi/ui}/css/theme-default/template_list.css | 0 .../kimchi/ui}/css/theme-default/tile-check.css | 0 .../kimchi/ui}/css/theme-default/toolbar.css | 0 {ui => plugins/kimchi/ui}/images/Makefile.am | 0 {ui => plugins/kimchi/ui}/images/icon-centos.png | Bin 4734 -> 4734 bytes {ui => plugins/kimchi/ui}/images/icon-debian.png | Bin 4239 -> 4239 bytes {ui => plugins/kimchi/ui}/images/icon-fedora.png | Bin 4449 -> 4449 bytes {ui => plugins/kimchi/ui}/images/icon-gentoo.png | Bin 15307 -> 15307 bytes {ui => plugins/kimchi/ui}/images/icon-opensuse.png | Bin 3046 -> 3046 bytes {ui => plugins/kimchi/ui}/images/icon-ubuntu.png | Bin 4818 -> 4818 bytes {ui => plugins/kimchi/ui}/images/icon-vm.png | Bin 2976 -> 2976 bytes {ui => plugins/kimchi/ui}/images/logo.ico | Bin 1214 -> 1214 bytes .../kimchi/ui}/images/theme-default/Makefile.am | 0 .../kimchi/ui}/images/theme-default/ac22_pause.png | Bin 1219 -> 1219 bytes .../ui}/images/theme-default/ac22_pause_grey.png | Bin 1175 -> 1175 bytes .../ui}/images/theme-default/ac24_resume.png | Bin 1341 -> 1341 bytes .../ui}/images/theme-default/ac24_resume_grey.png | Bin 1282 -> 1282 bytes .../kimchi/ui}/images/theme-default/alert.png | Bin 3537 -> 3537 bytes .../ui/images/theme-default/arrow-down-black.png | Bin 2958 -> 2942 bytes .../images/theme-default/arrow-down-disable.png | Bin 472 -> 472 bytes .../kimchi/ui}/images/theme-default/arrow-down.png | Bin 537 -> 537 bytes .../kimchi/ui}/images/theme-default/arrow-up.png | Bin 510 -> 510 bytes .../kimchi/ui}/images/theme-default/arrow_out.png | Bin 3048 -> 3048 bytes .../kimchi/ui/images/theme-default/bg-mask.png | Bin 2958 -> 2899 bytes .../ui}/images/theme-default/check-green.png | Bin 3501 -> 3501 bytes .../kimchi/ui}/images/theme-default/check-grey.png | Bin 3535 -> 3535 bytes .../ui/images/theme-default/folder-arrow-down.png | Bin 2958 -> 2956 bytes .../images/theme-default/folder-arrow-right.png | Bin 2958 -> 2958 bytes .../kimchi/ui}/images/theme-default/group.png | Bin 1703 -> 1703 bytes .../ui}/images/theme-default/host-icon-sprite.png | Bin 1034 -> 1034 bytes .../kimchi/ui}/images/theme-default/icon-alert.png | Bin 3545 -> 3545 bytes .../kimchi/ui}/images/theme-default/icon-back.png | Bin 244 -> 244 bytes .../ui}/images/theme-default/icon-camera.png | Bin 4860 -> 4860 bytes .../ui}/images/theme-default/icon-design.png | Bin 4562 -> 4562 bytes .../ui}/images/theme-default/icon-detail.png | Bin 3079 -> 3079 bytes .../kimchi/ui}/images/theme-default/icon-event.png | Bin 3791 -> 3791 bytes .../kimchi/ui}/images/theme-default/icon-iso.png | Bin 4188 -> 4188 bytes .../kimchi/ui}/images/theme-default/icon-list.png | Bin 2983 -> 2983 bytes .../kimchi/ui}/images/theme-default/icon-load.png | Bin 3678 -> 3678 bytes .../kimchi/ui}/images/theme-default/icon-local.png | Bin 425 -> 425 bytes .../ui}/images/theme-default/icon-power-down.png | Bin 4372 -> 4372 bytes .../ui}/images/theme-default/icon-power-up.png | Bin 4367 -> 4367 bytes .../kimchi/ui}/images/theme-default/icon-qcow2.png | Bin 4684 -> 4684 bytes .../kimchi/ui}/images/theme-default/icon-raw.png | Bin 4679 -> 4679 bytes .../ui}/images/theme-default/icon-remote.png | Bin 1005 -> 1005 bytes .../kimchi/ui}/images/theme-default/icon-reset.png | Bin 4576 -> 4576 bytes .../ui}/images/theme-default/icon-search.png | Bin 4197 -> 4197 bytes .../ui}/images/theme-default/icon-setting.png | Bin 3664 -> 3664 bytes .../kimchi/ui}/images/theme-default/icon-sort.png | Bin 3421 -> 3421 bytes .../kimchi/ui}/images/theme-default/icon-tool.png | Bin 4466 -> 4466 bytes .../kimchi/ui}/images/theme-default/icon-tree.png | Bin 3526 -> 3526 bytes .../kimchi/ui}/images/theme-default/icon-user.png | Bin 5366 -> 5366 bytes .../images/theme-default/icon-volume-default.png | Bin 4265 -> 4265 bytes .../ui}/images/theme-default/kimchi-loading.gif | Bin 6181 -> 6181 bytes .../images/theme-default/kimchi-loading15x15.gif | Bin 1653 -> 1653 bytes .../kimchi/ui}/images/theme-default/loading.gif | Bin 2190 -> 2190 bytes .../kimchi/ui}/images/theme-default/logo-white.png | Bin 9879 -> 9879 bytes .../ui}/images/theme-default/thumb-guest.png | Bin 3896 -> 3896 bytes .../kimchi/ui}/images/theme-default/thumb-host.png | Bin 5069 -> 5069 bytes .../kimchi/ui}/images/theme-default/user.png | Bin 1322 -> 1322 bytes {ui => plugins/kimchi/ui}/js/Makefile.am | 0 {ui => plugins/kimchi/ui}/js/src/kimchi.api.js | 0 {ui => plugins/kimchi/ui}/js/src/kimchi.form.js | 0 {ui => plugins/kimchi/ui}/js/src/kimchi.grid.js | 0 .../kimchi/ui}/js/src/kimchi.guest_add_main.js | 0 .../kimchi/ui}/js/src/kimchi.guest_edit_main.js | 0 .../kimchi/ui}/js/src/kimchi.guest_main.js | 0 .../kimchi/ui}/js/src/kimchi.guest_media_main.js | 0 .../ui}/js/src/kimchi.guest_storage_add.main.js | 0 {ui => plugins/kimchi/ui}/js/src/kimchi.host.js | 0 .../kimchi/ui}/js/src/kimchi.line-chart.js | 0 {ui => plugins/kimchi/ui}/js/src/kimchi.network.js | 0 .../kimchi/ui}/js/src/kimchi.report_add_main.js | 0 .../kimchi/ui}/js/src/kimchi.report_rename_main.js | 0 .../ui}/js/src/kimchi.repository_add_main.js | 0 .../ui}/js/src/kimchi.repository_edit_main.js | 0 {ui => plugins/kimchi/ui}/js/src/kimchi.select.js | 0 .../kimchi/ui}/js/src/kimchi.storage_main.js | 0 .../ui}/js/src/kimchi.storagepool_add_main.js | 0 .../js/src/kimchi.storagepool_add_volume_main.js | 0 .../kimchi/ui}/js/src/kimchi.template_add_main.js | 0 .../kimchi/ui}/js/src/kimchi.template_edit_main.js | 0 .../kimchi/ui}/js/src/kimchi.template_main.js | 0 .../kimchi/ui}/js/widgets/circleGauge.js | 0 {ui => plugins/kimchi/ui}/libs/Makefile.am | 0 {ui => plugins/kimchi/ui}/libs/themes/Makefile.am | 0 .../kimchi/ui}/libs/themes/base/Makefile.am | 0 .../kimchi/ui}/libs/themes/base/images/Makefile.am | 0 .../libs/themes/base/images/animated-overlay.gif | Bin 1738 -> 1738 bytes .../base/images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 180 -> 180 bytes .../base/images/ui-bg_flat_75_ffffff_40x100.png | Bin 178 -> 178 bytes .../base/images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 120 -> 120 bytes .../base/images/ui-bg_glass_65_ffffff_1x400.png | Bin 105 -> 105 bytes .../base/images/ui-bg_glass_75_dadada_1x400.png | Bin 111 -> 111 bytes .../base/images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 110 -> 110 bytes .../base/images/ui-bg_glass_95_fef1ec_1x400.png | Bin 119 -> 119 bytes .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 101 -> 101 bytes .../themes/base/images/ui-icons_222222_256x240.png | Bin 4369 -> 4369 bytes .../themes/base/images/ui-icons_2e83ff_256x240.png | Bin 4369 -> 4369 bytes .../themes/base/images/ui-icons_454545_256x240.png | Bin 4369 -> 4369 bytes .../themes/base/images/ui-icons_888888_256x240.png | Bin 4369 -> 4369 bytes .../themes/base/images/ui-icons_cd0a0a_256x240.png | Bin 4369 -> 4369 bytes {ui => plugins/kimchi/ui}/pages/Makefile.am | 0 {ui => plugins/kimchi/ui}/pages/error.html.tmpl | 0 .../kimchi/ui}/pages/guest-add.html.tmpl | 0 .../kimchi/ui}/pages/guest-edit.html.tmpl | 0 .../kimchi/ui}/pages/guest-storage-add.html.tmpl | 0 {ui => plugins/kimchi/ui}/pages/guest.html.tmpl | 0 {ui => plugins/kimchi/ui}/pages/help/Makefile.am | 0 .../kimchi/ui}/pages/help/de_DE/Makefile.am | 0 .../kimchi/ui}/pages/help/de_DE/guests.dita | 0 .../kimchi/ui}/pages/help/de_DE/host.dita | 0 .../kimchi/ui}/pages/help/de_DE/network.dita | 0 .../kimchi/ui}/pages/help/de_DE/storage.dita | 0 .../kimchi/ui}/pages/help/de_DE/templates.dita | 0 {ui => plugins/kimchi/ui}/pages/help/dita-help.xsl | 0 .../kimchi/ui}/pages/help/en_US/Makefile.am | 0 .../kimchi/ui}/pages/help/en_US/guests.dita | 0 .../kimchi/ui}/pages/help/en_US/host.dita | 0 .../kimchi/ui}/pages/help/en_US/network.dita | 0 .../kimchi/ui}/pages/help/en_US/storage.dita | 0 .../kimchi/ui}/pages/help/en_US/templates.dita | 0 .../kimchi/ui}/pages/help/es_ES/Makefile.am | 0 .../kimchi/ui}/pages/help/es_ES/guests.dita | 0 .../kimchi/ui}/pages/help/es_ES/host.dita | 0 .../kimchi/ui}/pages/help/es_ES/network.dita | 0 .../kimchi/ui}/pages/help/es_ES/storage.dita | 0 .../kimchi/ui}/pages/help/es_ES/templates.dita | 0 .../kimchi/ui}/pages/help/fr_FR/Makefile.am | 0 .../kimchi/ui}/pages/help/fr_FR/guests.dita | 0 .../kimchi/ui}/pages/help/fr_FR/host.dita | 0 .../kimchi/ui}/pages/help/fr_FR/network.dita | 0 .../kimchi/ui}/pages/help/fr_FR/storage.dita | 0 .../kimchi/ui}/pages/help/fr_FR/templates.dita | 0 {ui => plugins/kimchi/ui}/pages/help/gen-index.py | 0 .../kimchi/ui}/pages/help/it_IT/Makefile.am | 0 .../kimchi/ui}/pages/help/it_IT/guests.dita | 0 .../kimchi/ui}/pages/help/it_IT/host.dita | 0 .../kimchi/ui}/pages/help/it_IT/network.dita | 0 .../kimchi/ui}/pages/help/it_IT/storage.dita | 0 .../kimchi/ui}/pages/help/it_IT/templates.dita | 0 .../kimchi/ui}/pages/help/ja_JP/Makefile.am | 0 .../kimchi/ui}/pages/help/ja_JP/guests.dita | 0 .../kimchi/ui}/pages/help/ja_JP/host.dita | 0 .../kimchi/ui}/pages/help/ja_JP/network.dita | 0 .../kimchi/ui}/pages/help/ja_JP/storage.dita | 0 .../kimchi/ui}/pages/help/ja_JP/templates.dita | 0 {ui => plugins/kimchi/ui}/pages/help/kimchi.css | 0 .../kimchi/ui}/pages/help/ko_KR/Makefile.am | 0 .../kimchi/ui}/pages/help/ko_KR/guests.dita | 0 .../kimchi/ui}/pages/help/ko_KR/host.dita | 0 .../kimchi/ui}/pages/help/ko_KR/network.dita | 0 .../kimchi/ui}/pages/help/ko_KR/storage.dita | 0 .../kimchi/ui}/pages/help/ko_KR/templates.dita | 0 .../kimchi/ui}/pages/help/pt_BR/Makefile.am | 0 .../kimchi/ui}/pages/help/pt_BR/guests.dita | 0 .../kimchi/ui}/pages/help/pt_BR/host.dita | 0 .../kimchi/ui}/pages/help/pt_BR/network.dita | 0 .../kimchi/ui}/pages/help/pt_BR/storage.dita | 0 .../kimchi/ui}/pages/help/pt_BR/templates.dita | 0 .../kimchi/ui}/pages/help/ru_RU/Makefile.am | 0 .../kimchi/ui}/pages/help/ru_RU/guests.dita | 0 .../kimchi/ui}/pages/help/ru_RU/host.dita | 0 .../kimchi/ui}/pages/help/ru_RU/network.dita | 0 .../kimchi/ui}/pages/help/ru_RU/storage.dita | 0 .../kimchi/ui}/pages/help/ru_RU/templates.dita | 0 .../kimchi/ui}/pages/help/zh_CN/Makefile.am | 0 .../kimchi/ui}/pages/help/zh_CN/guests.dita | 0 .../kimchi/ui}/pages/help/zh_CN/host.dita | 0 .../kimchi/ui}/pages/help/zh_CN/network.dita | 0 .../kimchi/ui}/pages/help/zh_CN/storage.dita | 0 .../kimchi/ui}/pages/help/zh_CN/templates.dita | 0 .../kimchi/ui}/pages/help/zh_TW/Makefile.am | 0 .../kimchi/ui}/pages/help/zh_TW/guests.dita | 0 .../kimchi/ui}/pages/help/zh_TW/host.dita | 0 .../kimchi/ui}/pages/help/zh_TW/network.dita | 0 .../kimchi/ui}/pages/help/zh_TW/storage.dita | 0 .../kimchi/ui}/pages/help/zh_TW/templates.dita | 0 {ui => plugins/kimchi/ui}/pages/i18n.json.tmpl | 0 .../kimchi/ui}/pages/report-add.html.tmpl | 0 .../kimchi/ui}/pages/report-rename.html.tmpl | 0 .../kimchi/ui}/pages/repository-add.html.tmpl | 0 .../kimchi/ui}/pages/repository-edit.html.tmpl | 0 .../ui}/pages/storagepool-add-volume.html.tmpl | 0 .../kimchi/ui}/pages/storagepool-add.html.tmpl | 0 {ui => plugins/kimchi/ui}/pages/tabs/Makefile.am | 0 .../kimchi/ui}/pages/tabs/guests.html.tmpl | 0 .../kimchi/ui}/pages/tabs/host.html.tmpl | 0 .../kimchi/ui}/pages/tabs/network.html.tmpl | 0 .../kimchi/ui}/pages/tabs/storage.html.tmpl | 0 .../kimchi/ui}/pages/tabs/templates.html.tmpl | 0 .../kimchi/ui}/pages/template-add.html.tmpl | 0 .../kimchi/ui}/pages/template-edit.html.tmpl | 0 {ui => plugins/kimchi/ui}/robots.txt | 0 {ui => plugins/kimchi/ui}/spice-html5/Makefile.am | 0 .../kimchi/ui}/spice-html5/atKeynames.js | 0 {ui => plugins/kimchi/ui}/spice-html5/bitmap.js | 0 .../kimchi/ui}/spice-html5/css/Makefile.am | 0 .../kimchi/ui}/spice-html5/css/spice.css | 0 {ui => plugins/kimchi/ui}/spice-html5/cursor.js | 0 {ui => plugins/kimchi/ui}/spice-html5/display.js | 0 {ui => plugins/kimchi/ui}/spice-html5/enums.js | 0 {ui => plugins/kimchi/ui}/spice-html5/inputs.js | 0 {ui => plugins/kimchi/ui}/spice-html5/lz.js | 0 {ui => plugins/kimchi/ui}/spice-html5/main.js | 0 .../kimchi/ui}/spice-html5/pages/Makefile.am | 0 .../kimchi/ui}/spice-html5/pages/spice_auto.html | 0 {ui => plugins/kimchi/ui}/spice-html5/playback.js | 0 {ui => plugins/kimchi/ui}/spice-html5/png.js | 0 {ui => plugins/kimchi/ui}/spice-html5/quic.js | 0 {ui => plugins/kimchi/ui}/spice-html5/resize.js | 0 .../kimchi/ui}/spice-html5/simulatecursor.js | 0 .../kimchi/ui}/spice-html5/spicearraybuffer.js | 0 {ui => plugins/kimchi/ui}/spice-html5/spiceconn.js | 0 .../kimchi/ui}/spice-html5/spicedataview.js | 0 {ui => plugins/kimchi/ui}/spice-html5/spicemsg.js | 0 {ui => plugins/kimchi/ui}/spice-html5/spicetype.js | 0 .../kimchi/ui}/spice-html5/thirdparty/Makefile.am | 0 .../kimchi/ui}/spice-html5/thirdparty/jsbn.js | 0 .../kimchi/ui}/spice-html5/thirdparty/prng4.js | 0 .../kimchi/ui}/spice-html5/thirdparty/rng.js | 0 .../kimchi/ui}/spice-html5/thirdparty/rsa.js | 0 .../kimchi/ui}/spice-html5/thirdparty/sha1.js | 0 {ui => plugins/kimchi/ui}/spice-html5/ticket.js | 0 {ui => plugins/kimchi/ui}/spice-html5/utils.js | 0 {ui => plugins/kimchi/ui}/spice-html5/webm.js | 0 {ui => plugins/kimchi/ui}/spice-html5/wire.js | 0 {src => plugins}/kimchi/vmtemplate.py | 0 {src => plugins}/kimchi/xmlutils/Makefile.am | 0 {src => plugins}/kimchi/xmlutils/__init__.py | 0 {src => plugins}/kimchi/xmlutils/cpu.py | 0 {src => plugins}/kimchi/xmlutils/disk.py | 0 {src => plugins}/kimchi/xmlutils/graphics.py | 0 {src => plugins}/kimchi/xmlutils/interface.py | 0 {src => plugins}/kimchi/xmlutils/network.py | 0 {src => plugins}/kimchi/xmlutils/qemucmdline.py | 0 {src => plugins}/kimchi/yumparser.py | 0 416 files changed, 4614 insertions(+), 0 deletions(-) create mode 100644 plugins/kimchi/.gitignore rename {src => plugins}/kimchi/API.json (100%) create mode 100644 plugins/kimchi/INSTALL create mode 100644 plugins/kimchi/Makefile.am rename README.md => plugins/kimchi/README.md (100%) rename VERSION => plugins/kimchi/VERSION (100%) create mode 100755 plugins/kimchi/autogen.sh create mode 100644 plugins/kimchi/build-aux/config.rpath create mode 100755 plugins/kimchi/build-aux/genChangelog create mode 100755 plugins/kimchi/build-aux/pkg-version create mode 100644 plugins/kimchi/config.rpath create mode 100644 plugins/kimchi/configure.ac rename {contrib => plugins/kimchi/contrib}/DEBIAN/Makefile.am (100%) rename {contrib => plugins/kimchi/contrib}/DEBIAN/control.in (100%) rename {contrib => plugins/kimchi/contrib}/Makefile.am (100%) create mode 100755 plugins/kimchi/contrib/check_i18n.py rename {contrib => plugins/kimchi/contrib}/kimchi.spec.fedora.in (100%) rename {contrib => plugins/kimchi/contrib}/kimchi.spec.suse.in (100%) rename {contrib => plugins/kimchi/contrib}/make-deb.sh.in (100%) rename {src => plugins}/kimchi/control/Makefile.am (100%) rename {src => plugins}/kimchi/control/__init__.py (100%) rename {src => plugins}/kimchi/control/config.py (100%) rename {src => plugins}/kimchi/control/cpuinfo.py (100%) rename {src => plugins}/kimchi/control/debugreports.py (100%) rename {src => plugins}/kimchi/control/groups.py (100%) rename {src => plugins}/kimchi/control/host.py (100%) rename {src => plugins}/kimchi/control/interfaces.py (100%) rename {src => plugins}/kimchi/control/networks.py (100%) rename {src => plugins}/kimchi/control/peers.py (100%) rename {src => plugins}/kimchi/control/storagepools.py (100%) rename {src => plugins}/kimchi/control/storageservers.py (100%) rename {src => plugins}/kimchi/control/storagevolumes.py (100%) rename {src => plugins}/kimchi/control/tasks.py (100%) rename {src => plugins}/kimchi/control/templates.py (100%) rename {src => plugins}/kimchi/control/users.py (100%) rename {src => plugins}/kimchi/control/vm/Makefile.am (100%) rename {src => plugins}/kimchi/control/vm/__init__.py (100%) rename {src => plugins}/kimchi/control/vm/hostdevs.py (100%) rename {src => plugins}/kimchi/control/vm/ifaces.py (100%) rename {src => plugins}/kimchi/control/vm/snapshots.py (100%) rename {src => plugins}/kimchi/control/vm/storages.py (100%) rename {src => plugins}/kimchi/control/vms.py (100%) rename {src => plugins}/kimchi/disks.py (100%) rename {src => plugins}/kimchi/distroloader.py (100%) rename {src => plugins/kimchi}/distros.d/Makefile.am (100%) rename {src => plugins/kimchi}/distros.d/debian.json (100%) rename {src => plugins/kimchi}/distros.d/fedora.json (100%) rename {src => plugins/kimchi}/distros.d/gentoo.json (100%) rename {src => plugins/kimchi}/distros.d/opensuse.json (100%) rename {src => plugins/kimchi}/distros.d/ubuntu.json (100%) rename {docs => plugins/kimchi/docs}/API.md (100%) rename {docs => plugins/kimchi/docs}/Makefile.am (100%) rename {docs => plugins/kimchi/docs}/README-federation.md (100%) rename {docs => plugins/kimchi/docs}/README.md (100%) rename {docs => plugins/kimchi/docs}/kimchi-guest.png (100%) rename {docs => plugins/kimchi/docs}/kimchi-login.png (100%) rename {docs => plugins/kimchi/docs}/kimchi-templates.png (100%) rename {src => plugins}/kimchi/i18n.py (100%) rename {src => plugins}/kimchi/imageinfo.py (100%) rename {src => plugins}/kimchi/iscsi.py (100%) rename {src => plugins}/kimchi/isoinfo.py (100%) rename {src => plugins}/kimchi/kvmusertests.py (100%) create mode 100644 plugins/kimchi/m4/ac_python_module.m4 create mode 100644 plugins/kimchi/m4/gettext.m4 create mode 100644 plugins/kimchi/m4/iconv.m4 create mode 100644 plugins/kimchi/m4/intlmacosx.m4 create mode 100644 plugins/kimchi/m4/lib-ld.m4 create mode 100644 plugins/kimchi/m4/lib-link.m4 create mode 100644 plugins/kimchi/m4/lib-prefix.m4 create mode 100644 plugins/kimchi/m4/nls.m4 create mode 100644 plugins/kimchi/m4/po.m4 create mode 100644 plugins/kimchi/m4/progtest.m4 rename {src => plugins}/kimchi/mockmodel.py (100%) rename {src => plugins}/kimchi/model/Makefile.am (100%) rename {src => plugins}/kimchi/model/__init__.py (100%) rename {src => plugins}/kimchi/model/config.py (100%) rename {src => plugins}/kimchi/model/cpuinfo.py (100%) rename {src => plugins}/kimchi/model/debugreports.py (100%) rename {src => plugins}/kimchi/model/diskutils.py (100%) rename {src => plugins}/kimchi/model/featuretests.py (100%) rename {src => plugins}/kimchi/model/groups.py (100%) rename {src => plugins}/kimchi/model/host.py (100%) rename {src => plugins}/kimchi/model/hostdev.py (100%) rename {src => plugins}/kimchi/model/interfaces.py (100%) rename {src => plugins}/kimchi/model/libvirtconnection.py (100%) rename {src => plugins}/kimchi/model/libvirtstoragepool.py (100%) rename {src => plugins}/kimchi/model/model.py (100%) rename {src => plugins}/kimchi/model/networks.py (100%) rename {src => plugins}/kimchi/model/peers.py (100%) rename {src => plugins}/kimchi/model/storagepools.py (100%) rename {src => plugins}/kimchi/model/storageservers.py (100%) rename {src => plugins}/kimchi/model/storagetargets.py (100%) rename {src => plugins}/kimchi/model/storagevolumes.py (100%) rename {src => plugins}/kimchi/model/tasks.py (100%) rename {src => plugins}/kimchi/model/templates.py (100%) rename {src => plugins}/kimchi/model/users.py (100%) rename {src => plugins}/kimchi/model/utils.py (100%) rename {src => plugins}/kimchi/model/vmhostdevs.py (100%) rename {src => plugins}/kimchi/model/vmifaces.py (100%) rename {src => plugins}/kimchi/model/vms.py (100%) rename {src => plugins}/kimchi/model/vmsnapshots.py (100%) rename {src => plugins}/kimchi/model/vmstorages.py (100%) rename {src => plugins}/kimchi/osinfo.py (100%) rename {po => plugins/kimchi/po}/LINGUAS (100%) rename {po => plugins/kimchi/po}/Makefile.in.in (100%) rename {po => plugins/kimchi/po}/Makevars (100%) rename {po => plugins/kimchi/po}/POTFILES.in (100%) rename {po => plugins/kimchi/po}/de_DE.po (100%) rename {po => plugins/kimchi/po}/en_US.po (100%) rename {po => plugins/kimchi/po}/es_ES.po (100%) rename {po => plugins/kimchi/po}/fr_FR.po (100%) rename {po => plugins/kimchi/po}/gen-pot.in (100%) rename {po => plugins/kimchi/po}/it_IT.po (100%) rename {po => plugins/kimchi/po}/ja_JP.po (100%) rename {po => plugins/kimchi/po}/kimchi.pot (100%) rename {po => plugins/kimchi/po}/ko_KR.po (100%) rename {po => plugins/kimchi/po}/pt_BR.po (100%) rename {po => plugins/kimchi/po}/ru_RU.po (100%) rename {po => plugins/kimchi/po}/zh_CN.po (100%) rename {po => plugins/kimchi/po}/zh_TW.po (100%) rename {src => plugins}/kimchi/repositories.py (100%) rename {src => plugins}/kimchi/scan.py (100%) rename {src => plugins}/kimchi/screenshot.py (100%) rename {src => plugins}/kimchi/swupdate.py (100%) rename {src => plugins/kimchi}/template.conf (100%) rename {tests => plugins/kimchi/tests}/Makefile.am (100%) rename {tests => plugins/kimchi/tests}/iso_gen.py (100%) rename {tests => plugins/kimchi/tests}/run_tests.sh.in (100%) rename {tests => plugins/kimchi/tests}/test_authorization.py (100%) rename {tests => plugins/kimchi/tests}/test_config.py.in (100%) rename {tests => plugins/kimchi/tests}/test_exception.py (100%) rename {tests => plugins/kimchi/tests}/test_host.py (100%) rename {tests => plugins/kimchi/tests}/test_mock_network.py (100%) rename {tests => plugins/kimchi/tests}/test_mock_storagepool.py (100%) rename {tests => plugins/kimchi/tests}/test_mock_storagevolume.py (100%) rename {tests => plugins/kimchi/tests}/test_mockmodel.py (100%) rename {tests => plugins/kimchi/tests}/test_model.py (100%) rename {tests => plugins/kimchi/tests}/test_model_network.py (100%) rename {tests => plugins/kimchi/tests}/test_model_storagepool.py (100%) rename {tests => plugins/kimchi/tests}/test_model_storagevolume.py (100%) rename {tests => plugins/kimchi/tests}/test_networkxml.py (100%) rename {tests => plugins/kimchi/tests}/test_objectstore.py (100%) rename {tests => plugins/kimchi/tests}/test_osinfo.py (100%) rename {tests => plugins/kimchi/tests}/test_plugin.py (100%) rename {tests => plugins/kimchi/tests}/test_rest.py (100%) rename {tests => plugins/kimchi/tests}/test_rollbackcontext.py (100%) rename {tests => plugins/kimchi/tests}/test_server.py (100%) rename {tests => plugins/kimchi/tests}/test_storagepoolxml.py (100%) rename {tests => plugins/kimchi/tests}/test_template.py (100%) rename {tests => plugins/kimchi/tests}/test_utils.py (100%) rename {tests => plugins/kimchi/tests}/test_vmtemplate.py (100%) rename {tests => plugins/kimchi/tests}/test_yumparser.py (100%) rename {tests => plugins/kimchi/tests}/utils.py (100%) rename {config => plugins/kimchi/ui}/Makefile.am (100%) rename {config/ui => plugins/kimchi/ui/config}/Makefile.am (100%) rename config/ui/tabs.xml => plugins/kimchi/ui/config/tab-ext.xml (100%) rename {ui => plugins/kimchi/ui}/css/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/button.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/circleGauge.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/form.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/grid.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/guest-edit.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/guest-storage-add.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/host.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/jquery-ui.custom.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/line-chart.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/list.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/message.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/network.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/popover.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/report-add.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/report-rename.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/repository-add.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/repository-edit.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/storage.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/storagepool-add-volume.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/template-edit.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/template.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/template_add.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/template_list.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/tile-check.css (100%) rename {ui => plugins/kimchi/ui}/css/theme-default/toolbar.css (100%) rename {ui => plugins/kimchi/ui}/images/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/images/icon-centos.png (100%) rename {ui => plugins/kimchi/ui}/images/icon-debian.png (100%) rename {ui => plugins/kimchi/ui}/images/icon-fedora.png (100%) rename {ui => plugins/kimchi/ui}/images/icon-gentoo.png (100%) rename {ui => plugins/kimchi/ui}/images/icon-opensuse.png (100%) rename {ui => plugins/kimchi/ui}/images/icon-ubuntu.png (100%) rename {ui => plugins/kimchi/ui}/images/icon-vm.png (100%) rename {ui => plugins/kimchi/ui}/images/logo.ico (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/ac22_pause.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/ac22_pause_grey.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/ac24_resume.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/ac24_resume_grey.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/alert.png (100%) copy ui/images/theme-default/folder-arrow-right.png => plugins/kimchi/ui/images/theme-default/arrow-down-black.png (90%) rename {ui => plugins/kimchi/ui}/images/theme-default/arrow-down-disable.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/arrow-down.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/arrow-up.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/arrow_out.png (100%) copy ui/images/theme-default/folder-arrow-right.png => plugins/kimchi/ui/images/theme-default/bg-mask.png (90%) rename {ui => plugins/kimchi/ui}/images/theme-default/check-green.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/check-grey.png (100%) copy ui/images/theme-default/folder-arrow-right.png => plugins/kimchi/ui/images/theme-default/folder-arrow-down.png (90%) rename {ui => plugins/kimchi/ui}/images/theme-default/folder-arrow-right.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/group.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/host-icon-sprite.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-alert.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-back.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-camera.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-design.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-detail.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-event.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-iso.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-list.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-load.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-local.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-power-down.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-power-up.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-qcow2.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-raw.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-remote.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-reset.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-search.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-setting.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-sort.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-tool.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-tree.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-user.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/icon-volume-default.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/kimchi-loading.gif (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/kimchi-loading15x15.gif (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/loading.gif (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/logo-white.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/thumb-guest.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/thumb-host.png (100%) rename {ui => plugins/kimchi/ui}/images/theme-default/user.png (100%) rename {ui => plugins/kimchi/ui}/js/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.api.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.form.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.grid.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.guest_add_main.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.guest_edit_main.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.guest_main.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.guest_media_main.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.guest_storage_add.main.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.host.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.line-chart.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.network.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.report_add_main.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.report_rename_main.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.repository_add_main.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.repository_edit_main.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.select.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.storage_main.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.storagepool_add_main.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.storagepool_add_volume_main.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.template_add_main.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.template_edit_main.js (100%) rename {ui => plugins/kimchi/ui}/js/src/kimchi.template_main.js (100%) rename {ui => plugins/kimchi/ui}/js/widgets/circleGauge.js (100%) rename {ui => plugins/kimchi/ui}/libs/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/libs/themes/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/images/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/images/animated-overlay.gif (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/images/ui-bg_flat_75_ffffff_40x100.png (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/images/ui-bg_glass_65_ffffff_1x400.png (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/images/ui-bg_glass_75_dadada_1x400.png (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/images/ui-icons_222222_256x240.png (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/images/ui-icons_2e83ff_256x240.png (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/images/ui-icons_454545_256x240.png (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/images/ui-icons_888888_256x240.png (100%) rename {ui => plugins/kimchi/ui}/libs/themes/base/images/ui-icons_cd0a0a_256x240.png (100%) rename {ui => plugins/kimchi/ui}/pages/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/pages/error.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/guest-add.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/guest-edit.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/guest-storage-add.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/guest.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/help/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/pages/help/de_DE/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/pages/help/de_DE/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/de_DE/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/de_DE/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/de_DE/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/de_DE/templates.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/dita-help.xsl (100%) rename {ui => plugins/kimchi/ui}/pages/help/en_US/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/pages/help/en_US/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/en_US/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/en_US/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/en_US/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/en_US/templates.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/es_ES/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/pages/help/es_ES/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/es_ES/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/es_ES/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/es_ES/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/es_ES/templates.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/fr_FR/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/pages/help/fr_FR/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/fr_FR/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/fr_FR/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/fr_FR/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/fr_FR/templates.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/gen-index.py (100%) rename {ui => plugins/kimchi/ui}/pages/help/it_IT/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/pages/help/it_IT/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/it_IT/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/it_IT/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/it_IT/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/it_IT/templates.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ja_JP/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/pages/help/ja_JP/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ja_JP/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ja_JP/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ja_JP/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ja_JP/templates.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/kimchi.css (100%) rename {ui => plugins/kimchi/ui}/pages/help/ko_KR/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/pages/help/ko_KR/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ko_KR/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ko_KR/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ko_KR/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ko_KR/templates.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/pt_BR/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/pages/help/pt_BR/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/pt_BR/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/pt_BR/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/pt_BR/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/pt_BR/templates.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ru_RU/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/pages/help/ru_RU/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ru_RU/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ru_RU/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ru_RU/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/ru_RU/templates.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_CN/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_CN/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_CN/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_CN/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_CN/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_CN/templates.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_TW/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_TW/guests.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_TW/host.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_TW/network.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_TW/storage.dita (100%) rename {ui => plugins/kimchi/ui}/pages/help/zh_TW/templates.dita (100%) rename {ui => plugins/kimchi/ui}/pages/i18n.json.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/report-add.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/report-rename.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/repository-add.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/repository-edit.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/storagepool-add-volume.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/storagepool-add.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/tabs/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/pages/tabs/guests.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/tabs/host.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/tabs/network.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/tabs/storage.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/tabs/templates.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/template-add.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/pages/template-edit.html.tmpl (100%) rename {ui => plugins/kimchi/ui}/robots.txt (100%) rename {ui => plugins/kimchi/ui}/spice-html5/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/spice-html5/atKeynames.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/bitmap.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/css/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/spice-html5/css/spice.css (100%) rename {ui => plugins/kimchi/ui}/spice-html5/cursor.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/display.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/enums.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/inputs.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/lz.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/main.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/pages/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/spice-html5/pages/spice_auto.html (100%) rename {ui => plugins/kimchi/ui}/spice-html5/playback.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/png.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/quic.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/resize.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/simulatecursor.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/spicearraybuffer.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/spiceconn.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/spicedataview.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/spicemsg.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/spicetype.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/thirdparty/Makefile.am (100%) rename {ui => plugins/kimchi/ui}/spice-html5/thirdparty/jsbn.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/thirdparty/prng4.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/thirdparty/rng.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/thirdparty/rsa.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/thirdparty/sha1.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/ticket.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/utils.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/webm.js (100%) rename {ui => plugins/kimchi/ui}/spice-html5/wire.js (100%) rename {src => plugins}/kimchi/vmtemplate.py (100%) rename {src => plugins}/kimchi/xmlutils/Makefile.am (100%) rename {src => plugins}/kimchi/xmlutils/__init__.py (100%) rename {src => plugins}/kimchi/xmlutils/cpu.py (100%) rename {src => plugins}/kimchi/xmlutils/disk.py (100%) rename {src => plugins}/kimchi/xmlutils/graphics.py (100%) rename {src => plugins}/kimchi/xmlutils/interface.py (100%) rename {src => plugins}/kimchi/xmlutils/network.py (100%) rename {src => plugins}/kimchi/xmlutils/qemucmdline.py (100%) rename {src => plugins}/kimchi/yumparser.py (100%) diff --git a/plugins/kimchi/.gitignore b/plugins/kimchi/.gitignore new file mode 100644 index 0000000..b3988b6 --- /dev/null +++ b/plugins/kimchi/.gitignore @@ -0,0 +1,43 @@ +*.pyc +*~ +i18n/mo/* +log +data +mo +autom4te.cache +Makefile +Makefile.in +aclocal.m4 +build-aux/compile +build-aux/config.guess +build-aux/config.sub +build-aux/install-sh +build-aux/missing +build-aux/py-compile +configure +config.log +config.status +contrib/DEBIAN/control +contrib/kimchi.spec.fedora +contrib/kimchi.spec.suse +contrib/make-deb.sh +docs/kimchid.8 +*.min.css +*.min.js +*.gmo +stamp-po +kimchi-*.tar.gz +src/kimchid +src/kimchi.conf +src/nginx/kimchi.conf +src/kimchi/config.py +tests/run_tests.sh +tests/test_config.py +plugins/sample/po/POTFILES +plugins/sample/sample.conf +po/POTFILES +po/gen-pot +*.orig +*.rej +*.pem +ui/pages/help/*/*.html diff --git a/src/kimchi/API.json b/plugins/kimchi/API.json similarity index 100% rename from src/kimchi/API.json rename to plugins/kimchi/API.json diff --git a/plugins/kimchi/INSTALL b/plugins/kimchi/INSTALL new file mode 100644 index 0000000..63bf076 --- /dev/null +++ b/plugins/kimchi/INSTALL @@ -0,0 +1,369 @@ +Installation Instructions +************************* + +Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation, +Inc. + + Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. This file is offered as-is, +without warranty of any kind. + +Basic Installation +================== + + Briefly, the shell commands `./configure; make; make install' should +configure, build, and install this package. The following +more-detailed instructions are generic; see the `README' file for +instructions specific to this package. Some packages provide this +`INSTALL' file but do not implement all of the features documented +below. The lack of an optional feature in a given package is not +necessarily a bug. More recommendations for GNU packages can be found +in *note Makefile Conventions: (standards)Makefile Conventions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + It can also use an optional file (typically called `config.cache' +and enabled with `--cache-file=config.cache' or simply `-C') that saves +the results of its tests to speed up reconfiguring. Caching is +disabled by default to prevent problems with accidental use of stale +cache files. + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If you are using the cache, and at +some point `config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file `configure.ac' (or `configure.in') is used to create +`configure' by a program called `autoconf'. You need `configure.ac' if +you want to change it or regenerate `configure' using a newer version +of `autoconf'. + + The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. + + Running `configure' might take a while. While running, it prints + some messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package, generally using the just-built uninstalled binaries. + + 4. Type `make install' to install the programs and any data files and + documentation. When installing into a prefix owned by root, it is + recommended that the package be configured and built as a regular + user, and only the `make install' phase executed with root + privileges. + + 5. Optionally, type `make installcheck' to repeat any self-tests, but + this time using the binaries in their final installed location. + This target does not install anything. Running this target as a + regular user, particularly if the prior `make install' required + root privileges, verifies that the installation completed + correctly. + + 6. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + + 7. Often, you can also type `make uninstall' to remove the installed + files again. In practice, not all packages have tested that + uninstallation works correctly, even though it is required by the + GNU Coding Standards. + + 8. Some packages, particularly those that use Automake, provide `make + distcheck', which can by used by developers to test that all other + targets like `make install' and `make uninstall' work correctly. + This target is generally not run by end users. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. Run `./configure --help' +for details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=c99 CFLAGS=-g LIBS=-lposix + + *Note Defining Variables::, for more details. + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you can use GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. This +is known as a "VPATH" build. + + With a non-GNU `make', it is safer to compile the package for one +architecture at a time in the source code directory. After you have +installed the package for one architecture, use `make distclean' before +reconfiguring for another architecture. + + On MacOS X 10.5 and later systems, you can create libraries and +executables that work on multiple system types--known as "fat" or +"universal" binaries--by specifying multiple `-arch' options to the +compiler but only a single `-arch' option to the preprocessor. Like +this: + + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CPP="gcc -E" CXXCPP="g++ -E" + + This is not guaranteed to produce working output in all cases, you +may have to build one architecture at a time and combine the results +using the `lipo' tool if you have problems. + +Installation Names +================== + + By default, `make install' installs the package's commands under +`/usr/local/bin', include files under `/usr/local/include', etc. You +can specify an installation prefix other than `/usr/local' by giving +`configure' the option `--prefix=PREFIX', where PREFIX must be an +absolute file name. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +pass the option `--exec-prefix=PREFIX' to `configure', the package uses +PREFIX as the prefix for installing programs and libraries. +Documentation and other data files still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=DIR' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. In general, the +default for these options is expressed in terms of `${prefix}', so that +specifying just `--prefix' will affect all of the other directory +specifications that were not explicitly provided. + + The most portable way to affect installation locations is to pass the +correct locations to `configure'; however, many packages provide one or +both of the following shortcuts of passing variable assignments to the +`make install' command line to change installation locations without +having to reconfigure or recompile. + + The first method involves providing an override variable for each +affected directory. For example, `make install +prefix=/alternate/directory' will choose an alternate location for all +directory configuration variables that were expressed in terms of +`${prefix}'. Any directories that were specified during `configure', +but not in terms of `${prefix}', must each be overridden at install +time for the entire installation to be relocated. The approach of +makefile variable overrides for each directory variable is required by +the GNU Coding Standards, and ideally causes no recompilation. +However, some platforms have known limitations with the semantics of +shared libraries that end up requiring recompilation when using this +method, particularly noticeable in packages that use GNU Libtool. + + The second method involves providing the `DESTDIR' variable. For +example, `make install DESTDIR=/alternate/directory' will prepend +`/alternate/directory' before all installation names. The approach of +`DESTDIR' overrides is not required by the GNU Coding Standards, and +does not work on platforms that have drive letters. On the other hand, +it does better at avoiding recompilation issues, and works well even +when some directory options were not specified in terms of `${prefix}' +at `configure' time. + +Optional Features +================= + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + + Some packages offer the ability to configure how verbose the +execution of `make' will be. For these packages, running `./configure +--enable-silent-rules' sets the default to minimal output, which can be +overridden with `make V=1'; while running `./configure +--disable-silent-rules' sets the default to verbose, which can be +overridden with `make V=0'. + +Particular systems +================== + + On HP-UX, the default C compiler is not ANSI C compatible. If GNU +CC is not installed, it is recommended to use the following options in +order to use an ANSI C compiler: + + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" + +and if that doesn't work, install pre-built binaries of GCC for HP-UX. + + HP-UX `make' updates targets which have the same time stamps as +their prerequisites, which makes it generally unusable when shipped +generated files such as `configure' are involved. Use GNU `make' +instead. + + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot +parse its `<wchar.h>' header file. The option `-nodtk' can be used as +a workaround. If GNU CC is not installed, it is therefore recommended +to try + + ./configure CC="cc" + +and if that doesn't work, try + + ./configure CC="cc -nodtk" + + On Solaris, don't put `/usr/ucb' early in your `PATH'. This +directory contains several dysfunctional programs; working variants of +these programs are available in `/usr/bin'. So, if you need `/usr/ucb' +in your `PATH', put it _after_ `/usr/bin'. + + On Haiku, software installed for all users goes in `/boot/common', +not `/usr/local'. It is recommended to use the following options: + + ./configure --prefix=/boot/common + +Specifying the System Type +========================== + + There may be some features `configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, `configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the +`--build=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS + KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the option `--target=TYPE' to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=TYPE'. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Defining Variables +================== + + Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=value'. For example: + + ./configure CC=/usr/local2/bin/gcc + +causes the specified `gcc' to be used as the C compiler (unless it is +overridden in the site shell script). + +Unfortunately, this technique does not work for `CONFIG_SHELL' due to +an Autoconf bug. Until the bug is fixed you can use this workaround: + + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash + +`configure' Invocation +====================== + + `configure' recognizes the following options to control how it +operates. + +`--help' +`-h' + Print a summary of all of the options to `configure', and exit. + +`--help=short' +`--help=recursive' + Print a summary of the options unique to this package's + `configure', and exit. The `short' variant lists options used + only in the top level, while the `recursive' variant lists options + also present in any nested packages. + +`--version' +`-V' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`--cache-file=FILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally `config.cache'. FILE defaults to `/dev/null' to + disable caching. + +`--config-cache' +`-C' + Alias for `--cache-file=config.cache'. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--prefix=DIR' + Use DIR as the installation prefix. *note Installation Names:: + for more details, including other options available for fine-tuning + the installation locations. + +`--no-create' +`-n' + Run the configure checks, but stop before creating any output + files. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. diff --git a/plugins/kimchi/Makefile.am b/plugins/kimchi/Makefile.am new file mode 100644 index 0000000..1a0c8e7 --- /dev/null +++ b/plugins/kimchi/Makefile.am @@ -0,0 +1,165 @@ +# +# Kimchi +# +# Copyright IBM Corp, 2013 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +SUBDIRS = src ui docs contrib tests po config plugins + +man_MANS = docs/kimchid.8 + +AUTOMAKE_OPTIONS = foreign + +ACLOCAL_AMFLAGS = --install -I m4 + +EXTRA_DIST = \ + config.rpath \ + autogen.sh \ + COPYING.ASL2 \ + COPYING.LGPL \ + CONTRIBUTE.md \ + VERSION \ + build-aux/pkg-version \ + $(NULL) + + +PEP8_BLACKLIST = *src/kimchi/config.py,*src/kimchi/i18n.py,*tests/test_config.py + +SKIP_PYFLAKES_ERR = "\./src/kimchi/websocket\.py" + +I18N_FILES = plugins/*/i18n.py \ + src/kimchi/i18n.py \ + $(NULL) + +check-local: + PYTHONPATH=src contrib/check_i18n.py $(I18N_FILES) + find . -path './.git' -prune -type f -o \ + -name '*.py' -o -name '*.py.in' | xargs $(PYFLAKES) | \ + grep -w -v $(SKIP_PYFLAKES_ERR) | \ + while read LINE; do echo "$$LINE"; false; done + + $(PEP8) --version + $(PEP8) --filename '*.py,*.py.in' --exclude="$(PEP8_BLACKLIST)" . + + +# Link built mo files in the source tree to enable use of translations from +# within the source tree +all-local: + while read L && test -n "$$L"; do \ + dir=mo/$$L/LC_MESSAGES ; \ + $(MKDIR_P) $$dir ; \ + ln -sf ../../../po/$$L.gmo $$dir/kimchi.mo ; \ + done < po/LINGUAS + +# +# Packaging helpers +# + +install-deb: install + cp -R $(top_srcdir)/contrib/DEBIAN $(DESTDIR)/ + mkdir -p $(DESTDIR)/var/lib/kimchi/debugreports + mkdir -p $(DESTDIR)/var/lib/kimchi/screenshots + mkdir -p $(DESTDIR)/var/lib/kimchi/vnc-tokens + mkdir -p $(DESTDIR)/var/lib/kimchi/isos + touch $(DESTDIR)/var/lib/kimchi/objectstore + $(MKDIR_P) $(DESTDIR)/etc/init + $(MKDIR_P) $(DESTDIR)/usr/lib/firewalld/services + cp -R $(top_srcdir)/contrib/kimchid-upstart.conf.debian \ + $(DESTDIR)/etc/init/kimchid.conf + cp -R $(top_srcdir)/src/firewalld.xml \ + $(DESTDIR)/usr/lib/firewalld/services/kimchid.xml + + +deb: contrib/make-deb.sh + $(top_srcdir)/contrib/make-deb.sh + +kimchi.spec: contrib/kimchi.spec.fedora contrib/kimchi.spec.suse + @if test -e /etc/redhat-release; then \ + ln -sf contrib/kimchi.spec.fedora $@ ; \ + elif test -e /etc/SuSE-release; then \ + ln -sf contrib/kimchi.spec.suse $@ ; \ + else \ + echo "Unable to select a spec file for RPM build" ; \ + /bin/false ; \ + fi + +rpm: dist kimchi.spec + $(MKDIR_P) rpm/BUILD rpm/RPMS rpm/SOURCES rpm/SPECS rpm/SRPMS + cp $(top_srcdir)/kimchi.spec rpm/SPECS/kimchi.spec + cp $(DIST_ARCHIVES) rpm/SOURCES + rpmbuild -ba --define "_topdir `pwd`/rpm" rpm/SPECS/kimchi.spec + +fedora-rpm: contrib/kimchi.spec.fedora + ln -sf contrib/kimchi.spec.fedora kimchi.spec + $(MAKE) rpm + +suse-rpm: contrib/kimchi.spec.suse + ln -sf contrib/kimchi.spec.suse kimchi.spec + $(MAKE) rpm + +ChangeLog: + @if test -d .git; then \ + $(top_srcdir)/build-aux/genChangelog --release > $@; \ + fi + +install-data-local: + @if test -d $(systemdsystemunitdir) ; then \ + mkdir -p $(DESTDIR)/$(systemdsystemunitdir); \ + $(INSTALL_DATA) contrib/kimchid.service.fedora $(DESTDIR)/$(systemdsystemunitdir)/kimchid.service; \ + else \ + mkdir -p $(DESTDIR)/etc/init.d/ \ + $(INSTALL_DATA) contrib/kimchid.sysvinit $(DESTDIR)/etc/init.d/kimchid; \ + chmod +x $(DESTDIR)/etc/init.d/kimchid; \ + fi; \ + if test -d /usr/lib/firewalld/services/; then \ + mkdir -p $(DESTDIR)/usr/lib/firewalld/services/; \ + $(INSTALL_DATA) src/firewalld.xml $(DESTDIR)/usr/lib/firewalld/services/kimchid.xml; \ + fi; \ + mkdir -p $(DESTDIR)/var/lib/kimchi/{debugreports,screenshots,vnc-tokens,isos} + touch $(DESTDIR)/var/lib/kimchi/objectstore + mkdir -p $(DESTDIR)/var/log/kimchi/ + touch $(DESTDIR)/var/log/kimchi/kimchi-access.log + touch $(DESTDIR)/var/log/kimchi/kimchi-error.log + mkdir -p $(DESTDIR)/etc/kimchi/ + $(INSTALL_DATA) src/dhparams.pem $(DESTDIR)/etc/kimchi/dhparams.pem + touch $(DESTDIR)/etc/nginx/conf.d/kimchi.conf + +uninstall-local: + @if test -f $(systemdsystemunitdir)/kimchid.service; then \ + $(RM) $(DESTDIR)/$(systemdsystemunitdir)/kimchid.service; \ + elif test -f /etc/init.d/kimchid; then \ + $(RM) $(DESTDIR)/etc/init.d/kimchid; \ + $(RM) $(DESTDIR)/etc/init/kimchi.conf; \ + fi; \ + if test -d /usr/lib/firewalld/services/; then \ + $(RM) $(DESTDIR)/usr/lib/firewalld/services/kimchid.xml; \ + fi; \ + $(RM) -rf $(DESTDIR)/var/lib/kimchi + $(RM) -rf $(DESTDIR)/var/log/kimchi + $(RM) -rf $(DESTDIR)/etc/kimchi + $(RM) $(DESTDIR)/etc/nginx/conf.d/kimchi.conf + +VERSION: + @if test -d .git; then \ + git describe --abbrev=0 > $@; \ + fi + +.PHONY: deb install-deb rpm fedora-rpm suse-rpm ChangeLog VERSION + + +clean-local: + rm -rf mo rpm + +CLEANFILES = kimchi.spec `find "$(top_srcdir)" -type f -name "*.pyc" -print` diff --git a/README.md b/plugins/kimchi/README.md similarity index 100% rename from README.md rename to plugins/kimchi/README.md diff --git a/VERSION b/plugins/kimchi/VERSION similarity index 100% rename from VERSION rename to plugins/kimchi/VERSION diff --git a/plugins/kimchi/autogen.sh b/plugins/kimchi/autogen.sh new file mode 100755 index 0000000..0f22dba --- /dev/null +++ b/plugins/kimchi/autogen.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +aclocal +automake --add-missing +autoreconf + +if [ ! -f "configure" ]; then + echo "Failed to generate configure script. Check to make sure autoconf, " + echo "automake, and other build dependencies are properly installed." + exit 1 +fi + +if [ "x$1" == "x--system" ]; then + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +else + if [ $# -gt 0 ]; then + ./configure $@ + else + ./configure --prefix=/usr/local + fi +fi diff --git a/plugins/kimchi/build-aux/config.rpath b/plugins/kimchi/build-aux/config.rpath new file mode 100644 index 0000000..17298f2 --- /dev/null +++ b/plugins/kimchi/build-aux/config.rpath @@ -0,0 +1,672 @@ +#! /bin/sh +# Output a system dependent set of variables, describing how to set the +# run time search path of shared libraries in an executable. +# +# Copyright 1996-2010 Free Software Foundation, Inc. +# Taken from GNU libtool, 2001 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# The first argument passed to this file is the canonical host specification, +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld +# should be set by the caller. +# +# The set of defined variables is at the end of this script. + +# Known limitations: +# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer +# than 256 bytes, otherwise the compiler driver will dump core. The only +# known workaround is to choose shorter directory names for the build +# directory and/or the installation directory. + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a +shrext=.so + +host="$1" +host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + +# Code taken from libtool.m4's _LT_CC_BASENAME. + +for cc_temp in $CC""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` + +# Code taken from libtool.m4's _LT_COMPILER_PIC. + +wl= +if test "$GCC" = yes; then + wl='-Wl,' +else + case "$host_os" in + aix*) + wl='-Wl,' + ;; + darwin*) + case $cc_basename in + xlc*) + wl='-Wl,' + ;; + esac + ;; + mingw* | cygwin* | pw32* | os2* | cegcc*) + ;; + hpux9* | hpux10* | hpux11*) + wl='-Wl,' + ;; + irix5* | irix6* | nonstopux*) + wl='-Wl,' + ;; + newsos6) + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + ecc*) + wl='-Wl,' + ;; + icc* | ifort*) + wl='-Wl,' + ;; + lf95*) + wl='-Wl,' + ;; + pgcc | pgf77 | pgf90) + wl='-Wl,' + ;; + ccc*) + wl='-Wl,' + ;; + como) + wl='-lopt=' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + wl='-Wl,' + ;; + esac + ;; + esac + ;; + osf3* | osf4* | osf5*) + wl='-Wl,' + ;; + rdos*) + ;; + solaris*) + wl='-Wl,' + ;; + sunos4*) + wl='-Qoption ld ' + ;; + sysv4 | sysv4.2uw2* | sysv4.3*) + wl='-Wl,' + ;; + sysv4*MP*) + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + wl='-Wl,' + ;; + unicos*) + wl='-Wl,' + ;; + uts4*) + ;; + esac +fi + +# Code taken from libtool.m4's _LT_LINKER_SHLIBS. + +hardcode_libdir_flag_spec= +hardcode_libdir_separator= +hardcode_direct=no +hardcode_minus_L=no + +case "$host_os" in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; +esac + +ld_shlibs=yes +if test "$with_gnu_ld" = yes; then + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + # Unlike libtool, we use -rpath here, not --rpath, since the documented + # option of GNU ld is called -rpath, not --rpath. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + case "$host_os" in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + fi + ;; + amigaos*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we cannot use + # them. + ld_shlibs=no + ;; + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + cygwin* | mingw* | pw32* | cegcc*) + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + interix[3-9]*) + hardcode_direct=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + gnu* | linux* | k*bsd*-gnu) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + netbsd*) + ;; + solaris*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' + else + ld_shlibs=no + fi + ;; + esac + ;; + sunos4*) + hardcode_direct=yes + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + esac + if test "$ld_shlibs" = no; then + hardcode_libdir_flag_spec= + fi +else + case "$host_os" in + aix3*) + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + else + aix_use_runtimelinking=no + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + fi + hardcode_direct=yes + hardcode_libdir_separator=':' + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + fi + # Begin _LT_AC_SYS_LIBPATH_AIX. + echo 'int main () { return 0; }' > conftest.c + ${CC} ${LDFLAGS} conftest.c -o conftest + aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` + if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` + fi + if test -z "$aix_libpath"; then + aix_libpath="/usr/lib:/lib" + fi + rm -f conftest.c conftest + # End _LT_AC_SYS_LIBPATH_AIX. + if test "$aix_use_runtimelinking" = yes; then + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + else + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + fi + fi + ;; + amigaos*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # see comment about different semantics on the GNU ld section + ld_shlibs=no + ;; + bsdi[45]*) + ;; + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + libext=lib + ;; + darwin* | rhapsody*) + hardcode_direct=no + if test "$GCC" = yes ; then + : + else + case $cc_basename in + xlc*) + ;; + *) + ld_shlibs=no + ;; + esac + fi + ;; + dgux*) + hardcode_libdir_flag_spec='-L$libdir' + ;; + freebsd1*) + ld_shlibs=no + ;; + freebsd2.2*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + freebsd2*) + hardcode_direct=yes + hardcode_minus_L=yes + ;; + freebsd* | dragonfly*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + hpux9*) + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + hpux10*) + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + hpux11*) + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + ;; + *) + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + irix5* | irix6* | nonstopux*) + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + netbsd*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + newsos6) + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + else + case "$host_os" in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + osf3*) + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + osf4* | osf5*) + if test "$GCC" = yes; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + # Both cc and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + solaris*) + hardcode_libdir_flag_spec='-R$libdir' + ;; + sunos4*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + ;; + sysv4) + case $host_vendor in + sni) + hardcode_direct=yes # is this really true??? + ;; + siemens) + hardcode_direct=no + ;; + motorola) + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + ;; + sysv4.3*) + ;; + sysv4*MP*) + if test -d /usr/nec; then + ld_shlibs=yes + fi + ;; + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + ;; + sysv5* | sco3.2v5* | sco5v6*) + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + hardcode_libdir_separator=':' + ;; + uts4*) + hardcode_libdir_flag_spec='-L$libdir' + ;; + *) + ld_shlibs=no + ;; + esac +fi + +# Check dynamic linker characteristics +# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. +# Unlike libtool.m4, here we don't care about _all_ names of the library, but +# only about the one the linker finds when passed -lNAME. This is the last +# element of library_names_spec in libtool.m4, or possibly two of them if the +# linker has special search rules. +library_names_spec= # the last element of library_names_spec in libtool.m4 +libname_spec='lib$name' +case "$host_os" in + aix3*) + library_names_spec='$libname.a' + ;; + aix[4-9]*) + library_names_spec='$libname$shrext' + ;; + amigaos*) + library_names_spec='$libname.a' + ;; + beos*) + library_names_spec='$libname$shrext' + ;; + bsdi[45]*) + library_names_spec='$libname$shrext' + ;; + cygwin* | mingw* | pw32* | cegcc*) + shrext=.dll + library_names_spec='$libname.dll.a $libname.lib' + ;; + darwin* | rhapsody*) + shrext=.dylib + library_names_spec='$libname$shrext' + ;; + dgux*) + library_names_spec='$libname$shrext' + ;; + freebsd1*) + ;; + freebsd* | dragonfly*) + case "$host_os" in + freebsd[123]*) + library_names_spec='$libname$shrext$versuffix' ;; + *) + library_names_spec='$libname$shrext' ;; + esac + ;; + gnu*) + library_names_spec='$libname$shrext' + ;; + hpux9* | hpux10* | hpux11*) + case $host_cpu in + ia64*) + shrext=.so + ;; + hppa*64*) + shrext=.sl + ;; + *) + shrext=.sl + ;; + esac + library_names_spec='$libname$shrext' + ;; + interix[3-9]*) + library_names_spec='$libname$shrext' + ;; + irix5* | irix6* | nonstopux*) + library_names_spec='$libname$shrext' + case "$host_os" in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; + *) libsuff= shlibsuff= ;; + esac + ;; + esac + ;; + linux*oldld* | linux*aout* | linux*coff*) + ;; + linux* | k*bsd*-gnu) + library_names_spec='$libname$shrext' + ;; + knetbsd*-gnu) + library_names_spec='$libname$shrext' + ;; + netbsd*) + library_names_spec='$libname$shrext' + ;; + newsos6) + library_names_spec='$libname$shrext' + ;; + nto-qnx*) + library_names_spec='$libname$shrext' + ;; + openbsd*) + library_names_spec='$libname$shrext$versuffix' + ;; + os2*) + libname_spec='$name' + shrext=.dll + library_names_spec='$libname.a' + ;; + osf3* | osf4* | osf5*) + library_names_spec='$libname$shrext' + ;; + rdos*) + ;; + solaris*) + library_names_spec='$libname$shrext' + ;; + sunos4*) + library_names_spec='$libname$shrext$versuffix' + ;; + sysv4 | sysv4.3*) + library_names_spec='$libname$shrext' + ;; + sysv4*MP*) + library_names_spec='$libname$shrext' + ;; + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + library_names_spec='$libname$shrext' + ;; + uts4*) + library_names_spec='$libname$shrext' + ;; +esac + +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' +escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` +shlibext=`echo "$shrext" | sed -e 's,^\.,,'` +escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` +escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` +escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` + +LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF + +# How to pass a linker flag through the compiler. +wl="$escaped_wl" + +# Static library suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally "so"). +shlibext="$shlibext" + +# Format of library name prefix. +libname_spec="$escaped_libname_spec" + +# Library names that the linker finds when passed -lNAME. +library_names_spec="$escaped_library_names_spec" + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator="$hardcode_libdir_separator" + +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the +# resulting binary. +hardcode_direct="$hardcode_direct" + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L="$hardcode_minus_L" + +EOF diff --git a/plugins/kimchi/build-aux/genChangelog b/plugins/kimchi/build-aux/genChangelog new file mode 100755 index 0000000..803f24e --- /dev/null +++ b/plugins/kimchi/build-aux/genChangelog @@ -0,0 +1,25 @@ +#!/bin/bash + +# This script is based on code from the Kandan project: +# https://github.com/kandanapp/kandan/blob/master/gen-changelog.sh + +echo "CHANGELOG" +echo "=========" +echo +git for-each-ref --sort='*authordate' --format='%(tag)' refs/tags | tac |grep -v '^$' | while read TAG ; do + if [ $NEXT ]; then + echo "#### [$NEXT] ####" + elif [ "$1" != "--release" ]; then + echo "#### [Current] ####" + else + NEXT=$TAG + continue + fi + GIT_PAGER=cat git log --pretty=format:" * [%h] %<(78,trunc)%s (%an)" $TAG..$NEXT + NEXT=$TAG + echo; echo +done +FIRST=$(git for-each-ref --sort='*authordate' --format='%(tag)' refs/tags | head -1) + +echo "#### [$FIRST] ####" +GIT_PAGER=cat git log --pretty=format:" * [%h] %<(78,trunc)%s (%an)" $FIRST diff --git a/plugins/kimchi/build-aux/pkg-version b/plugins/kimchi/build-aux/pkg-version new file mode 100755 index 0000000..749cf6c --- /dev/null +++ b/plugins/kimchi/build-aux/pkg-version @@ -0,0 +1,59 @@ +#!/bin/sh +# +# Copyright 2008-2012 Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +# tags and output versions: +# - 4.9.0 => 4.9.0 (upstream clean) +# - 4.9.0-1 => 4.9.0 (downstream clean) +# - 4.9.0-2-g34e62f => 4.9.0 (upstream dirty) +# - 4.9.0-1-2-g34e62f => 4.9.0 (downstream dirty) +AWK_VERSION=' + BEGIN { FS="-" } + /^[0-9]/ { + print $1 + }' + +# tags and output releases: +# - 4.9.0 => 0 (upstream clean) +# - 4.9.0-1 => 1 (downstream clean) +# - 4.9.0-2-g34e62f1 => 2.git34e62f1 (upstream dirty) +# - 4.9.0-1-2-g34e62f1 => 1.2.git34e62f1 (downstream dirty) +AWK_RELEASE=' + BEGIN { FS="-"; OFS="." } + /^[0-9]/ { + if (NF == 1) print 0 + else if (NF == 2) print $2 + else if (NF == 3) print $2, "git" substr($3, 2) + else if (NF == 4) print $2, $3, "git" substr($4, 2) + }' + +if [ ! -d .git ]; then + PKG_VERSION=`cat VERSION` +else + PKG_VERSION=`git describe --tags --match "[0-9]*" || cat VERSION` +fi + +if test "x$1" = "x--full"; then + echo $PKG_VERSION | tr -d '[:space:]' +elif test "x$1" = "x--version"; then + echo $PKG_VERSION | awk "$AWK_VERSION" | tr -cd '[:alnum:].' +elif test "x$1" = "x--release"; then + echo $PKG_VERSION | awk "$AWK_RELEASE" | tr -cd '[:alnum:].' +else + echo "usage: $0 [--full|--version|--release]" + exit 1 +fi diff --git a/plugins/kimchi/config.rpath b/plugins/kimchi/config.rpath new file mode 100644 index 0000000..17298f2 --- /dev/null +++ b/plugins/kimchi/config.rpath @@ -0,0 +1,672 @@ +#! /bin/sh +# Output a system dependent set of variables, describing how to set the +# run time search path of shared libraries in an executable. +# +# Copyright 1996-2010 Free Software Foundation, Inc. +# Taken from GNU libtool, 2001 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# The first argument passed to this file is the canonical host specification, +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld +# should be set by the caller. +# +# The set of defined variables is at the end of this script. + +# Known limitations: +# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer +# than 256 bytes, otherwise the compiler driver will dump core. The only +# known workaround is to choose shorter directory names for the build +# directory and/or the installation directory. + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a +shrext=.so + +host="$1" +host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + +# Code taken from libtool.m4's _LT_CC_BASENAME. + +for cc_temp in $CC""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` + +# Code taken from libtool.m4's _LT_COMPILER_PIC. + +wl= +if test "$GCC" = yes; then + wl='-Wl,' +else + case "$host_os" in + aix*) + wl='-Wl,' + ;; + darwin*) + case $cc_basename in + xlc*) + wl='-Wl,' + ;; + esac + ;; + mingw* | cygwin* | pw32* | os2* | cegcc*) + ;; + hpux9* | hpux10* | hpux11*) + wl='-Wl,' + ;; + irix5* | irix6* | nonstopux*) + wl='-Wl,' + ;; + newsos6) + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + ecc*) + wl='-Wl,' + ;; + icc* | ifort*) + wl='-Wl,' + ;; + lf95*) + wl='-Wl,' + ;; + pgcc | pgf77 | pgf90) + wl='-Wl,' + ;; + ccc*) + wl='-Wl,' + ;; + como) + wl='-lopt=' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + wl='-Wl,' + ;; + esac + ;; + esac + ;; + osf3* | osf4* | osf5*) + wl='-Wl,' + ;; + rdos*) + ;; + solaris*) + wl='-Wl,' + ;; + sunos4*) + wl='-Qoption ld ' + ;; + sysv4 | sysv4.2uw2* | sysv4.3*) + wl='-Wl,' + ;; + sysv4*MP*) + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + wl='-Wl,' + ;; + unicos*) + wl='-Wl,' + ;; + uts4*) + ;; + esac +fi + +# Code taken from libtool.m4's _LT_LINKER_SHLIBS. + +hardcode_libdir_flag_spec= +hardcode_libdir_separator= +hardcode_direct=no +hardcode_minus_L=no + +case "$host_os" in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; +esac + +ld_shlibs=yes +if test "$with_gnu_ld" = yes; then + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + # Unlike libtool, we use -rpath here, not --rpath, since the documented + # option of GNU ld is called -rpath, not --rpath. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + case "$host_os" in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + fi + ;; + amigaos*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we cannot use + # them. + ld_shlibs=no + ;; + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + cygwin* | mingw* | pw32* | cegcc*) + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + interix[3-9]*) + hardcode_direct=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + gnu* | linux* | k*bsd*-gnu) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + netbsd*) + ;; + solaris*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' + else + ld_shlibs=no + fi + ;; + esac + ;; + sunos4*) + hardcode_direct=yes + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + esac + if test "$ld_shlibs" = no; then + hardcode_libdir_flag_spec= + fi +else + case "$host_os" in + aix3*) + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + else + aix_use_runtimelinking=no + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + fi + hardcode_direct=yes + hardcode_libdir_separator=':' + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + fi + # Begin _LT_AC_SYS_LIBPATH_AIX. + echo 'int main () { return 0; }' > conftest.c + ${CC} ${LDFLAGS} conftest.c -o conftest + aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` + if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` + fi + if test -z "$aix_libpath"; then + aix_libpath="/usr/lib:/lib" + fi + rm -f conftest.c conftest + # End _LT_AC_SYS_LIBPATH_AIX. + if test "$aix_use_runtimelinking" = yes; then + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + else + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + fi + fi + ;; + amigaos*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # see comment about different semantics on the GNU ld section + ld_shlibs=no + ;; + bsdi[45]*) + ;; + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + libext=lib + ;; + darwin* | rhapsody*) + hardcode_direct=no + if test "$GCC" = yes ; then + : + else + case $cc_basename in + xlc*) + ;; + *) + ld_shlibs=no + ;; + esac + fi + ;; + dgux*) + hardcode_libdir_flag_spec='-L$libdir' + ;; + freebsd1*) + ld_shlibs=no + ;; + freebsd2.2*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + freebsd2*) + hardcode_direct=yes + hardcode_minus_L=yes + ;; + freebsd* | dragonfly*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + hpux9*) + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + hpux10*) + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + hpux11*) + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + ;; + *) + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + irix5* | irix6* | nonstopux*) + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + netbsd*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + newsos6) + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + else + case "$host_os" in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + osf3*) + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + osf4* | osf5*) + if test "$GCC" = yes; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + # Both cc and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + solaris*) + hardcode_libdir_flag_spec='-R$libdir' + ;; + sunos4*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + ;; + sysv4) + case $host_vendor in + sni) + hardcode_direct=yes # is this really true??? + ;; + siemens) + hardcode_direct=no + ;; + motorola) + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + ;; + sysv4.3*) + ;; + sysv4*MP*) + if test -d /usr/nec; then + ld_shlibs=yes + fi + ;; + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + ;; + sysv5* | sco3.2v5* | sco5v6*) + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + hardcode_libdir_separator=':' + ;; + uts4*) + hardcode_libdir_flag_spec='-L$libdir' + ;; + *) + ld_shlibs=no + ;; + esac +fi + +# Check dynamic linker characteristics +# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. +# Unlike libtool.m4, here we don't care about _all_ names of the library, but +# only about the one the linker finds when passed -lNAME. This is the last +# element of library_names_spec in libtool.m4, or possibly two of them if the +# linker has special search rules. +library_names_spec= # the last element of library_names_spec in libtool.m4 +libname_spec='lib$name' +case "$host_os" in + aix3*) + library_names_spec='$libname.a' + ;; + aix[4-9]*) + library_names_spec='$libname$shrext' + ;; + amigaos*) + library_names_spec='$libname.a' + ;; + beos*) + library_names_spec='$libname$shrext' + ;; + bsdi[45]*) + library_names_spec='$libname$shrext' + ;; + cygwin* | mingw* | pw32* | cegcc*) + shrext=.dll + library_names_spec='$libname.dll.a $libname.lib' + ;; + darwin* | rhapsody*) + shrext=.dylib + library_names_spec='$libname$shrext' + ;; + dgux*) + library_names_spec='$libname$shrext' + ;; + freebsd1*) + ;; + freebsd* | dragonfly*) + case "$host_os" in + freebsd[123]*) + library_names_spec='$libname$shrext$versuffix' ;; + *) + library_names_spec='$libname$shrext' ;; + esac + ;; + gnu*) + library_names_spec='$libname$shrext' + ;; + hpux9* | hpux10* | hpux11*) + case $host_cpu in + ia64*) + shrext=.so + ;; + hppa*64*) + shrext=.sl + ;; + *) + shrext=.sl + ;; + esac + library_names_spec='$libname$shrext' + ;; + interix[3-9]*) + library_names_spec='$libname$shrext' + ;; + irix5* | irix6* | nonstopux*) + library_names_spec='$libname$shrext' + case "$host_os" in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; + *) libsuff= shlibsuff= ;; + esac + ;; + esac + ;; + linux*oldld* | linux*aout* | linux*coff*) + ;; + linux* | k*bsd*-gnu) + library_names_spec='$libname$shrext' + ;; + knetbsd*-gnu) + library_names_spec='$libname$shrext' + ;; + netbsd*) + library_names_spec='$libname$shrext' + ;; + newsos6) + library_names_spec='$libname$shrext' + ;; + nto-qnx*) + library_names_spec='$libname$shrext' + ;; + openbsd*) + library_names_spec='$libname$shrext$versuffix' + ;; + os2*) + libname_spec='$name' + shrext=.dll + library_names_spec='$libname.a' + ;; + osf3* | osf4* | osf5*) + library_names_spec='$libname$shrext' + ;; + rdos*) + ;; + solaris*) + library_names_spec='$libname$shrext' + ;; + sunos4*) + library_names_spec='$libname$shrext$versuffix' + ;; + sysv4 | sysv4.3*) + library_names_spec='$libname$shrext' + ;; + sysv4*MP*) + library_names_spec='$libname$shrext' + ;; + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + library_names_spec='$libname$shrext' + ;; + uts4*) + library_names_spec='$libname$shrext' + ;; +esac + +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' +escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` +shlibext=`echo "$shrext" | sed -e 's,^\.,,'` +escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` +escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` +escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` + +LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF + +# How to pass a linker flag through the compiler. +wl="$escaped_wl" + +# Static library suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally "so"). +shlibext="$shlibext" + +# Format of library name prefix. +libname_spec="$escaped_libname_spec" + +# Library names that the linker finds when passed -lNAME. +library_names_spec="$escaped_library_names_spec" + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator="$hardcode_libdir_separator" + +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the +# resulting binary. +hardcode_direct="$hardcode_direct" + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L="$hardcode_minus_L" + +EOF diff --git a/plugins/kimchi/configure.ac b/plugins/kimchi/configure.ac new file mode 100644 index 0000000..0261b5f --- /dev/null +++ b/plugins/kimchi/configure.ac @@ -0,0 +1,147 @@ +# +# Kimchi +# +# Copyright IBM Corp, 2013-2015 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +AC_INIT([kimchi], [m4_esyscmd([./build-aux/pkg-version --version])]) + +AC_SUBST([PACKAGE_VERSION], + [m4_esyscmd([./build-aux/pkg-version --version])]) + +AC_SUBST([PACKAGE_RELEASE], + [m4_esyscmd([./build-aux/pkg-version --release])]) + +# Testing for version and release +AS_IF([test "x$PACKAGE_VERSION" = x], + AC_MSG_ERROR([package version not defined])) +AS_IF([test "x$PACKAGE_RELEASE" = x], + AC_MSG_ERROR([package release not defined])) + +AC_CONFIG_AUX_DIR([build-aux]) +AM_INIT_AUTOMAKE([-Wno-portability]) +AM_PATH_PYTHON([2.6]) +AC_PATH_PROG([PEP8], [pep8], [/usr/bin/pep8]) +AC_PYTHON_MODULE([unittest]) +AC_SUBST([HAVE_PYMOD_UNITTEST]) +AC_SUBST([PYTHON_VERSION]) +AM_GNU_GETTEXT([external]) +AM_GNU_GETTEXT_VERSION([0.10]) +AC_PATH_PROG([CHEETAH], [cheetah], [/usr/bin/cheetah]) + +# Checking for pyflakes +AC_PATH_PROG([PYFLAKES], [pyflakes]) +if test "x$PYFLAKES" = "x"; then + AC_MSG_WARN([pyflakes not found]) +fi + +AC_ARG_ENABLE( + [sample], + [AS_HELP_STRING( + [--enable-sample], + [enable sample plugin @<:@default=no@:>@] + )], + , + [enable_sample="no"] +) + +if test "${enable_sample}" = "yes"; then +AC_SUBST([ENABLE_SAMPLE], [True]) +else +AC_SUBST([ENABLE_SAMPLE], [False]) +fi + +# check for systemd +PKG_PROG_PKG_CONFIG +AC_ARG_WITH([systemdsystemunitdir], + AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), + [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]) +if test "x$with_systemdsystemunitdir" != xno; then + AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) +fi + +AC_ARG_WITH( + [spice-html5], + [AS_HELP_STRING([--with-spice-html5], + [Build Kimchi with spice-html5 @<:@default=no@:>@])], + , + [with_spice_html5="no"] +) +AM_CONDITIONAL([WITH_SPICE], [test "x$with_spice_html5" = xyes]) + +AC_CONFIG_FILES([ + po/Makefile.in + po/gen-pot + Makefile + docs/Makefile + docs/kimchid.8 + src/Makefile + src/distros.d/Makefile + src/nginx/Makefile + src/kimchi/Makefile + src/kimchi/control/Makefile + src/kimchi/control/vm/Makefile + src/kimchi/model/Makefile + src/kimchi/xmlutils/Makefile + plugins/Makefile + plugins/sample/Makefile + plugins/sample/po/Makefile.in + plugins/sample/sample.conf + plugins/sample/ui/Makefile + plugins/sample/ui/config/Makefile + plugins/sample/ui/js/Makefile + plugins/sample/ui/pages/Makefile + ui/Makefile + ui/css/Makefile + ui/images/Makefile + ui/images/theme-default/Makefile + ui/js/Makefile + ui/spice-html5/Makefile + ui/spice-html5/css/Makefile + ui/spice-html5/pages/Makefile + ui/spice-html5/thirdparty/Makefile + ui/libs/Makefile + ui/libs/themes/Makefile + ui/libs/themes/base/Makefile + ui/libs/themes/base/images/Makefile + ui/pages/Makefile + ui/pages/help/Makefile + ui/pages/help/en_US/Makefile + ui/pages/help/de_DE/Makefile + ui/pages/help/es_ES/Makefile + ui/pages/help/fr_FR/Makefile + ui/pages/help/it_IT/Makefile + ui/pages/help/ja_JP/Makefile + ui/pages/help/ko_KR/Makefile + ui/pages/help/pt_BR/Makefile + ui/pages/help/ru_RU/Makefile + ui/pages/help/zh_CN/Makefile + ui/pages/help/zh_TW/Makefile + ui/pages/tabs/Makefile + ui/pages/websockify/Makefile + contrib/Makefile + contrib/DEBIAN/Makefile + contrib/DEBIAN/control + contrib/kimchi.spec.fedora + contrib/kimchi.spec.suse + tests/Makefile + config/Makefile + config/ui/Makefile +],[ + chmod +x po/gen-pot +]) + +AC_OUTPUT diff --git a/contrib/DEBIAN/Makefile.am b/plugins/kimchi/contrib/DEBIAN/Makefile.am similarity index 100% rename from contrib/DEBIAN/Makefile.am rename to plugins/kimchi/contrib/DEBIAN/Makefile.am diff --git a/contrib/DEBIAN/control.in b/plugins/kimchi/contrib/DEBIAN/control.in similarity index 100% rename from contrib/DEBIAN/control.in rename to plugins/kimchi/contrib/DEBIAN/control.in diff --git a/contrib/Makefile.am b/plugins/kimchi/contrib/Makefile.am similarity index 100% rename from contrib/Makefile.am rename to plugins/kimchi/contrib/Makefile.am diff --git a/plugins/kimchi/contrib/check_i18n.py b/plugins/kimchi/contrib/check_i18n.py new file mode 100755 index 0000000..6a2603c --- /dev/null +++ b/plugins/kimchi/contrib/check_i18n.py @@ -0,0 +1,82 @@ +#!/usr/bin/env python2 +# +# Project Kimchi +# +# Copyright IBM, Corp. 2014-2015 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +import imp +import os +import re +import sys + + +# Match all conversion specifier with mapping key +PATTERN = re.compile(r'''%\([^)]+\) # Mapping key + [#0\-+]? # Conversion flags (optional) + (\d+|\*)? # Minimum field width (optional) + (\.(\d+|\*))? # Precision (optional) + [lLh]? # Length modifier (optional) + [cdeEfFgGioursxX%] # Conversion type''', + re.VERBOSE) +BAD_PATTERN = re.compile(r"%\([^)]*?\)") + + +def load_i18n_module(i18nfile): + path = os.path.dirname(i18nfile) + mname = i18nfile.replace("/", "_").rstrip(".py") + mobj = imp.find_module("i18n", [path]) + return imp.load_module(mname, *mobj) + + +def check_string_formatting(messages): + for k, v in messages.iteritems(): + if BAD_PATTERN.findall(PATTERN.sub(" ", v)): + print "bad i18n string formatting:" + print " %s: %s" % (k, v) + exit(1) + + +def check_obsolete_messages(path, messages): + def find_message_key(path, k): + for root, dirs, files in os.walk(path): + for f in files: + fname = os.path.join(root, f) + if (not fname.endswith("i18n.py") and fname.endswith(".py") or + fname.endswith(".json")): + with open(fname) as f: + string = "".join(f.readlines()) + if k in string: + return True + return False + + for k in messages.iterkeys(): + if not find_message_key(path, k): + print " %s is obsolete, it is no longer in use" % k + exit(1) + + +def main(): + print "Checking for invalid i18n string..." + for f in sys.argv[1:]: + messages = load_i18n_module(f).messages + check_string_formatting(messages) + check_obsolete_messages(os.path.dirname(f), messages) + print "Checking for invalid i18n string successfully" + + +if __name__ == '__main__': + main() diff --git a/contrib/kimchi.spec.fedora.in b/plugins/kimchi/contrib/kimchi.spec.fedora.in similarity index 100% rename from contrib/kimchi.spec.fedora.in rename to plugins/kimchi/contrib/kimchi.spec.fedora.in diff --git a/contrib/kimchi.spec.suse.in b/plugins/kimchi/contrib/kimchi.spec.suse.in similarity index 100% rename from contrib/kimchi.spec.suse.in rename to plugins/kimchi/contrib/kimchi.spec.suse.in diff --git a/contrib/make-deb.sh.in b/plugins/kimchi/contrib/make-deb.sh.in similarity index 100% rename from contrib/make-deb.sh.in rename to plugins/kimchi/contrib/make-deb.sh.in diff --git a/src/kimchi/control/Makefile.am b/plugins/kimchi/control/Makefile.am similarity index 100% rename from src/kimchi/control/Makefile.am rename to plugins/kimchi/control/Makefile.am diff --git a/src/kimchi/control/__init__.py b/plugins/kimchi/control/__init__.py similarity index 100% rename from src/kimchi/control/__init__.py rename to plugins/kimchi/control/__init__.py diff --git a/src/kimchi/control/config.py b/plugins/kimchi/control/config.py similarity index 100% rename from src/kimchi/control/config.py rename to plugins/kimchi/control/config.py diff --git a/src/kimchi/control/cpuinfo.py b/plugins/kimchi/control/cpuinfo.py similarity index 100% rename from src/kimchi/control/cpuinfo.py rename to plugins/kimchi/control/cpuinfo.py diff --git a/src/kimchi/control/debugreports.py b/plugins/kimchi/control/debugreports.py similarity index 100% rename from src/kimchi/control/debugreports.py rename to plugins/kimchi/control/debugreports.py diff --git a/src/kimchi/control/groups.py b/plugins/kimchi/control/groups.py similarity index 100% rename from src/kimchi/control/groups.py rename to plugins/kimchi/control/groups.py diff --git a/src/kimchi/control/host.py b/plugins/kimchi/control/host.py similarity index 100% rename from src/kimchi/control/host.py rename to plugins/kimchi/control/host.py diff --git a/src/kimchi/control/interfaces.py b/plugins/kimchi/control/interfaces.py similarity index 100% rename from src/kimchi/control/interfaces.py rename to plugins/kimchi/control/interfaces.py diff --git a/src/kimchi/control/networks.py b/plugins/kimchi/control/networks.py similarity index 100% rename from src/kimchi/control/networks.py rename to plugins/kimchi/control/networks.py diff --git a/src/kimchi/control/peers.py b/plugins/kimchi/control/peers.py similarity index 100% rename from src/kimchi/control/peers.py rename to plugins/kimchi/control/peers.py diff --git a/src/kimchi/control/storagepools.py b/plugins/kimchi/control/storagepools.py similarity index 100% rename from src/kimchi/control/storagepools.py rename to plugins/kimchi/control/storagepools.py diff --git a/src/kimchi/control/storageservers.py b/plugins/kimchi/control/storageservers.py similarity index 100% rename from src/kimchi/control/storageservers.py rename to plugins/kimchi/control/storageservers.py diff --git a/src/kimchi/control/storagevolumes.py b/plugins/kimchi/control/storagevolumes.py similarity index 100% rename from src/kimchi/control/storagevolumes.py rename to plugins/kimchi/control/storagevolumes.py diff --git a/src/kimchi/control/tasks.py b/plugins/kimchi/control/tasks.py similarity index 100% rename from src/kimchi/control/tasks.py rename to plugins/kimchi/control/tasks.py diff --git a/src/kimchi/control/templates.py b/plugins/kimchi/control/templates.py similarity index 100% rename from src/kimchi/control/templates.py rename to plugins/kimchi/control/templates.py diff --git a/src/kimchi/control/users.py b/plugins/kimchi/control/users.py similarity index 100% rename from src/kimchi/control/users.py rename to plugins/kimchi/control/users.py diff --git a/src/kimchi/control/vm/Makefile.am b/plugins/kimchi/control/vm/Makefile.am similarity index 100% rename from src/kimchi/control/vm/Makefile.am rename to plugins/kimchi/control/vm/Makefile.am diff --git a/src/kimchi/control/vm/__init__.py b/plugins/kimchi/control/vm/__init__.py similarity index 100% rename from src/kimchi/control/vm/__init__.py rename to plugins/kimchi/control/vm/__init__.py diff --git a/src/kimchi/control/vm/hostdevs.py b/plugins/kimchi/control/vm/hostdevs.py similarity index 100% rename from src/kimchi/control/vm/hostdevs.py rename to plugins/kimchi/control/vm/hostdevs.py diff --git a/src/kimchi/control/vm/ifaces.py b/plugins/kimchi/control/vm/ifaces.py similarity index 100% rename from src/kimchi/control/vm/ifaces.py rename to plugins/kimchi/control/vm/ifaces.py diff --git a/src/kimchi/control/vm/snapshots.py b/plugins/kimchi/control/vm/snapshots.py similarity index 100% rename from src/kimchi/control/vm/snapshots.py rename to plugins/kimchi/control/vm/snapshots.py diff --git a/src/kimchi/control/vm/storages.py b/plugins/kimchi/control/vm/storages.py similarity index 100% rename from src/kimchi/control/vm/storages.py rename to plugins/kimchi/control/vm/storages.py diff --git a/src/kimchi/control/vms.py b/plugins/kimchi/control/vms.py similarity index 100% rename from src/kimchi/control/vms.py rename to plugins/kimchi/control/vms.py diff --git a/src/kimchi/disks.py b/plugins/kimchi/disks.py similarity index 100% rename from src/kimchi/disks.py rename to plugins/kimchi/disks.py diff --git a/src/kimchi/distroloader.py b/plugins/kimchi/distroloader.py similarity index 100% rename from src/kimchi/distroloader.py rename to plugins/kimchi/distroloader.py diff --git a/src/distros.d/Makefile.am b/plugins/kimchi/distros.d/Makefile.am similarity index 100% rename from src/distros.d/Makefile.am rename to plugins/kimchi/distros.d/Makefile.am diff --git a/src/distros.d/debian.json b/plugins/kimchi/distros.d/debian.json similarity index 100% rename from src/distros.d/debian.json rename to plugins/kimchi/distros.d/debian.json diff --git a/src/distros.d/fedora.json b/plugins/kimchi/distros.d/fedora.json similarity index 100% rename from src/distros.d/fedora.json rename to plugins/kimchi/distros.d/fedora.json diff --git a/src/distros.d/gentoo.json b/plugins/kimchi/distros.d/gentoo.json similarity index 100% rename from src/distros.d/gentoo.json rename to plugins/kimchi/distros.d/gentoo.json diff --git a/src/distros.d/opensuse.json b/plugins/kimchi/distros.d/opensuse.json similarity index 100% rename from src/distros.d/opensuse.json rename to plugins/kimchi/distros.d/opensuse.json diff --git a/src/distros.d/ubuntu.json b/plugins/kimchi/distros.d/ubuntu.json similarity index 100% rename from src/distros.d/ubuntu.json rename to plugins/kimchi/distros.d/ubuntu.json diff --git a/docs/API.md b/plugins/kimchi/docs/API.md similarity index 100% rename from docs/API.md rename to plugins/kimchi/docs/API.md diff --git a/docs/Makefile.am b/plugins/kimchi/docs/Makefile.am similarity index 100% rename from docs/Makefile.am rename to plugins/kimchi/docs/Makefile.am diff --git a/docs/README-federation.md b/plugins/kimchi/docs/README-federation.md similarity index 100% rename from docs/README-federation.md rename to plugins/kimchi/docs/README-federation.md diff --git a/docs/README.md b/plugins/kimchi/docs/README.md similarity index 100% rename from docs/README.md rename to plugins/kimchi/docs/README.md diff --git a/src/kimchi/i18n.py b/plugins/kimchi/i18n.py similarity index 100% rename from src/kimchi/i18n.py rename to plugins/kimchi/i18n.py diff --git a/src/kimchi/imageinfo.py b/plugins/kimchi/imageinfo.py similarity index 100% rename from src/kimchi/imageinfo.py rename to plugins/kimchi/imageinfo.py diff --git a/src/kimchi/iscsi.py b/plugins/kimchi/iscsi.py similarity index 100% rename from src/kimchi/iscsi.py rename to plugins/kimchi/iscsi.py diff --git a/src/kimchi/isoinfo.py b/plugins/kimchi/isoinfo.py similarity index 100% rename from src/kimchi/isoinfo.py rename to plugins/kimchi/isoinfo.py diff --git a/src/kimchi/kvmusertests.py b/plugins/kimchi/kvmusertests.py similarity index 100% rename from src/kimchi/kvmusertests.py rename to plugins/kimchi/kvmusertests.py diff --git a/plugins/kimchi/m4/ac_python_module.m4 b/plugins/kimchi/m4/ac_python_module.m4 new file mode 100644 index 0000000..32b9d72 --- /dev/null +++ b/plugins/kimchi/m4/ac_python_module.m4 @@ -0,0 +1,30 @@ +dnl @synopsis AC_PYTHON_MODULE(modname[, fatal]) +dnl +dnl Checks for Python module. +dnl +dnl If fatal is non-empty then absence of a module will trigger an +dnl error. +dnl +dnl @category InstalledPackages +dnl @author Andrew Collier <colliera@nu.ac.za>. +dnl @version 2004-07-14 +dnl @license AllPermissive + +AC_DEFUN([AC_PYTHON_MODULE],[ + AC_MSG_CHECKING(python module: $1) + python -c "import $1" 2>/dev/null + if test $? -eq 0; + then + AC_MSG_RESULT(yes) + eval AS_TR_CPP(HAVE_PYMOD_$1)=yes + else + AC_MSG_RESULT(no) + eval AS_TR_CPP(HAVE_PYMOD_$1)=no + # + if test -n "$2" + then + AC_MSG_ERROR(failed to find required module $1) + exit 1 + fi + fi +]) diff --git a/plugins/kimchi/m4/gettext.m4 b/plugins/kimchi/m4/gettext.m4 new file mode 100644 index 0000000..f84e6a5 --- /dev/null +++ b/plugins/kimchi/m4/gettext.m4 @@ -0,0 +1,383 @@ +# gettext.m4 serial 63 (gettext-0.18) +dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006, 2008-2010. + +dnl Macro to add for using GNU gettext. + +dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). +dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The +dnl default (if it is not specified or empty) is 'no-libtool'. +dnl INTLSYMBOL should be 'external' for packages with no intl directory, +dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. +dnl If INTLSYMBOL is 'use-libtool', then a libtool library +dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, +dnl depending on --{enable,disable}-{shared,static} and on the presence of +dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library +dnl $(top_builddir)/intl/libintl.a will be created. +dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext +dnl implementations (in libc or libintl) without the ngettext() function +dnl will be ignored. If NEEDSYMBOL is specified and is +dnl 'need-formatstring-macros', then GNU gettext implementations that don't +dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored. +dnl INTLDIR is used to find the intl libraries. If empty, +dnl the value `$(top_builddir)/intl/' is used. +dnl +dnl The result of the configuration is one of three cases: +dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled +dnl and used. +dnl Catalog format: GNU --> install in $(datadir) +dnl Catalog extension: .mo after installation, .gmo in source tree +dnl 2) GNU gettext has been found in the system's C library. +dnl Catalog format: GNU --> install in $(datadir) +dnl Catalog extension: .mo after installation, .gmo in source tree +dnl 3) No internationalization, always use English msgid. +dnl Catalog format: none +dnl Catalog extension: none +dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. +dnl The use of .gmo is historical (it was needed to avoid overwriting the +dnl GNU format catalogs when building on a platform with an X/Open gettext), +dnl but we keep it in order not to force irrelevant filename changes on the +dnl maintainers. +dnl +AC_DEFUN([AM_GNU_GETTEXT], +[ + dnl Argument checking. + ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , + [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT +])])])])]) + ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], + [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) + ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , + [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT +])])])]) + define([gt_included_intl], + ifelse([$1], [external], + ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), + [yes])) + define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) + gt_NEEDS_INIT + AM_GNU_GETTEXT_NEED([$2]) + + AC_REQUIRE([AM_PO_SUBDIRS])dnl + ifelse(gt_included_intl, yes, [ + AC_REQUIRE([AM_INTL_SUBDIR])dnl + ]) + + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + + dnl Sometimes libintl requires libiconv, so first search for libiconv. + dnl Ideally we would do this search only after the + dnl if test "$USE_NLS" = "yes"; then + dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then + dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT + dnl the configure script would need to contain the same shell code + dnl again, outside any 'if'. There are two solutions: + dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. + dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. + dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not + dnl documented, we avoid it. + ifelse(gt_included_intl, yes, , [ + AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) + ]) + + dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. + gt_INTL_MACOSX + + dnl Set USE_NLS. + AC_REQUIRE([AM_NLS]) + + ifelse(gt_included_intl, yes, [ + BUILD_INCLUDED_LIBINTL=no + USE_INCLUDED_LIBINTL=no + ]) + LIBINTL= + LTLIBINTL= + POSUB= + + dnl Add a version number to the cache macros. + case " $gt_needs " in + *" need-formatstring-macros "*) gt_api_version=3 ;; + *" need-ngettext "*) gt_api_version=2 ;; + *) gt_api_version=1 ;; + esac + gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" + gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" + + dnl If we use NLS figure out what method + if test "$USE_NLS" = "yes"; then + gt_use_preinstalled_gnugettext=no + ifelse(gt_included_intl, yes, [ + AC_MSG_CHECKING([whether included gettext is requested]) + AC_ARG_WITH([included-gettext], + [ --with-included-gettext use the GNU gettext library included here], + nls_cv_force_use_gnu_gettext=$withval, + nls_cv_force_use_gnu_gettext=no) + AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) + + nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" + if test "$nls_cv_force_use_gnu_gettext" != "yes"; then + ]) + dnl User does not insist on using GNU NLS library. Figure out what + dnl to use. If GNU gettext is available we use this. Else we have + dnl to fall back to GNU NLS library. + + if test $gt_api_version -ge 3; then + gt_revision_test_code=' +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) +#endif +changequote(,)dnl +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; +changequote([,])dnl +' + else + gt_revision_test_code= + fi + if test $gt_api_version -ge 2; then + gt_expression_test_code=' + * ngettext ("", "", 0)' + else + gt_expression_test_code= + fi + + AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], + [AC_TRY_LINK([#include <libintl.h> +$gt_revision_test_code +extern int _nl_msg_cat_cntr; +extern int *_nl_domain_bindings;], + [bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], + [eval "$gt_func_gnugettext_libc=yes"], + [eval "$gt_func_gnugettext_libc=no"])]) + + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then + dnl Sometimes libintl requires libiconv, so first search for libiconv. + ifelse(gt_included_intl, yes, , [ + AM_ICONV_LINK + ]) + dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL + dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) + dnl because that would add "-liconv" to LIBINTL and LTLIBINTL + dnl even if libiconv doesn't exist. + AC_LIB_LINKFLAGS_BODY([intl]) + AC_CACHE_CHECK([for GNU gettext in libintl], + [$gt_func_gnugettext_libintl], + [gt_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCINTL" + gt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBINTL" + dnl Now see whether libintl exists and does not depend on libiconv. + AC_TRY_LINK([#include <libintl.h> +$gt_revision_test_code +extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (const char *);], + [bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], + [eval "$gt_func_gnugettext_libintl=yes"], + [eval "$gt_func_gnugettext_libintl=no"]) + dnl Now see whether libintl exists and depends on libiconv. + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then + LIBS="$LIBS $LIBICONV" + AC_TRY_LINK([#include <libintl.h> +$gt_revision_test_code +extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (const char *);], + [bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], + [LIBINTL="$LIBINTL $LIBICONV" + LTLIBINTL="$LTLIBINTL $LTLIBICONV" + eval "$gt_func_gnugettext_libintl=yes" + ]) + fi + CPPFLAGS="$gt_save_CPPFLAGS" + LIBS="$gt_save_LIBS"]) + fi + + dnl If an already present or preinstalled GNU gettext() is found, + dnl use it. But if this macro is used in GNU gettext, and GNU + dnl gettext is already preinstalled in libintl, we update this + dnl libintl. (Cf. the install rule in intl/Makefile.in.) + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ + || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ + && test "$PACKAGE" != gettext-runtime \ + && test "$PACKAGE" != gettext-tools; }; then + gt_use_preinstalled_gnugettext=yes + else + dnl Reset the values set by searching for libintl. + LIBINTL= + LTLIBINTL= + INCINTL= + fi + + ifelse(gt_included_intl, yes, [ + if test "$gt_use_preinstalled_gnugettext" != "yes"; then + dnl GNU gettext is not found in the C library. + dnl Fall back on included GNU gettext library. + nls_cv_use_gnu_gettext=yes + fi + fi + + if test "$nls_cv_use_gnu_gettext" = "yes"; then + dnl Mark actions used to generate GNU NLS library. + BUILD_INCLUDED_LIBINTL=yes + USE_INCLUDED_LIBINTL=yes + LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" + LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" + LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` + fi + + CATOBJEXT= + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + dnl Mark actions to use GNU gettext tools. + CATOBJEXT=.gmo + fi + ]) + + if test -n "$INTL_MACOSX_LIBS"; then + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + dnl Some extra flags are needed during linking. + LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" + LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" + fi + fi + + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + AC_DEFINE([ENABLE_NLS], [1], + [Define to 1 if translation of program messages to the user's native language + is requested.]) + else + USE_NLS=no + fi + fi + + AC_MSG_CHECKING([whether to use NLS]) + AC_MSG_RESULT([$USE_NLS]) + if test "$USE_NLS" = "yes"; then + AC_MSG_CHECKING([where the gettext function comes from]) + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then + gt_source="external libintl" + else + gt_source="libc" + fi + else + gt_source="included intl directory" + fi + AC_MSG_RESULT([$gt_source]) + fi + + if test "$USE_NLS" = "yes"; then + + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then + AC_MSG_CHECKING([how to link with libintl]) + AC_MSG_RESULT([$LIBINTL]) + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) + fi + + dnl For backward compatibility. Some packages may be using this. + AC_DEFINE([HAVE_GETTEXT], [1], + [Define if the GNU gettext() function is already present or preinstalled.]) + AC_DEFINE([HAVE_DCGETTEXT], [1], + [Define if the GNU dcgettext() function is already present or preinstalled.]) + fi + + dnl We need to process the po/ directory. + POSUB=po + fi + + ifelse(gt_included_intl, yes, [ + dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL + dnl to 'yes' because some of the testsuite requires it. + if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then + BUILD_INCLUDED_LIBINTL=yes + fi + + dnl Make all variables we use known to autoconf. + AC_SUBST([BUILD_INCLUDED_LIBINTL]) + AC_SUBST([USE_INCLUDED_LIBINTL]) + AC_SUBST([CATOBJEXT]) + + dnl For backward compatibility. Some configure.ins may be using this. + nls_cv_header_intl= + nls_cv_header_libgt= + + dnl For backward compatibility. Some Makefiles may be using this. + DATADIRNAME=share + AC_SUBST([DATADIRNAME]) + + dnl For backward compatibility. Some Makefiles may be using this. + INSTOBJEXT=.mo + AC_SUBST([INSTOBJEXT]) + + dnl For backward compatibility. Some Makefiles may be using this. + GENCAT=gencat + AC_SUBST([GENCAT]) + + dnl For backward compatibility. Some Makefiles may be using this. + INTLOBJS= + if test "$USE_INCLUDED_LIBINTL" = yes; then + INTLOBJS="\$(GETTOBJS)" + fi + AC_SUBST([INTLOBJS]) + + dnl Enable libtool support if the surrounding package wishes it. + INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix + AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) + ]) + + dnl For backward compatibility. Some Makefiles may be using this. + INTLLIBS="$LIBINTL" + AC_SUBST([INTLLIBS]) + + dnl Make all documented variables known to autoconf. + AC_SUBST([LIBINTL]) + AC_SUBST([LTLIBINTL]) + AC_SUBST([POSUB]) +]) + + +dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. +m4_define([gt_NEEDS_INIT], +[ + m4_divert_text([DEFAULTS], [gt_needs=]) + m4_define([gt_NEEDS_INIT], []) +]) + + +dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) +AC_DEFUN([AM_GNU_GETTEXT_NEED], +[ + m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) +]) + + +dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) +AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) diff --git a/plugins/kimchi/m4/iconv.m4 b/plugins/kimchi/m4/iconv.m4 new file mode 100644 index 0000000..e2041b9 --- /dev/null +++ b/plugins/kimchi/m4/iconv.m4 @@ -0,0 +1,214 @@ +# iconv.m4 serial 11 (gettext-0.18.1) +dnl Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], +[ + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + + dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([iconv]) +]) + +AC_DEFUN([AM_ICONV_LINK], +[ + dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and + dnl those with the standalone portable GNU libiconv installed). + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + + dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV + dnl accordingly. + AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) + + dnl Add $INCICONV to CPPFLAGS before performing the following checks, + dnl because if the user has installed libiconv and not disabled its use + dnl via --without-libiconv-prefix, he wants to use it. The first + dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. + am_save_CPPFLAGS="$CPPFLAGS" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) + + AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ + am_cv_func_iconv="no, consider installing GNU libiconv" + am_cv_lib_iconv=no + AC_TRY_LINK([#include <stdlib.h> +#include <iconv.h>], + [iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd);], + [am_cv_func_iconv=yes]) + if test "$am_cv_func_iconv" != yes; then + am_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" + AC_TRY_LINK([#include <stdlib.h> +#include <iconv.h>], + [iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd);], + [am_cv_lib_iconv=yes] + [am_cv_func_iconv=yes]) + LIBS="$am_save_LIBS" + fi + ]) + if test "$am_cv_func_iconv" = yes; then + AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ + dnl This tests against bugs in AIX 5.1, HP-UX 11.11, Solaris 10. + am_save_LIBS="$LIBS" + if test $am_cv_lib_iconv = yes; then + LIBS="$LIBS $LIBICONV" + fi + AC_TRY_RUN([ +#include <iconv.h> +#include <string.h> +int main () +{ + /* Test against AIX 5.1 bug: Failures are not distinguishable from successful + returns. */ + { + iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); + if (cd_utf8_to_88591 != (iconv_t)(-1)) + { + static const char input[] = "\342\202\254"; /* EURO SIGN */ + char buf[10]; + const char *inptr = input; + size_t inbytesleft = strlen (input); + char *outptr = buf; + size_t outbytesleft = sizeof (buf); + size_t res = iconv (cd_utf8_to_88591, + (char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); + if (res == 0) + return 1; + } + } + /* Test against Solaris 10 bug: Failures are not distinguishable from + successful returns. */ + { + iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); + if (cd_ascii_to_88591 != (iconv_t)(-1)) + { + static const char input[] = "\263"; + char buf[10]; + const char *inptr = input; + size_t inbytesleft = strlen (input); + char *outptr = buf; + size_t outbytesleft = sizeof (buf); + size_t res = iconv (cd_ascii_to_88591, + (char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); + if (res == 0) + return 1; + } + } +#if 0 /* This bug could be worked around by the caller. */ + /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ + { + iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); + if (cd_88591_to_utf8 != (iconv_t)(-1)) + { + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + char buf[50]; + const char *inptr = input; + size_t inbytesleft = strlen (input); + char *outptr = buf; + size_t outbytesleft = sizeof (buf); + size_t res = iconv (cd_88591_to_utf8, + (char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); + if ((int)res > 0) + return 1; + } + } +#endif + /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is + provided. */ + if (/* Try standardized names. */ + iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) + /* Try IRIX, OSF/1 names. */ + && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) + /* Try AIX names. */ + && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) + /* Try HP-UX names. */ + && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) + return 1; + return 0; +}], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no], + [case "$host_os" in + aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; + *) am_cv_func_iconv_works="guessing yes" ;; + esac]) + LIBS="$am_save_LIBS" + ]) + case "$am_cv_func_iconv_works" in + *no) am_func_iconv=no am_cv_lib_iconv=no ;; + *) am_func_iconv=yes ;; + esac + else + am_func_iconv=no am_cv_lib_iconv=no + fi + if test "$am_func_iconv" = yes; then + AC_DEFINE([HAVE_ICONV], [1], + [Define if you have the iconv() function and it works.]) + fi + if test "$am_cv_lib_iconv" = yes; then + AC_MSG_CHECKING([how to link with libiconv]) + AC_MSG_RESULT([$LIBICONV]) + else + dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV + dnl either. + CPPFLAGS="$am_save_CPPFLAGS" + LIBICONV= + LTLIBICONV= + fi + AC_SUBST([LIBICONV]) + AC_SUBST([LTLIBICONV]) +]) + +dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to +dnl avoid warnings like +dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". +dnl This is tricky because of the way 'aclocal' is implemented: +dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. +dnl Otherwise aclocal's initial scan pass would miss the macro definition. +dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. +dnl Otherwise aclocal would emit many "Use of uninitialized value $1" +dnl warnings. +m4_define([gl_iconv_AC_DEFUN], + m4_version_prereq([2.64], + [[AC_DEFUN_ONCE( + [$1], [$2])]], + [[AC_DEFUN( + [$1], [$2])]])) +gl_iconv_AC_DEFUN([AM_ICONV], +[ + AM_ICONV_LINK + if test "$am_cv_func_iconv" = yes; then + AC_MSG_CHECKING([for iconv declaration]) + AC_CACHE_VAL([am_cv_proto_iconv], [ + AC_TRY_COMPILE([ +#include <stdlib.h> +#include <iconv.h> +extern +#ifdef __cplusplus +"C" +#endif +#if defined(__STDC__) || defined(__cplusplus) +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); +#else +size_t iconv(); +#endif +], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) + am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) + am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` + AC_MSG_RESULT([ + $am_cv_proto_iconv]) + AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], + [Define as const if the declaration of iconv() needs const.]) + fi +]) diff --git a/plugins/kimchi/m4/intlmacosx.m4 b/plugins/kimchi/m4/intlmacosx.m4 new file mode 100644 index 0000000..dd91025 --- /dev/null +++ b/plugins/kimchi/m4/intlmacosx.m4 @@ -0,0 +1,51 @@ +# intlmacosx.m4 serial 3 (gettext-0.18) +dnl Copyright (C) 2004-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Checks for special options needed on MacOS X. +dnl Defines INTL_MACOSX_LIBS. +AC_DEFUN([gt_INTL_MACOSX], +[ + dnl Check for API introduced in MacOS X 10.2. + AC_CACHE_CHECK([for CFPreferencesCopyAppValue], + [gt_cv_func_CFPreferencesCopyAppValue], + [gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>], + [CFPreferencesCopyAppValue(NULL, NULL)], + [gt_cv_func_CFPreferencesCopyAppValue=yes], + [gt_cv_func_CFPreferencesCopyAppValue=no]) + LIBS="$gt_save_LIBS"]) + if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then + AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], + [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) + fi + dnl Check for API introduced in MacOS X 10.3. + AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], + [gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();], + [gt_cv_func_CFLocaleCopyCurrent=yes], + [gt_cv_func_CFLocaleCopyCurrent=no]) + LIBS="$gt_save_LIBS"]) + if test $gt_cv_func_CFLocaleCopyCurrent = yes; then + AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], + [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) + fi + INTL_MACOSX_LIBS= + if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" + fi + AC_SUBST([INTL_MACOSX_LIBS]) +]) diff --git a/plugins/kimchi/m4/lib-ld.m4 b/plugins/kimchi/m4/lib-ld.m4 new file mode 100644 index 0000000..ebb3052 --- /dev/null +++ b/plugins/kimchi/m4/lib-ld.m4 @@ -0,0 +1,110 @@ +# lib-ld.m4 serial 4 (gettext-0.18) +dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Subroutines of libtool.m4, +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision +dnl with libtool.m4. + +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. +AC_DEFUN([AC_LIB_PROG_LD_GNU], +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], +[# I'd rather use --version here, but apparently some GNU ld's only accept -v. +case `$LD -v 2>&1 </dev/null` in +*GNU* | *'with BFD'*) + acl_cv_prog_gnu_ld=yes ;; +*) + acl_cv_prog_gnu_ld=no ;; +esac]) +with_gnu_ld=$acl_cv_prog_gnu_ld +]) + +dnl From libtool-1.4. Sets the variable LD. +AC_DEFUN([AC_LIB_PROG_LD], +[AC_ARG_WITH([gnu-ld], +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by GCC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]* | [A-Za-z]:[\\/]*)] + [re_direlt='/[^/][^/]*/\.\./'] + # Canonicalize the path of ld + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL([acl_cv_path_LD], +[if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in + *GNU* | *'with BFD'*) + test "$with_gnu_ld" != no && break ;; + *) + test "$with_gnu_ld" != yes && break ;; + esac + fi + done + IFS="$ac_save_ifs" +else + acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi]) +LD="$acl_cv_path_LD" +if test -n "$LD"; then + AC_MSG_RESULT([$LD]) +else + AC_MSG_RESULT([no]) +fi +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) +AC_LIB_PROG_LD_GNU +]) diff --git a/plugins/kimchi/m4/lib-link.m4 b/plugins/kimchi/m4/lib-link.m4 new file mode 100644 index 0000000..c73bd8e --- /dev/null +++ b/plugins/kimchi/m4/lib-link.m4 @@ -0,0 +1,774 @@ +# lib-link.m4 serial 21 (gettext-0.18) +dnl Copyright (C) 2001-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_PREREQ([2.54]) + +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and +dnl the libraries corresponding to explicit and implicit dependencies. +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and +dnl augments the CPPFLAGS variable. +dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname +dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. +AC_DEFUN([AC_LIB_LINKFLAGS], +[ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + pushdef([Name],[translit([$1],[./-], [___])]) + pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + ac_cv_lib[]Name[]_libs="$LIB[]NAME" + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" + ac_cv_lib[]Name[]_cppflags="$INC[]NAME" + ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" + ]) + LIB[]NAME="$ac_cv_lib[]Name[]_libs" + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" + INC[]NAME="$ac_cv_lib[]Name[]_cppflags" + LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + AC_SUBST([LIB]NAME[_PREFIX]) + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the + dnl results of this search when this library appears as a dependency. + HAVE_LIB[]NAME=yes + popdef([NAME]) + popdef([Name]) +]) + +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) +dnl searches for libname and the libraries corresponding to explicit and +dnl implicit dependencies, together with the specified include files and +dnl the ability to compile and link the specified testcode. The missing-message +dnl defaults to 'no' and may contain additional hints for the user. +dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} +dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. +dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname +dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], +[ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + pushdef([Name],[translit([$1],[./-], [___])]) + pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, + dnl because if the user has installed lib[]Name and not disabled its use + dnl via --without-lib[]Name-prefix, he wants to use it. + ac_save_CPPFLAGS="$CPPFLAGS" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ + ac_save_LIBS="$LIBS" + dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, + dnl because these -l options might require -L options that are present in + dnl LIBS. -l options benefit only from the -L options listed before it. + dnl Otherwise, add it to the front of LIBS, because it may be a static + dnl library that depends on another static library that is present in LIBS. + dnl Static libraries benefit only from the static libraries listed after + dnl it. + case " $LIB[]NAME" in + *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; + *) LIBS="$LIB[]NAME $LIBS" ;; + esac + AC_TRY_LINK([$3], [$4], + [ac_cv_lib[]Name=yes], + [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) + LIBS="$ac_save_LIBS" + ]) + if test "$ac_cv_lib[]Name" = yes; then + HAVE_LIB[]NAME=yes + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) + AC_MSG_CHECKING([how to link with lib[]$1]) + AC_MSG_RESULT([$LIB[]NAME]) + else + HAVE_LIB[]NAME=no + dnl If $LIB[]NAME didn't lead to a usable library, we don't need + dnl $INC[]NAME either. + CPPFLAGS="$ac_save_CPPFLAGS" + LIB[]NAME= + LTLIB[]NAME= + LIB[]NAME[]_PREFIX= + fi + AC_SUBST([HAVE_LIB]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + AC_SUBST([LIB]NAME[_PREFIX]) + popdef([NAME]) + popdef([Name]) +]) + +dnl Determine the platform dependent parameters needed to use rpath: +dnl acl_libext, +dnl acl_shlibext, +dnl acl_hardcode_libdir_flag_spec, +dnl acl_hardcode_libdir_separator, +dnl acl_hardcode_direct, +dnl acl_hardcode_minus_L. +AC_DEFUN([AC_LIB_RPATH], +[ + dnl Tell automake >= 1.10 to complain if config.rpath is missing. + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir + AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_rpath=done + ]) + wl="$acl_cv_wl" + acl_libext="$acl_cv_libext" + acl_shlibext="$acl_cv_shlibext" + acl_libname_spec="$acl_cv_libname_spec" + acl_library_names_spec="$acl_cv_library_names_spec" + acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" + acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" + acl_hardcode_direct="$acl_cv_hardcode_direct" + acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" + dnl Determine whether the user wants rpath handling at all. + AC_ARG_ENABLE([rpath], + [ --disable-rpath do not hardcode runtime library paths], + :, enable_rpath=yes) +]) + +dnl AC_LIB_FROMPACKAGE(name, package) +dnl declares that libname comes from the given package. The configure file +dnl will then not have a --with-libname-prefix option but a +dnl --with-package-prefix option. Several libraries can come from the same +dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar +dnl macro call that searches for libname. +AC_DEFUN([AC_LIB_FROMPACKAGE], +[ + pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + define([acl_frompackage_]NAME, [$2]) + popdef([NAME]) + pushdef([PACK],[$2]) + pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + define([acl_libsinpackage_]PACKUP, + m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1]) + popdef([PACKUP]) + popdef([PACK]) +]) + +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and +dnl the libraries corresponding to explicit and implicit dependencies. +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. +dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found +dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. +AC_DEFUN([AC_LIB_LINKFLAGS_BODY], +[ + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) + pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) + pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) + dnl Autoconf >= 2.61 supports dots in --with options. + pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_ARG_WITH(P_A_C_K[-prefix], +[[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib + --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi +]) + dnl Search the library and its dependencies in $additional_libdir and + dnl $LDFLAGS. Using breadth-first-seach. + LIB[]NAME= + LTLIB[]NAME= + INC[]NAME= + LIB[]NAME[]_PREFIX= + dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been + dnl computed. So it has to be reset here. + HAVE_LIB[]NAME= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='$1 $2' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS + dnl or AC_LIB_HAVE_LINKFLAGS call. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" + else + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined + dnl that this library doesn't exist. So just drop it. + : + fi + else + dnl Search the library lib$name in $additional_libdir and $LDFLAGS + dnl and the already constructed $LIBNAME/$LTLIBNAME. + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + dnl The same code as in the loop below: + dnl First look for a shared library. + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + dnl Then look for a static library. + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + dnl First look for a shared library. + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + dnl Then look for a static library. + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + dnl Found the library. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + dnl Linking with a shared library. We attempt to hardcode its + dnl directory into the executable's runpath, unless it's the + dnl standard /usr/lib. + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + dnl No hardcoding is needed. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + dnl The hardcoding into $LIBNAME is system dependent. + if test "$acl_hardcode_direct" = yes; then + dnl Using DIR/libNAME.so during linking hardcodes DIR into the + dnl resulting binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + dnl Rely on "-L$found_dir". + dnl But don't add it if it's already contained in the LDFLAGS + dnl or the already constructed $LIBNAME + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH + dnl here, because this doesn't fit in flags passed to the + dnl compiler. So give up. No hardcoding. This affects only + dnl very old systems. + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + dnl Linking with a static library. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" + else + dnl We shouldn't come here, but anyway it's good to have a + dnl fallback. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" + fi + fi + dnl Assume the include files are nearby. + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = '$1'; then + LIB[]NAME[]_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = '$1'; then + LIB[]NAME[]_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + dnl Potentially add $additional_includedir to $INCNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's /usr/local/include and we are using GCC on Linux, + dnl 3. if it's already present in $CPPFLAGS or the already + dnl constructed $INCNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INC[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $INCNAME. + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + dnl Look for dependencies. + if test -n "$found_la"; then + dnl Read the .la file. It defines the variables + dnl dlname, library_names, old_library, dependency_libs, current, + dnl age, revision, installed, dlopen, dlpreopen, libdir. + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + dnl We use only dependency_libs. + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's /usr/local/lib and we are using GCC on Linux, + dnl 3. if it's already present in $LDFLAGS or the already + dnl constructed $LIBNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LIBNAME. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LTLIBNAME. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + dnl Handle this in the next round. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + dnl Handle this in the next round. Throw away the .la's + dnl directory; it is already contained in a preceding -L + dnl option. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + dnl Most likely an immediate library name. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" + ;; + esac + done + fi + else + dnl Didn't find the library; assume it is in the system directories + dnl known to the linker and runtime loader. (All the system + dnl directories known to the linker should also be known to the + dnl runtime loader, otherwise the system is severely misconfigured.) + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + dnl Weird platform: only the last -rpath option counts, the user must + dnl pass all path elements in one option. We can arrange that for a + dnl single library, but not when more than one $LIBNAMEs are used. + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + else + dnl The -rpath options are cumulative. + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + dnl When using libtool, the option that works for both libraries and + dnl executables is -R. The -R options are cumulative. + for found_dir in $ltrpathdirs; do + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" + done + fi + popdef([P_A_C_K]) + popdef([PACKLIBS]) + popdef([PACKUP]) + popdef([PACK]) + popdef([NAME]) +]) + +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, +dnl unless already present in VAR. +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes +dnl contains two or three consecutive elements that belong together. +AC_DEFUN([AC_LIB_APPENDTOVAR], +[ + for element in [$2]; do + haveit= + for x in $[$1]; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + [$1]="${[$1]}${[$1]:+ }$element" + fi + done +]) + +dnl For those cases where a variable contains several -L and -l options +dnl referring to unknown libraries and directories, this macro determines the +dnl necessary additional linker options for the runtime path. +dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) +dnl sets LDADDVAR to linker options needed together with LIBSVALUE. +dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, +dnl otherwise linking without libtool is assumed. +AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], +[ + AC_REQUIRE([AC_LIB_RPATH]) + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) + $1= + if test "$enable_rpath" != no; then + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + dnl Use an explicit option to hardcode directories into the resulting + dnl binary. + rpathdirs= + next= + for opt in $2; do + if test -n "$next"; then + dir="$next" + dnl No need to hardcode the standard /usr/lib. + if test "X$dir" != "X/usr/$acl_libdirstem" \ + && test "X$dir" != "X/usr/$acl_libdirstem2"; then + rpathdirs="$rpathdirs $dir" + fi + next= + else + case $opt in + -L) next=yes ;; + -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` + dnl No need to hardcode the standard /usr/lib. + if test "X$dir" != "X/usr/$acl_libdirstem" \ + && test "X$dir" != "X/usr/$acl_libdirstem2"; then + rpathdirs="$rpathdirs $dir" + fi + next= ;; + *) next= ;; + esac + fi + done + if test "X$rpathdirs" != "X"; then + if test -n ""$3""; then + dnl libtool is used for linking. Use -R options. + for dir in $rpathdirs; do + $1="${$1}${$1:+ }-R$dir" + done + else + dnl The linker is used for linking directly. + if test -n "$acl_hardcode_libdir_separator"; then + dnl Weird platform: only the last -rpath option counts, the user + dnl must pass all path elements in one option. + alldirs= + for dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + $1="$flag" + else + dnl The -rpath options are cumulative. + for dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + $1="${$1}${$1:+ }$flag" + done + fi + fi + fi + fi + fi + AC_SUBST([$1]) +]) diff --git a/plugins/kimchi/m4/lib-prefix.m4 b/plugins/kimchi/m4/lib-prefix.m4 new file mode 100644 index 0000000..1601cea --- /dev/null +++ b/plugins/kimchi/m4/lib-prefix.m4 @@ -0,0 +1,224 @@ +# lib-prefix.m4 serial 7 (gettext-0.18) +dnl Copyright (C) 2001-2005, 2008-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't +dnl require excessive bracketing. +ifdef([AC_HELP_STRING], +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) + +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed +dnl to access previously installed libraries. The basic assumption is that +dnl a user will want packages to use other packages he previously installed +dnl with the same --prefix option. +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate +dnl libraries, but is otherwise very convenient. +AC_DEFUN([AC_LIB_PREFIX], +[ + AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_LIB_ARG_WITH([lib-prefix], +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib + --without-lib-prefix don't search for libraries in includedir and libdir], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + fi + fi +]) + if test $use_additional = yes; then + dnl Potentially add $additional_includedir to $CPPFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's already present in $CPPFLAGS, + dnl 3. if it's /usr/local/include and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + for x in $CPPFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $CPPFLAGS. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" + fi + fi + fi + fi + dnl Potentially add $additional_libdir to $LDFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's already present in $LDFLAGS, + dnl 3. if it's /usr/local/lib and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then + haveit= + for x in $LDFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LDFLAGS. + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" + fi + fi + fi + fi + fi +]) + +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, +dnl acl_final_exec_prefix, containing the values to which $prefix and +dnl $exec_prefix will expand at the end of the configure script. +AC_DEFUN([AC_LIB_PREPARE_PREFIX], +[ + dnl Unfortunately, prefix and exec_prefix get only finally determined + dnl at the end of configure. + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" +]) + +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the +dnl variables prefix and exec_prefix bound to the values they will have +dnl at the end of the configure script. +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], +[ + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + $1 + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" +]) + +dnl AC_LIB_PREPARE_MULTILIB creates +dnl - a variable acl_libdirstem, containing the basename of the libdir, either +dnl "lib" or "lib64" or "lib/64", +dnl - a variable acl_libdirstem2, as a secondary possible value for +dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or +dnl "lib/amd64". +AC_DEFUN([AC_LIB_PREPARE_MULTILIB], +[ + dnl There is no formal standard regarding lib and lib64. + dnl On glibc systems, the current practice is that on a system supporting + dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under + dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine + dnl the compiler's default mode by looking at the compiler's library search + dnl path. If at least one of its elements ends in /lib64 or points to a + dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. + dnl Otherwise we use the default, namely "lib". + dnl On Solaris systems, the current practice is that on a system supporting + dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under + dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or + dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. + AC_REQUIRE([AC_CANONICAL_HOST]) + acl_libdirstem=lib + acl_libdirstem2= + case "$host_os" in + solaris*) + dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment + dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>. + dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." + dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the + dnl symlink is missing, so we set acl_libdirstem2 too. + AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], + [AC_EGREP_CPP([sixtyfour bits], [ +#ifdef _LP64 +sixtyfour bits +#endif + ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) + ]) + if test $gl_cv_solaris_64bit = yes; then + acl_libdirstem=lib/64 + case "$host_cpu" in + sparc*) acl_libdirstem2=lib/sparcv9 ;; + i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; + esac + fi + ;; + *) + searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` + if test -n "$searchpath"; then + acl_save_IFS="${IFS= }"; IFS=":" + for searchdir in $searchpath; do + if test -d "$searchdir"; then + case "$searchdir" in + */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; + */../ | */.. ) + # Better ignore directories of this form. They are misleading. + ;; + *) searchdir=`cd "$searchdir" && pwd` + case "$searchdir" in + */lib64 ) acl_libdirstem=lib64 ;; + esac ;; + esac + fi + done + IFS="$acl_save_IFS" + fi + ;; + esac + test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" +]) diff --git a/plugins/kimchi/m4/nls.m4 b/plugins/kimchi/m4/nls.m4 new file mode 100644 index 0000000..003704c --- /dev/null +++ b/plugins/kimchi/m4/nls.m4 @@ -0,0 +1,32 @@ +# nls.m4 serial 5 (gettext-0.18) +dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, +dnl Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. + +AC_PREREQ([2.50]) + +AC_DEFUN([AM_NLS], +[ + AC_MSG_CHECKING([whether NLS is requested]) + dnl Default is enabled NLS + AC_ARG_ENABLE([nls], + [ --disable-nls do not use Native Language Support], + USE_NLS=$enableval, USE_NLS=yes) + AC_MSG_RESULT([$USE_NLS]) + AC_SUBST([USE_NLS]) +]) diff --git a/plugins/kimchi/m4/po.m4 b/plugins/kimchi/m4/po.m4 new file mode 100644 index 0000000..8bc921d --- /dev/null +++ b/plugins/kimchi/m4/po.m4 @@ -0,0 +1,449 @@ +# po.m4 serial 17 (gettext-0.18) +dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. + +AC_PREREQ([2.50]) + +dnl Checks for all prerequisites of the po subdirectory. +AC_DEFUN([AM_PO_SUBDIRS], +[ + AC_REQUIRE([AC_PROG_MAKE_SET])dnl + AC_REQUIRE([AC_PROG_INSTALL])dnl + AC_REQUIRE([AC_PROG_MKDIR_P])dnl defined by autoconf + AC_REQUIRE([AM_NLS])dnl + + dnl Release version of the gettext macros. This is used to ensure that + dnl the gettext macros and po/Makefile.in.in are in sync. + AC_SUBST([GETTEXT_MACRO_VERSION], [0.18]) + + dnl Perform the following tests also if --disable-nls has been given, + dnl because they are needed for "make dist" to work. + + dnl Search for GNU msgfmt in the PATH. + dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. + dnl The second test excludes FreeBSD msgfmt. + AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, + [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && + (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], + :) + AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) + + dnl Test whether it is GNU msgfmt >= 0.15. +changequote(,)dnl + case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; + *) MSGFMT_015=$MSGFMT ;; + esac +changequote([,])dnl + AC_SUBST([MSGFMT_015]) +changequote(,)dnl + case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; + *) GMSGFMT_015=$GMSGFMT ;; + esac +changequote([,])dnl + AC_SUBST([GMSGFMT_015]) + + dnl Search for GNU xgettext 0.12 or newer in the PATH. + dnl The first test excludes Solaris xgettext and early GNU xgettext versions. + dnl The second test excludes FreeBSD xgettext. + AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, + [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && + (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], + :) + dnl Remove leftover from FreeBSD xgettext call. + rm -f messages.po + + dnl Test whether it is GNU xgettext >= 0.15. +changequote(,)dnl + case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; + *) XGETTEXT_015=$XGETTEXT ;; + esac +changequote([,])dnl + AC_SUBST([XGETTEXT_015]) + + dnl Search for GNU msgmerge 0.11 or newer in the PATH. + AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, + [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) + + dnl Installation directories. + dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we + dnl have to define it here, so that it can be used in po/Makefile. + test -n "$localedir" || localedir='${datadir}/locale' + AC_SUBST([localedir]) + + dnl Support for AM_XGETTEXT_OPTION. + test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= + AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) + + AC_CONFIG_COMMANDS([po-directories], [[ + for ac_file in $CONFIG_FILES; do + # Support "outfile[:infile[:infile...]]" + case "$ac_file" in + *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + esac + # PO directories have a Makefile.in generated from Makefile.in.in. + case "$ac_file" in */Makefile.in) + # Adjust a relative srcdir. + ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` + ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" + ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` + # In autoconf-2.13 it is called $ac_given_srcdir. + # In autoconf-2.50 it is called $srcdir. + test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" + case "$ac_given_srcdir" in + .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; + /*) top_srcdir="$ac_given_srcdir" ;; + *) top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + # Treat a directory as a PO directory if and only if it has a + # POTFILES.in file. This allows packages to have multiple PO + # directories under different names or in different locations. + if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then + rm -f "$ac_dir/POTFILES" + test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" + cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" + POMAKEFILEDEPS="POTFILES.in" + # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend + # on $ac_dir but don't depend on user-specified configuration + # parameters. + if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then + # The LINGUAS file contains the set of available languages. + if test -n "$OBSOLETE_ALL_LINGUAS"; then + test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" + fi + ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` + # Hide the ALL_LINGUAS assigment from automake < 1.5. + eval 'ALL_LINGUAS''=$ALL_LINGUAS_' + POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" + else + # The set of available languages was given in configure.in. + # Hide the ALL_LINGUAS assigment from automake < 1.5. + eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' + fi + # Compute POFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) + # Compute UPDATEPOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) + # Compute DUMMYPOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) + # Compute GMOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) + case "$ac_given_srcdir" in + .) srcdirpre= ;; + *) srcdirpre='$(srcdir)/' ;; + esac + POFILES= + UPDATEPOFILES= + DUMMYPOFILES= + GMOFILES= + for lang in $ALL_LINGUAS; do + POFILES="$POFILES $srcdirpre$lang.po" + UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" + DUMMYPOFILES="$DUMMYPOFILES $lang.nop" + GMOFILES="$GMOFILES $srcdirpre$lang.gmo" + done + # CATALOGS depends on both $ac_dir and the user's LINGUAS + # environment variable. + INST_LINGUAS= + if test -n "$ALL_LINGUAS"; then + for presentlang in $ALL_LINGUAS; do + useit=no + if test "%UNSET%" != "$LINGUAS"; then + desiredlanguages="$LINGUAS" + else + desiredlanguages="$ALL_LINGUAS" + fi + for desiredlang in $desiredlanguages; do + # Use the presentlang catalog if desiredlang is + # a. equal to presentlang, or + # b. a variant of presentlang (because in this case, + # presentlang can be used as a fallback for messages + # which are not translated in the desiredlang catalog). + case "$desiredlang" in + "$presentlang"*) useit=yes;; + esac + done + if test $useit = yes; then + INST_LINGUAS="$INST_LINGUAS $presentlang" + fi + done + fi + CATALOGS= + if test -n "$INST_LINGUAS"; then + for lang in $INST_LINGUAS; do + CATALOGS="$CATALOGS $lang.gmo" + done + fi + test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" + sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" + for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do + if test -f "$f"; then + case "$f" in + *.orig | *.bak | *~) ;; + *) cat "$f" >> "$ac_dir/Makefile" ;; + esac + fi + done + fi + ;; + esac + done]], + [# Capture the value of obsolete ALL_LINGUAS because we need it to compute + # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it + # from automake < 1.5. + eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' + # Capture the value of LINGUAS because we need it to compute CATALOGS. + LINGUAS="${LINGUAS-%UNSET%}" + ]) +]) + +dnl Postprocesses a Makefile in a directory containing PO files. +AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], +[ + # When this code is run, in config.status, two variables have already been + # set: + # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, + # - LINGUAS is the value of the environment variable LINGUAS at configure + # time. + +changequote(,)dnl + # Adjust a relative srcdir. + ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` + ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" + ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` + # In autoconf-2.13 it is called $ac_given_srcdir. + # In autoconf-2.50 it is called $srcdir. + test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" + case "$ac_given_srcdir" in + .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; + /*) top_srcdir="$ac_given_srcdir" ;; + *) top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + + # Find a way to echo strings without interpreting backslash. + if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then + gt_echo='echo' + else + if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then + gt_echo='printf %s\n' + else + echo_func () { + cat <<EOT +$* +EOT + } + gt_echo='echo_func' + fi + fi + + # A sed script that extracts the value of VARIABLE from a Makefile. + sed_x_variable=' +# Test if the hold space is empty. +x +s/P/P/ +x +ta +# Yes it was empty. Look if we have the expected variable definition. +/^[ ]*VARIABLE[ ]*=/{ + # Seen the first line of the variable definition. + s/^[ ]*VARIABLE[ ]*=// + ba +} +bd +:a +# Here we are processing a line from the variable definition. +# Remove comment, more precisely replace it with a space. +s/#.*$/ / +# See if the line ends in a backslash. +tb +:b +s/\\$// +# Print the line, without the trailing backslash. +p +tc +# There was no trailing backslash. The end of the variable definition is +# reached. Clear the hold space. +s/^.*$// +x +bd +:c +# A trailing backslash means that the variable definition continues in the +# next line. Put a nonempty string into the hold space to indicate this. +s/^.*$/P/ +x +:d +' +changequote([,])dnl + + # Set POTFILES to the value of the Makefile variable POTFILES. + sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'` + POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"` + # Compute POTFILES_DEPS as + # $(foreach file, $(POTFILES), $(top_srcdir)/$(file)) + POTFILES_DEPS= + for file in $POTFILES; do + POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file" + done + POMAKEFILEDEPS="" + + if test -n "$OBSOLETE_ALL_LINGUAS"; then + test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" + fi + if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then + # The LINGUAS file contains the set of available languages. + ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` + POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" + else + # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. + sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'` + ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` + fi + # Hide the ALL_LINGUAS assigment from automake < 1.5. + eval 'ALL_LINGUAS''=$ALL_LINGUAS_' + # Compute POFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) + # Compute UPDATEPOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) + # Compute DUMMYPOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) + # Compute GMOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) + # Compute PROPERTIESFILES + # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties) + # Compute CLASSFILES + # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class) + # Compute QMFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm) + # Compute MSGFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg) + # Compute RESOURCESDLLFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll) + case "$ac_given_srcdir" in + .) srcdirpre= ;; + *) srcdirpre='$(srcdir)/' ;; + esac + POFILES= + UPDATEPOFILES= + DUMMYPOFILES= + GMOFILES= + PROPERTIESFILES= + CLASSFILES= + QMFILES= + MSGFILES= + RESOURCESDLLFILES= + for lang in $ALL_LINGUAS; do + POFILES="$POFILES $srcdirpre$lang.po" + UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" + DUMMYPOFILES="$DUMMYPOFILES $lang.nop" + GMOFILES="$GMOFILES $srcdirpre$lang.gmo" + PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties" + CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class" + QMFILES="$QMFILES $srcdirpre$lang.qm" + frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` + MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg" + frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` + RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll" + done + # CATALOGS depends on both $ac_dir and the user's LINGUAS + # environment variable. + INST_LINGUAS= + if test -n "$ALL_LINGUAS"; then + for presentlang in $ALL_LINGUAS; do + useit=no + if test "%UNSET%" != "$LINGUAS"; then + desiredlanguages="$LINGUAS" + else + desiredlanguages="$ALL_LINGUAS" + fi + for desiredlang in $desiredlanguages; do + # Use the presentlang catalog if desiredlang is + # a. equal to presentlang, or + # b. a variant of presentlang (because in this case, + # presentlang can be used as a fallback for messages + # which are not translated in the desiredlang catalog). + case "$desiredlang" in + "$presentlang"*) useit=yes;; + esac + done + if test $useit = yes; then + INST_LINGUAS="$INST_LINGUAS $presentlang" + fi + done + fi + CATALOGS= + JAVACATALOGS= + QTCATALOGS= + TCLCATALOGS= + CSHARPCATALOGS= + if test -n "$INST_LINGUAS"; then + for lang in $INST_LINGUAS; do + CATALOGS="$CATALOGS $lang.gmo" + JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties" + QTCATALOGS="$QTCATALOGS $lang.qm" + frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` + TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg" + frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` + CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll" + done + fi + + sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp" + if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then + # Add dependencies that cannot be formulated as a simple suffix rule. + for lang in $ALL_LINGUAS; do + frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` + cat >> "$ac_file.tmp" <<EOF +$frobbedlang.msg: $lang.po + @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ + \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } +EOF + done + fi + if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then + # Add dependencies that cannot be formulated as a simple suffix rule. + for lang in $ALL_LINGUAS; do + frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` + cat >> "$ac_file.tmp" <<EOF +$frobbedlang/\$(DOMAIN).resources.dll: $lang.po + @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ + \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } +EOF + done + fi + if test -n "$POMAKEFILEDEPS"; then + cat >> "$ac_file.tmp" <<EOF +Makefile: $POMAKEFILEDEPS +EOF + fi + mv "$ac_file.tmp" "$ac_file" +]) + +dnl Initializes the accumulator used by AM_XGETTEXT_OPTION. +AC_DEFUN([AM_XGETTEXT_OPTION_INIT], +[ + XGETTEXT_EXTRA_OPTIONS= +]) + +dnl Registers an option to be passed to xgettext in the po subdirectory. +AC_DEFUN([AM_XGETTEXT_OPTION], +[ + AC_REQUIRE([AM_XGETTEXT_OPTION_INIT]) + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1" +]) diff --git a/plugins/kimchi/m4/progtest.m4 b/plugins/kimchi/m4/progtest.m4 new file mode 100644 index 0000000..2d804ac --- /dev/null +++ b/plugins/kimchi/m4/progtest.m4 @@ -0,0 +1,92 @@ +# progtest.m4 serial 6 (gettext-0.18) +dnl Copyright (C) 1996-2003, 2005, 2008-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper <drepper@cygnus.com>, 1996. + +AC_PREREQ([2.50]) + +# Search path for a program which passes the given test. + +dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) +AC_DEFUN([AM_PATH_PROG_WITH_TEST], +[ +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + +# Find out how to test for executable files. Don't use a zero-byte file, +# as systems may use methods other than mode bits to determine executability. +cat >conf$$.file <<_ASEOF +#! /bin/sh +exit 0 +_ASEOF +chmod +x conf$$.file +if test -x conf$$.file >/dev/null 2>&1; then + ac_executable_p="test -x" +else + ac_executable_p="test -f" +fi +rm -f conf$$.file + +# Extract the first word of "$2", so it can be a program name with args. +set dummy $2; ac_word=[$]2 +AC_MSG_CHECKING([for $ac_word]) +AC_CACHE_VAL([ac_cv_path_$1], +[case "[$]$1" in + [[\\/]]* | ?:[[\\/]]*) + ac_cv_path_$1="[$]$1" # Let the user override the test with a path. + ;; + *) + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in ifelse([$5], , $PATH, [$5]); do + IFS="$ac_save_IFS" + test -z "$ac_dir" && ac_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then + echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD + if [$3]; then + ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" + break 2 + fi + fi + done + done + IFS="$ac_save_IFS" +dnl If no 4th arg is given, leave the cache variable unset, +dnl so AC_PATH_PROGS will keep looking. +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" +])dnl + ;; +esac])dnl +$1="$ac_cv_path_$1" +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then + AC_MSG_RESULT([$][$1]) +else + AC_MSG_RESULT([no]) +fi +AC_SUBST([$1])dnl +]) diff --git a/src/kimchi/mockmodel.py b/plugins/kimchi/mockmodel.py similarity index 100% rename from src/kimchi/mockmodel.py rename to plugins/kimchi/mockmodel.py diff --git a/src/kimchi/model/Makefile.am b/plugins/kimchi/model/Makefile.am similarity index 100% rename from src/kimchi/model/Makefile.am rename to plugins/kimchi/model/Makefile.am diff --git a/src/kimchi/model/__init__.py b/plugins/kimchi/model/__init__.py similarity index 100% rename from src/kimchi/model/__init__.py rename to plugins/kimchi/model/__init__.py diff --git a/src/kimchi/model/config.py b/plugins/kimchi/model/config.py similarity index 100% rename from src/kimchi/model/config.py rename to plugins/kimchi/model/config.py diff --git a/src/kimchi/model/cpuinfo.py b/plugins/kimchi/model/cpuinfo.py similarity index 100% rename from src/kimchi/model/cpuinfo.py rename to plugins/kimchi/model/cpuinfo.py diff --git a/src/kimchi/model/debugreports.py b/plugins/kimchi/model/debugreports.py similarity index 100% rename from src/kimchi/model/debugreports.py rename to plugins/kimchi/model/debugreports.py diff --git a/src/kimchi/model/diskutils.py b/plugins/kimchi/model/diskutils.py similarity index 100% rename from src/kimchi/model/diskutils.py rename to plugins/kimchi/model/diskutils.py diff --git a/src/kimchi/model/featuretests.py b/plugins/kimchi/model/featuretests.py similarity index 100% rename from src/kimchi/model/featuretests.py rename to plugins/kimchi/model/featuretests.py diff --git a/src/kimchi/model/groups.py b/plugins/kimchi/model/groups.py similarity index 100% rename from src/kimchi/model/groups.py rename to plugins/kimchi/model/groups.py diff --git a/src/kimchi/model/host.py b/plugins/kimchi/model/host.py similarity index 100% rename from src/kimchi/model/host.py rename to plugins/kimchi/model/host.py diff --git a/src/kimchi/model/hostdev.py b/plugins/kimchi/model/hostdev.py similarity index 100% rename from src/kimchi/model/hostdev.py rename to plugins/kimchi/model/hostdev.py diff --git a/src/kimchi/model/interfaces.py b/plugins/kimchi/model/interfaces.py similarity index 100% rename from src/kimchi/model/interfaces.py rename to plugins/kimchi/model/interfaces.py diff --git a/src/kimchi/model/libvirtconnection.py b/plugins/kimchi/model/libvirtconnection.py similarity index 100% rename from src/kimchi/model/libvirtconnection.py rename to plugins/kimchi/model/libvirtconnection.py diff --git a/src/kimchi/model/libvirtstoragepool.py b/plugins/kimchi/model/libvirtstoragepool.py similarity index 100% rename from src/kimchi/model/libvirtstoragepool.py rename to plugins/kimchi/model/libvirtstoragepool.py diff --git a/src/kimchi/model/model.py b/plugins/kimchi/model/model.py similarity index 100% rename from src/kimchi/model/model.py rename to plugins/kimchi/model/model.py diff --git a/src/kimchi/model/networks.py b/plugins/kimchi/model/networks.py similarity index 100% rename from src/kimchi/model/networks.py rename to plugins/kimchi/model/networks.py diff --git a/src/kimchi/model/peers.py b/plugins/kimchi/model/peers.py similarity index 100% rename from src/kimchi/model/peers.py rename to plugins/kimchi/model/peers.py diff --git a/src/kimchi/model/storagepools.py b/plugins/kimchi/model/storagepools.py similarity index 100% rename from src/kimchi/model/storagepools.py rename to plugins/kimchi/model/storagepools.py diff --git a/src/kimchi/model/storageservers.py b/plugins/kimchi/model/storageservers.py similarity index 100% rename from src/kimchi/model/storageservers.py rename to plugins/kimchi/model/storageservers.py diff --git a/src/kimchi/model/storagetargets.py b/plugins/kimchi/model/storagetargets.py similarity index 100% rename from src/kimchi/model/storagetargets.py rename to plugins/kimchi/model/storagetargets.py diff --git a/src/kimchi/model/storagevolumes.py b/plugins/kimchi/model/storagevolumes.py similarity index 100% rename from src/kimchi/model/storagevolumes.py rename to plugins/kimchi/model/storagevolumes.py diff --git a/src/kimchi/model/tasks.py b/plugins/kimchi/model/tasks.py similarity index 100% rename from src/kimchi/model/tasks.py rename to plugins/kimchi/model/tasks.py diff --git a/src/kimchi/model/templates.py b/plugins/kimchi/model/templates.py similarity index 100% rename from src/kimchi/model/templates.py rename to plugins/kimchi/model/templates.py diff --git a/src/kimchi/model/users.py b/plugins/kimchi/model/users.py similarity index 100% rename from src/kimchi/model/users.py rename to plugins/kimchi/model/users.py diff --git a/src/kimchi/model/utils.py b/plugins/kimchi/model/utils.py similarity index 100% rename from src/kimchi/model/utils.py rename to plugins/kimchi/model/utils.py diff --git a/src/kimchi/model/vmhostdevs.py b/plugins/kimchi/model/vmhostdevs.py similarity index 100% rename from src/kimchi/model/vmhostdevs.py rename to plugins/kimchi/model/vmhostdevs.py diff --git a/src/kimchi/model/vmifaces.py b/plugins/kimchi/model/vmifaces.py similarity index 100% rename from src/kimchi/model/vmifaces.py rename to plugins/kimchi/model/vmifaces.py diff --git a/src/kimchi/model/vms.py b/plugins/kimchi/model/vms.py similarity index 100% rename from src/kimchi/model/vms.py rename to plugins/kimchi/model/vms.py diff --git a/src/kimchi/model/vmsnapshots.py b/plugins/kimchi/model/vmsnapshots.py similarity index 100% rename from src/kimchi/model/vmsnapshots.py rename to plugins/kimchi/model/vmsnapshots.py diff --git a/src/kimchi/model/vmstorages.py b/plugins/kimchi/model/vmstorages.py similarity index 100% rename from src/kimchi/model/vmstorages.py rename to plugins/kimchi/model/vmstorages.py diff --git a/src/kimchi/osinfo.py b/plugins/kimchi/osinfo.py similarity index 100% rename from src/kimchi/osinfo.py rename to plugins/kimchi/osinfo.py diff --git a/po/LINGUAS b/plugins/kimchi/po/LINGUAS similarity index 100% rename from po/LINGUAS rename to plugins/kimchi/po/LINGUAS diff --git a/po/Makefile.in.in b/plugins/kimchi/po/Makefile.in.in similarity index 100% rename from po/Makefile.in.in rename to plugins/kimchi/po/Makefile.in.in diff --git a/po/Makevars b/plugins/kimchi/po/Makevars similarity index 100% rename from po/Makevars rename to plugins/kimchi/po/Makevars diff --git a/po/POTFILES.in b/plugins/kimchi/po/POTFILES.in similarity index 100% rename from po/POTFILES.in rename to plugins/kimchi/po/POTFILES.in diff --git a/po/de_DE.po b/plugins/kimchi/po/de_DE.po similarity index 100% rename from po/de_DE.po rename to plugins/kimchi/po/de_DE.po diff --git a/po/en_US.po b/plugins/kimchi/po/en_US.po similarity index 100% rename from po/en_US.po rename to plugins/kimchi/po/en_US.po diff --git a/po/es_ES.po b/plugins/kimchi/po/es_ES.po similarity index 100% rename from po/es_ES.po rename to plugins/kimchi/po/es_ES.po diff --git a/po/fr_FR.po b/plugins/kimchi/po/fr_FR.po similarity index 100% rename from po/fr_FR.po rename to plugins/kimchi/po/fr_FR.po diff --git a/po/gen-pot.in b/plugins/kimchi/po/gen-pot.in similarity index 100% rename from po/gen-pot.in rename to plugins/kimchi/po/gen-pot.in diff --git a/po/it_IT.po b/plugins/kimchi/po/it_IT.po similarity index 100% rename from po/it_IT.po rename to plugins/kimchi/po/it_IT.po diff --git a/po/ja_JP.po b/plugins/kimchi/po/ja_JP.po similarity index 100% rename from po/ja_JP.po rename to plugins/kimchi/po/ja_JP.po diff --git a/po/kimchi.pot b/plugins/kimchi/po/kimchi.pot similarity index 100% rename from po/kimchi.pot rename to plugins/kimchi/po/kimchi.pot diff --git a/po/ko_KR.po b/plugins/kimchi/po/ko_KR.po similarity index 100% rename from po/ko_KR.po rename to plugins/kimchi/po/ko_KR.po diff --git a/po/pt_BR.po b/plugins/kimchi/po/pt_BR.po similarity index 100% rename from po/pt_BR.po rename to plugins/kimchi/po/pt_BR.po diff --git a/po/ru_RU.po b/plugins/kimchi/po/ru_RU.po similarity index 100% rename from po/ru_RU.po rename to plugins/kimchi/po/ru_RU.po diff --git a/po/zh_CN.po b/plugins/kimchi/po/zh_CN.po similarity index 100% rename from po/zh_CN.po rename to plugins/kimchi/po/zh_CN.po diff --git a/po/zh_TW.po b/plugins/kimchi/po/zh_TW.po similarity index 100% rename from po/zh_TW.po rename to plugins/kimchi/po/zh_TW.po diff --git a/src/kimchi/repositories.py b/plugins/kimchi/repositories.py similarity index 100% rename from src/kimchi/repositories.py rename to plugins/kimchi/repositories.py diff --git a/src/kimchi/scan.py b/plugins/kimchi/scan.py similarity index 100% rename from src/kimchi/scan.py rename to plugins/kimchi/scan.py diff --git a/src/kimchi/screenshot.py b/plugins/kimchi/screenshot.py similarity index 100% rename from src/kimchi/screenshot.py rename to plugins/kimchi/screenshot.py diff --git a/src/kimchi/swupdate.py b/plugins/kimchi/swupdate.py similarity index 100% rename from src/kimchi/swupdate.py rename to plugins/kimchi/swupdate.py diff --git a/src/template.conf b/plugins/kimchi/template.conf similarity index 100% rename from src/template.conf rename to plugins/kimchi/template.conf diff --git a/tests/Makefile.am b/plugins/kimchi/tests/Makefile.am similarity index 100% rename from tests/Makefile.am rename to plugins/kimchi/tests/Makefile.am diff --git a/tests/iso_gen.py b/plugins/kimchi/tests/iso_gen.py similarity index 100% rename from tests/iso_gen.py rename to plugins/kimchi/tests/iso_gen.py diff --git a/tests/run_tests.sh.in b/plugins/kimchi/tests/run_tests.sh.in similarity index 100% rename from tests/run_tests.sh.in rename to plugins/kimchi/tests/run_tests.sh.in diff --git a/tests/test_authorization.py b/plugins/kimchi/tests/test_authorization.py similarity index 100% rename from tests/test_authorization.py rename to plugins/kimchi/tests/test_authorization.py diff --git a/tests/test_config.py.in b/plugins/kimchi/tests/test_config.py.in similarity index 100% rename from tests/test_config.py.in rename to plugins/kimchi/tests/test_config.py.in diff --git a/tests/test_exception.py b/plugins/kimchi/tests/test_exception.py similarity index 100% rename from tests/test_exception.py rename to plugins/kimchi/tests/test_exception.py diff --git a/tests/test_host.py b/plugins/kimchi/tests/test_host.py similarity index 100% rename from tests/test_host.py rename to plugins/kimchi/tests/test_host.py diff --git a/tests/test_mock_network.py b/plugins/kimchi/tests/test_mock_network.py similarity index 100% rename from tests/test_mock_network.py rename to plugins/kimchi/tests/test_mock_network.py diff --git a/tests/test_mock_storagepool.py b/plugins/kimchi/tests/test_mock_storagepool.py similarity index 100% rename from tests/test_mock_storagepool.py rename to plugins/kimchi/tests/test_mock_storagepool.py diff --git a/tests/test_mock_storagevolume.py b/plugins/kimchi/tests/test_mock_storagevolume.py similarity index 100% rename from tests/test_mock_storagevolume.py rename to plugins/kimchi/tests/test_mock_storagevolume.py diff --git a/tests/test_mockmodel.py b/plugins/kimchi/tests/test_mockmodel.py similarity index 100% rename from tests/test_mockmodel.py rename to plugins/kimchi/tests/test_mockmodel.py diff --git a/tests/test_model.py b/plugins/kimchi/tests/test_model.py similarity index 100% rename from tests/test_model.py rename to plugins/kimchi/tests/test_model.py diff --git a/tests/test_model_network.py b/plugins/kimchi/tests/test_model_network.py similarity index 100% rename from tests/test_model_network.py rename to plugins/kimchi/tests/test_model_network.py diff --git a/tests/test_model_storagepool.py b/plugins/kimchi/tests/test_model_storagepool.py similarity index 100% rename from tests/test_model_storagepool.py rename to plugins/kimchi/tests/test_model_storagepool.py diff --git a/tests/test_model_storagevolume.py b/plugins/kimchi/tests/test_model_storagevolume.py similarity index 100% rename from tests/test_model_storagevolume.py rename to plugins/kimchi/tests/test_model_storagevolume.py diff --git a/tests/test_networkxml.py b/plugins/kimchi/tests/test_networkxml.py similarity index 100% rename from tests/test_networkxml.py rename to plugins/kimchi/tests/test_networkxml.py diff --git a/tests/test_objectstore.py b/plugins/kimchi/tests/test_objectstore.py similarity index 100% rename from tests/test_objectstore.py rename to plugins/kimchi/tests/test_objectstore.py diff --git a/tests/test_osinfo.py b/plugins/kimchi/tests/test_osinfo.py similarity index 100% rename from tests/test_osinfo.py rename to plugins/kimchi/tests/test_osinfo.py diff --git a/tests/test_plugin.py b/plugins/kimchi/tests/test_plugin.py similarity index 100% rename from tests/test_plugin.py rename to plugins/kimchi/tests/test_plugin.py diff --git a/tests/test_rest.py b/plugins/kimchi/tests/test_rest.py similarity index 100% rename from tests/test_rest.py rename to plugins/kimchi/tests/test_rest.py diff --git a/tests/test_rollbackcontext.py b/plugins/kimchi/tests/test_rollbackcontext.py similarity index 100% rename from tests/test_rollbackcontext.py rename to plugins/kimchi/tests/test_rollbackcontext.py diff --git a/tests/test_server.py b/plugins/kimchi/tests/test_server.py similarity index 100% rename from tests/test_server.py rename to plugins/kimchi/tests/test_server.py diff --git a/tests/test_storagepoolxml.py b/plugins/kimchi/tests/test_storagepoolxml.py similarity index 100% rename from tests/test_storagepoolxml.py rename to plugins/kimchi/tests/test_storagepoolxml.py diff --git a/tests/test_template.py b/plugins/kimchi/tests/test_template.py similarity index 100% rename from tests/test_template.py rename to plugins/kimchi/tests/test_template.py diff --git a/tests/test_utils.py b/plugins/kimchi/tests/test_utils.py similarity index 100% rename from tests/test_utils.py rename to plugins/kimchi/tests/test_utils.py diff --git a/tests/test_vmtemplate.py b/plugins/kimchi/tests/test_vmtemplate.py similarity index 100% rename from tests/test_vmtemplate.py rename to plugins/kimchi/tests/test_vmtemplate.py diff --git a/tests/test_yumparser.py b/plugins/kimchi/tests/test_yumparser.py similarity index 100% rename from tests/test_yumparser.py rename to plugins/kimchi/tests/test_yumparser.py diff --git a/tests/utils.py b/plugins/kimchi/tests/utils.py similarity index 100% rename from tests/utils.py rename to plugins/kimchi/tests/utils.py diff --git a/config/Makefile.am b/plugins/kimchi/ui/Makefile.am similarity index 100% rename from config/Makefile.am rename to plugins/kimchi/ui/Makefile.am diff --git a/config/ui/Makefile.am b/plugins/kimchi/ui/config/Makefile.am similarity index 100% rename from config/ui/Makefile.am rename to plugins/kimchi/ui/config/Makefile.am diff --git a/config/ui/tabs.xml b/plugins/kimchi/ui/config/tab-ext.xml similarity index 100% rename from config/ui/tabs.xml rename to plugins/kimchi/ui/config/tab-ext.xml diff --git a/ui/css/Makefile.am b/plugins/kimchi/ui/css/Makefile.am similarity index 100% rename from ui/css/Makefile.am rename to plugins/kimchi/ui/css/Makefile.am diff --git a/ui/css/theme-default/button.css b/plugins/kimchi/ui/css/theme-default/button.css similarity index 100% rename from ui/css/theme-default/button.css rename to plugins/kimchi/ui/css/theme-default/button.css diff --git a/ui/css/theme-default/circleGauge.css b/plugins/kimchi/ui/css/theme-default/circleGauge.css similarity index 100% rename from ui/css/theme-default/circleGauge.css rename to plugins/kimchi/ui/css/theme-default/circleGauge.css diff --git a/ui/css/theme-default/form.css b/plugins/kimchi/ui/css/theme-default/form.css similarity index 100% rename from ui/css/theme-default/form.css rename to plugins/kimchi/ui/css/theme-default/form.css diff --git a/ui/css/theme-default/grid.css b/plugins/kimchi/ui/css/theme-default/grid.css similarity index 100% rename from ui/css/theme-default/grid.css rename to plugins/kimchi/ui/css/theme-default/grid.css diff --git a/ui/css/theme-default/guest-edit.css b/plugins/kimchi/ui/css/theme-default/guest-edit.css similarity index 100% rename from ui/css/theme-default/guest-edit.css rename to plugins/kimchi/ui/css/theme-default/guest-edit.css diff --git a/ui/css/theme-default/guest-storage-add.css b/plugins/kimchi/ui/css/theme-default/guest-storage-add.css similarity index 100% rename from ui/css/theme-default/guest-storage-add.css rename to plugins/kimchi/ui/css/theme-default/guest-storage-add.css diff --git a/ui/css/theme-default/host.css b/plugins/kimchi/ui/css/theme-default/host.css similarity index 100% rename from ui/css/theme-default/host.css rename to plugins/kimchi/ui/css/theme-default/host.css diff --git a/ui/css/theme-default/jquery-ui.custom.css b/plugins/kimchi/ui/css/theme-default/jquery-ui.custom.css similarity index 100% rename from ui/css/theme-default/jquery-ui.custom.css rename to plugins/kimchi/ui/css/theme-default/jquery-ui.custom.css diff --git a/ui/css/theme-default/line-chart.css b/plugins/kimchi/ui/css/theme-default/line-chart.css similarity index 100% rename from ui/css/theme-default/line-chart.css rename to plugins/kimchi/ui/css/theme-default/line-chart.css diff --git a/ui/css/theme-default/list.css b/plugins/kimchi/ui/css/theme-default/list.css similarity index 100% rename from ui/css/theme-default/list.css rename to plugins/kimchi/ui/css/theme-default/list.css diff --git a/ui/css/theme-default/message.css b/plugins/kimchi/ui/css/theme-default/message.css similarity index 100% rename from ui/css/theme-default/message.css rename to plugins/kimchi/ui/css/theme-default/message.css diff --git a/ui/css/theme-default/network.css b/plugins/kimchi/ui/css/theme-default/network.css similarity index 100% rename from ui/css/theme-default/network.css rename to plugins/kimchi/ui/css/theme-default/network.css diff --git a/ui/css/theme-default/popover.css b/plugins/kimchi/ui/css/theme-default/popover.css similarity index 100% rename from ui/css/theme-default/popover.css rename to plugins/kimchi/ui/css/theme-default/popover.css diff --git a/ui/css/theme-default/report-add.css b/plugins/kimchi/ui/css/theme-default/report-add.css similarity index 100% rename from ui/css/theme-default/report-add.css rename to plugins/kimchi/ui/css/theme-default/report-add.css diff --git a/ui/css/theme-default/report-rename.css b/plugins/kimchi/ui/css/theme-default/report-rename.css similarity index 100% rename from ui/css/theme-default/report-rename.css rename to plugins/kimchi/ui/css/theme-default/report-rename.css diff --git a/ui/css/theme-default/repository-add.css b/plugins/kimchi/ui/css/theme-default/repository-add.css similarity index 100% rename from ui/css/theme-default/repository-add.css rename to plugins/kimchi/ui/css/theme-default/repository-add.css diff --git a/ui/css/theme-default/repository-edit.css b/plugins/kimchi/ui/css/theme-default/repository-edit.css similarity index 100% rename from ui/css/theme-default/repository-edit.css rename to plugins/kimchi/ui/css/theme-default/repository-edit.css diff --git a/ui/css/theme-default/storage.css b/plugins/kimchi/ui/css/theme-default/storage.css similarity index 100% rename from ui/css/theme-default/storage.css rename to plugins/kimchi/ui/css/theme-default/storage.css diff --git a/ui/css/theme-default/storagepool-add-volume.css b/plugins/kimchi/ui/css/theme-default/storagepool-add-volume.css similarity index 100% rename from ui/css/theme-default/storagepool-add-volume.css rename to plugins/kimchi/ui/css/theme-default/storagepool-add-volume.css diff --git a/ui/css/theme-default/template-edit.css b/plugins/kimchi/ui/css/theme-default/template-edit.css similarity index 100% rename from ui/css/theme-default/template-edit.css rename to plugins/kimchi/ui/css/theme-default/template-edit.css diff --git a/ui/css/theme-default/template.css b/plugins/kimchi/ui/css/theme-default/template.css similarity index 100% rename from ui/css/theme-default/template.css rename to plugins/kimchi/ui/css/theme-default/template.css diff --git a/ui/css/theme-default/template_add.css b/plugins/kimchi/ui/css/theme-default/template_add.css similarity index 100% rename from ui/css/theme-default/template_add.css rename to plugins/kimchi/ui/css/theme-default/template_add.css diff --git a/ui/css/theme-default/template_list.css b/plugins/kimchi/ui/css/theme-default/template_list.css similarity index 100% rename from ui/css/theme-default/template_list.css rename to plugins/kimchi/ui/css/theme-default/template_list.css diff --git a/ui/css/theme-default/tile-check.css b/plugins/kimchi/ui/css/theme-default/tile-check.css similarity index 100% rename from ui/css/theme-default/tile-check.css rename to plugins/kimchi/ui/css/theme-default/tile-check.css diff --git a/ui/css/theme-default/toolbar.css b/plugins/kimchi/ui/css/theme-default/toolbar.css similarity index 100% rename from ui/css/theme-default/toolbar.css rename to plugins/kimchi/ui/css/theme-default/toolbar.css diff --git a/ui/images/Makefile.am b/plugins/kimchi/ui/images/Makefile.am similarity index 100% rename from ui/images/Makefile.am rename to plugins/kimchi/ui/images/Makefile.am diff --git a/ui/images/theme-default/Makefile.am b/plugins/kimchi/ui/images/theme-default/Makefile.am similarity index 100% rename from ui/images/theme-default/Makefile.am rename to plugins/kimchi/ui/images/theme-default/Makefile.am diff --git a/ui/images/theme-default/folder-arrow-right.png b/plugins/kimchi/ui/images/theme-default/arrow-down-black.png similarity index 90% copy from ui/images/theme-default/folder-arrow-right.png copy to plugins/kimchi/ui/images/theme-default/arrow-down-black.png index 71a1832791df9b57ecca8b184d4e0e4bcf9aea7f..2c05f00498232213a081497051c94d16537daab8 100644 GIT binary patch delta 234 zcmV<G02Tj^7ycF@iBL{Q4GJ0x0000DNk~Le0000E000092nGNE00K=NX|W-n3V*3d zL_t(|+MLlnN<&c)hT(S(3O7Gk*sAFQ(_V0GW-D<sE<%uljfElEK_Xb>wK-Qbpb44k zE9T*YnNT@rE&w884%`8gBl}z69oU3QMBHZP>eRMc>ui7p=rVJA0$KpC1wb9EU9I)% z2zqRBU0T=ypTOl`xS==T33w^(I6wRU@F9wb4}QKwE$URgR{P9UU8)c2y*e6phvWRh kz!<mz`j(%+o7#L0056AMLI?@#xBvhE07*qoM6N<$g3sGtjsO4v delta 250 zcmV<W00sa47LFGoiBL{Q4GJ0x0000DNk~Le000090000D2nGNE0DAyL2C*TZ3V*pt zL_t(|+Jw<DO2;r12jDLySX>&Rn}Xor3G_T(%FzRO2T#yhbaChjIyi{5;=gfeH1t0h z2=DQJA3Q=r&e?w_LI~jwCwRdd-mw<cZ1rXsh6mi@8fR7Z+ca(48prV-S9@5{9AngV zooSjL_pqQ9VvJHs1%8%!bM%rw_)na3UUJUIsKCDO&(YTF=AFC50bf`PdfkBqADBZ3 zYuth-NGV<5y9N-pZ;3eF>QaLmHQNn1)Bt`40BrC*$)(cHf&c&j07*qoM6N<$f=Huh Ar~m)} diff --git a/ui/images/theme-default/folder-arrow-right.png b/plugins/kimchi/ui/images/theme-default/bg-mask.png similarity index 90% copy from ui/images/theme-default/folder-arrow-right.png copy to plugins/kimchi/ui/images/theme-default/bg-mask.png index 71a1832791df9b57ecca8b184d4e0e4bcf9aea7f..e93afac51302bb32de2e1fba046d9f6b6fa40b2d 100644 GIT binary patch delta 191 zcmeAZzbvNM8Q|y6%O%Cdz`(%k>ERLtq%}a8gAGXb{M(VcQE@(3eVwO^V@SoVH&+e0 z8Vm$jFB(4J{PwSv{f_mGm4Vqm59LS(@kk$vUX}IO=<eCtRj&%aUEMoThJ8+BXQ6vS zmdpW<zS;9E4A<>`eqhUv%x1V?^<NdQML1FY#FV>?3=IGOGc$-dKYM8R^H3H)&`k`U Lu6{1-oD!M<n9@rR delta 250 zcmV<W00sZk7LFGoiBL{Q4GJ0x0000DNk~Le000090000D2nGNE0DAyL2C*TZ3V*pt zL_t(|+Jw<DO2;r12jDLySX>&Rn}Xor3G_T(%FzRO2T#yhbaChjIyi{5;=gfeH1t0h z2=DQJA3Q=r&e?w_LI~jwCwRdd-mw<cZ1rXsh6mi@8fR7Z+ca(48prV-S9@5{9AngV zooSjL_pqQ9VvJHs1%8%!bM%rw_)na3UUJUIsKCDO&(YTF=AFC50bf`PdfkBqADBZ3 zYuth-NGV<5y9N-pZ;3eF>QaLmHQNn1)Bt`40BrC*$)(cHf&c&j07*qoM6N<$f*z%3 AeE<Le diff --git a/ui/images/theme-default/folder-arrow-right.png b/plugins/kimchi/ui/images/theme-default/folder-arrow-down.png similarity index 90% copy from ui/images/theme-default/folder-arrow-right.png copy to plugins/kimchi/ui/images/theme-default/folder-arrow-down.png index 71a1832791df9b57ecca8b184d4e0e4bcf9aea7f..6e7baefac8193d8d60cabc1c7d42b5d3aa674c78 100644 GIT binary patch delta 248 zcmV<U00;k$7mODniBL{Q4GJ0x0000DNk~Le0000D000092nGNE0O@+BYOx`o3V*jr zL_t(|+LX{S3c_FvhT%8$*J2CpAn2l=pw|$*gZFfBa_lKOiJ<%)1*Ns0ODk3EV3sW3 zlaQDs{w)V!W;<XDEC+HYU=JLDi%G)FHhG>O!Z5@+H@G3ovJj{{Gy!HsQJj+``3ciB zT>uZ@<^Uwsz!h+1S=MnJf5Ua#D@~xGdxWGw(n!+Cd#|dh)YeMUTv8+{=)&)DJvjB= y{{}#J(+32`Km-_Y2kvIp45A(kTJ-D#fY$(%?sL@jCu{it0000<MNUMnLSTaYsb*XN delta 250 zcmV<W00sYy7mgPpiBL{Q4GJ0x0000DNk~Le000090000D2nGNE0DAyL2C*TZ3V*pt zL_t(|+Jw<DO2;r12jDLySX>&Rn}Xor3G_T(%FzRO2T#yhbaChjIyi{5;=gfeH1t0h z2=DQJA3Q=r&e?w_LI~jwCwRdd-mw<cZ1rXsh6mi@8fR7Z+ca(48prV-S9@5{9AngV zooSjL_pqQ9VvJHs1%8%!bM%rw_)na3UUJUIsKCDO&(YTF=AFC50bf`PdfkBqADBZ3 zYuth-NGV<5y9N-pZ;3eF>QaLmHQNn1)Bt`40BrC*$)(cHf&c&j07*qoM6N<$g4#J} AHvj+t diff --git a/ui/js/Makefile.am b/plugins/kimchi/ui/js/Makefile.am similarity index 100% rename from ui/js/Makefile.am rename to plugins/kimchi/ui/js/Makefile.am diff --git a/ui/js/src/kimchi.api.js b/plugins/kimchi/ui/js/src/kimchi.api.js similarity index 100% rename from ui/js/src/kimchi.api.js rename to plugins/kimchi/ui/js/src/kimchi.api.js diff --git a/ui/js/src/kimchi.form.js b/plugins/kimchi/ui/js/src/kimchi.form.js similarity index 100% rename from ui/js/src/kimchi.form.js rename to plugins/kimchi/ui/js/src/kimchi.form.js diff --git a/ui/js/src/kimchi.grid.js b/plugins/kimchi/ui/js/src/kimchi.grid.js similarity index 100% rename from ui/js/src/kimchi.grid.js rename to plugins/kimchi/ui/js/src/kimchi.grid.js diff --git a/ui/js/src/kimchi.guest_add_main.js b/plugins/kimchi/ui/js/src/kimchi.guest_add_main.js similarity index 100% rename from ui/js/src/kimchi.guest_add_main.js rename to plugins/kimchi/ui/js/src/kimchi.guest_add_main.js diff --git a/ui/js/src/kimchi.guest_edit_main.js b/plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js similarity index 100% rename from ui/js/src/kimchi.guest_edit_main.js rename to plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js diff --git a/ui/js/src/kimchi.guest_main.js b/plugins/kimchi/ui/js/src/kimchi.guest_main.js similarity index 100% rename from ui/js/src/kimchi.guest_main.js rename to plugins/kimchi/ui/js/src/kimchi.guest_main.js diff --git a/ui/js/src/kimchi.guest_media_main.js b/plugins/kimchi/ui/js/src/kimchi.guest_media_main.js similarity index 100% rename from ui/js/src/kimchi.guest_media_main.js rename to plugins/kimchi/ui/js/src/kimchi.guest_media_main.js diff --git a/ui/js/src/kimchi.guest_storage_add.main.js b/plugins/kimchi/ui/js/src/kimchi.guest_storage_add.main.js similarity index 100% rename from ui/js/src/kimchi.guest_storage_add.main.js rename to plugins/kimchi/ui/js/src/kimchi.guest_storage_add.main.js diff --git a/ui/js/src/kimchi.host.js b/plugins/kimchi/ui/js/src/kimchi.host.js similarity index 100% rename from ui/js/src/kimchi.host.js rename to plugins/kimchi/ui/js/src/kimchi.host.js diff --git a/ui/js/src/kimchi.line-chart.js b/plugins/kimchi/ui/js/src/kimchi.line-chart.js similarity index 100% rename from ui/js/src/kimchi.line-chart.js rename to plugins/kimchi/ui/js/src/kimchi.line-chart.js diff --git a/ui/js/src/kimchi.network.js b/plugins/kimchi/ui/js/src/kimchi.network.js similarity index 100% rename from ui/js/src/kimchi.network.js rename to plugins/kimchi/ui/js/src/kimchi.network.js diff --git a/ui/js/src/kimchi.report_add_main.js b/plugins/kimchi/ui/js/src/kimchi.report_add_main.js similarity index 100% rename from ui/js/src/kimchi.report_add_main.js rename to plugins/kimchi/ui/js/src/kimchi.report_add_main.js diff --git a/ui/js/src/kimchi.report_rename_main.js b/plugins/kimchi/ui/js/src/kimchi.report_rename_main.js similarity index 100% rename from ui/js/src/kimchi.report_rename_main.js rename to plugins/kimchi/ui/js/src/kimchi.report_rename_main.js diff --git a/ui/js/src/kimchi.repository_add_main.js b/plugins/kimchi/ui/js/src/kimchi.repository_add_main.js similarity index 100% rename from ui/js/src/kimchi.repository_add_main.js rename to plugins/kimchi/ui/js/src/kimchi.repository_add_main.js diff --git a/ui/js/src/kimchi.repository_edit_main.js b/plugins/kimchi/ui/js/src/kimchi.repository_edit_main.js similarity index 100% rename from ui/js/src/kimchi.repository_edit_main.js rename to plugins/kimchi/ui/js/src/kimchi.repository_edit_main.js diff --git a/ui/js/src/kimchi.select.js b/plugins/kimchi/ui/js/src/kimchi.select.js similarity index 100% rename from ui/js/src/kimchi.select.js rename to plugins/kimchi/ui/js/src/kimchi.select.js diff --git a/ui/js/src/kimchi.storage_main.js b/plugins/kimchi/ui/js/src/kimchi.storage_main.js similarity index 100% rename from ui/js/src/kimchi.storage_main.js rename to plugins/kimchi/ui/js/src/kimchi.storage_main.js diff --git a/ui/js/src/kimchi.storagepool_add_main.js b/plugins/kimchi/ui/js/src/kimchi.storagepool_add_main.js similarity index 100% rename from ui/js/src/kimchi.storagepool_add_main.js rename to plugins/kimchi/ui/js/src/kimchi.storagepool_add_main.js diff --git a/ui/js/src/kimchi.storagepool_add_volume_main.js b/plugins/kimchi/ui/js/src/kimchi.storagepool_add_volume_main.js similarity index 100% rename from ui/js/src/kimchi.storagepool_add_volume_main.js rename to plugins/kimchi/ui/js/src/kimchi.storagepool_add_volume_main.js diff --git a/ui/js/src/kimchi.template_add_main.js b/plugins/kimchi/ui/js/src/kimchi.template_add_main.js similarity index 100% rename from ui/js/src/kimchi.template_add_main.js rename to plugins/kimchi/ui/js/src/kimchi.template_add_main.js diff --git a/ui/js/src/kimchi.template_edit_main.js b/plugins/kimchi/ui/js/src/kimchi.template_edit_main.js similarity index 100% rename from ui/js/src/kimchi.template_edit_main.js rename to plugins/kimchi/ui/js/src/kimchi.template_edit_main.js diff --git a/ui/js/src/kimchi.template_main.js b/plugins/kimchi/ui/js/src/kimchi.template_main.js similarity index 100% rename from ui/js/src/kimchi.template_main.js rename to plugins/kimchi/ui/js/src/kimchi.template_main.js diff --git a/ui/js/widgets/circleGauge.js b/plugins/kimchi/ui/js/widgets/circleGauge.js similarity index 100% rename from ui/js/widgets/circleGauge.js rename to plugins/kimchi/ui/js/widgets/circleGauge.js diff --git a/ui/libs/Makefile.am b/plugins/kimchi/ui/libs/Makefile.am similarity index 100% rename from ui/libs/Makefile.am rename to plugins/kimchi/ui/libs/Makefile.am diff --git a/ui/libs/themes/Makefile.am b/plugins/kimchi/ui/libs/themes/Makefile.am similarity index 100% rename from ui/libs/themes/Makefile.am rename to plugins/kimchi/ui/libs/themes/Makefile.am diff --git a/ui/libs/themes/base/Makefile.am b/plugins/kimchi/ui/libs/themes/base/Makefile.am similarity index 100% rename from ui/libs/themes/base/Makefile.am rename to plugins/kimchi/ui/libs/themes/base/Makefile.am diff --git a/ui/libs/themes/base/images/Makefile.am b/plugins/kimchi/ui/libs/themes/base/images/Makefile.am similarity index 100% rename from ui/libs/themes/base/images/Makefile.am rename to plugins/kimchi/ui/libs/themes/base/images/Makefile.am diff --git a/ui/pages/Makefile.am b/plugins/kimchi/ui/pages/Makefile.am similarity index 100% rename from ui/pages/Makefile.am rename to plugins/kimchi/ui/pages/Makefile.am diff --git a/ui/pages/error.html.tmpl b/plugins/kimchi/ui/pages/error.html.tmpl similarity index 100% rename from ui/pages/error.html.tmpl rename to plugins/kimchi/ui/pages/error.html.tmpl diff --git a/ui/pages/guest-add.html.tmpl b/plugins/kimchi/ui/pages/guest-add.html.tmpl similarity index 100% rename from ui/pages/guest-add.html.tmpl rename to plugins/kimchi/ui/pages/guest-add.html.tmpl diff --git a/ui/pages/guest-edit.html.tmpl b/plugins/kimchi/ui/pages/guest-edit.html.tmpl similarity index 100% rename from ui/pages/guest-edit.html.tmpl rename to plugins/kimchi/ui/pages/guest-edit.html.tmpl diff --git a/ui/pages/guest-storage-add.html.tmpl b/plugins/kimchi/ui/pages/guest-storage-add.html.tmpl similarity index 100% rename from ui/pages/guest-storage-add.html.tmpl rename to plugins/kimchi/ui/pages/guest-storage-add.html.tmpl diff --git a/ui/pages/guest.html.tmpl b/plugins/kimchi/ui/pages/guest.html.tmpl similarity index 100% rename from ui/pages/guest.html.tmpl rename to plugins/kimchi/ui/pages/guest.html.tmpl diff --git a/ui/pages/help/Makefile.am b/plugins/kimchi/ui/pages/help/Makefile.am similarity index 100% rename from ui/pages/help/Makefile.am rename to plugins/kimchi/ui/pages/help/Makefile.am diff --git a/ui/pages/help/de_DE/Makefile.am b/plugins/kimchi/ui/pages/help/de_DE/Makefile.am similarity index 100% rename from ui/pages/help/de_DE/Makefile.am rename to plugins/kimchi/ui/pages/help/de_DE/Makefile.am diff --git a/ui/pages/help/de_DE/guests.dita b/plugins/kimchi/ui/pages/help/de_DE/guests.dita similarity index 100% rename from ui/pages/help/de_DE/guests.dita rename to plugins/kimchi/ui/pages/help/de_DE/guests.dita diff --git a/ui/pages/help/de_DE/host.dita b/plugins/kimchi/ui/pages/help/de_DE/host.dita similarity index 100% rename from ui/pages/help/de_DE/host.dita rename to plugins/kimchi/ui/pages/help/de_DE/host.dita diff --git a/ui/pages/help/de_DE/network.dita b/plugins/kimchi/ui/pages/help/de_DE/network.dita similarity index 100% rename from ui/pages/help/de_DE/network.dita rename to plugins/kimchi/ui/pages/help/de_DE/network.dita diff --git a/ui/pages/help/de_DE/storage.dita b/plugins/kimchi/ui/pages/help/de_DE/storage.dita similarity index 100% rename from ui/pages/help/de_DE/storage.dita rename to plugins/kimchi/ui/pages/help/de_DE/storage.dita diff --git a/ui/pages/help/de_DE/templates.dita b/plugins/kimchi/ui/pages/help/de_DE/templates.dita similarity index 100% rename from ui/pages/help/de_DE/templates.dita rename to plugins/kimchi/ui/pages/help/de_DE/templates.dita diff --git a/ui/pages/help/dita-help.xsl b/plugins/kimchi/ui/pages/help/dita-help.xsl similarity index 100% rename from ui/pages/help/dita-help.xsl rename to plugins/kimchi/ui/pages/help/dita-help.xsl diff --git a/ui/pages/help/en_US/Makefile.am b/plugins/kimchi/ui/pages/help/en_US/Makefile.am similarity index 100% rename from ui/pages/help/en_US/Makefile.am rename to plugins/kimchi/ui/pages/help/en_US/Makefile.am diff --git a/ui/pages/help/en_US/guests.dita b/plugins/kimchi/ui/pages/help/en_US/guests.dita similarity index 100% rename from ui/pages/help/en_US/guests.dita rename to plugins/kimchi/ui/pages/help/en_US/guests.dita diff --git a/ui/pages/help/en_US/host.dita b/plugins/kimchi/ui/pages/help/en_US/host.dita similarity index 100% rename from ui/pages/help/en_US/host.dita rename to plugins/kimchi/ui/pages/help/en_US/host.dita diff --git a/ui/pages/help/en_US/network.dita b/plugins/kimchi/ui/pages/help/en_US/network.dita similarity index 100% rename from ui/pages/help/en_US/network.dita rename to plugins/kimchi/ui/pages/help/en_US/network.dita diff --git a/ui/pages/help/en_US/storage.dita b/plugins/kimchi/ui/pages/help/en_US/storage.dita similarity index 100% rename from ui/pages/help/en_US/storage.dita rename to plugins/kimchi/ui/pages/help/en_US/storage.dita diff --git a/ui/pages/help/en_US/templates.dita b/plugins/kimchi/ui/pages/help/en_US/templates.dita similarity index 100% rename from ui/pages/help/en_US/templates.dita rename to plugins/kimchi/ui/pages/help/en_US/templates.dita diff --git a/ui/pages/help/es_ES/Makefile.am b/plugins/kimchi/ui/pages/help/es_ES/Makefile.am similarity index 100% rename from ui/pages/help/es_ES/Makefile.am rename to plugins/kimchi/ui/pages/help/es_ES/Makefile.am diff --git a/ui/pages/help/es_ES/guests.dita b/plugins/kimchi/ui/pages/help/es_ES/guests.dita similarity index 100% rename from ui/pages/help/es_ES/guests.dita rename to plugins/kimchi/ui/pages/help/es_ES/guests.dita diff --git a/ui/pages/help/es_ES/host.dita b/plugins/kimchi/ui/pages/help/es_ES/host.dita similarity index 100% rename from ui/pages/help/es_ES/host.dita rename to plugins/kimchi/ui/pages/help/es_ES/host.dita diff --git a/ui/pages/help/es_ES/network.dita b/plugins/kimchi/ui/pages/help/es_ES/network.dita similarity index 100% rename from ui/pages/help/es_ES/network.dita rename to plugins/kimchi/ui/pages/help/es_ES/network.dita diff --git a/ui/pages/help/es_ES/storage.dita b/plugins/kimchi/ui/pages/help/es_ES/storage.dita similarity index 100% rename from ui/pages/help/es_ES/storage.dita rename to plugins/kimchi/ui/pages/help/es_ES/storage.dita diff --git a/ui/pages/help/es_ES/templates.dita b/plugins/kimchi/ui/pages/help/es_ES/templates.dita similarity index 100% rename from ui/pages/help/es_ES/templates.dita rename to plugins/kimchi/ui/pages/help/es_ES/templates.dita diff --git a/ui/pages/help/fr_FR/Makefile.am b/plugins/kimchi/ui/pages/help/fr_FR/Makefile.am similarity index 100% rename from ui/pages/help/fr_FR/Makefile.am rename to plugins/kimchi/ui/pages/help/fr_FR/Makefile.am diff --git a/ui/pages/help/fr_FR/guests.dita b/plugins/kimchi/ui/pages/help/fr_FR/guests.dita similarity index 100% rename from ui/pages/help/fr_FR/guests.dita rename to plugins/kimchi/ui/pages/help/fr_FR/guests.dita diff --git a/ui/pages/help/fr_FR/host.dita b/plugins/kimchi/ui/pages/help/fr_FR/host.dita similarity index 100% rename from ui/pages/help/fr_FR/host.dita rename to plugins/kimchi/ui/pages/help/fr_FR/host.dita diff --git a/ui/pages/help/fr_FR/network.dita b/plugins/kimchi/ui/pages/help/fr_FR/network.dita similarity index 100% rename from ui/pages/help/fr_FR/network.dita rename to plugins/kimchi/ui/pages/help/fr_FR/network.dita diff --git a/ui/pages/help/fr_FR/storage.dita b/plugins/kimchi/ui/pages/help/fr_FR/storage.dita similarity index 100% rename from ui/pages/help/fr_FR/storage.dita rename to plugins/kimchi/ui/pages/help/fr_FR/storage.dita diff --git a/ui/pages/help/fr_FR/templates.dita b/plugins/kimchi/ui/pages/help/fr_FR/templates.dita similarity index 100% rename from ui/pages/help/fr_FR/templates.dita rename to plugins/kimchi/ui/pages/help/fr_FR/templates.dita diff --git a/ui/pages/help/gen-index.py b/plugins/kimchi/ui/pages/help/gen-index.py similarity index 100% rename from ui/pages/help/gen-index.py rename to plugins/kimchi/ui/pages/help/gen-index.py diff --git a/ui/pages/help/it_IT/Makefile.am b/plugins/kimchi/ui/pages/help/it_IT/Makefile.am similarity index 100% rename from ui/pages/help/it_IT/Makefile.am rename to plugins/kimchi/ui/pages/help/it_IT/Makefile.am diff --git a/ui/pages/help/it_IT/guests.dita b/plugins/kimchi/ui/pages/help/it_IT/guests.dita similarity index 100% rename from ui/pages/help/it_IT/guests.dita rename to plugins/kimchi/ui/pages/help/it_IT/guests.dita diff --git a/ui/pages/help/it_IT/host.dita b/plugins/kimchi/ui/pages/help/it_IT/host.dita similarity index 100% rename from ui/pages/help/it_IT/host.dita rename to plugins/kimchi/ui/pages/help/it_IT/host.dita diff --git a/ui/pages/help/it_IT/network.dita b/plugins/kimchi/ui/pages/help/it_IT/network.dita similarity index 100% rename from ui/pages/help/it_IT/network.dita rename to plugins/kimchi/ui/pages/help/it_IT/network.dita diff --git a/ui/pages/help/it_IT/storage.dita b/plugins/kimchi/ui/pages/help/it_IT/storage.dita similarity index 100% rename from ui/pages/help/it_IT/storage.dita rename to plugins/kimchi/ui/pages/help/it_IT/storage.dita diff --git a/ui/pages/help/it_IT/templates.dita b/plugins/kimchi/ui/pages/help/it_IT/templates.dita similarity index 100% rename from ui/pages/help/it_IT/templates.dita rename to plugins/kimchi/ui/pages/help/it_IT/templates.dita diff --git a/ui/pages/help/ja_JP/Makefile.am b/plugins/kimchi/ui/pages/help/ja_JP/Makefile.am similarity index 100% rename from ui/pages/help/ja_JP/Makefile.am rename to plugins/kimchi/ui/pages/help/ja_JP/Makefile.am diff --git a/ui/pages/help/ja_JP/guests.dita b/plugins/kimchi/ui/pages/help/ja_JP/guests.dita similarity index 100% rename from ui/pages/help/ja_JP/guests.dita rename to plugins/kimchi/ui/pages/help/ja_JP/guests.dita diff --git a/ui/pages/help/ja_JP/host.dita b/plugins/kimchi/ui/pages/help/ja_JP/host.dita similarity index 100% rename from ui/pages/help/ja_JP/host.dita rename to plugins/kimchi/ui/pages/help/ja_JP/host.dita diff --git a/ui/pages/help/ja_JP/network.dita b/plugins/kimchi/ui/pages/help/ja_JP/network.dita similarity index 100% rename from ui/pages/help/ja_JP/network.dita rename to plugins/kimchi/ui/pages/help/ja_JP/network.dita diff --git a/ui/pages/help/ja_JP/storage.dita b/plugins/kimchi/ui/pages/help/ja_JP/storage.dita similarity index 100% rename from ui/pages/help/ja_JP/storage.dita rename to plugins/kimchi/ui/pages/help/ja_JP/storage.dita diff --git a/ui/pages/help/ja_JP/templates.dita b/plugins/kimchi/ui/pages/help/ja_JP/templates.dita similarity index 100% rename from ui/pages/help/ja_JP/templates.dita rename to plugins/kimchi/ui/pages/help/ja_JP/templates.dita diff --git a/ui/pages/help/kimchi.css b/plugins/kimchi/ui/pages/help/kimchi.css similarity index 100% rename from ui/pages/help/kimchi.css rename to plugins/kimchi/ui/pages/help/kimchi.css diff --git a/ui/pages/help/ko_KR/Makefile.am b/plugins/kimchi/ui/pages/help/ko_KR/Makefile.am similarity index 100% rename from ui/pages/help/ko_KR/Makefile.am rename to plugins/kimchi/ui/pages/help/ko_KR/Makefile.am diff --git a/ui/pages/help/ko_KR/guests.dita b/plugins/kimchi/ui/pages/help/ko_KR/guests.dita similarity index 100% rename from ui/pages/help/ko_KR/guests.dita rename to plugins/kimchi/ui/pages/help/ko_KR/guests.dita diff --git a/ui/pages/help/ko_KR/host.dita b/plugins/kimchi/ui/pages/help/ko_KR/host.dita similarity index 100% rename from ui/pages/help/ko_KR/host.dita rename to plugins/kimchi/ui/pages/help/ko_KR/host.dita diff --git a/ui/pages/help/ko_KR/network.dita b/plugins/kimchi/ui/pages/help/ko_KR/network.dita similarity index 100% rename from ui/pages/help/ko_KR/network.dita rename to plugins/kimchi/ui/pages/help/ko_KR/network.dita diff --git a/ui/pages/help/ko_KR/storage.dita b/plugins/kimchi/ui/pages/help/ko_KR/storage.dita similarity index 100% rename from ui/pages/help/ko_KR/storage.dita rename to plugins/kimchi/ui/pages/help/ko_KR/storage.dita diff --git a/ui/pages/help/ko_KR/templates.dita b/plugins/kimchi/ui/pages/help/ko_KR/templates.dita similarity index 100% rename from ui/pages/help/ko_KR/templates.dita rename to plugins/kimchi/ui/pages/help/ko_KR/templates.dita diff --git a/ui/pages/help/pt_BR/Makefile.am b/plugins/kimchi/ui/pages/help/pt_BR/Makefile.am similarity index 100% rename from ui/pages/help/pt_BR/Makefile.am rename to plugins/kimchi/ui/pages/help/pt_BR/Makefile.am diff --git a/ui/pages/help/pt_BR/guests.dita b/plugins/kimchi/ui/pages/help/pt_BR/guests.dita similarity index 100% rename from ui/pages/help/pt_BR/guests.dita rename to plugins/kimchi/ui/pages/help/pt_BR/guests.dita diff --git a/ui/pages/help/pt_BR/host.dita b/plugins/kimchi/ui/pages/help/pt_BR/host.dita similarity index 100% rename from ui/pages/help/pt_BR/host.dita rename to plugins/kimchi/ui/pages/help/pt_BR/host.dita diff --git a/ui/pages/help/pt_BR/network.dita b/plugins/kimchi/ui/pages/help/pt_BR/network.dita similarity index 100% rename from ui/pages/help/pt_BR/network.dita rename to plugins/kimchi/ui/pages/help/pt_BR/network.dita diff --git a/ui/pages/help/pt_BR/storage.dita b/plugins/kimchi/ui/pages/help/pt_BR/storage.dita similarity index 100% rename from ui/pages/help/pt_BR/storage.dita rename to plugins/kimchi/ui/pages/help/pt_BR/storage.dita diff --git a/ui/pages/help/pt_BR/templates.dita b/plugins/kimchi/ui/pages/help/pt_BR/templates.dita similarity index 100% rename from ui/pages/help/pt_BR/templates.dita rename to plugins/kimchi/ui/pages/help/pt_BR/templates.dita diff --git a/ui/pages/help/ru_RU/Makefile.am b/plugins/kimchi/ui/pages/help/ru_RU/Makefile.am similarity index 100% rename from ui/pages/help/ru_RU/Makefile.am rename to plugins/kimchi/ui/pages/help/ru_RU/Makefile.am diff --git a/ui/pages/help/ru_RU/guests.dita b/plugins/kimchi/ui/pages/help/ru_RU/guests.dita similarity index 100% rename from ui/pages/help/ru_RU/guests.dita rename to plugins/kimchi/ui/pages/help/ru_RU/guests.dita diff --git a/ui/pages/help/ru_RU/host.dita b/plugins/kimchi/ui/pages/help/ru_RU/host.dita similarity index 100% rename from ui/pages/help/ru_RU/host.dita rename to plugins/kimchi/ui/pages/help/ru_RU/host.dita diff --git a/ui/pages/help/ru_RU/network.dita b/plugins/kimchi/ui/pages/help/ru_RU/network.dita similarity index 100% rename from ui/pages/help/ru_RU/network.dita rename to plugins/kimchi/ui/pages/help/ru_RU/network.dita diff --git a/ui/pages/help/ru_RU/storage.dita b/plugins/kimchi/ui/pages/help/ru_RU/storage.dita similarity index 100% rename from ui/pages/help/ru_RU/storage.dita rename to plugins/kimchi/ui/pages/help/ru_RU/storage.dita diff --git a/ui/pages/help/ru_RU/templates.dita b/plugins/kimchi/ui/pages/help/ru_RU/templates.dita similarity index 100% rename from ui/pages/help/ru_RU/templates.dita rename to plugins/kimchi/ui/pages/help/ru_RU/templates.dita diff --git a/ui/pages/help/zh_CN/Makefile.am b/plugins/kimchi/ui/pages/help/zh_CN/Makefile.am similarity index 100% rename from ui/pages/help/zh_CN/Makefile.am rename to plugins/kimchi/ui/pages/help/zh_CN/Makefile.am diff --git a/ui/pages/help/zh_CN/guests.dita b/plugins/kimchi/ui/pages/help/zh_CN/guests.dita similarity index 100% rename from ui/pages/help/zh_CN/guests.dita rename to plugins/kimchi/ui/pages/help/zh_CN/guests.dita diff --git a/ui/pages/help/zh_CN/host.dita b/plugins/kimchi/ui/pages/help/zh_CN/host.dita similarity index 100% rename from ui/pages/help/zh_CN/host.dita rename to plugins/kimchi/ui/pages/help/zh_CN/host.dita diff --git a/ui/pages/help/zh_CN/network.dita b/plugins/kimchi/ui/pages/help/zh_CN/network.dita similarity index 100% rename from ui/pages/help/zh_CN/network.dita rename to plugins/kimchi/ui/pages/help/zh_CN/network.dita diff --git a/ui/pages/help/zh_CN/storage.dita b/plugins/kimchi/ui/pages/help/zh_CN/storage.dita similarity index 100% rename from ui/pages/help/zh_CN/storage.dita rename to plugins/kimchi/ui/pages/help/zh_CN/storage.dita diff --git a/ui/pages/help/zh_CN/templates.dita b/plugins/kimchi/ui/pages/help/zh_CN/templates.dita similarity index 100% rename from ui/pages/help/zh_CN/templates.dita rename to plugins/kimchi/ui/pages/help/zh_CN/templates.dita diff --git a/ui/pages/help/zh_TW/Makefile.am b/plugins/kimchi/ui/pages/help/zh_TW/Makefile.am similarity index 100% rename from ui/pages/help/zh_TW/Makefile.am rename to plugins/kimchi/ui/pages/help/zh_TW/Makefile.am diff --git a/ui/pages/help/zh_TW/guests.dita b/plugins/kimchi/ui/pages/help/zh_TW/guests.dita similarity index 100% rename from ui/pages/help/zh_TW/guests.dita rename to plugins/kimchi/ui/pages/help/zh_TW/guests.dita diff --git a/ui/pages/help/zh_TW/host.dita b/plugins/kimchi/ui/pages/help/zh_TW/host.dita similarity index 100% rename from ui/pages/help/zh_TW/host.dita rename to plugins/kimchi/ui/pages/help/zh_TW/host.dita diff --git a/ui/pages/help/zh_TW/network.dita b/plugins/kimchi/ui/pages/help/zh_TW/network.dita similarity index 100% rename from ui/pages/help/zh_TW/network.dita rename to plugins/kimchi/ui/pages/help/zh_TW/network.dita diff --git a/ui/pages/help/zh_TW/storage.dita b/plugins/kimchi/ui/pages/help/zh_TW/storage.dita similarity index 100% rename from ui/pages/help/zh_TW/storage.dita rename to plugins/kimchi/ui/pages/help/zh_TW/storage.dita diff --git a/ui/pages/help/zh_TW/templates.dita b/plugins/kimchi/ui/pages/help/zh_TW/templates.dita similarity index 100% rename from ui/pages/help/zh_TW/templates.dita rename to plugins/kimchi/ui/pages/help/zh_TW/templates.dita diff --git a/ui/pages/i18n.json.tmpl b/plugins/kimchi/ui/pages/i18n.json.tmpl similarity index 100% rename from ui/pages/i18n.json.tmpl rename to plugins/kimchi/ui/pages/i18n.json.tmpl diff --git a/ui/pages/report-add.html.tmpl b/plugins/kimchi/ui/pages/report-add.html.tmpl similarity index 100% rename from ui/pages/report-add.html.tmpl rename to plugins/kimchi/ui/pages/report-add.html.tmpl diff --git a/ui/pages/report-rename.html.tmpl b/plugins/kimchi/ui/pages/report-rename.html.tmpl similarity index 100% rename from ui/pages/report-rename.html.tmpl rename to plugins/kimchi/ui/pages/report-rename.html.tmpl diff --git a/ui/pages/repository-add.html.tmpl b/plugins/kimchi/ui/pages/repository-add.html.tmpl similarity index 100% rename from ui/pages/repository-add.html.tmpl rename to plugins/kimchi/ui/pages/repository-add.html.tmpl diff --git a/ui/pages/repository-edit.html.tmpl b/plugins/kimchi/ui/pages/repository-edit.html.tmpl similarity index 100% rename from ui/pages/repository-edit.html.tmpl rename to plugins/kimchi/ui/pages/repository-edit.html.tmpl diff --git a/ui/pages/storagepool-add-volume.html.tmpl b/plugins/kimchi/ui/pages/storagepool-add-volume.html.tmpl similarity index 100% rename from ui/pages/storagepool-add-volume.html.tmpl rename to plugins/kimchi/ui/pages/storagepool-add-volume.html.tmpl diff --git a/ui/pages/storagepool-add.html.tmpl b/plugins/kimchi/ui/pages/storagepool-add.html.tmpl similarity index 100% rename from ui/pages/storagepool-add.html.tmpl rename to plugins/kimchi/ui/pages/storagepool-add.html.tmpl diff --git a/ui/pages/tabs/Makefile.am b/plugins/kimchi/ui/pages/tabs/Makefile.am similarity index 100% rename from ui/pages/tabs/Makefile.am rename to plugins/kimchi/ui/pages/tabs/Makefile.am diff --git a/ui/pages/tabs/guests.html.tmpl b/plugins/kimchi/ui/pages/tabs/guests.html.tmpl similarity index 100% rename from ui/pages/tabs/guests.html.tmpl rename to plugins/kimchi/ui/pages/tabs/guests.html.tmpl diff --git a/ui/pages/tabs/host.html.tmpl b/plugins/kimchi/ui/pages/tabs/host.html.tmpl similarity index 100% rename from ui/pages/tabs/host.html.tmpl rename to plugins/kimchi/ui/pages/tabs/host.html.tmpl diff --git a/ui/pages/tabs/network.html.tmpl b/plugins/kimchi/ui/pages/tabs/network.html.tmpl similarity index 100% rename from ui/pages/tabs/network.html.tmpl rename to plugins/kimchi/ui/pages/tabs/network.html.tmpl diff --git a/ui/pages/tabs/storage.html.tmpl b/plugins/kimchi/ui/pages/tabs/storage.html.tmpl similarity index 100% rename from ui/pages/tabs/storage.html.tmpl rename to plugins/kimchi/ui/pages/tabs/storage.html.tmpl diff --git a/ui/pages/tabs/templates.html.tmpl b/plugins/kimchi/ui/pages/tabs/templates.html.tmpl similarity index 100% rename from ui/pages/tabs/templates.html.tmpl rename to plugins/kimchi/ui/pages/tabs/templates.html.tmpl diff --git a/ui/pages/template-add.html.tmpl b/plugins/kimchi/ui/pages/template-add.html.tmpl similarity index 100% rename from ui/pages/template-add.html.tmpl rename to plugins/kimchi/ui/pages/template-add.html.tmpl diff --git a/ui/pages/template-edit.html.tmpl b/plugins/kimchi/ui/pages/template-edit.html.tmpl similarity index 100% rename from ui/pages/template-edit.html.tmpl rename to plugins/kimchi/ui/pages/template-edit.html.tmpl diff --git a/ui/robots.txt b/plugins/kimchi/ui/robots.txt similarity index 100% rename from ui/robots.txt rename to plugins/kimchi/ui/robots.txt diff --git a/ui/spice-html5/Makefile.am b/plugins/kimchi/ui/spice-html5/Makefile.am similarity index 100% rename from ui/spice-html5/Makefile.am rename to plugins/kimchi/ui/spice-html5/Makefile.am diff --git a/ui/spice-html5/atKeynames.js b/plugins/kimchi/ui/spice-html5/atKeynames.js similarity index 100% rename from ui/spice-html5/atKeynames.js rename to plugins/kimchi/ui/spice-html5/atKeynames.js diff --git a/ui/spice-html5/bitmap.js b/plugins/kimchi/ui/spice-html5/bitmap.js similarity index 100% rename from ui/spice-html5/bitmap.js rename to plugins/kimchi/ui/spice-html5/bitmap.js diff --git a/ui/spice-html5/css/Makefile.am b/plugins/kimchi/ui/spice-html5/css/Makefile.am similarity index 100% rename from ui/spice-html5/css/Makefile.am rename to plugins/kimchi/ui/spice-html5/css/Makefile.am diff --git a/ui/spice-html5/css/spice.css b/plugins/kimchi/ui/spice-html5/css/spice.css similarity index 100% rename from ui/spice-html5/css/spice.css rename to plugins/kimchi/ui/spice-html5/css/spice.css diff --git a/ui/spice-html5/cursor.js b/plugins/kimchi/ui/spice-html5/cursor.js similarity index 100% rename from ui/spice-html5/cursor.js rename to plugins/kimchi/ui/spice-html5/cursor.js diff --git a/ui/spice-html5/display.js b/plugins/kimchi/ui/spice-html5/display.js similarity index 100% rename from ui/spice-html5/display.js rename to plugins/kimchi/ui/spice-html5/display.js diff --git a/ui/spice-html5/enums.js b/plugins/kimchi/ui/spice-html5/enums.js similarity index 100% rename from ui/spice-html5/enums.js rename to plugins/kimchi/ui/spice-html5/enums.js diff --git a/ui/spice-html5/inputs.js b/plugins/kimchi/ui/spice-html5/inputs.js similarity index 100% rename from ui/spice-html5/inputs.js rename to plugins/kimchi/ui/spice-html5/inputs.js diff --git a/ui/spice-html5/lz.js b/plugins/kimchi/ui/spice-html5/lz.js similarity index 100% rename from ui/spice-html5/lz.js rename to plugins/kimchi/ui/spice-html5/lz.js diff --git a/ui/spice-html5/main.js b/plugins/kimchi/ui/spice-html5/main.js similarity index 100% rename from ui/spice-html5/main.js rename to plugins/kimchi/ui/spice-html5/main.js diff --git a/ui/spice-html5/pages/Makefile.am b/plugins/kimchi/ui/spice-html5/pages/Makefile.am similarity index 100% rename from ui/spice-html5/pages/Makefile.am rename to plugins/kimchi/ui/spice-html5/pages/Makefile.am diff --git a/ui/spice-html5/pages/spice_auto.html b/plugins/kimchi/ui/spice-html5/pages/spice_auto.html similarity index 100% rename from ui/spice-html5/pages/spice_auto.html rename to plugins/kimchi/ui/spice-html5/pages/spice_auto.html diff --git a/ui/spice-html5/playback.js b/plugins/kimchi/ui/spice-html5/playback.js similarity index 100% rename from ui/spice-html5/playback.js rename to plugins/kimchi/ui/spice-html5/playback.js diff --git a/ui/spice-html5/png.js b/plugins/kimchi/ui/spice-html5/png.js similarity index 100% rename from ui/spice-html5/png.js rename to plugins/kimchi/ui/spice-html5/png.js diff --git a/ui/spice-html5/quic.js b/plugins/kimchi/ui/spice-html5/quic.js similarity index 100% rename from ui/spice-html5/quic.js rename to plugins/kimchi/ui/spice-html5/quic.js diff --git a/ui/spice-html5/resize.js b/plugins/kimchi/ui/spice-html5/resize.js similarity index 100% rename from ui/spice-html5/resize.js rename to plugins/kimchi/ui/spice-html5/resize.js diff --git a/ui/spice-html5/simulatecursor.js b/plugins/kimchi/ui/spice-html5/simulatecursor.js similarity index 100% rename from ui/spice-html5/simulatecursor.js rename to plugins/kimchi/ui/spice-html5/simulatecursor.js diff --git a/ui/spice-html5/spicearraybuffer.js b/plugins/kimchi/ui/spice-html5/spicearraybuffer.js similarity index 100% rename from ui/spice-html5/spicearraybuffer.js rename to plugins/kimchi/ui/spice-html5/spicearraybuffer.js diff --git a/ui/spice-html5/spiceconn.js b/plugins/kimchi/ui/spice-html5/spiceconn.js similarity index 100% rename from ui/spice-html5/spiceconn.js rename to plugins/kimchi/ui/spice-html5/spiceconn.js diff --git a/ui/spice-html5/spicedataview.js b/plugins/kimchi/ui/spice-html5/spicedataview.js similarity index 100% rename from ui/spice-html5/spicedataview.js rename to plugins/kimchi/ui/spice-html5/spicedataview.js diff --git a/ui/spice-html5/spicemsg.js b/plugins/kimchi/ui/spice-html5/spicemsg.js similarity index 100% rename from ui/spice-html5/spicemsg.js rename to plugins/kimchi/ui/spice-html5/spicemsg.js diff --git a/ui/spice-html5/spicetype.js b/plugins/kimchi/ui/spice-html5/spicetype.js similarity index 100% rename from ui/spice-html5/spicetype.js rename to plugins/kimchi/ui/spice-html5/spicetype.js diff --git a/ui/spice-html5/thirdparty/Makefile.am b/plugins/kimchi/ui/spice-html5/thirdparty/Makefile.am similarity index 100% rename from ui/spice-html5/thirdparty/Makefile.am rename to plugins/kimchi/ui/spice-html5/thirdparty/Makefile.am diff --git a/ui/spice-html5/thirdparty/jsbn.js b/plugins/kimchi/ui/spice-html5/thirdparty/jsbn.js similarity index 100% rename from ui/spice-html5/thirdparty/jsbn.js rename to plugins/kimchi/ui/spice-html5/thirdparty/jsbn.js diff --git a/ui/spice-html5/thirdparty/prng4.js b/plugins/kimchi/ui/spice-html5/thirdparty/prng4.js similarity index 100% rename from ui/spice-html5/thirdparty/prng4.js rename to plugins/kimchi/ui/spice-html5/thirdparty/prng4.js diff --git a/ui/spice-html5/thirdparty/rng.js b/plugins/kimchi/ui/spice-html5/thirdparty/rng.js similarity index 100% rename from ui/spice-html5/thirdparty/rng.js rename to plugins/kimchi/ui/spice-html5/thirdparty/rng.js diff --git a/ui/spice-html5/thirdparty/rsa.js b/plugins/kimchi/ui/spice-html5/thirdparty/rsa.js similarity index 100% rename from ui/spice-html5/thirdparty/rsa.js rename to plugins/kimchi/ui/spice-html5/thirdparty/rsa.js diff --git a/ui/spice-html5/thirdparty/sha1.js b/plugins/kimchi/ui/spice-html5/thirdparty/sha1.js similarity index 100% rename from ui/spice-html5/thirdparty/sha1.js rename to plugins/kimchi/ui/spice-html5/thirdparty/sha1.js diff --git a/ui/spice-html5/ticket.js b/plugins/kimchi/ui/spice-html5/ticket.js similarity index 100% rename from ui/spice-html5/ticket.js rename to plugins/kimchi/ui/spice-html5/ticket.js diff --git a/ui/spice-html5/utils.js b/plugins/kimchi/ui/spice-html5/utils.js similarity index 100% rename from ui/spice-html5/utils.js rename to plugins/kimchi/ui/spice-html5/utils.js diff --git a/ui/spice-html5/webm.js b/plugins/kimchi/ui/spice-html5/webm.js similarity index 100% rename from ui/spice-html5/webm.js rename to plugins/kimchi/ui/spice-html5/webm.js diff --git a/ui/spice-html5/wire.js b/plugins/kimchi/ui/spice-html5/wire.js similarity index 100% rename from ui/spice-html5/wire.js rename to plugins/kimchi/ui/spice-html5/wire.js diff --git a/src/kimchi/vmtemplate.py b/plugins/kimchi/vmtemplate.py similarity index 100% rename from src/kimchi/vmtemplate.py rename to plugins/kimchi/vmtemplate.py diff --git a/src/kimchi/xmlutils/Makefile.am b/plugins/kimchi/xmlutils/Makefile.am similarity index 100% rename from src/kimchi/xmlutils/Makefile.am rename to plugins/kimchi/xmlutils/Makefile.am diff --git a/src/kimchi/xmlutils/__init__.py b/plugins/kimchi/xmlutils/__init__.py similarity index 100% rename from src/kimchi/xmlutils/__init__.py rename to plugins/kimchi/xmlutils/__init__.py diff --git a/src/kimchi/xmlutils/cpu.py b/plugins/kimchi/xmlutils/cpu.py similarity index 100% rename from src/kimchi/xmlutils/cpu.py rename to plugins/kimchi/xmlutils/cpu.py diff --git a/src/kimchi/xmlutils/disk.py b/plugins/kimchi/xmlutils/disk.py similarity index 100% rename from src/kimchi/xmlutils/disk.py rename to plugins/kimchi/xmlutils/disk.py diff --git a/src/kimchi/xmlutils/graphics.py b/plugins/kimchi/xmlutils/graphics.py similarity index 100% rename from src/kimchi/xmlutils/graphics.py rename to plugins/kimchi/xmlutils/graphics.py diff --git a/src/kimchi/xmlutils/interface.py b/plugins/kimchi/xmlutils/interface.py similarity index 100% rename from src/kimchi/xmlutils/interface.py rename to plugins/kimchi/xmlutils/interface.py diff --git a/src/kimchi/xmlutils/network.py b/plugins/kimchi/xmlutils/network.py similarity index 100% rename from src/kimchi/xmlutils/network.py rename to plugins/kimchi/xmlutils/network.py diff --git a/src/kimchi/xmlutils/qemucmdline.py b/plugins/kimchi/xmlutils/qemucmdline.py similarity index 100% rename from src/kimchi/xmlutils/qemucmdline.py rename to plugins/kimchi/xmlutils/qemucmdline.py diff --git a/src/kimchi/yumparser.py b/plugins/kimchi/yumparser.py similarity index 100% rename from src/kimchi/yumparser.py rename to plugins/kimchi/yumparser.py -- 1.7.1

This patch only renames the directory src/kimchi to src/wok. These files will compose Wok, the web server. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- src/{kimchi => wok}/Makefile.am | 0 src/{kimchi => wok}/__init__.py | 0 src/{kimchi => wok}/asynctask.py | 0 src/{kimchi => wok}/auth.py | 0 src/{kimchi => wok}/basemodel.py | 0 src/{kimchi => wok}/cachebust.py | 0 src/{kimchi => wok}/config.py.in | 0 src/{kimchi => wok}/control/base.py | 0 src/{kimchi => wok}/control/plugins.py | 0 src/{kimchi => wok}/control/utils.py | 0 src/{kimchi => wok}/exception.py | 0 src/{kimchi => wok}/model/plugins.py | 0 src/{kimchi => wok}/netinfo.py | 0 src/{kimchi => wok}/network.py | 0 src/{kimchi => wok}/objectstore.py | 0 src/{kimchi => wok}/proxy.py | 0 src/{kimchi => wok}/rollbackcontext.py | 0 src/{kimchi => wok}/root.py | 0 src/{kimchi => wok}/server.py | 0 src/{kimchi => wok}/sslcert.py | 0 src/{kimchi => wok}/template.py | 0 src/{kimchi => wok}/utils.py | 0 src/{kimchi => wok}/vnc.py | 0 src/{kimchi => wok}/xmlutils/utils.py | 0 24 files changed, 0 insertions(+), 0 deletions(-) rename src/{kimchi => wok}/Makefile.am (100%) rename src/{kimchi => wok}/__init__.py (100%) rename src/{kimchi => wok}/asynctask.py (100%) rename src/{kimchi => wok}/auth.py (100%) rename src/{kimchi => wok}/basemodel.py (100%) rename src/{kimchi => wok}/cachebust.py (100%) rename src/{kimchi => wok}/config.py.in (100%) rename src/{kimchi => wok}/control/base.py (100%) rename src/{kimchi => wok}/control/plugins.py (100%) rename src/{kimchi => wok}/control/utils.py (100%) rename src/{kimchi => wok}/exception.py (100%) rename src/{kimchi => wok}/model/plugins.py (100%) rename src/{kimchi => wok}/netinfo.py (100%) rename src/{kimchi => wok}/network.py (100%) rename src/{kimchi => wok}/objectstore.py (100%) rename src/{kimchi => wok}/proxy.py (100%) rename src/{kimchi => wok}/rollbackcontext.py (100%) rename src/{kimchi => wok}/root.py (100%) rename src/{kimchi => wok}/server.py (100%) rename src/{kimchi => wok}/sslcert.py (100%) rename src/{kimchi => wok}/template.py (100%) rename src/{kimchi => wok}/utils.py (100%) rename src/{kimchi => wok}/vnc.py (100%) rename src/{kimchi => wok}/xmlutils/utils.py (100%) diff --git a/src/kimchi/Makefile.am b/src/wok/Makefile.am similarity index 100% rename from src/kimchi/Makefile.am rename to src/wok/Makefile.am diff --git a/src/kimchi/__init__.py b/src/wok/__init__.py similarity index 100% rename from src/kimchi/__init__.py rename to src/wok/__init__.py diff --git a/src/kimchi/asynctask.py b/src/wok/asynctask.py similarity index 100% rename from src/kimchi/asynctask.py rename to src/wok/asynctask.py diff --git a/src/kimchi/auth.py b/src/wok/auth.py similarity index 100% rename from src/kimchi/auth.py rename to src/wok/auth.py diff --git a/src/kimchi/basemodel.py b/src/wok/basemodel.py similarity index 100% rename from src/kimchi/basemodel.py rename to src/wok/basemodel.py diff --git a/src/kimchi/cachebust.py b/src/wok/cachebust.py similarity index 100% rename from src/kimchi/cachebust.py rename to src/wok/cachebust.py diff --git a/src/kimchi/config.py.in b/src/wok/config.py.in similarity index 100% rename from src/kimchi/config.py.in rename to src/wok/config.py.in diff --git a/src/kimchi/control/base.py b/src/wok/control/base.py similarity index 100% rename from src/kimchi/control/base.py rename to src/wok/control/base.py diff --git a/src/kimchi/control/plugins.py b/src/wok/control/plugins.py similarity index 100% rename from src/kimchi/control/plugins.py rename to src/wok/control/plugins.py diff --git a/src/kimchi/control/utils.py b/src/wok/control/utils.py similarity index 100% rename from src/kimchi/control/utils.py rename to src/wok/control/utils.py diff --git a/src/kimchi/exception.py b/src/wok/exception.py similarity index 100% rename from src/kimchi/exception.py rename to src/wok/exception.py diff --git a/src/kimchi/model/plugins.py b/src/wok/model/plugins.py similarity index 100% rename from src/kimchi/model/plugins.py rename to src/wok/model/plugins.py diff --git a/src/kimchi/netinfo.py b/src/wok/netinfo.py similarity index 100% rename from src/kimchi/netinfo.py rename to src/wok/netinfo.py diff --git a/src/kimchi/network.py b/src/wok/network.py similarity index 100% rename from src/kimchi/network.py rename to src/wok/network.py diff --git a/src/kimchi/objectstore.py b/src/wok/objectstore.py similarity index 100% rename from src/kimchi/objectstore.py rename to src/wok/objectstore.py diff --git a/src/kimchi/proxy.py b/src/wok/proxy.py similarity index 100% rename from src/kimchi/proxy.py rename to src/wok/proxy.py diff --git a/src/kimchi/rollbackcontext.py b/src/wok/rollbackcontext.py similarity index 100% rename from src/kimchi/rollbackcontext.py rename to src/wok/rollbackcontext.py diff --git a/src/kimchi/root.py b/src/wok/root.py similarity index 100% rename from src/kimchi/root.py rename to src/wok/root.py diff --git a/src/kimchi/server.py b/src/wok/server.py similarity index 100% rename from src/kimchi/server.py rename to src/wok/server.py diff --git a/src/kimchi/sslcert.py b/src/wok/sslcert.py similarity index 100% rename from src/kimchi/sslcert.py rename to src/wok/sslcert.py diff --git a/src/kimchi/template.py b/src/wok/template.py similarity index 100% rename from src/kimchi/template.py rename to src/wok/template.py diff --git a/src/kimchi/utils.py b/src/wok/utils.py similarity index 100% rename from src/kimchi/utils.py rename to src/wok/utils.py diff --git a/src/kimchi/vnc.py b/src/wok/vnc.py similarity index 100% rename from src/kimchi/vnc.py rename to src/wok/vnc.py diff --git a/src/kimchi/xmlutils/utils.py b/src/wok/xmlutils/utils.py similarity index 100% rename from src/kimchi/xmlutils/utils.py rename to src/wok/xmlutils/utils.py -- 1.7.1

Renames the remaining kimchi-named files in wok to avoid confusion. No code changes. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- ...pstart.conf.debian => wokd-upstart.conf.debian} | 0 ...pstart.conf.fedora => wokd-upstart.conf.fedora} | 0 ...{kimchid.service.fedora => wokd.service.fedora} | 0 contrib/{kimchid.sysvinit => wokd.sysvinit} | 0 docs/{kimchid.8.in => wokd.8.in} | 0 src/nginx/{kimchi.conf.in => wok.conf.in} | 0 src/{kimchi.conf.in => wok.conf.in} | 0 src/{kimchid.in => wokd.in} | 0 ui/js/src/{kimchi.cookie.js => wok.cookie.js} | 0 ui/js/src/{kimchi.lang.js => wok.lang.js} | 0 ui/js/src/{kimchi.login.js => wok.login.js} | 0 ui/js/src/{kimchi.main.js => wok.main.js} | 0 ui/js/src/{kimchi.message.js => wok.message.js} | 0 ui/js/src/{kimchi.object.js => wok.object.js} | 0 ui/js/src/{kimchi.popable.js => wok.popable.js} | 0 ui/js/src/{kimchi.string.js => wok.string.js} | 0 .../{kimchi.substitute.js => wok.substitute.js} | 0 ui/js/src/{kimchi.topic.js => wok.topic.js} | 0 ui/js/src/{kimchi.user.js => wok.user.js} | 0 ui/js/src/{kimchi.utils.js => wok.utils.js} | 0 ui/js/src/{kimchi.window.js => wok.window.js} | 0 ui/pages/{kimchi-ui.html.tmpl => wok-ui.html.tmpl} | 0 22 files changed, 0 insertions(+), 0 deletions(-) rename contrib/{kimchid-upstart.conf.debian => wokd-upstart.conf.debian} (100%) rename contrib/{kimchid-upstart.conf.fedora => wokd-upstart.conf.fedora} (100%) rename contrib/{kimchid.service.fedora => wokd.service.fedora} (100%) rename contrib/{kimchid.sysvinit => wokd.sysvinit} (100%) rename docs/{kimchid.8.in => wokd.8.in} (100%) rename src/nginx/{kimchi.conf.in => wok.conf.in} (100%) rename src/{kimchi.conf.in => wok.conf.in} (100%) rename src/{kimchid.in => wokd.in} (100%) rename ui/js/src/{kimchi.cookie.js => wok.cookie.js} (100%) rename ui/js/src/{kimchi.lang.js => wok.lang.js} (100%) rename ui/js/src/{kimchi.login.js => wok.login.js} (100%) rename ui/js/src/{kimchi.main.js => wok.main.js} (100%) rename ui/js/src/{kimchi.message.js => wok.message.js} (100%) rename ui/js/src/{kimchi.object.js => wok.object.js} (100%) rename ui/js/src/{kimchi.popable.js => wok.popable.js} (100%) rename ui/js/src/{kimchi.string.js => wok.string.js} (100%) rename ui/js/src/{kimchi.substitute.js => wok.substitute.js} (100%) rename ui/js/src/{kimchi.topic.js => wok.topic.js} (100%) rename ui/js/src/{kimchi.user.js => wok.user.js} (100%) rename ui/js/src/{kimchi.utils.js => wok.utils.js} (100%) rename ui/js/src/{kimchi.window.js => wok.window.js} (100%) rename ui/pages/{kimchi-ui.html.tmpl => wok-ui.html.tmpl} (100%) diff --git a/contrib/kimchid-upstart.conf.debian b/contrib/wokd-upstart.conf.debian similarity index 100% rename from contrib/kimchid-upstart.conf.debian rename to contrib/wokd-upstart.conf.debian diff --git a/contrib/kimchid-upstart.conf.fedora b/contrib/wokd-upstart.conf.fedora similarity index 100% rename from contrib/kimchid-upstart.conf.fedora rename to contrib/wokd-upstart.conf.fedora diff --git a/contrib/kimchid.service.fedora b/contrib/wokd.service.fedora similarity index 100% rename from contrib/kimchid.service.fedora rename to contrib/wokd.service.fedora diff --git a/contrib/kimchid.sysvinit b/contrib/wokd.sysvinit similarity index 100% rename from contrib/kimchid.sysvinit rename to contrib/wokd.sysvinit diff --git a/docs/kimchid.8.in b/docs/wokd.8.in similarity index 100% rename from docs/kimchid.8.in rename to docs/wokd.8.in diff --git a/src/nginx/kimchi.conf.in b/src/nginx/wok.conf.in similarity index 100% rename from src/nginx/kimchi.conf.in rename to src/nginx/wok.conf.in diff --git a/src/kimchi.conf.in b/src/wok.conf.in similarity index 100% rename from src/kimchi.conf.in rename to src/wok.conf.in diff --git a/src/kimchid.in b/src/wokd.in similarity index 100% rename from src/kimchid.in rename to src/wokd.in diff --git a/ui/js/src/kimchi.cookie.js b/ui/js/src/wok.cookie.js similarity index 100% rename from ui/js/src/kimchi.cookie.js rename to ui/js/src/wok.cookie.js diff --git a/ui/js/src/kimchi.lang.js b/ui/js/src/wok.lang.js similarity index 100% rename from ui/js/src/kimchi.lang.js rename to ui/js/src/wok.lang.js diff --git a/ui/js/src/kimchi.login.js b/ui/js/src/wok.login.js similarity index 100% rename from ui/js/src/kimchi.login.js rename to ui/js/src/wok.login.js diff --git a/ui/js/src/kimchi.main.js b/ui/js/src/wok.main.js similarity index 100% rename from ui/js/src/kimchi.main.js rename to ui/js/src/wok.main.js diff --git a/ui/js/src/kimchi.message.js b/ui/js/src/wok.message.js similarity index 100% rename from ui/js/src/kimchi.message.js rename to ui/js/src/wok.message.js diff --git a/ui/js/src/kimchi.object.js b/ui/js/src/wok.object.js similarity index 100% rename from ui/js/src/kimchi.object.js rename to ui/js/src/wok.object.js diff --git a/ui/js/src/kimchi.popable.js b/ui/js/src/wok.popable.js similarity index 100% rename from ui/js/src/kimchi.popable.js rename to ui/js/src/wok.popable.js diff --git a/ui/js/src/kimchi.string.js b/ui/js/src/wok.string.js similarity index 100% rename from ui/js/src/kimchi.string.js rename to ui/js/src/wok.string.js diff --git a/ui/js/src/kimchi.substitute.js b/ui/js/src/wok.substitute.js similarity index 100% rename from ui/js/src/kimchi.substitute.js rename to ui/js/src/wok.substitute.js diff --git a/ui/js/src/kimchi.topic.js b/ui/js/src/wok.topic.js similarity index 100% rename from ui/js/src/kimchi.topic.js rename to ui/js/src/wok.topic.js diff --git a/ui/js/src/kimchi.user.js b/ui/js/src/wok.user.js similarity index 100% rename from ui/js/src/kimchi.user.js rename to ui/js/src/wok.user.js diff --git a/ui/js/src/kimchi.utils.js b/ui/js/src/wok.utils.js similarity index 100% rename from ui/js/src/kimchi.utils.js rename to ui/js/src/wok.utils.js diff --git a/ui/js/src/kimchi.window.js b/ui/js/src/wok.window.js similarity index 100% rename from ui/js/src/kimchi.window.js rename to ui/js/src/wok.window.js diff --git a/ui/pages/kimchi-ui.html.tmpl b/ui/pages/wok-ui.html.tmpl similarity index 100% rename from ui/pages/kimchi-ui.html.tmpl rename to ui/pages/wok-ui.html.tmpl -- 1.7.1

- Add UI files to wok In the future, wok may have its own UI files. Since it is not the focus of this patchset, just duplicate them for now. - Add i18n files for wok The error messages will be split up in a future patch. - Add packaging specs to wok Copies respective plugins/kimchi/contrib counterparts. - Add back necessary __init__.py and Makefile.am files No code changes in this patch, only copies. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- VERSION | 1 + contrib/DEBIAN/Makefile.am | 17 + contrib/DEBIAN/control.in | 36 + contrib/Makefile.am | 38 + contrib/make-deb.sh.in | 15 + contrib/wok.spec.fedora.in | 189 ++ contrib/wok.spec.suse.in | 120 + docs/Makefile.am | 31 + po/LINGUAS | 11 + po/Makefile.in.in | 398 ++++ po/Makevars | 41 + po/POTFILES.in | 4 + po/de_DE.po | 2320 +++++++++++++++++++ po/en_US.po | 2156 ++++++++++++++++++ po/es_ES.po | 2337 +++++++++++++++++++ po/fr_FR.po | 2360 +++++++++++++++++++ po/gen-pot.in | 9 + po/it_IT.po | 2306 +++++++++++++++++++ po/ja_JP.po | 2301 +++++++++++++++++++ po/ko_KR.po | 2228 ++++++++++++++++++ po/pt_BR.po | 2370 ++++++++++++++++++++ po/ru_RU.po | 2230 ++++++++++++++++++ po/wok.pot | 2156 ++++++++++++++++++ po/zh_CN.po | 2196 ++++++++++++++++++ po/zh_TW.po | 2170 ++++++++++++++++++ src/wok/control/Makefile.am | 27 + src/wok/control/__init__.py | 26 + src/wok/i18n.py | 354 +++ src/wok/model/Makefile.am | 25 + src/wok/model/__init__.py | 18 + src/wok/xmlutils/Makefile.am | 25 + src/wok/xmlutils/__init__.py | 18 + ui/css/Makefile.am | 26 + ui/css/theme-default/button.css | 501 +++++ ui/css/theme-default/message.css | 135 ++ ui/css/theme-default/popover.css | 124 + ui/images/Makefile.am | 22 + ui/images/logo.ico | Bin 0 -> 1214 bytes ui/images/theme-default/Makefile.am | 20 + ui/images/theme-default/logo-white.png | Bin 0 -> 9879 bytes ui/js/Makefile.am | 27 + ui/libs/Makefile.am | 22 + ui/libs/themes/Makefile.am | 18 + ui/libs/themes/base/Makefile.am | 22 + ui/libs/themes/base/images/Makefile.am | 20 + ui/libs/themes/base/images/animated-overlay.gif | Bin 0 -> 1738 bytes .../base/images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 0 -> 180 bytes .../base/images/ui-bg_flat_75_ffffff_40x100.png | Bin 0 -> 178 bytes .../base/images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 0 -> 120 bytes .../base/images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 105 bytes .../base/images/ui-bg_glass_75_dadada_1x400.png | Bin 0 -> 111 bytes .../base/images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 0 -> 110 bytes .../base/images/ui-bg_glass_95_fef1ec_1x400.png | Bin 0 -> 119 bytes .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 0 -> 101 bytes .../themes/base/images/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes .../themes/base/images/ui-icons_2e83ff_256x240.png | Bin 0 -> 4369 bytes .../themes/base/images/ui-icons_454545_256x240.png | Bin 0 -> 4369 bytes .../themes/base/images/ui-icons_888888_256x240.png | Bin 0 -> 4369 bytes .../themes/base/images/ui-icons_cd0a0a_256x240.png | Bin 0 -> 4369 bytes ui/pages/Makefile.am | 22 + ui/pages/error.html.tmpl | 69 + ui/pages/i18n.json.tmpl | 187 ++ ui/robots.txt | 2 + 63 files changed, 29750 insertions(+), 0 deletions(-) create mode 100644 VERSION create mode 100644 contrib/DEBIAN/Makefile.am create mode 100644 contrib/DEBIAN/control.in create mode 100644 contrib/Makefile.am create mode 100644 contrib/make-deb.sh.in create mode 100644 contrib/wok.spec.fedora.in create mode 100644 contrib/wok.spec.suse.in create mode 100644 docs/Makefile.am create mode 100644 po/LINGUAS create mode 100644 po/Makefile.in.in create mode 100644 po/Makevars create mode 100644 po/POTFILES.in create mode 100644 po/de_DE.po create mode 100644 po/en_US.po create mode 100644 po/es_ES.po create mode 100644 po/fr_FR.po create mode 100644 po/gen-pot.in create mode 100644 po/it_IT.po create mode 100644 po/ja_JP.po create mode 100644 po/ko_KR.po create mode 100644 po/pt_BR.po create mode 100644 po/ru_RU.po create mode 100755 po/wok.pot create mode 100644 po/zh_CN.po create mode 100644 po/zh_TW.po create mode 100644 src/wok/control/Makefile.am create mode 100644 src/wok/control/__init__.py create mode 100644 src/wok/i18n.py create mode 100644 src/wok/model/Makefile.am create mode 100644 src/wok/model/__init__.py create mode 100644 src/wok/xmlutils/Makefile.am create mode 100644 src/wok/xmlutils/__init__.py create mode 100644 ui/css/Makefile.am create mode 100644 ui/css/theme-default/button.css create mode 100644 ui/css/theme-default/message.css create mode 100644 ui/css/theme-default/popover.css create mode 100644 ui/images/Makefile.am create mode 100644 ui/images/logo.ico create mode 100644 ui/images/theme-default/Makefile.am create mode 100644 ui/images/theme-default/logo-white.png create mode 100644 ui/js/Makefile.am create mode 100644 ui/libs/Makefile.am create mode 100644 ui/libs/themes/Makefile.am create mode 100644 ui/libs/themes/base/Makefile.am create mode 100644 ui/libs/themes/base/images/Makefile.am create mode 100644 ui/libs/themes/base/images/animated-overlay.gif create mode 100644 ui/libs/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png create mode 100644 ui/libs/themes/base/images/ui-bg_flat_75_ffffff_40x100.png create mode 100644 ui/libs/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png create mode 100644 ui/libs/themes/base/images/ui-bg_glass_65_ffffff_1x400.png create mode 100644 ui/libs/themes/base/images/ui-bg_glass_75_dadada_1x400.png create mode 100644 ui/libs/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png create mode 100644 ui/libs/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png create mode 100644 ui/libs/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png create mode 100644 ui/libs/themes/base/images/ui-icons_222222_256x240.png create mode 100644 ui/libs/themes/base/images/ui-icons_2e83ff_256x240.png create mode 100644 ui/libs/themes/base/images/ui-icons_454545_256x240.png create mode 100644 ui/libs/themes/base/images/ui-icons_888888_256x240.png create mode 100644 ui/libs/themes/base/images/ui-icons_cd0a0a_256x240.png create mode 100644 ui/pages/Makefile.am create mode 100644 ui/pages/error.html.tmpl create mode 100644 ui/pages/i18n.json.tmpl create mode 100644 ui/robots.txt diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..347f583 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.4.1 diff --git a/contrib/DEBIAN/Makefile.am b/contrib/DEBIAN/Makefile.am new file mode 100644 index 0000000..ca89552 --- /dev/null +++ b/contrib/DEBIAN/Makefile.am @@ -0,0 +1,17 @@ +# Copyright IBM Corp, 2013 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +CLEANFILES = control diff --git a/contrib/DEBIAN/control.in b/contrib/DEBIAN/control.in new file mode 100644 index 0000000..a288e9b --- /dev/null +++ b/contrib/DEBIAN/control.in @@ -0,0 +1,36 @@ +Package: @PACKAGE_NAME@ +Version: @PACKAGE_VERSION@ +Section: base +Priority: optional +Architecture: all +Depends: python-cherrypy3 (>= 3.2.0), + python-cheetah, + python-imaging, + python-configobj, + websockify, + novnc, + python-jsonschema (>= 1.3.0), + python-libvirt, + gettext, + libvirt-bin, + nfs-common, + python-m2crypto, + qemu-kvm, + python-pam, + python-parted, + python-psutil (>= 0.6.0), + python-ethtool, + sosreport, + python-ipaddr, + python-lxml, + open-iscsi, + nginx, + python-guestfs, + python-ldap, + libguestfs-tools, + spice-html5 +Build-Depends: libxslt, + openssl, + python-lxml +Maintainer: Aline Manera <alinefm@br.ibm.com> +Description: Kimchi web server diff --git a/contrib/Makefile.am b/contrib/Makefile.am new file mode 100644 index 0000000..393306f --- /dev/null +++ b/contrib/Makefile.am @@ -0,0 +1,38 @@ +# Copyright IBM Corp, 2013 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +SUBDIRS = DEBIAN + +EXTRA_DIST = \ + check_i18n.py \ + kimchid.sysvinit \ + kimchid.service.fedora \ + kimchi.spec.fedora.in \ + kimchid-upstart.conf.debian \ + kimchid-upstart.conf.fedora \ + make-deb.sh.in \ + $(NULL) + +make-deb.sh: make-deb.sh.in $(top_builddir)/config.status + $(AM_V_GEN)sed \ + -e 's|[@]PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \ + -e 's|[@]PACKAGE_RELEASE[@]|$(PACKAGE_RELEASE)|g' \ + < $< > $@-t && \ + chmod a+x $@-t && \ + mv $@-t $@ +BUILT_SOURCES = make-deb.sh + +CLEANFILES = kimchi.spec.fedora kimchi.spec.suse kimchi.spec make-deb.sh diff --git a/contrib/make-deb.sh.in b/contrib/make-deb.sh.in new file mode 100644 index 0000000..5a6e56a --- /dev/null +++ b/contrib/make-deb.sh.in @@ -0,0 +1,15 @@ +#!/bin/bash + +VERSION="@PACKAGE_VERSION@" +RELEASE="@PACKAGE_RELEASE@" + +if [ ! -f configure ]; then + echo "Please run this script from the top of the package tree" + exit 1 +fi + +TMPDIR=`mktemp -d` + +make DESTDIR=$TMPDIR install-deb +dpkg-deb -b $TMPDIR kimchi-${VERSION}-${RELEASE}.noarch.deb +rm -rf $TMPDIR diff --git a/contrib/wok.spec.fedora.in b/contrib/wok.spec.fedora.in new file mode 100644 index 0000000..183fd43 --- /dev/null +++ b/contrib/wok.spec.fedora.in @@ -0,0 +1,189 @@ +Name: kimchi +Version: @PACKAGE_VERSION@ +Release: @PACKAGE_RELEASE@%{?dist} +Summary: Kimchi server application +BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release} +BuildArch: noarch +Group: System Environment/Base +License: LGPL/ASL2 +Source0: %{name}-%{version}.tar.gz +Requires: qemu-kvm +Requires: gettext-devel +Requires: libvirt +Requires: libvirt-python +Requires: libvirt-daemon-config-network +Requires: python-cherrypy >= 3.2.0 +Requires: python-cheetah +Requires: python-websockify +Requires: python-configobj +Requires: novnc +Requires: m2crypto +Requires: python-imaging +Requires: PyPAM +Requires: pyparted +Requires: python-psutil >= 0.6.0 +Requires: python-jsonschema >= 1.3.0 +Requires: python-ethtool +Requires: sos +Requires: python-ipaddr +Requires: python-lxml +Requires: nfs-utils +Requires: nginx +Requires: iscsi-initiator-utils +Requires: python-ldap +Requires: python-libguestfs +Requires: libguestfs-tools +BuildRequires: libxslt +BuildRequires: openssl +BuildRequires: python-lxml + +%if 0%{?rhel} >= 6 || 0%{?fedora} >= 19 +Requires: spice-html5 +%endif + +%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7 +%global with_systemd 1 +%endif + +%if 0%{?rhel} == 6 +Requires: python-ordereddict +Requires: python-imaging +BuildRequires: python-unittest2 +%endif + +%if 0%{?with_systemd} +Requires: systemd +Requires: firewalld +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd +%endif + +%if 0%{?with_systemd} +BuildRequires: systemd-units +%endif + +%description +Web server application to manage KVM/Qemu virtual machines + + +%prep +%setup + + +%build +%if 0%{?rhel} >= 6 || 0%{?fedora} >= 19 +%configure +%else +%configure --with-spice-html5 +%endif +make + + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} install + +%if 0%{?with_systemd} + +%endif + +%if 0%{?rhel} == 6 +# Install the upstart script +install -Dm 0755 contrib/kimchid-upstart.conf.fedora %{buildroot}/etc/init/kimchid.conf +%endif +%if 0%{?rhel} == 5 +# Install the SysV init scripts +install -Dm 0755 contrib/kimchid.sysvinit %{buildroot}%{_initrddir}/kimchid +%endif + +%post +if [ $1 -eq 1 ] ; then + /bin/systemctl enable kimchid.service >/dev/null 2>&1 || : + # Initial installation + /bin/systemctl daemon-reload >/dev/null 2>&1 || : +fi + + +%preun + +if [ $1 -eq 0 ] ; then + # Package removal, not upgrade + /bin/systemctl --no-reload disable kimchid.service > /dev/null 2>&1 || : + /bin/systemctl stop kimchid.service > /dev/null 2>&1 || : +fi + +exit 0 + + +%postun +if [ "$1" -ge 1 ] ; then + /bin/systemctl try-restart kimchid.service >/dev/null 2>&1 || : +fi +exit 0 + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%attr(-,root,root) +%{_bindir}/kimchid +%{python_sitelib}/kimchi/*.py* +%{python_sitelib}/kimchi/control/*.py* +%{python_sitelib}/kimchi/control/vm/*.py* +%{python_sitelib}/kimchi/model/*.py* +%{python_sitelib}/kimchi/xmlutils/*.py* +%{python_sitelib}/kimchi/API.json +%{python_sitelib}/kimchi/plugins/*.py* +%{python_sitelib}/kimchi/ +%{_datadir}/kimchi/doc/API.md +%{_datadir}/kimchi/doc/README.md +%{_datadir}/kimchi/doc/README-federation.md +%{_datadir}/kimchi/doc/kimchi-guest.png +%{_datadir}/kimchi/doc/kimchi-templates.png +%{_prefix}/share/locale/*/LC_MESSAGES/kimchi.mo +%{_datadir}/kimchi/config/ui/*.xml +%{_datadir}/kimchi/ui/ +%{_datadir}/kimchi +%{_sysconfdir}/nginx/conf.d/kimchi.conf.in +%{_sysconfdir}/nginx/conf.d/kimchi.conf +%{_sysconfdir}/kimchi/kimchi.conf +%{_sysconfdir}/kimchi/template.conf +%{_sysconfdir}/kimchi/distros.d/debian.json +%{_sysconfdir}/kimchi/distros.d/fedora.json +%{_sysconfdir}/kimchi/distros.d/opensuse.json +%{_sysconfdir}/kimchi/distros.d/ubuntu.json +%{_sysconfdir}/kimchi/distros.d/gentoo.json +%{_sysconfdir}/kimchi/ +%{_sharedstatedir}/kimchi/debugreports/ +%{_sharedstatedir}/kimchi/screenshots/ +%{_sharedstatedir}/kimchi/vnc-tokens/ +%{_sharedstatedir}/kimchi/isos/ +%{_sharedstatedir}/kimchi/ +%{_localstatedir}/log/kimchi/* +%{_localstatedir}/log/kimchi/ +%{_mandir}/man8/kimchid.8.gz + +%if 0%{?with_systemd} +%{_unitdir}/kimchid.service +%{_prefix}/lib/firewalld/services/kimchid.xml +%endif +%if 0%{?rhel} == 6 +/etc/init/kimchid.conf +%endif +%if 0%{?rhel} == 5 +%{_initrddir}/kimchid +%endif + +%changelog +* Thu Feb 26 2015 Frédéric Bonnard <frediz@linux.vnet.ibm.com> 1.4.0 +- Add man page for kimchid + +* Tue Feb 11 2014 Crístian Viana <vianac@linux.vnet.ibm.com> 1.1.0 +- Add help pages and XSLT dependency + +* Tue Jul 16 2013 Adam Litke <agl@us.ibm.com> 0.1.0-1 +- Adapted for autotools build + +* Thu Apr 04 2013 Aline Manera <alinefm@br.ibm.com> 0.0-1 +- First build diff --git a/contrib/wok.spec.suse.in b/contrib/wok.spec.suse.in new file mode 100644 index 0000000..fa55cc5 --- /dev/null +++ b/contrib/wok.spec.suse.in @@ -0,0 +1,120 @@ +Name: kimchi +Version: @PACKAGE_VERSION@ +Release: @PACKAGE_RELEASE@%{?dist} +Summary: Kimchi server application +BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release} +BuildArch: noarch +Group: System Environment/Base +License: LGPL/ASL2 +Source0: %{name}-%{version}.tar.gz +Requires: kvm +Requires: gettext-tools +Requires: libvirt +Requires: libvirt-python +Requires: libvirt-daemon-config-network +Requires: python-CherryPy >= 3.2.0 +Requires: python-Cheetah +Requires: python-websockify +Requires: python-configobj +Requires: novnc +Requires: python-imaging +Requires: python-M2Crypto +Requires: python-pam +Requires: python-parted +Requires: python-psutil >= 0.6.0 +Requires: python-jsonschema >= 1.3.0 +Requires: python-ethtool +Requires: python-ipaddr +Requires: python-ldap +Requires: python-lxml +Requires: python-xml +Requires: nfs-client +Requires: nginx +Requires: open-iscsi +Requires: python-libguestfs +Requires: guestfs-tools +BuildRequires: libxslt-tools +BuildRequires: openssl +BuildRequires: python-lxml + +%if 0%{?sles_version} == 11 +Requires: python-ordereddict +%endif + +%description +Web server application to manage KVM/Qemu virtual machines + +%prep +%setup + +%build +%configure --with-spice-html5 +make + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} install + +%post +chkconfig kimchid on + +%preun +service kimchid stop + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%attr(-,root,root) +%{_bindir}/kimchid +%{python_sitelib}/kimchi/*.py* +%{python_sitelib}/kimchi/control/*.py* +%{python_sitelib}/kimchi/control/vm/*.py* +%{python_sitelib}/kimchi/model/*.py* +%{python_sitelib}/kimchi/xmlutils/*.py* +%{python_sitelib}/kimchi/API.json +%{python_sitelib}/kimchi/plugins/*.py* +%{python_sitelib}/kimchi/ +%{_datadir}/kimchi/doc/API.md +%{_datadir}/kimchi/doc/README.md +%{_datadir}/kimchi/doc/README-federation.md +%{_datadir}/kimchi/doc/kimchi-guest.png +%{_datadir}/kimchi/doc/kimchi-templates.png +%{_prefix}/share/locale/*/LC_MESSAGES/kimchi.mo +%{_datadir}/kimchi/config/ui/*.xml +%{_datadir}/kimchi/ui/ +%{_datadir}/kimchi +%{_sysconfdir}/nginx/conf.d/kimchi.conf.in +%{_sysconfdir}/nginx/conf.d/kimchi.conf +%{_sysconfdir}/kimchi/kimchi.conf +%{_sysconfdir}/kimchi/template.conf +%{_sysconfdir}/kimchi/distros.d/debian.json +%{_sysconfdir}/kimchi/distros.d/fedora.json +%{_sysconfdir}/kimchi/distros.d/opensuse.json +%{_sysconfdir}/kimchi/distros.d/ubuntu.json +%{_sysconfdir}/kimchi/distros.d/gentoo.json +%{_sysconfdir}/kimchi +%{_initrddir}/kimchid +%{_sysconfdir}/kimchi/ +%{_var}/lib/kimchi/debugreports/ +%{_var}/lib/kimchi/screenshots/ +%{_var}/lib/kimchi/vnc-tokens/ +%{_var}/lib/kimchi/isos/ +%{_var}/lib/kimchi/ +%{_localstatedir}/log/kimchi/* +%{_localstatedir}/log/kimchi/ +%{_mandir}/man8/kimchid.8.gz + +%changelog +* Thu Feb 26 2015 Frédéric Bonnard <frediz@linux.vnet.ibm.com> 1.4.0 +- Add man page for kimchid + +* Tue Feb 11 2014 Crístian Viana <vianac@linux.vnet.ibm.com> 1.1.0 +- Add help pages and XSLT dependency + +* Thu Jul 18 2013 Adam Litke <agl@us.ibm.com> 0.1.0-1 +- Adapted for autotools build +- Split Suse and Fedora spec files + +* Thu Apr 04 2013 Aline Manera <alinefm@br.ibm.com> 0.0-1 +- First build diff --git a/docs/Makefile.am b/docs/Makefile.am new file mode 100644 index 0000000..2f686f1 --- /dev/null +++ b/docs/Makefile.am @@ -0,0 +1,31 @@ +# +# Kimchi +# +# Copyright IBM Corp, 2013 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +docdir = $(datadir)/kimchi/doc + +dist_doc_DATA = \ + API.md \ + README.md \ + README-federation.md \ + kimchi-guest.png \ + kimchi-templates.png \ + kimchid.8 \ + $(NULL) + +CLEANFILES = kimchid.8 diff --git a/po/LINGUAS b/po/LINGUAS new file mode 100644 index 0000000..3fcb18f --- /dev/null +++ b/po/LINGUAS @@ -0,0 +1,11 @@ +en_US +pt_BR +zh_CN +de_DE +es_ES +fr_FR +it_IT +ja_JP +ko_KR +ru_RU +zh_TW diff --git a/po/Makefile.in.in b/po/Makefile.in.in new file mode 100644 index 0000000..d01fb31 --- /dev/null +++ b/po/Makefile.in.in @@ -0,0 +1,398 @@ +# Makefile for PO directory in any package using GNU gettext. +# Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper <drepper@gnu.ai.mit.edu> +# +# This file can be copied and used freely without restrictions. It can +# be used in projects which are not available under the GNU General Public +# License but which still want to provide support for the GNU gettext +# functionality. +# Please note that the actual code of GNU gettext is covered by the GNU +# General Public License and is *not* in the public domain. +# +# Origin: gettext-0.18 +GETTEXT_MACRO_VERSION = 0.18 + +PACKAGE = @PACKAGE@ +VERSION = @VERSION@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ + +SHELL = /bin/sh +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ + +prefix = @prefix@ +exec_prefix = @exec_prefix@ +datarootdir = @datarootdir@ +datadir = @datadir@ +localedir = @prefix@/share/locale +gettextsrcdir = $(datadir)/gettext/po + +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ + +# We use $(MKDIR_P). +# This macro uses the 'mkdir -p' command if possible. Otherwise, it falls back +# on invoking install-sh with the -d option, so your package should contain +# install-sh as described under AC_PROG_INSTALL. +mkinstalldirs = $(SHELL) @install_sh@ -d +install_sh = $(SHELL) @install_sh@ +MKDIR_P = @MKDIR_P@ +MKDIR_P = @MKDIR_P@ + +GMSGFMT_ = @GMSGFMT@ +GMSGFMT_no = @GMSGFMT@ +GMSGFMT_yes = @GMSGFMT_015@ +GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) +MSGFMT_ = @MSGFMT@ +MSGFMT_no = @MSGFMT@ +MSGFMT_yes = @MSGFMT_015@ +MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) +XGETTEXT_ = @XGETTEXT@ +XGETTEXT_no = @XGETTEXT@ +XGETTEXT_yes = @XGETTEXT_015@ +XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) +MSGMERGE = msgmerge +MSGMERGE_UPDATE = @MSGMERGE@ --update +MSGINIT = msginit +MSGCONV = msgconv +MSGFILTER = msgfilter + +POFILES = @POFILES@ +GMOFILES = @GMOFILES@ +UPDATEPOFILES = @UPDATEPOFILES@ +DUMMYPOFILES = @DUMMYPOFILES@ +DISTFILES.common = Makefile.in.in \ +$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) +DISTFILES = $(DISTFILES.common) Makevars POTFILES.in gen-pot.in \ +$(POFILES) $(GMOFILES) \ +$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) + +POTFILES = \ + +CATALOGS = @CATALOGS@ + +# Makevars gets inserted here. (Don't remove this line!) + +.SUFFIXES: +.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update + +.po.mo: + @echo "$(MSGFMT) -c -o $@ $<"; \ + $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ + +.po.gmo: + @lang=`echo $* | sed -e 's,.*/,,'`; \ + test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + +.sin.sed: + sed -e '/^#/d' $< > t-$@ + mv t-$@ $@ + + +all: check-macro-version update-gmo all-@USE_NLS@ + +all-yes: stamp-po +all-no: + +# Ensure that the gettext macros and this Makefile.in.in are in sync. +check-macro-version: + @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \ + || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \ + exit 1; \ + } + +# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no +# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because +# we don't want to bother translators with empty POT files). We assume that +# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. +# In this case, stamp-po is a nop (i.e. a phony target). + +# stamp-po is a timestamp denoting the last time at which the CATALOGS have +# been loosely updated. Its purpose is that when a developer or translator +# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, +# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent +# invocations of "make" will do nothing. This timestamp would not be necessary +# if updating the $(CATALOGS) would always touch them; however, the rule for +# $(POFILES) has been designed to not touch files that don't need to be +# changed. +stamp-po: $(srcdir)/$(DOMAIN).pot + test ! -f $(srcdir)/$(DOMAIN).pot || \ + test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) + @test ! -f $(srcdir)/$(DOMAIN).pot || { \ + echo "touch stamp-po" && \ + echo timestamp > stamp-poT && \ + mv stamp-poT stamp-po; \ + } + +# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', +# otherwise packages like GCC can not be built if only parts of the source +# have been downloaded. + +$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in + $(srcdir)/gen-pot $(POTFILES) + +# This rule has no dependencies: we don't need to update $(DOMAIN).pot at +# every "make" invocation, only create it when it is missing. +# Only "make $(DOMAIN).pot-update" or "make dist" will force an update. +$(srcdir)/$(DOMAIN).pot: + $(MAKE) $(DOMAIN).pot-update + +# This target rebuilds a PO file if $(DOMAIN).pot has changed. +# Note that a PO file is not touched if it doesn't need to be changed. +$(POFILES): $(srcdir)/$(DOMAIN).pot + @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ + if test -f "$(srcdir)/$${lang}.po"; then \ + test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ + else \ + $(MAKE) $${lang}.po-create; \ + fi + + +install: install-exec install-data +install-exec: +install-data: install-data-@USE_NLS@ + if test "$(PACKAGE)" = "gettext-tools"; then \ + $(MKDIR_P) $(DESTDIR)$(gettextsrcdir); \ + for file in $(DISTFILES.common) Makevars.template; do \ + $(INSTALL_DATA) $(srcdir)/$$file \ + $(DESTDIR)$(gettextsrcdir)/$$file; \ + done; \ + for file in Makevars; do \ + rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ + done; \ + else \ + : ; \ + fi +install-data-no: all +install-data-yes: all + @catalogs='$(CATALOGS)'; \ + for cat in $$catalogs; do \ + cat=`basename $$cat`; \ + lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ + dir=$(localedir)/$$lang/LC_MESSAGES; \ + $(MKDIR_P) $(DESTDIR)$$dir; \ + if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ + $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ + echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ + for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ + if test -n "$$lc"; then \ + if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ + link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ + mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ + mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ + (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ + for file in *; do \ + if test -f $$file; then \ + ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ + fi; \ + done); \ + rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ + else \ + if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ + :; \ + else \ + rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ + mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ + fi; \ + fi; \ + rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ + ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ + ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ + cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ + echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ + fi; \ + done; \ + done + +install-strip: install + +installdirs: installdirs-exec installdirs-data +installdirs-exec: +installdirs-data: installdirs-data-@USE_NLS@ + if test "$(PACKAGE)" = "gettext-tools"; then \ + $(MKDIR_P) $(DESTDIR)$(gettextsrcdir); \ + else \ + : ; \ + fi +installdirs-data-no: +installdirs-data-yes: + @catalogs='$(CATALOGS)'; \ + for cat in $$catalogs; do \ + cat=`basename $$cat`; \ + lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ + dir=$(localedir)/$$lang/LC_MESSAGES; \ + $(MKDIR_P) $(DESTDIR)$$dir; \ + for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ + if test -n "$$lc"; then \ + if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ + link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ + mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ + mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ + (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ + for file in *; do \ + if test -f $$file; then \ + ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ + fi; \ + done); \ + rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ + else \ + if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ + :; \ + else \ + rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ + mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ + fi; \ + fi; \ + fi; \ + done; \ + done + +# Define this as empty until I found a useful application. +installcheck: + +uninstall: uninstall-exec uninstall-data +uninstall-exec: +uninstall-data: uninstall-data-@USE_NLS@ + if test "$(PACKAGE)" = "gettext-tools"; then \ + for file in $(DISTFILES.common) Makevars.template; do \ + rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ + done; \ + else \ + : ; \ + fi +uninstall-data-no: +uninstall-data-yes: + catalogs='$(CATALOGS)'; \ + for cat in $$catalogs; do \ + cat=`basename $$cat`; \ + lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ + for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ + rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ + done; \ + done + +check: all + +info dvi ps pdf html tags TAGS ctags CTAGS ID: + +mostlyclean: + rm -f remove-potcdate.sed + rm -f stamp-poT + rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po + rm -fr *.o + +clean: mostlyclean + +distclean: clean + rm -f Makefile Makefile.in POTFILES *.mo + +maintainer-clean: distclean + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + rm -f stamp-po $(GMOFILES) + +distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) +dist distdir: + $(MAKE) update-po + @$(MAKE) dist2 +# This is a separate target because 'update-po' must be executed before. +dist2: stamp-po $(DISTFILES) + dists="$(DISTFILES)"; \ + if test "$(PACKAGE)" = "gettext-tools"; then \ + dists="$$dists Makevars.template"; \ + fi; \ + if test -f $(srcdir)/$(DOMAIN).pot; then \ + dists="$$dists $(DOMAIN).pot stamp-po"; \ + fi; \ + if test -f $(srcdir)/ChangeLog; then \ + dists="$$dists ChangeLog"; \ + fi; \ + for i in 0 1 2 3 4 5 6 7 8 9; do \ + if test -f $(srcdir)/ChangeLog.$$i; then \ + dists="$$dists ChangeLog.$$i"; \ + fi; \ + done; \ + if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ + for file in $$dists; do \ + if test -f $$file; then \ + cp -p $$file $(distdir) || exit 1; \ + else \ + cp -p $(srcdir)/$$file $(distdir) || exit 1; \ + fi; \ + done + +update-po: Makefile + $(MAKE) $(DOMAIN).pot-update + test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) + $(MAKE) update-gmo + +# General rule for creating PO files. + +.nop.po-create: + @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ + echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ + exit 1 + +# General rule for updating PO files. + +.nop.po-update: + @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ + if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ + tmpdir=`pwd`; \ + echo "$$lang:"; \ + test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + cd $(srcdir); \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ + if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ + rm -f $$tmpdir/$$lang.new.po; \ + else \ + if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ + :; \ + else \ + echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ + exit 1; \ + fi; \ + fi; \ + else \ + echo "msgmerge for $$lang.po failed!" 1>&2; \ + rm -f $$tmpdir/$$lang.new.po; \ + fi + +$(DUMMYPOFILES): + +update-gmo: Makefile $(GMOFILES) + @: + +# Recreate Makefile by invoking config.status. Explicitly invoke the shell, +# because execution permission bits may not work on the current file system. +# Use @SHELL@, which is the shell determined by autoconf for the use by its +# scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient. +Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ + cd $(top_builddir) \ + && @SHELL@ ./config.status $(subdir)/$@.in po-directories + +force: + +# Tell versions [3.59,3.63) of GNU make not to export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/po/Makevars b/po/Makevars new file mode 100644 index 0000000..c29a807 --- /dev/null +++ b/po/Makevars @@ -0,0 +1,41 @@ +# Makefile variables for PO directory in any package using GNU gettext. + +# Usually the message domain is the same as the package name. +DOMAIN = kimchi + +# These two variables depend on the location of this directory. +subdir = po +top_builddir = .. + +# These options get passed to xgettext. +XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ + +# This is the copyright holder that gets inserted into the header of the +# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding +# package. (Note that the msgstr strings, extracted from the package's +# sources, belong to the copyright holder of the package.) Translators are +# expected to transfer the copyright for their translations to this person +# or entity, or to disclaim their copyright. The empty string stands for +# the public domain; in this case the translators are expected to disclaim +# their copyright. +COPYRIGHT_HOLDER = + +# This is the email address or URL to which the translators shall report +# bugs in the untranslated strings: +# - Strings which are not entire sentences, see the maintainer guidelines +# in the GNU gettext documentation, section 'Preparing Strings'. +# - Strings which use unclear terms or require additional context to be +# understood. +# - Strings which make invalid assumptions about notation of date, time or +# money. +# - Pluralisation problems. +# - Incorrect English spelling. +# - Incorrect formatting. +# It can be your email address, or a mailing list address where translators +# can write to without being subscribed, or the URL of a web page through +# which the translators can contact you. +MSGID_BUGS_ADDRESS = project-kimchi@googlegroups.com + +# This is the list of locale categories, beyond LC_MESSAGES, for which the +# message catalogs shall be used. It is usually empty. +EXTRA_LOCALE_CATEGORIES = diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100644 index 0000000..57bc711 --- /dev/null +++ b/po/POTFILES.in @@ -0,0 +1,4 @@ +# List of source files which contain translatable strings. +src/kimchi/i18n.py +ui/pages/*.tmpl +ui/pages/tabs/*.tmpl diff --git a/po/de_DE.po b/po/de_DE.po new file mode 100644 index 0000000..a379c2c --- /dev/null +++ b/po/de_DE.po @@ -0,0 +1,2320 @@ +# English translations for kimchi package. +# Copyright (C) 2013 ORGANIZATION +# +msgid "" +msgstr "" +"Project-Id-Version: kimchi 0.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-09 17:37-0300\n" +"PO-Revision-Date: 2013-07-11 17:32-0400\n" +"Last-Translator: Crístian Viana <vianac@linux.vnet.ibm.com>\n" +"Language-Team: English\n" +"Language: de_DE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#, python-format +msgid "Unknown parameter %(value)s" +msgstr "" + +#, python-format +msgid "Delete is not allowed for %(resource)s" +msgstr "Löschen ist nicht zulässig für %(resource)s" + +#, python-format +msgid "%(resource)s does not implement update method" +msgstr "%(resource)s implementiert keine Aktualisierungsmethode" + +#, python-format +msgid "Create is not allowed for %(resource)s" +msgstr "Erstellen ist nicht zulässig für %(resource)s" + +msgid "Unable to parse JSON request" +msgstr "JSON-Anfrage konnte nicht analysiert werden" + +msgid "This API only supports JSON" +msgstr "Diese API unterstützt nur JSON" + +#, python-format +msgid "Parameters does not match requirement in schema: %(err)s" +msgstr "" + +msgid "You don't have permission to perform this operation." +msgstr "" + +msgid "Datastore is not initiated in the model object." +msgstr "Datenspeicher wird nicht im Modellobjekt initialisiert." + +#, python-format +msgid "Unable to start task due error: %(err)s" +msgstr "" +"Task kann aufgrund des folgenden Fehlers nicht gestartet werden: %(err)s" + +#, python-format +msgid "Timeout of %(seconds)s seconds expired while running task '%(task)s." +msgstr "" + +#, python-format +msgid "Authentication failed for user '%(username)s'. [Error code: %(code)s]" +msgstr "" +"Authentifizierung für Benutzer '%(username)s' fehlgeschlagen. [Fehlercode: " +"%(code)s]" + +msgid "You are not authorized to access Kimchi" +msgstr "Sie sind nicht berechtigt, auf Kimchi zuzugreifen" + +#, python-format +msgid "Specify %(item)s to login into Kimchi" +msgstr "Geben Sie %(item)s an, um sich bei Kimchi anzumelden" + +#, python-format +msgid "User %(user_id)s not found with given LDAP settings." +msgstr "" + +#, python-format +msgid "Invalid LDAP configuration: %(item)s : %(value)s" +msgstr "" + +msgid "Unknown \"_cap\" specified" +msgstr "" + +msgid "\"_passthrough\" should be \"true\" or \"false\"" +msgstr "" + +msgid "\"_passthrough_affected_by\" should be a device name string" +msgstr "" + +#, python-format +msgid "Error while getting block devices. Details: %(err)s" +msgstr "Fehler beim Abrufen von Blockeinheiten. Details: %(err)s" + +#, python-format +msgid "Error while getting block device information for %(device)s." +msgstr "Fehler beim Abrufen von Blockeinheitinformationen für %(device)s." + +#, python-format +msgid "Unable to find distro file: %(filename)s" +msgstr "Distro-Datei konnte nicht gefunden werden: %(filename)s" + +#, python-format +msgid "" +"Unable to parse distro file: %(filename)s. Make sure, it is a JSON file." +msgstr "" +"Distro-Datei konnte nicht analysiert werden: %(filename)s. Stellen Sie " +"sicher, dass es sich um eine JSON-Datei handelt." + +#, python-format +msgid "Unable to login to iSCSI host target %(portal)s. Details: %(err)s" +msgstr "Fehler beim Anmelden bei iSCSI-Hostziel %(portal)s. Details: %(err)s" + +#, python-format +msgid "Unable to login to iSCSI host %(host)s target %(target)s" +msgstr "Anmeldung bei iSCSI-Host %(host)s Ziel %(target)s nicht möglich" + +#, python-format +msgid "Unable to find ISO file %(filename)s" +msgstr "" + +#, python-format +msgid "The ISO file %(filename)s is not bootable" +msgstr "Die ISO-Datei %(filename)s ist nicht bootfähig" + +#, python-format +msgid "The ISO file %(filename)s does not have a valid El Torito boot record" +msgstr "Die ISO-Datei %(filename)s hat keinen gültigen El Torito-Bootsatz" + +#, python-format +msgid "Invalid El Torito validation entry in ISO %(filename)s" +msgstr "Ungültiger El Torito-Prüfeintrag in ISO-Datei %(filename)s" + +#, python-format +msgid "Invalid El Torito boot indicator in ISO %(filename)s" +msgstr "Ungültiger El Torito-Boot-Indikator in ISO-Datei %(filename)s" + +#, python-format +msgid "Unexpected volume type for primary volume in ISO %(filename)s" +msgstr "" +"Unerwarteter Datenträgertyp für Primärdatenträger in ISO-Datei %(filename)s" + +#, python-format +msgid "Bad format while reading volume descriptor in ISO %(filename)s" +msgstr "" +"Ungültiges Format beim Lesen des Datenträgerdeskriptors in ISO-Datei " +"%(filename)s" + +#, python-format +msgid "" +"The hypervisor doesn't have permission to use this ISO %(filename)s. " +"Consider moving it under /var/lib/libvirt, or set the search permission to " +"file access control lists for '%(user)s' user if possible, or add the " +"'%(user)s' to the ISO path group, or (not recommended) 'chmod -R o+x " +"'path_to_iso'.Details: %(err)s" +msgstr "" +"Der Hypervisor hat nicht die Berechtigung, die ISO-Datei %(filename)s zu " +"verwenden. Verschieben Sie sie entweder nach /var/lib/libvirt oder setzen " +"Sie, sofern möglich, die Suchberechtigung auf Dateizugriffssteuerungslisten " +"für den Benutzer '%(user)s' oder fügen Sie '%(user)s' der ISO-Pfadgruppe " +"hinzu oder (nicht empfohlen) 'chmod -R o+x 'path_to_iso'. Details: %(err)s" + +msgid "An error occurred when probing image OS information." +msgstr "" + +msgid "No OS information found in given image." +msgstr "" + +#, python-format +msgid "Unable to read image file %(filename)s" +msgstr "" + +#, python-format +msgid "" +"Image file must be an existing file on system. %(filename)s is not a valid " +"input." +msgstr "" + +#, python-format +msgid "Virtual machine %(name)s already exists" +msgstr "Virtuelle Maschine %(name)s ist bereits vorhanden" + +#, python-format +msgid "Virtual machine %(name)s does not exist" +msgstr "Virtuelle Maschine %(name)s ist nicht vorhanden" + +#, python-format +msgid "" +"Unable to rename virtual machine %(name)s. The name %(new_name)s is already " +"in use or the virtual machine is not powered off." +msgstr "" + +#, python-format +msgid "Unable to retrieve screenshot for stopped virtual machine %(name)s" +msgstr "" +"Screenshot für gestoppte virtuelle Maschine %(name)s konnte nicht abgerufen " +"werden" + +msgid "Remote ISO image is not supported by this server." +msgstr "Fernes ISO-Image wird von diesem Server nicht unterstützt." + +#, python-format +msgid "Screenshot is not supported on virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Unable to create virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Virtuelle Maschine %(name)s konnte nicht erstellt werden. Details: %(err)s" + +#, python-format +msgid "Unable to update virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Virtuelle Maschine %(name)s konnte nicht erstellt werden. Details: %(err)s" + +#, python-format +msgid "Unable to retrieve virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Virtuelle Maschine %(name)s konnte nicht abgerufen werden. Details: %(err)s" + +#, python-format +msgid "Unable to connect to powered off virtual machine %(name)s." +msgstr "" +"Verbindung zur abgeschalteten Maschine %(name)s konnte nicht hergestellt " +"werden." + +msgid "Virtual machine name must be a string without slashes (/)" +msgstr "" + +#, python-format +msgid "Invalid template URI %(value)s specified for virtual machine" +msgstr "" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for virtual machine" +msgstr "" + +msgid "Supported virtual machine graphics are Spice or VNC" +msgstr "" + +msgid "Graphics address to listen on must be IPv4 or IPv6" +msgstr "Zu überwachende Grafikadresse muss IPv4 oder IPv6 sein" + +msgid "Specify a template to create a virtual machine from" +msgstr "Vorlage angeben, aus der eine virtuelle Maschine erstellt werden soll" + +#, python-format +msgid "Unable to start virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Virtuelle Maschine %(name)s konnte nicht gestartet werden. Details: %(err)s" + +#, python-format +msgid "Unable to power off virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Virtuelle Maschine %(name)s konnte nicht gestoppt werden. Details: %(err)s" + +#, python-format +msgid "Unable to delete virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Virtuelle Maschine %(name)s konnte nicht gelöscht werden. Details: %(err)s" + +#, python-format +msgid "Unable to reset virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Virtuelle Maschine %(name)s konnte nicht umbenannt werden. Details: %(err)s" + +msgid "User name list must be an array" +msgstr "" + +msgid "User name must be a string" +msgstr "Netzname muss eine Zeichenfolge sein" + +msgid "Group name list must be an array" +msgstr "" + +msgid "Group name must be a string" +msgstr "Netzname muss eine Zeichenfolge sein" + +#, python-format +msgid "User(s) '%(users)s' do not exist" +msgstr "Benutzer '%(users)s' ist nicht vorhanden." + +#, python-format +msgid "Group(s) '%(groups)s' do not exist" +msgstr "Benutzer '%(groups)s' ist nicht vorhanden." + +#, python-format +msgid "Unable to shutdown virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Virtuelle Maschine %(name)s konnte nicht gestoppt werden. Details: %(err)s" + +#, python-format +msgid "" +"Unable to get access metadata of virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Virtuelle Maschine %(name)s konnte nicht gestartet werden. Details: %(err)s" + +msgid "The guest console password must be a string." +msgstr "" + +msgid "The life time for the guest console password must be a number." +msgstr "" + +#, python-format +msgid "Virtual machine '%(name)s' must be stopped before cloning it." +msgstr "" + +#, python-format +msgid "Insufficient disk space to clone virtual machine '%(name)s'" +msgstr "" + +#, python-format +msgid "Unable to clone VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Invalid operation for non-persistent virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Cannot suspend VM '%(name)s' because it is not running." +msgstr "" + +#, python-format +msgid "Unable to suspend VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Cannot resume VM '%(name)s' because it is not paused." +msgstr "" + +#, python-format +msgid "Unable to resume VM '%(name)s'. Details: %(err)s" +msgstr "" + +msgid "Memory assigned is higher then the maximum allowed in the host." +msgstr "" + +#, python-format +msgid "" +"VM '%(name)s' does not support live memory update. Update the memory with " +"the machine offline to enable this feature." +msgstr "" + +msgid "Only increase memory is allowed in active VMs" +msgstr "" + +msgid "" +"For live memory update, new memory value must be equal old memory value plus " +"multiples of 1024 Mib" +msgstr "" + +msgid "There are not enough free slots of 1024 Mib in the guest." +msgstr "" + +msgid "" +"Host's libvirt version does not support memory devices. Libvirt must be >= " +"1.2.14" +msgstr "" + +#, python-format +msgid "Error attaching memory device. Details: %(error)s" +msgstr "" + +#, python-format +msgid "" +"VM %(vmid)s does not contain directly assigned host device %(dev_name)s." +msgstr "" + +#, python-format +msgid "The host device %(dev_name)s is not allowed to directly assign to VM." +msgstr "" + +msgid "" +"No IOMMU groups found. Host PCI pass through needs IOMMU group to function " +"correctly. Please enable Intel VT-d or AMD IOMMU in your BIOS, then verify " +"the Kernel is compiled with IOMMU support. For Intel CPU, add intel_iommu=on " +"to your Kernel parameter in /boot/grub2/grub.conf. For AMD CPU, add iommu=pt " +"iommu=1." +msgstr "" + +msgid "\"name\" should be a device name string" +msgstr "" + +#, python-format +msgid "Interface %(iface)s does not exist in virtual machine %(name)s" +msgstr "" +"Schnittstelle %(iface)s ist in virtueller Maschine %(name)s nicht vorhanden" + +#, python-format +msgid "" +"Network %(network)s specified for virtual machine %(name)s does not exist" +msgstr "" +"Das für die virtuelle Maschine %(name)s angegebene Netz %(network)s ist " +"nicht vorhanden" + +msgid "Supported virtual machine interfaces type is only network" +msgstr "Unterstützter Schnittstellentyp einer virtuellen Maschine ist nur Netz" + +msgid "Network name for virtual machine interface must be a string" +msgstr "" +"Netzname für Schnittstelle einer virtuellen Maschine muss eine Zeichenfolge " +"sein" + +msgid "Invalid network model card specified for virtual machine interface" +msgstr "" +"Ungültige Netzmodellkarte für Schnittstelle einer virtuellen Maschine " +"angegeben" + +msgid "Specify type and network to add a new virtual machine interface" +msgstr "" +"Geben Sie Typ und Netz an, um eine neue Schnittstelle für eine virtuelle " +"Maschine hinzuzufügen" + +msgid "MAC Address must respect this format FF:FF:FF:FF:FF:FF" +msgstr "" + +#, python-format +msgid "MAC Address %(mac)s already exists in virtual machine %(name)s" +msgstr "" + +msgid "Invalid MAC Address" +msgstr "" + +msgid "Cannot change MAC address of a running virtual machine" +msgstr "" + +#, python-format +msgid "Template %(name)s already exists" +msgstr "Vorlage %(name)s ist bereits vorhanden" + +#, python-format +msgid "" +"Network '%(network)s' specified for template %(template)s does not exist" +msgstr "" +"Das für Vorlage %(template)s angegebene Netz '%(network)s' ist nicht " +"vorhanden" + +#, python-format +msgid "" +"Storage pool %(pool)s specified for template %(template)s does not exist" +msgstr "" +"Der für Vorlage %(template)s angegebene Speicherpool '%(pool)s' ist nicht " +"vorhanden" + +#, python-format +msgid "Storage pool %(pool)s specified for template %(template)s is not active" +msgstr "" +"Der für Vorlage %(template)s angegebene Speicherpool '%(pool)s' ist nicht " +"aktiv" + +#, python-format +msgid "Invalid parameter '%(param)s' specified for CDROM." +msgstr "Ungültiger Parameter '%(param)s' für CD-ROM angegeben." + +#, python-format +msgid "Network %(network)s specified for template %(template)s is not active" +msgstr "" +"Das für Vorlage %(template)s angegebene Netz %(network)s ist nicht aktiv" + +msgid "Template name must be a string" +msgstr "Vorlagenname muss eine Zeichenfolge sein" + +msgid "Template icon must be a path to the image" +msgstr "Vorlagensymbol muss ein Pfad zum Image sein" + +msgid "Template distribution must be a string" +msgstr "Vorlagenverteilung muss eine Zeichenfolge sein" + +msgid "Template distribution version must be a string" +msgstr "Vorlagenverteilungsversion muss eine Zeichenfolge sein" + +msgid "The number of CPUs must be an integer greater than 0" +msgstr "Die Anzahl der CPUs muss eine Ganzzahl sein" + +msgid "Amount of memory (MB) must be an integer greater than 512" +msgstr "Speicherkapazität (MB) muss eine Ganzzahl größer als 512 sein" + +msgid "Template CDROM must be a local or remote ISO file" +msgstr "Vorlagen-CD-ROM muss eine lokale oder ferne ISO-Datei sein" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for template" +msgstr "Ungültiger Speicherpool-URI %(value)s für Vorlage angegeben" + +msgid "Specify an ISO image as CDROM or a base image to create a template" +msgstr "Geben Sie ein ISO-Image als CD-ROM an, um eine Vorlage zu erstellen" + +msgid "All networks for the template must be specified in a list." +msgstr "Alle Netze für die Vorlage müssen in einer Liste angegeben werden." + +msgid "Specify a volume to a template when storage pool is iSCSI or SCSI" +msgstr "" + +#, python-format +msgid "The volume %(volume)s is not in storage pool %(pool)s" +msgstr "" + +#, python-format +msgid "Unable to create template due error: %(err)s" +msgstr "" +"Vorlage kann aufgrund des folgenden Fehlers nicht erstellt werden: %(err)s" + +#, python-format +msgid "Unable to delete template due error: %(err)s" +msgstr "" +"Vorlage kann aufgrund des folgenden Fehlers nicht gelöscht werden: %(err)s" + +msgid "Disk size must be an integer greater than 1GB." +msgstr "" + +msgid "Template base image must be a valid local image file" +msgstr "Vorlagen-CD-ROM muss eine lokale oder ferne ISO-Datei sein" + +#, python-format +msgid "Cannot identify base image %(path)s format" +msgstr "" + +msgid "" +"When specifying CPU topology, VCPUs must be a product of sockets, cores, and " +"threads." +msgstr "" + +msgid "" +"When specifying CPU topology, each element must be an integer greater than " +"zero." +msgstr "" + +msgid "" +"Invalid disk image format. Valid formats: bochs, cloop, cow, dmg, qcow, " +"qcow2, qed, raw, vmdk, vpc." +msgstr "" + +#, python-format +msgid "Storage pool %(name)s already exists" +msgstr "Speicherpool %(name)s ist bereits vorhanden" + +#, python-format +msgid "Storage pool %(name)s does not exist" +msgstr "Speicherpool %(name)s ist nicht vorhanden" + +#, python-format +msgid "Specify %(item)s in order to create the storage pool %(name)s" +msgstr "Geben Sie %(item)s an, um den Speicherpool %(name)s zu erstellen" + +#, python-format +msgid "Unable to delete active storage pool %(name)s" +msgstr "Aktiver Speicherpool %(name)s konnte nicht gelöscht werden" + +#, python-format +msgid "Unable to list storage pools. Details: %(err)s" +msgstr "Speicherpools konnten nicht aufgelistet werden. Details: %(err)s" + +#, python-format +msgid "Unable to create storage pool %(name)s. Details: %(err)s" +msgstr "Speicherpool %(name)s konnte nicht erstellt werden. Details: %(err)s" + +#, python-format +msgid "" +"Unable to get number of storage volumes in storage pool %(name)s. Details: " +"%(err)s" +msgstr "" +"Anzahl der Speicherdatenträger im Speicherpool %(name)s konnte nicht " +"abgerufen werden. Details: %(err)s" + +#, python-format +msgid "Unable to activate storage pool %(name)s. Details: %(err)s" +msgstr "Speicherpool %(name)s konnte nicht aktiviert werden. Details: %(err)s" + +#, python-format +msgid "Unable to deactivate storage pool %(name)s. Details: %(err)s" +msgstr "" +"Speicherpool %(name)s konnte nicht inaktiviert werden. Details: %(err)s" + +#, python-format +msgid "Unable to delete storage pool %(name)s. Details: %(err)s" +msgstr "Speicherpool %(name)s konnte nicht gelöscht werden. Details: %(err)s" + +#, python-format +msgid "" +"Unable to create NFS Pool as export path %(path)s may block during mount" +msgstr "" +"NFS-Pool konnte nicht erstellt werden, weil Exportpfad %(path)s beim Mounten " +"blockieren kann" + +#, python-format +msgid "Unable to create NFS Pool as export path %(path)s mount failed" +msgstr "" +"NFS-Pool konnte nicht erstellt werden, weil das Mounten des Exportpfads" +"%(path)s fehlgeschlagen ist" + +#, python-format +msgid "Unsupported storage pool type: %(type)s" +msgstr "Nicht unterstützter Speicherpooltyp: %(type)s" + +#, python-format +msgid "Error while retrieving storage pool XML to %(pool)s" +msgstr "" + +msgid "Storage pool name must be a string without slashes (/)" +msgstr "" + +msgid "" +"Supported storage pool types are dir, netfs, logical, iscsi, isci and kimchi-" +"iso" +msgstr "" + +msgid "Storage pool path must be a string" +msgstr "Speicherpoolpfad muss eine Zeichenfolge sein" + +msgid "Storage pool host must be a IP or hostname" +msgstr "Speicherpoolhost muss eine IP oder ein Hostname sein" + +msgid "Storage pool device must be the absolute path to the block device" +msgstr "" + +msgid "Storage pool devices parameter must be a list" +msgstr "Einheitenparameter des Speicherpools muss eine Liste sein" + +msgid "Target IQN of an iSCSI pool must be a string" +msgstr "Ziel-IQN eines iSCSI-Pools muss eine Zeichenfolge sein" + +msgid "Port of a remote storage server must be an integer between 1 and 65535" +msgstr "" +"Port eines fernen Speicherservers muss eine Ganzzahl zwischen 1 und 65535 " +"sein" + +msgid "iSCSI target username must be a string" +msgstr "" + +msgid "iSCSI target password must be a string" +msgstr "" + +msgid "Specify name and type to create a storage pool" +msgstr "Geben Sie Name und Typ an, um einen Speicherpool zu erstellen" + +#, python-format +msgid "" +"%(disk)s is not a valid disk/partition. Could not add it to the pool " +"%(pool)s." +msgstr "" +"%(disk)s ist keine gültige Platte/Partition. Sie konnte nicht hinzugefügt " +"werden zum Pool %(pool)s." + +#, python-format +msgid "Unable to extend logical pool %(pool)s. Details: %(err)s" +msgstr "" + +msgid "The parameter disks only can be updated for logical storage pool." +msgstr "" +"Die Parameterplatten können nur für den logischen Speicherpool aktualisiert " +"werden." + +msgid "The SCSI host adapter name must be a string." +msgstr "Der Name des SCSI-Hostadapters muss eine Zeichenfolge sein." + +msgid "The storage pool kimchi_isos is reserved for internal use" +msgstr "Der Speicherpool kimchi_isos ist für die interne Verwendung reserviert" + +#, python-format +msgid "" +"Unable to activate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"Der NFS-Speicherpool %(name)s konnte nicht aktiviert werden. NFS-Server " +"%(server)s ist nicht erreichbar." + +#, python-format +msgid "" +"Unable to deactivate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"Der NFS-Speicherpool %(name)s konnte nicht inaktiviert werden. NFS-Server " +"%(server)s ist nicht erreichbar." + +#, python-format +msgid "" +"Unable to deactivate pool %(name)s as it is associated with some templates" +msgstr "" +"Pool %(name)s konnte nicht inaktiviert werden, weil er einigen Vorlagen " +"zugeordnet ist" + +#, python-format +msgid "Unable to delete pool %(name)s as it is associated with some templates" +msgstr "" +"Pool %(name)s konnte nicht gelöscht werden, weil er einigen Vorlagen " +"zugeordnet ist" + +#, python-format +msgid "" +"A volume group named '%(name)s' already exists. Please, choose another name " +"to create the logical pool." +msgstr "" +"Eine Datenträgergruppe mit dem Namen '%(name)s' ist bereits vorhanden. " +"Wählen Sie einen anderen Namen aus, um den logischen Pool zu erstellen." + +#, python-format +msgid "Unable to update database with deep scan information due error: %(err)s" +msgstr "" +"Datenbank mit Tiefenscaninformationen kann aufgrund des folgenden Fehlers " +"nicht aktualisiert werden: %(err)s" + +#, python-format +msgid "Storage volume %(name)s already exists" +msgstr "Speicherdatenträger %(name)s ist bereits vorhanden" + +#, python-format +msgid "Storage volume %(name)s does not exist in storage pool %(pool)s" +msgstr "" +"Speicherdatenträger %(name)s ist nicht im Speicherpool %(pool)s vorhanden" + +#, python-format +msgid "" +"Unable to create storage volume %(volume)s because storage pool %(pool)s is " +"not active" +msgstr "" + +#, python-format +msgid "Specify %(item)s in order to create storage volume %(volume)s" +msgstr "Geben Sie %(item)s an, um Speicherdatenträger %(volume)s zu erstellen" + +#, python-format +msgid "" +"Unable to list storage volumes because storage pool %(pool)s is not active" +msgstr "" +"Speicherdatenträger konnten nicht aufgelistet werden, weil Speicherpool " +"%(pool)s nicht aktiv ist" + +#, python-format +msgid "" +"Unable to create storage volume %(name)s in storage pool %(pool)s. Details: " +"%(err)s" +msgstr "" +"Speicherdatenträger %(name)s konnte nicht in Speicherpool %(pool)s erstellt " +"werden. Details: %(err)s" + +#, python-format +msgid "" +"Unable to list storage volumes in storage pool %(pool)s. Details: %(err)s" +msgstr "" +"Speicherdatenträger konnten nicht in Speicherpool %(pool)s aufgelistet " +"werden. Details: %(err)s" + +#, python-format +msgid "Unable to wipe storage volumes %(name)s. Details: %(err)s" +msgstr "" +"Speicherdatenträger %(name)s konnten nicht bereinigt werden. Details: %(err)s" + +#, python-format +msgid "Unable to delete storage volume %(name)s. Details: %(err)s" +msgstr "" +"Speicherdatenträger %(name)s konnte nicht gelöscht werden. Details: %(err)s" + +#, python-format +msgid "Unable to resize storage volume %(name)s. Details: %(err)s" +msgstr "" +"Größe des Speicherdatenträgers %(name)s konnte nicht geändert werden. " +"Details: %(err)s" + +#, python-format +msgid "Storage type %(type)s does not support volume create and delete" +msgstr "" +"Speichertyp %(type)s unterstützt nicht das Erstellen und Löschen von " +"Datenträgern" + +msgid "Storage volume name must be a string" +msgstr "Name des Speicherdatenträgers muss eine Zeichenfolge sein" + +msgid "Storage volume allocation must be an integer number" +msgstr "Zuordnung des Speicherdatenträgers muss eine Ganzzahl sein" + +msgid "" +"Storage volume format not supported. Valid formats: bochs, cloop, cow, dmg, " +"qcow, qcow2, qed, raw, vmdk, vpc." +msgstr "" + +msgid "Storage volume requires a volume name" +msgstr "Speicherdatenträger erfordert einen Datenträgernamen" + +#, python-format +msgid "" +"Unable to update database with storage volume information due error: %(err)s" +msgstr "" +"Datenbank mit Datenträgerinformationen kann aufgrund des folgenden Fehlers " +"nicht aktualisiert werden: %(err)s" + +#, python-format +msgid "Only one of parameter %(param)s can be specified" +msgstr "" + +#, python-format +msgid "Create volume from %(param)s is not supported" +msgstr "" + +msgid "Storage volume capacity must be an integer number." +msgstr "" + +msgid "Storage volume URL must be http://, https://, ftp:// or ftps://." +msgstr "" + +#, python-format +msgid "Unable to access file %(url)s. Please, check it." +msgstr "" + +#, python-format +msgid "" +"Unable to clone storage volume '%(name)s' in pool '%(pool)s'. Details: " +"%(err)s" +msgstr "" + +msgid "Specify chunk data and its size to upload a file." +msgstr "" + +msgid "In order to upload a storage volume, specify the 'upload' parameter." +msgstr "" + +msgid "" +"Unable to upload chunk data as it does not match with requested chunk size." +msgstr "" + +#, python-format +msgid "The storage volume %(vol)s is not under an upload process." +msgstr "" + +msgid "The upload chunk data will exceed the storage volume size." +msgstr "" + +#, python-format +msgid "Unable to upload chunk data to storage volume. Details: %(err)s." +msgstr "" + +#, python-format +msgid "Interface %(name)s does not exist" +msgstr "Schnittstelle %(name)s ist nicht vorhanden" + +#, python-format +msgid "Network %(name)s already exists" +msgstr "Netz %(name)s ist bereits vorhanden" + +#, python-format +msgid "Network %(name)s does not exist" +msgstr "Netz %(name)s ist nicht vorhanden" + +#, python-format +msgid "Subnet %(subnet)s specified for network %(network)s is not valid." +msgstr "" +"Das für das Netz %(network)s angegebene Teilnetz %(subnet)s ist nicht gültig." + +#, python-format +msgid "Specify a network interface to create bridged network %(name)s" +msgstr "" +"Geben Sie eine Netzschnittstelle an, um überbrücktes Netz %(name)s zu " +"erstellen" + +#, python-format +msgid "Unable to delete active network %(name)s" +msgstr "Aktives Netz %(name)s konnte nicht gelöscht werden" + +#, python-format +msgid "Interface %(iface)s specified for network %(network)s is already in use" +msgstr "" +"Die für das Netz %(network)s angegebene Schnittstelle %(iface)s wird bereits " +"verwendet" + +msgid "Interface should be bare NIC, bonding or bridge device." +msgstr "Schnittstelle sollte bloßes NIC, Bonding oder Brückeneinheit sein." + +#, python-format +msgid "Unable to create network %(name)s. Details: %(err)s" +msgstr "Netz %(name)s konnte nicht erstellt werden. Details: %(err)s" + +#, python-format +msgid "Unable to find a free IP address for network '%(name)s'" +msgstr "Es konnte keine freie IP-Adresse für Netz '%(name)s' gefunden werden" + +#, python-format +msgid "The interface %(iface)s already exists." +msgstr "" + +msgid "Network name must be a string without slashes (/) or quotes (\")" +msgstr "" + +msgid "Supported network types are isolated, NAT and bridge" +msgstr "Unterstützte Netztypen sind Isoliert, NAT und Brücke" + +msgid "Network subnet must be a string with IP address and prefix or netmask" +msgstr "" +"Teilnetz des Netzes muss eine Zeichenfolge mit IP-Adresse und Präfix oder " +"Netzmaske sein" + +msgid "Network interface must be a string" +msgstr "Netzschnittstelle muss eine Zeichenfolge sein" + +msgid "Network VLAN ID must be an integer between 1 and 4094" +msgstr "Netz-VLAN-ID muss eine Ganzzahl zwischen 1 und 4094 sein" + +msgid "Specify name and type to create a Network" +msgstr "Geben Sie Name und Typ an, um ein Netz zu erstellen" + +#, python-format +msgid "" +"Unable to delete network %(name)s. There are some virtual machines %(vms)s " +"and/or templates linked to this network." +msgstr "" +"Netz %(name)s konnte nicht inaktiviert werden. Es sind einige virtuellen " +"Maschinen %(vms)s und/oder Vorlagen mit diesem Netz verknüpft." + +#, python-format +msgid "" +"Unable to deactivate network %(name)s. There are some virtual machines " +"%(vms)s and/or templates linked to this network." +msgstr "" +"Netz %(name)s konnte nicht inaktiviert werden. Es sind einige virtuellen " +"Maschinen %(vms)s und/oder Vorlagen mit diesem Netz verknüpft." + +#, python-format +msgid "Bridge device %(name)s can not be the trunk device of a VLAN." +msgstr "Brückeneinheit %(name)s kann nicht die Trunkeinheit eines VLAN sein." + +#, python-format +msgid "Failed to activate interface %(iface)s: %(err)s." +msgstr "Schnittstelle %(iface)s konnte nicht aktiviert werden: %(err)s." + +#, python-format +msgid "" +"Failed to activate interface %(iface)s. Please check the physical link " +"status." +msgstr "" +"Schnittstelle %(iface)s konnte nicht aktiviert werden. Bitte überprüfen Sie " +"den Status der physischen Verbindung." + +#, python-format +msgid "Failed to start network %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Debug report %(name)s does not exist" +msgstr "Debugbericht %(name)s ist nicht vorhanden" + +msgid "Debug report tool not found in system" +msgstr "Debugberichtstool nicht im System gefunden" + +#, python-format +msgid "Unable to create debug report %(name)s. Details: %(err)s." +msgstr "Debugbericht %(name)s konnte nicht erstellt werden. Details: %(err)s." + +#, python-format +msgid "Can not find any debug report with the given name %(name)s" +msgstr "" + +#, python-format +msgid "Unable to generate debug report %(name)s. Details: %(err)s" +msgstr "Debugbericht %(name)s konnte nicht generiert werden. Details: %(err)s" + +msgid "You should give a name for the debug report file." +msgstr "" + +msgid "" +"Debug report name must be a string. Only letters, digits, underscore ('_') " +"and hyphen ('-') are allowed." +msgstr "" + +#, python-format +msgid "" +"The debug report with specified name \"%(name)s\" already exists. Please use " +"another one." +msgstr "" +"Eine Datenträgergruppe mit dem Namen '%(name)s' ist bereits vorhanden. " +"Wählen Sie einen anderen Namen aus, um den logischen Pool zu erstellen." + +#, python-format +msgid "Storage server %(server)s was not used by Kimchi" +msgstr "Speicherserver %(server)s wurde nicht von Kimchi verwendet" + +#, python-format +msgid "Distro '%(name)s' does not exist" +msgstr "Distro '%(name)s' ist nicht vorhanden" + +#, python-format +msgid "Partition %(name)s does not exist in the host" +msgstr "Partition %(name)s ist nicht im Host vorhanden" + +msgid "Unable to shutdown host machine as there are running virtual machines" +msgstr "" +"Hostmaschine konnte nicht heruntergefahren werden, weil virtuelle Maschinen " +"ausgeführt werden" + +msgid "Unable to reboot host machine as there are running virtual machines" +msgstr "" +"Hostmaschine konnte nicht neu gestartet werden, weil virtuelle Maschinen " +"ausgeführt werden" + +#, python-format +msgid "Node device '%(name)s' not found" +msgstr "Knoteneinheit '%(name)s' nicht gefunden" + +msgid "Conflicting flag filters specified." +msgstr "" + +msgid "No packages marked for update" +msgstr "Keine Pakete für Aktualisierung markiert" + +#, python-format +msgid "Package %(name)s is not marked to be updated." +msgstr "Paket %(name)s ist nicht für Aktualisierung markiert." + +#, python-format +msgid "Error while getting packages marked to be updated. Details: %(err)s" +msgstr "" +"Fehler beim Abrufen von Paketen, die für die Aktualsierung markiert sind. " +"Details: %(err)s" + +msgid "There is no compatible package manager for this system." +msgstr "Es gibt keinen kompatiblen Paketmanager für dieses System." + +#, python-format +msgid "Unable to find %(item)s in datastore" +msgstr "%(item)s konnten nicht im Datenspeicher gefunden werden" + +#, python-format +msgid "Invalid URI %(uri)s" +msgstr "Ungültiger URI %(uri)s" + +#, python-format +msgid "Timeout while running command '%(cmd)s' after %(seconds)s seconds" +msgstr "" +"Zeitlimitüberschreitung beim Ausführen des Befehls '%(cmd)s' nach " +"%(seconds)s Sekunden" + +msgid "Unable to choose a virtual machine name" +msgstr "" + +#, python-format +msgid "Invalid data value '%(value)s'" +msgstr "" + +#, python-format +msgid "Invalid data unit '%(unit)s'" +msgstr "" + +msgid "Invalid storage type. Types supported: 'cdrom', 'disk'" +msgstr "Ungültiger Speichertyp. Unterstützte Typen: 'cdrom'" + +#, python-format +msgid "The path '%(value)s' is not a valid local/remote path for the device" +msgstr "" + +msgid "Only CDROM path can be update." +msgstr "" + +#, python-format +msgid "" +"The storage device %(dev_name)s does not exist in the virtual machine " +"%(vm_name)s" +msgstr "" + +#, python-format +msgid "Error while creating new storage device: %(error)s" +msgstr "Fehler beim Erstellen einer neuen Speichereinheit: %(error)s" + +#, python-format +msgid "Error while updating storage device: %(error)s" +msgstr "Fehler beim Aktualisieren einer Speichereinheit: %(error)s" + +#, python-format +msgid "Error while removing storage device: %(error)s" +msgstr "Fehler beim Entfernen einer Speichereinheit: %(error)s" + +msgid "Do not support IDE device hot plug" +msgstr "" + +msgid "" +"Specify type and path or type and pool/volume to add a new virtual machine " +"disk" +msgstr "" +"Geben Sie Typ und Pfad an, um einen neuen Datenträger für eine virtuelle " +"Maschine hinzuzfügen" + +msgid "Specify path to update virtual machine disk" +msgstr "" +"Geben Sie einen Pfad an, um die Platte der virtuellen Maschine zu " +"aktualisieren" + +#, python-format +msgid "Controller type %(type)s limitation of %(limit)s devices reached" +msgstr "" + +#, python-format +msgid "Cannot retrieve disk path information for given pool/volume: %(error)s" +msgstr "" + +msgid "Volume already in use by other virtual machine." +msgstr "" + +msgid "" +"Only one of path or pool/volume can be specified to add a new virtual " +"machine disk" +msgstr "" +"Geben Sie Typ und Pfad an, um einen neuen Datenträger für eine virtuelle " +"Maschine hinzuzfügen" + +#, python-format +msgid "" +"Volume chosen with format %(format)s does not fit in the storage type " +"%(type)s" +msgstr "" + +msgid "YUM Repository ID must be one word only string." +msgstr "" +"YUM-Repository-ID darf nur ein aus einer Zeichenfolge bestehendes Wort sein." + +msgid "Repository URL must be an http://, ftp:// or file:// URL." +msgstr "Repository-URL muss ein http://-, ftp://- oder file://-URL sein." + +msgid "" +"Repository configuration is a dictionary with specific values according to " +"repository type." +msgstr "" +"Repository-Konfiguration ist ein Wörterbuch mit bestimmten Werten " +"hinsichtlich Repository-Typ." + +msgid "Distribution to DEB repository must be a string" +msgstr "Verteilung an DEB-Repository muss eine Zeichenfolge sein" + +msgid "Components to DEB repository must be listed in a array" +msgstr "Komponenten für DEB-Repository müssen in einem Array aufgelistet sein" + +msgid "Components to DEB repository must be a string" +msgstr "Komponenten für DEB-Repository müssen eine Zeichenfolge sein" + +msgid "Mirror list to repository must be a string" +msgstr "" + +msgid "YUM Repository name must be string." +msgstr "Name des YUM-Repositorys muss eine Zeichenfolge sein." + +msgid "GPG check must be a boolean value." +msgstr "GPG-Prüfung muss ein boolescher Wert sein." + +msgid "GPG key must be a URL pointing to the ASCII-armored file." +msgstr "GPG-Schlüssel muss ein URL sein, der auf die ASCII-Armor-Datei zeigt." + +#, python-format +msgid "Could not update repository %(repo_id)s." +msgstr "Repository %(repo_id)s konnte nicht aktualisiert werden." + +#, python-format +msgid "Repository %(repo_id)s does not exist." +msgstr "Repository %(repo_id)s ist nicht vorhanden." + +msgid "" +"Specify repository base URL, mirror list or metalink in order to create or " +"update a YUM repository." +msgstr "" + +msgid "Repository management tool was not recognized for your system." +msgstr "Repository-Verwaltungstool wurde für Ihr System nicht erkannt." + +#, python-format +msgid "Repository %(repo_id)s is already enabled." +msgstr "Repository %(repo_id)s ist bereits aktiviert." + +#, python-format +msgid "Repository %(repo_id)s is already disabled." +msgstr "Repository %(repo_id)s ist bereits inaktiviert." + +#, python-format +msgid "Could not remove repository %(repo_id)s." +msgstr "Repository %(repo_id)s konnte nicht entfernt werden." + +#, python-format +msgid "Could not write repository configuration file %(repo_file)s" +msgstr "" +"Repository-Konfigurationsdatei %(repo_file)s konnte nicht geschrieben werden" + +msgid "Specify repository distribution in order to create a DEB repository." +msgstr "" +"Geben Sie die Repository-Verteilung an, um ein DEB-Repository zu erstellen." + +#, python-format +msgid "Could not enable repository %(repo_id)s." +msgstr "Repository %(repo_id)s konnte nicht aktiviert werden." + +#, python-format +msgid "Could not disable repository %(repo_id)s." +msgstr "Repository %(repo_id)s konnte nicht inaktiviert werden." + +msgid "YUM Repository ID already exists" +msgstr "YUM-Repository-ID ist bereits vorhanden" + +msgid "YUM Repository name must be a string" +msgstr "YUM-Repository-Name muss eine Zeichenfolge sein" + +#, python-format +msgid "Unable to list repositories. Details: '%(err)s'" +msgstr "Repositorys konnten nicht aufgelistet werden. Details: '%(err)s'" + +#, python-format +msgid "Unable to retrieve repository information. Details: '%(err)s'" +msgstr "" +"Repository-Informationen konnten nicht abgerufen werden. Details: '%(err)s'" + +#, python-format +msgid "Unable to add repository. Details: '%(err)s'" +msgstr "Repository konnte nicht hinzugefügt werden. Details: '%(err)s'" + +#, python-format +msgid "Unable to remove repository. Details: '%(err)s'" +msgstr "Repository konnte nicht entfernt werden. Details: '%(err)s'" + +#, python-format +msgid "" +"Configuration items: '%(items)s' are not supported by repository manager" +msgstr "" + +msgid "Repository metalink must be an http://, ftp:// or file:// URL." +msgstr "" + +msgid "Cannot specify mirrorlist and metalink at the same time." +msgstr "" + +#, python-format +msgid "" +"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it." +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Snapshot '%(name)s' does not exist on virtual machine '%(vm)s'." +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Unable to list snapshots on virtual machine '%(vm)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to delete snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to revert virtual machine '%(vm)s' to snapshot '%(name)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot of virtual machine '%(vm)s' because it contains a " +"disk with format '%(format)s'; only 'qcow2' is supported." +msgstr "" + +msgid "The number of vCPUs is too large for this system." +msgstr "" + +msgid "Invalid vCPU/topology combination." +msgstr "" + +msgid "This host (or current configuration) does not allow CPU topology." +msgstr "" + +msgid "ERROR CODE" +msgstr "FEHLERCODE" + +msgid "REASON" +msgstr "GRUND" + +msgid "STACK" +msgstr "STACK" + +msgid "Go to Homepage" +msgstr "Gehe zu Homepage" + +msgid "Create a New Virtual Machine" +msgstr "Neue virtuelle Maschine erstellen" + +msgid "Virtual Machine Name" +msgstr "Name der virtuellen Maschine" + +msgid "" +"The name used to identify the virtual machine. If omitted, a name will be " +"chosen based on the template used." +msgstr "" +"Der für die Kennzeichnung der virtuellen Maschine verwendete Name. Falls er " +"ausgelassen wird, wird ein Name anhand der verwendeten Vorlage ausgewählt." + +msgid "Template" +msgstr "Vorlage" + +msgid "Please create a template first." +msgstr "Erstellen Sie zunächst eine Vorlage." + +msgid "Create a Template" +msgstr "Vorlage erstellen" + +msgid "Please choose a template." +msgstr "Wählen Sie eine Vorlage aus." + +msgid "OS" +msgstr "BS" + +msgid "OS Version" +msgstr "BS-Version" + +msgid "CPUS" +msgstr "CPUS" + +msgid "Memory" +msgstr "Speicher" + +msgid "Create" +msgstr "Erstellen" + +msgid "Creating..." +msgstr "" + +msgid "Edit Guest" +msgstr "Gast bearbeiten" + +msgid "General" +msgstr "Allgemein" + +msgid "Storage" +msgstr "Speicher" + +msgid "Interface" +msgstr "Schnittstelle" + +msgid "Permission" +msgstr "Version" + +msgid "Host PCI Device" +msgstr "" + +msgid "Snapshot" +msgstr "" + +msgid "Name" +msgstr "Name" + +msgid "CPUs" +msgstr "CPUs" + +msgid "Memory (MB)" +msgstr "Speicher" + +msgid "Icon" +msgstr "Symbol" + +msgid "Device" +msgstr "Einheitenname" + +msgid "Path" +msgstr "NFS-Pfad" + +msgid "Network" +msgstr "Netz" + +msgid "Type" +msgstr "Typ" + +msgid "MAC Address" +msgstr "" + +msgid "Available system users and groups" +msgstr "" + +msgid "Selected system users and groups" +msgstr "" + +msgid "User" +msgstr "" + +msgid "All" +msgstr "Alle" + +msgid "To Add" +msgstr "" + +msgid "Added" +msgstr "" + +msgid "filter" +msgstr "" + +msgid "Product" +msgstr "" + +msgid "Vendor" +msgstr "Anbieter" + +msgid "Created" +msgstr "" + +msgid "Save" +msgstr "Speichern" + +msgid "Replace" +msgstr "Ersetzen" + +msgid "Detach" +msgstr "Abhängen" + +msgid "Cancel" +msgstr "Abbrechen" + +msgid "revert" +msgstr "" + +msgid "Add a Storage Device to VM" +msgstr "Speichereinheit zur virtuellen Maschine hinzufügen" + +msgid "Device Type" +msgstr "Einheitentyp" + +msgid "The device type. Currently, \"cdrom\" and \"disk\" are supported." +msgstr "Der Einheitentyp. Derzeit wird nur \"cdrom\" unterstützt." + +msgid "Storage Pool" +msgstr "Speicherpool" + +msgid "Storage pool which volume located in" +msgstr "Speicherpoolpfad muss eine Zeichenfolge sein" + +msgid "Storage Volume" +msgstr "Speicherpoolname" + +msgid "Storage volume to be attached" +msgstr "Name des Speicherdatenträgers muss eine Zeichenfolge sein" + +msgid "File Path" +msgstr "Dateipfad" + +msgid "The ISO file path in the server for CDROM." +msgstr "Der ISO-Dateipfad auf dem Server für die CD-ROM." + +msgid "Attach" +msgstr "Anhängen" + +msgid "Start" +msgstr "Starten" + +msgid "Reset" +msgstr "Zurücksetzen" + +msgid "Pause" +msgstr "" + +msgid "Resume" +msgstr "" + +msgid "Power Off" +msgstr "" + +msgid "Actions" +msgstr "Aktionen" + +msgid "Connect" +msgstr "Verbinden" + +msgid "Clone" +msgstr "" + +msgid "Edit" +msgstr "Bearbeiten" + +msgid "Shut Down" +msgstr "Herunterfahren" + +msgid "Delete" +msgstr "Löschen" + +msgid "The username or password you entered is incorrect. Please try again." +msgstr "" +"Der Benutzername oder das Kennwort, den bzw. das Sie eingegeben haben, ist " +"falsch. Versuchen Sie es bitte erneut." + +msgid "This field is required." +msgstr "Dieses Feld ist erforderlich." + +msgid "Log in" +msgstr "Anmelden" + +msgid "Logging in..." +msgstr "Wird angemeldet..." + +msgid "Host" +msgstr "Host" + +msgid "Guests" +msgstr "Gäste" + +msgid "Templates" +msgstr "Vorlagen" + +msgid "Failed to get application configuration" +msgstr "Anwendungskonfiguration konnte nicht abgerufen werden" + +msgid "This is not a valid Linux path" +msgstr "Dies ist kein gültiger Linux-Pfad" + +msgid "This is not a valid URL." +msgstr "Dies ist kein gültiger URL." + +msgid "No such data available." +msgstr "Keine solchen Daten verfügbar." + +msgid "" +"Can not contact the host system. Verify the host system is up and that you " +"have network connectivity to it. HTTP request response %1. " +msgstr "" +"Hostsystem kann nicht kontaktiert werden. Prüfen Sie, ob das Hostsystem " +"aktiv ist und obNetzkonnektivität besteht. HTTP-Anforderungsantwort %1. " + +msgid "Unable to read file." +msgstr "" + +msgid "Error while uploading file." +msgstr "" + +msgid "Delete Confirmation" +msgstr "Löschbestätigung" + +msgid "OK" +msgstr "OK" + +msgid "Confirm" +msgstr "Bestätigen" + +msgid "Warning" +msgstr "Warnung" + +msgid "Cloning..." +msgstr "" + +msgid "Loading..." +msgstr "Wird geladen..." + +msgid "An error occurred while retrieving system information." +msgstr "" + +msgid "Retry" +msgstr "Wiederholen" + +msgid "Detailed message:" +msgstr "Detaillierte Meldung:" + +msgid "No ISO found" +msgstr "" + +msgid "This is not a valid ISO file." +msgstr "Dies ist keine gültige ISO-Datei." + +msgid "This may take a long time. Do you want to continue?" +msgstr "Dies wird einige Zeit dauern. Möchten Sie fortfahren?" + +msgid "This will permanently delete the template. Would you like to continue?" +msgstr "Hiermit wird die Vorlage dauerhaft gelöscht. Möchten Sie fortfahren?" + +msgid "Unable to shut down system as there are some virtual machines running!" +msgstr "" +"System konnte nicht heruntergefahren werden, weil einige virtuellen " +"Maschinen ausgeführt werden!" + +msgid "Max:" +msgstr "Max:" + +msgid "Utilization" +msgstr "Auslastung" + +msgid "Available" +msgstr "Verfügbar" + +msgid "Read Rate" +msgstr "Leserate" + +msgid "Write Rate" +msgstr "Schreibrate" + +msgid "Received" +msgstr "Empfangen" + +msgid "Sent" +msgstr "Gesendet" + +msgid "" +"Shutting down or restarting host will cause unsaved work lost. Continue to " +"shut down/restarting?" +msgstr "" +"Durch das Herunterfahren oder Neustarten des Hosts können ungesicherte " +"Arbeiten verloren gehen. Möchten Sie mit dem Herunterfahren/Neustarten " +"fortfahren?" + +msgid "" +"Repository will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" +"Repository wird dauerhaft entfernt und kann nicht wiederhergestellt werden. " +"Möchten Sie fortfahren?" + +msgid "Repositories" +msgstr "Repositorys" + +msgid "ID" +msgstr "ID" + +msgid "Base URL" +msgstr "Basis-URL" + +msgid "Is Mirror" +msgstr "Ist Spiegel" + +msgid "URL Args" +msgstr "URL-Args" + +msgid "Enabled" +msgstr "Aktiviert" + +msgid "GPG Check" +msgstr "GPG-Prüfung" + +msgid "GPG Key" +msgstr "GPG-Schlüssel" + +msgid "Add" +msgstr "Hinzufügen" + +msgid "Remove" +msgstr "Entfernen" + +msgid "Enable" +msgstr "Aktivieren" + +msgid "Disable" +msgstr "Inaktivieren" + +msgid "Software Updates" +msgstr "Software-Updates" + +msgid "Package Name" +msgstr "Paketname" + +msgid "Version" +msgstr "Version" + +msgid "Architecture" +msgstr "Architektur" + +msgid "Repository" +msgstr "Repository" + +msgid "Update All" +msgstr "Alle aktualisieren" + +msgid "Updating..." +msgstr "Wird aktualisiert..." + +msgid "Failed to retrieve packages update information." +msgstr "" + +msgid "Failed to update package(s)." +msgstr "Pakete konnten nicht aktualisiert werden." + +msgid "" +"Debug report will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" +"Debugbericht wird dauerhaft entfernt und kann nicht wiederhergestellt " +"werden. Möchten Sie fortfahren?" + +msgid "Debug Reports" +msgstr "Debugberichte" + +msgid "Generated Time" +msgstr "Generierte Zeit" + +msgid "Generate" +msgstr "Generieren" + +msgid "Generating..." +msgstr "Wird generiert..." + +msgid "Rename" +msgstr "Umbenennen" + +msgid "Download" +msgstr "Herunterladen" + +msgid "" +"Report name should contain only letters, digits, underscore ('_') and/or " +"hyphen ('-')." +msgstr "" +"Berichtsname darf nur Buchstaben, Zahlen und/oder Bindestriche ('-') " +"enthalten." + +msgid "Pending..." +msgstr "Wird geladen..." + +msgid "Report name is the same as the original one." +msgstr "" + +msgid "" +"This will delete the virtual machine and its virtual disks. This operation " +"cannot be undone. Would you like to continue?" +msgstr "" +"Hiermit werden die virtuelle Maschine und deren virtuellen Platten gelöscht. " +"Diese Operation kann nicht rückgängig gemacht werden. Möchten Sie fortfahren?" + +msgid "Power off Confirmation" +msgstr "Löschbestätigung" + +msgid "" +"This action may produce undesirable results, for example unflushed disk " +"cache in the guest. Would you like to continue?" +msgstr "" + +msgid "Reset Confirmation" +msgstr "Löschbestätigung" + +msgid "" +"There is a risk of data loss caused by reset without the guest OS shutdown. " +"Would you like to continue?" +msgstr "" + +msgid "Shut Down Confirmation" +msgstr "Löschbestätigung" + +msgid "Note the guest OS may ignore this request. Would you like to continue?" +msgstr "Hiermit wird die Vorlage dauerhaft gelöscht. Möchten Sie fortfahren?" + +msgid "Virtual Machine delete Confirmation" +msgstr "" + +msgid "" +"This virtual machine is not persistent. Power Off will delete it. Continue?" +msgstr "" + +msgid "" +"When the target guest has SCSI or iSCSI volumes, they will be cloned on " +"default storage pool. The same will happen when the target pool does not " +"have enough space to clone the volumes. Do you want to continue?" +msgstr "" + +msgid "" +"This CDROM will be detached permanently and you can re-attach it. Continue " +"to detach it?" +msgstr "" +"Diese CD-ROM wird dauerhaft abgehängt und Sie können sie neu anhängen. " +"Möchten Sie mit dem Abhängen fortfahren?" + +msgid "Attaching..." +msgstr "Wird angehängt..." + +msgid "Replacing..." +msgstr "Wird ersetzt..." + +msgid "Successfully attached!" +msgstr "Erfolgreich angehängt!" + +msgid "Successfully replaced!" +msgstr "Erfolgreich ersetzt!" + +msgid "Successfully detached!" +msgstr "Erfolgreich abgehängt!" + +msgid "" +"This disk will be detached permanently and you can re-attach it. Continue to " +"detach it?" +msgstr "" + +msgid "interface:" +msgstr "" + +msgid "address:" +msgstr "" + +msgid "link_type:" +msgstr "" + +msgid "block:" +msgstr "" + +msgid "drive_type:" +msgstr "" + +msgid "model:" +msgstr "" + +msgid "Affected devices:" +msgstr "" + +msgid "The VLAN id must be between 1 and 4094." +msgstr "Die VLAN-ID muss zwischen 1 und 4094 liegen." + +msgid "unavailable" +msgstr "nicht verfügbar" + +msgid "" +"This action will interrupt network connectivity for any virtual machine that " +"depend on this network." +msgstr "" +"Diese Aktion unterbricht die Netzkonnektivität für jede virtuelle Maschine, " +"die von diesem Netz abhängt." + +msgid "Create a network" +msgstr "Netz erstellen" + +msgid "" +"This network is not persistent. Instead of stop, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"Dieser Speicherpool ist nicht permanent. Durch diese Aktion wird er nicht " +"inaktiviert, sondern permanent gelöscht. Möchten Sie fortfahren?" + +msgid "" +"The bridged VLAN tag may not work well with NetworkManager enabled. You " +"should consider disabling it." +msgstr "" + +msgid "" +"This will permanently delete the storage pool. Would you like to continue?" +msgstr "" +"Hiermit wird der Speicherpool dauerhaft gelöscht. Möchten Sie fortfahren?" + +msgid "This storage pool is empty." +msgstr "Dieser Speicherpool ist leer." + +msgid "" +"It will format your disk and you will loose any data in there, are you sure " +"to continue? " +msgstr "" +"Hiermit wird Ihre Platte formatiert und Sie verlieren sämtliche Daten " +"darauf. Sind Sie sicher, dass Sie fortfahren möchten? " + +msgid "SCSI Fibre Channel" +msgstr "SCSI-Fibre Channel" + +msgid "No SCSI adapters found." +msgstr "Keine SCSI-Adapter gefunden." + +msgid "Loading iSCSI targets..." +msgstr "" + +msgid "No iSCSI found. Please input one." +msgstr "" + +msgid "Failed to load iSCSI targets." +msgstr "" + +msgid "The storage pool name can not be blank." +msgstr "Der Speicherpoolname darf nicht leer sein." + +msgid "The storage pool path can not be blank." +msgstr "Der Speicherpoolpfad darf nicht leer sein." + +msgid "NFS server mount path can not be blank." +msgstr "Der Mountpfad des NFS-Servers darf nicht leer sein." + +msgid "Invalid NFS mount path." +msgstr "Ungültiger NFS-Mountpfad." + +msgid "No logical device selected." +msgstr "Keine logische Einheit ausgewählt." + +msgid "The iSCSI target can not be blank." +msgstr "Das iSCSI-Ziel darf nicht leer sein." + +msgid "Server name can not be blank." +msgstr "Servername darf nicht leer sein." + +msgid "This is not a valid Server Name or IP. Please, modify it." +msgstr "" + +msgid "Looking for available partitions ..." +msgstr "Es wird nach verfügbaren Partitionen gesucht..." + +msgid "No available partitions found." +msgstr "Keine gültigen Partitionen gefunden." + +msgid "" +"This storage pool is not persistent. Instead of deactivate, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"Dieser Speicherpool ist nicht permanent. Durch diese Aktion wird er nicht " +"inaktiviert, sondern permanent gelöscht. Möchten Sie fortfahren?" + +msgid "Unable to retrieve partitions information." +msgstr "" +"Repository-Informationen konnten nicht abgerufen werden. Details: '%(err)s'" + +msgid "In progress..." +msgstr "" + +msgid "Failed!" +msgstr "" + +msgid "CDROM path needs to be a valid local/remote path and cannot be blank." +msgstr "" + +msgid "Disk pool or volume cannot be blank." +msgstr "Der Speicherpoolname darf nicht leer sein." + +msgid "Peers" +msgstr "" + +msgid "Searching" +msgstr "" + +msgid "No peers found." +msgstr "" + +msgid "Help" +msgstr "Hilfe" + +msgid "About" +msgstr "Informationen" + +msgid "Log out" +msgstr "Abmelden" + +msgid "Version:" +msgstr "Version:" + +msgid "Session timeout, please re-login." +msgstr "" + +msgid "User Name" +msgstr "Benutzername" + +msgid "Password" +msgstr "Kennwort" + +msgid "Generate a New Debug Report" +msgstr "Neuen Debugbericht erstellen" + +msgid "Report Name" +msgstr "Berichtsname" + +msgid "" +"The name used to identify the report. If omitted, a name will be chosen " +"based on current time. Name can contain: letters, digits, underscore (\"_\") " +"and hyphen (\"-\")." +msgstr "" +"Der Name, mit dem der Bericht gekennzeichnet wird. Falls er ausgelassen " +"wird, wird ein Name basierend auf der aktuellen Zeit ausgewählt. Der Name " +"darf Buchstaben, Zahlen und Bindestriche (\"-\") enthalten." + +msgid "Rename a Debug Report" +msgstr "Neuen Debugbericht erstellen" + +msgid "" +"The name used to identify the report. Name can contain: letters, digits and " +"hyphen (\"-\")." +msgstr "" +"Der Name, mit dem der Bericht gekennzeichnet wird. Falls er ausgelassen " +"wird, wird ein Name basierend auf der aktuellen Zeit ausgewählt. Der Name " +"darf Buchstaben, Zahlen und Bindestriche (\"-\") enthalten." + +msgid "Submit" +msgstr "" + +msgid "Add a Repository" +msgstr "Repository hinzufügen" + +msgid "Identifier" +msgstr "Kennung" + +msgid "Single word, unique identifier for the repository." +msgstr "Einzelnes Wort, eindeutige Kennung für das Repository." + +msgid "Textual name for the repository." +msgstr "Textname für das Repository." + +msgid "URL" +msgstr "URL" + +msgid "Required Field" +msgstr "Erforderliches Feld" + +msgid "URL to the repository. Supported protocols are http, ftp, and file." +msgstr "URL zum Repository. Unterstützte Protokolle sind http, ftp und file." + +msgid "Repository is a mirror" +msgstr "Repository ist ein Spiegel." + +msgid "Distribution" +msgstr "Verteilung" + +msgid "Distribution of the DEB repository." +msgstr "Verteilung des DEB-Repositorys." + +msgid "Components" +msgstr "Komponenten" + +msgid "List of components in DEB repository." +msgstr "Liste der Komponenten im DEB-Repository." + +msgid "Edit Repository" +msgstr "Repository bearbeiten" + +msgid "Mirror List URL" +msgstr "Spiegellisten-URL" + +msgid "Yes" +msgstr "Ja" + +msgid "No" +msgstr "Nein" + +msgid "Add a Volume to Storage Pool" +msgstr "" + +msgid "Fetch from remote URL" +msgstr "" + +msgid "Enter the remote URL here." +msgstr "" + +msgid "Upload a file" +msgstr "" + +msgid "Choose the file you want to upload." +msgstr "" + +msgid "Define a New Storage Pool" +msgstr "Neuen Speicherpool definieren" + +msgid "Storage Pool Name" +msgstr "Speicherpoolname" + +msgid "" +"The name used to identify the storage pools, and it should not be empty." +msgstr "" +"Der Name, mit dem die Speicherpools gekennzeichnet werden. Er darf nicht " +"leer sein." + +msgid "Storage Pool Type" +msgstr "Speicherpooltyp" + +msgid "Storage Path" +msgstr "Speicherpfad" + +msgid "" +"The path of the Storage Pool. Each Storage Pool must have a unique path." +msgstr "" +"Der Pfad des Speicherpools. Jeder Speicherpool muss einen eindeutigen Pfad " +"haben." + +msgid "" +"Kimchi will try to create the directory when it does not already exist in " +"your system." +msgstr "" +"Kimchi versucht, das Verzeichnis zu erstellen, wenn es noch nicht in Ihrem " +"System vorhanden ist." + +msgid "NFS Server IP" +msgstr "NFS-Server-IP" + +msgid "NFS server IP or hostname. It can be input or chosen from history." +msgstr "" +"IP oder Hostname des NFS-Servers. Diese(r) kann eingegeben oder aus dem " +"Verlauf ausgewählt werden." + +msgid "NFS Path" +msgstr "NFS-Pfad" + +msgid "The NFS exported path on NFS server." +msgstr "Der NFS-Exportpfad auf dem NFS-Server." + +msgid "Device path" +msgstr "Einheitenpfad" + +msgid "iSCSI Server" +msgstr "iSCSI-Server" + +msgid "iSCSI server IP or hostname. It should not be empty." +msgstr "IP oder Hostname des iSCSI-Servers. Diese(r) darf nicht leer sein." + +msgid "Server" +msgstr "Server" + +msgid "Port" +msgstr "Port" + +msgid "Target" +msgstr "Ziel" + +msgid "The iSCSI target on iSCSI server" +msgstr "Das iSCSI-Ziel auf dem iSCSI-Server" + +msgid "Add iSCSI Authentication" +msgstr "iSCSI-Authentifizierung hinzufügen" + +msgid "iSCSI Authentication" +msgstr "iSCSI-Authentifizierung" + +msgid "SCSI Adapter" +msgstr "SCSI-Adapter" + +msgid "Please, wait..." +msgstr "Bitte warten..." + +msgid "Add Template" +msgstr "Vorlage hinzufügen" + +msgid "Where is the source media for this template? " +msgstr "Wo ist der Quellendatenträger für diese Vorlage?" + +msgid "Local ISO Image" +msgstr "Lokales ISO-Image" + +msgid "Local Image File" +msgstr "" + +msgid "Remote ISO Image" +msgstr "Fernes ISO-Image" + +msgid "Search ISOs" +msgstr "ISOs suchen" + +msgid "The following ISOs are available:" +msgstr "Die folgenden ISOs sind verfügbar:" + +msgid "OS: " +msgstr "BS: " + +msgid "Version: " +msgstr "Version: " + +msgid "Size: " +msgstr "Größe: " + +msgid "Search more ISOs" +msgstr "Weitere ISOs suchen" + +msgid "Create Templates from Selected ISO" +msgstr "Vorlagen aus ausgewähltem ISO erstellen" + +msgid "I want to use a specific ISO file" +msgstr "Ich möchte eine bestimmte ISO-Datei verwenden" + +msgid "Loading default remote ISOs ..." +msgstr "Standardmäßige ferne ISOs werden geladen ..." + +msgid "Arch: " +msgstr "Arch: " + +msgid "I want to use a custom URL" +msgstr "Ich möchte einen benutzerdefinierten URL verwenden" + +msgid "Edit Template" +msgstr "Vorlage bearbeiten" + +msgid "Processor" +msgstr "Prozessor" + +msgid "CDROM" +msgstr "CD-ROM" + +msgid "Image File" +msgstr "" + +msgid "Graphics" +msgstr "Grafik" + +msgid "Disk(GB)" +msgstr "" + +msgid "Disk Format" +msgstr "" + +msgid "CPU Number" +msgstr "CPU-Anzahl" + +msgid "Manually set CPU topology" +msgstr "" + +msgid "Cores" +msgstr "" + +msgid "Threads" +msgstr "" + +msgid "CPU" +msgstr "CPU" + +msgid "Disk I/O" +msgstr "Platten-E/A" + +msgid "Network I/O" +msgstr "Netz-E/A" + +msgid "Livetile" +msgstr "Live Tile" + +msgid "No guests found." +msgstr "Keine Gäste gefunden." + +msgid "Shut down" +msgstr "Herunterfahren" + +msgid "Restart" +msgstr "Erneut starten" + +msgid "Basic Information" +msgstr "Basisinformationen" + +msgid "OS Distro" +msgstr "BS-Distro" + +msgid "OS Code Name" +msgstr "BS-Codename" + +msgid "CPU(s)" +msgstr "" + +msgid "System Statistics" +msgstr "Systemstatistik" + +msgid "Update Progress" +msgstr "Aktualisierungsfortschritt" + +msgid "Network Name" +msgstr "Netzname" + +msgid "State" +msgstr "Status" + +msgid "Network Type" +msgstr "Netztyp" + +msgid "Address Space" +msgstr "Adressraum" + +msgid "Name should not contain '/' and '\"'." +msgstr "Ungültiger Speicherpoolname. Er darf nicht '/' enthalten." + +msgid "Isolated: no external network connection" +msgstr "Isolatiert: keine physisische Netzverbindung" + +msgid "NAT: outbound physical network connection only" +msgstr "NAT: nur ausgehende physische Netzverbindung" + +msgid "Bridged: Virtual machines are connected to physical network directly" +msgstr "" +"Überbrückt: Virtuelle Maschinen sind direkt mit physischem Netz verbunden" + +msgid "(No interfaces found)" +msgstr "" + +msgid "Destination" +msgstr "Ziel:" + +msgid "Enable VLAN" +msgstr "Virtuelles LAN (VLAN) aktivieren:" + +msgid "VLAN ID" +msgstr "VLAN-ID:" + +msgid "Stop" +msgstr "Stoppen" + +msgid "%Used" +msgstr "" + +msgid "Location" +msgstr "Position" + +msgid "Capacity" +msgstr "Kapazität" + +msgid "Allocated" +msgstr "Zugeordnet" + +msgid "active" +msgstr "aktiv" + +msgid "inactive" +msgstr "inaktiv" + +msgid "Deactivate" +msgstr "Inaktivieren" + +msgid "Activate" +msgstr "Aktivieren" + +msgid "Add Volume" +msgstr "" + +msgid "Extend" +msgstr "" + +msgid "Undefine" +msgstr "Definition aufheben" + +msgid "Format" +msgstr "Format:" + +msgid "Allocation" +msgstr "Zuordnung:" + +msgid "No templates found." +msgstr "Keine Vorlagen gefunden." diff --git a/po/en_US.po b/po/en_US.po new file mode 100644 index 0000000..1749b3e --- /dev/null +++ b/po/en_US.po @@ -0,0 +1,2156 @@ +# English translations for kimchi package. +# Copyright (C) 2013 ORGANIZATION +# Adam Litke <agl@us.ibm.com>, 2013. +# +msgid "" +msgstr "" +"Project-Id-Version: kimchi 0.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-09 17:37-0300\n" +"PO-Revision-Date: 2013-07-11 17:32-0400\n" +"Last-Translator: Crístian Viana <vianac@linux.vnet.ibm.com>\n" +"Language-Team: English\n" +"Language: en_US\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#, python-format +msgid "Unknown parameter %(value)s" +msgstr "" + +#, python-format +msgid "Delete is not allowed for %(resource)s" +msgstr "" + +#, python-format +msgid "%(resource)s does not implement update method" +msgstr "" + +#, python-format +msgid "Create is not allowed for %(resource)s" +msgstr "" + +msgid "Unable to parse JSON request" +msgstr "" + +msgid "This API only supports JSON" +msgstr "" + +#, python-format +msgid "Parameters does not match requirement in schema: %(err)s" +msgstr "" + +msgid "You don't have permission to perform this operation." +msgstr "" + +msgid "Datastore is not initiated in the model object." +msgstr "" + +#, python-format +msgid "Unable to start task due error: %(err)s" +msgstr "" + +#, python-format +msgid "Timeout of %(seconds)s seconds expired while running task '%(task)s." +msgstr "" + +#, python-format +msgid "Authentication failed for user '%(username)s'. [Error code: %(code)s]" +msgstr "" + +msgid "You are not authorized to access Kimchi" +msgstr "" + +#, python-format +msgid "Specify %(item)s to login into Kimchi" +msgstr "" + +#, python-format +msgid "User %(user_id)s not found with given LDAP settings." +msgstr "" + +#, python-format +msgid "Invalid LDAP configuration: %(item)s : %(value)s" +msgstr "" + +msgid "Unknown \"_cap\" specified" +msgstr "" + +msgid "\"_passthrough\" should be \"true\" or \"false\"" +msgstr "" + +msgid "\"_passthrough_affected_by\" should be a device name string" +msgstr "" + +#, python-format +msgid "Error while getting block devices. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Error while getting block device information for %(device)s." +msgstr "" + +#, python-format +msgid "Unable to find distro file: %(filename)s" +msgstr "" + +#, python-format +msgid "" +"Unable to parse distro file: %(filename)s. Make sure, it is a JSON file." +msgstr "" + +#, python-format +msgid "Unable to login to iSCSI host target %(portal)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to login to iSCSI host %(host)s target %(target)s" +msgstr "" + +#, python-format +msgid "Unable to find ISO file %(filename)s" +msgstr "" + +#, python-format +msgid "The ISO file %(filename)s is not bootable" +msgstr "" + +#, python-format +msgid "The ISO file %(filename)s does not have a valid El Torito boot record" +msgstr "" + +#, python-format +msgid "Invalid El Torito validation entry in ISO %(filename)s" +msgstr "" + +#, python-format +msgid "Invalid El Torito boot indicator in ISO %(filename)s" +msgstr "" + +#, python-format +msgid "Unexpected volume type for primary volume in ISO %(filename)s" +msgstr "" + +#, python-format +msgid "Bad format while reading volume descriptor in ISO %(filename)s" +msgstr "" + +#, python-format +msgid "" +"The hypervisor doesn't have permission to use this ISO %(filename)s. " +"Consider moving it under /var/lib/libvirt, or set the search permission to " +"file access control lists for '%(user)s' user if possible, or add the " +"'%(user)s' to the ISO path group, or (not recommended) 'chmod -R o+x " +"'path_to_iso'.Details: %(err)s" +msgstr "" + +msgid "An error occurred when probing image OS information." +msgstr "" + +msgid "No OS information found in given image." +msgstr "" + +#, python-format +msgid "Unable to read image file %(filename)s" +msgstr "" + +#, python-format +msgid "" +"Image file must be an existing file on system. %(filename)s is not a valid " +"input." +msgstr "" + +#, python-format +msgid "Virtual machine %(name)s already exists" +msgstr "" + +#, python-format +msgid "Virtual machine %(name)s does not exist" +msgstr "" + +#, python-format +msgid "" +"Unable to rename virtual machine %(name)s. The name %(new_name)s is already " +"in use or the virtual machine is not powered off." +msgstr "" + +#, python-format +msgid "Unable to retrieve screenshot for stopped virtual machine %(name)s" +msgstr "" + +msgid "Remote ISO image is not supported by this server." +msgstr "" + +#, python-format +msgid "Screenshot is not supported on virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Unable to create virtual machine %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to update virtual machine %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to retrieve virtual machine %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to connect to powered off virtual machine %(name)s." +msgstr "" + +msgid "Virtual machine name must be a string without slashes (/)" +msgstr "" + +#, python-format +msgid "Invalid template URI %(value)s specified for virtual machine" +msgstr "" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for virtual machine" +msgstr "" + +msgid "Supported virtual machine graphics are Spice or VNC" +msgstr "" + +msgid "Graphics address to listen on must be IPv4 or IPv6" +msgstr "" + +msgid "Specify a template to create a virtual machine from" +msgstr "" + +#, python-format +msgid "Unable to start virtual machine %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to power off virtual machine %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to delete virtual machine %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to reset virtual machine %(name)s. Details: %(err)s" +msgstr "" + +msgid "User name list must be an array" +msgstr "" + +msgid "User name must be a string" +msgstr "" + +msgid "Group name list must be an array" +msgstr "" + +msgid "Group name must be a string" +msgstr "" + +#, python-format +msgid "User(s) '%(users)s' do not exist" +msgstr "" + +#, python-format +msgid "Group(s) '%(groups)s' do not exist" +msgstr "" + +#, python-format +msgid "Unable to shutdown virtual machine %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to get access metadata of virtual machine %(name)s. Details: %(err)s" +msgstr "" + +msgid "The guest console password must be a string." +msgstr "" + +msgid "The life time for the guest console password must be a number." +msgstr "" + +#, python-format +msgid "Virtual machine '%(name)s' must be stopped before cloning it." +msgstr "" + +#, python-format +msgid "Insufficient disk space to clone virtual machine '%(name)s'" +msgstr "" + +#, python-format +msgid "Unable to clone VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Invalid operation for non-persistent virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Cannot suspend VM '%(name)s' because it is not running." +msgstr "" + +#, python-format +msgid "Unable to suspend VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Cannot resume VM '%(name)s' because it is not paused." +msgstr "" + +#, python-format +msgid "Unable to resume VM '%(name)s'. Details: %(err)s" +msgstr "" + +msgid "Memory assigned is higher then the maximum allowed in the host." +msgstr "" + +#, python-format +msgid "" +"VM '%(name)s' does not support live memory update. Update the memory with " +"the machine offline to enable this feature." +msgstr "" + +msgid "Only increase memory is allowed in active VMs" +msgstr "" + +msgid "" +"For live memory update, new memory value must be equal old memory value plus " +"multiples of 1024 Mib" +msgstr "" + +msgid "There are not enough free slots of 1024 Mib in the guest." +msgstr "" + +msgid "" +"Host's libvirt version does not support memory devices. Libvirt must be >= " +"1.2.14" +msgstr "" + +#, python-format +msgid "Error attaching memory device. Details: %(error)s" +msgstr "" + +#, python-format +msgid "" +"VM %(vmid)s does not contain directly assigned host device %(dev_name)s." +msgstr "" + +#, python-format +msgid "The host device %(dev_name)s is not allowed to directly assign to VM." +msgstr "" + +msgid "" +"No IOMMU groups found. Host PCI pass through needs IOMMU group to function " +"correctly. Please enable Intel VT-d or AMD IOMMU in your BIOS, then verify " +"the Kernel is compiled with IOMMU support. For Intel CPU, add intel_iommu=on " +"to your Kernel parameter in /boot/grub2/grub.conf. For AMD CPU, add iommu=pt " +"iommu=1." +msgstr "" + +msgid "\"name\" should be a device name string" +msgstr "" + +#, python-format +msgid "Interface %(iface)s does not exist in virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "" +"Network %(network)s specified for virtual machine %(name)s does not exist" +msgstr "" + +msgid "Supported virtual machine interfaces type is only network" +msgstr "" + +msgid "Network name for virtual machine interface must be a string" +msgstr "" + +msgid "Invalid network model card specified for virtual machine interface" +msgstr "" + +msgid "Specify type and network to add a new virtual machine interface" +msgstr "" + +msgid "MAC Address must respect this format FF:FF:FF:FF:FF:FF" +msgstr "" + +#, python-format +msgid "MAC Address %(mac)s already exists in virtual machine %(name)s" +msgstr "" + +msgid "Invalid MAC Address" +msgstr "" + +msgid "Cannot change MAC address of a running virtual machine" +msgstr "" + +#, python-format +msgid "Template %(name)s already exists" +msgstr "" + +#, python-format +msgid "" +"Network '%(network)s' specified for template %(template)s does not exist" +msgstr "" + +#, python-format +msgid "" +"Storage pool %(pool)s specified for template %(template)s does not exist" +msgstr "" + +#, python-format +msgid "Storage pool %(pool)s specified for template %(template)s is not active" +msgstr "" + +#, python-format +msgid "Invalid parameter '%(param)s' specified for CDROM." +msgstr "" + +#, python-format +msgid "Network %(network)s specified for template %(template)s is not active" +msgstr "" + +msgid "Template name must be a string" +msgstr "" + +msgid "Template icon must be a path to the image" +msgstr "" + +msgid "Template distribution must be a string" +msgstr "" + +msgid "Template distribution version must be a string" +msgstr "" + +msgid "The number of CPUs must be an integer greater than 0" +msgstr "" + +msgid "Amount of memory (MB) must be an integer greater than 512" +msgstr "" + +msgid "Template CDROM must be a local or remote ISO file" +msgstr "" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for template" +msgstr "" + +msgid "Specify an ISO image as CDROM or a base image to create a template" +msgstr "" + +msgid "All networks for the template must be specified in a list." +msgstr "" + +msgid "Specify a volume to a template when storage pool is iSCSI or SCSI" +msgstr "" + +#, python-format +msgid "The volume %(volume)s is not in storage pool %(pool)s" +msgstr "" + +#, python-format +msgid "Unable to create template due error: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to delete template due error: %(err)s" +msgstr "" + +msgid "Disk size must be an integer greater than 1GB." +msgstr "" + +msgid "Template base image must be a valid local image file" +msgstr "" + +#, python-format +msgid "Cannot identify base image %(path)s format" +msgstr "" + +msgid "" +"When specifying CPU topology, VCPUs must be a product of sockets, cores, and " +"threads." +msgstr "" + +msgid "" +"When specifying CPU topology, each element must be an integer greater than " +"zero." +msgstr "" + +msgid "" +"Invalid disk image format. Valid formats: bochs, cloop, cow, dmg, qcow, " +"qcow2, qed, raw, vmdk, vpc." +msgstr "" + +#, python-format +msgid "Storage pool %(name)s already exists" +msgstr "" + +#, python-format +msgid "Storage pool %(name)s does not exist" +msgstr "" + +#, python-format +msgid "Specify %(item)s in order to create the storage pool %(name)s" +msgstr "" + +#, python-format +msgid "Unable to delete active storage pool %(name)s" +msgstr "" + +#, python-format +msgid "Unable to list storage pools. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to create storage pool %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to get number of storage volumes in storage pool %(name)s. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Unable to activate storage pool %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to deactivate storage pool %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to delete storage pool %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to create NFS Pool as export path %(path)s may block during mount" +msgstr "" + +#, python-format +msgid "Unable to create NFS Pool as export path %(path)s mount failed" +msgstr "" + +#, python-format +msgid "Unsupported storage pool type: %(type)s" +msgstr "" + +#, python-format +msgid "Error while retrieving storage pool XML to %(pool)s" +msgstr "" + +msgid "Storage pool name must be a string without slashes (/)" +msgstr "" + +msgid "" +"Supported storage pool types are dir, netfs, logical, iscsi, isci and kimchi-" +"iso" +msgstr "" + +msgid "Storage pool path must be a string" +msgstr "" + +msgid "Storage pool host must be a IP or hostname" +msgstr "" + +msgid "Storage pool device must be the absolute path to the block device" +msgstr "" + +msgid "Storage pool devices parameter must be a list" +msgstr "" + +msgid "Target IQN of an iSCSI pool must be a string" +msgstr "" + +msgid "Port of a remote storage server must be an integer between 1 and 65535" +msgstr "" + +msgid "iSCSI target username must be a string" +msgstr "" + +msgid "iSCSI target password must be a string" +msgstr "" + +msgid "Specify name and type to create a storage pool" +msgstr "" + +#, python-format +msgid "" +"%(disk)s is not a valid disk/partition. Could not add it to the pool " +"%(pool)s." +msgstr "" + +#, python-format +msgid "Unable to extend logical pool %(pool)s. Details: %(err)s" +msgstr "" + +msgid "The parameter disks only can be updated for logical storage pool." +msgstr "" + +msgid "The SCSI host adapter name must be a string." +msgstr "" + +msgid "The storage pool kimchi_isos is reserved for internal use" +msgstr "" + +#, python-format +msgid "" +"Unable to activate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" + +#, python-format +msgid "" +"Unable to deactivate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" + +#, python-format +msgid "" +"Unable to deactivate pool %(name)s as it is associated with some templates" +msgstr "" + +#, python-format +msgid "Unable to delete pool %(name)s as it is associated with some templates" +msgstr "" + +#, python-format +msgid "" +"A volume group named '%(name)s' already exists. Please, choose another name " +"to create the logical pool." +msgstr "" + +#, python-format +msgid "Unable to update database with deep scan information due error: %(err)s" +msgstr "" + +#, python-format +msgid "Storage volume %(name)s already exists" +msgstr "" + +#, python-format +msgid "Storage volume %(name)s does not exist in storage pool %(pool)s" +msgstr "" + +#, python-format +msgid "" +"Unable to create storage volume %(volume)s because storage pool %(pool)s is " +"not active" +msgstr "" + +#, python-format +msgid "Specify %(item)s in order to create storage volume %(volume)s" +msgstr "" + +#, python-format +msgid "" +"Unable to list storage volumes because storage pool %(pool)s is not active" +msgstr "" + +#, python-format +msgid "" +"Unable to create storage volume %(name)s in storage pool %(pool)s. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to list storage volumes in storage pool %(pool)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to wipe storage volumes %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to delete storage volume %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to resize storage volume %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Storage type %(type)s does not support volume create and delete" +msgstr "" + +msgid "Storage volume name must be a string" +msgstr "" + +msgid "Storage volume allocation must be an integer number" +msgstr "" + +msgid "" +"Storage volume format not supported. Valid formats: bochs, cloop, cow, dmg, " +"qcow, qcow2, qed, raw, vmdk, vpc." +msgstr "" + +msgid "Storage volume requires a volume name" +msgstr "" + +#, python-format +msgid "" +"Unable to update database with storage volume information due error: %(err)s" +msgstr "" + +#, python-format +msgid "Only one of parameter %(param)s can be specified" +msgstr "" + +#, python-format +msgid "Create volume from %(param)s is not supported" +msgstr "" + +msgid "Storage volume capacity must be an integer number." +msgstr "" + +msgid "Storage volume URL must be http://, https://, ftp:// or ftps://." +msgstr "" + +#, python-format +msgid "Unable to access file %(url)s. Please, check it." +msgstr "" + +#, python-format +msgid "" +"Unable to clone storage volume '%(name)s' in pool '%(pool)s'. Details: " +"%(err)s" +msgstr "" + +msgid "Specify chunk data and its size to upload a file." +msgstr "" + +msgid "In order to upload a storage volume, specify the 'upload' parameter." +msgstr "" + +msgid "" +"Unable to upload chunk data as it does not match with requested chunk size." +msgstr "" + +#, python-format +msgid "The storage volume %(vol)s is not under an upload process." +msgstr "" + +msgid "The upload chunk data will exceed the storage volume size." +msgstr "" + +#, python-format +msgid "Unable to upload chunk data to storage volume. Details: %(err)s." +msgstr "" + +#, python-format +msgid "Interface %(name)s does not exist" +msgstr "" + +#, python-format +msgid "Network %(name)s already exists" +msgstr "" + +#, python-format +msgid "Network %(name)s does not exist" +msgstr "" + +#, python-format +msgid "Subnet %(subnet)s specified for network %(network)s is not valid." +msgstr "" + +#, python-format +msgid "Specify a network interface to create bridged network %(name)s" +msgstr "" + +#, python-format +msgid "Unable to delete active network %(name)s" +msgstr "" + +#, python-format +msgid "Interface %(iface)s specified for network %(network)s is already in use" +msgstr "" + +msgid "Interface should be bare NIC, bonding or bridge device." +msgstr "" + +#, python-format +msgid "Unable to create network %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to find a free IP address for network '%(name)s'" +msgstr "" + +#, python-format +msgid "The interface %(iface)s already exists." +msgstr "" + +msgid "Network name must be a string without slashes (/) or quotes (\")" +msgstr "" + +msgid "Supported network types are isolated, NAT and bridge" +msgstr "" + +msgid "Network subnet must be a string with IP address and prefix or netmask" +msgstr "" + +msgid "Network interface must be a string" +msgstr "" + +msgid "Network VLAN ID must be an integer between 1 and 4094" +msgstr "" + +msgid "Specify name and type to create a Network" +msgstr "" + +#, python-format +msgid "" +"Unable to delete network %(name)s. There are some virtual machines %(vms)s " +"and/or templates linked to this network." +msgstr "" + +#, python-format +msgid "" +"Unable to deactivate network %(name)s. There are some virtual machines " +"%(vms)s and/or templates linked to this network." +msgstr "" + +#, python-format +msgid "Bridge device %(name)s can not be the trunk device of a VLAN." +msgstr "" + +#, python-format +msgid "Failed to activate interface %(iface)s: %(err)s." +msgstr "" + +#, python-format +msgid "" +"Failed to activate interface %(iface)s. Please check the physical link " +"status." +msgstr "" + +#, python-format +msgid "Failed to start network %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Debug report %(name)s does not exist" +msgstr "" + +msgid "Debug report tool not found in system" +msgstr "" + +#, python-format +msgid "Unable to create debug report %(name)s. Details: %(err)s." +msgstr "" + +#, python-format +msgid "Can not find any debug report with the given name %(name)s" +msgstr "" + +#, python-format +msgid "Unable to generate debug report %(name)s. Details: %(err)s" +msgstr "" + +msgid "You should give a name for the debug report file." +msgstr "" + +msgid "" +"Debug report name must be a string. Only letters, digits, underscore ('_') " +"and hyphen ('-') are allowed." +msgstr "" + +#, python-format +msgid "" +"The debug report with specified name \"%(name)s\" already exists. Please use " +"another one." +msgstr "" + +#, python-format +msgid "Storage server %(server)s was not used by Kimchi" +msgstr "" + +#, python-format +msgid "Distro '%(name)s' does not exist" +msgstr "" + +#, python-format +msgid "Partition %(name)s does not exist in the host" +msgstr "" + +msgid "Unable to shutdown host machine as there are running virtual machines" +msgstr "" + +msgid "Unable to reboot host machine as there are running virtual machines" +msgstr "" + +#, python-format +msgid "Node device '%(name)s' not found" +msgstr "" + +msgid "Conflicting flag filters specified." +msgstr "" + +msgid "No packages marked for update" +msgstr "" + +#, python-format +msgid "Package %(name)s is not marked to be updated." +msgstr "" + +#, python-format +msgid "Error while getting packages marked to be updated. Details: %(err)s" +msgstr "" + +msgid "There is no compatible package manager for this system." +msgstr "" + +#, python-format +msgid "Unable to find %(item)s in datastore" +msgstr "" + +#, python-format +msgid "Invalid URI %(uri)s" +msgstr "" + +#, python-format +msgid "Timeout while running command '%(cmd)s' after %(seconds)s seconds" +msgstr "" + +msgid "Unable to choose a virtual machine name" +msgstr "" + +#, python-format +msgid "Invalid data value '%(value)s'" +msgstr "" + +#, python-format +msgid "Invalid data unit '%(unit)s'" +msgstr "" + +msgid "Invalid storage type. Types supported: 'cdrom', 'disk'" +msgstr "" + +#, python-format +msgid "The path '%(value)s' is not a valid local/remote path for the device" +msgstr "" + +msgid "Only CDROM path can be update." +msgstr "" + +#, python-format +msgid "" +"The storage device %(dev_name)s does not exist in the virtual machine " +"%(vm_name)s" +msgstr "" + +#, python-format +msgid "Error while creating new storage device: %(error)s" +msgstr "" + +#, python-format +msgid "Error while updating storage device: %(error)s" +msgstr "" + +#, python-format +msgid "Error while removing storage device: %(error)s" +msgstr "" + +msgid "Do not support IDE device hot plug" +msgstr "" + +msgid "" +"Specify type and path or type and pool/volume to add a new virtual machine " +"disk" +msgstr "" + +msgid "Specify path to update virtual machine disk" +msgstr "" + +#, python-format +msgid "Controller type %(type)s limitation of %(limit)s devices reached" +msgstr "" + +#, python-format +msgid "Cannot retrieve disk path information for given pool/volume: %(error)s" +msgstr "" + +msgid "Volume already in use by other virtual machine." +msgstr "" + +msgid "" +"Only one of path or pool/volume can be specified to add a new virtual " +"machine disk" +msgstr "" + +#, python-format +msgid "" +"Volume chosen with format %(format)s does not fit in the storage type " +"%(type)s" +msgstr "" + +msgid "YUM Repository ID must be one word only string." +msgstr "" + +msgid "Repository URL must be an http://, ftp:// or file:// URL." +msgstr "" + +msgid "" +"Repository configuration is a dictionary with specific values according to " +"repository type." +msgstr "" + +msgid "Distribution to DEB repository must be a string" +msgstr "" + +msgid "Components to DEB repository must be listed in a array" +msgstr "" + +msgid "Components to DEB repository must be a string" +msgstr "" + +msgid "Mirror list to repository must be a string" +msgstr "" + +msgid "YUM Repository name must be string." +msgstr "" + +msgid "GPG check must be a boolean value." +msgstr "" + +msgid "GPG key must be a URL pointing to the ASCII-armored file." +msgstr "" + +#, python-format +msgid "Could not update repository %(repo_id)s." +msgstr "" + +#, python-format +msgid "Repository %(repo_id)s does not exist." +msgstr "" + +msgid "" +"Specify repository base URL, mirror list or metalink in order to create or " +"update a YUM repository." +msgstr "" + +msgid "Repository management tool was not recognized for your system." +msgstr "" + +#, python-format +msgid "Repository %(repo_id)s is already enabled." +msgstr "" + +#, python-format +msgid "Repository %(repo_id)s is already disabled." +msgstr "" + +#, python-format +msgid "Could not remove repository %(repo_id)s." +msgstr "" + +#, python-format +msgid "Could not write repository configuration file %(repo_file)s" +msgstr "" + +msgid "Specify repository distribution in order to create a DEB repository." +msgstr "" + +#, python-format +msgid "Could not enable repository %(repo_id)s." +msgstr "" + +#, python-format +msgid "Could not disable repository %(repo_id)s." +msgstr "" + +msgid "YUM Repository ID already exists" +msgstr "" + +msgid "YUM Repository name must be a string" +msgstr "" + +#, python-format +msgid "Unable to list repositories. Details: '%(err)s'" +msgstr "" + +#, python-format +msgid "Unable to retrieve repository information. Details: '%(err)s'" +msgstr "" + +#, python-format +msgid "Unable to add repository. Details: '%(err)s'" +msgstr "" + +#, python-format +msgid "Unable to remove repository. Details: '%(err)s'" +msgstr "" + +#, python-format +msgid "" +"Configuration items: '%(items)s' are not supported by repository manager" +msgstr "" + +msgid "Repository metalink must be an http://, ftp:// or file:// URL." +msgstr "" + +msgid "Cannot specify mirrorlist and metalink at the same time." +msgstr "" + +#, python-format +msgid "" +"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it." +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Snapshot '%(name)s' does not exist on virtual machine '%(vm)s'." +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Unable to list snapshots on virtual machine '%(vm)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to delete snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to revert virtual machine '%(vm)s' to snapshot '%(name)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot of virtual machine '%(vm)s' because it contains a " +"disk with format '%(format)s'; only 'qcow2' is supported." +msgstr "" + +msgid "The number of vCPUs is too large for this system." +msgstr "" + +msgid "Invalid vCPU/topology combination." +msgstr "" + +msgid "This host (or current configuration) does not allow CPU topology." +msgstr "" + +msgid "ERROR CODE" +msgstr "" + +msgid "REASON" +msgstr "" + +msgid "STACK" +msgstr "" + +msgid "Go to Homepage" +msgstr "" + +msgid "Create a New Virtual Machine" +msgstr "" + +msgid "Virtual Machine Name" +msgstr "" + +msgid "" +"The name used to identify the virtual machine. If omitted, a name will be " +"chosen based on the template used." +msgstr "" + +msgid "Template" +msgstr "" + +msgid "Please create a template first." +msgstr "" + +msgid "Create a Template" +msgstr "" + +msgid "Please choose a template." +msgstr "" + +msgid "OS" +msgstr "" + +msgid "OS Version" +msgstr "" + +msgid "CPUS" +msgstr "" + +msgid "Memory" +msgstr "" + +msgid "Create" +msgstr "" + +msgid "Creating..." +msgstr "" + +msgid "Edit Guest" +msgstr "" + +msgid "General" +msgstr "" + +msgid "Storage" +msgstr "" + +msgid "Interface" +msgstr "" + +msgid "Permission" +msgstr "" + +msgid "Host PCI Device" +msgstr "" + +msgid "Snapshot" +msgstr "" + +msgid "Name" +msgstr "" + +msgid "CPUs" +msgstr "" + +msgid "Memory (MB)" +msgstr "" + +msgid "Icon" +msgstr "" + +msgid "Device" +msgstr "" + +msgid "Path" +msgstr "" + +msgid "Network" +msgstr "" + +msgid "Type" +msgstr "" + +msgid "MAC Address" +msgstr "" + +msgid "Available system users and groups" +msgstr "" + +msgid "Selected system users and groups" +msgstr "" + +msgid "User" +msgstr "" + +msgid "All" +msgstr "" + +msgid "To Add" +msgstr "" + +msgid "Added" +msgstr "" + +msgid "filter" +msgstr "" + +msgid "Product" +msgstr "" + +msgid "Vendor" +msgstr "" + +msgid "Created" +msgstr "" + +msgid "Save" +msgstr "" + +msgid "Replace" +msgstr "" + +msgid "Detach" +msgstr "" + +msgid "Cancel" +msgstr "" + +msgid "revert" +msgstr "" + +msgid "Add a Storage Device to VM" +msgstr "" + +msgid "Device Type" +msgstr "" + +msgid "The device type. Currently, \"cdrom\" and \"disk\" are supported." +msgstr "" + +msgid "Storage Pool" +msgstr "" + +msgid "Storage pool which volume located in" +msgstr "" + +msgid "Storage Volume" +msgstr "" + +msgid "Storage volume to be attached" +msgstr "" + +msgid "File Path" +msgstr "" + +msgid "The ISO file path in the server for CDROM." +msgstr "" + +msgid "Attach" +msgstr "" + +msgid "Start" +msgstr "" + +msgid "Reset" +msgstr "" + +msgid "Pause" +msgstr "" + +msgid "Resume" +msgstr "" + +msgid "Power Off" +msgstr "" + +msgid "Actions" +msgstr "" + +msgid "Connect" +msgstr "" + +msgid "Clone" +msgstr "" + +msgid "Edit" +msgstr "" + +msgid "Shut Down" +msgstr "" + +msgid "Delete" +msgstr "" + +msgid "The username or password you entered is incorrect. Please try again." +msgstr "" + +msgid "This field is required." +msgstr "" + +msgid "Log in" +msgstr "" + +msgid "Logging in..." +msgstr "" + +msgid "Host" +msgstr "" + +msgid "Guests" +msgstr "" + +msgid "Templates" +msgstr "" + +msgid "Failed to get application configuration" +msgstr "" + +msgid "This is not a valid Linux path" +msgstr "" + +msgid "This is not a valid URL." +msgstr "" + +msgid "No such data available." +msgstr "" + +msgid "" +"Can not contact the host system. Verify the host system is up and that you " +"have network connectivity to it. HTTP request response %1. " +msgstr "" + +msgid "Unable to read file." +msgstr "" + +msgid "Error while uploading file." +msgstr "" + +msgid "Delete Confirmation" +msgstr "" + +msgid "OK" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Warning" +msgstr "" + +msgid "Cloning..." +msgstr "" + +msgid "Loading..." +msgstr "" + +msgid "An error occurred while retrieving system information." +msgstr "" + +msgid "Retry" +msgstr "" + +msgid "Detailed message:" +msgstr "" + +msgid "No ISO found" +msgstr "" + +msgid "This is not a valid ISO file." +msgstr "" + +msgid "This may take a long time. Do you want to continue?" +msgstr "" + +msgid "This will permanently delete the template. Would you like to continue?" +msgstr "" + +msgid "Unable to shut down system as there are some virtual machines running!" +msgstr "" + +msgid "Max:" +msgstr "" + +msgid "Utilization" +msgstr "" + +msgid "Available" +msgstr "" + +msgid "Read Rate" +msgstr "" + +msgid "Write Rate" +msgstr "" + +msgid "Received" +msgstr "" + +msgid "Sent" +msgstr "" + +msgid "" +"Shutting down or restarting host will cause unsaved work lost. Continue to " +"shut down/restarting?" +msgstr "" + +msgid "" +"Repository will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" + +msgid "Repositories" +msgstr "" + +msgid "ID" +msgstr "" + +msgid "Base URL" +msgstr "" + +msgid "Is Mirror" +msgstr "" + +msgid "URL Args" +msgstr "" + +msgid "Enabled" +msgstr "" + +msgid "GPG Check" +msgstr "" + +msgid "GPG Key" +msgstr "" + +msgid "Add" +msgstr "" + +msgid "Remove" +msgstr "" + +msgid "Enable" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Software Updates" +msgstr "" + +msgid "Package Name" +msgstr "" + +msgid "Version" +msgstr "" + +msgid "Architecture" +msgstr "" + +msgid "Repository" +msgstr "" + +msgid "Update All" +msgstr "" + +msgid "Updating..." +msgstr "" + +msgid "Failed to retrieve packages update information." +msgstr "" + +msgid "Failed to update package(s)." +msgstr "" + +msgid "" +"Debug report will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" + +msgid "Debug Reports" +msgstr "" + +msgid "Generated Time" +msgstr "" + +msgid "Generate" +msgstr "" + +msgid "Generating..." +msgstr "" + +msgid "Rename" +msgstr "" + +msgid "Download" +msgstr "" + +msgid "" +"Report name should contain only letters, digits, underscore ('_') and/or " +"hyphen ('-')." +msgstr "" + +msgid "Pending..." +msgstr "" + +msgid "Report name is the same as the original one." +msgstr "" + +msgid "" +"This will delete the virtual machine and its virtual disks. This operation " +"cannot be undone. Would you like to continue?" +msgstr "" + +msgid "Power off Confirmation" +msgstr "" + +msgid "" +"This action may produce undesirable results, for example unflushed disk " +"cache in the guest. Would you like to continue?" +msgstr "" + +msgid "Reset Confirmation" +msgstr "" + +msgid "" +"There is a risk of data loss caused by reset without the guest OS shutdown. " +"Would you like to continue?" +msgstr "" + +msgid "Shut Down Confirmation" +msgstr "" + +msgid "Note the guest OS may ignore this request. Would you like to continue?" +msgstr "" + +msgid "Virtual Machine delete Confirmation" +msgstr "" + +msgid "" +"This virtual machine is not persistent. Power Off will delete it. Continue?" +msgstr "" + +msgid "" +"When the target guest has SCSI or iSCSI volumes, they will be cloned on " +"default storage pool. The same will happen when the target pool does not " +"have enough space to clone the volumes. Do you want to continue?" +msgstr "" + +msgid "" +"This CDROM will be detached permanently and you can re-attach it. Continue " +"to detach it?" +msgstr "" + +msgid "Attaching..." +msgstr "" + +msgid "Replacing..." +msgstr "" + +msgid "Successfully attached!" +msgstr "" + +msgid "Successfully replaced!" +msgstr "" + +msgid "Successfully detached!" +msgstr "" + +msgid "" +"This disk will be detached permanently and you can re-attach it. Continue to " +"detach it?" +msgstr "" + +msgid "interface:" +msgstr "" + +msgid "address:" +msgstr "" + +msgid "link_type:" +msgstr "" + +msgid "block:" +msgstr "" + +msgid "drive_type:" +msgstr "" + +msgid "model:" +msgstr "" + +msgid "Affected devices:" +msgstr "" + +msgid "The VLAN id must be between 1 and 4094." +msgstr "" + +msgid "unavailable" +msgstr "" + +msgid "" +"This action will interrupt network connectivity for any virtual machine that " +"depend on this network." +msgstr "" + +msgid "Create a network" +msgstr "" + +msgid "" +"This network is not persistent. Instead of stop, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" + +msgid "" +"The bridged VLAN tag may not work well with NetworkManager enabled. You " +"should consider disabling it." +msgstr "" + +msgid "" +"This will permanently delete the storage pool. Would you like to continue?" +msgstr "" + +msgid "This storage pool is empty." +msgstr "" + +msgid "" +"It will format your disk and you will loose any data in there, are you sure " +"to continue? " +msgstr "" + +msgid "SCSI Fibre Channel" +msgstr "" + +msgid "No SCSI adapters found." +msgstr "" + +msgid "Loading iSCSI targets..." +msgstr "" + +msgid "No iSCSI found. Please input one." +msgstr "" + +msgid "Failed to load iSCSI targets." +msgstr "" + +msgid "The storage pool name can not be blank." +msgstr "" + +msgid "The storage pool path can not be blank." +msgstr "" + +msgid "NFS server mount path can not be blank." +msgstr "" + +msgid "Invalid NFS mount path." +msgstr "" + +msgid "No logical device selected." +msgstr "" + +msgid "The iSCSI target can not be blank." +msgstr "" + +msgid "Server name can not be blank." +msgstr "" + +msgid "This is not a valid Server Name or IP. Please, modify it." +msgstr "" + +msgid "Looking for available partitions ..." +msgstr "" + +msgid "No available partitions found." +msgstr "" + +msgid "" +"This storage pool is not persistent. Instead of deactivate, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" + +msgid "Unable to retrieve partitions information." +msgstr "" + +msgid "In progress..." +msgstr "" + +msgid "Failed!" +msgstr "" + +msgid "CDROM path needs to be a valid local/remote path and cannot be blank." +msgstr "" + +msgid "Disk pool or volume cannot be blank." +msgstr "" + +msgid "Peers" +msgstr "" + +msgid "Searching" +msgstr "" + +msgid "No peers found." +msgstr "" + +msgid "Help" +msgstr "" + +msgid "About" +msgstr "" + +msgid "Log out" +msgstr "" + +msgid "Version:" +msgstr "" + +msgid "Session timeout, please re-login." +msgstr "" + +msgid "User Name" +msgstr "" + +msgid "Password" +msgstr "" + +msgid "Generate a New Debug Report" +msgstr "" + +msgid "Report Name" +msgstr "" + +msgid "" +"The name used to identify the report. If omitted, a name will be chosen " +"based on current time. Name can contain: letters, digits, underscore (\"_\") " +"and hyphen (\"-\")." +msgstr "" + +msgid "Rename a Debug Report" +msgstr "" + +msgid "" +"The name used to identify the report. Name can contain: letters, digits and " +"hyphen (\"-\")." +msgstr "" + +msgid "Submit" +msgstr "" + +msgid "Add a Repository" +msgstr "" + +msgid "Identifier" +msgstr "" + +msgid "Single word, unique identifier for the repository." +msgstr "" + +msgid "Textual name for the repository." +msgstr "" + +msgid "URL" +msgstr "" + +msgid "Required Field" +msgstr "" + +msgid "URL to the repository. Supported protocols are http, ftp, and file." +msgstr "" + +msgid "Repository is a mirror" +msgstr "" + +msgid "Distribution" +msgstr "" + +msgid "Distribution of the DEB repository." +msgstr "" + +msgid "Components" +msgstr "" + +msgid "List of components in DEB repository." +msgstr "" + +msgid "Edit Repository" +msgstr "" + +msgid "Mirror List URL" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Add a Volume to Storage Pool" +msgstr "" + +msgid "Fetch from remote URL" +msgstr "" + +msgid "Enter the remote URL here." +msgstr "" + +msgid "Upload a file" +msgstr "" + +msgid "Choose the file you want to upload." +msgstr "" + +msgid "Define a New Storage Pool" +msgstr "" + +msgid "Storage Pool Name" +msgstr "" + +msgid "" +"The name used to identify the storage pools, and it should not be empty." +msgstr "" + +msgid "Storage Pool Type" +msgstr "" + +msgid "Storage Path" +msgstr "" + +msgid "" +"The path of the Storage Pool. Each Storage Pool must have a unique path." +msgstr "" + +msgid "" +"Kimchi will try to create the directory when it does not already exist in " +"your system." +msgstr "" + +msgid "NFS Server IP" +msgstr "" + +msgid "NFS server IP or hostname. It can be input or chosen from history." +msgstr "" + +msgid "NFS Path" +msgstr "" + +msgid "The NFS exported path on NFS server." +msgstr "" + +msgid "Device path" +msgstr "" + +msgid "iSCSI Server" +msgstr "" + +msgid "iSCSI server IP or hostname. It should not be empty." +msgstr "" + +msgid "Server" +msgstr "" + +msgid "Port" +msgstr "" + +msgid "Target" +msgstr "" + +msgid "The iSCSI target on iSCSI server" +msgstr "" + +msgid "Add iSCSI Authentication" +msgstr "" + +msgid "iSCSI Authentication" +msgstr "" + +msgid "SCSI Adapter" +msgstr "" + +msgid "Please, wait..." +msgstr "" + +msgid "Add Template" +msgstr "" + +msgid "Where is the source media for this template? " +msgstr "" + +msgid "Local ISO Image" +msgstr "" + +msgid "Local Image File" +msgstr "" + +msgid "Remote ISO Image" +msgstr "" + +msgid "Search ISOs" +msgstr "" + +msgid "The following ISOs are available:" +msgstr "" + +msgid "OS: " +msgstr "" + +msgid "Version: " +msgstr "" + +msgid "Size: " +msgstr "" + +msgid "Search more ISOs" +msgstr "" + +msgid "Create Templates from Selected ISO" +msgstr "" + +msgid "I want to use a specific ISO file" +msgstr "" + +msgid "Loading default remote ISOs ..." +msgstr "" + +msgid "Arch: " +msgstr "" + +msgid "I want to use a custom URL" +msgstr "" + +msgid "Edit Template" +msgstr "" + +msgid "Processor" +msgstr "" + +msgid "CDROM" +msgstr "" + +msgid "Image File" +msgstr "" + +msgid "Graphics" +msgstr "" + +msgid "Disk(GB)" +msgstr "" + +msgid "Disk Format" +msgstr "" + +msgid "CPU Number" +msgstr "" + +msgid "Manually set CPU topology" +msgstr "" + +msgid "Cores" +msgstr "" + +msgid "Threads" +msgstr "" + +msgid "CPU" +msgstr "" + +msgid "Disk I/O" +msgstr "" + +msgid "Network I/O" +msgstr "" + +msgid "Livetile" +msgstr "" + +msgid "No guests found." +msgstr "" + +msgid "Shut down" +msgstr "" + +msgid "Restart" +msgstr "" + +msgid "Basic Information" +msgstr "" + +msgid "OS Distro" +msgstr "" + +msgid "OS Code Name" +msgstr "" + +msgid "CPU(s)" +msgstr "" + +msgid "System Statistics" +msgstr "" + +msgid "Update Progress" +msgstr "" + +msgid "Network Name" +msgstr "" + +msgid "State" +msgstr "" + +msgid "Network Type" +msgstr "" + +msgid "Address Space" +msgstr "" + +msgid "Name should not contain '/' and '\"'." +msgstr "" + +msgid "Isolated: no external network connection" +msgstr "" + +msgid "NAT: outbound physical network connection only" +msgstr "" + +msgid "Bridged: Virtual machines are connected to physical network directly" +msgstr "" + +msgid "(No interfaces found)" +msgstr "" + +msgid "Destination" +msgstr "" + +msgid "Enable VLAN" +msgstr "" + +msgid "VLAN ID" +msgstr "" + +msgid "Stop" +msgstr "" + +msgid "%Used" +msgstr "" + +msgid "Location" +msgstr "" + +msgid "Capacity" +msgstr "" + +msgid "Allocated" +msgstr "" + +msgid "active" +msgstr "" + +msgid "inactive" +msgstr "" + +msgid "Deactivate" +msgstr "" + +msgid "Activate" +msgstr "" + +msgid "Add Volume" +msgstr "" + +msgid "Extend" +msgstr "" + +msgid "Undefine" +msgstr "" + +msgid "Format" +msgstr "" + +msgid "Allocation" +msgstr "" + +msgid "No templates found." +msgstr "" diff --git a/po/es_ES.po b/po/es_ES.po new file mode 100644 index 0000000..64ae72f --- /dev/null +++ b/po/es_ES.po @@ -0,0 +1,2337 @@ +# English translations for kimchi package. +# Copyright (C) 2013 ORGANIZATION +# +msgid "" +msgstr "" +"Project-Id-Version: kimchi 0.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-09 17:37-0300\n" +"PO-Revision-Date: 2013-07-11 17:32-0400\n" +"Last-Translator: Crístian Viana <vianac@linux.vnet.ibm.com>\n" +"Language-Team: English\n" +"Language: es_ES\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#, python-format +msgid "Unknown parameter %(value)s" +msgstr "" + +#, python-format +msgid "Delete is not allowed for %(resource)s" +msgstr "Suprimir no está permitido para %(resource)s" + +#, python-format +msgid "%(resource)s does not implement update method" +msgstr "%(resource)s no implementa método de actualización" + +#, python-format +msgid "Create is not allowed for %(resource)s" +msgstr "Crear no está permitido para %(resource)s" + +msgid "Unable to parse JSON request" +msgstr "No se puede analizar la solicitud JSON" + +msgid "This API only supports JSON" +msgstr "Esta API sólo da soporte a JSON" + +#, python-format +msgid "Parameters does not match requirement in schema: %(err)s" +msgstr "" + +msgid "You don't have permission to perform this operation." +msgstr "" + +msgid "Datastore is not initiated in the model object." +msgstr "El almacén de datos no se ha iniciado en el objeto de modelo." + +#, python-format +msgid "Unable to start task due error: %(err)s" +msgstr "No se puede iniciar la tarea debido a un error: %(err)s" + +#, python-format +msgid "Timeout of %(seconds)s seconds expired while running task '%(task)s." +msgstr "" + +#, python-format +msgid "Authentication failed for user '%(username)s'. [Error code: %(code)s]" +msgstr "" +"La autenticación ha fallado para el usuario '%(username)s'. [Código de " +"error: %(code)s]" + +msgid "You are not authorized to access Kimchi" +msgstr "No tiene autorización para acceder a Kimchi" + +#, python-format +msgid "Specify %(item)s to login into Kimchi" +msgstr "Especifique %(item)s para iniciar la sesión en Kimchi" + +#, python-format +msgid "User %(user_id)s not found with given LDAP settings." +msgstr "" + +#, python-format +msgid "Invalid LDAP configuration: %(item)s : %(value)s" +msgstr "" + +msgid "Unknown \"_cap\" specified" +msgstr "" + +msgid "\"_passthrough\" should be \"true\" or \"false\"" +msgstr "" + +msgid "\"_passthrough_affected_by\" should be a device name string" +msgstr "" + +#, python-format +msgid "Error while getting block devices. Details: %(err)s" +msgstr "" +"Se ha producido un error al obtener dispositivos de bloque. Detalles: %(err)s" + +#, python-format +msgid "Error while getting block device information for %(device)s." +msgstr "" +"Se ha producido un error al obtener información de dispositivo de bloque " +"para %(device)s." + +#, python-format +msgid "Unable to find distro file: %(filename)s" +msgstr "No se puede encontrar el archivo distro: %(filename)s" + +#, python-format +msgid "" +"Unable to parse distro file: %(filename)s. Make sure, it is a JSON file." +msgstr "" +"No se puede analizar el archivo distro: %(filename)s. Asegúrese de que es un " +"archivo JSON." + +#, python-format +msgid "Unable to login to iSCSI host target %(portal)s. Details: %(err)s" +msgstr "" +"No se puede iniciar la sesión en %(portal)s del destino de host iSCSI. " +"Detalles: %(err)s" + +#, python-format +msgid "Unable to login to iSCSI host %(host)s target %(target)s" +msgstr "" +"No se puede iniciar la sesión en el destino %(target)s del %(host)s host de " +"iSCSI" + +#, python-format +msgid "Unable to find ISO file %(filename)s" +msgstr "" + +#, python-format +msgid "The ISO file %(filename)s is not bootable" +msgstr "El archivo ISO %(filename)s no es arrancable" + +#, python-format +msgid "The ISO file %(filename)s does not have a valid El Torito boot record" +msgstr "" +"El archivo ISO %(filename)s no tiene un registro de arranque de El Torito " +"válido" + +#, python-format +msgid "Invalid El Torito validation entry in ISO %(filename)s" +msgstr "Entrada de validación de El Torito no válida en ISO %(filename)s" + +#, python-format +msgid "Invalid El Torito boot indicator in ISO %(filename)s" +msgstr "Indicador de arranque de El Torito no válido en ISO %(filename)s" + +#, python-format +msgid "Unexpected volume type for primary volume in ISO %(filename)s" +msgstr "" +"Tipo de volumen inesperado para el volumen primario en ISO %(filename)s" + +#, python-format +msgid "Bad format while reading volume descriptor in ISO %(filename)s" +msgstr "" +"Formato incorrecto mientras se leía el descriptor de volumen en ISO " +"%(filename)s" + +#, python-format +msgid "" +"The hypervisor doesn't have permission to use this ISO %(filename)s. " +"Consider moving it under /var/lib/libvirt, or set the search permission to " +"file access control lists for '%(user)s' user if possible, or add the " +"'%(user)s' to the ISO path group, or (not recommended) 'chmod -R o+x " +"'path_to_iso'.Details: %(err)s" +msgstr "" +"El hipervisor no tiene permiso para utilizar este ISO %(filename)s. " +"Considere moverlo a /var/lib/libvirt, o establezca el permiso de búsqueda en " +"listas de control de accesos de archivo para el usuario '%(user)s' si es " +"posible, o añada el '%(user)s' al grupo de vías de acceso ISO, o (no " +"recomendado) 'chmod -R o+x 'path_to_iso'.Detalles: %(err)s" + +msgid "An error occurred when probing image OS information." +msgstr "" + +msgid "No OS information found in given image." +msgstr "" + +#, python-format +msgid "Unable to read image file %(filename)s" +msgstr "" + +#, python-format +msgid "" +"Image file must be an existing file on system. %(filename)s is not a valid " +"input." +msgstr "" + +#, python-format +msgid "Virtual machine %(name)s already exists" +msgstr "La máquina virtual %(name)s ya existe" + +#, python-format +msgid "Virtual machine %(name)s does not exist" +msgstr "La máquina virtual %(name)s no existe" + +#, python-format +msgid "" +"Unable to rename virtual machine %(name)s. The name %(new_name)s is already " +"in use or the virtual machine is not powered off." +msgstr "" + +#, python-format +msgid "Unable to retrieve screenshot for stopped virtual machine %(name)s" +msgstr "" +"No se puede recuperar la captura de pantalla para la máquina virtual " +"detenida %(name)s" + +msgid "Remote ISO image is not supported by this server." +msgstr "La imagen ISO remota no está soportada por este servidor." + +#, python-format +msgid "Screenshot is not supported on virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Unable to create virtual machine %(name)s. Details: %(err)s" +msgstr "No se puede crear la máquina virtual %(name)s. Detalles: %(err)s" + +#, python-format +msgid "Unable to update virtual machine %(name)s. Details: %(err)s" +msgstr "No se puede crear la máquina virtual %(name)s. Detalles: %(err)s" + +#, python-format +msgid "Unable to retrieve virtual machine %(name)s. Details: %(err)s" +msgstr "No se puede recuperar la máquina virtual %(name)s. Detalles: %(err)s" + +#, python-format +msgid "Unable to connect to powered off virtual machine %(name)s." +msgstr "" + +msgid "Virtual machine name must be a string without slashes (/)" +msgstr "" + +#, python-format +msgid "Invalid template URI %(value)s specified for virtual machine" +msgstr "" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for virtual machine" +msgstr "" + +msgid "Supported virtual machine graphics are Spice or VNC" +msgstr "" + +msgid "Graphics address to listen on must be IPv4 or IPv6" +msgstr "" +"La dirección de gráficos en que hay que estar a la escucha debe ser IPv4 o " +"IPv6" + +msgid "Specify a template to create a virtual machine from" +msgstr "" +"Especifique una plantilla a partir de la que se creará una máquina virtual" + +#, python-format +msgid "Unable to start virtual machine %(name)s. Details: %(err)s" +msgstr "No se puede iniciar la máquina virtual %(name)s. Detalles: %(err)s" + +#, python-format +msgid "Unable to power off virtual machine %(name)s. Details: %(err)s" +msgstr "No se puede detener la máquina virtual %(name)s. Detalles: %(err)s" + +#, python-format +msgid "Unable to delete virtual machine %(name)s. Details: %(err)s" +msgstr "No se puede suprimir la máquina virtual %(name)s. Detalles: %(err)s" + +#, python-format +msgid "Unable to reset virtual machine %(name)s. Details: %(err)s" +msgstr "No se puede redenominar la máquina virtual %(name)s. Detalles: %(err)s" + +msgid "User name list must be an array" +msgstr "" + +msgid "User name must be a string" +msgstr "El nombre de red debe ser una serie" + +msgid "Group name list must be an array" +msgstr "" + +msgid "Group name must be a string" +msgstr "El nombre de red debe ser una serie" + +#, python-format +msgid "User(s) '%(users)s' do not exist" +msgstr "El usuario '%(users)s' no existe." + +#, python-format +msgid "Group(s) '%(groups)s' do not exist" +msgstr "El usuario '%(groups)s' no existe." + +#, python-format +msgid "Unable to shutdown virtual machine %(name)s. Details: %(err)s" +msgstr "No se puede detener la máquina virtual %(name)s. Detalles: %(err)s" + +#, python-format +msgid "" +"Unable to get access metadata of virtual machine %(name)s. Details: %(err)s" +msgstr "No se puede iniciar la máquina virtual %(name)s. Detalles: %(err)s" + +msgid "The guest console password must be a string." +msgstr "" + +msgid "The life time for the guest console password must be a number." +msgstr "" + +#, python-format +msgid "Virtual machine '%(name)s' must be stopped before cloning it." +msgstr "" + +#, python-format +msgid "Insufficient disk space to clone virtual machine '%(name)s'" +msgstr "" + +#, python-format +msgid "Unable to clone VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Invalid operation for non-persistent virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Cannot suspend VM '%(name)s' because it is not running." +msgstr "" + +#, python-format +msgid "Unable to suspend VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Cannot resume VM '%(name)s' because it is not paused." +msgstr "" + +#, python-format +msgid "Unable to resume VM '%(name)s'. Details: %(err)s" +msgstr "" + +msgid "Memory assigned is higher then the maximum allowed in the host." +msgstr "" + +#, python-format +msgid "" +"VM '%(name)s' does not support live memory update. Update the memory with " +"the machine offline to enable this feature." +msgstr "" + +msgid "Only increase memory is allowed in active VMs" +msgstr "" + +msgid "" +"For live memory update, new memory value must be equal old memory value plus " +"multiples of 1024 Mib" +msgstr "" + +msgid "There are not enough free slots of 1024 Mib in the guest." +msgstr "" + +msgid "" +"Host's libvirt version does not support memory devices. Libvirt must be >= " +"1.2.14" +msgstr "" + +#, python-format +msgid "Error attaching memory device. Details: %(error)s" +msgstr "" + +#, python-format +msgid "" +"VM %(vmid)s does not contain directly assigned host device %(dev_name)s." +msgstr "" + +#, python-format +msgid "The host device %(dev_name)s is not allowed to directly assign to VM." +msgstr "" + +msgid "" +"No IOMMU groups found. Host PCI pass through needs IOMMU group to function " +"correctly. Please enable Intel VT-d or AMD IOMMU in your BIOS, then verify " +"the Kernel is compiled with IOMMU support. For Intel CPU, add intel_iommu=on " +"to your Kernel parameter in /boot/grub2/grub.conf. For AMD CPU, add iommu=pt " +"iommu=1." +msgstr "" + +msgid "\"name\" should be a device name string" +msgstr "" + +#, python-format +msgid "Interface %(iface)s does not exist in virtual machine %(name)s" +msgstr "La interfaz %(iface)s no existe en la máquina virtual %(name)s" + +#, python-format +msgid "" +"Network %(network)s specified for virtual machine %(name)s does not exist" +msgstr "" +"La red %(network)s especificada para la máquina virtual %(name)s no existe" + +msgid "Supported virtual machine interfaces type is only network" +msgstr "El tipo de interfaces de máquina virtual soportado es de red solamente" + +msgid "Network name for virtual machine interface must be a string" +msgstr "" +"El nombre de red para la interfaz de máquina virtual debe ser una serie" + +msgid "Invalid network model card specified for virtual machine interface" +msgstr "" +"Especificada tarjeta de modelo de red no válida para la interfaz de máquina " +"virtual" + +msgid "Specify type and network to add a new virtual machine interface" +msgstr "" +"Especifique el tipo y la red para añadir una interfaz de máquina virtual " +"nueva" + +msgid "MAC Address must respect this format FF:FF:FF:FF:FF:FF" +msgstr "" + +#, python-format +msgid "MAC Address %(mac)s already exists in virtual machine %(name)s" +msgstr "" + +msgid "Invalid MAC Address" +msgstr "" + +msgid "Cannot change MAC address of a running virtual machine" +msgstr "" + +#, python-format +msgid "Template %(name)s already exists" +msgstr "La plantilla %(name)s ya existe" + +#, python-format +msgid "" +"Network '%(network)s' specified for template %(template)s does not exist" +msgstr "" +"La red '%(network)s' especificada para la plantilla %(template)s no existe" + +#, python-format +msgid "" +"Storage pool %(pool)s specified for template %(template)s does not exist" +msgstr "" +"La agrupación de almacenamiento %(pool)s especificada para la plantilla " +"%(template)s no existe" + +#, python-format +msgid "Storage pool %(pool)s specified for template %(template)s is not active" +msgstr "" +"La agrupación de almacenamiento %(pool)s especificada para la plantilla " +"%(template)s no está activa" + +#, python-format +msgid "Invalid parameter '%(param)s' specified for CDROM." +msgstr "Parámetro no válido '%(param)s' especificado para CDROM." + +#, python-format +msgid "Network %(network)s specified for template %(template)s is not active" +msgstr "" +"La red %(network)s especificada para la plantilla %(template)s no está activa" + +msgid "Template name must be a string" +msgstr "El nombre de plantilla debe ser una serie" + +msgid "Template icon must be a path to the image" +msgstr "El icono de plantilla debe ser una vía de acceso a la imagen" + +msgid "Template distribution must be a string" +msgstr "La distribución de plantilla debe ser una serie" + +msgid "Template distribution version must be a string" +msgstr "La versión de distribución de plantilla debe ser una serie" + +msgid "The number of CPUs must be an integer greater than 0" +msgstr "El número de CPUs debe ser un entero" + +msgid "Amount of memory (MB) must be an integer greater than 512" +msgstr "La cantidad de memoria (MB) debe ser un entero mayor que 512" + +msgid "Template CDROM must be a local or remote ISO file" +msgstr "El CDROM de plantilla debe ser un archivo ISO local o remoto" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for template" +msgstr "" +"URI de agrupación de almacenamiento no válido %(value)s especificado para la " +"plantilla" + +msgid "Specify an ISO image as CDROM or a base image to create a template" +msgstr "Especifique una imagen de ISO como CDROM para crear una plantilla" + +msgid "All networks for the template must be specified in a list." +msgstr "Todas las redes para la plantilla deben especificarse en una lista." + +msgid "Specify a volume to a template when storage pool is iSCSI or SCSI" +msgstr "" + +#, python-format +msgid "The volume %(volume)s is not in storage pool %(pool)s" +msgstr "" + +#, python-format +msgid "Unable to create template due error: %(err)s" +msgstr "No se puede crear la plantilla debido a un error: %(err)s" + +#, python-format +msgid "Unable to delete template due error: %(err)s" +msgstr "No se puede suprimir la plantilla debido a un error: %(err)s" + +msgid "Disk size must be an integer greater than 1GB." +msgstr "" + +msgid "Template base image must be a valid local image file" +msgstr "El CDROM de plantilla debe ser un archivo ISO local o remoto" + +#, python-format +msgid "Cannot identify base image %(path)s format" +msgstr "" + +msgid "" +"When specifying CPU topology, VCPUs must be a product of sockets, cores, and " +"threads." +msgstr "" + +msgid "" +"When specifying CPU topology, each element must be an integer greater than " +"zero." +msgstr "" + +msgid "" +"Invalid disk image format. Valid formats: bochs, cloop, cow, dmg, qcow, " +"qcow2, qed, raw, vmdk, vpc." +msgstr "" + +#, python-format +msgid "Storage pool %(name)s already exists" +msgstr "La agrupación de almacenamiento %(name)s ya existe" + +#, python-format +msgid "Storage pool %(name)s does not exist" +msgstr "La agrupación de almacenamiento %(name)s no existe" + +#, python-format +msgid "Specify %(item)s in order to create the storage pool %(name)s" +msgstr "" +"Especifique %(item)s para poder crear la agrupación de almacenamiento " +"%(name)s" + +#, python-format +msgid "Unable to delete active storage pool %(name)s" +msgstr "No se puede suprimir la agrupación de almacenamiento activa %(name)s" + +#, python-format +msgid "Unable to list storage pools. Details: %(err)s" +msgstr "No se pueden listar agrupaciones de almacenamiento. Detalles: %(err)s" + +#, python-format +msgid "Unable to create storage pool %(name)s. Details: %(err)s" +msgstr "" +"No se puede crear la agrupación de almacenamiento %(name)s. Detalles: %(err)s" + +#, python-format +msgid "" +"Unable to get number of storage volumes in storage pool %(name)s. Details: " +"%(err)s" +msgstr "" +"No se puede obtener el número de volúmenes de almacenamiento en la " +"agrupación de almacenamiento %(name)s. Detalles: %(err)s" + +#, python-format +msgid "Unable to activate storage pool %(name)s. Details: %(err)s" +msgstr "" +"No se puede activar la agrupación de almacenamiento %(name)s. Detalles: " +"%(err)s" + +#, python-format +msgid "Unable to deactivate storage pool %(name)s. Details: %(err)s" +msgstr "" +"No se puede desactivar la agrupación de almacenamiento %(name)s. Detalles: " +"%(err)s" + +#, python-format +msgid "Unable to delete storage pool %(name)s. Details: %(err)s" +msgstr "" +"No se puede suprimir la agrupación de almacenamiento %(name)s. Detalles: " +"%(err)s" + +#, python-format +msgid "" +"Unable to create NFS Pool as export path %(path)s may block during mount" +msgstr "" +"No se puede crear la agrupación de NFS ya que la vía de acceso de " +"exportación %(path)s podría bloquearse durante el montaje" + +#, python-format +msgid "Unable to create NFS Pool as export path %(path)s mount failed" +msgstr "" +"No se puede crear la agrupación de NFS ya que el montaje de la vía de acceso " +"de exportación %(path)s ha fallado" + +#, python-format +msgid "Unsupported storage pool type: %(type)s" +msgstr "Tipo de agrupación de almacenamiento no soportado: %(type)s" + +#, python-format +msgid "Error while retrieving storage pool XML to %(pool)s" +msgstr "" + +msgid "Storage pool name must be a string without slashes (/)" +msgstr "" + +msgid "" +"Supported storage pool types are dir, netfs, logical, iscsi, isci and kimchi-" +"iso" +msgstr "" + +msgid "Storage pool path must be a string" +msgstr "La vía de acceso de la agrupación de almacenamiento debe ser una serie" + +msgid "Storage pool host must be a IP or hostname" +msgstr "" +"El host de la agrupación de almacenamiento debe ser un IP o nombre de host" + +msgid "Storage pool device must be the absolute path to the block device" +msgstr "" + +msgid "Storage pool devices parameter must be a list" +msgstr "" +"El parámetro de los dispositivos de agrupación de almacenamiento debe ser " +"una lista" + +msgid "Target IQN of an iSCSI pool must be a string" +msgstr "El IQN destino de una agrupación de iSCSI debe ser una serie" + +msgid "Port of a remote storage server must be an integer between 1 and 65535" +msgstr "" +"El puerto de un servidor de almacenamiento remoto debe ser un entero entre 1 " +"y 65535" + +msgid "iSCSI target username must be a string" +msgstr "" + +msgid "iSCSI target password must be a string" +msgstr "" + +msgid "Specify name and type to create a storage pool" +msgstr "" +"Especifique el nombre y el tipo para crear una agrupación de almacenamiento" + +#, python-format +msgid "" +"%(disk)s is not a valid disk/partition. Could not add it to the pool " +"%(pool)s." +msgstr "" +"%(disk)s no es un disco/partición. No se ha podido añadir a la agrupación " +"%(pool)s." + +#, python-format +msgid "Unable to extend logical pool %(pool)s. Details: %(err)s" +msgstr "" + +msgid "The parameter disks only can be updated for logical storage pool." +msgstr "" +"Los discos de parámetro sólo pueden actualizarse para la agrupación de " +"almacenamiento lógico." + +msgid "The SCSI host adapter name must be a string." +msgstr "El nombre del adaptador de host SCSI debe ser una serie." + +msgid "The storage pool kimchi_isos is reserved for internal use" +msgstr "" +"La agrupación de almacenamiento kimchi_isos está reservada para uso interno" + +#, python-format +msgid "" +"Unable to activate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"No se puede activar la agrupación de almacenamiento NFS %(name)s. El " +"servidor NFS %(server)s está fuera de alcance." + +#, python-format +msgid "" +"Unable to deactivate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"No se puede desactivar la agrupación de almacenamiento NFS %(name)s. El " +"servidor NFS %(server)s está fuera de alcance." + +#, python-format +msgid "" +"Unable to deactivate pool %(name)s as it is associated with some templates" +msgstr "" +"No se puede desactivar la agrupación %(name)s ya que está asociada con " +"algunas plantillas" + +#, python-format +msgid "Unable to delete pool %(name)s as it is associated with some templates" +msgstr "" +"No se puede suprimir la agrupación %(name)s ya que está asociada con algunas " +"plantillas" + +#, python-format +msgid "" +"A volume group named '%(name)s' already exists. Please, choose another name " +"to create the logical pool." +msgstr "" +"Un grupo de volúmenes denominado '%(name)s' ya existe. Elija otro nombre " +"para crear la agrupación lógica." + +#, python-format +msgid "Unable to update database with deep scan information due error: %(err)s" +msgstr "" +"No se puede actualizar la base de datos con la información de exploración " +"profunda debido a un error: %(err)s" + +#, python-format +msgid "Storage volume %(name)s already exists" +msgstr "El volumen de almacenamiento %(name)s ya existe" + +#, python-format +msgid "Storage volume %(name)s does not exist in storage pool %(pool)s" +msgstr "" +"El volumen de almacenamiento %(name)s no existe en la agrupación de " +"almacenamiento %(pool)s" + +#, python-format +msgid "" +"Unable to create storage volume %(volume)s because storage pool %(pool)s is " +"not active" +msgstr "" + +#, python-format +msgid "Specify %(item)s in order to create storage volume %(volume)s" +msgstr "" +"Especifique %(item)s para poder crear el volumen de almacenamiento %(volume)s" + +#, python-format +msgid "" +"Unable to list storage volumes because storage pool %(pool)s is not active" +msgstr "" +"No se pueden listar los volúmenes de almacenamiento porque la agrupación de " +"almacenamiento %(pool)s no está activa" + +#, python-format +msgid "" +"Unable to create storage volume %(name)s in storage pool %(pool)s. Details: " +"%(err)s" +msgstr "" +"No se puede crear el volumen de almacenamiento %(name)s en la agrupación de " +"almacenamiento %(pool)s. Detalles: %(err)s" + +#, python-format +msgid "" +"Unable to list storage volumes in storage pool %(pool)s. Details: %(err)s" +msgstr "" +"No se pueden listar volúmenes de almacenamiento en la agrupación de " +"almacenamiento %(pool)s. Detalles: %(err)s" + +#, python-format +msgid "Unable to wipe storage volumes %(name)s. Details: %(err)s" +msgstr "" +"No se pueden borrar los volúmenes de almacenamiento %(name)s. Detalles: " +"%(err)s" + +#, python-format +msgid "Unable to delete storage volume %(name)s. Details: %(err)s" +msgstr "" +"No se puede suprimir el volumen de almacenamiento %(name)s. Detalles: %(err)s" + +#, python-format +msgid "Unable to resize storage volume %(name)s. Details: %(err)s" +msgstr "" +"No se puede redimensionar el volumen de almacenamiento %(name)s. Detalles: " +"%(err)s" + +#, python-format +msgid "Storage type %(type)s does not support volume create and delete" +msgstr "" +"El tipo de almacenamiento %(type)s no da soporte a crear y suprimir volúmenes" + +msgid "Storage volume name must be a string" +msgstr "El nombre de volumen de almacenamiento debe ser una serie" + +msgid "Storage volume allocation must be an integer number" +msgstr "La asignación de volumen de almacenamiento debe ser un número entero" + +msgid "" +"Storage volume format not supported. Valid formats: bochs, cloop, cow, dmg, " +"qcow, qcow2, qed, raw, vmdk, vpc." +msgstr "" + +msgid "Storage volume requires a volume name" +msgstr "El volumen de almacenamiento requiere un nombre de volumen" + +#, python-format +msgid "" +"Unable to update database with storage volume information due error: %(err)s" +msgstr "" +"No se puede actualizar la base de datos con la información de volumen de " +"almacenamiento debido a un error: %(err)s" + +#, python-format +msgid "Only one of parameter %(param)s can be specified" +msgstr "" + +#, python-format +msgid "Create volume from %(param)s is not supported" +msgstr "" + +msgid "Storage volume capacity must be an integer number." +msgstr "" + +msgid "Storage volume URL must be http://, https://, ftp:// or ftps://." +msgstr "" + +#, python-format +msgid "Unable to access file %(url)s. Please, check it." +msgstr "" + +#, python-format +msgid "" +"Unable to clone storage volume '%(name)s' in pool '%(pool)s'. Details: " +"%(err)s" +msgstr "" + +msgid "Specify chunk data and its size to upload a file." +msgstr "" + +msgid "In order to upload a storage volume, specify the 'upload' parameter." +msgstr "" + +msgid "" +"Unable to upload chunk data as it does not match with requested chunk size." +msgstr "" + +#, python-format +msgid "The storage volume %(vol)s is not under an upload process." +msgstr "" + +msgid "The upload chunk data will exceed the storage volume size." +msgstr "" + +#, python-format +msgid "Unable to upload chunk data to storage volume. Details: %(err)s." +msgstr "" + +#, python-format +msgid "Interface %(name)s does not exist" +msgstr "La interfaz %(name)s no existe" + +#, python-format +msgid "Network %(name)s already exists" +msgstr "La red %(name)s ya existe" + +#, python-format +msgid "Network %(name)s does not exist" +msgstr "La red %(name)s no existe" + +#, python-format +msgid "Subnet %(subnet)s specified for network %(network)s is not valid." +msgstr "" +"La subred %(subnet)s especificada para la red %(network)s no es válida." + +#, python-format +msgid "Specify a network interface to create bridged network %(name)s" +msgstr "Especifique una interfaz de red para crear una red puenteada %(name)s" + +#, python-format +msgid "Unable to delete active network %(name)s" +msgstr "No se puede suprimir la red activa %(name)s" + +#, python-format +msgid "Interface %(iface)s specified for network %(network)s is already in use" +msgstr "" +"La interfaz %(iface)s especificada para la red %(network)s ya está en uso" + +msgid "Interface should be bare NIC, bonding or bridge device." +msgstr "La interfaz debe ser dispositivo de puente, enlazado o NIC simple." + +#, python-format +msgid "Unable to create network %(name)s. Details: %(err)s" +msgstr "No se puede crear la red %(name)s. Detalles: %(err)s" + +#, python-format +msgid "Unable to find a free IP address for network '%(name)s'" +msgstr "No se puede encontrar una dirección IP libre para la red '%(name)s'" + +#, python-format +msgid "The interface %(iface)s already exists." +msgstr "La interfaz %(iface)s ya existe" + +msgid "Network name must be a string without slashes (/) or quotes (\")" +msgstr "" + +msgid "Supported network types are isolated, NAT and bridge" +msgstr "Los tipos de red soportados son aislada, NAT y puente" + +msgid "Network subnet must be a string with IP address and prefix or netmask" +msgstr "" +"La subred de red debe ser una serie con dirección IP y prefijo o máscara de " +"red" + +msgid "Network interface must be a string" +msgstr "La interfaz de red debe ser una serie" + +msgid "Network VLAN ID must be an integer between 1 and 4094" +msgstr "El ID de VLAN de red debe ser un entero entre 1 y 4094" + +msgid "Specify name and type to create a Network" +msgstr "Especifique el nombre y el tipo para crear una red" + +#, python-format +msgid "" +"Unable to delete network %(name)s. There are some virtual machines %(vms)s " +"and/or templates linked to this network." +msgstr "" +"No se puede suprimir la red %(name)s. Hay algunas máquinas virtuales %(vms)s " +"y/o plantillas enlazadas a esta red." + +#, python-format +msgid "" +"Unable to deactivate network %(name)s. There are some virtual machines " +"%(vms)s and/or templates linked to this network." +msgstr "" +"No se puede desactivar la red %(name)s. Hay algunas máquinas virtuales " +"%(vms)s y/o plantillas enlazadas a esta red." + +#, python-format +msgid "Bridge device %(name)s can not be the trunk device of a VLAN." +msgstr "" +"El dispositivo de puente %(name)s no puede ser el dispositivo de conexión " +"troncal de una VLAN." + +#, python-format +msgid "Failed to activate interface %(iface)s: %(err)s." +msgstr "No se puede activar la interfaz %(iface)s: %(err)s." + +#, python-format +msgid "" +"Failed to activate interface %(iface)s. Please check the physical link " +"status." +msgstr "" +"No se puede activar la interfaz %(iface)s. Compruebe el estado del enlace " +"físico." + +#, python-format +msgid "Failed to start network %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Debug report %(name)s does not exist" +msgstr "El informe de depuración %(name)s no existe" + +msgid "Debug report tool not found in system" +msgstr "Herramienta de informes de depuración no encontrada en el sistema" + +#, python-format +msgid "Unable to create debug report %(name)s. Details: %(err)s." +msgstr "" +"No se puede crear el informe de depuración %(name)s. Detalles: %(err)s." + +#, python-format +msgid "Can not find any debug report with the given name %(name)s" +msgstr "" + +#, python-format +msgid "Unable to generate debug report %(name)s. Details: %(err)s" +msgstr "" +"No se puede generar el informe de depuración %(name)s. Detalles: %(err)s" + +msgid "You should give a name for the debug report file." +msgstr "" + +msgid "" +"Debug report name must be a string. Only letters, digits, underscore ('_') " +"and hyphen ('-') are allowed." +msgstr "" + +#, python-format +msgid "" +"The debug report with specified name \"%(name)s\" already exists. Please use " +"another one." +msgstr "" +"Un grupo de volúmenes denominado '%(name)s' ya existe. Elija otro nombre " +"para crear la agrupación lógica." + +#, python-format +msgid "Storage server %(server)s was not used by Kimchi" +msgstr "Kimchi no utilizaba el servidor de almacenamiento %(server)s" + +#, python-format +msgid "Distro '%(name)s' does not exist" +msgstr "Distro '%(name)s' no existe" + +#, python-format +msgid "Partition %(name)s does not exist in the host" +msgstr "La partición %(name)s no existe en el host" + +msgid "Unable to shutdown host machine as there are running virtual machines" +msgstr "" +"No se puede concluir la máquina host ya que hay máquinas virtuales en " +"ejecución" + +msgid "Unable to reboot host machine as there are running virtual machines" +msgstr "" +"No se puede rearrancar la máquina host ya que hay máquinas virtuales en " +"ejecución" + +#, python-format +msgid "Node device '%(name)s' not found" +msgstr "No se ha encontrado el dispositivo de nodo '%(name)s'" + +msgid "Conflicting flag filters specified." +msgstr "" + +msgid "No packages marked for update" +msgstr "No hay paquetes marcados para su actualización" + +#, python-format +msgid "Package %(name)s is not marked to be updated." +msgstr "El paquete %(name)s no está marcado para su actualización." + +#, python-format +msgid "Error while getting packages marked to be updated. Details: %(err)s" +msgstr "" +"Se ha producido un error al obtener paquetes marcados para su actualización. " +"Detalles: %(err)s" + +msgid "There is no compatible package manager for this system." +msgstr "No hay ningún gestor de paquetes compatible para este sistema." + +#, python-format +msgid "Unable to find %(item)s in datastore" +msgstr "No se puede encontrar %(item)s en el almacén de datos" + +#, python-format +msgid "Invalid URI %(uri)s" +msgstr "URI %(uri)s no válido" + +#, python-format +msgid "Timeout while running command '%(cmd)s' after %(seconds)s seconds" +msgstr "" +"Tiempo de espera excedido al ejecutar el mandato '%(cmd)s' después de " +"%(seconds)s segundos" + +msgid "Unable to choose a virtual machine name" +msgstr "" + +#, python-format +msgid "Invalid data value '%(value)s'" +msgstr "" + +#, python-format +msgid "Invalid data unit '%(unit)s'" +msgstr "" + +msgid "Invalid storage type. Types supported: 'cdrom', 'disk'" +msgstr "Tipo de almacenamiento no válido. Tipos soportados: 'cdrom'" + +#, python-format +msgid "The path '%(value)s' is not a valid local/remote path for the device" +msgstr "" + +msgid "Only CDROM path can be update." +msgstr "" + +#, python-format +msgid "" +"The storage device %(dev_name)s does not exist in the virtual machine " +"%(vm_name)s" +msgstr "" + +#, python-format +msgid "Error while creating new storage device: %(error)s" +msgstr "" +"Se ha producido un error al crear el nuevo dispositivo de almacenamiento: " +"%(error)s" + +#, python-format +msgid "Error while updating storage device: %(error)s" +msgstr "" +"Se ha producido un error al actualizar el dispositivo de almacenamiento: " +"%(error)s" + +#, python-format +msgid "Error while removing storage device: %(error)s" +msgstr "" +"Se ha producido un error al eliminar el dispositivo de almacenamiento: " +"%(error)s" + +msgid "Do not support IDE device hot plug" +msgstr "" + +msgid "" +"Specify type and path or type and pool/volume to add a new virtual machine " +"disk" +msgstr "" +"Especifique el tipo y la vía de acceso para añadir un disco de máquina " +"virtual nuevo" + +msgid "Specify path to update virtual machine disk" +msgstr "" +"Especifique la vía de acceso para actualizar el disco de máquina virtual" + +#, python-format +msgid "Controller type %(type)s limitation of %(limit)s devices reached" +msgstr "" + +#, python-format +msgid "Cannot retrieve disk path information for given pool/volume: %(error)s" +msgstr "" + +msgid "Volume already in use by other virtual machine." +msgstr "" + +msgid "" +"Only one of path or pool/volume can be specified to add a new virtual " +"machine disk" +msgstr "" +"Especifique el tipo y la vía de acceso para añadir un disco de máquina " +"virtual nuevo" + +#, python-format +msgid "" +"Volume chosen with format %(format)s does not fit in the storage type " +"%(type)s" +msgstr "" + +msgid "YUM Repository ID must be one word only string." +msgstr "El ID de repositorio YUM debe ser una serie de una sola palabra." + +msgid "Repository URL must be an http://, ftp:// or file:// URL." +msgstr "El URL de repositorio debe ser http://, ftp:// o archivo:// URL." + +msgid "" +"Repository configuration is a dictionary with specific values according to " +"repository type." +msgstr "" +"La configuración de repositorio es un diccionario con valores específicos " +"según el tipo de repositorio." + +msgid "Distribution to DEB repository must be a string" +msgstr "El repositorio de Distribución a DEB debe ser una serie" + +msgid "Components to DEB repository must be listed in a array" +msgstr "El repositorio de Componentes a DEB debe estar listado en una matriz" + +msgid "Components to DEB repository must be a string" +msgstr "El repositorio de Componentes a DEB debe ser una serie" + +msgid "Mirror list to repository must be a string" +msgstr "" + +msgid "YUM Repository name must be string." +msgstr "El nombre del repositorio YUM debe ser una serie." + +msgid "GPG check must be a boolean value." +msgstr "La comprobación de GPG debe ser un valor booleano." + +msgid "GPG key must be a URL pointing to the ASCII-armored file." +msgstr "La clave GPG debe ser un URL que apunta al archivo blindado por ASCII." + +#, python-format +msgid "Could not update repository %(repo_id)s." +msgstr "No se ha podido actualizar el repositorio %(repo_id)s." + +#, python-format +msgid "Repository %(repo_id)s does not exist." +msgstr "El repositorio %(repo_id)s no existe." + +msgid "" +"Specify repository base URL, mirror list or metalink in order to create or " +"update a YUM repository." +msgstr "" + +msgid "Repository management tool was not recognized for your system." +msgstr "" +"La herramienta de gestión de repositorio no se ha reconocido para su sistema." + +#, python-format +msgid "Repository %(repo_id)s is already enabled." +msgstr "El repositorio %(repo_id)s ya está habilitado." + +#, python-format +msgid "Repository %(repo_id)s is already disabled." +msgstr "El repositorio %(repo_id)s ya está inhabilitado." + +#, python-format +msgid "Could not remove repository %(repo_id)s." +msgstr "No se ha podido eliminar el repositorio %(repo_id)s." + +#, python-format +msgid "Could not write repository configuration file %(repo_file)s" +msgstr "" +"No se ha podido grabar el archivo de configuración del repositorio " +"%(repo_file)s" + +msgid "Specify repository distribution in order to create a DEB repository." +msgstr "" +"Especifique la distribución del repositorio para crear un repositorio de DEB." + +#, python-format +msgid "Could not enable repository %(repo_id)s." +msgstr "No se ha podido habilitar el repositorio %(repo_id)s." + +#, python-format +msgid "Could not disable repository %(repo_id)s." +msgstr "No se ha podido inhabilitar el repositorio %(repo_id)s." + +msgid "YUM Repository ID already exists" +msgstr "El ID de repositorio de YUM ya existe" + +msgid "YUM Repository name must be a string" +msgstr "El nombre del repositorio de YUM debe ser una serie" + +#, python-format +msgid "Unable to list repositories. Details: '%(err)s'" +msgstr "No se pueden listar repositorios. Detalles: '%(err)s'" + +#, python-format +msgid "Unable to retrieve repository information. Details: '%(err)s'" +msgstr "No se puede recuperar información del repositorio. Detalles: '%(err)s'" + +#, python-format +msgid "Unable to add repository. Details: '%(err)s'" +msgstr "No se puede añadir el repositorio. Detalles: '%(err)s'" + +#, python-format +msgid "Unable to remove repository. Details: '%(err)s'" +msgstr "No se puede eliminar el repositorio. Detalles: '%(err)s'" + +#, python-format +msgid "" +"Configuration items: '%(items)s' are not supported by repository manager" +msgstr "" + +msgid "Repository metalink must be an http://, ftp:// or file:// URL." +msgstr "" + +msgid "Cannot specify mirrorlist and metalink at the same time." +msgstr "" + +#, python-format +msgid "" +"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it." +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Snapshot '%(name)s' does not exist on virtual machine '%(vm)s'." +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Unable to list snapshots on virtual machine '%(vm)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to delete snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to revert virtual machine '%(vm)s' to snapshot '%(name)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot of virtual machine '%(vm)s' because it contains a " +"disk with format '%(format)s'; only 'qcow2' is supported." +msgstr "" + +msgid "The number of vCPUs is too large for this system." +msgstr "" + +msgid "Invalid vCPU/topology combination." +msgstr "" + +msgid "This host (or current configuration) does not allow CPU topology." +msgstr "" + +msgid "ERROR CODE" +msgstr "CÓDIGO DE ERROR" + +msgid "REASON" +msgstr "RAZÓN" + +msgid "STACK" +msgstr "PILA" + +msgid "Go to Homepage" +msgstr "Ir a la página inicial" + +msgid "Create a New Virtual Machine" +msgstr "Crear una nueva máquina virtual" + +msgid "Virtual Machine Name" +msgstr "Nombre de máquina virtual" + +msgid "" +"The name used to identify the virtual machine. If omitted, a name will be " +"chosen based on the template used." +msgstr "" +"El nombre que se utiliza para identificar la máquina virtual. Si se omite, " +"se elegirá un nombre basándose en la plantilla utilizada." + +msgid "Template" +msgstr "Plantilla" + +msgid "Please create a template first." +msgstr "Cree una plantilla primero." + +msgid "Create a Template" +msgstr "Crear una plantilla" + +msgid "Please choose a template." +msgstr "Elija una plantilla." + +msgid "OS" +msgstr "SO" + +msgid "OS Version" +msgstr "Versión del SO" + +msgid "CPUS" +msgstr "CPUS" + +msgid "Memory" +msgstr "Memoria" + +msgid "Create" +msgstr "Crear" + +msgid "Creating..." +msgstr "" + +msgid "Edit Guest" +msgstr "Editar invitado" + +msgid "General" +msgstr "General" + +msgid "Storage" +msgstr "Almacenamiento" + +msgid "Interface" +msgstr "Interfaz" + +msgid "Permission" +msgstr "Versión" + +msgid "Host PCI Device" +msgstr "" + +msgid "Snapshot" +msgstr "" + +msgid "Name" +msgstr "Nombre" + +msgid "CPUs" +msgstr "CPUs" + +msgid "Memory (MB)" +msgstr "Memoria" + +msgid "Icon" +msgstr "Icono" + +msgid "Device" +msgstr "Nombre de dispositivo" + +msgid "Path" +msgstr "Vía de acceso NFS" + +msgid "Network" +msgstr "Red" + +msgid "Type" +msgstr "Tipo" + +msgid "MAC Address" +msgstr "" + +msgid "Available system users and groups" +msgstr "" + +msgid "Selected system users and groups" +msgstr "" + +msgid "User" +msgstr "" + +msgid "All" +msgstr "Todo" + +msgid "To Add" +msgstr "" + +msgid "Added" +msgstr "" + +msgid "filter" +msgstr "" + +msgid "Product" +msgstr "" + +msgid "Vendor" +msgstr "Proveedor" + +msgid "Created" +msgstr "" + +msgid "Save" +msgstr "Guardar" + +msgid "Replace" +msgstr "Sustituir" + +msgid "Detach" +msgstr "Desconectar" + +msgid "Cancel" +msgstr "Cancelar" + +msgid "revert" +msgstr "" + +msgid "Add a Storage Device to VM" +msgstr "Añadir un dispositivo de almacenamiento a VM" + +msgid "Device Type" +msgstr "Tipo de dispositivo" + +msgid "The device type. Currently, \"cdrom\" and \"disk\" are supported." +msgstr "El tipo de dispositivo. Actualmente sólo está soportado \"cdrom\"." + +msgid "Storage Pool" +msgstr "Agrupación de almacenamiento" + +msgid "Storage pool which volume located in" +msgstr "La vía de acceso de la agrupación de almacenamiento debe ser una serie" + +msgid "Storage Volume" +msgstr "Nombre de agrupación de almacenamiento" + +msgid "Storage volume to be attached" +msgstr "El nombre de volumen de almacenamiento debe ser una serie" + +msgid "File Path" +msgstr "Vía de acceso de archivo" + +msgid "The ISO file path in the server for CDROM." +msgstr "La vía de acceso del archivo ISO en el servidor para el CDROM." + +msgid "Attach" +msgstr "Conectar" + +msgid "Start" +msgstr "Iniciar" + +msgid "Reset" +msgstr "Restablecer" + +msgid "Pause" +msgstr "" + +msgid "Resume" +msgstr "" + +msgid "Power Off" +msgstr "" + +msgid "Actions" +msgstr "Acciones" + +msgid "Connect" +msgstr "Conectar" + +msgid "Clone" +msgstr "" + +msgid "Edit" +msgstr "Editar" + +msgid "Shut Down" +msgstr "Concluir" + +msgid "Delete" +msgstr "Suprimir" + +msgid "The username or password you entered is incorrect. Please try again." +msgstr "" +"El nombre de usuario o contraseña que ha especificado es incorrecto. Por " +"favor, vuelva a intentarlo." + +msgid "This field is required." +msgstr "Este campo es obligatorio." + +msgid "Log in" +msgstr "Iniciar sesión" + +msgid "Logging in..." +msgstr "Iniciando sesión..." + +msgid "Host" +msgstr "Host" + +msgid "Guests" +msgstr "Invitados" + +msgid "Templates" +msgstr "Plantillas" + +msgid "Failed to get application configuration" +msgstr "No se ha podido obtener la configuración de la aplicación" + +msgid "This is not a valid Linux path" +msgstr "No es una vía de acceso de Linux válida" + +msgid "This is not a valid URL." +msgstr "No es un URL válido." + +msgid "No such data available." +msgstr "No hay datos de ese tipo disponibles." + +msgid "" +"Can not contact the host system. Verify the host system is up and that you " +"have network connectivity to it. HTTP request response %1. " +msgstr "" +"No se puede contactar con el sistema host, Verifique que el sistema host " +"está activo y que tiene conectividad de red con él. Respuesta de solicitud " +"HTTP %1. " + +msgid "Unable to read file." +msgstr "" + +msgid "Error while uploading file." +msgstr "" + +msgid "Delete Confirmation" +msgstr "Confirmación de supresión" + +msgid "OK" +msgstr "Aceptar" + +msgid "Confirm" +msgstr "Confirmar" + +msgid "Warning" +msgstr "Aviso" + +msgid "Cloning..." +msgstr "" + +msgid "Loading..." +msgstr "Cargando..." + +msgid "An error occurred while retrieving system information." +msgstr "" + +msgid "Retry" +msgstr "Reintentar" + +msgid "Detailed message:" +msgstr "Mensaje detallado:" + +msgid "No ISO found" +msgstr "" + +msgid "This is not a valid ISO file." +msgstr "No es un archivo ISO válido." + +msgid "This may take a long time. Do you want to continue?" +msgstr "Tardará mucho tiempo. ¿Desea continuar?" + +msgid "This will permanently delete the template. Would you like to continue?" +msgstr "Esto suprimirá permanentemente la plantilla. ¿Desea continuar?" + +msgid "Unable to shut down system as there are some virtual machines running!" +msgstr "" +"No se puede concluir el sistema ya que hay algunas máquinas virtuales en " +"ejecución." + +msgid "Max:" +msgstr "Máx.:" + +msgid "Utilization" +msgstr "Utilización" + +msgid "Available" +msgstr "Disponible" + +msgid "Read Rate" +msgstr "Velocidad de lectura" + +msgid "Write Rate" +msgstr "Velocidad de escritura" + +msgid "Received" +msgstr "Recibido" + +msgid "Sent" +msgstr "Enviado" + +msgid "" +"Shutting down or restarting host will cause unsaved work lost. Continue to " +"shut down/restarting?" +msgstr "" +"Concluir o reiniciar el host hará que se pierda el trabajo no guardado. " +"¿Desea continuar para concluir/reiniciar?" + +msgid "" +"Repository will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" +"El repositorio se eliminará de forma permanente y no se puede recuperar. " +"¿Desea continuar?" + +msgid "Repositories" +msgstr "Repositorios" + +msgid "ID" +msgstr "ID" + +msgid "Base URL" +msgstr "URL base" + +msgid "Is Mirror" +msgstr "Es duplicado" + +msgid "URL Args" +msgstr "Args de URL" + +msgid "Enabled" +msgstr "Habilitado" + +msgid "GPG Check" +msgstr "Comprobación GPG" + +msgid "GPG Key" +msgstr "Clave GPG" + +msgid "Add" +msgstr "Añadir" + +msgid "Remove" +msgstr "Eliminar" + +msgid "Enable" +msgstr "Habilitar" + +msgid "Disable" +msgstr "Inhabilitar" + +msgid "Software Updates" +msgstr "Actualizaciones de software" + +msgid "Package Name" +msgstr "Nombre de paquete" + +msgid "Version" +msgstr "Versión" + +msgid "Architecture" +msgstr "Arquitectura" + +msgid "Repository" +msgstr "Repositorio" + +msgid "Update All" +msgstr "Actualizar todo" + +msgid "Updating..." +msgstr "Actualizando..." + +msgid "Failed to retrieve packages update information." +msgstr "" + +msgid "Failed to update package(s)." +msgstr "No se han podido actualizar paquetes." + +msgid "" +"Debug report will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" +"El informe de depuración se eliminará permanentemente y no se puede " +"recuperar. ¿Desea continuar?" + +msgid "Debug Reports" +msgstr "Informes de depuración" + +msgid "Generated Time" +msgstr "Tiempo generado" + +msgid "Generate" +msgstr "Generar" + +msgid "Generating..." +msgstr "Generando..." + +msgid "Rename" +msgstr "Redenominar" + +msgid "Download" +msgstr "Descargar" + +msgid "" +"Report name should contain only letters, digits, underscore ('_') and/or " +"hyphen ('-')." +msgstr "" +"El nombre de informe debe contener sólo letras, dígitos y/o guión ('-')." + +msgid "Pending..." +msgstr "Cargando..." + +msgid "Report name is the same as the original one." +msgstr "" + +msgid "" +"This will delete the virtual machine and its virtual disks. This operation " +"cannot be undone. Would you like to continue?" +msgstr "" +"Esto suprimirá la máquina virtual y sus discos virtuales. Esta operación no " +"puede deshacerse. ¿Desea continuar?" + +msgid "Power off Confirmation" +msgstr "Confirmación de supresión" + +msgid "" +"This action may produce undesirable results, for example unflushed disk " +"cache in the guest. Would you like to continue?" +msgstr "" + +msgid "Reset Confirmation" +msgstr "Confirmación de supresión" + +msgid "" +"There is a risk of data loss caused by reset without the guest OS shutdown. " +"Would you like to continue?" +msgstr "" + +msgid "Shut Down Confirmation" +msgstr "Confirmación de supresión" + +msgid "Note the guest OS may ignore this request. Would you like to continue?" +msgstr "Esto suprimirá permanentemente la plantilla. ¿Desea continuar?" + +msgid "Virtual Machine delete Confirmation" +msgstr "" + +msgid "" +"This virtual machine is not persistent. Power Off will delete it. Continue?" +msgstr "" + +msgid "" +"When the target guest has SCSI or iSCSI volumes, they will be cloned on " +"default storage pool. The same will happen when the target pool does not " +"have enough space to clone the volumes. Do you want to continue?" +msgstr "" + +msgid "" +"This CDROM will be detached permanently and you can re-attach it. Continue " +"to detach it?" +msgstr "" +"Este CDROM se desconectará de forma permanente pero puede volver a " +"conectarlo. ¿Desea continuar para desconectarlo?" + +msgid "Attaching..." +msgstr "Conectando..." + +msgid "Replacing..." +msgstr "Sustituyendo..." + +msgid "Successfully attached!" +msgstr "¡Conectado correctamente!" + +msgid "Successfully replaced!" +msgstr "¡Sustituido correctamente!" + +msgid "Successfully detached!" +msgstr "¡Desconectado correctamente!" + +msgid "" +"This disk will be detached permanently and you can re-attach it. Continue to " +"detach it?" +msgstr "" + +msgid "interface:" +msgstr "" + +msgid "address:" +msgstr "" + +msgid "link_type:" +msgstr "" + +msgid "block:" +msgstr "" + +msgid "drive_type:" +msgstr "" + +msgid "model:" +msgstr "" + +msgid "Affected devices:" +msgstr "" + +msgid "The VLAN id must be between 1 and 4094." +msgstr "El ID de VLAN debe estar entre 1 y 4094." + +msgid "unavailable" +msgstr "no disponible" + +msgid "" +"This action will interrupt network connectivity for any virtual machine that " +"depend on this network." +msgstr "" +"Esta acción interrumpirá la conectividad de red para cualquier máquina " +"virtual que dependa de esta red." + +msgid "Create a network" +msgstr "Crear una red" + +msgid "" +"This network is not persistent. Instead of stop, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"Esta agrupación de almacenamiento no es persistente. En lugar de desactivar, " +"esta acción la suprimirá permanentemente. ¿Desea continuar?" + +msgid "" +"The bridged VLAN tag may not work well with NetworkManager enabled. You " +"should consider disabling it." +msgstr "" + +msgid "" +"This will permanently delete the storage pool. Would you like to continue?" +msgstr "" +"Esto suprimirá permanentemente la agrupación de almacenamiento. ¿Desea " +"continuar?" + +msgid "This storage pool is empty." +msgstr "Esta agrupación de almacenamiento está vacía." + +msgid "" +"It will format your disk and you will loose any data in there, are you sure " +"to continue? " +msgstr "" +"Dará formato al disco y se perderán los datos que tenga en él. ¿Está seguro " +"de que desea continuar? " + +msgid "SCSI Fibre Channel" +msgstr "Canal de fibra de SCSI" + +msgid "No SCSI adapters found." +msgstr "No se han encontrado adaptadores SCSI." + +msgid "Loading iSCSI targets..." +msgstr "" + +msgid "No iSCSI found. Please input one." +msgstr "" + +msgid "Failed to load iSCSI targets." +msgstr "" + +msgid "The storage pool name can not be blank." +msgstr "El nombre de la agrupación de almacenamiento no puede estar en blanco." + +msgid "The storage pool path can not be blank." +msgstr "" +"La vía de acceso de la agrupación de almacenamiento no puede estar en blanco." + +msgid "NFS server mount path can not be blank." +msgstr "La vía de acceso de montaje del servidor NFS no puede estar en blanco." + +msgid "Invalid NFS mount path." +msgstr "Vía de acceso de montaje de NFS no válida." + +msgid "No logical device selected." +msgstr "No se ha seleccionado ningún dispositivo lógico." + +msgid "The iSCSI target can not be blank." +msgstr "El destino iSCSI no puede estar en blanco." + +msgid "Server name can not be blank." +msgstr "El nombre de servidor no puede estar en blanco." + +msgid "This is not a valid Server Name or IP. Please, modify it." +msgstr "" + +msgid "Looking for available partitions ..." +msgstr "Buscando particiones disponibles..." + +msgid "No available partitions found." +msgstr "No se han encontrado particiones disponibles." + +msgid "" +"This storage pool is not persistent. Instead of deactivate, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"Esta agrupación de almacenamiento no es persistente. En lugar de desactivar, " +"esta acción la suprimirá permanentemente. ¿Desea continuar?" + +msgid "Unable to retrieve partitions information." +msgstr "No se puede recuperar información del repositorio. Detalles: '%(err)s'" + +msgid "In progress..." +msgstr "" + +msgid "Failed!" +msgstr "" + +msgid "CDROM path needs to be a valid local/remote path and cannot be blank." +msgstr "" + +msgid "Disk pool or volume cannot be blank." +msgstr "El nombre de la agrupación de almacenamiento no puede estar en blanco." + +msgid "Peers" +msgstr "" + +msgid "Searching" +msgstr "" + +msgid "No peers found." +msgstr "" + +msgid "Help" +msgstr "Ayuda" + +msgid "About" +msgstr "Acerca de" + +msgid "Log out" +msgstr "Finalizar sesión" + +msgid "Version:" +msgstr "Versión:" + +msgid "Session timeout, please re-login." +msgstr "" + +msgid "User Name" +msgstr "Nombre de usuario" + +msgid "Password" +msgstr "Contraseña" + +msgid "Generate a New Debug Report" +msgstr "Generar un Informe de depuración nuevo" + +msgid "Report Name" +msgstr "Nombre de informe" + +msgid "" +"The name used to identify the report. If omitted, a name will be chosen " +"based on current time. Name can contain: letters, digits, underscore (\"_\") " +"and hyphen (\"-\")." +msgstr "" +"El nombre que se utiliza para identificar el informe. Si se omite, se " +"elegirá un nombre basándose en la hora actual. El nombre puede contener: " +"letras, dígitos y guión (\"-\")." + +msgid "Rename a Debug Report" +msgstr "Generar un Informe de depuración nuevo" + +msgid "" +"The name used to identify the report. Name can contain: letters, digits and " +"hyphen (\"-\")." +msgstr "" +"El nombre que se utiliza para identificar el informe. Si se omite, se " +"elegirá un nombre basándose en la hora actual. El nombre puede contener: " +"letras, dígitos y guión (\"-\")." + +msgid "Submit" +msgstr "" + +msgid "Add a Repository" +msgstr "Añadir un repositorio" + +msgid "Identifier" +msgstr "Identificador" + +msgid "Single word, unique identifier for the repository." +msgstr "Identificador exclusivo de una sola palabra para el repositorio." + +msgid "Textual name for the repository." +msgstr "Nombre textual para el repositorio." + +msgid "URL" +msgstr "URL" + +msgid "Required Field" +msgstr "Campo obligatorio" + +msgid "URL to the repository. Supported protocols are http, ftp, and file." +msgstr "URL al repositorio. Los protocolos soportados son http, ftp y archivo." + +msgid "Repository is a mirror" +msgstr "El repositorio es un duplicado." + +msgid "Distribution" +msgstr "Distribución" + +msgid "Distribution of the DEB repository." +msgstr "Distribución del repositorio DEB." + +msgid "Components" +msgstr "Componentes" + +msgid "List of components in DEB repository." +msgstr "Lista de componentes en el repositorio DEB." + +msgid "Edit Repository" +msgstr "Editar repositorio" + +msgid "Mirror List URL" +msgstr "URL de lista duplicada" + +msgid "Yes" +msgstr "Sí" + +msgid "No" +msgstr "No" + +msgid "Add a Volume to Storage Pool" +msgstr "" + +msgid "Fetch from remote URL" +msgstr "" + +msgid "Enter the remote URL here." +msgstr "" + +msgid "Upload a file" +msgstr "" + +msgid "Choose the file you want to upload." +msgstr "" + +msgid "Define a New Storage Pool" +msgstr "Definir una agrupación de almacenamiento nueva" + +msgid "Storage Pool Name" +msgstr "Nombre de agrupación de almacenamiento" + +msgid "" +"The name used to identify the storage pools, and it should not be empty." +msgstr "" +"El nombre que se utiliza para identificar las agrupaciones de almacenamiento " +"y no debe estar vacío." + +msgid "Storage Pool Type" +msgstr "Tipo de agrupación de almacenamiento" + +msgid "Storage Path" +msgstr "Vía de acceso de almacenamiento" + +msgid "" +"The path of the Storage Pool. Each Storage Pool must have a unique path." +msgstr "" +"La vía de acceso de la agrupación de almacenamiento. Cada agrupación de " +"almacenamiento debe tener una vía de acceso exclusiva." + +msgid "" +"Kimchi will try to create the directory when it does not already exist in " +"your system." +msgstr "Kimchi intentará crear el directorio cuando no existe en el sistema." + +msgid "NFS Server IP" +msgstr "IP de Servidor NFS" + +msgid "NFS server IP or hostname. It can be input or chosen from history." +msgstr "" +"IP o nombre de host de servidor NFS. Puede especificarse o elegirse del " +"historial." + +msgid "NFS Path" +msgstr "Vía de acceso NFS" + +msgid "The NFS exported path on NFS server." +msgstr "La vía de acceso exportada de NFS en el servidor NFS." + +msgid "Device path" +msgstr "Vía de acceso del dispositivo" + +msgid "iSCSI Server" +msgstr "Servidor iSCSI" + +msgid "iSCSI server IP or hostname. It should not be empty." +msgstr "IP o nombre de host de servidor iSCSI. No debe estar vacío." + +msgid "Server" +msgstr "Servidor" + +msgid "Port" +msgstr "Puerto" + +msgid "Target" +msgstr "Destino" + +msgid "The iSCSI target on iSCSI server" +msgstr "El destino iSCSI en el servidor iSCSI" + +msgid "Add iSCSI Authentication" +msgstr "Añadir Autenticación iSCSI" + +msgid "iSCSI Authentication" +msgstr "Autenticación iSCSI" + +msgid "SCSI Adapter" +msgstr "Adaptador SCSI" + +msgid "Please, wait..." +msgstr "Por favor, espere..." + +msgid "Add Template" +msgstr "Añadir plantilla" + +msgid "Where is the source media for this template? " +msgstr "¿Dónde está el soporte de origen para esta plantilla?" + +msgid "Local ISO Image" +msgstr "Imagen ISO local" + +msgid "Local Image File" +msgstr "" + +msgid "Remote ISO Image" +msgstr "Imagen ISO remota" + +msgid "Search ISOs" +msgstr "Buscar ISOs" + +msgid "The following ISOs are available:" +msgstr "Las siguientes ISO están disponibles:" + +msgid "OS: " +msgstr "SO: " + +msgid "Version: " +msgstr "Versión: " + +msgid "Size: " +msgstr "Tamaño: " + +msgid "Search more ISOs" +msgstr "Buscar más ISO" + +msgid "Create Templates from Selected ISO" +msgstr "Crear plantillas a partir de ISO seleccionadas" + +msgid "I want to use a specific ISO file" +msgstr "Deseo utilizar un archivo ISO específico" + +msgid "Loading default remote ISOs ..." +msgstr "Cargando ISO remotas predeterminadas ..." + +msgid "Arch: " +msgstr "Arch: " + +msgid "I want to use a custom URL" +msgstr "Deseo utilizar un URL personalizado" + +msgid "Edit Template" +msgstr "Editar plantilla" + +msgid "Processor" +msgstr "Procesador" + +msgid "CDROM" +msgstr "CDROM" + +msgid "Image File" +msgstr "" + +msgid "Graphics" +msgstr "Gráficos" + +msgid "Disk(GB)" +msgstr "" + +msgid "Disk Format" +msgstr "" + +msgid "CPU Number" +msgstr "Número de CPU" + +msgid "Manually set CPU topology" +msgstr "" + +msgid "Cores" +msgstr "" + +msgid "Threads" +msgstr "" + +msgid "CPU" +msgstr "CPU" + +msgid "Disk I/O" +msgstr "E/S de disco" + +msgid "Network I/O" +msgstr "E/S de red" + +msgid "Livetile" +msgstr "Livetile" + +msgid "No guests found." +msgstr "No se ha encontrado invitados." + +msgid "Shut down" +msgstr "Concluir" + +msgid "Restart" +msgstr "Reiniciar" + +msgid "Basic Information" +msgstr "Información básica" + +msgid "OS Distro" +msgstr "Distro de SO" + +msgid "OS Code Name" +msgstr "Nombre de código de SO" + +msgid "CPU(s)" +msgstr "" + +msgid "System Statistics" +msgstr "Estadísticas del sistema" + +msgid "Update Progress" +msgstr "Actualizar progreso" + +msgid "Network Name" +msgstr "Nombre de red" + +msgid "State" +msgstr "Estado" + +msgid "Network Type" +msgstr "Tipo de red" + +msgid "Address Space" +msgstr "Espacio de direcciones" + +msgid "Name should not contain '/' and '\"'." +msgstr "" +"Nombre de agrupación de almacenamiento no válido. No debe contener '/'." + +msgid "Isolated: no external network connection" +msgstr "Aislado: no hay conexión de red física" + +msgid "NAT: outbound physical network connection only" +msgstr "NAT: conexión de red física saliente solamente" + +msgid "Bridged: Virtual machines are connected to physical network directly" +msgstr "" +"Puenteado: Las máquinas virtuales están conectadas a la red física " +"directamente" + +msgid "(No interfaces found)" +msgstr "" + +msgid "Destination" +msgstr "Destino:" + +msgid "Enable VLAN" +msgstr "Habilitar VLAN:" + +msgid "VLAN ID" +msgstr "ID de VLAN:" + +msgid "Stop" +msgstr "Detener" + +msgid "%Used" +msgstr "" + +msgid "Location" +msgstr "Ubicación" + +msgid "Capacity" +msgstr "Capacidad" + +msgid "Allocated" +msgstr "Asignado" + +msgid "active" +msgstr "activo" + +msgid "inactive" +msgstr "inactivo" + +msgid "Deactivate" +msgstr "Desactivar" + +msgid "Activate" +msgstr "Activar" + +msgid "Add Volume" +msgstr "" + +msgid "Extend" +msgstr "" + +msgid "Undefine" +msgstr "No definir" + +msgid "Format" +msgstr "Formato:" + +msgid "Allocation" +msgstr "Asignado:" + +msgid "No templates found." +msgstr "No se han encontrado plantillas." diff --git a/po/fr_FR.po b/po/fr_FR.po new file mode 100644 index 0000000..685f96f --- /dev/null +++ b/po/fr_FR.po @@ -0,0 +1,2360 @@ +# English translations for kimchi package. +# Copyright (C) 2013 ORGANIZATION +# +msgid "" +msgstr "" +"Project-Id-Version: kimchi 0.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-09 17:37-0300\n" +"PO-Revision-Date: 2014-08-27 21:30+0000\n" +"Last-Translator: BobSynfig\n" +"Language-Team: French (http://www.transifex.com/projects/p/kimchi/language/" +"fr/)\n" +"Language: fr_FR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#, python-format +msgid "Unknown parameter %(value)s" +msgstr "Paramètre inconnu %(value)s" + +#, python-format +msgid "Delete is not allowed for %(resource)s" +msgstr "La suppression n'est pas autorisée pour %(resource)s" + +#, python-format +msgid "%(resource)s does not implement update method" +msgstr "%(resource)s n'implémente pas de méthode de mise à jour" + +#, python-format +msgid "Create is not allowed for %(resource)s" +msgstr "La création n'est pas autorisée pour %(resource)s" + +msgid "Unable to parse JSON request" +msgstr "Impossible de parser la requête JSON" + +msgid "This API only supports JSON" +msgstr "Cette API supporte uniquement le JSON" + +#, python-format +msgid "Parameters does not match requirement in schema: %(err)s" +msgstr "" +"Les paramètres ne correspondent pas à ce qui est requis dans le schéma: " +"%(err)s" + +msgid "You don't have permission to perform this operation." +msgstr "Vous n'avez pas la permission d'effectuer cette opération." + +msgid "Datastore is not initiated in the model object." +msgstr "Le magasin de données n'est pas initié dans l'objet modèle." + +#, python-format +msgid "Unable to start task due error: %(err)s" +msgstr "Impossible de démarrer la tâche à cause de l'erreur: %(err)s" + +#, python-format +msgid "Timeout of %(seconds)s seconds expired while running task '%(task)s." +msgstr "" + +#, python-format +msgid "Authentication failed for user '%(username)s'. [Error code: %(code)s]" +msgstr "" +"L'authentification a échoué pour l'utilisateur '%(username)s'. [Code " +"d'Erreur: %(code)s]" + +msgid "You are not authorized to access Kimchi" +msgstr "Vous n'êtes pas autorisé à accéder à Kimchi" + +#, python-format +msgid "Specify %(item)s to login into Kimchi" +msgstr "Spécifiez %(item)s pour vous logguer dans Kimchi" + +#, python-format +msgid "User %(user_id)s not found with given LDAP settings." +msgstr "" + +#, python-format +msgid "Invalid LDAP configuration: %(item)s : %(value)s" +msgstr "" + +msgid "Unknown \"_cap\" specified" +msgstr "\"_cap\" spécifiée inconnue" + +msgid "\"_passthrough\" should be \"true\" or \"false\"" +msgstr "\"_passthrough\" doit être \"true\" ou \"false\"" + +msgid "\"_passthrough_affected_by\" should be a device name string" +msgstr "\"_passthrough_affected_by\" doit être un nom de périphérique" + +#, python-format +msgid "Error while getting block devices. Details: %(err)s" +msgstr "Erreur durant l'accès aux périphériques de bloc. Détails: %(err)s" + +#, python-format +msgid "Error while getting block device information for %(device)s." +msgstr "" +"Erreur durant l'obtention de l'information sur le périphérique de bloc " +"%(device)s." + +#, python-format +msgid "Unable to find distro file: %(filename)s" +msgstr "Impossible de trouver le fichier de distro: %(filename)s" + +#, python-format +msgid "" +"Unable to parse distro file: %(filename)s. Make sure, it is a JSON file." +msgstr "" +"Impossible de parser le fichier de distro: %(filename)s. Veuillez vous " +"assurer qu'il s'agit d'un fichier JSON." + +#, python-format +msgid "Unable to login to iSCSI host target %(portal)s. Details: %(err)s" +msgstr "" +"Impossible de se connecter à l'hôte cible iSCSI %(portal)s. Détails: %(err)s " + +#, python-format +msgid "Unable to login to iSCSI host %(host)s target %(target)s" +msgstr "Impossible de se connecter à l'hôte iSCSI %(host)s cible %(target)s" + +#, python-format +msgid "Unable to find ISO file %(filename)s" +msgstr "Impossible de trouver le fichier ISO %(filename)s" + +#, python-format +msgid "The ISO file %(filename)s is not bootable" +msgstr "Le fichier ISO %(filename)s n'est pas bootable" + +#, python-format +msgid "The ISO file %(filename)s does not have a valid El Torito boot record" +msgstr "" +"Le fichier ISO %(filename)s n'a pas d'enregistrement de boot El Torito valide" + +#, python-format +msgid "Invalid El Torito validation entry in ISO %(filename)s" +msgstr "Entrée de validation El Torito invalide dans l'ISO %(filename)s" + +#, python-format +msgid "Invalid El Torito boot indicator in ISO %(filename)s" +msgstr "Indicateur de boot El Torito invalide dans l'ISO %(filename)s" + +#, python-format +msgid "Unexpected volume type for primary volume in ISO %(filename)s" +msgstr "" +"Type de volume inattendu pour le volume primaire dans l'ISO %(filename)s" + +#, python-format +msgid "Bad format while reading volume descriptor in ISO %(filename)s" +msgstr "" +"Mauvais format durant la lecture du descripteur de volume dans l'ISO " +"%(filename)s" + +#, python-format +msgid "" +"The hypervisor doesn't have permission to use this ISO %(filename)s. " +"Consider moving it under /var/lib/libvirt, or set the search permission to " +"file access control lists for '%(user)s' user if possible, or add the " +"'%(user)s' to the ISO path group, or (not recommended) 'chmod -R o+x " +"'path_to_iso'.Details: %(err)s" +msgstr "" +"L'hyperviseur n'a pas la permission d'utiliser cet ISO %(filename)s. " +"Veuillez considérer de le déplacer sous /var/lib/libvirt,, ou de définir la " +"permission de recherche sur les listes de contrpole d'accès fichier pour " +"l'utilisateur '%(user)s' si possible, ou ajouter le '%(user)s' au groupe de " +"chemins d'ISO, ou (non recommandé) 'chmod -R o+x 'chemin_vers_iso'.Détails: " +"%(err)s" + +msgid "An error occurred when probing image OS information." +msgstr "" +"Une erreur est survenue lors de la détection de l'information d'OS de " +"l'image." + +msgid "No OS information found in given image." +msgstr "Aucune information d'OS trouvée sur l'image donnée." + +#, python-format +msgid "Unable to read image file %(filename)s" +msgstr "Impossible de lire le fichier image %(filename)s" + +#, python-format +msgid "" +"Image file must be an existing file on system. %(filename)s is not a valid " +"input." +msgstr "" +"Le fichier image doit être un fichier existant sur le système. %(filename)s " +"n'est pas une donnée valide." + +#, python-format +msgid "Virtual machine %(name)s already exists" +msgstr "La machine virtuelle %(name)s existe déjà" + +#, python-format +msgid "Virtual machine %(name)s does not exist" +msgstr "La machine virtuelle %(name)s n'existe pas" + +#, python-format +msgid "" +"Unable to rename virtual machine %(name)s. The name %(new_name)s is already " +"in use or the virtual machine is not powered off." +msgstr "" +"Impossible de renommer la machine virtuelle %(name)s. Le nom %(new_name)s " +"est déja utilisé ou la machine virtuelle n'est pas éteinte." + +#, python-format +msgid "Unable to retrieve screenshot for stopped virtual machine %(name)s" +msgstr "" +"Impossible de récupérer une capture d'écran pour la machine virtuelle " +"stoppée %(name)s" + +msgid "Remote ISO image is not supported by this server." +msgstr "L'image ISO distante n'est pas supportée par le serveur." + +#, python-format +msgid "Screenshot is not supported on virtual machine %(name)s" +msgstr "Copie d'écran non supportée par la machine virtuelle %(name)s" + +#, python-format +msgid "Unable to create virtual machine %(name)s. Details: %(err)s" +msgstr "Impossible de créer la machine virtuelle %(name)s. Détails: %(err)s" + +#, python-format +msgid "Unable to update virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Impossible de mettre à jour la machine virtuelle %(name)s. Détails: %(err)s" + +#, python-format +msgid "Unable to retrieve virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Impossible de récupérer la machine virtuelle %(name)s. Détails: %(err)s" + +#, python-format +msgid "Unable to connect to powered off virtual machine %(name)s." +msgstr "Impossible de se connecter à la machine virtuelle éteinte %(name)s." + +msgid "Virtual machine name must be a string without slashes (/)" +msgstr "" + +#, python-format +msgid "Invalid template URI %(value)s specified for virtual machine" +msgstr "" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for virtual machine" +msgstr "" + +msgid "Supported virtual machine graphics are Spice or VNC" +msgstr "" + +msgid "Graphics address to listen on must be IPv4 or IPv6" +msgstr "L'adresse d'écoute du graphics doit être IPv4 ou IPv6" + +msgid "Specify a template to create a virtual machine from" +msgstr "Spécifier un modèle à partir duquel créer une machine virtuelle" + +#, python-format +msgid "Unable to start virtual machine %(name)s. Details: %(err)s" +msgstr "Impossible de démarrer la machine virtuelle %(name)s. Détails: %(err)s" + +#, python-format +msgid "Unable to power off virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Impossible de mettre hors tension la machine virtuelle %(name)s. Détails: " +"%(err)s" + +#, python-format +msgid "Unable to delete virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Impossible de supprimer la machine virtuelle %(name)s. Détails: %(err)s" + +#, python-format +msgid "Unable to reset virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Impossible de réinitrialiser la machine virtuelle %(name)s. Détails: %(err)s" + +msgid "User name list must be an array" +msgstr "" + +msgid "User name must be a string" +msgstr "Le nom d'utilisateur doit être une chaîne de caractères" + +msgid "Group name list must be an array" +msgstr "" + +msgid "Group name must be a string" +msgstr "Le nom de groupe doit être une chaîne de caractères" + +#, python-format +msgid "User(s) '%(users)s' do not exist" +msgstr "Le(s) utilisateur(s) '%(users)s' n'existe(nt) pas" + +#, python-format +msgid "Group(s) '%(groups)s' do not exist" +msgstr "Le(s) groupe(s) '%(groups)s' n'existe(nt) pas" + +#, python-format +msgid "Unable to shutdown virtual machine %(name)s. Details: %(err)s" +msgstr "Impossible d'éteindre la machine virtuelle %(name)s. Détails: %(err)s" + +#, python-format +msgid "" +"Unable to get access metadata of virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Impossible d'accéder aux metadata de la machine virtuelle %(name)s. Détails: " +"%(err)s" + +msgid "The guest console password must be a string." +msgstr "Le mot de passe de console invitée doit être une chaîne de caractères." + +msgid "The life time for the guest console password must be a number." +msgstr "La durée de vie du mot de passe de console invitée doit être un nombre" + +#, python-format +msgid "Virtual machine '%(name)s' must be stopped before cloning it." +msgstr "" + +#, python-format +msgid "Insufficient disk space to clone virtual machine '%(name)s'" +msgstr "" + +#, python-format +msgid "Unable to clone VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Invalid operation for non-persistent virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Cannot suspend VM '%(name)s' because it is not running." +msgstr "" + +#, python-format +msgid "Unable to suspend VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Cannot resume VM '%(name)s' because it is not paused." +msgstr "" + +#, python-format +msgid "Unable to resume VM '%(name)s'. Details: %(err)s" +msgstr "" + +msgid "Memory assigned is higher then the maximum allowed in the host." +msgstr "" + +#, python-format +msgid "" +"VM '%(name)s' does not support live memory update. Update the memory with " +"the machine offline to enable this feature." +msgstr "" + +msgid "Only increase memory is allowed in active VMs" +msgstr "" + +msgid "" +"For live memory update, new memory value must be equal old memory value plus " +"multiples of 1024 Mib" +msgstr "" + +msgid "There are not enough free slots of 1024 Mib in the guest." +msgstr "" + +msgid "" +"Host's libvirt version does not support memory devices. Libvirt must be >= " +"1.2.14" +msgstr "" + +#, python-format +msgid "Error attaching memory device. Details: %(error)s" +msgstr "" + +#, python-format +msgid "" +"VM %(vmid)s does not contain directly assigned host device %(dev_name)s." +msgstr "" +"La machine virtuelle %(vmid)s ne peut pas contenir le périphérique hôte " +"directement assigné %(dev_name)s." + +#, python-format +msgid "The host device %(dev_name)s is not allowed to directly assign to VM." +msgstr "" +"The périphérique hôte %(dev_name)s ne peut être directement assigné à la " +"machine virtuelle" + +msgid "" +"No IOMMU groups found. Host PCI pass through needs IOMMU group to function " +"correctly. Please enable Intel VT-d or AMD IOMMU in your BIOS, then verify " +"the Kernel is compiled with IOMMU support. For Intel CPU, add intel_iommu=on " +"to your Kernel parameter in /boot/grub2/grub.conf. For AMD CPU, add iommu=pt " +"iommu=1." +msgstr "" + +msgid "\"name\" should be a device name string" +msgstr "\"name\" doit être un nom de périphérique" + +#, python-format +msgid "Interface %(iface)s does not exist in virtual machine %(name)s" +msgstr "L'interface %(iface)s n'existe pas dans la machine virtuelle %(name)s" + +#, python-format +msgid "" +"Network %(network)s specified for virtual machine %(name)s does not exist" +msgstr "" +"Le réseau %(network)s spécifié pour la machine virtuelle %(name)s n'existe " +"pas" + +msgid "Supported virtual machine interfaces type is only network" +msgstr "" +"Le type d'interface de machine virtuelle supporté est réseau uniquement" + +msgid "Network name for virtual machine interface must be a string" +msgstr "" +"Le nom de réseau pour l'interface de la machine virtuelle doit être une " +"chaîne de caractères" + +msgid "Invalid network model card specified for virtual machine interface" +msgstr "" +"Modèle de carte réseau spécifié invalide pour l'interface de machine " +"virtuelle" + +msgid "Specify type and network to add a new virtual machine interface" +msgstr "" +"Spécifier le type et le réseau à ajouter à la nouvelle interface de la " +"machine virtuelle" + +msgid "MAC Address must respect this format FF:FF:FF:FF:FF:FF" +msgstr "" + +#, python-format +msgid "MAC Address %(mac)s already exists in virtual machine %(name)s" +msgstr "" + +msgid "Invalid MAC Address" +msgstr "" + +msgid "Cannot change MAC address of a running virtual machine" +msgstr "" + +#, python-format +msgid "Template %(name)s already exists" +msgstr "Le modèle %(name)s existe déjà" + +#, python-format +msgid "" +"Network '%(network)s' specified for template %(template)s does not exist" +msgstr "" +"Le réseau '%(network)s' spécifié pour le modèle %(template)s n'existe pas" + +#, python-format +msgid "" +"Storage pool %(pool)s specified for template %(template)s does not exist" +msgstr "" +"Le pool de stockage spécifié %(pool)s pour le modèle %(template)s n'existe " +"pas" + +#, python-format +msgid "Storage pool %(pool)s specified for template %(template)s is not active" +msgstr "" +"Le pool de stockage spécifié %(pool)s pour le modèle %(template)s n'est pas " +"actif" + +#, python-format +msgid "Invalid parameter '%(param)s' specified for CDROM." +msgstr "Paramètres '%(param)s' spécifié invalide pour le CDROM" + +#, python-format +msgid "Network %(network)s specified for template %(template)s is not active" +msgstr "" +"Le réseau %(network)s spécifié pour le modèle %(template)s n'est pas actif" + +msgid "Template name must be a string" +msgstr "Le modèle de nom doit être une chaîne de caractères" + +msgid "Template icon must be a path to the image" +msgstr "Le modèle d'icone doit être un chemin vers l'image" + +msgid "Template distribution must be a string" +msgstr "Le modèle de distribution doit être une chaîne de caractères" + +msgid "Template distribution version must be a string" +msgstr "" +"Le modèle de version de distribution doit être une chaîne de caractères" + +msgid "The number of CPUs must be an integer greater than 0" +msgstr "Le nombre de CPU doit être un nombre entier supérieur à 0" + +msgid "Amount of memory (MB) must be an integer greater than 512" +msgstr "La quantité de mémoire (Mo) doit être un nombre entier supérieur à 512" + +msgid "Template CDROM must be a local or remote ISO file" +msgstr "Le CDROM modèle doit être un fichier ISO local ou distant" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for template" +msgstr "URI %(value)s du pool de stockage spécifiée invalide pour le modèle" + +msgid "Specify an ISO image as CDROM or a base image to create a template" +msgstr "" +"Spécifiez une image ISO comme CDROM ou une image de base pour créer un modèle" + +msgid "All networks for the template must be specified in a list." +msgstr "Tous les réseaux pour le modèle doivent être spécifiés dans une liste" + +msgid "Specify a volume to a template when storage pool is iSCSI or SCSI" +msgstr "" + +#, python-format +msgid "The volume %(volume)s is not in storage pool %(pool)s" +msgstr "Le volume %(volume)s n'est pas dans le pool de stockage %(pool)s" + +#, python-format +msgid "Unable to create template due error: %(err)s" +msgstr "Impossible de créer le modèle à cause de l'erreur: %(err)s" + +#, python-format +msgid "Unable to delete template due error: %(err)s" +msgstr "Impossilbe de supprimer le modèle à cause de l'erreur: %(err)s" + +msgid "Disk size must be an integer greater than 1GB." +msgstr "La taille de disque doit être un entier supérieur à 1Go." + +msgid "Template base image must be a valid local image file" +msgstr "L'image de base de modèle doit petre un fichier image local valide" + +#, python-format +msgid "Cannot identify base image %(path)s format" +msgstr "Ne peut identifier le format de l'image de base %(path)s" + +msgid "" +"When specifying CPU topology, VCPUs must be a product of sockets, cores, and " +"threads." +msgstr "" + +msgid "" +"When specifying CPU topology, each element must be an integer greater than " +"zero." +msgstr "" +"Dans la topologie de CPU, chaque élément doit être un entier strictement " +"positif." + +msgid "" +"Invalid disk image format. Valid formats: bochs, cloop, cow, dmg, qcow, " +"qcow2, qed, raw, vmdk, vpc." +msgstr "" + +#, python-format +msgid "Storage pool %(name)s already exists" +msgstr "Le pool de stockage %(name)s existe déjà" + +#, python-format +msgid "Storage pool %(name)s does not exist" +msgstr "Le pool de stockage %(name)s n'existe pas" + +#, python-format +msgid "Specify %(item)s in order to create the storage pool %(name)s" +msgstr "Spécifier %(item)s afin de créer le pool de stockage %(name)s" + +#, python-format +msgid "Unable to delete active storage pool %(name)s" +msgstr "Impossible de supprimer le pool de stockage actif %(name)s" + +#, python-format +msgid "Unable to list storage pools. Details: %(err)s" +msgstr "Impossible de lister les pools de stockage. Détails: %(err)s" + +#, python-format +msgid "Unable to create storage pool %(name)s. Details: %(err)s" +msgstr "Impossilble de créer le pool de stockage %(name)s. Détails: %(err)s" + +#, python-format +msgid "" +"Unable to get number of storage volumes in storage pool %(name)s. Details: " +"%(err)s" +msgstr "" +"Impossible d'obtenir le nombre de volumes de stockage dans le pool de " +"stockage%(name)s. Détails: %(err)s" + +#, python-format +msgid "Unable to activate storage pool %(name)s. Details: %(err)s" +msgstr "Impossible d'activer le pool de stockage %(name)s. Détails: %(err)s" + +#, python-format +msgid "Unable to deactivate storage pool %(name)s. Details: %(err)s" +msgstr "" +"Impossible de désactiver le pool de stockage %(name)s. Détails: %(err)s" + +#, python-format +msgid "Unable to delete storage pool %(name)s. Details: %(err)s" +msgstr "" +"Impossible de supprimer le pool de stockage %(name)s. Détails: %(err)s " + +#, python-format +msgid "" +"Unable to create NFS Pool as export path %(path)s may block during mount" +msgstr "" +"Impossible de créer le Pool NFS du fait que le chemin d'export %(path)s " +"pourrait se bloquer durant le montage" + +#, python-format +msgid "Unable to create NFS Pool as export path %(path)s mount failed" +msgstr "" +"Impossible de créer le pool NFS du fait que le montage du chemin d'export " +"%(path)s a échoué" + +#, python-format +msgid "Unsupported storage pool type: %(type)s" +msgstr "Type de pool de stockage non supporté: %(type)s" + +#, python-format +msgid "Error while retrieving storage pool XML to %(pool)s" +msgstr "" + +msgid "Storage pool name must be a string without slashes (/)" +msgstr "" + +msgid "" +"Supported storage pool types are dir, netfs, logical, iscsi, isci and kimchi-" +"iso" +msgstr "" +"Les types de pool de stockage supportés sont: dir, netfs, logical, iscsi, " +"isci et kimchi-iso" + +msgid "Storage pool path must be a string" +msgstr "Le chemin du pool de stockage doit être une chaîne de caractères" + +msgid "Storage pool host must be a IP or hostname" +msgstr "L'hôte du pool de stockage doit être une IP ou un nom d'hôte" + +msgid "Storage pool device must be the absolute path to the block device" +msgstr "" + +msgid "Storage pool devices parameter must be a list" +msgstr "Le paramètre de périphérique de pool de stockage doit être une list" + +msgid "Target IQN of an iSCSI pool must be a string" +msgstr "La cible IQN d'un pool iSCSI doit être une chaîne de caractères" + +msgid "Port of a remote storage server must be an integer between 1 and 65535" +msgstr "" +"Le port d'un serveur de stockage distant doit être un nombre entier entre 1 " +"et 65535" + +msgid "iSCSI target username must be a string" +msgstr "" +"Le nom d'utilisateur de la cible iSCSI doit être une chaîne de caractères" + +msgid "iSCSI target password must be a string" +msgstr "Le mot de passe de la cible iSCSI doit être une chaîne de caractères" + +msgid "Specify name and type to create a storage pool" +msgstr "Spécifier un nom et un type pour créer un pool de stockage" + +#, python-format +msgid "" +"%(disk)s is not a valid disk/partition. Could not add it to the pool " +"%(pool)s." +msgstr "" +"%(disk)s n'est pas un(e) disque/partition valide. N'a pu l'ajouter au pool " +"%(pool)s." + +#, python-format +msgid "Unable to extend logical pool %(pool)s. Details: %(err)s" +msgstr "Impossible d'agrandir le pool logique %(pool)s. Détails: %(err)s" + +msgid "The parameter disks only can be updated for logical storage pool." +msgstr "" +"Les disques en paramètre peuvent seulement être mis à jour pour un pool de " +"stockage logique." + +msgid "The SCSI host adapter name must be a string." +msgstr "Le nom d'adaptateur de l'hôte SCSI doit être une chapine de caractères" + +msgid "The storage pool kimchi_isos is reserved for internal use" +msgstr "Le pool de stockage kimchi_isos est réservé à un usage interne" + +#, python-format +msgid "" +"Unable to activate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"Impossible d'activer le pool de stockage NFS%(name)s. Le serveur NFS " +"%(server)s n'est pas joignable." + +#, python-format +msgid "" +"Unable to deactivate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"Impossible de désactiver le pool de stockage NFS%(name)s. Le serveur NFS " +"%(server)s n'est pas joignable." + +#, python-format +msgid "" +"Unable to deactivate pool %(name)s as it is associated with some templates" +msgstr "" +"Impossible de désactiver le pool %(name)s du fait qu'il est associé à des " +"modèles" + +#, python-format +msgid "Unable to delete pool %(name)s as it is associated with some templates" +msgstr "" +"Impossible de supprimer le pool %(name)s du fait qu'il est associé à des " +"modèles" + +#, python-format +msgid "" +"A volume group named '%(name)s' already exists. Please, choose another name " +"to create the logical pool." +msgstr "" +"Un groupe de volume appelé '%(name)s' existe déjà. Veuillez choisir un autre " +"nom pour créer le pool logique." + +#, python-format +msgid "Unable to update database with deep scan information due error: %(err)s" +msgstr "" +"Impossible de mettre à jour la base de données avec les informations de scan " +"profond à cause de l'erreur: %(err)s" + +#, python-format +msgid "Storage volume %(name)s already exists" +msgstr "Le volume de stockage %(name)s existe déjà" + +#, python-format +msgid "Storage volume %(name)s does not exist in storage pool %(pool)s" +msgstr "" +"Le volume de stockage %(name)s n'existe pas dans le pool de stockage %(pool)s" + +#, python-format +msgid "" +"Unable to create storage volume %(volume)s because storage pool %(pool)s is " +"not active" +msgstr "" +"Impossible de créer le volume de stockage %(volume)s car le pool de stockage " +"%(pool)s n'est pas actif" + +#, python-format +msgid "Specify %(item)s in order to create storage volume %(volume)s" +msgstr "Spécifier %(item)s afin de créer le volume de stockage %(volume)s" + +#, python-format +msgid "" +"Unable to list storage volumes because storage pool %(pool)s is not active" +msgstr "" +"Impossible de lister les volumes de stockage car le pool de stockage " +"%(pool)s n'est pas actif" + +#, python-format +msgid "" +"Unable to create storage volume %(name)s in storage pool %(pool)s. Details: " +"%(err)s" +msgstr "" +"Impossible de créer le volume de stockage %(name)s dans le pool de stockage " +"%(pool)s. Détails: %(err)s" + +#, python-format +msgid "" +"Unable to list storage volumes in storage pool %(pool)s. Details: %(err)s" +msgstr "" +"Impossible de lister les volumes de stockage dans le pool de stockage " +"%(pool)s. Détails: %(err)s" + +#, python-format +msgid "Unable to wipe storage volumes %(name)s. Details: %(err)s" +msgstr "Impossible de wiper les volumes de stockage %(name)s. Détails: %(err)s" + +#, python-format +msgid "Unable to delete storage volume %(name)s. Details: %(err)s" +msgstr "" +"Impossible de supprimer le volume de stockage %(name)s. Détails: %(err)s " + +#, python-format +msgid "Unable to resize storage volume %(name)s. Details: %(err)s" +msgstr "" +"Impossible de redimensionner le volume de stockage %(name)s. Détails: %(err)s" + +#, python-format +msgid "Storage type %(type)s does not support volume create and delete" +msgstr "" +"Le type de stockage %(type)s ne supporte pas ni la création ni la " +"suppression de volume" + +msgid "Storage volume name must be a string" +msgstr "Le nom de volume de stockage doit être une chaîne de caractères" + +msgid "Storage volume allocation must be an integer number" +msgstr "L'allocation de volume de stockage doit être une nombre entier" + +msgid "" +"Storage volume format not supported. Valid formats: bochs, cloop, cow, dmg, " +"qcow, qcow2, qed, raw, vmdk, vpc." +msgstr "" + +msgid "Storage volume requires a volume name" +msgstr "Le volume de stockage requiert un nom de volume" + +#, python-format +msgid "" +"Unable to update database with storage volume information due error: %(err)s" +msgstr "" +"Impossible de mettre à jour la base de données avec les informations du " +"volume de stockage à cause de l'erreur: %(err)s" + +#, python-format +msgid "Only one of parameter %(param)s can be specified" +msgstr "Seulement un seul des paramêtre %(param)s peut être spécifié" + +#, python-format +msgid "Create volume from %(param)s is not supported" +msgstr "La création de volume avec %(param)s n'est pas supportée" + +msgid "Storage volume capacity must be an integer number." +msgstr "La capacité du volume de stockage doit être un nombre entier." + +msgid "Storage volume URL must be http://, https://, ftp:// or ftps://." +msgstr "" +"L'URL du volume de stockage doit être http://, https://, ftp:// ou ftps://." + +#, python-format +msgid "Unable to access file %(url)s. Please, check it." +msgstr "Impossible d'accéder au fichier %(url)s. Veuillez le vérifier." + +#, python-format +msgid "" +"Unable to clone storage volume '%(name)s' in pool '%(pool)s'. Details: " +"%(err)s" +msgstr "" + +msgid "Specify chunk data and its size to upload a file." +msgstr "" + +msgid "In order to upload a storage volume, specify the 'upload' parameter." +msgstr "" + +msgid "" +"Unable to upload chunk data as it does not match with requested chunk size." +msgstr "" + +#, python-format +msgid "The storage volume %(vol)s is not under an upload process." +msgstr "" + +msgid "The upload chunk data will exceed the storage volume size." +msgstr "" + +#, python-format +msgid "Unable to upload chunk data to storage volume. Details: %(err)s." +msgstr "" + +#, python-format +msgid "Interface %(name)s does not exist" +msgstr "L'interface %(name)s n'existe pas" + +#, python-format +msgid "Network %(name)s already exists" +msgstr "Le réseau %(name)s existe déjà" + +#, python-format +msgid "Network %(name)s does not exist" +msgstr "Le réseau %(name)s n'existe pas" + +#, python-format +msgid "Subnet %(subnet)s specified for network %(network)s is not valid." +msgstr "" +"Le sous-réseau %(subnet)s spécifié pour le réseau %(network)s n'est pas " +"valide" + +#, python-format +msgid "Specify a network interface to create bridged network %(name)s" +msgstr "Spécifier une interface réseau pour créer le réseau bridge %(name)s" + +#, python-format +msgid "Unable to delete active network %(name)s" +msgstr "Impossible de supprimer le réseau actif %(name)s" + +#, python-format +msgid "Interface %(iface)s specified for network %(network)s is already in use" +msgstr "" +"L'interface %(iface)s spécifiée pour le réseau %(network)s est déjà utilisée" + +msgid "Interface should be bare NIC, bonding or bridge device." +msgstr "L'interface doit être un périphérique NIC vide, bonding ou bridgé." + +#, python-format +msgid "Unable to create network %(name)s. Details: %(err)s" +msgstr "Impossible de créer le réseau %(name)s. Détails: %(err)s" + +#, python-format +msgid "Unable to find a free IP address for network '%(name)s'" +msgstr "Impossible de trouver une adresse IP libre pour le réseau '%(name)s'" + +#, python-format +msgid "The interface %(iface)s already exists." +msgstr "L'interface %(iface)s existe déjà" + +msgid "Network name must be a string without slashes (/) or quotes (\")" +msgstr "" + +msgid "Supported network types are isolated, NAT and bridge" +msgstr "Les types de réseaux supportés sont isolated, NAT et bridge" + +msgid "Network subnet must be a string with IP address and prefix or netmask" +msgstr "" +"Le sous-réseau doit être une chaine de caractères avec une adresse IP et un " +"préfixe ou un masque de réseau" + +msgid "Network interface must be a string" +msgstr "L'interface de réseau doit être une chaîne de caractères" + +msgid "Network VLAN ID must be an integer between 1 and 4094" +msgstr "L'ID de VLAN du réseau doit être un nombre entier entre 1 et 4094" + +msgid "Specify name and type to create a Network" +msgstr "Spécifiez un nom et un type pour créer un réseau" + +#, python-format +msgid "" +"Unable to delete network %(name)s. There are some virtual machines %(vms)s " +"and/or templates linked to this network." +msgstr "" +"Impossible de supprimer le réseau %(name)s. Il y a des machines virtuelles " +"%(vms)s et/ou des modèles liés à ce réseau. " + +#, python-format +msgid "" +"Unable to deactivate network %(name)s. There are some virtual machines " +"%(vms)s and/or templates linked to this network." +msgstr "" +"Impossible de désactiver réseau %(name)s. Il y a des machines virtuelles" +"%(vms)s et/ou des modèles liés à ce réseau. " + +#, python-format +msgid "Bridge device %(name)s can not be the trunk device of a VLAN." +msgstr "" +"Le périphérique bridge %(name)s ne peut être le périphérique tronc d'un VLAN." + +#, python-format +msgid "Failed to activate interface %(iface)s: %(err)s." +msgstr "Échec durant l'activation de l'interface %(iface)s: %(err)s." + +#, python-format +msgid "" +"Failed to activate interface %(iface)s. Please check the physical link " +"status." +msgstr "" +"Échec durant l'activation de l'interface %(iface)s. Veuillez vérifier le " +"statut du lien physique." + +#, python-format +msgid "Failed to start network %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Debug report %(name)s does not exist" +msgstr "Le rapport de déboggage %(name)s n'existe pas" + +msgid "Debug report tool not found in system" +msgstr "L'outil de rapport de déboggage n'a pas été trouvé dans le système" + +#, python-format +msgid "Unable to create debug report %(name)s. Details: %(err)s." +msgstr "" +"Impossible de créer le rapport de déboggage %(name)s. Détails: %(err)s." + +#, python-format +msgid "Can not find any debug report with the given name %(name)s" +msgstr "" +"Impossible de trouver un rapport de déboggage avec le nom fourni %(name)s" + +#, python-format +msgid "Unable to generate debug report %(name)s. Details: %(err)s" +msgstr "" +"Impossible de générer le rapport de déboggage %(name)s. Détails: %(err)s" + +msgid "You should give a name for the debug report file." +msgstr "Vous devriez donner un nom au fichier de rapport de déboggage." + +msgid "" +"Debug report name must be a string. Only letters, digits, underscore ('_') " +"and hyphen ('-') are allowed." +msgstr "" +"Le nom du rapport de déboggage doit être une chaîne de caractères. Seulement " +"les lettres, chiffres, blanc souligné ('_') et tirets ('-') sont acceptés." + +#, python-format +msgid "" +"The debug report with specified name \"%(name)s\" already exists. Please use " +"another one." +msgstr "" +"Le rapport de déboggage avec le nom spécifié \"%(name)s\" existe déjà. " +"Veuillez en utiliser un autre." + +#, python-format +msgid "Storage server %(server)s was not used by Kimchi" +msgstr "Le server de stockage %(server)s n'était pas utilisé par Kimchi" + +#, python-format +msgid "Distro '%(name)s' does not exist" +msgstr "La distro '%(name)s' n'existe pas" + +#, python-format +msgid "Partition %(name)s does not exist in the host" +msgstr "La partition %(name)s n'existe pas sur cet hôte" + +msgid "Unable to shutdown host machine as there are running virtual machines" +msgstr "" +"Impossible d'éteindre la machine hôte car des machines virtuelles en sont " +"cours d'exécution" + +msgid "Unable to reboot host machine as there are running virtual machines" +msgstr "" +"Impossible de redémarrer la machine hôte car des machines virtuelles en sont " +"cours d'exécution" + +#, python-format +msgid "Node device '%(name)s' not found" +msgstr "Périphérique de noeud '%(name)s' non trouvé" + +msgid "Conflicting flag filters specified." +msgstr "Filtres incompatibles spécifiés." + +msgid "No packages marked for update" +msgstr "Aucun paquet marqué pour mise à jour" + +#, python-format +msgid "Package %(name)s is not marked to be updated." +msgstr "Le paquet %(name)s n'est pas marqué pour mise à jour" + +#, python-format +msgid "Error while getting packages marked to be updated. Details: %(err)s" +msgstr "" +"Erreur durant la récupération des paquets marqués pour la miseà jour. " +"Détails: %(err)s" + +msgid "There is no compatible package manager for this system." +msgstr "Il n'y a pas de gestionnaire de paquets compatible avec ce système." + +#, python-format +msgid "Unable to find %(item)s in datastore" +msgstr "Impossible de trouver %(item)s dans le magasin de données" + +#, python-format +msgid "Invalid URI %(uri)s" +msgstr "URI %(uri)s invalide" + +#, python-format +msgid "Timeout while running command '%(cmd)s' after %(seconds)s seconds" +msgstr "" +"Timeout durant l'exécution de la commande '%(cmd)s' après %(seconds)s " +"secondes" + +msgid "Unable to choose a virtual machine name" +msgstr "Impossible de sélectionner un nom de machine virtuelle" + +#, python-format +msgid "Invalid data value '%(value)s'" +msgstr "" + +#, python-format +msgid "Invalid data unit '%(unit)s'" +msgstr "" + +msgid "Invalid storage type. Types supported: 'cdrom', 'disk'" +msgstr "Type de stockage invalide. Les Types supportés sont: 'cdrom', 'disk'" + +#, python-format +msgid "The path '%(value)s' is not a valid local/remote path for the device" +msgstr "" + +msgid "Only CDROM path can be update." +msgstr "Seulement le chemin d'un CDROM peut être modifié." + +#, python-format +msgid "" +"The storage device %(dev_name)s does not exist in the virtual machine " +"%(vm_name)s" +msgstr "" +"Le périphérique de stockage %(dev_name)s n'existe pas dans la machine " +"virtuelle %(vm_name)s" + +#, python-format +msgid "Error while creating new storage device: %(error)s" +msgstr "" +"Erreur durant la création du nouveau périphérique de stockage: %(error)s" + +#, python-format +msgid "Error while updating storage device: %(error)s" +msgstr "Erreur durant la mise à jour du périphérique de stockage: %(error)s" + +#, python-format +msgid "Error while removing storage device: %(error)s" +msgstr "Erreur durant le retrait du périphérique de stockage: %(error)s" + +msgid "Do not support IDE device hot plug" +msgstr "Ne pas supporter le branchement à chaud de périphérique IDE" + +msgid "" +"Specify type and path or type and pool/volume to add a new virtual machine " +"disk" +msgstr "" +"Spécifier le type et le chemin ou le type et le pool/volume pour ajouter un " +"nouveau disque de machine virtuelle." + +msgid "Specify path to update virtual machine disk" +msgstr "Spécifier un chemin pour mettre à jour le disque de machine virtuelle" + +#, python-format +msgid "Controller type %(type)s limitation of %(limit)s devices reached" +msgstr "" +"La limitation de %(limit)s périphériques a été atteinte pour le contrôleur " +"de type %(type)s " + +#, python-format +msgid "Cannot retrieve disk path information for given pool/volume: %(error)s" +msgstr "" + +msgid "Volume already in use by other virtual machine." +msgstr "" + +msgid "" +"Only one of path or pool/volume can be specified to add a new virtual " +"machine disk" +msgstr "" +"Seul un chemin ou pool/volume peut être spécifié pour ajouter un nouveau " +"disque de machine virtuelle" + +#, python-format +msgid "" +"Volume chosen with format %(format)s does not fit in the storage type " +"%(type)s" +msgstr "" +"Le volume de format %(format)s sélectionné ne correspond pas au type de " +"stockage %(type)s" + +msgid "YUM Repository ID must be one word only string." +msgstr "" +"L'ID du dépôt YUM doit être une chaîne de caractères ne comportant qu'un " +"seul mot" + +msgid "Repository URL must be an http://, ftp:// or file:// URL." +msgstr "L'URL du dépôt doit être une URL en http://, ftp:// ou file://." + +msgid "" +"Repository configuration is a dictionary with specific values according to " +"repository type." +msgstr "" +"La configuration du dépôt est un dictionaire avec des valeurs spécifiques en " +"accord avec le type de dépôt." + +msgid "Distribution to DEB repository must be a string" +msgstr "" +"La distribution dans le nom de dépôt DEB doit être une chaîne de caractères" + +msgid "Components to DEB repository must be listed in a array" +msgstr "Les composants dans le dépôt DEB doivent être listés dans un tableau" + +msgid "Components to DEB repository must be a string" +msgstr "Les composants dans le dépôt DEB doivent être une chaîne de caractères" + +msgid "Mirror list to repository must be a string" +msgstr "" + +msgid "YUM Repository name must be string." +msgstr "Le nom du dépôt YUM doit être une chaîne de caractères" + +msgid "GPG check must be a boolean value." +msgstr "La vérification GPG doit être une valeur booléenne." + +msgid "GPG key must be a URL pointing to the ASCII-armored file." +msgstr "La clé GPG doit être une URL pointant vers un fichier ASCII non armé." + +#, python-format +msgid "Could not update repository %(repo_id)s." +msgstr "Ne peut mettre à jour le dépôt %(repo_id)s." + +#, python-format +msgid "Repository %(repo_id)s does not exist." +msgstr "Le dépôt %(repo_id)s n'existe pas." + +msgid "" +"Specify repository base URL, mirror list or metalink in order to create or " +"update a YUM repository." +msgstr "" + +msgid "Repository management tool was not recognized for your system." +msgstr "L'outil de gestion de dépôt n'a pas été reconnu pour votre système." + +#, python-format +msgid "Repository %(repo_id)s is already enabled." +msgstr "Le dépôt %(repo_id)s est déjà activé." + +#, python-format +msgid "Repository %(repo_id)s is already disabled." +msgstr "Le dépôt %(repo_id)s est déjà désactivé." + +#, python-format +msgid "Could not remove repository %(repo_id)s." +msgstr "Ne peut supprimer le dépôt %(repo_id)s. " + +#, python-format +msgid "Could not write repository configuration file %(repo_file)s" +msgstr "Ne peut écrire le fichier de configuration du dépôt %(repo_file)s" + +msgid "Specify repository distribution in order to create a DEB repository." +msgstr "Spécifier la distribution du dépôt afin de créer un dépôt DEB." + +#, python-format +msgid "Could not enable repository %(repo_id)s." +msgstr "Ne peut activer le dépôt %(repo_id)s." + +#, python-format +msgid "Could not disable repository %(repo_id)s." +msgstr "Ne peut désactiver le dépôt %(repo_id)s." + +msgid "YUM Repository ID already exists" +msgstr "L'ID du dépôt YUM existe déjà" + +msgid "YUM Repository name must be a string" +msgstr "Le nom du dépôt YUM doit être une chaîne de caractères" + +#, python-format +msgid "Unable to list repositories. Details: '%(err)s'" +msgstr "Impossible de lister les dépôts. Détails: '%(err)s'" + +#, python-format +msgid "Unable to retrieve repository information. Details: '%(err)s'" +msgstr "Impossible de récupérer les informations du dépôt. Détails: '%(err)s'" + +#, python-format +msgid "Unable to add repository. Details: '%(err)s'" +msgstr "Impossible d'ajouter un dépôt. Détails: '%(err)s'" + +#, python-format +msgid "Unable to remove repository. Details: '%(err)s'" +msgstr "Impossible de supprimer un dépôt. Détails: '%(err)s'" + +#, python-format +msgid "" +"Configuration items: '%(items)s' are not supported by repository manager" +msgstr "" +"Éléments de configurations: %(items)s ne sont pas supportés par le " +"gestionnaire de dépôt" + +msgid "Repository metalink must be an http://, ftp:// or file:// URL." +msgstr "" + +msgid "Cannot specify mirrorlist and metalink at the same time." +msgstr "" + +#, python-format +msgid "" +"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it." +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Snapshot '%(name)s' does not exist on virtual machine '%(vm)s'." +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Unable to list snapshots on virtual machine '%(vm)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to delete snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to revert virtual machine '%(vm)s' to snapshot '%(name)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot of virtual machine '%(vm)s' because it contains a " +"disk with format '%(format)s'; only 'qcow2' is supported." +msgstr "" + +msgid "The number of vCPUs is too large for this system." +msgstr "" + +msgid "Invalid vCPU/topology combination." +msgstr "" + +msgid "This host (or current configuration) does not allow CPU topology." +msgstr "" + +msgid "ERROR CODE" +msgstr "ERROR CODE" + +msgid "REASON" +msgstr "REASON" + +msgid "STACK" +msgstr "STACK" + +msgid "Go to Homepage" +msgstr "Aller à la page d'accueil" + +msgid "Create a New Virtual Machine" +msgstr "Créer une nouvelle Machine Virtuelle" + +msgid "Virtual Machine Name" +msgstr "Nom de Machine Virtuelle" + +msgid "" +"The name used to identify the virtual machine. If omitted, a name will be " +"chosen based on the template used." +msgstr "" +"Le nm est utilisé pour identifier une machine virtuelle. Si omis, un nom " +"sera choisi en se basant sur le modèle utilisé." + +msgid "Template" +msgstr "Modèle" + +msgid "Please create a template first." +msgstr "Veuillez d'abord créer un modèle." + +msgid "Create a Template" +msgstr "Créer un modèle" + +msgid "Please choose a template." +msgstr "Veuillez choisir un modèle" + +msgid "OS" +msgstr "OS" + +msgid "OS Version" +msgstr "Version de l'OS" + +msgid "CPUS" +msgstr "CPUS" + +msgid "Memory" +msgstr "Mémoire" + +msgid "Create" +msgstr "Créer" + +msgid "Creating..." +msgstr "Création en cours..." + +msgid "Edit Guest" +msgstr "Éditer l'Invité" + +msgid "General" +msgstr "Général" + +msgid "Storage" +msgstr "Stockage" + +msgid "Interface" +msgstr "Interface" + +msgid "Permission" +msgstr "Permission" + +msgid "Host PCI Device" +msgstr "Périphérique PCI Hôte" + +msgid "Snapshot" +msgstr "" + +msgid "Name" +msgstr "Nom" + +msgid "CPUs" +msgstr "CPUs" + +msgid "Memory (MB)" +msgstr "Mémoire (Mo)" + +msgid "Icon" +msgstr "Icone" + +msgid "Device" +msgstr "Périphérique" + +msgid "Path" +msgstr "Chemin" + +msgid "Network" +msgstr "Réseau" + +msgid "Type" +msgstr "Type" + +msgid "MAC Address" +msgstr "" + +msgid "Available system users and groups" +msgstr "Utilisateurs et groupes systèmes disponibles" + +msgid "Selected system users and groups" +msgstr "Utilisateurs et groupes systèmes sélectionnés" + +msgid "User" +msgstr "" + +msgid "All" +msgstr "Tous" + +msgid "To Add" +msgstr "À Ajouter" + +msgid "Added" +msgstr "Ajouter" + +msgid "filter" +msgstr "Filtre" + +msgid "Product" +msgstr "Produit" + +msgid "Vendor" +msgstr "Vendeur" + +msgid "Created" +msgstr "" + +msgid "Save" +msgstr "Enregistrer" + +msgid "Replace" +msgstr "Remplacer" + +msgid "Detach" +msgstr "Détacher" + +msgid "Cancel" +msgstr "Annuler" + +msgid "revert" +msgstr "" + +msgid "Add a Storage Device to VM" +msgstr "Ajouter un Périphérique de Stockage à la VM" + +msgid "Device Type" +msgstr "Type de Périphérique" + +msgid "The device type. Currently, \"cdrom\" and \"disk\" are supported." +msgstr "" +"Le type de périphérique. Actuellement, \"cdrom\" et \"disk\" sont supportés." + +msgid "Storage Pool" +msgstr "Pool de Stockage" + +msgid "Storage pool which volume located in" +msgstr "Pool de Stockage dans lequel le volume est situé" + +msgid "Storage Volume" +msgstr "Volume de Stockage" + +msgid "Storage volume to be attached" +msgstr "Le volume de stockage à attacher" + +msgid "File Path" +msgstr "Chemin de Fichier" + +msgid "The ISO file path in the server for CDROM." +msgstr "Le chemin de fichier ISO sur le serveur comme CDROM." + +msgid "Attach" +msgstr "Attacher" + +msgid "Start" +msgstr "Démarrer" + +msgid "Reset" +msgstr "Réinitialiser" + +msgid "Pause" +msgstr "" + +msgid "Resume" +msgstr "" + +msgid "Power Off" +msgstr "Mettre hors tension" + +msgid "Actions" +msgstr "Actions" + +msgid "Connect" +msgstr "Connecter" + +msgid "Clone" +msgstr "Cloner" + +msgid "Edit" +msgstr "Éditer" + +msgid "Shut Down" +msgstr "Éteindre" + +msgid "Delete" +msgstr "Supprimer" + +msgid "The username or password you entered is incorrect. Please try again." +msgstr "" +"Le nom d'utilisateur ou le mot de passe que vous avez entré est incorrect. " +"Veuillez essayer à nouveau." + +msgid "This field is required." +msgstr "Ce champ est requis." + +msgid "Log in" +msgstr "Se connecter" + +msgid "Logging in..." +msgstr "En cours de connexion..." + +msgid "Host" +msgstr "Hôte" + +msgid "Guests" +msgstr "Invités" + +msgid "Templates" +msgstr "Modèles" + +msgid "Failed to get application configuration" +msgstr "Échec lors de l'obtention de la configuration de l'application" + +msgid "This is not a valid Linux path" +msgstr "Ce n'est pas un chemin Linux valide" + +msgid "This is not a valid URL." +msgstr "Ce n'est pas une URL valide." + +msgid "No such data available." +msgstr "De telles données ne sont pas disponibles." + +msgid "" +"Can not contact the host system. Verify the host system is up and that you " +"have network connectivity to it. HTTP request response %1. " +msgstr "" +"Ne peut contacter le système hôte. Vérifiez que le système hôte est allumé " +"et que vous avez une connectivité réseau avec lui. Réponse de requête HTTP " +"%1." + +msgid "Unable to read file." +msgstr "" + +msgid "Error while uploading file." +msgstr "" + +msgid "Delete Confirmation" +msgstr "Confirmation de Suppression" + +msgid "OK" +msgstr "OK" + +msgid "Confirm" +msgstr "Confirmer" + +msgid "Warning" +msgstr "Avertissement" + +msgid "Cloning..." +msgstr "" + +msgid "Loading..." +msgstr "Chargement en cours..." + +msgid "An error occurred while retrieving system information." +msgstr "" + +msgid "Retry" +msgstr "Essayer à nouveau" + +msgid "Detailed message:" +msgstr "Message détaillé:" + +msgid "No ISO found" +msgstr "Aucune ISO détectée" + +msgid "This is not a valid ISO file." +msgstr "Ce n'est pas un fichier ISO valide." + +msgid "This may take a long time. Do you want to continue?" +msgstr "Cela va prendre un long moment. Voulez-vous continuer ?" + +msgid "This will permanently delete the template. Would you like to continue?" +msgstr "" +"Cela va supprimer de manière permanent le modèle. Souhaites-vous continuer ?" + +msgid "Unable to shut down system as there are some virtual machines running!" +msgstr "" +"Impossible d'éteindre le système du fait que certaines machines virtuelles " +"sont lancées !" + +msgid "Max:" +msgstr "Max:" + +msgid "Utilization" +msgstr "Utilisation" + +msgid "Available" +msgstr "Disponible" + +msgid "Read Rate" +msgstr "Taux en Lecture" + +msgid "Write Rate" +msgstr "Taux en Écriture" + +msgid "Received" +msgstr "Reçu" + +msgid "Sent" +msgstr "Envoyé" + +msgid "" +"Shutting down or restarting host will cause unsaved work lost. Continue to " +"shut down/restarting?" +msgstr "" +"Éteindre ou redémarrer l'hôte causera la perte de tout travail non " +"enregistré. Continuer à éteindre/redémarrer ?" + +msgid "" +"Repository will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" +"Le dépôt sera retiré de façon permanente et ne pourra être rétabli. Voulez-" +"vous continuer ?" + +msgid "Repositories" +msgstr "Dépôts" + +msgid "ID" +msgstr "ID" + +msgid "Base URL" +msgstr "URL de base" + +msgid "Is Mirror" +msgstr "Est un miroir" + +msgid "URL Args" +msgstr "Arguments d'URL" + +msgid "Enabled" +msgstr "Activé" + +msgid "GPG Check" +msgstr "Vérification GPG" + +msgid "GPG Key" +msgstr "Clé GPG" + +msgid "Add" +msgstr "Ajouter" + +msgid "Remove" +msgstr "Retirer" + +msgid "Enable" +msgstr "Activer" + +msgid "Disable" +msgstr "Désactiver" + +msgid "Software Updates" +msgstr "Mises à jour Logiciel" + +msgid "Package Name" +msgstr "Nom de paquet" + +msgid "Version" +msgstr "Version" + +msgid "Architecture" +msgstr "Architecture" + +msgid "Repository" +msgstr "Dépôt" + +msgid "Update All" +msgstr "Tout mettre à jour" + +msgid "Updating..." +msgstr "En cours de mise à jour..." + +msgid "Failed to retrieve packages update information." +msgstr "Échec de récupération des informations de mise-à-jour des paquets." + +msgid "Failed to update package(s)." +msgstr "Échec durant la mise à jour du/des paquet(s)" + +msgid "" +"Debug report will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" +"Le rapport de déboggage sera enlevé de façon permanente et ne pourra être " +"rétabli. Voulez-vous continuer ?" + +msgid "Debug Reports" +msgstr "Rapports de Déboggage" + +msgid "Generated Time" +msgstr "Horodatage de génération" + +msgid "Generate" +msgstr "Générer" + +msgid "Generating..." +msgstr "En cours de génération..." + +msgid "Rename" +msgstr "Renommer" + +msgid "Download" +msgstr "Télécharger" + +msgid "" +"Report name should contain only letters, digits, underscore ('_') and/or " +"hyphen ('-')." +msgstr "" +"Le nom de rapport devrait contenir uniquement des lettres, nombres, " +"soulignement ('_') et/ou tiret ('-')." + +msgid "Pending..." +msgstr "En attente..." + +msgid "Report name is the same as the original one." +msgstr "Le nom du rapport est le même que celui d'origine." + +msgid "" +"This will delete the virtual machine and its virtual disks. This operation " +"cannot be undone. Would you like to continue?" +msgstr "" +"Cela va supprimer la machine virtuelle et tous ses disques virtuels. Cette " +"opération est irréversible. Voulez-vous continuer ?" + +msgid "Power off Confirmation" +msgstr "Confirmation de mise hors tension" + +msgid "" +"This action may produce undesirable results, for example unflushed disk " +"cache in the guest. Would you like to continue?" +msgstr "" +"Cette action pourrait produire des résultats indésirables, par exemple un " +"cache disque non flushé dans l'invité. Voulez-vous continuer ?" + +msgid "Reset Confirmation" +msgstr "Confirmation de Réinitialisation" + +msgid "" +"There is a risk of data loss caused by reset without the guest OS shutdown. " +"Would you like to continue?" +msgstr "" +"Il y a un risque de perte de données causées par une réinitialisation sans " +"extinction de l'OS invité. Voulez-vous continuer ?" + +msgid "Shut Down Confirmation" +msgstr "Confirmation d'Extinction" + +msgid "Note the guest OS may ignore this request. Would you like to continue?" +msgstr "" +"Noter que l'OS invité pourrait ignorer cette requête. Voulez-vous continuer ?" + +msgid "Virtual Machine delete Confirmation" +msgstr "Confirmation de suppression de Machine Virtuelle" + +msgid "" +"This virtual machine is not persistent. Power Off will delete it. Continue?" +msgstr "" + +msgid "" +"When the target guest has SCSI or iSCSI volumes, they will be cloned on " +"default storage pool. The same will happen when the target pool does not " +"have enough space to clone the volumes. Do you want to continue?" +msgstr "" + +msgid "" +"This CDROM will be detached permanently and you can re-attach it. Continue " +"to detach it?" +msgstr "" +"Ce CDROM sera détaché de façon permanente et vous pourrez le ré-attacher. " +"Continuer le détachement ?" + +msgid "Attaching..." +msgstr "En cours d'attachement..." + +msgid "Replacing..." +msgstr "En cours de Remplacement..." + +msgid "Successfully attached!" +msgstr "Attaché avec succès !" + +msgid "Successfully replaced!" +msgstr "Remplacé avec succès !" + +msgid "Successfully detached!" +msgstr "Détaché avec Succès !" + +msgid "" +"This disk will be detached permanently and you can re-attach it. Continue to " +"detach it?" +msgstr "" +"Ce disque sera définitivement détaché et peut être ré-attaché. Continuer à " +"le détacher ?" + +msgid "interface:" +msgstr "" + +msgid "address:" +msgstr "" + +msgid "link_type:" +msgstr "" + +msgid "block:" +msgstr "" + +msgid "drive_type:" +msgstr "" + +msgid "model:" +msgstr "" + +msgid "Affected devices:" +msgstr "" + +msgid "The VLAN id must be between 1 and 4094." +msgstr "L'id du VLAN doit être entre 1 et 4094." + +msgid "unavailable" +msgstr "non disponible" + +msgid "" +"This action will interrupt network connectivity for any virtual machine that " +"depend on this network." +msgstr "" +"Cette action va interrompre la connectivité réseau pour tout machine " +"virtuelle qui dépend de ce réseau." + +msgid "Create a network" +msgstr "Créer un réseau" + +msgid "" +"This network is not persistent. Instead of stop, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"Ce réseau n'est pas persistant. Au lieu de s'arrêter, cette actionva le " +"suppromer de manière permanente. Voulez-vous continuer ?" + +msgid "" +"The bridged VLAN tag may not work well with NetworkManager enabled. You " +"should consider disabling it." +msgstr "" + +msgid "" +"This will permanently delete the storage pool. Would you like to continue?" +msgstr "" +"Cela va effacer de manière permanente le pool de stockage. Voulez-vous " +"continuer ?" + +msgid "This storage pool is empty." +msgstr "Ce pool de stockage est vide." + +msgid "" +"It will format your disk and you will loose any data in there, are you sure " +"to continue? " +msgstr "" +"Cela va formater votre disque et vous allez perdre toutes les données qui " +"s'y trouvent, êtes-vous sûr de continuer ?" + +msgid "SCSI Fibre Channel" +msgstr "Canal Fibre SCSI" + +msgid "No SCSI adapters found." +msgstr "Aucun adaptateur SCSI trouvé." + +msgid "Loading iSCSI targets..." +msgstr "" + +msgid "No iSCSI found. Please input one." +msgstr "" + +msgid "Failed to load iSCSI targets." +msgstr "" + +msgid "The storage pool name can not be blank." +msgstr "Le nom de pool de stockage ne peut être vierge." + +msgid "The storage pool path can not be blank." +msgstr "Le chemin de pool de stockage ne peut être vierge." + +msgid "NFS server mount path can not be blank." +msgstr "Le chemin de montage du serveur NFS ne peut être vierge." + +msgid "Invalid NFS mount path." +msgstr "Chemin de montage NFS invalide." + +msgid "No logical device selected." +msgstr "Aucun périphérique logique sélectionné." + +msgid "The iSCSI target can not be blank." +msgstr "La cible iSCSI ne peut être vierge." + +msgid "Server name can not be blank." +msgstr "Le nom de serveur ne peut être vierge." + +msgid "This is not a valid Server Name or IP. Please, modify it." +msgstr "" + +msgid "Looking for available partitions ..." +msgstr "En cours de recherche de partitions disponibles..." + +msgid "No available partitions found." +msgstr "Aucune partition disponible trouvée." + +msgid "" +"This storage pool is not persistent. Instead of deactivate, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"Le pool de stockage n'est pas persistent. Au lieu de le désactiver, cette " +"action va le supprimer de manière permanente. Voulez-vous continuer ?" + +msgid "Unable to retrieve partitions information." +msgstr "Impossible de récupérer les informations des partitions." + +msgid "In progress..." +msgstr "En cours..." + +msgid "Failed!" +msgstr "Échec!" + +msgid "CDROM path needs to be a valid local/remote path and cannot be blank." +msgstr "" +"Le chemin de CDROM doit être un chemin local/distant valide et ne peut être " +"virge." + +msgid "Disk pool or volume cannot be blank." +msgstr "Le pool de disque ou le volume ne peut être vierge." + +msgid "Peers" +msgstr "" + +msgid "Searching" +msgstr "" + +msgid "No peers found." +msgstr "" + +msgid "Help" +msgstr "Aide" + +msgid "About" +msgstr "A propos..." + +msgid "Log out" +msgstr "Se déconnecter" + +msgid "Version:" +msgstr "Version:" + +msgid "Session timeout, please re-login." +msgstr "Session expirée, veuillez vous reconnecter." + +msgid "User Name" +msgstr "Nom d'Utilisateur" + +msgid "Password" +msgstr "Mot de Passe" + +msgid "Generate a New Debug Report" +msgstr "Générer un Nouveau Rapport de Déboggage" + +msgid "Report Name" +msgstr "Nom du Rapport" + +msgid "" +"The name used to identify the report. If omitted, a name will be chosen " +"based on current time. Name can contain: letters, digits, underscore (\"_\") " +"and hyphen (\"-\")." +msgstr "" +"Le nom utilisé pour identifier le rapport. Si omis, un nom sera choisi basé " +"sur l'heure courante. Le nom peut contenir des lettres, des nombres, le " +"soulignement (\"_\") et le tiret (\"-\")." + +msgid "Rename a Debug Report" +msgstr "Renommer un Rapport de Déboggage" + +msgid "" +"The name used to identify the report. Name can contain: letters, digits and " +"hyphen (\"-\")." +msgstr "" +"Le nom utilisé pour identifer le rapport. Le nom peut contenir des lettres, " +"nombres et tirets (\"-\")." + +msgid "Submit" +msgstr "Soumettre" + +msgid "Add a Repository" +msgstr "Ajouter un Dépôt" + +msgid "Identifier" +msgstr "Identificateur" + +msgid "Single word, unique identifier for the repository." +msgstr "Mot unique, identifiant unique pour le dépôt." + +msgid "Textual name for the repository." +msgstr "Nom textuel pour le dépôt." + +msgid "URL" +msgstr "URL" + +msgid "Required Field" +msgstr "Champ requis" + +msgid "URL to the repository. Supported protocols are http, ftp, and file." +msgstr "URL du dépôt. Les protocoles supportés sont http, ftp et ficheir." + +msgid "Repository is a mirror" +msgstr "Le dépôt est un miroir" + +msgid "Distribution" +msgstr "Distribution" + +msgid "Distribution of the DEB repository." +msgstr "Distribution du dépôt DEB." + +msgid "Components" +msgstr "Composants" + +msgid "List of components in DEB repository." +msgstr "Liste des composants dans le dépôt DEB." + +msgid "Edit Repository" +msgstr "Editer le Dépôt" + +msgid "Mirror List URL" +msgstr "URL de Liste de Miroir" + +msgid "Yes" +msgstr "Oui" + +msgid "No" +msgstr "Non" + +msgid "Add a Volume to Storage Pool" +msgstr "iAjouter un Volume au Pool de Stockage" + +msgid "Fetch from remote URL" +msgstr "" + +msgid "Enter the remote URL here." +msgstr "Saisir une URL distante ici" + +msgid "Upload a file" +msgstr "Charger un fichier" + +msgid "Choose the file you want to upload." +msgstr "" + +msgid "Define a New Storage Pool" +msgstr "Définir un Nouveau Pool de Stockage" + +msgid "Storage Pool Name" +msgstr "Nom de Pool de Stockage" + +msgid "" +"The name used to identify the storage pools, and it should not be empty." +msgstr "" +"Le nom utilisé pour identifier les pools de stockage, et il ne doit pas être " +"vide." + +msgid "Storage Pool Type" +msgstr "Type de Pool de Stockage" + +msgid "Storage Path" +msgstr "Chemin de Stockage" + +msgid "" +"The path of the Storage Pool. Each Storage Pool must have a unique path." +msgstr "" +"Le chemin du Pool de Stockage. Chaque Pool de Stockage doit avoir un chemin " +"unique." + +msgid "" +"Kimchi will try to create the directory when it does not already exist in " +"your system." +msgstr "" +"Kimchi va essayer de créer un répertoire quand il n'existe pas déjà dans " +"votre système." + +msgid "NFS Server IP" +msgstr "IP du Serveur NFS" + +msgid "NFS server IP or hostname. It can be input or chosen from history." +msgstr "" +"IP du Serveur NFS ou nom d'hôte. Il peut être saisi ou entré à partir de " +"l'historique." + +msgid "NFS Path" +msgstr "Chemin NFS" + +msgid "The NFS exported path on NFS server." +msgstr "Le chemin NFS exporté sur le serveur NFS." + +msgid "Device path" +msgstr "Chemin du Périphérique" + +msgid "iSCSI Server" +msgstr "Serveur iSCSI" + +msgid "iSCSI server IP or hostname. It should not be empty." +msgstr "IP du Serveur iSCSI ou nom d'hôte. Il ne devrait pas être vide." + +msgid "Server" +msgstr "Serveur" + +msgid "Port" +msgstr "Port" + +msgid "Target" +msgstr "Cible" + +msgid "The iSCSI target on iSCSI server" +msgstr "La cible iSCSI sur le serveur iSCSI" + +msgid "Add iSCSI Authentication" +msgstr "Ajouter l'Authentification iSCSI" + +msgid "iSCSI Authentication" +msgstr "Authentification iSCSI" + +msgid "SCSI Adapter" +msgstr "Adaptateur SCSI" + +msgid "Please, wait..." +msgstr "Veuillez patienter..." + +msgid "Add Template" +msgstr "Ajouter un Modèle" + +msgid "Where is the source media for this template? " +msgstr "Où se trouve le media source pour le modèle ?" + +msgid "Local ISO Image" +msgstr "Image ISO Locale" + +msgid "Local Image File" +msgstr "Fichier Image Local" + +msgid "Remote ISO Image" +msgstr "Image ISO Distante" + +msgid "Search ISOs" +msgstr "Rechercher des ISOs" + +msgid "The following ISOs are available:" +msgstr "Les ISOs suivants sont disponibles:" + +msgid "OS: " +msgstr "OS: " + +msgid "Version: " +msgstr "Version: " + +msgid "Size: " +msgstr "Taille: " + +msgid "Search more ISOs" +msgstr "Chercher plus d'ISOs" + +msgid "Create Templates from Selected ISO" +msgstr "Créer des modèles depuis l'ISO sélectionné" + +msgid "I want to use a specific ISO file" +msgstr "Je veux utiliser un fichier ISO spécifique" + +msgid "Loading default remote ISOs ..." +msgstr "Chargement des ISOs distants par défaut en cours..." + +msgid "Arch: " +msgstr "Arch: " + +msgid "I want to use a custom URL" +msgstr "Je veux utiliser une URL personnalisée" + +msgid "Edit Template" +msgstr "Éditer un Modèle" + +msgid "Processor" +msgstr "Processeur" + +msgid "CDROM" +msgstr "CDROM" + +msgid "Image File" +msgstr "Fichier Image" + +msgid "Graphics" +msgstr "Graphiques" + +msgid "Disk(GB)" +msgstr "" + +msgid "Disk Format" +msgstr "" + +msgid "CPU Number" +msgstr "Nombre de CPU" + +msgid "Manually set CPU topology" +msgstr "" + +msgid "Cores" +msgstr "" + +msgid "Threads" +msgstr "" + +msgid "CPU" +msgstr "CPU" + +msgid "Disk I/O" +msgstr "E/S Disque" + +msgid "Network I/O" +msgstr "E/S Réseau" + +msgid "Livetile" +msgstr "Livetile" + +msgid "No guests found." +msgstr "Aucun invité trouvé." + +msgid "Shut down" +msgstr "Éteindre" + +msgid "Restart" +msgstr "Redémarrer" + +msgid "Basic Information" +msgstr "Informations de Base" + +msgid "OS Distro" +msgstr "Distro de l'OS" + +msgid "OS Code Name" +msgstr "Nom de code de l'OS" + +msgid "CPU(s)" +msgstr "" + +msgid "System Statistics" +msgstr "Statistiques Système" + +msgid "Update Progress" +msgstr "Progrès de la Mise à Jour" + +msgid "Network Name" +msgstr "Nom de Réseau" + +msgid "State" +msgstr "État" + +msgid "Network Type" +msgstr "Type de Réseau" + +msgid "Address Space" +msgstr "Espace d'adressage" + +msgid "Name should not contain '/' and '\"'." +msgstr "Le nom ne devrait pas contenir '/' et '\"'." + +msgid "Isolated: no external network connection" +msgstr "Isolé: pas de connexion à un réseau externe" + +msgid "NAT: outbound physical network connection only" +msgstr "NAT: connexion physique au réseau sortant uniquement" + +msgid "Bridged: Virtual machines are connected to physical network directly" +msgstr "" +"Bridgé: Les macines virtuelles sont connectées directement au réseau physique" + +msgid "(No interfaces found)" +msgstr "(Aucune interface trouvée)" + +msgid "Destination" +msgstr "Destination" + +msgid "Enable VLAN" +msgstr "Activer le VLAN" + +msgid "VLAN ID" +msgstr "ID de VLAN" + +msgid "Stop" +msgstr "Arrêter" + +msgid "%Used" +msgstr "" + +msgid "Location" +msgstr "Emplacement" + +msgid "Capacity" +msgstr "Capacité" + +msgid "Allocated" +msgstr "Alloué" + +msgid "active" +msgstr "actif" + +msgid "inactive" +msgstr "inactif" + +msgid "Deactivate" +msgstr "Désactiver" + +msgid "Activate" +msgstr "Activer" + +msgid "Add Volume" +msgstr "Ajouter un Volume" + +msgid "Extend" +msgstr "Étendre" + +msgid "Undefine" +msgstr "Supprimer" + +msgid "Format" +msgstr "Format" + +msgid "Allocation" +msgstr "Allocation" + +msgid "No templates found." +msgstr "Aucun modèle trouvé." diff --git a/po/gen-pot.in b/po/gen-pot.in new file mode 100644 index 0000000..0e3cd10 --- /dev/null +++ b/po/gen-pot.in @@ -0,0 +1,9 @@ +#!/bin/bash + +for src in $@; do + if [ ${src: -3} == ".py" ]; then + cat $src + else + cat $src | @CHEETAH@ compile - + fi +done | xgettext --no-location -o kimchi.pot -L Python - diff --git a/po/it_IT.po b/po/it_IT.po new file mode 100644 index 0000000..87be969 --- /dev/null +++ b/po/it_IT.po @@ -0,0 +1,2306 @@ +# English translations for kimchi package. +# Copyright (C) 2013 ORGANIZATION +# +msgid "" +msgstr "" +"Project-Id-Version: kimchi 0.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-09 17:37-0300\n" +"PO-Revision-Date: 2013-07-11 17:32-0400\n" +"Last-Translator: Crístian Viana <vianac@linux.vnet.ibm.com>\n" +"Language-Team: English\n" +"Language: it_IT\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#, python-format +msgid "Unknown parameter %(value)s" +msgstr "" + +#, python-format +msgid "Delete is not allowed for %(resource)s" +msgstr "Eliminazione non consentita per %(resource)s" + +#, python-format +msgid "%(resource)s does not implement update method" +msgstr "%(resource)s non implementa il metodo di aggiornamento" + +#, python-format +msgid "Create is not allowed for %(resource)s" +msgstr "Creazione non consentita per %(resource)s" + +msgid "Unable to parse JSON request" +msgstr "Impossibile analizzare la richiesta JSON" + +msgid "This API only supports JSON" +msgstr "L'API supporta solo JSON" + +#, python-format +msgid "Parameters does not match requirement in schema: %(err)s" +msgstr "" + +msgid "You don't have permission to perform this operation." +msgstr "" + +msgid "Datastore is not initiated in the model object." +msgstr "Archivio dati non inizializzato nell'oggetto modello." + +#, python-format +msgid "Unable to start task due error: %(err)s" +msgstr "Impossibile avviare l'attività a causa dell'errore: %(err)s" + +#, python-format +msgid "Timeout of %(seconds)s seconds expired while running task '%(task)s." +msgstr "" + +#, python-format +msgid "Authentication failed for user '%(username)s'. [Error code: %(code)s]" +msgstr "" +"Autenticazione non riuscita per l'utente '%(username)s'. [Codice di errore: " +"%(code)s]" + +msgid "You are not authorized to access Kimchi" +msgstr "Non si dispone dell'autorizzazione ad accedere a Kimchi" + +#, python-format +msgid "Specify %(item)s to login into Kimchi" +msgstr "Specificare %(item)s per accedere a Kimchi" + +#, python-format +msgid "User %(user_id)s not found with given LDAP settings." +msgstr "" + +#, python-format +msgid "Invalid LDAP configuration: %(item)s : %(value)s" +msgstr "" + +msgid "Unknown \"_cap\" specified" +msgstr "" + +msgid "\"_passthrough\" should be \"true\" or \"false\"" +msgstr "" + +msgid "\"_passthrough_affected_by\" should be a device name string" +msgstr "" + +#, python-format +msgid "Error while getting block devices. Details: %(err)s" +msgstr "" +"Errore durante il richiamo dei dispositivi del blocco. Dettagli: %(err)s" + +#, python-format +msgid "Error while getting block device information for %(device)s." +msgstr "" +"Errore durante il richiamo delle informazioni sul dispositivo del blocco per " +"%(device)s." + +#, python-format +msgid "Unable to find distro file: %(filename)s" +msgstr "Impossibile trovare il file distro: %(filename)s" + +#, python-format +msgid "" +"Unable to parse distro file: %(filename)s. Make sure, it is a JSON file." +msgstr "" +"Impossibile analizzare il file distro: %(filename)s. Verificare che sia un " +"file JSON." + +#, python-format +msgid "Unable to login to iSCSI host target %(portal)s. Details: %(err)s" +msgstr "" +"Impossibile accedere a %(portal)s di destinazione host iSCSI. Dettagli: " +"%(err)s" + +#, python-format +msgid "Unable to login to iSCSI host %(host)s target %(target)s" +msgstr "Impossibile accedere alla destinazione %(target)s host %(host)s iSCSI" + +#, python-format +msgid "Unable to find ISO file %(filename)s" +msgstr "" + +#, python-format +msgid "The ISO file %(filename)s is not bootable" +msgstr "Il file ISO %(filename)s non è avviabile" + +#, python-format +msgid "The ISO file %(filename)s does not have a valid El Torito boot record" +msgstr "Il file ISO %(filename)s non ha un record di avvio El Torito valido" + +#, python-format +msgid "Invalid El Torito validation entry in ISO %(filename)s" +msgstr "Voce di convalida El Torito non valida in ISO %(filename)s" + +#, python-format +msgid "Invalid El Torito boot indicator in ISO %(filename)s" +msgstr "Indicatore di avvio El Torito non valido in ISO %(filename)s" + +#, python-format +msgid "Unexpected volume type for primary volume in ISO %(filename)s" +msgstr "Tipo di volume imprevisto per il volume primario in ISO %(filename)s" + +#, python-format +msgid "Bad format while reading volume descriptor in ISO %(filename)s" +msgstr "" +"Formato non corretto durante la lettura del descrittore volume in ISO " +"%(filename)s" + +#, python-format +msgid "" +"The hypervisor doesn't have permission to use this ISO %(filename)s. " +"Consider moving it under /var/lib/libvirt, or set the search permission to " +"file access control lists for '%(user)s' user if possible, or add the " +"'%(user)s' to the ISO path group, or (not recommended) 'chmod -R o+x " +"'path_to_iso'.Details: %(err)s" +msgstr "" +"L'hypervisor non dispone dell'autorizzazione per utilizzare questo ISO " +"%(filename)s. Spostarlo in /var/lib/libvirt o impostare l'autorizzazione di " +"ricerca per gli elenchi di controllo accesso ai file per l'utente " +"'%(user)s', se possibile, o aggiungere '%(user)s' al gruppo percorso ISO o " +"(non consigliato) 'chmod -R o+x 'path_to_iso'. Dettagli: %(err)s" + +msgid "An error occurred when probing image OS information." +msgstr "" + +msgid "No OS information found in given image." +msgstr "" + +#, python-format +msgid "Unable to read image file %(filename)s" +msgstr "" + +#, python-format +msgid "" +"Image file must be an existing file on system. %(filename)s is not a valid " +"input." +msgstr "" + +#, python-format +msgid "Virtual machine %(name)s already exists" +msgstr "Macchina virtuale %(name)s già esistente" + +#, python-format +msgid "Virtual machine %(name)s does not exist" +msgstr "La macchina virtuale %(name)s non esiste" + +#, python-format +msgid "" +"Unable to rename virtual machine %(name)s. The name %(new_name)s is already " +"in use or the virtual machine is not powered off." +msgstr "" + +#, python-format +msgid "Unable to retrieve screenshot for stopped virtual machine %(name)s" +msgstr "" +"Impossibile richiamare l'immagine per la macchina virtuale arrestata %(name)s" + +msgid "Remote ISO image is not supported by this server." +msgstr "L'immagine ISO remota non è supportata da questo server." + +#, python-format +msgid "Screenshot is not supported on virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Unable to create virtual machine %(name)s. Details: %(err)s" +msgstr "Impossibile creare la macchina virtuale %(name)s. Dettagli: %(err)s" + +#, python-format +msgid "Unable to update virtual machine %(name)s. Details: %(err)s" +msgstr "Impossibile creare la macchina virtuale %(name)s. Dettagli: %(err)s" + +#, python-format +msgid "Unable to retrieve virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Impossibile richiamare la macchina virtuale %(name)s. Dettagli: %(err)s" + +#, python-format +msgid "Unable to connect to powered off virtual machine %(name)s." +msgstr "" + +msgid "Virtual machine name must be a string without slashes (/)" +msgstr "" + +#, python-format +msgid "Invalid template URI %(value)s specified for virtual machine" +msgstr "" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for virtual machine" +msgstr "" + +msgid "Supported virtual machine graphics are Spice or VNC" +msgstr "" + +msgid "Graphics address to listen on must be IPv4 or IPv6" +msgstr "" +"L'indirizzo dei grafici su cui rimanere in ascolto deve essere IPv4 o IPv6" + +msgid "Specify a template to create a virtual machine from" +msgstr "Specificare un modello da cui creare una macchina virtuale" + +#, python-format +msgid "Unable to start virtual machine %(name)s. Details: %(err)s" +msgstr "Impossibile avviare la macchina virtuale %(name)s. Dettagli: %(err)s" + +#, python-format +msgid "Unable to power off virtual machine %(name)s. Details: %(err)s" +msgstr "Impossibile arrestare la macchina virtuale %(name)s. Dettagli: %(err)s" + +#, python-format +msgid "Unable to delete virtual machine %(name)s. Details: %(err)s" +msgstr "Impossibile eliminare la macchina virtuale %(name)s. Dettagli: %(err)s" + +#, python-format +msgid "Unable to reset virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Impossibile ridenominare la macchina virtuale %(name)s. Dettagli: %(err)s" + +msgid "User name list must be an array" +msgstr "" + +msgid "User name must be a string" +msgstr "Il nome della rete deve essere una stringa" + +msgid "Group name list must be an array" +msgstr "" + +msgid "Group name must be a string" +msgstr "Il nome della rete deve essere una stringa" + +#, python-format +msgid "User(s) '%(users)s' do not exist" +msgstr "L'utente '%(users)s' non esiste." + +#, python-format +msgid "Group(s) '%(groups)s' do not exist" +msgstr "L'utente '%(groups)s' non esiste." + +#, python-format +msgid "Unable to shutdown virtual machine %(name)s. Details: %(err)s" +msgstr "Impossibile arrestare la macchina virtuale %(name)s. Dettagli: %(err)s" + +#, python-format +msgid "" +"Unable to get access metadata of virtual machine %(name)s. Details: %(err)s" +msgstr "Impossibile avviare la macchina virtuale %(name)s. Dettagli: %(err)s" + +msgid "The guest console password must be a string." +msgstr "" + +msgid "The life time for the guest console password must be a number." +msgstr "" + +#, python-format +msgid "Virtual machine '%(name)s' must be stopped before cloning it." +msgstr "" + +#, python-format +msgid "Insufficient disk space to clone virtual machine '%(name)s'" +msgstr "" + +#, python-format +msgid "Unable to clone VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Invalid operation for non-persistent virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Cannot suspend VM '%(name)s' because it is not running." +msgstr "" + +#, python-format +msgid "Unable to suspend VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Cannot resume VM '%(name)s' because it is not paused." +msgstr "" + +#, python-format +msgid "Unable to resume VM '%(name)s'. Details: %(err)s" +msgstr "" + +msgid "Memory assigned is higher then the maximum allowed in the host." +msgstr "" + +#, python-format +msgid "" +"VM '%(name)s' does not support live memory update. Update the memory with " +"the machine offline to enable this feature." +msgstr "" + +msgid "Only increase memory is allowed in active VMs" +msgstr "" + +msgid "" +"For live memory update, new memory value must be equal old memory value plus " +"multiples of 1024 Mib" +msgstr "" + +msgid "There are not enough free slots of 1024 Mib in the guest." +msgstr "" + +msgid "" +"Host's libvirt version does not support memory devices. Libvirt must be >= " +"1.2.14" +msgstr "" + +#, python-format +msgid "Error attaching memory device. Details: %(error)s" +msgstr "" + +#, python-format +msgid "" +"VM %(vmid)s does not contain directly assigned host device %(dev_name)s." +msgstr "" + +#, python-format +msgid "The host device %(dev_name)s is not allowed to directly assign to VM." +msgstr "" + +msgid "" +"No IOMMU groups found. Host PCI pass through needs IOMMU group to function " +"correctly. Please enable Intel VT-d or AMD IOMMU in your BIOS, then verify " +"the Kernel is compiled with IOMMU support. For Intel CPU, add intel_iommu=on " +"to your Kernel parameter in /boot/grub2/grub.conf. For AMD CPU, add iommu=pt " +"iommu=1." +msgstr "" + +msgid "\"name\" should be a device name string" +msgstr "" + +#, python-format +msgid "Interface %(iface)s does not exist in virtual machine %(name)s" +msgstr "L'interfaccia %(iface)s non esiste nella macchina virtuale %(name)s" + +#, python-format +msgid "" +"Network %(network)s specified for virtual machine %(name)s does not exist" +msgstr "" +"La rete %(network)s specificata per la macchina virtuale %(name)s non esiste" + +msgid "Supported virtual machine interfaces type is only network" +msgstr "" +"Il tipo supportato per le interfacce della macchina virtuale è solo rete" + +msgid "Network name for virtual machine interface must be a string" +msgstr "" +"Il nome di rete per l'interfaccia della macchina virtuale deve essere una " +"stringa" + +msgid "Invalid network model card specified for virtual machine interface" +msgstr "" +"Scheda modello di rete non valida per l'interfaccia della macchina virtuale" + +msgid "Specify type and network to add a new virtual machine interface" +msgstr "" +"Specificare il tipo e la rete per aggiungere una nuova interfaccia della " +"macchina virtuale" + +msgid "MAC Address must respect this format FF:FF:FF:FF:FF:FF" +msgstr "" + +#, python-format +msgid "MAC Address %(mac)s already exists in virtual machine %(name)s" +msgstr "" + +msgid "Invalid MAC Address" +msgstr "" + +msgid "Cannot change MAC address of a running virtual machine" +msgstr "" + +#, python-format +msgid "Template %(name)s already exists" +msgstr "Modello %(name)s già esistente" + +#, python-format +msgid "" +"Network '%(network)s' specified for template %(template)s does not exist" +msgstr "" +"La rete '%(network)s' specificata per il modello %(template)s non esiste" + +#, python-format +msgid "" +"Storage pool %(pool)s specified for template %(template)s does not exist" +msgstr "" +"Il pool di memoria %(pool)s specificato per il modello %(template)s non " +"esiste" + +#, python-format +msgid "Storage pool %(pool)s specified for template %(template)s is not active" +msgstr "" +"Il pool di memoria %(pool)s specificato per il modello %(template)s non è " +"attivo" + +#, python-format +msgid "Invalid parameter '%(param)s' specified for CDROM." +msgstr "Parametro non valido %(param)s' specificato per CDROM." + +#, python-format +msgid "Network %(network)s specified for template %(template)s is not active" +msgstr "" +"La rete %(network)s specificata per il modello %(template)s non è attiva" + +msgid "Template name must be a string" +msgstr "Il nome del modello deve essere una stringa" + +msgid "Template icon must be a path to the image" +msgstr "L'icona del modello deve essere un percorso all'immagine" + +msgid "Template distribution must be a string" +msgstr "La distribuzione del modello deve essere una stringa" + +msgid "Template distribution version must be a string" +msgstr "La versione della distribuzione del modello deve essere una stringa" + +msgid "The number of CPUs must be an integer greater than 0" +msgstr "Il numero di CPU deve essere un numero intero" + +msgid "Amount of memory (MB) must be an integer greater than 512" +msgstr "" +"La quantità di memoria (MB) deve essere un numero intero maggiore di 512" + +msgid "Template CDROM must be a local or remote ISO file" +msgstr "Il CDROM del modello deve essere un file ISO locale o remoto" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for template" +msgstr "URI pool di memoria non valido: %(value)s specificato per il modello" + +msgid "Specify an ISO image as CDROM or a base image to create a template" +msgstr "Specificare un'immagine ISO come CDROM per creare un modello" + +msgid "All networks for the template must be specified in a list." +msgstr "Tutte le reti per il modello devono essere specificate in un elenco." + +msgid "Specify a volume to a template when storage pool is iSCSI or SCSI" +msgstr "" + +#, python-format +msgid "The volume %(volume)s is not in storage pool %(pool)s" +msgstr "" + +#, python-format +msgid "Unable to create template due error: %(err)s" +msgstr "Impossibile creare il modello a causa dell'errore: %(err)s" + +#, python-format +msgid "Unable to delete template due error: %(err)s" +msgstr "Impossibile eliminare il modello a causa dell'errore: %(err)s" + +msgid "Disk size must be an integer greater than 1GB." +msgstr "" + +msgid "Template base image must be a valid local image file" +msgstr "Il CDROM del modello deve essere un file ISO locale o remoto" + +#, python-format +msgid "Cannot identify base image %(path)s format" +msgstr "" + +msgid "" +"When specifying CPU topology, VCPUs must be a product of sockets, cores, and " +"threads." +msgstr "" + +msgid "" +"When specifying CPU topology, each element must be an integer greater than " +"zero." +msgstr "" + +msgid "" +"Invalid disk image format. Valid formats: bochs, cloop, cow, dmg, qcow, " +"qcow2, qed, raw, vmdk, vpc." +msgstr "" + +#, python-format +msgid "Storage pool %(name)s already exists" +msgstr "Pool di memoria %(name)s già esistente" + +#, python-format +msgid "Storage pool %(name)s does not exist" +msgstr "Il pool di memoria %(name)s non esiste" + +#, python-format +msgid "Specify %(item)s in order to create the storage pool %(name)s" +msgstr "Specificare %(item)s per poter creare il pool di memoria %(name)s" + +#, python-format +msgid "Unable to delete active storage pool %(name)s" +msgstr "Impossibile eliminare il pool di memoria attivo %(name)s" + +#, python-format +msgid "Unable to list storage pools. Details: %(err)s" +msgstr "Impossibile elencare i pool di memoria. Dettagli: %(err)s" + +#, python-format +msgid "Unable to create storage pool %(name)s. Details: %(err)s" +msgstr "Impossibile creare il pool di memoria %(name)s. Dettagli: %(err)s" + +#, python-format +msgid "" +"Unable to get number of storage volumes in storage pool %(name)s. Details: " +"%(err)s" +msgstr "" +"Impossibile ottenere il numero di volumi di memoria nel pool di memoria " +"%(name)s. Dettagli: %(err)s" + +#, python-format +msgid "Unable to activate storage pool %(name)s. Details: %(err)s" +msgstr "Impossibile attivare il pool di memoria %(name)s. Dettagli: %(err)s" + +#, python-format +msgid "Unable to deactivate storage pool %(name)s. Details: %(err)s" +msgstr "Impossibile disattivare il pool di memoria %(name)s. Dettagli: %(err)s" + +#, python-format +msgid "Unable to delete storage pool %(name)s. Details: %(err)s" +msgstr "Impossibile eliminare il pool di memoria %(name)s. Dettagli: %(err)s" + +#, python-format +msgid "" +"Unable to create NFS Pool as export path %(path)s may block during mount" +msgstr "" +"Impossibile creare il pool NFS poiché il percorso di esportazione %(path)s " +"potrebbe bloccarsi durante il montaggio" + +#, python-format +msgid "Unable to create NFS Pool as export path %(path)s mount failed" +msgstr "" +"Impossibile creare il pool NFS poiché il montaggio del percorso di " +"esportazione %(path)s ha avuto esito negativo" + +#, python-format +msgid "Unsupported storage pool type: %(type)s" +msgstr "Tipo di pool di memoria non supportato: %(type)s" + +#, python-format +msgid "Error while retrieving storage pool XML to %(pool)s" +msgstr "" + +msgid "Storage pool name must be a string without slashes (/)" +msgstr "" + +msgid "" +"Supported storage pool types are dir, netfs, logical, iscsi, isci and kimchi-" +"iso" +msgstr "" + +msgid "Storage pool path must be a string" +msgstr "Il percorso del pool di memoria deve essere una stringa" + +msgid "Storage pool host must be a IP or hostname" +msgstr "L'host del pool di memoria deve essere un nome host o IP" + +msgid "Storage pool device must be the absolute path to the block device" +msgstr "" + +msgid "Storage pool devices parameter must be a list" +msgstr "Il parametro dispositivi pool di memoria deve essere un elenco" + +msgid "Target IQN of an iSCSI pool must be a string" +msgstr "L'IQN di destinazione di un pool iSCSI deve essere una stringa" + +msgid "Port of a remote storage server must be an integer between 1 and 65535" +msgstr "" +"La porta di un server di memoria remoto deve essere un numero intero tra 1 e " +"65535" + +msgid "iSCSI target username must be a string" +msgstr "" + +msgid "iSCSI target password must be a string" +msgstr "" + +msgid "Specify name and type to create a storage pool" +msgstr "Specificare nome e tipo per creare un pool di memoria" + +#, python-format +msgid "" +"%(disk)s is not a valid disk/partition. Could not add it to the pool " +"%(pool)s." +msgstr "" +"%(disk)s non è un disco/partizione valido. Impossibile aggiungerlo al pool " +"%(pool)s." + +#, python-format +msgid "Unable to extend logical pool %(pool)s. Details: %(err)s" +msgstr "" + +msgid "The parameter disks only can be updated for logical storage pool." +msgstr "" +"Solo il parametro dischi può essere aggiornato per il pool di memoria logico." + +msgid "The SCSI host adapter name must be a string." +msgstr "Il nome adattatore host SCSI deve essere una stringa." + +msgid "The storage pool kimchi_isos is reserved for internal use" +msgstr "Il pool di memoria kimchi_isos è riservato per uso interno" + +#, python-format +msgid "" +"Unable to activate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"Impossibile attivare il pool di memoria NFS %(name)s. Il server NFS " +"%(server)s è irraggiungibile." + +#, python-format +msgid "" +"Unable to deactivate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"Impossibile disattivare il pool di memoria NFS %(name)s. Il server NFS " +"%(server)s è irraggiungibile." + +#, python-format +msgid "" +"Unable to deactivate pool %(name)s as it is associated with some templates" +msgstr "" +"Impossibile disattivare il pool %(name)s poiché è associato ad alcuni modelli" + +#, python-format +msgid "Unable to delete pool %(name)s as it is associated with some templates" +msgstr "" +"Impossibile eliminare il pool %(name)s poiché è associato ad alcuni modelli" + +#, python-format +msgid "" +"A volume group named '%(name)s' already exists. Please, choose another name " +"to create the logical pool." +msgstr "" +"Un gruppo di volumi denominato '%(name)s' esiste già. Scegliere un altro " +"nome per creare il pool logico." + +#, python-format +msgid "Unable to update database with deep scan information due error: %(err)s" +msgstr "" +"Impossibile aggiornare il database con informazioni approfondite sulla " +"scansione a causa dell'errore: %(err)s" + +#, python-format +msgid "Storage volume %(name)s already exists" +msgstr "Volume di memoria %(name)s già esistente" + +#, python-format +msgid "Storage volume %(name)s does not exist in storage pool %(pool)s" +msgstr "Il volume di memoria %(name)s non esiste nel pool di memoria %(pool)s" + +#, python-format +msgid "" +"Unable to create storage volume %(volume)s because storage pool %(pool)s is " +"not active" +msgstr "" + +#, python-format +msgid "Specify %(item)s in order to create storage volume %(volume)s" +msgstr "Specificare %(item)s per poter creare il volume di memoria %(volume)s" + +#, python-format +msgid "" +"Unable to list storage volumes because storage pool %(pool)s is not active" +msgstr "" +"Impossibile elencare i volumi di memoria poiché il pool di memoria %(pool)s " +"non è attivo" + +#, python-format +msgid "" +"Unable to create storage volume %(name)s in storage pool %(pool)s. Details: " +"%(err)s" +msgstr "" +"Impossibile creare il volume di memoria %(name)s nel pool di memoria " +"%(pool)s. Dettagli: %(err)s" + +#, python-format +msgid "" +"Unable to list storage volumes in storage pool %(pool)s. Details: %(err)s" +msgstr "" +"Impossibile elencare i volumi di memoria nel pool di memoria %(pool)s. " +"Dettagli: %(err)s" + +#, python-format +msgid "Unable to wipe storage volumes %(name)s. Details: %(err)s" +msgstr "Impossibile ripulire i volumi di memoria %(name)s. Dettagli: %(err)s" + +#, python-format +msgid "Unable to delete storage volume %(name)s. Details: %(err)s" +msgstr "Impossibile eliminare il volume di memoria %(name)s. Dettagli: %(err)s" + +#, python-format +msgid "Unable to resize storage volume %(name)s. Details: %(err)s" +msgstr "" +"Impossibile ridimensionare il volume di memoria %(name)s. Dettagli: %(err)s" + +#, python-format +msgid "Storage type %(type)s does not support volume create and delete" +msgstr "" +"Il tipo di memoria %(type)s non supporta la creazione ed eliminazione del " +"volume" + +msgid "Storage volume name must be a string" +msgstr "Il nome del volume di memoria deve essere una stringa" + +msgid "Storage volume allocation must be an integer number" +msgstr "L'assegnazione del volume di memoria deve essere un numero intero" + +msgid "" +"Storage volume format not supported. Valid formats: bochs, cloop, cow, dmg, " +"qcow, qcow2, qed, raw, vmdk, vpc." +msgstr "" + +msgid "Storage volume requires a volume name" +msgstr "Il volume di memoria richiede un nome volume" + +#, python-format +msgid "" +"Unable to update database with storage volume information due error: %(err)s" +msgstr "" +"Impossibile aggiornare il database con informazioni sul volume di memoria a " +"causa dell'errore: %(err)s" + +#, python-format +msgid "Only one of parameter %(param)s can be specified" +msgstr "" + +#, python-format +msgid "Create volume from %(param)s is not supported" +msgstr "" + +msgid "Storage volume capacity must be an integer number." +msgstr "" + +msgid "Storage volume URL must be http://, https://, ftp:// or ftps://." +msgstr "" + +#, python-format +msgid "Unable to access file %(url)s. Please, check it." +msgstr "" + +#, python-format +msgid "" +"Unable to clone storage volume '%(name)s' in pool '%(pool)s'. Details: " +"%(err)s" +msgstr "" + +msgid "Specify chunk data and its size to upload a file." +msgstr "" + +msgid "In order to upload a storage volume, specify the 'upload' parameter." +msgstr "" + +msgid "" +"Unable to upload chunk data as it does not match with requested chunk size." +msgstr "" + +#, python-format +msgid "The storage volume %(vol)s is not under an upload process." +msgstr "" + +msgid "The upload chunk data will exceed the storage volume size." +msgstr "" + +#, python-format +msgid "Unable to upload chunk data to storage volume. Details: %(err)s." +msgstr "" + +#, python-format +msgid "Interface %(name)s does not exist" +msgstr "L'interfaccia %(name)s non esiste" + +#, python-format +msgid "Network %(name)s already exists" +msgstr "Rete %(name)s già esistente" + +#, python-format +msgid "Network %(name)s does not exist" +msgstr "La rete %(name)s non esiste" + +#, python-format +msgid "Subnet %(subnet)s specified for network %(network)s is not valid." +msgstr "" +"La sottorete %(subnet)s specificata per la rete %(network)s non è valida ." + +#, python-format +msgid "Specify a network interface to create bridged network %(name)s" +msgstr "" +"Specificare un'interfaccia di rete per creare la rete con bridge %(name)s" + +#, python-format +msgid "Unable to delete active network %(name)s" +msgstr "Impossibile eliminare la rete attiva %(name)s" + +#, python-format +msgid "Interface %(iface)s specified for network %(network)s is already in use" +msgstr "" +"L'interfaccia %(iface)s specificata per la rete %(network)s è già in uso" + +msgid "Interface should be bare NIC, bonding or bridge device." +msgstr "" +"L'interfaccia deve essere un dispositivo bridge o di collegamento NIC bare-" +"metal." + +#, python-format +msgid "Unable to create network %(name)s. Details: %(err)s" +msgstr "Impossibile creare la rete %(name)s. Dettagli: %(err)s" + +#, python-format +msgid "Unable to find a free IP address for network '%(name)s'" +msgstr "Impossibile trovare un indirizzo IP libero per la rete '%(name)s'" + +#, python-format +msgid "The interface %(iface)s already exists." +msgstr "L'interfaccia %(iface)s già esistente." + +msgid "Network name must be a string without slashes (/) or quotes (\")" +msgstr "" + +msgid "Supported network types are isolated, NAT and bridge" +msgstr "I tipi di rete supportati sono isolata, NAT e bridge" + +msgid "Network subnet must be a string with IP address and prefix or netmask" +msgstr "" +"La sottorete della rete deve essere una stringa con indirizzo IP e prefisso " +"o maschera di rete" + +msgid "Network interface must be a string" +msgstr "L'interfaccia di rete deve essere una stringa" + +msgid "Network VLAN ID must be an integer between 1 and 4094" +msgstr "L'ID VLAN di rete deve essere un numero intero tra 1 e 4094" + +msgid "Specify name and type to create a Network" +msgstr "Specificare nome e tipo per creare una rete" + +#, python-format +msgid "" +"Unable to delete network %(name)s. There are some virtual machines %(vms)s " +"and/or templates linked to this network." +msgstr "" +"Impossibile eliminare la rete %(name)s. Ci sono alcune macchine virtuali " +"%(vms)s e/o modelli collegati a tale rete." + +#, python-format +msgid "" +"Unable to deactivate network %(name)s. There are some virtual machines " +"%(vms)s and/or templates linked to this network." +msgstr "" +"Impossibile disattivare la rete %(name)s. Ci sono alcune macchine virtualie " +"%(vms)s e/o modelli collegati a tale rete." + +#, python-format +msgid "Bridge device %(name)s can not be the trunk device of a VLAN." +msgstr "" +"Il dispositivo bridge %(name)s non può essere il dispositivo trunk di una " +"VLAN." + +#, python-format +msgid "Failed to activate interface %(iface)s: %(err)s." +msgstr "Impossibile attivare l'interfaccia %(iface)s: %(err)s." + +#, python-format +msgid "" +"Failed to activate interface %(iface)s. Please check the physical link " +"status." +msgstr "" +"Impossibile attivare l'interfaccia %(iface)s. Controllare lo stato del link " +"fisico." + +#, python-format +msgid "Failed to start network %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Debug report %(name)s does not exist" +msgstr "Il report di debug %(name)s non esiste" + +msgid "Debug report tool not found in system" +msgstr "Strumento report di debug non trovato nel sistema" + +#, python-format +msgid "Unable to create debug report %(name)s. Details: %(err)s." +msgstr "Impossibile creare il report di debug %(name)s. Dettagli: %(err)s." + +#, python-format +msgid "Can not find any debug report with the given name %(name)s" +msgstr "" + +#, python-format +msgid "Unable to generate debug report %(name)s. Details: %(err)s" +msgstr "Impossibile generare il report di debug %(name)s. Dettagli: %(err)s" + +msgid "You should give a name for the debug report file." +msgstr "" + +msgid "" +"Debug report name must be a string. Only letters, digits, underscore ('_') " +"and hyphen ('-') are allowed." +msgstr "" + +#, python-format +msgid "" +"The debug report with specified name \"%(name)s\" already exists. Please use " +"another one." +msgstr "" +"Un gruppo di volumi denominato '%(name)s' esiste già. Scegliere un altro " +"nome per creare il pool logico." + +#, python-format +msgid "Storage server %(server)s was not used by Kimchi" +msgstr "Il server di memoria %(server)s non è stato utilizzato da Kimchi" + +#, python-format +msgid "Distro '%(name)s' does not exist" +msgstr "Distro '%(name)s' non esistente" + +#, python-format +msgid "Partition %(name)s does not exist in the host" +msgstr "La partizione %(name)s non esiste nell'host" + +msgid "Unable to shutdown host machine as there are running virtual machines" +msgstr "" +"Impossibile arrestare la macchina host poiché sono presenti macchine " +"virtuali in esecuzione" + +msgid "Unable to reboot host machine as there are running virtual machines" +msgstr "" +"Impossibile riavviare la macchina host poiché sono presenti macchine " +"virtuali in esecuzione" + +#, python-format +msgid "Node device '%(name)s' not found" +msgstr "Dispositivo nodo '%(name)s' non trovato" + +msgid "Conflicting flag filters specified." +msgstr "" + +msgid "No packages marked for update" +msgstr "Nessun pacchetto contrassegnato per l'aggiornamento" + +#, python-format +msgid "Package %(name)s is not marked to be updated." +msgstr "Il pacchetto %(name)s non è contrassegnato per l'aggiornamento." + +#, python-format +msgid "Error while getting packages marked to be updated. Details: %(err)s" +msgstr "" +"Errore durante il richiamo dei pacchetti contrassegnati per l'aggiornamento. " +"Dettagli: %(err)s" + +msgid "There is no compatible package manager for this system." +msgstr "Non è presente un gestore pacchetti compatibile per questo sistema." + +#, python-format +msgid "Unable to find %(item)s in datastore" +msgstr "Impossibile trovare %(item)s nell'archivio dati" + +#, python-format +msgid "Invalid URI %(uri)s" +msgstr "URI %(uri)s non valido" + +#, python-format +msgid "Timeout while running command '%(cmd)s' after %(seconds)s seconds" +msgstr "" +"È stato raggiunto il timeout durante l'esecuzione del comando '%(cmd)s' dopo " +"%(seconds)s secondi" + +msgid "Unable to choose a virtual machine name" +msgstr "" + +#, python-format +msgid "Invalid data value '%(value)s'" +msgstr "" + +#, python-format +msgid "Invalid data unit '%(unit)s'" +msgstr "" + +msgid "Invalid storage type. Types supported: 'cdrom', 'disk'" +msgstr "Tipo di memoria non valido. I tipi supportati sono: 'cdrom'" + +#, python-format +msgid "The path '%(value)s' is not a valid local/remote path for the device" +msgstr "" + +msgid "Only CDROM path can be update." +msgstr "" + +#, python-format +msgid "" +"The storage device %(dev_name)s does not exist in the virtual machine " +"%(vm_name)s" +msgstr "" + +#, python-format +msgid "Error while creating new storage device: %(error)s" +msgstr "" +"Errore durante la creazione del nuovo dispositivo di memoria: %(error)s" + +#, python-format +msgid "Error while updating storage device: %(error)s" +msgstr "Errore durante l'aggiornamento del dispositivo di memoria: %(error)s" + +#, python-format +msgid "Error while removing storage device: %(error)s" +msgstr "Errore durante la rimozione del dispositivo di memoria: %(error)s" + +msgid "Do not support IDE device hot plug" +msgstr "" + +msgid "" +"Specify type and path or type and pool/volume to add a new virtual machine " +"disk" +msgstr "" +"Specificare tipo e percorso per aggiungere un nuovo disco della macchina " +"virtuale" + +msgid "Specify path to update virtual machine disk" +msgstr "" +"Specificare il percorso per aggiornare il disco della macchina virtuale" + +#, python-format +msgid "Controller type %(type)s limitation of %(limit)s devices reached" +msgstr "" + +#, python-format +msgid "Cannot retrieve disk path information for given pool/volume: %(error)s" +msgstr "" + +msgid "Volume already in use by other virtual machine." +msgstr "" + +msgid "" +"Only one of path or pool/volume can be specified to add a new virtual " +"machine disk" +msgstr "" +"Specificare tipo e percorso per aggiungere un nuovo disco della macchina " +"virtuale" + +#, python-format +msgid "" +"Volume chosen with format %(format)s does not fit in the storage type " +"%(type)s" +msgstr "" + +msgid "YUM Repository ID must be one word only string." +msgstr "L'ID repository YUM deve essere una stringa di una sola parola." + +msgid "Repository URL must be an http://, ftp:// or file:// URL." +msgstr "L'URL del repository deve essere http://, ftp:// o file:// URL." + +msgid "" +"Repository configuration is a dictionary with specific values according to " +"repository type." +msgstr "" +"La configurazione del repository è un dizionario con valori specifici in " +"base al tipo di repository." + +msgid "Distribution to DEB repository must be a string" +msgstr "La distribuzione al repository DEB deve essere una stringa" + +msgid "Components to DEB repository must be listed in a array" +msgstr "I componenti per il repository DEB devono essere elencati in un array" + +msgid "Components to DEB repository must be a string" +msgstr "I componenti per il repository DEB devono essere una stringa" + +msgid "Mirror list to repository must be a string" +msgstr "" + +msgid "YUM Repository name must be string." +msgstr "Il nome del repository YUM deve essere una stringa." + +msgid "GPG check must be a boolean value." +msgstr "Il controllo GPG deve essere un valore booleano." + +msgid "GPG key must be a URL pointing to the ASCII-armored file." +msgstr "La chiave GPG deve essere un URL che punta al file blindato ASCII." + +#, python-format +msgid "Could not update repository %(repo_id)s." +msgstr "Impossibile aggiornare il repository %(repo_id)s." + +#, python-format +msgid "Repository %(repo_id)s does not exist." +msgstr "Il repository %(repo_id)s non esiste." + +msgid "" +"Specify repository base URL, mirror list or metalink in order to create or " +"update a YUM repository." +msgstr "" + +msgid "Repository management tool was not recognized for your system." +msgstr "" +"Lo strumento di gestione del repository non è stato riconosciuto per il " +"sistema." + +#, python-format +msgid "Repository %(repo_id)s is already enabled." +msgstr "Il repository %(repo_id)s è già abilitato." + +#, python-format +msgid "Repository %(repo_id)s is already disabled." +msgstr "Il repository %(repo_id)s è già disabilitato." + +#, python-format +msgid "Could not remove repository %(repo_id)s." +msgstr "Impossibile rimuovere il repository %(repo_id)s." + +#, python-format +msgid "Could not write repository configuration file %(repo_file)s" +msgstr "" +"Impossibile scrivere il file di configurazione del repository %(repo_file)s" + +msgid "Specify repository distribution in order to create a DEB repository." +msgstr "" +"Specificare la distribuzione del repository per poter creare un repository " +"DEB." + +#, python-format +msgid "Could not enable repository %(repo_id)s." +msgstr "Impossibile abilitare il repository %(repo_id)s." + +#, python-format +msgid "Could not disable repository %(repo_id)s." +msgstr "Impossibile disabilitare il repository %(repo_id)s." + +msgid "YUM Repository ID already exists" +msgstr "ID repository YUM già esistente" + +msgid "YUM Repository name must be a string" +msgstr "Il nome del repository YUM deve essere una stringa" + +#, python-format +msgid "Unable to list repositories. Details: '%(err)s'" +msgstr "Impossibile elencare i repository. Dettagli: '%(err)s'" + +#, python-format +msgid "Unable to retrieve repository information. Details: '%(err)s'" +msgstr "" +"Impossibile richiamare le informazioni sul repository. Dettagli: '%(err)s'" + +#, python-format +msgid "Unable to add repository. Details: '%(err)s'" +msgstr "Impossibile aggiungere il repository. Dettagli: '%(err)s'" + +#, python-format +msgid "Unable to remove repository. Details: '%(err)s'" +msgstr "Impossibile rimuovere il repository. Dettagli: '%(err)s'" + +#, python-format +msgid "" +"Configuration items: '%(items)s' are not supported by repository manager" +msgstr "" + +msgid "Repository metalink must be an http://, ftp:// or file:// URL." +msgstr "" + +msgid "Cannot specify mirrorlist and metalink at the same time." +msgstr "" + +#, python-format +msgid "" +"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it." +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Snapshot '%(name)s' does not exist on virtual machine '%(vm)s'." +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Unable to list snapshots on virtual machine '%(vm)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to delete snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to revert virtual machine '%(vm)s' to snapshot '%(name)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot of virtual machine '%(vm)s' because it contains a " +"disk with format '%(format)s'; only 'qcow2' is supported." +msgstr "" + +msgid "The number of vCPUs is too large for this system." +msgstr "" + +msgid "Invalid vCPU/topology combination." +msgstr "" + +msgid "This host (or current configuration) does not allow CPU topology." +msgstr "" + +msgid "ERROR CODE" +msgstr "CODICE DI ERRORE" + +msgid "REASON" +msgstr "CAUSA" + +msgid "STACK" +msgstr "STACK" + +msgid "Go to Homepage" +msgstr "Vai alla home page" + +msgid "Create a New Virtual Machine" +msgstr "Crea una nuova macchina virtuale" + +msgid "Virtual Machine Name" +msgstr "Nome macchina virtuale" + +msgid "" +"The name used to identify the virtual machine. If omitted, a name will be " +"chosen based on the template used." +msgstr "" +"Il nome utilizzato per identificare la macchina virtuale. Se il nome viene " +"omesso ne verrà scelto uno in base al modello utilizzato." + +msgid "Template" +msgstr "Modello" + +msgid "Please create a template first." +msgstr "Creare prima un modello." + +msgid "Create a Template" +msgstr "Crea un modello" + +msgid "Please choose a template." +msgstr "Scegliere un modello." + +msgid "OS" +msgstr "SO" + +msgid "OS Version" +msgstr "Versione SO" + +msgid "CPUS" +msgstr "CPUS" + +msgid "Memory" +msgstr "Memoria" + +msgid "Create" +msgstr "Crea" + +msgid "Creating..." +msgstr "" + +msgid "Edit Guest" +msgstr "Modifica guest" + +msgid "General" +msgstr "Generale" + +msgid "Storage" +msgstr "Memoria" + +msgid "Interface" +msgstr "Interfaccia" + +msgid "Permission" +msgstr "Versione" + +msgid "Host PCI Device" +msgstr "" + +msgid "Snapshot" +msgstr "" + +msgid "Name" +msgstr "Nome" + +msgid "CPUs" +msgstr "CPU" + +msgid "Memory (MB)" +msgstr "Memoria" + +msgid "Icon" +msgstr "Icona" + +msgid "Device" +msgstr "Nome dispositivo" + +msgid "Path" +msgstr "Percorso NFS" + +msgid "Network" +msgstr "Rete" + +msgid "Type" +msgstr "Tipo" + +msgid "MAC Address" +msgstr "" + +msgid "Available system users and groups" +msgstr "" + +msgid "Selected system users and groups" +msgstr "" + +msgid "User" +msgstr "" + +msgid "All" +msgstr "Tutti" + +msgid "To Add" +msgstr "" + +msgid "Added" +msgstr "" + +msgid "filter" +msgstr "" + +msgid "Product" +msgstr "" + +msgid "Vendor" +msgstr "Fornitore" + +msgid "Created" +msgstr "" + +msgid "Save" +msgstr "Salva" + +msgid "Replace" +msgstr "Sostituisci" + +msgid "Detach" +msgstr "Scollega" + +msgid "Cancel" +msgstr "Annulla" + +msgid "revert" +msgstr "" + +msgid "Add a Storage Device to VM" +msgstr "Aggiungi un dispositivo di memoria alla VM" + +msgid "Device Type" +msgstr "Tipo dispositivo" + +msgid "The device type. Currently, \"cdrom\" and \"disk\" are supported." +msgstr "Il tipo di dispositivo. Attualmente, è supportato solo \"cdrom\"." + +msgid "Storage Pool" +msgstr "Pool di memoria" + +msgid "Storage pool which volume located in" +msgstr "Il percorso del pool di memoria deve essere una stringa" + +msgid "Storage Volume" +msgstr "Nome pool di memoria" + +msgid "Storage volume to be attached" +msgstr "Il nome del volume di memoria deve essere una stringa" + +msgid "File Path" +msgstr "Percorso file" + +msgid "The ISO file path in the server for CDROM." +msgstr "Il percorso file ISO nel server per CDROM." + +msgid "Attach" +msgstr "Allega" + +msgid "Start" +msgstr "Avvia" + +msgid "Reset" +msgstr "Reimposta" + +msgid "Pause" +msgstr "" + +msgid "Resume" +msgstr "" + +msgid "Power Off" +msgstr "" + +msgid "Actions" +msgstr "Azioni" + +msgid "Connect" +msgstr "Connetti" + +msgid "Clone" +msgstr "" + +msgid "Edit" +msgstr "Modifica" + +msgid "Shut Down" +msgstr "Arresta" + +msgid "Delete" +msgstr "Elimina" + +msgid "The username or password you entered is incorrect. Please try again." +msgstr "" +"Il nome utente o la password immessi non sono corretti. Ripetere " +"l'operazione." + +msgid "This field is required." +msgstr "Questo campo è obbligatorio." + +msgid "Log in" +msgstr "Accedi" + +msgid "Logging in..." +msgstr "Accesso in corso..." + +msgid "Host" +msgstr "Host" + +msgid "Guests" +msgstr "Guest" + +msgid "Templates" +msgstr "Modelli" + +msgid "Failed to get application configuration" +msgstr "Richiamo della configurazione dell'applicazione non riuscito" + +msgid "This is not a valid Linux path" +msgstr "Non è un percorso Linux valido" + +msgid "This is not a valid URL." +msgstr "Non è un URL valido." + +msgid "No such data available." +msgstr "Dati indicati non disponibili." + +msgid "" +"Can not contact the host system. Verify the host system is up and that you " +"have network connectivity to it. HTTP request response %1. " +msgstr "" +"Impossibile contattare il sistema host. Verificare che il sistema host sia " +"attivo e che si disponga della connettività di rete per tale sistema. " +"Risposta alla richiesta HTTP %1. " + +msgid "Unable to read file." +msgstr "" + +msgid "Error while uploading file." +msgstr "" + +msgid "Delete Confirmation" +msgstr "Conferma eliminazione" + +msgid "OK" +msgstr "OK" + +msgid "Confirm" +msgstr "Conferma" + +msgid "Warning" +msgstr "Avvertenza" + +msgid "Cloning..." +msgstr "" + +msgid "Loading..." +msgstr "Caricamento in corso..." + +msgid "An error occurred while retrieving system information." +msgstr "" + +msgid "Retry" +msgstr "Riprova" + +msgid "Detailed message:" +msgstr "Messaggio dettagliato:" + +msgid "No ISO found" +msgstr "" + +msgid "This is not a valid ISO file." +msgstr "Non è un file ISO valido." + +msgid "This may take a long time. Do you want to continue?" +msgstr "Richiederà molto tempo. Continuare?" + +msgid "This will permanently delete the template. Would you like to continue?" +msgstr "L'azione eliminerà permanentemente il modello. Continuare?" + +msgid "Unable to shut down system as there are some virtual machines running!" +msgstr "" +"Impossibile arrestare il sistema poiché sono in esecuzione alcune macchine " +"virtuali." + +msgid "Max:" +msgstr "Massimo:" + +msgid "Utilization" +msgstr "Utilizzo" + +msgid "Available" +msgstr "Disponibile" + +msgid "Read Rate" +msgstr "Velocità di lettura" + +msgid "Write Rate" +msgstr "Velocità di scrittura" + +msgid "Received" +msgstr "Ricevuti" + +msgid "Sent" +msgstr "Inviati" + +msgid "" +"Shutting down or restarting host will cause unsaved work lost. Continue to " +"shut down/restarting?" +msgstr "" +"L'arresto o il riavvio dell'host provocherà la perdita del lavoro non " +"salvato. Continuare con l'arresto o il riavvio?" + +msgid "" +"Repository will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" +"Il repository verrà rimosso permanentemente e non potrà essere ripristinato. " +"Si desidera continuare?" + +msgid "Repositories" +msgstr "Repository" + +msgid "ID" +msgstr "ID" + +msgid "Base URL" +msgstr "URL di base" + +msgid "Is Mirror" +msgstr "È speculare" + +msgid "URL Args" +msgstr "Argomenti URL" + +msgid "Enabled" +msgstr "Abilitato" + +msgid "GPG Check" +msgstr "Controllo GPG" + +msgid "GPG Key" +msgstr "Chiave GPG" + +msgid "Add" +msgstr "Aggiungi" + +msgid "Remove" +msgstr "Rimuovi" + +msgid "Enable" +msgstr "Abilita" + +msgid "Disable" +msgstr "Disabilita" + +msgid "Software Updates" +msgstr "Aggiornamenti del software" + +msgid "Package Name" +msgstr "Nome pacchetto" + +msgid "Version" +msgstr "Versione" + +msgid "Architecture" +msgstr "Architettura" + +msgid "Repository" +msgstr "Repository" + +msgid "Update All" +msgstr "Aggiorna tutto" + +msgid "Updating..." +msgstr "Aggiornamento in corso..." + +msgid "Failed to retrieve packages update information." +msgstr "" + +msgid "Failed to update package(s)." +msgstr "Aggiornamento dei pacchetti non riuscito." + +msgid "" +"Debug report will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" +"Il report del debug verrà rimosso permanentemente e non potrà essere " +"ripristinato. Si desidera continuare?" + +msgid "Debug Reports" +msgstr "Report di debug" + +msgid "Generated Time" +msgstr "Ora di creazione" + +msgid "Generate" +msgstr "Crea" + +msgid "Generating..." +msgstr "Creazione in corso..." + +msgid "Rename" +msgstr "Ridenomina" + +msgid "Download" +msgstr "Scarica" + +msgid "" +"Report name should contain only letters, digits, underscore ('_') and/or " +"hyphen ('-')." +msgstr "" +"Il nome del report può contenere solo lettere, cifre e/o trattini ('-')." + +msgid "Pending..." +msgstr "Caricamento in corso..." + +msgid "Report name is the same as the original one." +msgstr "" + +msgid "" +"This will delete the virtual machine and its virtual disks. This operation " +"cannot be undone. Would you like to continue?" +msgstr "" +"L'operazione eliminerà la macchina virtuale e i relativi dischi virtuali e " +"non è reversibile. Continuare?" + +msgid "Power off Confirmation" +msgstr "Conferma eliminazione" + +msgid "" +"This action may produce undesirable results, for example unflushed disk " +"cache in the guest. Would you like to continue?" +msgstr "" + +msgid "Reset Confirmation" +msgstr "Conferma eliminazione" + +msgid "" +"There is a risk of data loss caused by reset without the guest OS shutdown. " +"Would you like to continue?" +msgstr "" + +msgid "Shut Down Confirmation" +msgstr "Conferma eliminazione" + +msgid "Note the guest OS may ignore this request. Would you like to continue?" +msgstr "L'azione eliminerà permanentemente il modello. Continuare?" + +msgid "Virtual Machine delete Confirmation" +msgstr "" + +msgid "" +"This virtual machine is not persistent. Power Off will delete it. Continue?" +msgstr "" + +msgid "" +"When the target guest has SCSI or iSCSI volumes, they will be cloned on " +"default storage pool. The same will happen when the target pool does not " +"have enough space to clone the volumes. Do you want to continue?" +msgstr "" + +msgid "" +"This CDROM will be detached permanently and you can re-attach it. Continue " +"to detach it?" +msgstr "" +"Il CDROM verrà scollegato permanentemente e non sarà possibile ricollegarlo. " +"Continuare con lo scollegamento?" + +msgid "Attaching..." +msgstr "Collegamento in corso..." + +msgid "Replacing..." +msgstr "Sostituzione in corso..." + +msgid "Successfully attached!" +msgstr "Collegamento riuscito." + +msgid "Successfully replaced!" +msgstr "Sostituzione riuscita." + +msgid "Successfully detached!" +msgstr "Scollegamento riuscito." + +msgid "" +"This disk will be detached permanently and you can re-attach it. Continue to " +"detach it?" +msgstr "" + +msgid "interface:" +msgstr "" + +msgid "address:" +msgstr "" + +msgid "link_type:" +msgstr "" + +msgid "block:" +msgstr "" + +msgid "drive_type:" +msgstr "" + +msgid "model:" +msgstr "" + +msgid "Affected devices:" +msgstr "" + +msgid "The VLAN id must be between 1 and 4094." +msgstr "L'ID VLAN deve essere compreso tra 1 e 4094." + +msgid "unavailable" +msgstr "non disponibile" + +msgid "" +"This action will interrupt network connectivity for any virtual machine that " +"depend on this network." +msgstr "" +"L'azione interromperà la connettività di rete per qualsiasi macchina " +"virtuale che dipende da questa rete." + +msgid "Create a network" +msgstr "Crea una rete" + +msgid "" +"This network is not persistent. Instead of stop, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"Il pool di memoria non è permanente. Invece di disattivarlo, l'azione lo " +"eliminerà permanentemente. Continuare?" + +msgid "" +"The bridged VLAN tag may not work well with NetworkManager enabled. You " +"should consider disabling it." +msgstr "" + +msgid "" +"This will permanently delete the storage pool. Would you like to continue?" +msgstr "L'azione eliminerà permanentemente il pool di memoria. Continuare?" + +msgid "This storage pool is empty." +msgstr "Il pool di memoria è vuoto." + +msgid "" +"It will format your disk and you will loose any data in there, are you sure " +"to continue? " +msgstr "" +"Il disco verrà formattato e tutti i dati su di esso andranno persi, sicuri " +"di voler continuare? " + +msgid "SCSI Fibre Channel" +msgstr "Canale a fibre ottiche SCSI" + +msgid "No SCSI adapters found." +msgstr "Nessun adattatore SCSI trovato." + +msgid "Loading iSCSI targets..." +msgstr "" + +msgid "No iSCSI found. Please input one." +msgstr "" + +msgid "Failed to load iSCSI targets." +msgstr "" + +msgid "The storage pool name can not be blank." +msgstr "Il campo per il nome del pool di memoria non può essere vuoto." + +msgid "The storage pool path can not be blank." +msgstr "Il campo per il percorso del pool di memoria non può essere vuoto." + +msgid "NFS server mount path can not be blank." +msgstr "" +"Il campo per il percorso di montaggio del server NFS non può essere vuoto." + +msgid "Invalid NFS mount path." +msgstr "Percorso di montaggio NFS non valido." + +msgid "No logical device selected." +msgstr "Nessun dispositivo logico selezionato." + +msgid "The iSCSI target can not be blank." +msgstr "Il campo per la destinazione iSCSI non può essere vuoto." + +msgid "Server name can not be blank." +msgstr "Il campo per il nome del server non può essere vuoto." + +msgid "This is not a valid Server Name or IP. Please, modify it." +msgstr "" + +msgid "Looking for available partitions ..." +msgstr "Ricerca di partizioni disponibili in corso..." + +msgid "No available partitions found." +msgstr "Nessuna partizione disponibile trovata." + +msgid "" +"This storage pool is not persistent. Instead of deactivate, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"Il pool di memoria non è permanente. Invece di disattivarlo, l'azione lo " +"eliminerà permanentemente. Continuare?" + +msgid "Unable to retrieve partitions information." +msgstr "" +"Impossibile richiamare le informazioni sul repository. Dettagli: '%(err)s'" + +msgid "In progress..." +msgstr "" + +msgid "Failed!" +msgstr "" + +msgid "CDROM path needs to be a valid local/remote path and cannot be blank." +msgstr "" + +msgid "Disk pool or volume cannot be blank." +msgstr "Il campo per il nome del pool di memoria non può essere vuoto." + +msgid "Peers" +msgstr "" + +msgid "Searching" +msgstr "" + +msgid "No peers found." +msgstr "" + +msgid "Help" +msgstr "Guida" + +msgid "About" +msgstr "Info su" + +msgid "Log out" +msgstr "Disconnetti" + +msgid "Version:" +msgstr "Versione:" + +msgid "Session timeout, please re-login." +msgstr "" + +msgid "User Name" +msgstr "Nome utente" + +msgid "Password" +msgstr "Password" + +msgid "Generate a New Debug Report" +msgstr "Crea un nuovo report di debug" + +msgid "Report Name" +msgstr "Nome report" + +msgid "" +"The name used to identify the report. If omitted, a name will be chosen " +"based on current time. Name can contain: letters, digits, underscore (\"_\") " +"and hyphen (\"-\")." +msgstr "" +"Il nome utilizzato per identificare il report. Se il nome viene omesso, ne " +"viene scelto uno in base all'ora corrente. Il nome può contenere lettere, " +"cifre e trattini (\"-\")." + +msgid "Rename a Debug Report" +msgstr "Crea un nuovo report di debug" + +msgid "" +"The name used to identify the report. Name can contain: letters, digits and " +"hyphen (\"-\")." +msgstr "" +"Il nome utilizzato per identificare il report. Se il nome viene omesso, ne " +"viene scelto uno in base all'ora corrente. Il nome può contenere lettere, " +"cifre e trattini (\"-\")." + +msgid "Submit" +msgstr "" + +msgid "Add a Repository" +msgstr "Aggiungi un repository" + +msgid "Identifier" +msgstr "Identificativo" + +msgid "Single word, unique identifier for the repository." +msgstr "Identificativo univoco di una sola parola per il repository." + +msgid "Textual name for the repository." +msgstr "Nome in formato testo per il repository." + +msgid "URL" +msgstr "URL" + +msgid "Required Field" +msgstr "Campo obbligatorio" + +msgid "URL to the repository. Supported protocols are http, ftp, and file." +msgstr "URL al repository. I protocolli supportati sono http, ftp e file." + +msgid "Repository is a mirror" +msgstr "Il repository è un elemento speculare." + +msgid "Distribution" +msgstr "Distribuzione" + +msgid "Distribution of the DEB repository." +msgstr "Distribuzione del repository DEB." + +msgid "Components" +msgstr "Componenti" + +msgid "List of components in DEB repository." +msgstr "Elenco di componenti nel repository DEB." + +msgid "Edit Repository" +msgstr "Modifica repository" + +msgid "Mirror List URL" +msgstr "URL elenco elementi speculari" + +msgid "Yes" +msgstr "Sì" + +msgid "No" +msgstr "No" + +msgid "Add a Volume to Storage Pool" +msgstr "" + +msgid "Fetch from remote URL" +msgstr "" + +msgid "Enter the remote URL here." +msgstr "" + +msgid "Upload a file" +msgstr "" + +msgid "Choose the file you want to upload." +msgstr "" + +msgid "Define a New Storage Pool" +msgstr "Definisci un nuovo pool di memoria" + +msgid "Storage Pool Name" +msgstr "Nome pool di memoria" + +msgid "" +"The name used to identify the storage pools, and it should not be empty." +msgstr "" +"Il nome utilizzato per identificare i pool di memoria; il campo non deve " +"essere vuoto." + +msgid "Storage Pool Type" +msgstr "Tipo di pool di memoria" + +msgid "Storage Path" +msgstr "Percorso di memoria" + +msgid "" +"The path of the Storage Pool. Each Storage Pool must have a unique path." +msgstr "" +"Il percorso del pool di memoria. Ogni pool di memoria deve avere un percorso " +"univoco." + +msgid "" +"Kimchi will try to create the directory when it does not already exist in " +"your system." +msgstr "" +"Kimchi tenterà di creare la directory nel caso non esista ancora sul sistema." + +msgid "NFS Server IP" +msgstr "IP server NFS" + +msgid "NFS server IP or hostname. It can be input or chosen from history." +msgstr "" +"Il nome host o l'indirizzo IP del server NFS. È possibile immetterlo o " +"sceglierlo dalla cronologia." + +msgid "NFS Path" +msgstr "Percorso NFS" + +msgid "The NFS exported path on NFS server." +msgstr "Il percorso esportato NFS sul server NFS." + +msgid "Device path" +msgstr "Percorso dispositivo" + +msgid "iSCSI Server" +msgstr "Server iSCSI" + +msgid "iSCSI server IP or hostname. It should not be empty." +msgstr "" +"Il nome host o l'indirizzo IP del server iSCSI. Il campo non deve essere " +"vuoto." + +msgid "Server" +msgstr "Server" + +msgid "Port" +msgstr "Porta" + +msgid "Target" +msgstr "Destinazione" + +msgid "The iSCSI target on iSCSI server" +msgstr "La destinazione iSCSI sul server iSCSI" + +msgid "Add iSCSI Authentication" +msgstr "Aggiungi autenticazione iSCSI" + +msgid "iSCSI Authentication" +msgstr "Autenticazione iSCSI" + +msgid "SCSI Adapter" +msgstr "Adattatore SCSI" + +msgid "Please, wait..." +msgstr "Attendere..." + +msgid "Add Template" +msgstr "Aggiungi modello" + +msgid "Where is the source media for this template? " +msgstr "Dov'è il supporto di origine per questo modello?" + +msgid "Local ISO Image" +msgstr "Immagine ISO locale" + +msgid "Local Image File" +msgstr "" + +msgid "Remote ISO Image" +msgstr "Immagine ISO remota" + +msgid "Search ISOs" +msgstr "Ricerca ISO" + +msgid "The following ISOs are available:" +msgstr "Sono disponibili i seguenti file ISO:" + +msgid "OS: " +msgstr "SO: " + +msgid "Version: " +msgstr "Versione: " + +msgid "Size: " +msgstr "Dimensione: " + +msgid "Search more ISOs" +msgstr "Ricerca più ISO" + +msgid "Create Templates from Selected ISO" +msgstr "Crea modelli da ISO selezionato" + +msgid "I want to use a specific ISO file" +msgstr "Utilizzare un file ISO specifico" + +msgid "Loading default remote ISOs ..." +msgstr "Caricamento di ISO remoti predefiniti in corso..." + +msgid "Arch: " +msgstr "Arch: " + +msgid "I want to use a custom URL" +msgstr "Utilizzare un URL personalizzato" + +msgid "Edit Template" +msgstr "Modifica modello" + +msgid "Processor" +msgstr "Processore" + +msgid "CDROM" +msgstr "CDROM" + +msgid "Image File" +msgstr "" + +msgid "Graphics" +msgstr "Grafici" + +msgid "Disk(GB)" +msgstr "" + +msgid "Disk Format" +msgstr "" + +msgid "CPU Number" +msgstr "Numero CPU" + +msgid "Manually set CPU topology" +msgstr "" + +msgid "Cores" +msgstr "" + +msgid "Threads" +msgstr "" + +msgid "CPU" +msgstr "CPU" + +msgid "Disk I/O" +msgstr "I/O disco" + +msgid "Network I/O" +msgstr "I/O di rete" + +msgid "Livetile" +msgstr "Riquadro animato" + +msgid "No guests found." +msgstr "Nessuna macchina guest trovata." + +msgid "Shut down" +msgstr "Arresta" + +msgid "Restart" +msgstr "Riavvia" + +msgid "Basic Information" +msgstr "Informazioni di base" + +msgid "OS Distro" +msgstr "Distro SO" + +msgid "OS Code Name" +msgstr "Nome codice SO" + +msgid "CPU(s)" +msgstr "" + +msgid "System Statistics" +msgstr "Statistiche di sistema" + +msgid "Update Progress" +msgstr "Avanzamento aggiornamento" + +msgid "Network Name" +msgstr "Nome rete" + +msgid "State" +msgstr "Stato" + +msgid "Network Type" +msgstr "Tipo di Rete" + +msgid "Address Space" +msgstr "Spazio indirizzo" + +msgid "Name should not contain '/' and '\"'." +msgstr "Nome pool di memoria non valido. Non deve contenere '/'." + +msgid "Isolated: no external network connection" +msgstr "Isolata: nessuna connessione di rete fisica" + +msgid "NAT: outbound physical network connection only" +msgstr "NAT: solo connessione di rete fisica in uscita" + +msgid "Bridged: Virtual machines are connected to physical network directly" +msgstr "" +"Con bridge: le macchine virtuali sono connesse direttamente alla rete fisica" + +msgid "(No interfaces found)" +msgstr "" + +msgid "Destination" +msgstr "Destinazione:" + +msgid "Enable VLAN" +msgstr "Abilita VLAN:" + +msgid "VLAN ID" +msgstr "ID VLAN:" + +msgid "Stop" +msgstr "Arresta" + +msgid "%Used" +msgstr "" + +msgid "Location" +msgstr "Ubicazione" + +msgid "Capacity" +msgstr "Capacità" + +msgid "Allocated" +msgstr "Assegnato" + +msgid "active" +msgstr "attivo" + +msgid "inactive" +msgstr "non attivo" + +msgid "Deactivate" +msgstr "Disattiva" + +msgid "Activate" +msgstr "Attiva" + +msgid "Add Volume" +msgstr "" + +msgid "Extend" +msgstr "" + +msgid "Undefine" +msgstr "Rimuovi definizione" + +msgid "Format" +msgstr "Formato:" + +msgid "Allocation" +msgstr "Allocazione:" + +msgid "No templates found." +msgstr "Nessun modello trovato." diff --git a/po/ja_JP.po b/po/ja_JP.po new file mode 100644 index 0000000..b7688e2 --- /dev/null +++ b/po/ja_JP.po @@ -0,0 +1,2301 @@ +# English translations for kimchi package. +# Copyright (C) 2013 ORGANIZATION +# +msgid "" +msgstr "" +"Project-Id-Version: kimchi 0.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-09 17:37-0300\n" +"PO-Revision-Date: 2013-07-11 17:32-0400\n" +"Last-Translator: Crístian Viana <vianac@linux.vnet.ibm.com>\n" +"Language-Team: English\n" +"Language: ja_JP\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#, python-format +msgid "Unknown parameter %(value)s" +msgstr "" + +#, python-format +msgid "Delete is not allowed for %(resource)s" +msgstr "%(resource)s の削除は許可されません" + +#, python-format +msgid "%(resource)s does not implement update method" +msgstr "%(resource)s は更新メソッドを実装していません" + +#, python-format +msgid "Create is not allowed for %(resource)s" +msgstr "%(resource)s の作成は許可されません" + +msgid "Unable to parse JSON request" +msgstr "JSON 要求を解析できません" + +msgid "This API only supports JSON" +msgstr "この API は JSON のみサポートします" + +#, python-format +msgid "Parameters does not match requirement in schema: %(err)s" +msgstr "" + +msgid "You don't have permission to perform this operation." +msgstr "" + +msgid "Datastore is not initiated in the model object." +msgstr "データ・ストアは、モデル・オブジェクトで開始されていません。" + +#, python-format +msgid "Unable to start task due error: %(err)s" +msgstr "次のエラーのため、タスクを開始できません: %(err)s" + +#, python-format +msgid "Timeout of %(seconds)s seconds expired while running task '%(task)s." +msgstr "" + +#, python-format +msgid "Authentication failed for user '%(username)s'. [Error code: %(code)s]" +msgstr "" +"ユーザー「%(username)s」の認証に失敗しました。[エラー・コード: %(code)s]" + +msgid "You are not authorized to access Kimchi" +msgstr "Kimchi へのアクセスを許可されていません" + +#, python-format +msgid "Specify %(item)s to login into Kimchi" +msgstr "Kimchi にログインするには、%(item)s を指定します" + +#, python-format +msgid "User %(user_id)s not found with given LDAP settings." +msgstr "" + +#, python-format +msgid "Invalid LDAP configuration: %(item)s : %(value)s" +msgstr "" + +msgid "Unknown \"_cap\" specified" +msgstr "" + +msgid "\"_passthrough\" should be \"true\" or \"false\"" +msgstr "" + +msgid "\"_passthrough_affected_by\" should be a device name string" +msgstr "" + +#, python-format +msgid "Error while getting block devices. Details: %(err)s" +msgstr "" +"ブロック・デバイスを取得しているときに、エラーがありました。詳細: %(err)s" + +#, python-format +msgid "Error while getting block device information for %(device)s." +msgstr "" +"%(device)s のブロック・デバイス情報を取得しているときに、エラーがありました。" + +#, python-format +msgid "Unable to find distro file: %(filename)s" +msgstr "ディストリビューション・ファイル %(filename)s が見つかりません" + +#, python-format +msgid "" +"Unable to parse distro file: %(filename)s. Make sure, it is a JSON file." +msgstr "" +"ディストリビューション・ファイル %(filename)s を解析できません。JSON ファイル" +"であることを確認してください。" + +#, python-format +msgid "Unable to login to iSCSI host target %(portal)s. Details: %(err)s" +msgstr "" +"iSCSI ホスト・ターゲット %(portal)s にログインできません。詳細: %(err)s" + +#, python-format +msgid "Unable to login to iSCSI host %(host)s target %(target)s" +msgstr "iSCSI ホスト %(host)s ターゲット %(target)s にログインできません" + +#, python-format +msgid "Unable to find ISO file %(filename)s" +msgstr "" + +#, python-format +msgid "The ISO file %(filename)s is not bootable" +msgstr "ISO ファイル %(filename)s は、ブート可能ではありません" + +#, python-format +msgid "The ISO file %(filename)s does not have a valid El Torito boot record" +msgstr "" +"ISO ファイル %(filename)s には、有効な El Torito ブート・レコードがありません" + +#, python-format +msgid "Invalid El Torito validation entry in ISO %(filename)s" +msgstr "無効な El Torito 検証エントリーが ISO %(filename)s にあります" + +#, python-format +msgid "Invalid El Torito boot indicator in ISO %(filename)s" +msgstr "無効な El Torito ブート・インジケーターが ISO %(filename)s にあります" + +#, python-format +msgid "Unexpected volume type for primary volume in ISO %(filename)s" +msgstr "" +"1 次ボリュームの予期しないボリューム・タイプが ISO %(filename)s にあります" + +#, python-format +msgid "Bad format while reading volume descriptor in ISO %(filename)s" +msgstr "" +"ボリューム・ディスクリプターを ISO %(filename)s から読み取っていましたが、" +"フォーマットが不正でした" + +#, python-format +msgid "" +"The hypervisor doesn't have permission to use this ISO %(filename)s. " +"Consider moving it under /var/lib/libvirt, or set the search permission to " +"file access control lists for '%(user)s' user if possible, or add the " +"'%(user)s' to the ISO path group, or (not recommended) 'chmod -R o+x " +"'path_to_iso'.Details: %(err)s" +msgstr "" +"ハイパーバイザーにこの ISO %(filename)s を使用する権限がありません。/var/lib/" +"libvirt の下に移動するか、可能であれば検索許可を「%(user)s」ユーザーのファイ" +"ル・アクセス制御リストに設定するか、「%(user)s」をISO パス・グループに追加す" +"るか、または「chmod -R o+x path_to_iso」を実行 (推奨されません) してくださ" +"い。詳細: %(err)s" + +msgid "An error occurred when probing image OS information." +msgstr "" + +msgid "No OS information found in given image." +msgstr "" + +#, python-format +msgid "Unable to read image file %(filename)s" +msgstr "" + +#, python-format +msgid "" +"Image file must be an existing file on system. %(filename)s is not a valid " +"input." +msgstr "" + +#, python-format +msgid "Virtual machine %(name)s already exists" +msgstr "仮想マシン %(name)s は既に存在します" + +#, python-format +msgid "Virtual machine %(name)s does not exist" +msgstr "仮想マシン %(name)s は存在しません" + +#, python-format +msgid "" +"Unable to rename virtual machine %(name)s. The name %(new_name)s is already " +"in use or the virtual machine is not powered off." +msgstr "" + +#, python-format +msgid "Unable to retrieve screenshot for stopped virtual machine %(name)s" +msgstr "停止している仮想マシン %(name)s のスクリーン・ショットを取得できません" + +msgid "Remote ISO image is not supported by this server." +msgstr "リモート ISO イメージは、このサーバーではサポートされていません。" + +#, python-format +msgid "Screenshot is not supported on virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Unable to create virtual machine %(name)s. Details: %(err)s" +msgstr "仮想マシン %(name)s を作成できません。詳細: %(err)s" + +#, python-format +msgid "Unable to update virtual machine %(name)s. Details: %(err)s" +msgstr "仮想マシン %(name)s を作成できません。詳細: %(err)s" + +#, python-format +msgid "Unable to retrieve virtual machine %(name)s. Details: %(err)s" +msgstr "仮想マシン %(name)s を取得できません。詳細: %(err)s" + +#, python-format +msgid "Unable to connect to powered off virtual machine %(name)s." +msgstr "" + +msgid "Virtual machine name must be a string without slashes (/)" +msgstr "" + +#, python-format +msgid "Invalid template URI %(value)s specified for virtual machine" +msgstr "" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for virtual machine" +msgstr "" + +msgid "Supported virtual machine graphics are Spice or VNC" +msgstr "" + +msgid "Graphics address to listen on must be IPv4 or IPv6" +msgstr "" +"listen を行うグラフィックス・アドレスは、IPv4 または IPv6 でなければなりませ" +"ん" + +msgid "Specify a template to create a virtual machine from" +msgstr "仮想マシンの作成元となるテンプレートを指定してください" + +#, python-format +msgid "Unable to start virtual machine %(name)s. Details: %(err)s" +msgstr "仮想マシン %(name)s を始動できません。詳細: %(err)s" + +#, python-format +msgid "Unable to power off virtual machine %(name)s. Details: %(err)s" +msgstr "仮想マシン %(name)s を停止できません。詳細: %(err)s" + +#, python-format +msgid "Unable to delete virtual machine %(name)s. Details: %(err)s" +msgstr "仮想マシン %(name)s を削除できません。詳細: %(err)s" + +#, python-format +msgid "Unable to reset virtual machine %(name)s. Details: %(err)s" +msgstr "仮想マシン %(name)s を名前変更できません。詳細: %(err)s" + +msgid "User name list must be an array" +msgstr "" + +msgid "User name must be a string" +msgstr "ネットワーク名はストリングでなければなりません" + +msgid "Group name list must be an array" +msgstr "" + +msgid "Group name must be a string" +msgstr "ネットワーク名はストリングでなければなりません" + +#, python-format +msgid "User(s) '%(users)s' do not exist" +msgstr "ユーザー「%(users)s」は存在しません。" + +#, python-format +msgid "Group(s) '%(groups)s' do not exist" +msgstr "ユーザー「%(groups)s」は存在しません。" + +#, python-format +msgid "Unable to shutdown virtual machine %(name)s. Details: %(err)s" +msgstr "仮想マシン %(name)s を停止できません。詳細: %(err)s" + +#, python-format +msgid "" +"Unable to get access metadata of virtual machine %(name)s. Details: %(err)s" +msgstr "仮想マシン %(name)s を始動できません。詳細: %(err)s" + +msgid "The guest console password must be a string." +msgstr "" + +msgid "The life time for the guest console password must be a number." +msgstr "" + +#, python-format +msgid "Virtual machine '%(name)s' must be stopped before cloning it." +msgstr "" + +#, python-format +msgid "Insufficient disk space to clone virtual machine '%(name)s'" +msgstr "" + +#, python-format +msgid "Unable to clone VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Invalid operation for non-persistent virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Cannot suspend VM '%(name)s' because it is not running." +msgstr "" + +#, python-format +msgid "Unable to suspend VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Cannot resume VM '%(name)s' because it is not paused." +msgstr "" + +#, python-format +msgid "Unable to resume VM '%(name)s'. Details: %(err)s" +msgstr "" + +msgid "Memory assigned is higher then the maximum allowed in the host." +msgstr "" + +#, python-format +msgid "" +"VM '%(name)s' does not support live memory update. Update the memory with " +"the machine offline to enable this feature." +msgstr "" + +msgid "Only increase memory is allowed in active VMs" +msgstr "" + +msgid "" +"For live memory update, new memory value must be equal old memory value plus " +"multiples of 1024 Mib" +msgstr "" + +msgid "There are not enough free slots of 1024 Mib in the guest." +msgstr "" + +msgid "" +"Host's libvirt version does not support memory devices. Libvirt must be >= " +"1.2.14" +msgstr "" + +#, python-format +msgid "Error attaching memory device. Details: %(error)s" +msgstr "" + +#, python-format +msgid "" +"VM %(vmid)s does not contain directly assigned host device %(dev_name)s." +msgstr "" + +#, python-format +msgid "The host device %(dev_name)s is not allowed to directly assign to VM." +msgstr "" + +msgid "" +"No IOMMU groups found. Host PCI pass through needs IOMMU group to function " +"correctly. Please enable Intel VT-d or AMD IOMMU in your BIOS, then verify " +"the Kernel is compiled with IOMMU support. For Intel CPU, add intel_iommu=on " +"to your Kernel parameter in /boot/grub2/grub.conf. For AMD CPU, add iommu=pt " +"iommu=1." +msgstr "" + +msgid "\"name\" should be a device name string" +msgstr "" + +#, python-format +msgid "Interface %(iface)s does not exist in virtual machine %(name)s" +msgstr "インターフェース %(iface)s は仮想マシン %(name)s には存在しません" + +#, python-format +msgid "" +"Network %(network)s specified for virtual machine %(name)s does not exist" +msgstr "" +"仮想マシン %(name)s 用に指定されているネットワーク %(network)s は存在しません" + +msgid "Supported virtual machine interfaces type is only network" +msgstr "" +"サポートされている仮想マシン・インターフェース・タイプは、ネットワークだけで" +"す" + +msgid "Network name for virtual machine interface must be a string" +msgstr "" +"仮想マシン・インターフェースのネットワーク名はストリングでなければなりません" + +msgid "Invalid network model card specified for virtual machine interface" +msgstr "" +"無効なネットワーク・モデル・カードが仮想マシン・インターフェースに指定されて" +"います" + +msgid "Specify type and network to add a new virtual machine interface" +msgstr "" +"新しい仮想マシン・インターフェースに追加するタイプおよびネットワークを指定し" +"ます" + +msgid "MAC Address must respect this format FF:FF:FF:FF:FF:FF" +msgstr "" + +#, python-format +msgid "MAC Address %(mac)s already exists in virtual machine %(name)s" +msgstr "" + +msgid "Invalid MAC Address" +msgstr "" + +msgid "Cannot change MAC address of a running virtual machine" +msgstr "" + +#, python-format +msgid "Template %(name)s already exists" +msgstr "テンプレート %(name)s は既に存在します" + +#, python-format +msgid "" +"Network '%(network)s' specified for template %(template)s does not exist" +msgstr "" +"テンプレート %(template)s 用に指定されているネットワーク「%(network)s」は存在" +"しません" + +#, python-format +msgid "" +"Storage pool %(pool)s specified for template %(template)s does not exist" +msgstr "" +"テンプレート %(template)s 用に指定されているストレージ・プール %(pool)s は存" +"在しません" + +#, python-format +msgid "Storage pool %(pool)s specified for template %(template)s is not active" +msgstr "" +"テンプレート %(template)s 用に指定されているストレージ・プール %(pool)s はア" +"クティブではありません" + +#, python-format +msgid "Invalid parameter '%(param)s' specified for CDROM." +msgstr "CDROM に指定されているパラメーター「%(param)s」は無効です。" + +#, python-format +msgid "Network %(network)s specified for template %(template)s is not active" +msgstr "" +"テンプレート %(template)s 用に指定されているネットワーク %(network)s はアク" +"ティブではありません" + +msgid "Template name must be a string" +msgstr "テンプレート名はストリングでなければなりません" + +msgid "Template icon must be a path to the image" +msgstr "テンプレート・アイコンはイメージのパスでなければなりません" + +msgid "Template distribution must be a string" +msgstr "テンプレート・ディストリビューションはストリングでなければなりません" + +msgid "Template distribution version must be a string" +msgstr "" +"テンプレート・ディストリビューション・バージョンはストリングでなければなりま" +"せん" + +msgid "The number of CPUs must be an integer greater than 0" +msgstr "CPU 数は整数でなければなりません" + +msgid "Amount of memory (MB) must be an integer greater than 512" +msgstr "メモリーの量 (MB 単位) は、512 より大きい整数でなければなりません" + +msgid "Template CDROM must be a local or remote ISO file" +msgstr "" +"テンプレート CDROM は、ローカルまたはリモート ISO ファイルでなければなりませ" +"ん" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for template" +msgstr "" +"無効なストレージ・プール URI %(value)s がテンプレートに指定されています" + +msgid "Specify an ISO image as CDROM or a base image to create a template" +msgstr "" +"CDROM として、テンプレートを作成するための ISO イメージを指定してください" + +msgid "All networks for the template must be specified in a list." +msgstr "テンプレート用のネットワークをすべてリストに指定する必要があります。" + +msgid "Specify a volume to a template when storage pool is iSCSI or SCSI" +msgstr "" + +#, python-format +msgid "The volume %(volume)s is not in storage pool %(pool)s" +msgstr "" + +#, python-format +msgid "Unable to create template due error: %(err)s" +msgstr "次のエラーのため、テンプレートを作成できません: %(err)s" + +#, python-format +msgid "Unable to delete template due error: %(err)s" +msgstr "次のエラーのため、テンプレートを削除できません: %(err)s" + +msgid "Disk size must be an integer greater than 1GB." +msgstr "" + +msgid "Template base image must be a valid local image file" +msgstr "" +"テンプレート CDROM は、ローカルまたはリモート ISO ファイルでなければなりませ" +"ん" + +#, python-format +msgid "Cannot identify base image %(path)s format" +msgstr "" + +msgid "" +"When specifying CPU topology, VCPUs must be a product of sockets, cores, and " +"threads." +msgstr "" + +msgid "" +"When specifying CPU topology, each element must be an integer greater than " +"zero." +msgstr "" + +msgid "" +"Invalid disk image format. Valid formats: bochs, cloop, cow, dmg, qcow, " +"qcow2, qed, raw, vmdk, vpc." +msgstr "" + +#, python-format +msgid "Storage pool %(name)s already exists" +msgstr "ストレージ・プール %(name)s は既に存在します" + +#, python-format +msgid "Storage pool %(name)s does not exist" +msgstr "ストレージ・プール %(name)s は存在しません" + +#, python-format +msgid "Specify %(item)s in order to create the storage pool %(name)s" +msgstr "" +"ストレージ・プール %(name)s を作成するためには、%(item)s を指定してください" + +#, python-format +msgid "Unable to delete active storage pool %(name)s" +msgstr "アクティブ・ストレージ・プール %(name)s は削除できません" + +#, python-format +msgid "Unable to list storage pools. Details: %(err)s" +msgstr "ストレージ・プールをリストできません。詳細: %(err)s" + +#, python-format +msgid "Unable to create storage pool %(name)s. Details: %(err)s" +msgstr "ストレージ・プール %(name)s を作成できません。詳細: %(err)s" + +#, python-format +msgid "" +"Unable to get number of storage volumes in storage pool %(name)s. Details: " +"%(err)s" +msgstr "" +"ストレージ・プール %(name)s のストレージ・ボリュームの数を取得できません。詳" +"細:%(err)s" + +#, python-format +msgid "Unable to activate storage pool %(name)s. Details: %(err)s" +msgstr "ストレージ・プール %(name)s をアクティブにできません。詳細: %(err)s" + +#, python-format +msgid "Unable to deactivate storage pool %(name)s. Details: %(err)s" +msgstr "ストレージ・プール %(name)s を非アクティブにできません。詳細: %(err)s" + +#, python-format +msgid "Unable to delete storage pool %(name)s. Details: %(err)s" +msgstr "ストレージ・プール %(name)s を削除できません。詳細: %(err)s" + +#, python-format +msgid "" +"Unable to create NFS Pool as export path %(path)s may block during mount" +msgstr "" +"マウント中にエクスポート・パス %(path)s がブロックされていた可能性があるた" +"め、NFS プールを作成できません" + +#, python-format +msgid "Unable to create NFS Pool as export path %(path)s mount failed" +msgstr "" +"エクスポート・パス %(path)s のマウントに失敗したため、NFS プールを作成できま" +"せん" + +#, python-format +msgid "Unsupported storage pool type: %(type)s" +msgstr "サポートされていないストレージ・プール・タイプ: %(type)s" + +#, python-format +msgid "Error while retrieving storage pool XML to %(pool)s" +msgstr "" + +msgid "Storage pool name must be a string without slashes (/)" +msgstr "" + +msgid "" +"Supported storage pool types are dir, netfs, logical, iscsi, isci and kimchi-" +"iso" +msgstr "" + +msgid "Storage pool path must be a string" +msgstr "ストレージ・プール・パスはストリングでなければなりません" + +msgid "Storage pool host must be a IP or hostname" +msgstr "ストレージ・プール・ホストは、IP またはホスト名でなければなりません" + +msgid "Storage pool device must be the absolute path to the block device" +msgstr "" + +msgid "Storage pool devices parameter must be a list" +msgstr "ストレージ・プール・デバイス・パラメーターはリストでなければなりません" + +msgid "Target IQN of an iSCSI pool must be a string" +msgstr "iSCSI プールのターゲット IQN はストリングでなければなりません" + +msgid "Port of a remote storage server must be an integer between 1 and 65535" +msgstr "" +"リモート・ストレージ・サーバーのポートは、1 から 65535 までの整数でなければな" +"りません" + +msgid "iSCSI target username must be a string" +msgstr "" + +msgid "iSCSI target password must be a string" +msgstr "" + +msgid "Specify name and type to create a storage pool" +msgstr "ストレージ・プールを作成するには、名前とタイプを指定してください" + +#, python-format +msgid "" +"%(disk)s is not a valid disk/partition. Could not add it to the pool " +"%(pool)s." +msgstr "" +"%(disk)s は、有効なディスク/パーティションではないため、プール %(pool)s に追" +"加できませんでした。" + +#, python-format +msgid "Unable to extend logical pool %(pool)s. Details: %(err)s" +msgstr "" + +msgid "The parameter disks only can be updated for logical storage pool." +msgstr "" +"論理ストレージ・プールを対象に更新できるのは、パラメーター・ディスクだけで" +"す。" + +msgid "The SCSI host adapter name must be a string." +msgstr "SCSI ホスト・アダプター名はストリングでなければなりません。" + +msgid "The storage pool kimchi_isos is reserved for internal use" +msgstr "ストレージ・プール kimchi_isos は、内部使用のために予約されています" + +#, python-format +msgid "" +"Unable to activate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"NFS ストレージ・プール %(name)s をアクティブにできません。NFS サーバー " +"%(server)s に到達できません。" + +#, python-format +msgid "" +"Unable to deactivate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"NFS ストレージ・プール %(name)s を非アクティブにできません。NFS サーバー " +"%(server)s に到達できません。" + +#, python-format +msgid "" +"Unable to deactivate pool %(name)s as it is associated with some templates" +msgstr "" +"プール %(name)s はいくつかのテンプレートに関連付けられているため、非アクティ" +"ブにできません" + +#, python-format +msgid "Unable to delete pool %(name)s as it is associated with some templates" +msgstr "" +"プール %(name)s はいくつかのテンプレートに関連付けられているため、削除できま" +"せん" + +#, python-format +msgid "" +"A volume group named '%(name)s' already exists. Please, choose another name " +"to create the logical pool." +msgstr "" +"名前「%(name)s」のボリューム・グループは既に存在します。論理プールを作成する" +"には、別の名前を選択してください。" + +#, python-format +msgid "Unable to update database with deep scan information due error: %(err)s" +msgstr "" +"次のエラーのため、データベースをディープ・スキャン情報で更新できません: " +"%(err)s" + +#, python-format +msgid "Storage volume %(name)s already exists" +msgstr "ストレージ・ボリューム %(name)s は既に存在します" + +#, python-format +msgid "Storage volume %(name)s does not exist in storage pool %(pool)s" +msgstr "" +"ストレージ・ボリューム %(name)s は、ストレージ・プール %(pool)s に存在しませ" +"ん" + +#, python-format +msgid "" +"Unable to create storage volume %(volume)s because storage pool %(pool)s is " +"not active" +msgstr "" + +#, python-format +msgid "Specify %(item)s in order to create storage volume %(volume)s" +msgstr "" +"ストレージ・ボリューム %(volume)s を作成するためには、%(item)s を指定してくだ" +"さい" + +#, python-format +msgid "" +"Unable to list storage volumes because storage pool %(pool)s is not active" +msgstr "" +"ストレージ・プール %(pool)s がアクティブではないため、ストレージ・ボリューム" +"をリストできません" + +#, python-format +msgid "" +"Unable to create storage volume %(name)s in storage pool %(pool)s. Details: " +"%(err)s" +msgstr "" +"ストレージ・ボリューム %(name)s をストレージ・プール %(pool)s に作成できませ" +"ん。詳細: %(err)s" + +#, python-format +msgid "" +"Unable to list storage volumes in storage pool %(pool)s. Details: %(err)s" +msgstr "" +"ストレージ・プール %(pool)s のストレージ・ボリュームをリストできません。詳" +"細: %(err)s" + +#, python-format +msgid "Unable to wipe storage volumes %(name)s. Details: %(err)s" +msgstr "ストレージ・プール %(name)s をワイプできません。詳細: %(err)s" + +#, python-format +msgid "Unable to delete storage volume %(name)s. Details: %(err)s" +msgstr "ストレージ・ボリューム %(name)s を削除できません。詳細: %(err)s" + +#, python-format +msgid "Unable to resize storage volume %(name)s. Details: %(err)s" +msgstr "ストレージ・ボリューム %(name)s をサイズ変更できません。詳細: %(err)s" + +#, python-format +msgid "Storage type %(type)s does not support volume create and delete" +msgstr "" +"ストレージ・タイプ %(type)s では、ボリューム作成および削除はサポートされてい" +"ません" + +msgid "Storage volume name must be a string" +msgstr "ストレージ・ボリューム名はストリングでなければなりません" + +msgid "Storage volume allocation must be an integer number" +msgstr "ストレージ・ボリューム割り振りは整数でなければなりません" + +msgid "" +"Storage volume format not supported. Valid formats: bochs, cloop, cow, dmg, " +"qcow, qcow2, qed, raw, vmdk, vpc." +msgstr "" + +msgid "Storage volume requires a volume name" +msgstr "ストレージ・ボリュームにはボリューム名が必要です" + +#, python-format +msgid "" +"Unable to update database with storage volume information due error: %(err)s" +msgstr "" +"次のエラーのため、データベースをストレージ・ボリューム情報で更新できません: " +"%(err)s" + +#, python-format +msgid "Only one of parameter %(param)s can be specified" +msgstr "" + +#, python-format +msgid "Create volume from %(param)s is not supported" +msgstr "" + +msgid "Storage volume capacity must be an integer number." +msgstr "" + +msgid "Storage volume URL must be http://, https://, ftp:// or ftps://." +msgstr "" + +#, python-format +msgid "Unable to access file %(url)s. Please, check it." +msgstr "" + +#, python-format +msgid "" +"Unable to clone storage volume '%(name)s' in pool '%(pool)s'. Details: " +"%(err)s" +msgstr "" + +msgid "Specify chunk data and its size to upload a file." +msgstr "" + +msgid "In order to upload a storage volume, specify the 'upload' parameter." +msgstr "" + +msgid "" +"Unable to upload chunk data as it does not match with requested chunk size." +msgstr "" + +#, python-format +msgid "The storage volume %(vol)s is not under an upload process." +msgstr "" + +msgid "The upload chunk data will exceed the storage volume size." +msgstr "" + +#, python-format +msgid "Unable to upload chunk data to storage volume. Details: %(err)s." +msgstr "" + +#, python-format +msgid "Interface %(name)s does not exist" +msgstr "インターフェース %(name)s は存在しません" + +#, python-format +msgid "Network %(name)s already exists" +msgstr "ネットワーク %(name)s は既に存在します" + +#, python-format +msgid "Network %(name)s does not exist" +msgstr "ネットワーク %(name)s は存在しません" + +#, python-format +msgid "Subnet %(subnet)s specified for network %(network)s is not valid." +msgstr "" +"ネットワーク %(network)s 用に指定されているサブネット %(subnet)s は無効です。" + +#, python-format +msgid "Specify a network interface to create bridged network %(name)s" +msgstr "" +"ブリッジ接続ネットワーク %(name)s を作成するには、ネットワーク・インター" +"フェースを指定してください" + +#, python-format +msgid "Unable to delete active network %(name)s" +msgstr "アクティブ・ネットワーク %(name)s は削除できません" + +#, python-format +msgid "Interface %(iface)s specified for network %(network)s is already in use" +msgstr "" +"ネットワーク %(network)s 用に指定されているインターフェース %(iface)s は、既" +"に使用されています" + +msgid "Interface should be bare NIC, bonding or bridge device." +msgstr "" +"インターフェースはベア NIC、結合、またはブリッジ・デバイスでなければなりませ" +"ん。" + +#, python-format +msgid "Unable to create network %(name)s. Details: %(err)s" +msgstr "ネットワーク %(name)s を作成できません。詳細: %(err)s" + +#, python-format +msgid "Unable to find a free IP address for network '%(name)s'" +msgstr "ネットワーク「%(name)s」のフリー IP アドレスが見つかりません。" + +#, python-format +msgid "The interface %(iface)s already exists." +msgstr "" + +msgid "Network name must be a string without slashes (/) or quotes (\")" +msgstr "" + +msgid "Supported network types are isolated, NAT and bridge" +msgstr "サポートされているネットワーク・タイプは隔離、NAT、およびブリッジです" + +msgid "Network subnet must be a string with IP address and prefix or netmask" +msgstr "" +"ネットワーク・サブネットは、IP アドレスとプレフィックスまたはネットマスクが" +"入ったストリングでなければなりません" + +msgid "Network interface must be a string" +msgstr "ネットワーク・インターフェースはストリングでなければなりません" + +msgid "Network VLAN ID must be an integer between 1 and 4094" +msgstr "ネットワーク VLAN ID は、1 から 4094 までの整数でなければなりません" + +msgid "Specify name and type to create a Network" +msgstr "ネットワークを作成するには、名前とタイプを指定してください" + +#, python-format +msgid "" +"Unable to delete network %(name)s. There are some virtual machines %(vms)s " +"and/or templates linked to this network." +msgstr "" + +#, python-format +msgid "" +"Unable to deactivate network %(name)s. There are some virtual machines " +"%(vms)s and/or templates linked to this network." +msgstr "" + +#, python-format +msgid "Bridge device %(name)s can not be the trunk device of a VLAN." +msgstr "" +"ブリッジ・デバイス %(name)s を、VLAN のトランク・デバイスにすることはできませ" +"ん。" + +#, python-format +msgid "Failed to activate interface %(iface)s: %(err)s." +msgstr "インターフェース %(iface)s の活動化に失敗しました: %(err)s。" + +#, python-format +msgid "" +"Failed to activate interface %(iface)s. Please check the physical link " +"status." +msgstr "" +"インターフェース %(iface)s の活動化に失敗しました。物理リンク状況を確認してく" +"ださい。" + +#, python-format +msgid "Failed to start network %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Debug report %(name)s does not exist" +msgstr "デバッグ・レポート %(name)s は存在しません。" + +msgid "Debug report tool not found in system" +msgstr "デバッグ・レポート・ツールがシステムに見つかりません" + +#, python-format +msgid "Unable to create debug report %(name)s. Details: %(err)s." +msgstr "デバッグ・レポート %(name)s を作成できません。詳細: %(err)s" + +#, python-format +msgid "Can not find any debug report with the given name %(name)s" +msgstr "" + +#, python-format +msgid "Unable to generate debug report %(name)s. Details: %(err)s" +msgstr "デバッグ・レポート %(name)s を生成できません。詳細: %(err)s" + +msgid "You should give a name for the debug report file." +msgstr "" + +msgid "" +"Debug report name must be a string. Only letters, digits, underscore ('_') " +"and hyphen ('-') are allowed." +msgstr "" + +#, python-format +msgid "" +"The debug report with specified name \"%(name)s\" already exists. Please use " +"another one." +msgstr "" +"名前「%(name)s」のボリューム・グループは既に存在します。論理プールを作成する" +"には、別の名前を選択してください。" + +#, python-format +msgid "Storage server %(server)s was not used by Kimchi" +msgstr "" +"ストレージ・サーバー %(server)s は、Kimchi によって使用されていませんでした" + +#, python-format +msgid "Distro '%(name)s' does not exist" +msgstr "ディストリビューション「%(name)s」は存在しません" + +#, python-format +msgid "Partition %(name)s does not exist in the host" +msgstr "パーティション %(name)s は、ホストに存在しません" + +msgid "Unable to shutdown host machine as there are running virtual machines" +msgstr "稼働中の仮想マシンがあるため、ホスト・マシンをシャットダウンできません" + +msgid "Unable to reboot host machine as there are running virtual machines" +msgstr "稼働中の仮想マシンがあるため、ホスト・マシンをリブートできません" + +#, python-format +msgid "Node device '%(name)s' not found" +msgstr "ノード・デバイス「%(name)s」が見つかりません" + +msgid "Conflicting flag filters specified." +msgstr "" + +msgid "No packages marked for update" +msgstr "更新の対象としてマークされているパッケージはありません" + +#, python-format +msgid "Package %(name)s is not marked to be updated." +msgstr "パッケージ %(name)s は、更新の対象としてマークされていません。" + +#, python-format +msgid "Error while getting packages marked to be updated. Details: %(err)s" +msgstr "" +"更新の対象としてマークされたパッケージを取得しているときに、エラーがありまし" +"た。詳細: %(err)s" + +msgid "There is no compatible package manager for this system." +msgstr "このシステム用の互換パッケージ・マネージャーがありません。" + +#, python-format +msgid "Unable to find %(item)s in datastore" +msgstr "%(item)s はデータ・ストアに見つかりません" + +#, python-format +msgid "Invalid URI %(uri)s" +msgstr "無効な URI %(uri)s" + +#, python-format +msgid "Timeout while running command '%(cmd)s' after %(seconds)s seconds" +msgstr "" +"コマンド「%(cmd)s」を実行していましたが、%(seconds)s 秒を経過してタイムアウト" +"になりました" + +msgid "Unable to choose a virtual machine name" +msgstr "" + +#, python-format +msgid "Invalid data value '%(value)s'" +msgstr "" + +#, python-format +msgid "Invalid data unit '%(unit)s'" +msgstr "" + +msgid "Invalid storage type. Types supported: 'cdrom', 'disk'" +msgstr "" +"ストレージ・タイプが無効です。サポートされているタイプは「cdrom」です。" + +#, python-format +msgid "The path '%(value)s' is not a valid local/remote path for the device" +msgstr "" + +msgid "Only CDROM path can be update." +msgstr "" + +#, python-format +msgid "" +"The storage device %(dev_name)s does not exist in the virtual machine " +"%(vm_name)s" +msgstr "" + +#, python-format +msgid "Error while creating new storage device: %(error)s" +msgstr "" +"新しいストレージ・デバイスを作成しているときに、エラーがありました: %(error)s" + +#, python-format +msgid "Error while updating storage device: %(error)s" +msgstr "" +"ストレージ・デバイスを更新しているときに、エラーがありました: %(error)s" + +#, python-format +msgid "Error while removing storage device: %(error)s" +msgstr "" +"ストレージ・デバイスを削除しているときに、エラーがありました: %(error)s" + +msgid "Do not support IDE device hot plug" +msgstr "" + +msgid "" +"Specify type and path or type and pool/volume to add a new virtual machine " +"disk" +msgstr "新しい仮想マシン・ディスクに追加するタイプおよびパスを指定します" + +msgid "Specify path to update virtual machine disk" +msgstr "仮想マシン・ディスクを更新するには、パスを指定してください" + +#, python-format +msgid "Controller type %(type)s limitation of %(limit)s devices reached" +msgstr "" + +#, python-format +msgid "Cannot retrieve disk path information for given pool/volume: %(error)s" +msgstr "" + +msgid "Volume already in use by other virtual machine." +msgstr "" + +msgid "" +"Only one of path or pool/volume can be specified to add a new virtual " +"machine disk" +msgstr "新しい仮想マシン・ディスクに追加するタイプおよびパスを指定します" + +#, python-format +msgid "" +"Volume chosen with format %(format)s does not fit in the storage type " +"%(type)s" +msgstr "" + +msgid "YUM Repository ID must be one word only string." +msgstr "YUM リポジトリー ID は、1 ワードのみのストリングでなければなりません" + +msgid "Repository URL must be an http://, ftp:// or file:// URL." +msgstr "" +"リポジトリー URL は http://、ftp://、または file:// URL でなければなりませ" +"ん。" + +msgid "" +"Repository configuration is a dictionary with specific values according to " +"repository type." +msgstr "" +"リポジトリー構成とは、リポジトリー・タイプに応じて特定の値が入ったディクショ" +"ナリーです。" + +msgid "Distribution to DEB repository must be a string" +msgstr "" +"DEB リポジトリーへのディストリビューションは、ストリングでなければなりません" + +msgid "Components to DEB repository must be listed in a array" +msgstr "" +"DEB リポジトリーへのコンポーネントは、配列としてリストされていなければなりま" +"せん" + +msgid "Components to DEB repository must be a string" +msgstr "DEB リポジトリーへのコンポーネントは、ストリングでなければなりません" + +msgid "Mirror list to repository must be a string" +msgstr "" + +msgid "YUM Repository name must be string." +msgstr "YUM リポジトリー名はストリングでなければなりません。" + +msgid "GPG check must be a boolean value." +msgstr "GPG チェックはブール値でなければなりません。" + +msgid "GPG key must be a URL pointing to the ASCII-armored file." +msgstr "GPG 鍵は、ASCII で保存されたファイルを指す URL でなければなりません。" + +#, python-format +msgid "Could not update repository %(repo_id)s." +msgstr "リポジトリー %(repo_id)s を更新できませんでした。" + +#, python-format +msgid "Repository %(repo_id)s does not exist." +msgstr "リポジトリー %(repo_id)s は存在しません。" + +msgid "" +"Specify repository base URL, mirror list or metalink in order to create or " +"update a YUM repository." +msgstr "" + +msgid "Repository management tool was not recognized for your system." +msgstr "システム用のリポジトリー管理ツールが認識されませんでした。" + +#, python-format +msgid "Repository %(repo_id)s is already enabled." +msgstr "リポジトリー %(repo_id)s は既に有効になっています。" + +#, python-format +msgid "Repository %(repo_id)s is already disabled." +msgstr "リポジトリー %(repo_id)s は既に無効になっています。" + +#, python-format +msgid "Could not remove repository %(repo_id)s." +msgstr "リポジトリー %(repo_id)s を削除できませんでした。" + +#, python-format +msgid "Could not write repository configuration file %(repo_file)s" +msgstr "" +"リポジトリー構成ファイル %(repo_file)s を書き込むことができませんでした" + +msgid "Specify repository distribution in order to create a DEB repository." +msgstr "" +"DEB リポジトリーを作成するためには、リポジトリー・ディストリビューションを指" +"定してください。" + +#, python-format +msgid "Could not enable repository %(repo_id)s." +msgstr "リポジトリー %(repo_id)s を有効にできませんでした。" + +#, python-format +msgid "Could not disable repository %(repo_id)s." +msgstr "リポジトリー %(repo_id)s を無効にできませんでした。" + +msgid "YUM Repository ID already exists" +msgstr "YUM リポジトリー ID は既に存在します" + +msgid "YUM Repository name must be a string" +msgstr "YUM リポジトリー名はストリングでなければなりません" + +#, python-format +msgid "Unable to list repositories. Details: '%(err)s'" +msgstr "リポジトリーをリストできません。詳細: 「%(err)s」" + +#, python-format +msgid "Unable to retrieve repository information. Details: '%(err)s'" +msgstr "リポジトリー情報を取得できません。詳細: 「%(err)s」" + +#, python-format +msgid "Unable to add repository. Details: '%(err)s'" +msgstr "リポジトリーを追加できません。詳細: 「%(err)s」" + +#, python-format +msgid "Unable to remove repository. Details: '%(err)s'" +msgstr "リポジトリーを削除できません。詳細: 「%(err)s」" + +#, python-format +msgid "" +"Configuration items: '%(items)s' are not supported by repository manager" +msgstr "" + +msgid "Repository metalink must be an http://, ftp:// or file:// URL." +msgstr "" + +msgid "Cannot specify mirrorlist and metalink at the same time." +msgstr "" + +#, python-format +msgid "" +"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it." +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Snapshot '%(name)s' does not exist on virtual machine '%(vm)s'." +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Unable to list snapshots on virtual machine '%(vm)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to delete snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to revert virtual machine '%(vm)s' to snapshot '%(name)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot of virtual machine '%(vm)s' because it contains a " +"disk with format '%(format)s'; only 'qcow2' is supported." +msgstr "" + +msgid "The number of vCPUs is too large for this system." +msgstr "" + +msgid "Invalid vCPU/topology combination." +msgstr "" + +msgid "This host (or current configuration) does not allow CPU topology." +msgstr "" + +msgid "ERROR CODE" +msgstr "エラー・コード" + +msgid "REASON" +msgstr "理由" + +msgid "STACK" +msgstr "スタック" + +msgid "Go to Homepage" +msgstr "ホーム・ページに移動する" + +msgid "Create a New Virtual Machine" +msgstr "新規仮想マシンの作成" + +msgid "Virtual Machine Name" +msgstr "仮想マシン名" + +msgid "" +"The name used to identify the virtual machine. If omitted, a name will be " +"chosen based on the template used." +msgstr "" +"名前は仮想マシンを識別するために使用されます。省略すると、使用されているテン" +"プレートに基づいて選択されます。" + +msgid "Template" +msgstr "テンプレート" + +msgid "Please create a template first." +msgstr "まずテンプレートを作成してください。" + +msgid "Create a Template" +msgstr "テンプレートの作成" + +msgid "Please choose a template." +msgstr "テンプレートを選択してください。" + +msgid "OS" +msgstr "OS" + +msgid "OS Version" +msgstr "OS バージョン" + +msgid "CPUS" +msgstr "CPU" + +msgid "Memory" +msgstr "メモリー" + +msgid "Create" +msgstr "作成" + +msgid "Creating..." +msgstr "" + +msgid "Edit Guest" +msgstr "ゲストの編集" + +msgid "General" +msgstr "一般" + +msgid "Storage" +msgstr "ストレージ" + +msgid "Interface" +msgstr "インターフェース" + +msgid "Permission" +msgstr "バージョン" + +msgid "Host PCI Device" +msgstr "" + +msgid "Snapshot" +msgstr "" + +msgid "Name" +msgstr "名前" + +msgid "CPUs" +msgstr "CPU" + +msgid "Memory (MB)" +msgstr "メモリー" + +msgid "Icon" +msgstr "アイコン" + +msgid "Device" +msgstr "デバイス名" + +msgid "Path" +msgstr "NFS パス" + +msgid "Network" +msgstr " ネットワーク" + +msgid "Type" +msgstr "タイプ" + +msgid "MAC Address" +msgstr "" + +msgid "Available system users and groups" +msgstr "" + +msgid "Selected system users and groups" +msgstr "" + +msgid "User" +msgstr "" + +msgid "All" +msgstr "すべて" + +msgid "To Add" +msgstr "" + +msgid "Added" +msgstr "" + +msgid "filter" +msgstr "" + +msgid "Product" +msgstr "" + +msgid "Vendor" +msgstr "ベンダー" + +msgid "Created" +msgstr "" + +msgid "Save" +msgstr "保存" + +msgid "Replace" +msgstr "交換" + +msgid "Detach" +msgstr "切り離し" + +msgid "Cancel" +msgstr "取消" + +msgid "revert" +msgstr "" + +msgid "Add a Storage Device to VM" +msgstr "VM にストレージ・デバイスを追加" + +msgid "Device Type" +msgstr "デバイス・タイプ" + +msgid "The device type. Currently, \"cdrom\" and \"disk\" are supported." +msgstr "デバイス・タイプ。現在サポートされているのは \"cdrom\" のみです。" + +msgid "Storage Pool" +msgstr "ストレージ・プール" + +msgid "Storage pool which volume located in" +msgstr "ストレージ・プール・パスはストリングでなければなりません" + +msgid "Storage Volume" +msgstr "ストレージ・プール名" + +msgid "Storage volume to be attached" +msgstr "ストレージ・ボリューム名はストリングでなければなりません" + +msgid "File Path" +msgstr "ファイル・パス" + +msgid "The ISO file path in the server for CDROM." +msgstr "サーバー内での CDROM の ISO ファイル・パス。" + +msgid "Attach" +msgstr "接続" + +msgid "Start" +msgstr "開始" + +msgid "Reset" +msgstr "リセット" + +msgid "Pause" +msgstr "" + +msgid "Resume" +msgstr "" + +msgid "Power Off" +msgstr "" + +msgid "Actions" +msgstr "アクション" + +msgid "Connect" +msgstr "接続" + +msgid "Clone" +msgstr "" + +msgid "Edit" +msgstr "編集" + +msgid "Shut Down" +msgstr "シャットダウン" + +msgid "Delete" +msgstr "削除" + +msgid "The username or password you entered is incorrect. Please try again." +msgstr "入力したユーザー名またはパスワードが誤っています。やり直してください。" + +msgid "This field is required." +msgstr "このフィールドは必須です。" + +msgid "Log in" +msgstr "ログイン" + +msgid "Logging in..." +msgstr "ログインしています..." + +msgid "Host" +msgstr "ホスト" + +msgid "Guests" +msgstr "ゲスト" + +msgid "Templates" +msgstr "テンプレート" + +msgid "Failed to get application configuration" +msgstr "アプリケーション構成を取得できませんでした" + +msgid "This is not a valid Linux path" +msgstr "有効な Linux パスではありません" + +msgid "This is not a valid URL." +msgstr "有効な URL ではありません。" + +msgid "No such data available." +msgstr "そのようなデータはありません。" + +msgid "" +"Can not contact the host system. Verify the host system is up and that you " +"have network connectivity to it. HTTP request response %1. " +msgstr "" +"ホスト・システムに接続できません。ホスト・システムが稼働していて、ネットワー" +"ク接続が行われていることを確認してください。HTTP 要求応答 %1" + +msgid "Unable to read file." +msgstr "" + +msgid "Error while uploading file." +msgstr "" + +msgid "Delete Confirmation" +msgstr "削除の確認" + +msgid "OK" +msgstr "OK" + +msgid "Confirm" +msgstr "確認" + +msgid "Warning" +msgstr "警告" + +msgid "Cloning..." +msgstr "" + +msgid "Loading..." +msgstr "ロードしています..." + +msgid "An error occurred while retrieving system information." +msgstr "" + +msgid "Retry" +msgstr "再試行" + +msgid "Detailed message:" +msgstr "詳細メッセージ:" + +msgid "No ISO found" +msgstr "" + +msgid "This is not a valid ISO file." +msgstr "有効な ISO ファイルではありません。" + +msgid "This may take a long time. Do you want to continue?" +msgstr "しばらく時間がかかることがあります。続行しますか?" + +msgid "This will permanently delete the template. Would you like to continue?" +msgstr "テンプレートは完全に削除されます。続行しますか?" + +msgid "Unable to shut down system as there are some virtual machines running!" +msgstr "" +"いくつかの仮想マシンが稼働しているために、システムをシャットダウンできません!" + +msgid "Max:" +msgstr "最大:" + +msgid "Utilization" +msgstr "使用率" + +msgid "Available" +msgstr "使用可能" + +msgid "Read Rate" +msgstr "読み取り速度" + +msgid "Write Rate" +msgstr "書き込み速度" + +msgid "Received" +msgstr "受信済み" + +msgid "Sent" +msgstr "送信済み" + +msgid "" +"Shutting down or restarting host will cause unsaved work lost. Continue to " +"shut down/restarting?" +msgstr "" +"ホストをシャットダウンまたは再始動すると、保存されていない作業は失われます。" +"シャットダウン/再始動を続行しますか?" + +msgid "" +"Repository will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" +"リポジトリーは完全に削除され、リカバリーできなくなります。続行しますか?" + +msgid "Repositories" +msgstr "リポジトリー" + +msgid "ID" +msgstr "ID" + +msgid "Base URL" +msgstr "ベース URL" + +msgid "Is Mirror" +msgstr "ミラー" + +msgid "URL Args" +msgstr "URL 引数" + +msgid "Enabled" +msgstr "使用可能" + +msgid "GPG Check" +msgstr "GPG チェック" + +msgid "GPG Key" +msgstr "GPG 鍵" + +msgid "Add" +msgstr "追加" + +msgid "Remove" +msgstr "除去" + +msgid "Enable" +msgstr "使用可能" + +msgid "Disable" +msgstr "使用不可" + +msgid "Software Updates" +msgstr "ソフトウェア更新" + +msgid "Package Name" +msgstr "パッケージ名" + +msgid "Version" +msgstr "バージョン" + +msgid "Architecture" +msgstr "アーキテクチャー" + +msgid "Repository" +msgstr "リポジトリー" + +msgid "Update All" +msgstr "すべて更新" + +msgid "Updating..." +msgstr "更新しています..." + +msgid "Failed to retrieve packages update information." +msgstr "" + +msgid "Failed to update package(s)." +msgstr "パッケージを更新できませんでした。" + +msgid "" +"Debug report will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" +"デバッグ・レポートは完全に削除され、リカバリーできなくなります。続行しますか?" + +msgid "Debug Reports" +msgstr "デバッグ・レポート" + +msgid "Generated Time" +msgstr "生成時刻" + +msgid "Generate" +msgstr "生成" + +msgid "Generating..." +msgstr "生成しています..." + +msgid "Rename" +msgstr "名前変更" + +msgid "Download" +msgstr "ダウンロード" + +msgid "" +"Report name should contain only letters, digits, underscore ('_') and/or " +"hyphen ('-')." +msgstr "レポート名に使用できるのは、英字、数字、およびハイフン (-) のみです。" + +msgid "Pending..." +msgstr "ロードしています..." + +msgid "Report name is the same as the original one." +msgstr "" + +msgid "" +"This will delete the virtual machine and its virtual disks. This operation " +"cannot be undone. Would you like to continue?" +msgstr "" +"仮想マシンとその仮想ディスクが削除されます。この操作は元に戻すことができませ" +"ん。続行しますか?" + +msgid "Power off Confirmation" +msgstr "削除の確認" + +msgid "" +"This action may produce undesirable results, for example unflushed disk " +"cache in the guest. Would you like to continue?" +msgstr "" + +msgid "Reset Confirmation" +msgstr "削除の確認" + +msgid "" +"There is a risk of data loss caused by reset without the guest OS shutdown. " +"Would you like to continue?" +msgstr "" + +msgid "Shut Down Confirmation" +msgstr "削除の確認" + +msgid "Note the guest OS may ignore this request. Would you like to continue?" +msgstr "テンプレートは完全に削除されます。続行しますか?" + +msgid "Virtual Machine delete Confirmation" +msgstr "" + +msgid "" +"This virtual machine is not persistent. Power Off will delete it. Continue?" +msgstr "" + +msgid "" +"When the target guest has SCSI or iSCSI volumes, they will be cloned on " +"default storage pool. The same will happen when the target pool does not " +"have enough space to clone the volumes. Do you want to continue?" +msgstr "" + +msgid "" +"This CDROM will be detached permanently and you can re-attach it. Continue " +"to detach it?" +msgstr "" +"この CDROM は完全に切り離されますが、再接続できます。切り離しを続行しますか?" + +msgid "Attaching..." +msgstr "接続しています..." + +msgid "Replacing..." +msgstr "交換しています..." + +msgid "Successfully attached!" +msgstr "正常に接続しました!" + +msgid "Successfully replaced!" +msgstr "正常に交換しました!" + +msgid "Successfully detached!" +msgstr "正常に切り離しました!" + +msgid "" +"This disk will be detached permanently and you can re-attach it. Continue to " +"detach it?" +msgstr "" + +msgid "interface:" +msgstr "" + +msgid "address:" +msgstr "" + +msgid "link_type:" +msgstr "" + +msgid "block:" +msgstr "" + +msgid "drive_type:" +msgstr "" + +msgid "model:" +msgstr "" + +msgid "Affected devices:" +msgstr "" + +msgid "The VLAN id must be between 1 and 4094." +msgstr "VLAN ID は、1 から 4094 まででなければなりません。" + +msgid "unavailable" +msgstr "使用不可" + +msgid "" +"This action will interrupt network connectivity for any virtual machine that " +"depend on this network." +msgstr "" +"このアクションは、このネットワークに依存している仮想マシンのネットワーク接続" +"を妨げます。" + +msgid "Create a network" +msgstr "ネットワークの作成" + +msgid "" +"This network is not persistent. Instead of stop, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"このストレージ・プールは永続的なものではありません。このアクションで、非アク" +"ティブになるのではなく完全に削除されます。続行しますか?" + +msgid "" +"The bridged VLAN tag may not work well with NetworkManager enabled. You " +"should consider disabling it." +msgstr "" + +msgid "" +"This will permanently delete the storage pool. Would you like to continue?" +msgstr "ストレージ・プールは完全に削除されます。続行しますか?" + +msgid "This storage pool is empty." +msgstr "このストレージ・プールは空です。" + +msgid "" +"It will format your disk and you will loose any data in there, are you sure " +"to continue? " +msgstr "" +"ディスクはフォーマットされ、その中のデータはすべて失われます。続行しますか?" + +msgid "SCSI Fibre Channel" +msgstr "SCSI ファイバー・チャネル" + +msgid "No SCSI adapters found." +msgstr "SCSI アダプターが見つかりません。" + +msgid "Loading iSCSI targets..." +msgstr "" + +msgid "No iSCSI found. Please input one." +msgstr "" + +msgid "Failed to load iSCSI targets." +msgstr "" + +msgid "The storage pool name can not be blank." +msgstr "ストレージ・プール名をブランクにすることはできません。" + +msgid "The storage pool path can not be blank." +msgstr "ストレージ・プール・パスをブランクにすることはできません。" + +msgid "NFS server mount path can not be blank." +msgstr "NFS サーバー・マウント・パスをブランクにすることはできません。" + +msgid "Invalid NFS mount path." +msgstr "NFS マウント・パスが無効です。" + +msgid "No logical device selected." +msgstr "論理デバイスが選択されていません。" + +msgid "The iSCSI target can not be blank." +msgstr "iSCSI ターゲットをブランクにすることはできません。" + +msgid "Server name can not be blank." +msgstr "サーバー名をブランクにすることはできません。" + +msgid "This is not a valid Server Name or IP. Please, modify it." +msgstr "" + +msgid "Looking for available partitions ..." +msgstr "愛用可能なパーティションを探しています..." + +msgid "No available partitions found." +msgstr "使用可能なパーティションが見つかりません。" + +msgid "" +"This storage pool is not persistent. Instead of deactivate, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"このストレージ・プールは永続的なものではありません。このアクションで、非アク" +"ティブになるのではなく完全に削除されます。続行しますか?" + +msgid "Unable to retrieve partitions information." +msgstr "リポジトリー情報を取得できません。詳細: 「%(err)s」" + +msgid "In progress..." +msgstr "" + +msgid "Failed!" +msgstr "" + +msgid "CDROM path needs to be a valid local/remote path and cannot be blank." +msgstr "" + +msgid "Disk pool or volume cannot be blank." +msgstr "ストレージ・プール名をブランクにすることはできません。" + +msgid "Peers" +msgstr "" + +msgid "Searching" +msgstr "" + +msgid "No peers found." +msgstr "" + +msgid "Help" +msgstr "ヘルプ" + +msgid "About" +msgstr "製品情報" + +msgid "Log out" +msgstr "ログアウト" + +msgid "Version:" +msgstr "バージョン: " + +msgid "Session timeout, please re-login." +msgstr "" + +msgid "User Name" +msgstr "ユーザー名" + +msgid "Password" +msgstr "パスワード" + +msgid "Generate a New Debug Report" +msgstr "新規デバッグ・レポートの生成" + +msgid "Report Name" +msgstr "レポート名" + +msgid "" +"The name used to identify the report. If omitted, a name will be chosen " +"based on current time. Name can contain: letters, digits, underscore (\"_\") " +"and hyphen (\"-\")." +msgstr "" +"名前はレポートを識別するために使用されます。省略すると、現在時刻に基づいて選" +"択されます。名前には英字、数字、およびハイフン (-) を使用できます。" + +msgid "Rename a Debug Report" +msgstr "新規デバッグ・レポートの生成" + +msgid "" +"The name used to identify the report. Name can contain: letters, digits and " +"hyphen (\"-\")." +msgstr "" +"名前はレポートを識別するために使用されます。省略すると、現在時刻に基づいて選" +"択されます。名前には英字、数字、およびハイフン (-) を使用できます。" + +msgid "Submit" +msgstr "" + +msgid "Add a Repository" +msgstr "リポジトリーの追加" + +msgid "Identifier" +msgstr "ID" + +msgid "Single word, unique identifier for the repository." +msgstr "リポジトリーの固有 ID を示す単一のワード。" + +msgid "Textual name for the repository." +msgstr "リポジトリーのテキスト名。" + +msgid "URL" +msgstr "URL" + +msgid "Required Field" +msgstr "必須フィールド" + +msgid "URL to the repository. Supported protocols are http, ftp, and file." +msgstr "" +"リポジトリーの URL で、サポートされているプロトコルは http、ftp、および file " +"です。" + +msgid "Repository is a mirror" +msgstr "リポジトリーはミラーです。" + +msgid "Distribution" +msgstr "ディストリビューション" + +msgid "Distribution of the DEB repository." +msgstr "DEB リポジトリーのディストリビューション。" + +msgid "Components" +msgstr "コンポーネント" + +msgid "List of components in DEB repository." +msgstr "DEB リポジトリー内のコンポーネントのリスト。" + +msgid "Edit Repository" +msgstr "リポジトリーの編集" + +msgid "Mirror List URL" +msgstr "ミラー・リスト URL" + +msgid "Yes" +msgstr " はい" + +msgid "No" +msgstr " いいえ" + +msgid "Add a Volume to Storage Pool" +msgstr "" + +msgid "Fetch from remote URL" +msgstr "" + +msgid "Enter the remote URL here." +msgstr "" + +msgid "Upload a file" +msgstr "" + +msgid "Choose the file you want to upload." +msgstr "" + +msgid "Define a New Storage Pool" +msgstr "新規ストレージ・プールの定義" + +msgid "Storage Pool Name" +msgstr "ストレージ・プール名" + +msgid "" +"The name used to identify the storage pools, and it should not be empty." +msgstr "" +"名前はストレージ・プールを識別するために使用されます。空にすることはできませ" +"ん。" + +msgid "Storage Pool Type" +msgstr "ストレージ・プール・タイプ" + +msgid "Storage Path" +msgstr "ストレージ・パス" + +msgid "" +"The path of the Storage Pool. Each Storage Pool must have a unique path." +msgstr "" +"ストレージ・プールのパス。それぞれのストレージ・プールに固有のパスが必要で" +"す。" + +msgid "" +"Kimchi will try to create the directory when it does not already exist in " +"your system." +msgstr "" +"ディレクトリーがシステムに存在しない場合、Kimchi がその作成を試みます。" + +msgid "NFS Server IP" +msgstr "NFS サーバー IP" + +msgid "NFS server IP or hostname. It can be input or chosen from history." +msgstr "" +"NFS サーバー IP またはホスト名。入力することも、ヒストリーから選択することも" +"できます。" + +msgid "NFS Path" +msgstr "NFS パス" + +msgid "The NFS exported path on NFS server." +msgstr "NFS がパスを NFS サーバーにエクスポートしました。" + +msgid "Device path" +msgstr "デバイス・パス" + +msgid "iSCSI Server" +msgstr "iSCSI サーバー" + +msgid "iSCSI server IP or hostname. It should not be empty." +msgstr "iSCSI サーバー IP またはホスト名。空にすることはできません。" + +msgid "Server" +msgstr "サーバー" + +msgid "Port" +msgstr "ポート" + +msgid "Target" +msgstr "ターゲット" + +msgid "The iSCSI target on iSCSI server" +msgstr "iSCSI サーバー上の iSCSI ターゲット" + +msgid "Add iSCSI Authentication" +msgstr "iSCSI 認証の追加" + +msgid "iSCSI Authentication" +msgstr "iSCSI 認証" + +msgid "SCSI Adapter" +msgstr "SCSI アダプター" + +msgid "Please, wait..." +msgstr "お待ちください..." + +msgid "Add Template" +msgstr "テンプレートの追加" + +msgid "Where is the source media for this template? " +msgstr "このテンプレートのソース・メディアはどこにありますか?" + +msgid "Local ISO Image" +msgstr "ローカル ISO イメージ" + +msgid "Local Image File" +msgstr "" + +msgid "Remote ISO Image" +msgstr "リモート ISO イメージ" + +msgid "Search ISOs" +msgstr "ISO の検索" + +msgid "The following ISOs are available:" +msgstr "次の ISO が使用可能です:" + +msgid "OS: " +msgstr "OS: " + +msgid "Version: " +msgstr "バージョン: " + +msgid "Size: " +msgstr "サイズ: " + +msgid "Search more ISOs" +msgstr "ISO をさらに検索" + +msgid "Create Templates from Selected ISO" +msgstr "選択した ISO からテンプレートを作成" + +msgid "I want to use a specific ISO file" +msgstr "特定の ISO ファイルを使用する" + +msgid "Loading default remote ISOs ..." +msgstr "デフォルトのリモート ISO をロードしています..." + +msgid "Arch: " +msgstr "アーキテクチャー: " + +msgid "I want to use a custom URL" +msgstr "カスタム URL を使用する" + +msgid "Edit Template" +msgstr "テンプレートの編集" + +msgid "Processor" +msgstr "プロセッサー" + +msgid "CDROM" +msgstr "CDROM" + +msgid "Image File" +msgstr "" + +msgid "Graphics" +msgstr "グラフィックス" + +msgid "Disk(GB)" +msgstr "" + +msgid "Disk Format" +msgstr "" + +msgid "CPU Number" +msgstr "CPU 数" + +msgid "Manually set CPU topology" +msgstr "" + +msgid "Cores" +msgstr "" + +msgid "Threads" +msgstr "" + +msgid "CPU" +msgstr "CPU" + +msgid "Disk I/O" +msgstr "ディスク入出力" + +msgid "Network I/O" +msgstr "ネットワーク入出力" + +msgid "Livetile" +msgstr "ライブタイル" + +msgid "No guests found." +msgstr "ゲストが見つかりません。" + +msgid "Shut down" +msgstr "シャットダウン" + +msgid "Restart" +msgstr "再始動" + +msgid "Basic Information" +msgstr "基本情報" + +msgid "OS Distro" +msgstr "OS ディストリビューション" + +msgid "OS Code Name" +msgstr "OS コード名" + +msgid "CPU(s)" +msgstr "" + +msgid "System Statistics" +msgstr "システム統計情報" + +msgid "Update Progress" +msgstr "更新の進行状況" + +msgid "Network Name" +msgstr "ネットワーク名" + +msgid "State" +msgstr "状態" + +msgid "Network Type" +msgstr "ネットワーク・タイプ" + +msgid "Address Space" +msgstr "アドレス・スペース" + +msgid "Name should not contain '/' and '\"'." +msgstr "" + +msgid "Isolated: no external network connection" +msgstr "隔離: 物理ネットワーク接続なし" + +msgid "NAT: outbound physical network connection only" +msgstr "NAT: アウトバウンド物理ネットワーク接続のみ" + +msgid "Bridged: Virtual machines are connected to physical network directly" +msgstr "ブリッジ: 仮想マシンが直接物理ネットワークに接続される" + +msgid "(No interfaces found)" +msgstr "" + +msgid "Destination" +msgstr "宛先:" + +msgid "Enable VLAN" +msgstr "VLAN を使用可能にする:" + +msgid "VLAN ID" +msgstr "VLAN ID:" + +msgid "Stop" +msgstr "停止" + +msgid "%Used" +msgstr "" + +msgid "Location" +msgstr "ロケーション" + +msgid "Capacity" +msgstr "容量" + +msgid "Allocated" +msgstr "割り当て済み" + +msgid "active" +msgstr "アクティブ" + +msgid "inactive" +msgstr "非アクティブ" + +msgid "Deactivate" +msgstr "非アクティブにする" + +msgid "Activate" +msgstr "アクティブにする" + +msgid "Add Volume" +msgstr "" + +msgid "Extend" +msgstr "" + +msgid "Undefine" +msgstr "定義を解除する" + +msgid "Format" +msgstr "フォーマット:" + +msgid "Allocation" +msgstr "割り振り:" + +msgid "No templates found." +msgstr "テンプレートが見つかりません。" diff --git a/po/ko_KR.po b/po/ko_KR.po new file mode 100644 index 0000000..92a7a56 --- /dev/null +++ b/po/ko_KR.po @@ -0,0 +1,2228 @@ +# English translations for kimchi package. +# Copyright (C) 2013 ORGANIZATION +# +msgid "" +msgstr "" +"Project-Id-Version: kimchi 0.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-09 17:37-0300\n" +"PO-Revision-Date: 2013-07-11 17:32-0400\n" +"Last-Translator: Crístian Viana <vianac@linux.vnet.ibm.com>\n" +"Language-Team: English\n" +"Language: ko_KR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#, python-format +msgid "Unknown parameter %(value)s" +msgstr "" + +#, python-format +msgid "Delete is not allowed for %(resource)s" +msgstr "%(resource)s의 삭제는 허용되지 않음" + +#, python-format +msgid "%(resource)s does not implement update method" +msgstr "%(resource)s에서는 업데이트 메소드를 구현하지 않음" + +#, python-format +msgid "Create is not allowed for %(resource)s" +msgstr "%(resource)s의 작성은 허용되지 않음" + +msgid "Unable to parse JSON request" +msgstr "JSON 요청을 구문 분석할 수 없습니다." + +msgid "This API only supports JSON" +msgstr "이 API는 JSON만 지원합니다." + +#, python-format +msgid "Parameters does not match requirement in schema: %(err)s" +msgstr "" + +msgid "You don't have permission to perform this operation." +msgstr "" + +msgid "Datastore is not initiated in the model object." +msgstr "데이터 저장소가 모델 오브젝트에서 시작되지 않았습니다." + +#, python-format +msgid "Unable to start task due error: %(err)s" +msgstr "오류 때문에 작업을 시작할 수 없음: %(err)s" + +#, python-format +msgid "Timeout of %(seconds)s seconds expired while running task '%(task)s." +msgstr "" + +#, python-format +msgid "Authentication failed for user '%(username)s'. [Error code: %(code)s]" +msgstr "사용자 '%(username)s'의 인증이 실패했습니다. [오류 코드: %(code)s]" + +msgid "You are not authorized to access Kimchi" +msgstr "Kimchi에 액세스할 권한이 없습니다." + +#, python-format +msgid "Specify %(item)s to login into Kimchi" +msgstr "Kimchi에 로그인하려면 %(item)s을(를) 지정하십시오." + +#, python-format +msgid "User %(user_id)s not found with given LDAP settings." +msgstr "" + +#, python-format +msgid "Invalid LDAP configuration: %(item)s : %(value)s" +msgstr "" + +msgid "Unknown \"_cap\" specified" +msgstr "" + +msgid "\"_passthrough\" should be \"true\" or \"false\"" +msgstr "" + +msgid "\"_passthrough_affected_by\" should be a device name string" +msgstr "" + +#, python-format +msgid "Error while getting block devices. Details: %(err)s" +msgstr "블록 장치를 가져오는 중에 오류가 발생했습니다. 세부사항: %(err)s" + +#, python-format +msgid "Error while getting block device information for %(device)s." +msgstr "%(device)s에 대한 블록 장치 정보를 가져오는 중에 오류가 발생했습니다." + +#, python-format +msgid "Unable to find distro file: %(filename)s" +msgstr "distro 파일을 찾을 수 없음: %(filename)s" + +#, python-format +msgid "" +"Unable to parse distro file: %(filename)s. Make sure, it is a JSON file." +msgstr "" +"distro 파일(%(filename)s)을 구문 분석할 수 없습니다. JSON 파일인지 확인하십시" +"오." + +#, python-format +msgid "Unable to login to iSCSI host target %(portal)s. Details: %(err)s" +msgstr "iSCSI 호스트 대상 %(portal)s에 로그인할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Unable to login to iSCSI host %(host)s target %(target)s" +msgstr "iSCSI host %(host)s 대상 %(target)s에 로그인할 수 없습니다." + +#, python-format +msgid "Unable to find ISO file %(filename)s" +msgstr "" + +#, python-format +msgid "The ISO file %(filename)s is not bootable" +msgstr "ISO 파일 %(filename)s은(는) 부트 가능하지 않습니다." + +#, python-format +msgid "The ISO file %(filename)s does not have a valid El Torito boot record" +msgstr "ISO 파일 %(filename)s에 유효한 El Torito 부트 레코드가 없습니다." + +#, python-format +msgid "Invalid El Torito validation entry in ISO %(filename)s" +msgstr "" +"ISO %(filename)s에 올바르지 않은 El Torito 유효성 검증 항목이 있습니다." + +#, python-format +msgid "Invalid El Torito boot indicator in ISO %(filename)s" +msgstr "ISO %(filename)s에 올바르지 않은 El Torito 부트 표시기가 있습니다." + +#, python-format +msgid "Unexpected volume type for primary volume in ISO %(filename)s" +msgstr "ISO %(filename)s에서 기본 볼륨이 예상치 않은 볼륨 유형입니다." + +#, python-format +msgid "Bad format while reading volume descriptor in ISO %(filename)s" +msgstr "" +"ISO %(filename)s에서 볼륨 디스크립터를 읽는 중에 잘못된 형식이 발견되었습니" +"다." + +#, python-format +msgid "" +"The hypervisor doesn't have permission to use this ISO %(filename)s. " +"Consider moving it under /var/lib/libvirt, or set the search permission to " +"file access control lists for '%(user)s' user if possible, or add the " +"'%(user)s' to the ISO path group, or (not recommended) 'chmod -R o+x " +"'path_to_iso'.Details: %(err)s" +msgstr "" +"하이퍼바이저가 이 ISO %(filename)s을(를) 사용할 권한이 없습니다. 이를 /var/" +"lib/libvirt 아래로 이동시키거나, (가능한 경우) 검색 권한을 '%(user)s' 사용자" +"의 파일 액세스 제어 목록에 설정하거나, '%(user)s'을(를) ISO 경로 그룹에 추가" +"하거나, 'chmod -R o+x 'path_to_iso'(권장되지 않음)에 추가하십시오. 세부사항: " +"%(err)s" + +msgid "An error occurred when probing image OS information." +msgstr "" + +msgid "No OS information found in given image." +msgstr "" + +#, python-format +msgid "Unable to read image file %(filename)s" +msgstr "" + +#, python-format +msgid "" +"Image file must be an existing file on system. %(filename)s is not a valid " +"input." +msgstr "" + +#, python-format +msgid "Virtual machine %(name)s already exists" +msgstr "가상 머신 %(name)s이(가) 이미 존재합니다." + +#, python-format +msgid "Virtual machine %(name)s does not exist" +msgstr "가상 머신 %(name)s이(가) 없습니다." + +#, python-format +msgid "" +"Unable to rename virtual machine %(name)s. The name %(new_name)s is already " +"in use or the virtual machine is not powered off." +msgstr "" + +#, python-format +msgid "Unable to retrieve screenshot for stopped virtual machine %(name)s" +msgstr "중지된 가상 머신 %(name)s에 대한 스크린샷을 검색할 수 없습니다." + +msgid "Remote ISO image is not supported by this server." +msgstr "원격 ISO 이미지는 이 서버에서 지원하지 않습니다." + +#, python-format +msgid "Screenshot is not supported on virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Unable to create virtual machine %(name)s. Details: %(err)s" +msgstr "가상 머신 %(name)s을(를) 작성할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Unable to update virtual machine %(name)s. Details: %(err)s" +msgstr "가상 머신 %(name)s을(를) 작성할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Unable to retrieve virtual machine %(name)s. Details: %(err)s" +msgstr "가상 머신 %(name)s을(를) 검색할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Unable to connect to powered off virtual machine %(name)s." +msgstr "" + +msgid "Virtual machine name must be a string without slashes (/)" +msgstr "" + +#, python-format +msgid "Invalid template URI %(value)s specified for virtual machine" +msgstr "" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for virtual machine" +msgstr "" + +msgid "Supported virtual machine graphics are Spice or VNC" +msgstr "" + +msgid "Graphics address to listen on must be IPv4 or IPv6" +msgstr "청취 대상 그래픽 주소는 IPv4 또는 IPv6여야 합니다." + +msgid "Specify a template to create a virtual machine from" +msgstr "가상 머신을 작성하기 위한 템플리트를 지정하십시오." + +#, python-format +msgid "Unable to start virtual machine %(name)s. Details: %(err)s" +msgstr "가상 머신 %(name)s을(를) 시작할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Unable to power off virtual machine %(name)s. Details: %(err)s" +msgstr "가상 머신 %(name)s을(를) 중지할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Unable to delete virtual machine %(name)s. Details: %(err)s" +msgstr "가상 머신 %(name)s을(를) 삭제할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Unable to reset virtual machine %(name)s. Details: %(err)s" +msgstr "가상 머신 %(name)s의 이름을 바꿀 수 없습니다. 세부사항: %(err)s" + +msgid "User name list must be an array" +msgstr "" + +msgid "User name must be a string" +msgstr "네트워크 이름은 문자열이어야 합니다." + +msgid "Group name list must be an array" +msgstr "" + +msgid "Group name must be a string" +msgstr "네트워크 이름은 문자열이어야 합니다." + +#, python-format +msgid "User(s) '%(users)s' do not exist" +msgstr "'%(users)s' 사용자가 없습니다." + +#, python-format +msgid "Group(s) '%(groups)s' do not exist" +msgstr "'%(groups)s' 사용자가 없습니다." + +#, python-format +msgid "Unable to shutdown virtual machine %(name)s. Details: %(err)s" +msgstr "가상 머신 %(name)s을(를) 중지할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "" +"Unable to get access metadata of virtual machine %(name)s. Details: %(err)s" +msgstr "가상 머신 %(name)s을(를) 시작할 수 없습니다. 세부사항: %(err)s" + +msgid "The guest console password must be a string." +msgstr "" + +msgid "The life time for the guest console password must be a number." +msgstr "" + +#, python-format +msgid "Virtual machine '%(name)s' must be stopped before cloning it." +msgstr "" + +#, python-format +msgid "Insufficient disk space to clone virtual machine '%(name)s'" +msgstr "" + +#, python-format +msgid "Unable to clone VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Invalid operation for non-persistent virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Cannot suspend VM '%(name)s' because it is not running." +msgstr "" + +#, python-format +msgid "Unable to suspend VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Cannot resume VM '%(name)s' because it is not paused." +msgstr "" + +#, python-format +msgid "Unable to resume VM '%(name)s'. Details: %(err)s" +msgstr "" + +msgid "Memory assigned is higher then the maximum allowed in the host." +msgstr "" + +#, python-format +msgid "" +"VM '%(name)s' does not support live memory update. Update the memory with " +"the machine offline to enable this feature." +msgstr "" + +msgid "Only increase memory is allowed in active VMs" +msgstr "" + +msgid "" +"For live memory update, new memory value must be equal old memory value plus " +"multiples of 1024 Mib" +msgstr "" + +msgid "There are not enough free slots of 1024 Mib in the guest." +msgstr "" + +msgid "" +"Host's libvirt version does not support memory devices. Libvirt must be >= " +"1.2.14" +msgstr "" + +#, python-format +msgid "Error attaching memory device. Details: %(error)s" +msgstr "" + +#, python-format +msgid "" +"VM %(vmid)s does not contain directly assigned host device %(dev_name)s." +msgstr "" + +#, python-format +msgid "The host device %(dev_name)s is not allowed to directly assign to VM." +msgstr "" + +msgid "" +"No IOMMU groups found. Host PCI pass through needs IOMMU group to function " +"correctly. Please enable Intel VT-d or AMD IOMMU in your BIOS, then verify " +"the Kernel is compiled with IOMMU support. For Intel CPU, add intel_iommu=on " +"to your Kernel parameter in /boot/grub2/grub.conf. For AMD CPU, add iommu=pt " +"iommu=1." +msgstr "" + +msgid "\"name\" should be a device name string" +msgstr "" + +#, python-format +msgid "Interface %(iface)s does not exist in virtual machine %(name)s" +msgstr "가상 머신 %(name)s에 %(iface)s 인터페이스가 없습니다." + +#, python-format +msgid "" +"Network %(network)s specified for virtual machine %(name)s does not exist" +msgstr "가상 머신 %(name)s에 대해 지정된 %(network)s 네트워크가 없습니다." + +msgid "Supported virtual machine interfaces type is only network" +msgstr "지원되는 가상 머신 인터페이스 유형은 네트워크뿐입니다." + +msgid "Network name for virtual machine interface must be a string" +msgstr "가상 머신 인터페이스의 네트워크 이름은 문자열이어야 합니다." + +msgid "Invalid network model card specified for virtual machine interface" +msgstr "" +"가상 머신 인터페이스에 대해 올바르지 않은 네트워크 모델 카드가 지정되었습니" +"다." + +msgid "Specify type and network to add a new virtual machine interface" +msgstr "새 가상 머신 인터페이스를 추가할 유형 및 네트워크를 지정하십시오." + +msgid "MAC Address must respect this format FF:FF:FF:FF:FF:FF" +msgstr "" + +#, python-format +msgid "MAC Address %(mac)s already exists in virtual machine %(name)s" +msgstr "" + +msgid "Invalid MAC Address" +msgstr "" + +msgid "Cannot change MAC address of a running virtual machine" +msgstr "" + +#, python-format +msgid "Template %(name)s already exists" +msgstr "템플리트 %(name)s이(가) 이미 존재합니다." + +#, python-format +msgid "" +"Network '%(network)s' specified for template %(template)s does not exist" +msgstr "템플리트 %(template)s에 대해 지정된 '%(network)s' 네트워크가 없습니다." + +#, python-format +msgid "" +"Storage pool %(pool)s specified for template %(template)s does not exist" +msgstr "" +"템플리트 %(template)s에 대해 지정된 스토리지 풀 %(pool)s이(가) 없습니다." + +#, python-format +msgid "Storage pool %(pool)s specified for template %(template)s is not active" +msgstr "" +"템플리트 %(template)s에 대해 지정된 스토리지 풀 %(pool)s이(가) 활성이 아닙니" +"다." + +#, python-format +msgid "Invalid parameter '%(param)s' specified for CDROM." +msgstr "CDROM에 대해 올바르지 않은 매개변수 '%(param)s'이(가) 지정되었습니다." + +#, python-format +msgid "Network %(network)s specified for template %(template)s is not active" +msgstr "" +"템플리트 %(template)s에 대해 지정된 %(network)s 네트워크가 활성이 아닙니다." + +msgid "Template name must be a string" +msgstr "템플리트 이름은 문자열이어야 합니다." + +msgid "Template icon must be a path to the image" +msgstr "템플리트 아이콘은 이미지의 경로여야 합니다." + +msgid "Template distribution must be a string" +msgstr "템플리트 배포는 문자열이어야 합니다." + +msgid "Template distribution version must be a string" +msgstr "템플리트 배포 버전은 문자열이어야 합니다." + +msgid "The number of CPUs must be an integer greater than 0" +msgstr "CPU 수는 정수여야 합니다." + +msgid "Amount of memory (MB) must be an integer greater than 512" +msgstr "메모리 용량(MB)은 512보다 큰 정수여야 합니다." + +msgid "Template CDROM must be a local or remote ISO file" +msgstr "템플리트 CDROM은 로컬 또는 원격 ISO 파일이어야 합니다." + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for template" +msgstr "" +"템플리트에 대해 올바르지 않은 스토리지 풀 URI %(value)s이(가) 지정되었습니다." + +msgid "Specify an ISO image as CDROM or a base image to create a template" +msgstr "템플리트를 작성하려면 ISO 이미지를 CDROM으로 지정하십시오." + +msgid "All networks for the template must be specified in a list." +msgstr "템플리트의 모든 네트워크가 목록에 지정되어야 합니다." + +msgid "Specify a volume to a template when storage pool is iSCSI or SCSI" +msgstr "" + +#, python-format +msgid "The volume %(volume)s is not in storage pool %(pool)s" +msgstr "" + +#, python-format +msgid "Unable to create template due error: %(err)s" +msgstr "오류 때문에 템플리트를 작성할 수 없음: %(err)s" + +#, python-format +msgid "Unable to delete template due error: %(err)s" +msgstr "오류 때문에 템플리트를 삭제할 수 없음: %(err)s" + +msgid "Disk size must be an integer greater than 1GB." +msgstr "" + +msgid "Template base image must be a valid local image file" +msgstr "템플리트 CDROM은 로컬 또는 원격 ISO 파일이어야 합니다." + +#, python-format +msgid "Cannot identify base image %(path)s format" +msgstr "" + +msgid "" +"When specifying CPU topology, VCPUs must be a product of sockets, cores, and " +"threads." +msgstr "" + +msgid "" +"When specifying CPU topology, each element must be an integer greater than " +"zero." +msgstr "" + +msgid "" +"Invalid disk image format. Valid formats: bochs, cloop, cow, dmg, qcow, " +"qcow2, qed, raw, vmdk, vpc." +msgstr "" + +#, python-format +msgid "Storage pool %(name)s already exists" +msgstr "스토리지 풀 %(name)s이(가) 이미 존재합니다." + +#, python-format +msgid "Storage pool %(name)s does not exist" +msgstr "스토리지 풀 %(name)s이(가) 없습니다." + +#, python-format +msgid "Specify %(item)s in order to create the storage pool %(name)s" +msgstr "스토리지 풀 %(name)s을(를) 작성하려면 %(item)s을(를) 지정하십시오." + +#, python-format +msgid "Unable to delete active storage pool %(name)s" +msgstr "활성 스토리지 풀 %(name)s을(를) 삭제할 수 없습니다." + +#, python-format +msgid "Unable to list storage pools. Details: %(err)s" +msgstr "스토리지 풀을 나열할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Unable to create storage pool %(name)s. Details: %(err)s" +msgstr "스토리지 풀 %(name)s을(를) 작성할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "" +"Unable to get number of storage volumes in storage pool %(name)s. Details: " +"%(err)s" +msgstr "" +"스토리지 풀 %(name)s에 있는 스토리지 볼륨의 수를 가져올 수 없습니다. 세부사" +"항: %(err)s" + +#, python-format +msgid "Unable to activate storage pool %(name)s. Details: %(err)s" +msgstr "스토리지 풀 %(name)s을(를) 활성화할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Unable to deactivate storage pool %(name)s. Details: %(err)s" +msgstr "스토리지 풀 %(name)s을(를) 비활성화할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Unable to delete storage pool %(name)s. Details: %(err)s" +msgstr "스토리지 풀 %(name)s을(를) 삭제할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "" +"Unable to create NFS Pool as export path %(path)s may block during mount" +msgstr "" +"내보내기 경로 %(path)s이(가) 마운트 중에 차단될 수 있으므로 NFS 풀을 작성할 " +"수 없습니다." + +#, python-format +msgid "Unable to create NFS Pool as export path %(path)s mount failed" +msgstr "" +"내보내기 경로 %(path)s 마운트가 실패했으므로 NFS 풀을 작성할 수 없습니다." + +#, python-format +msgid "Unsupported storage pool type: %(type)s" +msgstr "지원되지 않는 스토리지 풀 유형: %(type)s" + +#, python-format +msgid "Error while retrieving storage pool XML to %(pool)s" +msgstr "" + +msgid "Storage pool name must be a string without slashes (/)" +msgstr "" + +msgid "" +"Supported storage pool types are dir, netfs, logical, iscsi, isci and kimchi-" +"iso" +msgstr "" + +msgid "Storage pool path must be a string" +msgstr "스토리지 풀 경로는 문자열이어야 합니다." + +msgid "Storage pool host must be a IP or hostname" +msgstr "스토리지 풀 호스트는 IP 또는 호스트 이름이어야 합니다." + +msgid "Storage pool device must be the absolute path to the block device" +msgstr "" + +msgid "Storage pool devices parameter must be a list" +msgstr "스토리지 풀 장치는 목록이어야 합니다." + +msgid "Target IQN of an iSCSI pool must be a string" +msgstr "iSCSI 풀의 대상 IQN은 문자열이어야 합니다." + +msgid "Port of a remote storage server must be an integer between 1 and 65535" +msgstr "원격 스토리지 서버의 포트는 1과 65535 사이의 정수여야 합니다." + +msgid "iSCSI target username must be a string" +msgstr "" + +msgid "iSCSI target password must be a string" +msgstr "" + +msgid "Specify name and type to create a storage pool" +msgstr "스토리지 풀을 작성하려면 이름 및 유형을 지정하십시오." + +#, python-format +msgid "" +"%(disk)s is not a valid disk/partition. Could not add it to the pool " +"%(pool)s." +msgstr "" +"%(disk)s은(는) 유효한 디스크/파티션이 아닙니다. 이를 %(pool)s 풀에 추가할 수 " +"없습니다." + +#, python-format +msgid "Unable to extend logical pool %(pool)s. Details: %(err)s" +msgstr "" + +msgid "The parameter disks only can be updated for logical storage pool." +msgstr "논리 스토리지 풀의 매개변수 디스크만 업데이트할 수 있습니다." + +msgid "The SCSI host adapter name must be a string." +msgstr "SCSI 호스트 어댑터 이름은 문자열이어야 합니다." + +msgid "The storage pool kimchi_isos is reserved for internal use" +msgstr "스토리지 풀 kimchi_isos는 내부 용도로 예약되었습니다." + +#, python-format +msgid "" +"Unable to activate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"NFS 스토리지 풀 %(name)s을(를) 활성화할 수 없습니다. NFS 서버 %(server)s에 연" +"결할 수 없습니다." + +#, python-format +msgid "" +"Unable to deactivate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"NFS 스토리지 풀 %(name)s을(를) 비활성화할 수 없습니다. NFS 서버 %(server)s에 " +"연결할 수 없습니다." + +#, python-format +msgid "" +"Unable to deactivate pool %(name)s as it is associated with some templates" +msgstr "" +"일부 템플리트와 연관되어 있으므로 %(name)s 풀을 비활성화할 수 없습니다." + +#, python-format +msgid "Unable to delete pool %(name)s as it is associated with some templates" +msgstr "일부 템플리트와 연관되어 있으므로 %(name)s 풀을 삭제할 수 없습니다." + +#, python-format +msgid "" +"A volume group named '%(name)s' already exists. Please, choose another name " +"to create the logical pool." +msgstr "" +"이름이 '%(name)s'인 볼륨 그룹이 이미 존재합니다. 논리 풀을 작성하려면 다른 이" +"름을 선택하십시오." + +#, python-format +msgid "Unable to update database with deep scan information due error: %(err)s" +msgstr "" +"오류 때문에 자세한 스캔 정보로 데이터베이스를 업데이트할 수 없음: %(err)s" + +#, python-format +msgid "Storage volume %(name)s already exists" +msgstr "스토리지 볼륨 %(name)s이(가) 이미 존재합니다." + +#, python-format +msgid "Storage volume %(name)s does not exist in storage pool %(pool)s" +msgstr "스토리지 볼륨 %(name)s이(가) 스토리지 풀 %(pool)s에 없습니다." + +#, python-format +msgid "" +"Unable to create storage volume %(volume)s because storage pool %(pool)s is " +"not active" +msgstr "" + +#, python-format +msgid "Specify %(item)s in order to create storage volume %(volume)s" +msgstr "스토리지 볼륨 %(volume)s을(를) 작성하려면 %(item)s을(를) 지정하십시오." + +#, python-format +msgid "" +"Unable to list storage volumes because storage pool %(pool)s is not active" +msgstr "" +"스토리지 풀 %(pool)s이(가) 활성이 아니므로 스토리지 볼륨을 나열할 수 없습니" +"다." + +#, python-format +msgid "" +"Unable to create storage volume %(name)s in storage pool %(pool)s. Details: " +"%(err)s" +msgstr "" +"스토리지 볼륨 %(name)s을(를) 스토리지 풀 %(pool)s에 작성할 수 없습니다. 세부" +"사항: %(err)s" + +#, python-format +msgid "" +"Unable to list storage volumes in storage pool %(pool)s. Details: %(err)s" +msgstr "" +"스토리지 풀 %(pool)s의 스토리지 볼륨을 나열할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Unable to wipe storage volumes %(name)s. Details: %(err)s" +msgstr "스토리지 풀 %(name)s을(를) 삭제할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Unable to delete storage volume %(name)s. Details: %(err)s" +msgstr "스토리지 볼륨 %(name)s을(를) 삭제할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Unable to resize storage volume %(name)s. Details: %(err)s" +msgstr "스토리지 볼륨 %(name)s의 크기를 조정할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Storage type %(type)s does not support volume create and delete" +msgstr "스토리지 유형 %(type)s은(는) 볼륨 작성 및 삭제를 지원하지 않습니다." + +msgid "Storage volume name must be a string" +msgstr "스토리지 볼륨 이름은 문자열이어야 합니다." + +msgid "Storage volume allocation must be an integer number" +msgstr "스토리지 볼륨 할당은 정수여야 합니다." + +msgid "" +"Storage volume format not supported. Valid formats: bochs, cloop, cow, dmg, " +"qcow, qcow2, qed, raw, vmdk, vpc." +msgstr "" + +msgid "Storage volume requires a volume name" +msgstr "스토리지 볼륨은 볼륨 이름이 필요합니다." + +#, python-format +msgid "" +"Unable to update database with storage volume information due error: %(err)s" +msgstr "" +"오류 때문에 스토리지 볼륨 정보로 데이터베이스를 업데이트할 수 없음: %(err)s" + +#, python-format +msgid "Only one of parameter %(param)s can be specified" +msgstr "" + +#, python-format +msgid "Create volume from %(param)s is not supported" +msgstr "" + +msgid "Storage volume capacity must be an integer number." +msgstr "" + +msgid "Storage volume URL must be http://, https://, ftp:// or ftps://." +msgstr "" + +#, python-format +msgid "Unable to access file %(url)s. Please, check it." +msgstr "" + +#, python-format +msgid "" +"Unable to clone storage volume '%(name)s' in pool '%(pool)s'. Details: " +"%(err)s" +msgstr "" + +msgid "Specify chunk data and its size to upload a file." +msgstr "" + +msgid "In order to upload a storage volume, specify the 'upload' parameter." +msgstr "" + +msgid "" +"Unable to upload chunk data as it does not match with requested chunk size." +msgstr "" + +#, python-format +msgid "The storage volume %(vol)s is not under an upload process." +msgstr "" + +msgid "The upload chunk data will exceed the storage volume size." +msgstr "" + +#, python-format +msgid "Unable to upload chunk data to storage volume. Details: %(err)s." +msgstr "" + +#, python-format +msgid "Interface %(name)s does not exist" +msgstr "인터페이스 %(name)s이(가) 없습니다." + +#, python-format +msgid "Network %(name)s already exists" +msgstr "네트워크 %(name)s이(가) 이미 존재합니다." + +#, python-format +msgid "Network %(name)s does not exist" +msgstr "네트워크 %(name)s이(가) 없습니다." + +#, python-format +msgid "Subnet %(subnet)s specified for network %(network)s is not valid." +msgstr "" +"네트워크 %(network)s에 대해 지정된 서브넷 %(subnet)s이(가) 유효하지 않습니다." + +#, python-format +msgid "Specify a network interface to create bridged network %(name)s" +msgstr "" +"브릿지된 네트워크 %(name)s을(를) 작성할 네트워크 인터페이스를 지정하십시오." + +#, python-format +msgid "Unable to delete active network %(name)s" +msgstr "활성 네트워크 %(name)s을(를) 삭제할 수 없습니다." + +#, python-format +msgid "Interface %(iface)s specified for network %(network)s is already in use" +msgstr "" +"네트워크 %(network)s에 대해 지정된 인터페이스 %(iface)s이(가) 이미 사용 중입" +"니다." + +msgid "Interface should be bare NIC, bonding or bridge device." +msgstr "인터페이스는 순수 NIC, 본딩 또는 브릿지 장치여야 합니다." + +#, python-format +msgid "Unable to create network %(name)s. Details: %(err)s" +msgstr "네트워크 %(name)s을(를) 작성할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Unable to find a free IP address for network '%(name)s'" +msgstr "네트워크 '%(name)s'에 대한 여유 IP 주소를 찾을 수 없습니다." + +#, python-format +msgid "The interface %(iface)s already exists." +msgstr "" + +msgid "Network name must be a string without slashes (/) or quotes (\")" +msgstr "" + +msgid "Supported network types are isolated, NAT and bridge" +msgstr "지원되는 네트워크 유형은 격리, NAT 및 브릿지입니다." + +msgid "Network subnet must be a string with IP address and prefix or netmask" +msgstr "" +"네트워크 서브넷은 IP 주소 및 접두부 또는 넷마스크가 있는 문자열이어야 합니다." + +msgid "Network interface must be a string" +msgstr "네트워크 인터페이스는 문자열이어야 합니다." + +msgid "Network VLAN ID must be an integer between 1 and 4094" +msgstr "네트워크 VLAN ID는 1과 4094 사이의 정수여야 합니다." + +msgid "Specify name and type to create a Network" +msgstr "네트워크를 작성하려면 이름 및 유형을 지정하십시오." + +#, python-format +msgid "" +"Unable to delete network %(name)s. There are some virtual machines %(vms)s " +"and/or templates linked to this network." +msgstr "" + +#, python-format +msgid "" +"Unable to deactivate network %(name)s. There are some virtual machines " +"%(vms)s and/or templates linked to this network." +msgstr "" + +#, python-format +msgid "Bridge device %(name)s can not be the trunk device of a VLAN." +msgstr "브릿지 장치 %(name)s은(는) VLAN의 트렁크 장치가 될 수 없습니다." + +#, python-format +msgid "Failed to activate interface %(iface)s: %(err)s." +msgstr "%(iface)s 인터페이스를 활성화하지 못함: %(err)s." + +#, python-format +msgid "" +"Failed to activate interface %(iface)s. Please check the physical link " +"status." +msgstr "" +"%(iface)s 인터페이스를 활성화하지 못했습니다. 물리적 링크 상태를 확인하십시" +"오." + +#, python-format +msgid "Failed to start network %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Debug report %(name)s does not exist" +msgstr "디버그 보고서 %(name)s이(가) 없습니다." + +msgid "Debug report tool not found in system" +msgstr "디버그 보고서 도구가 시스템에 없습니다." + +#, python-format +msgid "Unable to create debug report %(name)s. Details: %(err)s." +msgstr "디버그 보고서 %(name)s을(를) 작성할 수 없습니다. 세부사항: %(err)s" + +#, python-format +msgid "Can not find any debug report with the given name %(name)s" +msgstr "" + +#, python-format +msgid "Unable to generate debug report %(name)s. Details: %(err)s" +msgstr "디버그 보고서 %(name)s을(를) 생성할 수 없습니다. 세부사항: %(err)s" + +msgid "You should give a name for the debug report file." +msgstr "" + +msgid "" +"Debug report name must be a string. Only letters, digits, underscore ('_') " +"and hyphen ('-') are allowed." +msgstr "" + +#, python-format +msgid "" +"The debug report with specified name \"%(name)s\" already exists. Please use " +"another one." +msgstr "" +"이름이 '%(name)s'인 볼륨 그룹이 이미 존재합니다. 논리 풀을 작성하려면 다른 이" +"름을 선택하십시오." + +#, python-format +msgid "Storage server %(server)s was not used by Kimchi" +msgstr "스토리지 서버 %(server)s은(는) Kimchi에서 사용되지 않았습니다." + +#, python-format +msgid "Distro '%(name)s' does not exist" +msgstr "Distro '%(name)s'이(가) 없습니다." + +#, python-format +msgid "Partition %(name)s does not exist in the host" +msgstr "파티션 %(name)s이(가) 호스트에 없습니다." + +msgid "Unable to shutdown host machine as there are running virtual machines" +msgstr "가상 머신을 실행 중인 호스트 머신을 종료할 수 없습니다." + +msgid "Unable to reboot host machine as there are running virtual machines" +msgstr "가상 머신을 실행 중인 호스트 머신을 다시 부팅할 수 없습니다." + +#, python-format +msgid "Node device '%(name)s' not found" +msgstr "노드 장치 '%(name)s'이(가) 없습니다." + +msgid "Conflicting flag filters specified." +msgstr "" + +msgid "No packages marked for update" +msgstr "업데이트 표시된 패키지가 없습니다." + +#, python-format +msgid "Package %(name)s is not marked to be updated." +msgstr "패키지 %(name)s은(는) 업데이트되도록 표시되지 않았습니다." + +#, python-format +msgid "Error while getting packages marked to be updated. Details: %(err)s" +msgstr "" +"업데이트되도록 표시된 패키지를 가져오는 중에 오류가 발생했습니다. 세부사항: " +"%(err)s" + +msgid "There is no compatible package manager for this system." +msgstr "이 시스템에 대해 호환 가능한 패키지 관리자가 없습니다." + +#, python-format +msgid "Unable to find %(item)s in datastore" +msgstr "데이터 저장소에서 %(item)s을(를) 찾을 수 없습니다." + +#, python-format +msgid "Invalid URI %(uri)s" +msgstr "올바르지 않은 URI %(uri)s" + +#, python-format +msgid "Timeout while running command '%(cmd)s' after %(seconds)s seconds" +msgstr "%(seconds)s초 후에 '%(cmd)s' 명령 실행 중 제한시간이 초과되었습니다." + +msgid "Unable to choose a virtual machine name" +msgstr "" + +#, python-format +msgid "Invalid data value '%(value)s'" +msgstr "" + +#, python-format +msgid "Invalid data unit '%(unit)s'" +msgstr "" + +msgid "Invalid storage type. Types supported: 'cdrom', 'disk'" +msgstr "올바르지 않은 스토리지 유형입니다. 지원되는 유형: 'cdrom'" + +#, python-format +msgid "The path '%(value)s' is not a valid local/remote path for the device" +msgstr "" + +msgid "Only CDROM path can be update." +msgstr "" + +#, python-format +msgid "" +"The storage device %(dev_name)s does not exist in the virtual machine " +"%(vm_name)s" +msgstr "" + +#, python-format +msgid "Error while creating new storage device: %(error)s" +msgstr "새 스토리지 장치를 작성하는 중에 오류 발생: %(error)s" + +#, python-format +msgid "Error while updating storage device: %(error)s" +msgstr "스토리지 장치를 업데이트하는 중에 오류 발생: %(error)s" + +#, python-format +msgid "Error while removing storage device: %(error)s" +msgstr "스토리지 장치를 제거하는 중에 오류 발생: %(error)s" + +msgid "Do not support IDE device hot plug" +msgstr "" + +msgid "" +"Specify type and path or type and pool/volume to add a new virtual machine " +"disk" +msgstr "새 가상 머신 디스크를 추가할 유형 및 경로를 지정하십시오." + +msgid "Specify path to update virtual machine disk" +msgstr "가상 머신 디스크를 업데이트할 경로를 지정하십시오." + +#, python-format +msgid "Controller type %(type)s limitation of %(limit)s devices reached" +msgstr "" + +#, python-format +msgid "Cannot retrieve disk path information for given pool/volume: %(error)s" +msgstr "" + +msgid "Volume already in use by other virtual machine." +msgstr "" + +msgid "" +"Only one of path or pool/volume can be specified to add a new virtual " +"machine disk" +msgstr "새 가상 머신 디스크를 추가할 유형 및 경로를 지정하십시오." + +#, python-format +msgid "" +"Volume chosen with format %(format)s does not fit in the storage type " +"%(type)s" +msgstr "" + +msgid "YUM Repository ID must be one word only string." +msgstr "YUM 저장소 ID는 단일 단어의 문자열이어야 합니다." + +msgid "Repository URL must be an http://, ftp:// or file:// URL." +msgstr "저장소 URL은 http://, ftp:// 또는 file:// URL이어야 합니다." + +msgid "" +"Repository configuration is a dictionary with specific values according to " +"repository type." +msgstr "저장소 구성은 저장소 유형에 따른 특정 값이 있는 사전입니다." + +msgid "Distribution to DEB repository must be a string" +msgstr "DEB 저장소에 대한 배포는 문자열이어야 합니다." + +msgid "Components to DEB repository must be listed in a array" +msgstr "DEB 저장소에 대한 구성요소는 배열에 나열되어야 합니다." + +msgid "Components to DEB repository must be a string" +msgstr "DEB 저장소에 대한 구성요소는 문자열이어야 합니다." + +msgid "Mirror list to repository must be a string" +msgstr "" + +msgid "YUM Repository name must be string." +msgstr "YUM 저장소 이름은 문자열이어야 합니다." + +msgid "GPG check must be a boolean value." +msgstr "GPG 검사는 부울 값이어야 합니다." + +msgid "GPG key must be a URL pointing to the ASCII-armored file." +msgstr "GPG 키는 ASCII 보호 파일을 가리키는 URL이어야 합니다." + +#, python-format +msgid "Could not update repository %(repo_id)s." +msgstr "%(repo_id)s 저장소를 업데이트할 수 없습니다." + +#, python-format +msgid "Repository %(repo_id)s does not exist." +msgstr "%(repo_id)s 저장소가 없습니다." + +msgid "" +"Specify repository base URL, mirror list or metalink in order to create or " +"update a YUM repository." +msgstr "" + +msgid "Repository management tool was not recognized for your system." +msgstr "해당 시스템에 대한 저장소 관리 도구가 인식되지 않았습니다." + +#, python-format +msgid "Repository %(repo_id)s is already enabled." +msgstr "%(repo_id)s 저장소가 이미 사용으로 설정되어 있습니다." + +#, python-format +msgid "Repository %(repo_id)s is already disabled." +msgstr "%(repo_id)s 저장소가 이미 사용 안함으로 설정되어 있습니다." + +#, python-format +msgid "Could not remove repository %(repo_id)s." +msgstr "%(repo_id)s 저장소를 제거할 수 없습니다." + +#, python-format +msgid "Could not write repository configuration file %(repo_file)s" +msgstr "저장소 구성 파일 %(repo_file)s을(를) 작성할 수 없습니다." + +msgid "Specify repository distribution in order to create a DEB repository." +msgstr "DEB 저장소를 작성하려면 저장소 배포를 지정하십시오." + +#, python-format +msgid "Could not enable repository %(repo_id)s." +msgstr "%(repo_id)s 저장소를 사용으로 설정할 수 없습니다." + +#, python-format +msgid "Could not disable repository %(repo_id)s." +msgstr "%(repo_id)s 저장소를 사용 안함으로 설정할 수 없습니다." + +msgid "YUM Repository ID already exists" +msgstr "YUM 저장소 ID가 이미 존재합니다." + +msgid "YUM Repository name must be a string" +msgstr "YUM 저장소 이름은 문자열이어야 합니다." + +#, python-format +msgid "Unable to list repositories. Details: '%(err)s'" +msgstr "저장소를 나열할 수 없습니다. 세부사항: '%(err)s'" + +#, python-format +msgid "Unable to retrieve repository information. Details: '%(err)s'" +msgstr "저장소 정보를 나열할 수 없습니다. 세부사항: '%(err)s'" + +#, python-format +msgid "Unable to add repository. Details: '%(err)s'" +msgstr "저장소를 추가할 수 없습니다. 세부사항: '%(err)s'" + +#, python-format +msgid "Unable to remove repository. Details: '%(err)s'" +msgstr "저장소를 제거할 수 없습니다. 세부사항: '%(err)s'" + +#, python-format +msgid "" +"Configuration items: '%(items)s' are not supported by repository manager" +msgstr "" + +msgid "Repository metalink must be an http://, ftp:// or file:// URL." +msgstr "" + +msgid "Cannot specify mirrorlist and metalink at the same time." +msgstr "" + +#, python-format +msgid "" +"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it." +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Snapshot '%(name)s' does not exist on virtual machine '%(vm)s'." +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Unable to list snapshots on virtual machine '%(vm)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to delete snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to revert virtual machine '%(vm)s' to snapshot '%(name)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot of virtual machine '%(vm)s' because it contains a " +"disk with format '%(format)s'; only 'qcow2' is supported." +msgstr "" + +msgid "The number of vCPUs is too large for this system." +msgstr "" + +msgid "Invalid vCPU/topology combination." +msgstr "" + +msgid "This host (or current configuration) does not allow CPU topology." +msgstr "" + +msgid "ERROR CODE" +msgstr "오류 코드" + +msgid "REASON" +msgstr "이유" + +msgid "STACK" +msgstr "스택" + +msgid "Go to Homepage" +msgstr "홈 페이지로 이동" + +msgid "Create a New Virtual Machine" +msgstr "새 가상 머신 작성" + +msgid "Virtual Machine Name" +msgstr "가상 머신 이름" + +msgid "" +"The name used to identify the virtual machine. If omitted, a name will be " +"chosen based on the template used." +msgstr "" +"가상 머신을 식별하는 데 사용되는 이름입니다. 생략되면 이름은 사용된 템플리트" +"를 기반으로 선택됩니다." + +msgid "Template" +msgstr "템플리트" + +msgid "Please create a template first." +msgstr "템플리트를 먼저 작성하십시오." + +msgid "Create a Template" +msgstr "템플리트 작성" + +msgid "Please choose a template." +msgstr "템플리트를 선택하십시오." + +msgid "OS" +msgstr "OS" + +msgid "OS Version" +msgstr "OS 버전" + +msgid "CPUS" +msgstr "CPUS" + +msgid "Memory" +msgstr "메모리" + +msgid "Create" +msgstr "작성" + +msgid "Creating..." +msgstr "" + +msgid "Edit Guest" +msgstr "게스트 편집" + +msgid "General" +msgstr "일반" + +msgid "Storage" +msgstr "스토리지" + +msgid "Interface" +msgstr "인터페이스" + +msgid "Permission" +msgstr "버전" + +msgid "Host PCI Device" +msgstr "" + +msgid "Snapshot" +msgstr "" + +msgid "Name" +msgstr "이름" + +msgid "CPUs" +msgstr "CPU" + +msgid "Memory (MB)" +msgstr "메모리" + +msgid "Icon" +msgstr "아이콘" + +msgid "Device" +msgstr "장치 이름" + +msgid "Path" +msgstr "NFS 경로" + +msgid "Network" +msgstr "네트워크" + +msgid "Type" +msgstr "유형" + +msgid "MAC Address" +msgstr "" + +msgid "Available system users and groups" +msgstr "" + +msgid "Selected system users and groups" +msgstr "" + +msgid "User" +msgstr "" + +msgid "All" +msgstr "모두" + +msgid "To Add" +msgstr "" + +msgid "Added" +msgstr "" + +msgid "filter" +msgstr "" + +msgid "Product" +msgstr "" + +msgid "Vendor" +msgstr "공급업체" + +msgid "Created" +msgstr "" + +msgid "Save" +msgstr "저장" + +msgid "Replace" +msgstr "교체" + +msgid "Detach" +msgstr "분리" + +msgid "Cancel" +msgstr "취소" + +msgid "revert" +msgstr "" + +msgid "Add a Storage Device to VM" +msgstr "스토리지 장치를 VM에 추가" + +msgid "Device Type" +msgstr "장치 유형" + +msgid "The device type. Currently, \"cdrom\" and \"disk\" are supported." +msgstr "장치 유형입니다. 현재 \"cdrom\"만 지원됩니다." + +msgid "Storage Pool" +msgstr "스토리지 풀" + +msgid "Storage pool which volume located in" +msgstr "스토리지 풀 경로는 문자열이어야 합니다." + +msgid "Storage Volume" +msgstr "스토리지 풀 이름" + +msgid "Storage volume to be attached" +msgstr "스토리지 볼륨 이름은 문자열이어야 합니다." + +msgid "File Path" +msgstr "파일 경로" + +msgid "The ISO file path in the server for CDROM." +msgstr "CDROM을 위한 서버의 ISO 파일 경로입니다." + +msgid "Attach" +msgstr "연결" + +msgid "Start" +msgstr "시작" + +msgid "Reset" +msgstr "다시 설정" + +msgid "Pause" +msgstr "" + +msgid "Resume" +msgstr "" + +msgid "Power Off" +msgstr "" + +msgid "Actions" +msgstr "조치" + +msgid "Connect" +msgstr "연결" + +msgid "Clone" +msgstr "" + +msgid "Edit" +msgstr "편집" + +msgid "Shut Down" +msgstr "시스템 종료" + +msgid "Delete" +msgstr "삭제" + +msgid "The username or password you entered is incorrect. Please try again." +msgstr "" +"입력한 사용자 이름 또는 비밀번호가 올바르지 않습니다. 다시 시도하십시오." + +msgid "This field is required." +msgstr "이 필드는 필수입니다." + +msgid "Log in" +msgstr "로그인" + +msgid "Logging in..." +msgstr "로그인 중..." + +msgid "Host" +msgstr "호스트" + +msgid "Guests" +msgstr "게스트" + +msgid "Templates" +msgstr "템플리트" + +msgid "Failed to get application configuration" +msgstr "애플리케이션 구성을 가져오지 못했습니다." + +msgid "This is not a valid Linux path" +msgstr "올바른 Linux 경로가 아닙니다." + +msgid "This is not a valid URL." +msgstr "올바른 URL이 아닙니다." + +msgid "No such data available." +msgstr "해당 데이터가 없습니다." + +msgid "" +"Can not contact the host system. Verify the host system is up and that you " +"have network connectivity to it. HTTP request response %1. " +msgstr "" +"호스트 시스템에 접속할 수 없습니다. 호스트 시스템이 가동되었고 이에 대한 네트" +"워크 연결이 있는지 확인하십시오. HTTP 요청 응답 %1. " + +msgid "Unable to read file." +msgstr "" + +msgid "Error while uploading file." +msgstr "" + +msgid "Delete Confirmation" +msgstr "삭제 확인" + +msgid "OK" +msgstr "확인" + +msgid "Confirm" +msgstr "확인" + +msgid "Warning" +msgstr "경고" + +msgid "Cloning..." +msgstr "" + +msgid "Loading..." +msgstr "로드 중..." + +msgid "An error occurred while retrieving system information." +msgstr "" + +msgid "Retry" +msgstr "재시도" + +msgid "Detailed message:" +msgstr "세부 메시지:" + +msgid "No ISO found" +msgstr "" + +msgid "This is not a valid ISO file." +msgstr "올바른 ISO 파일이 아닙니다." + +msgid "This may take a long time. Do you want to continue?" +msgstr "시간이 오래 걸립니다. 계속하시겠습니까?" + +msgid "This will permanently delete the template. Would you like to continue?" +msgstr "템플리트가 영구적으로 삭제됩니다. 계속하시겠습니까?" + +msgid "Unable to shut down system as there are some virtual machines running!" +msgstr "일부 가상 머신이 실행 중이므로 시스템을 종료할 수 없습니다." + +msgid "Max:" +msgstr "최대:" + +msgid "Utilization" +msgstr "이용률" + +msgid "Available" +msgstr "사용 가능" + +msgid "Read Rate" +msgstr "읽기 속도" + +msgid "Write Rate" +msgstr "쓰기 속도" + +msgid "Received" +msgstr "받음" + +msgid "Sent" +msgstr "보냄" + +msgid "" +"Shutting down or restarting host will cause unsaved work lost. Continue to " +"shut down/restarting?" +msgstr "" +"호스트를 종료하거나 다시 시작하면 저장되지 않은 작업이 손실됩니다. 시스템 종" +"료/다시 시작을 계속하시겠습니까?" + +msgid "" +"Repository will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "저장소가 영구적으로 제거되어 복구할 수 없습니다. 계속하시겠습니까?" + +msgid "Repositories" +msgstr "저장소" + +msgid "ID" +msgstr "ID" + +msgid "Base URL" +msgstr "기본 URL" + +msgid "Is Mirror" +msgstr "미러임" + +msgid "URL Args" +msgstr "URL 인수" + +msgid "Enabled" +msgstr "사용함" + +msgid "GPG Check" +msgstr "GPG 검사" + +msgid "GPG Key" +msgstr "GPG 키" + +msgid "Add" +msgstr "추가" + +msgid "Remove" +msgstr "제거" + +msgid "Enable" +msgstr "사용" + +msgid "Disable" +msgstr "사용 안함" + +msgid "Software Updates" +msgstr "소프트웨어 업데이트" + +msgid "Package Name" +msgstr "패키지 이름" + +msgid "Version" +msgstr "버전" + +msgid "Architecture" +msgstr "아키텍처" + +msgid "Repository" +msgstr "저장소" + +msgid "Update All" +msgstr "모두 업데이트" + +msgid "Updating..." +msgstr "업데이트 중..." + +msgid "Failed to retrieve packages update information." +msgstr "" + +msgid "Failed to update package(s)." +msgstr "패키지를 업데이트하지 못했습니다." + +msgid "" +"Debug report will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" +"디버그 보고서가 영구적으로 제거되어 복구할 수 없습니다. 계속하시겠습니까?" + +msgid "Debug Reports" +msgstr "디버그 보고서" + +msgid "Generated Time" +msgstr "생성 시간" + +msgid "Generate" +msgstr "생성" + +msgid "Generating..." +msgstr "생성 중..." + +msgid "Rename" +msgstr "이름 바꾸기" + +msgid "Download" +msgstr "다운로드" + +msgid "" +"Report name should contain only letters, digits, underscore ('_') and/or " +"hyphen ('-')." +msgstr "보고서 이름에는 문자, 숫자 및/또는 하이픈('-')만 포함되어야 합니다." + +msgid "Pending..." +msgstr "로드 중..." + +msgid "Report name is the same as the original one." +msgstr "" + +msgid "" +"This will delete the virtual machine and its virtual disks. This operation " +"cannot be undone. Would you like to continue?" +msgstr "" +"가상 머신 및 해당 가상 디스크가 삭제됩니다. 이 조작은 실행 취소할 수 없습니" +"다. 계속하시겠습니까?" + +msgid "Power off Confirmation" +msgstr "삭제 확인" + +msgid "" +"This action may produce undesirable results, for example unflushed disk " +"cache in the guest. Would you like to continue?" +msgstr "" + +msgid "Reset Confirmation" +msgstr "삭제 확인" + +msgid "" +"There is a risk of data loss caused by reset without the guest OS shutdown. " +"Would you like to continue?" +msgstr "" + +msgid "Shut Down Confirmation" +msgstr "삭제 확인" + +msgid "Note the guest OS may ignore this request. Would you like to continue?" +msgstr "템플리트가 영구적으로 삭제됩니다. 계속하시겠습니까?" + +msgid "Virtual Machine delete Confirmation" +msgstr "" + +msgid "" +"This virtual machine is not persistent. Power Off will delete it. Continue?" +msgstr "" + +msgid "" +"When the target guest has SCSI or iSCSI volumes, they will be cloned on " +"default storage pool. The same will happen when the target pool does not " +"have enough space to clone the volumes. Do you want to continue?" +msgstr "" + +msgid "" +"This CDROM will be detached permanently and you can re-attach it. Continue " +"to detach it?" +msgstr "" +"이 CDROM은 영구적으로 분리되며 다시 연결할 수 있습니다. 분리를 계속하시겠습니" +"까?" + +msgid "Attaching..." +msgstr "연결 중..." + +msgid "Replacing..." +msgstr "교체 중..." + +msgid "Successfully attached!" +msgstr "연결되었습니다." + +msgid "Successfully replaced!" +msgstr "교체되었습니다." + +msgid "Successfully detached!" +msgstr "분리되었습니다." + +msgid "" +"This disk will be detached permanently and you can re-attach it. Continue to " +"detach it?" +msgstr "" + +msgid "interface:" +msgstr "" + +msgid "address:" +msgstr "" + +msgid "link_type:" +msgstr "" + +msgid "block:" +msgstr "" + +msgid "drive_type:" +msgstr "" + +msgid "model:" +msgstr "" + +msgid "Affected devices:" +msgstr "" + +msgid "The VLAN id must be between 1 and 4094." +msgstr "VLAN ID는 1과 4094 사이여야 합니다." + +msgid "unavailable" +msgstr "사용 불가능" + +msgid "" +"This action will interrupt network connectivity for any virtual machine that " +"depend on this network." +msgstr "" +"이 조치는 이 네트워크에 의존하는 가상 머신의 네트워크 연결을 인터럽트합니다." + +msgid "Create a network" +msgstr "네트워크 작성" + +msgid "" +"This network is not persistent. Instead of stop, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"이 스토리지 풀은 지속적이지 않습니다. 이 조치는 풀을 비활성화하지 않고 영구적" +"으로 삭제합니다. 계속하시겠습니까?" + +msgid "" +"The bridged VLAN tag may not work well with NetworkManager enabled. You " +"should consider disabling it." +msgstr "" + +msgid "" +"This will permanently delete the storage pool. Would you like to continue?" +msgstr "스토리지 풀이 영구적으로 삭제됩니다. 계속하시겠습니까?" + +msgid "This storage pool is empty." +msgstr "이 스토리지 풀은 비어 있습니다." + +msgid "" +"It will format your disk and you will loose any data in there, are you sure " +"to continue? " +msgstr "디스크가 포맷되고 데이터가 손실됩니다. 계속하시겠습니까? " + +msgid "SCSI Fibre Channel" +msgstr "SCSI 파이버 채널" + +msgid "No SCSI adapters found." +msgstr "SCSI 어댑터가 없습니다." + +msgid "Loading iSCSI targets..." +msgstr "" + +msgid "No iSCSI found. Please input one." +msgstr "" + +msgid "Failed to load iSCSI targets." +msgstr "" + +msgid "The storage pool name can not be blank." +msgstr "스토리지 풀 이름은 비워둘 수 없습니다." + +msgid "The storage pool path can not be blank." +msgstr "스토리지 풀 경로는 비워둘 수 없습니다." + +msgid "NFS server mount path can not be blank." +msgstr "NFS 서버 마운트 경로는 비워둘 수 없습니다." + +msgid "Invalid NFS mount path." +msgstr "올바르지 않은 NFS 마운트 경로입니다." + +msgid "No logical device selected." +msgstr "논리 장치가 선택되지 않았습니다." + +msgid "The iSCSI target can not be blank." +msgstr "iSCSI 대상은 비워둘 수 없습니다." + +msgid "Server name can not be blank." +msgstr "서버 이름은 비워둘 수 없습니다." + +msgid "This is not a valid Server Name or IP. Please, modify it." +msgstr "" + +msgid "Looking for available partitions ..." +msgstr "사용 가능한 파티션을 찾는 중..." + +msgid "No available partitions found." +msgstr "사용 가능한 파티션이 없습니다." + +msgid "" +"This storage pool is not persistent. Instead of deactivate, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"이 스토리지 풀은 지속적이지 않습니다. 이 조치는 풀을 비활성화하지 않고 영구적" +"으로 삭제합니다. 계속하시겠습니까?" + +msgid "Unable to retrieve partitions information." +msgstr "저장소 정보를 나열할 수 없습니다. 세부사항: '%(err)s'" + +msgid "In progress..." +msgstr "" + +msgid "Failed!" +msgstr "" + +msgid "CDROM path needs to be a valid local/remote path and cannot be blank." +msgstr "" + +msgid "Disk pool or volume cannot be blank." +msgstr "스토리지 풀 이름은 비워둘 수 없습니다." + +msgid "Peers" +msgstr "" + +msgid "Searching" +msgstr "" + +msgid "No peers found." +msgstr "" + +msgid "Help" +msgstr "도움말" + +msgid "About" +msgstr "정보" + +msgid "Log out" +msgstr "로그아웃" + +msgid "Version:" +msgstr "버전: " + +msgid "Session timeout, please re-login." +msgstr "" + +msgid "User Name" +msgstr "사용자 이름" + +msgid "Password" +msgstr "비밀번호" + +msgid "Generate a New Debug Report" +msgstr "새 디버그 보고서 생성" + +msgid "Report Name" +msgstr "보고서 이름" + +msgid "" +"The name used to identify the report. If omitted, a name will be chosen " +"based on current time. Name can contain: letters, digits, underscore (\"_\") " +"and hyphen (\"-\")." +msgstr "" +"보고서를 식별하는 데 사용되는 이름입니다. 생략되면 이름은 현재 시간을 기반으" +"로 선택됩니다. 이름은 문자, 숫자 및 하이픈(\"-\")을 포함할 수 있습니다." + +msgid "Rename a Debug Report" +msgstr "새 디버그 보고서 생성" + +msgid "" +"The name used to identify the report. Name can contain: letters, digits and " +"hyphen (\"-\")." +msgstr "" +"보고서를 식별하는 데 사용되는 이름입니다. 생략되면 이름은 현재 시간을 기반으" +"로 선택됩니다. 이름은 문자, 숫자 및 하이픈(\"-\")을 포함할 수 있습니다." + +msgid "Submit" +msgstr "" + +msgid "Add a Repository" +msgstr "저장소 추가" + +msgid "Identifier" +msgstr "ID" + +msgid "Single word, unique identifier for the repository." +msgstr "저장소에 대한 단일 단어의 고유 ID입니다." + +msgid "Textual name for the repository." +msgstr "저장소에 대한 텍스트 이름입니다." + +msgid "URL" +msgstr "URL" + +msgid "Required Field" +msgstr "필수 필드" + +msgid "URL to the repository. Supported protocols are http, ftp, and file." +msgstr "저장소에 대한 URL입니다. 지원되는 프로토콜은 http, ftp 및 file입니다." + +msgid "Repository is a mirror" +msgstr "저장소가 미러입니다." + +msgid "Distribution" +msgstr "배포" + +msgid "Distribution of the DEB repository." +msgstr "DEB 저장소의 배포입니다." + +msgid "Components" +msgstr "구성요소" + +msgid "List of components in DEB repository." +msgstr "DEB 저장소의 구성요소 목록입니다." + +msgid "Edit Repository" +msgstr "저장소 편집" + +msgid "Mirror List URL" +msgstr "미러 목록 URL" + +msgid "Yes" +msgstr "예" + +msgid "No" +msgstr "아니오" + +msgid "Add a Volume to Storage Pool" +msgstr "" + +msgid "Fetch from remote URL" +msgstr "" + +msgid "Enter the remote URL here." +msgstr "" + +msgid "Upload a file" +msgstr "" + +msgid "Choose the file you want to upload." +msgstr "" + +msgid "Define a New Storage Pool" +msgstr "새 스토리지 풀 정의" + +msgid "Storage Pool Name" +msgstr "스토리지 풀 이름" + +msgid "" +"The name used to identify the storage pools, and it should not be empty." +msgstr "스토리지 풀을 식별하는 데 사용되는 이름이며 비어 있지 않아야 합니다." + +msgid "Storage Pool Type" +msgstr "스토리지 풀 유형" + +msgid "Storage Path" +msgstr "스토리지 경로" + +msgid "" +"The path of the Storage Pool. Each Storage Pool must have a unique path." +msgstr "스토리지 풀의 경로입니다. 각 스토리지 풀은 고유 경로를 가져야 합니다." + +msgid "" +"Kimchi will try to create the directory when it does not already exist in " +"your system." +msgstr "" +"디렉토리가 시스템에 이미 존재하지 않으면 Kimchi가 디렉토리 작성을 시도합니다." + +msgid "NFS Server IP" +msgstr "NFS 서버 IP" + +msgid "NFS server IP or hostname. It can be input or chosen from history." +msgstr "" +"NFS 서버 IP 또는 호스트 이름입니다. 이것은 입력하거나 히스토리에서 선택할 수 " +"있습니다." + +msgid "NFS Path" +msgstr "NFS 경로" + +msgid "The NFS exported path on NFS server." +msgstr "NFS 서버에서 NFS의 내보낸 경로입니다." + +msgid "Device path" +msgstr "장치 경로" + +msgid "iSCSI Server" +msgstr "iSCSI 서버" + +msgid "iSCSI server IP or hostname. It should not be empty." +msgstr "iSCSI 서버 IP 또는 호스트 이름입니다. 비어 있지 않아야 합니다." + +msgid "Server" +msgstr "서버" + +msgid "Port" +msgstr "포트" + +msgid "Target" +msgstr "대상" + +msgid "The iSCSI target on iSCSI server" +msgstr "iSCSI 서버의 iSCSI 대상" + +msgid "Add iSCSI Authentication" +msgstr "iSCSI 인증 추가" + +msgid "iSCSI Authentication" +msgstr "iSCSI 인증" + +msgid "SCSI Adapter" +msgstr "SCSI 어댑터" + +msgid "Please, wait..." +msgstr "잠시 기다려 주십시오." + +msgid "Add Template" +msgstr "템플리트 추가" + +msgid "Where is the source media for this template? " +msgstr "이 템플리트의 소스 매체는 어디에 있습니까?" + +msgid "Local ISO Image" +msgstr "로컬 ISO 이미지" + +msgid "Local Image File" +msgstr "" + +msgid "Remote ISO Image" +msgstr "원격 ISO 이미지" + +msgid "Search ISOs" +msgstr "ISO 검색" + +msgid "The following ISOs are available:" +msgstr "다음 ISO가 사용 가능합니다." + +msgid "OS: " +msgstr "OS: " + +msgid "Version: " +msgstr "버전: " + +msgid "Size: " +msgstr "크기: " + +msgid "Search more ISOs" +msgstr "추가 ISO 검색" + +msgid "Create Templates from Selected ISO" +msgstr "선택한 ISO로부터 템플리트 작성" + +msgid "I want to use a specific ISO file" +msgstr "특정 ISO 파일을 사용하려고 합니다." + +msgid "Loading default remote ISOs ..." +msgstr "기본 원격 ISO 로드 중..." + +msgid "Arch: " +msgstr "Arch: " + +msgid "I want to use a custom URL" +msgstr "사용자 정의 URL을 사용하려고 합니다." + +msgid "Edit Template" +msgstr "템플리트 편집" + +msgid "Processor" +msgstr "프로세서" + +msgid "CDROM" +msgstr "CDROM" + +msgid "Image File" +msgstr "" + +msgid "Graphics" +msgstr "그래픽" + +msgid "Disk(GB)" +msgstr "" + +msgid "Disk Format" +msgstr "" + +msgid "CPU Number" +msgstr "CPU 번호" + +msgid "Manually set CPU topology" +msgstr "" + +msgid "Cores" +msgstr "" + +msgid "Threads" +msgstr "" + +msgid "CPU" +msgstr "CPU" + +msgid "Disk I/O" +msgstr "디스크 I/O" + +msgid "Network I/O" +msgstr "네트워크 I/O" + +msgid "Livetile" +msgstr "라이브타일" + +msgid "No guests found." +msgstr "게스트가 없습니다." + +msgid "Shut down" +msgstr "시스템 종료" + +msgid "Restart" +msgstr "다시 시작" + +msgid "Basic Information" +msgstr "기본 정보" + +msgid "OS Distro" +msgstr "OS Distro" + +msgid "OS Code Name" +msgstr "OS 코드 이름" + +msgid "CPU(s)" +msgstr "" + +msgid "System Statistics" +msgstr "시스템 통계" + +msgid "Update Progress" +msgstr "진행상태 업데이트" + +msgid "Network Name" +msgstr "네트워크 이름" + +msgid "State" +msgstr "상태" + +msgid "Network Type" +msgstr "네트워크 유형" + +msgid "Address Space" +msgstr "주소 공간" + +msgid "Name should not contain '/' and '\"'." +msgstr "올바르지 않은 스토리지 풀 이름입니다. '/'를 포함하지 않아야 합니다." + +msgid "Isolated: no external network connection" +msgstr "격리됨: 물리적 네트워크 연결 없음" + +msgid "NAT: outbound physical network connection only" +msgstr "NAT: 아웃바운드 물리적 네트워크 연결만" + +msgid "Bridged: Virtual machines are connected to physical network directly" +msgstr "브릿지됨: 가상 머신이 물리적 네트워크에 직접 연결됨" + +msgid "(No interfaces found)" +msgstr "" + +msgid "Destination" +msgstr "대상:" + +msgid "Enable VLAN" +msgstr "VLAN 사용:" + +msgid "VLAN ID" +msgstr "VLAN ID:" + +msgid "Stop" +msgstr "중지" + +msgid "%Used" +msgstr "" + +msgid "Location" +msgstr "위치" + +msgid "Capacity" +msgstr "용량" + +msgid "Allocated" +msgstr "할당됨" + +msgid "active" +msgstr "활성" + +msgid "inactive" +msgstr "비활성" + +msgid "Deactivate" +msgstr "비활성화" + +msgid "Activate" +msgstr "활성화" + +msgid "Add Volume" +msgstr "" + +msgid "Extend" +msgstr "" + +msgid "Undefine" +msgstr "정의 취소" + +msgid "Format" +msgstr "포맷:" + +msgid "Allocation" +msgstr "할당:" + +msgid "No templates found." +msgstr "템플리트가 없습니다." diff --git a/po/pt_BR.po b/po/pt_BR.po new file mode 100644 index 0000000..ef16ab3 --- /dev/null +++ b/po/pt_BR.po @@ -0,0 +1,2370 @@ +# i18n portable object for kimchi. +# Copyright (C) IBM, Corp. 2013-2014 +# ShaoHe Feng <shaohef@linux.vnet.ibm.com>, 2013-04-18. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# +msgid "" +msgstr "" +"Project-Id-Version: kimchi 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-09 17:37-0300\n" +"PO-Revision-Date: 2015-03-23 12:57+0000\n" +"Last-Translator: Crístian Deives dos Santos Viana <cristiandeives@gmail." +"com>\n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/" +"kimchi/language/pt_BR/)\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#, python-format +msgid "Unknown parameter %(value)s" +msgstr "Parâmetro desconhecido: %(value)s" + +#, python-format +msgid "Delete is not allowed for %(resource)s" +msgstr "Método de remoção não é permitido em %(resource)s" + +#, python-format +msgid "%(resource)s does not implement update method" +msgstr "%(resource)s não implementa método de atualização" + +#, python-format +msgid "Create is not allowed for %(resource)s" +msgstr "Método de criação não é permitido em %(resource)s" + +msgid "Unable to parse JSON request" +msgstr "Não é possível realizar a leitura da requisição do JSON" + +msgid "This API only supports JSON" +msgstr "Essa API suporta apenas JSON" + +#, python-format +msgid "Parameters does not match requirement in schema: %(err)s" +msgstr "Parâmetros não correspondem à especificação do esquema: %(err)s" + +msgid "You don't have permission to perform this operation." +msgstr "Você não tem permissão para executar esta operação." + +msgid "Datastore is not initiated in the model object." +msgstr "Datastore não está inicializado no objeto modelo." + +#, python-format +msgid "Unable to start task due error: %(err)s" +msgstr "Não foi possível iniciar a tarefa devido a um erro: %(err)s" + +#, python-format +msgid "Timeout of %(seconds)s seconds expired while running task '%(task)s." +msgstr "" +"Limite de tempo de %(seconds)s segundos expirado ao executar a tarefa " +"'%(task)s'." + +#, python-format +msgid "Authentication failed for user '%(username)s'. [Error code: %(code)s]" +msgstr "" +"Autenticação falhou para o usuário '%(username)s'. [Código de erro: %(code)s]" + +msgid "You are not authorized to access Kimchi" +msgstr "Você não está autorizado para acessar o Kimchi" + +#, python-format +msgid "Specify %(item)s to login into Kimchi" +msgstr "Especifique %(item)s para autenticar no Kimchi" + +#, python-format +msgid "User %(user_id)s not found with given LDAP settings." +msgstr "Usuário %(user_id)s não encontrado com as configurações LDAP dadas." + +#, python-format +msgid "Invalid LDAP configuration: %(item)s : %(value)s" +msgstr "Configurações LDAP inválidas: %(item)s : %(value)s" + +msgid "Unknown \"_cap\" specified" +msgstr "\"_cap\" desconhecido especificado" + +msgid "\"_passthrough\" should be \"true\" or \"false\"" +msgstr "\"_passthrough\" deve ser \"true\" ou \"false\"" + +msgid "\"_passthrough_affected_by\" should be a device name string" +msgstr "\"_passthrough_affected_by\" deve ser um texto do nome do dispositivo" + +#, python-format +msgid "Error while getting block devices. Details: %(err)s" +msgstr "Erro ao consultar block devices. Detalhes %(err)s" + +#, python-format +msgid "Error while getting block device information for %(device)s." +msgstr "Erro ao consultar informações de block devices para %(device)s." + +#, python-format +msgid "Unable to find distro file: %(filename)s" +msgstr "Não foi possível encontrar o arquivo da distribuição: %(filename)s" + +#, python-format +msgid "" +"Unable to parse distro file: %(filename)s. Make sure, it is a JSON file." +msgstr "" +"Não foi possível ler o arquivo da distribuição: %(filename)s. Confirme se é " +"um arquivo JSON." + +#, python-format +msgid "Unable to login to iSCSI host target %(portal)s. Details: %(err)s" +msgstr "" +"Não foi possível logar na máquina alvo do iSCSI %(portal)s. Detalhes: %(err)s" + +#, python-format +msgid "Unable to login to iSCSI host %(host)s target %(target)s" +msgstr "Não foi possível logar na máquina %(host)s alvo %(target)s do iSCSI" + +#, python-format +msgid "Unable to find ISO file %(filename)s" +msgstr "Não foi possível encontrar a ISO %(filename)s" + +#, python-format +msgid "The ISO file %(filename)s is not bootable" +msgstr "A ISO %(filename)s não é bootável" + +#, python-format +msgid "The ISO file %(filename)s does not have a valid El Torito boot record" +msgstr "A ISO %(filename)s não possui uma gravação válida de boot El Torito" + +#, python-format +msgid "Invalid El Torito validation entry in ISO %(filename)s" +msgstr "Validação El Torito inválida na ISO %(filename)s" + +#, python-format +msgid "Invalid El Torito boot indicator in ISO %(filename)s" +msgstr "Indicador de boot El Torito inválido na ISO %(filename)s" + +#, python-format +msgid "Unexpected volume type for primary volume in ISO %(filename)s" +msgstr "" +"Tipo de volume não esperado para um volume primário na ISO %(filename)s" + +#, python-format +msgid "Bad format while reading volume descriptor in ISO %(filename)s" +msgstr "Formato errado na leitura do descritor de volume na ISO %(filename)s" + +#, python-format +msgid "" +"The hypervisor doesn't have permission to use this ISO %(filename)s. " +"Consider moving it under /var/lib/libvirt, or set the search permission to " +"file access control lists for '%(user)s' user if possible, or add the " +"'%(user)s' to the ISO path group, or (not recommended) 'chmod -R o+x " +"'path_to_iso'.Details: %(err)s" +msgstr "" +"O servidor não tem permissão para acessar a ISO %(filename)s. Considere mudá-" +"la para o diretório /var/lib/libvirt, ou mude as permissões para que o " +"usuário '%(user)s' tenha acesso, ou, adicione o usuário '%(user)s' no grupo " +"do caminho da ISO, ou (não recomendado) 'chmod -R o+x 'caminho_para_iso'. " +"Detalhes: %(err)s" + +msgid "An error occurred when probing image OS information." +msgstr "Ocorreu um erro ao identificar o sistema operacional da imagem." + +msgid "No OS information found in given image." +msgstr "" +"Nenhuma informação de sistema operacional encontrada na imagem fornecida." + +#, python-format +msgid "Unable to read image file %(filename)s" +msgstr "Não foi possível ler o arquivo de imagem %(filename)s." + +#, python-format +msgid "" +"Image file must be an existing file on system. %(filename)s is not a valid " +"input." +msgstr "" +"Arquivo de imagem deve ser um arquivo existente no sistema. %(filename)s não " +"é uma entrada válida." + +#, python-format +msgid "Virtual machine %(name)s already exists" +msgstr "Máquina virtual %(name)s já existe" + +#, python-format +msgid "Virtual machine %(name)s does not exist" +msgstr "Máquina virtual %(name)s não existe" + +#, python-format +msgid "" +"Unable to rename virtual machine %(name)s. The name %(new_name)s is already " +"in use or the virtual machine is not powered off." +msgstr "" +"Não foi possível renomear a máquina virtual %(name)s. O nome %(new_name)s já " +"está em uso ou a máquina virtual não está ligada." + +#, python-format +msgid "Unable to retrieve screenshot for stopped virtual machine %(name)s" +msgstr "" +"Não foi possível tirar uma foto da tela para a máquina virtual %(name)s que " +"está desligada" + +msgid "Remote ISO image is not supported by this server." +msgstr "Imagem de ISO remota não é suportada por esse servidor." + +#, python-format +msgid "Screenshot is not supported on virtual machine %(name)s" +msgstr "Foto da tela não é suportado na máquina virtual %(name)s" + +#, python-format +msgid "Unable to create virtual machine %(name)s. Details: %(err)s" +msgstr "Não foi possível criar a máquina virtual %(name)s. Detalhes: %(err)s" + +#, python-format +msgid "Unable to update virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Não foi possível atualizar a máquina virtual %(name)s. Detalhes: %(err)s" + +#, python-format +msgid "Unable to retrieve virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Não foi possível encontrar a máquina virtual %(name)s. Detalhes: %(err)s" + +#, python-format +msgid "Unable to connect to powered off virtual machine %(name)s." +msgstr "Não foi possível conectar à máquina virtual desligada %(name)s." + +msgid "Virtual machine name must be a string without slashes (/)" +msgstr "" + +#, python-format +msgid "Invalid template URI %(value)s specified for virtual machine" +msgstr "URI do Modelo inválida %(value)s especificada para máquina virtual" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for virtual machine" +msgstr "" +"URI do Storage pool URI inválida %(value)s especificada para máquina virtual" + +msgid "Supported virtual machine graphics are Spice or VNC" +msgstr "Gráficos suportados para a máquina virtual são Spice ou VNC" + +msgid "Graphics address to listen on must be IPv4 or IPv6" +msgstr "Endereço para receber eventos gráficos deve ser IPv4 ou IPv6" + +msgid "Specify a template to create a virtual machine from" +msgstr "Especifique um modelo para ser base da criação da máquina virtual" + +#, python-format +msgid "Unable to start virtual machine %(name)s. Details: %(err)s" +msgstr "Não foi possível iniciar a máquina virtual %(name)s. Detalhes: %(err)s" + +#, python-format +msgid "Unable to power off virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Não foi possível forçar o desligamento da máquina virtual %(name)s. " +"Detalhes: %(err)s" + +#, python-format +msgid "Unable to delete virtual machine %(name)s. Details: %(err)s" +msgstr "Não foi possível remover a máquina virtual %(name)s. Detalhes: %(err)s" + +#, python-format +msgid "Unable to reset virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Não foi possível reiniciar a máquina virtual %(name)s. Detalhes: %(err)s" + +msgid "User name list must be an array" +msgstr "Lista de nomes de usuário deve ser um array" + +msgid "User name must be a string" +msgstr "Nome de usuário deve ser um texto" + +msgid "Group name list must be an array" +msgstr "Lista de nomes de grupo deve ser um array" + +msgid "Group name must be a string" +msgstr "Nome de grupo deve ser um texto" + +#, python-format +msgid "User(s) '%(users)s' do not exist" +msgstr "Usuário(s) '%(users)s' não existe(m)" + +#, python-format +msgid "Group(s) '%(groups)s' do not exist" +msgstr "Grupo(s) '%(groups)s' não existe(m)" + +#, python-format +msgid "Unable to shutdown virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Não foi possível desligar a máquina virtual %(name)s. Detalhes: %(err)s" + +#, python-format +msgid "" +"Unable to get access metadata of virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Não foi possível acessar os metadados da máquina virtual %(name)s. Detalhes: " +"%(err)s" + +msgid "The guest console password must be a string." +msgstr "A senha para o console do guest deve ser um texto." + +msgid "The life time for the guest console password must be a number." +msgstr "O tempo de vida da senha do console do guest deve ser um número." + +#, python-format +msgid "Virtual machine '%(name)s' must be stopped before cloning it." +msgstr "A máquina virtual '%(name)s' deve estar parada antes de cloná-la." + +#, python-format +msgid "Insufficient disk space to clone virtual machine '%(name)s'" +msgstr "Espaço em disco insuficiente para clonar a máquina virtual '%(name)s'" + +#, python-format +msgid "Unable to clone VM '%(name)s'. Details: %(err)s" +msgstr "Não foi possível clonar a VM '%(name)s'. Detalhes: %(err)s" + +#, python-format +msgid "Invalid operation for non-persistent virtual machine %(name)s" +msgstr "Operação inválida para máquina virtual não-persistente %(name)s" + +#, python-format +msgid "Cannot suspend VM '%(name)s' because it is not running." +msgstr "" + +#, python-format +msgid "Unable to suspend VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Cannot resume VM '%(name)s' because it is not paused." +msgstr "" + +#, python-format +msgid "Unable to resume VM '%(name)s'. Details: %(err)s" +msgstr "" + +msgid "Memory assigned is higher then the maximum allowed in the host." +msgstr "" + +#, python-format +msgid "" +"VM '%(name)s' does not support live memory update. Update the memory with " +"the machine offline to enable this feature." +msgstr "" + +msgid "Only increase memory is allowed in active VMs" +msgstr "" + +msgid "" +"For live memory update, new memory value must be equal old memory value plus " +"multiples of 1024 Mib" +msgstr "" + +msgid "There are not enough free slots of 1024 Mib in the guest." +msgstr "" + +msgid "" +"Host's libvirt version does not support memory devices. Libvirt must be >= " +"1.2.14" +msgstr "" + +#, python-format +msgid "Error attaching memory device. Details: %(error)s" +msgstr "" + +#, python-format +msgid "" +"VM %(vmid)s does not contain directly assigned host device %(dev_name)s." +msgstr "" +"A VM %(vmid)s não contém o dispositivo de host atribuído diretamente " +"%(dev_name)s." + +#, python-format +msgid "The host device %(dev_name)s is not allowed to directly assign to VM." +msgstr "" +"Não é permitido atribuir diretamente o dispositivo de host %(dev_name)s." + +msgid "" +"No IOMMU groups found. Host PCI pass through needs IOMMU group to function " +"correctly. Please enable Intel VT-d or AMD IOMMU in your BIOS, then verify " +"the Kernel is compiled with IOMMU support. For Intel CPU, add intel_iommu=on " +"to your Kernel parameter in /boot/grub2/grub.conf. For AMD CPU, add iommu=pt " +"iommu=1." +msgstr "" +"Nenhum grupo IOMMU encontrado. Passthrough de host PCI necessita do grupo " +"IOMMU para funcionar corretamente. Por favor, habilite o suporte ao Intel VT-" +"d ou AMD IOMMU. Para uma CPU Intel, adicione \"intel_iommu=on\" nos seus " +"parâmetros de kernel em \"/boot/grub2/grub.conf\". Para uma CPU AMD, " +"adicione \"iommu=pt iommu=1\"." + +msgid "\"name\" should be a device name string" +msgstr "\"nome\" deve ser um texto do nome do dispositivo." + +#, python-format +msgid "Interface %(iface)s does not exist in virtual machine %(name)s" +msgstr "Interface %(iface)s não existe na máquina virtual %(name)s" + +#, python-format +msgid "" +"Network %(network)s specified for virtual machine %(name)s does not exist" +msgstr "" +"Rede %(network)s especificada para a máquina virtual %(name)s não existe" + +msgid "Supported virtual machine interfaces type is only network" +msgstr "Tipo de interface suportado das máquinas virtuais é somente rede" + +msgid "Network name for virtual machine interface must be a string" +msgstr "Nome da rede para a interface da máquina virtual deve ser texto" + +msgid "Invalid network model card specified for virtual machine interface" +msgstr "Modelo de placa de rede inválido para a interface da máquina virtual" + +msgid "Specify type and network to add a new virtual machine interface" +msgstr "" +"Especifique o tipo e a rede para adicionar uma nova interface da máquina " +"virtual" + +msgid "MAC Address must respect this format FF:FF:FF:FF:FF:FF" +msgstr "" + +#, python-format +msgid "MAC Address %(mac)s already exists in virtual machine %(name)s" +msgstr "" + +msgid "Invalid MAC Address" +msgstr "" + +msgid "Cannot change MAC address of a running virtual machine" +msgstr "" + +#, python-format +msgid "Template %(name)s already exists" +msgstr "Modelo %(name)s já existe" + +#, python-format +msgid "" +"Network '%(network)s' specified for template %(template)s does not exist" +msgstr "Rede '%(network)s' especificada para o modelo %(template)s não existe" + +#, python-format +msgid "" +"Storage pool %(pool)s specified for template %(template)s does not exist" +msgstr "" +"Storage pool %(pool)s especificado para o modelo %(template)s não existe" + +#, python-format +msgid "Storage pool %(pool)s specified for template %(template)s is not active" +msgstr "" +"Storage pool %(pool)s especificado para o modelo %(template)s não está ativo" + +#, python-format +msgid "Invalid parameter '%(param)s' specified for CDROM." +msgstr "Parâmetro inválido '%(param)s' especificado para CDROM" + +#, python-format +msgid "Network %(network)s specified for template %(template)s is not active" +msgstr "Rede %(network)s especificada para modelo %(template)s não está ativa" + +msgid "Template name must be a string" +msgstr "Nome do modelo deve ser um texto" + +msgid "Template icon must be a path to the image" +msgstr "Ícone do modelo deve ser um caminho para uma imagem" + +msgid "Template distribution must be a string" +msgstr "Distribuição do modelo deve ser um texto" + +msgid "Template distribution version must be a string" +msgstr "Versão da distribuição do modelo deve ser um texto" + +msgid "The number of CPUs must be an integer greater than 0" +msgstr "O número de CPUs deve ser um inteiro maior do que 0" + +msgid "Amount of memory (MB) must be an integer greater than 512" +msgstr "Quantidade de memória (MB) deve ser um inteiro maior que 512" + +msgid "Template CDROM must be a local or remote ISO file" +msgstr "Modelo do CDROM deve ser um arquivo ISO local ou remoto" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for template" +msgstr "URI de storage pool inválido %(value)s especificado para modelo" + +msgid "Specify an ISO image as CDROM or a base image to create a template" +msgstr "" +"Especifique uma imagem ISO como CD-ROM ou uma imagem base para criar um " +"modelo" + +msgid "All networks for the template must be specified in a list." +msgstr "Todas redes para o modelo devem ser especificadas em uma lista" + +msgid "Specify a volume to a template when storage pool is iSCSI or SCSI" +msgstr "" +"Especifique um volume para o template quando o storage pool for iSCSI or SCSI" + +#, python-format +msgid "The volume %(volume)s is not in storage pool %(pool)s" +msgstr "O volume %(volume)s não está no storage pool %(pool)s" + +#, python-format +msgid "Unable to create template due error: %(err)s" +msgstr "Não foi possível criar o modelo devido a um erro: %(err)s" + +#, python-format +msgid "Unable to delete template due error: %(err)s" +msgstr "Não foi possível remover o modelo devido a um erro: %(err)s" + +msgid "Disk size must be an integer greater than 1GB." +msgstr "O tamanho do disco deve ser um número inteiro maior que 1GB." + +msgid "Template base image must be a valid local image file" +msgstr "Imagem base do modelo deve ser um arquivo de imagem local válido" + +#, python-format +msgid "Cannot identify base image %(path)s format" +msgstr "Não foi possível identificar o formato da imagem base %(path)s" + +msgid "" +"When specifying CPU topology, VCPUs must be a product of sockets, cores, and " +"threads." +msgstr "" +"Ao especificar a topologia de CPU, VCPUs deve ser um produto de sockets, " +"cores e threads." + +msgid "" +"When specifying CPU topology, each element must be an integer greater than " +"zero." +msgstr "" +"Ao especificar a topologia de CPU, cada elemento deve ser um número inteiro " +"maior do que zero." + +msgid "" +"Invalid disk image format. Valid formats: bochs, cloop, cow, dmg, qcow, " +"qcow2, qed, raw, vmdk, vpc." +msgstr "" +"Formato de imagem de disco inválido. Formatos válidos: bochs, cloop, cow, " +"dmg, qcow, qcow2, qed, raw, vmdk, vpc." + +#, python-format +msgid "Storage pool %(name)s already exists" +msgstr "Storage pool %(name)s já existe" + +#, python-format +msgid "Storage pool %(name)s does not exist" +msgstr "Storage pool %(name)s não existe" + +#, python-format +msgid "Specify %(item)s in order to create the storage pool %(name)s" +msgstr "Especifique %(item)s para criar o storage pool %(name)s" + +#, python-format +msgid "Unable to delete active storage pool %(name)s" +msgstr "Não foi possível remover o storage pool ativo %(name)s" + +#, python-format +msgid "Unable to list storage pools. Details: %(err)s" +msgstr "Não foi possível listar os storage pools. Detalhes: %(err)s" + +#, python-format +msgid "Unable to create storage pool %(name)s. Details: %(err)s" +msgstr "Não foi possível criar o storage pool %(name)s. Detalhes: %(err)s" + +#, python-format +msgid "" +"Unable to get number of storage volumes in storage pool %(name)s. Details: " +"%(err)s" +msgstr "" +"Não foi possível saber o número de volumes no storage pool %(name)s. " +"Detalhes: %(err)s" + +#, python-format +msgid "Unable to activate storage pool %(name)s. Details: %(err)s" +msgstr "Não foi possivel ativar o storage pool %(name)s. Detalhes: %(err)s" + +#, python-format +msgid "Unable to deactivate storage pool %(name)s. Details: %(err)s" +msgstr "Não foi possivel desativar o storage pool %(name)s. Detalhes: %(err)s" + +#, python-format +msgid "Unable to delete storage pool %(name)s. Details: %(err)s" +msgstr "Não foi possivel remover o storage pool %(name)s. Detalhes: %(err)s" + +#, python-format +msgid "" +"Unable to create NFS Pool as export path %(path)s may block during mount" +msgstr "" +"Não foi possível criar Pool NFS uma vez que o caminho de exportação %(path)s " +"pode bloquear durante a montagem" + +#, python-format +msgid "Unable to create NFS Pool as export path %(path)s mount failed" +msgstr "" +"Não foi possível criar NFS Pool uma vez que a montagem do caminho de " +"exportação %(path)s falhou" + +#, python-format +msgid "Unsupported storage pool type: %(type)s" +msgstr "Tipo de storage pool não suportado: %(type)s" + +#, python-format +msgid "Error while retrieving storage pool XML to %(pool)s" +msgstr "Erro durante a leitura do XML do storage pool %(pool)s" + +msgid "Storage pool name must be a string without slashes (/)" +msgstr "" + +msgid "" +"Supported storage pool types are dir, netfs, logical, iscsi, isci and kimchi-" +"iso" +msgstr "" +"Tipos de storage pool supportados são dir, netfs, logical, iscsi, scsi e " +"kimchi-iso" + +msgid "Storage pool path must be a string" +msgstr "Caminho para storage pool deve ser um texto" + +msgid "Storage pool host must be a IP or hostname" +msgstr "Host do storage pool deve ser um IP ou um hostname" + +msgid "Storage pool device must be the absolute path to the block device" +msgstr "" +"Dispositivo do storage pool deve ser o caminho absoluto para o block device" + +msgid "Storage pool devices parameter must be a list" +msgstr "Parâmetro dos dispositivos do storage pool devem ser uma lista" + +msgid "Target IQN of an iSCSI pool must be a string" +msgstr "Alvo IQN de um pool iSCSI deve ser um texto" + +msgid "Port of a remote storage server must be an integer between 1 and 65535" +msgstr "" +"Porta de um servidor remoto de storage deve ser um inteiro entre 1 e 65535" + +msgid "iSCSI target username must be a string" +msgstr "Usuário do iSCSI target deve ser um texto" + +msgid "iSCSI target password must be a string" +msgstr "Senha do iSCSI target deve ser um texto" + +msgid "Specify name and type to create a storage pool" +msgstr "Especifique o nome e o tipo para criar um storage pool" + +#, python-format +msgid "" +"%(disk)s is not a valid disk/partition. Could not add it to the pool " +"%(pool)s." +msgstr "" +"%(disk)s não é um disco/partição válido. Não foi possível adicioná-lo ao " +"pool %(pool)s." + +#, python-format +msgid "Unable to extend logical pool %(pool)s. Details: %(err)s" +msgstr "Não foi possível extender o pool lógico %(pool)s. Detalhes: %(err)s" + +msgid "The parameter disks only can be updated for logical storage pool." +msgstr "" +"O parâmetro discos somente pode ser atualizado para storage pool lógicos." + +msgid "The SCSI host adapter name must be a string." +msgstr "O nome do adaptador SCSI host deve ser um texto" + +msgid "The storage pool kimchi_isos is reserved for internal use" +msgstr "O storage pool kimchi_isos é reservado para uso interno" + +#, python-format +msgid "" +"Unable to activate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"Não foi possível ativar o storage pool NFS %(name)s. Servidor NFS %(server)s " +"está inacessível." + +#, python-format +msgid "" +"Unable to deactivate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"Não foi possível desativar o storage pool NFS %(name)s. Servidor NFS " +"%(server)s está inacessível." + +#, python-format +msgid "" +"Unable to deactivate pool %(name)s as it is associated with some templates" +msgstr "" +"Não foi possível desativar o pool %(name)s uma vez que ele está associado " +"com algum dos modelos" + +#, python-format +msgid "Unable to delete pool %(name)s as it is associated with some templates" +msgstr "" +"Não foi possível remover o pool %(name)s uma vez que ele está associado com " +"algum dos modelos" + +#, python-format +msgid "" +"A volume group named '%(name)s' already exists. Please, choose another name " +"to create the logical pool." +msgstr "" +"Um grupo de volume chamado '%(name)s' já existe. Por favor, escolha outro " +"nome para criar o pool lógico." + +#, python-format +msgid "Unable to update database with deep scan information due error: %(err)s" +msgstr "" +"Não foi possível atualizar a base de dados com informações de mais ISOs " +"devido a um erro: %(err)s" + +#, python-format +msgid "Storage volume %(name)s already exists" +msgstr "Volume de storage %(name)s já existe" + +#, python-format +msgid "Storage volume %(name)s does not exist in storage pool %(pool)s" +msgstr "Volume de storage %(name)s não existe no storage pool %(pool)s" + +#, python-format +msgid "" +"Unable to create storage volume %(volume)s because storage pool %(pool)s is " +"not active" +msgstr "" +"Não foi possível criar o storaget volume %(volume)s pois o storage pool " +"%(pool)s não está ativo" + +#, python-format +msgid "Specify %(item)s in order to create storage volume %(volume)s" +msgstr "Especifique %(item)s para poder criar o volume %(volume)s" + +#, python-format +msgid "" +"Unable to list storage volumes because storage pool %(pool)s is not active" +msgstr "" +"Não foi possível listar volumes pois o storage pool %(pool)s não está ativo" + +#, python-format +msgid "" +"Unable to create storage volume %(name)s in storage pool %(pool)s. Details: " +"%(err)s" +msgstr "" +"Não foi possível criar o volume %(name)s no storage pool %(pool)s. Detalhes: " +"%(err)s" + +#, python-format +msgid "" +"Unable to list storage volumes in storage pool %(pool)s. Details: %(err)s" +msgstr "" +"Não foi possível listar os volumes do storage pool %(pool)s. Detalhes: " +"%(err)s" + +#, python-format +msgid "Unable to wipe storage volumes %(name)s. Details: %(err)s" +msgstr "Não foi possível limpar o volume %(name)s. Detalhes: %(err)s" + +#, python-format +msgid "Unable to delete storage volume %(name)s. Details: %(err)s" +msgstr "Não foi possível remover o volume %(name)s. Detalhes: %(err)s" + +#, python-format +msgid "Unable to resize storage volume %(name)s. Details: %(err)s" +msgstr "Não foi possível redimensionar o volume %(name)s. Detalhes: %(err)s" + +#, python-format +msgid "Storage type %(type)s does not support volume create and delete" +msgstr "Storage do tipo %(type)s não suporta criação ou remoção de volume" + +msgid "Storage volume name must be a string" +msgstr "Nome do volume deve ser um texto" + +msgid "Storage volume allocation must be an integer number" +msgstr "Alocação do volume de storage deve ser um número inteiro" + +msgid "" +"Storage volume format not supported. Valid formats: bochs, cloop, cow, dmg, " +"qcow, qcow2, qed, raw, vmdk, vpc." +msgstr "" +"Formato de volume de storage inválido. Formatos válidos: bochs, cloop, cow, " +"dmg, qcow, qcow2, qed, raw, vmdk, vpc." + +msgid "Storage volume requires a volume name" +msgstr "Volume de storage requer um nome" + +#, python-format +msgid "" +"Unable to update database with storage volume information due error: %(err)s" +msgstr "" +"Não foi possível atualizar a base de dados com informações de volume de " +"storage devido a um erro: %(err)s" + +#, python-format +msgid "Only one of parameter %(param)s can be specified" +msgstr "Somente um parâmetro %(param)s pode ser especificado" + +#, python-format +msgid "Create volume from %(param)s is not supported" +msgstr "Criar um volume a partir de %(param)s não é suportado" + +msgid "Storage volume capacity must be an integer number." +msgstr "A capacidade do storage volume deve ser um número inteiro." + +msgid "Storage volume URL must be http://, https://, ftp:// or ftps://." +msgstr "" +"URL para o storage volume deve ser http://, https://, ftp:// ou ftps://." + +#, python-format +msgid "Unable to access file %(url)s. Please, check it." +msgstr "Erro ao acessar arquivo %(url)s. Por favor, verifique isso." + +#, python-format +msgid "" +"Unable to clone storage volume '%(name)s' in pool '%(pool)s'. Details: " +"%(err)s" +msgstr "" +"Não foi possível clonar o volume de storage '%(name)s' no pool '%(pool)s'. " +"Detalhes: %(err)s" + +msgid "Specify chunk data and its size to upload a file." +msgstr "" + +msgid "In order to upload a storage volume, specify the 'upload' parameter." +msgstr "" + +msgid "" +"Unable to upload chunk data as it does not match with requested chunk size." +msgstr "" + +#, python-format +msgid "The storage volume %(vol)s is not under an upload process." +msgstr "" + +msgid "The upload chunk data will exceed the storage volume size." +msgstr "" + +#, python-format +msgid "Unable to upload chunk data to storage volume. Details: %(err)s." +msgstr "" + +#, python-format +msgid "Interface %(name)s does not exist" +msgstr "Interface %(name)s não existe" + +#, python-format +msgid "Network %(name)s already exists" +msgstr "Rede %(name)s já existe" + +#, python-format +msgid "Network %(name)s does not exist" +msgstr "Rede %(name)s não existe" + +#, python-format +msgid "Subnet %(subnet)s specified for network %(network)s is not valid." +msgstr "" +"A subrede %(subnet)s especificada para a rede %(network)s não é válida." + +#, python-format +msgid "Specify a network interface to create bridged network %(name)s" +msgstr "Especifique uma interface de rede para criar a rede de bridge %(name)s" + +#, python-format +msgid "Unable to delete active network %(name)s" +msgstr "Não foi possível remover a rede ativa %(name)s" + +#, python-format +msgid "Interface %(iface)s specified for network %(network)s is already in use" +msgstr "" +"A interface %(iface)s especificada para a rede %(network)s já está em uso" + +msgid "Interface should be bare NIC, bonding or bridge device." +msgstr "Interface deve ser 'bare NIC', 'bonding' ou 'dispositivo de bridge'." + +#, python-format +msgid "Unable to create network %(name)s. Details: %(err)s" +msgstr "Não foi possível criar a rede %(name)s. Detalhes: %(err)s" + +#, python-format +msgid "Unable to find a free IP address for network '%(name)s'" +msgstr "Não foi possível encontrar um endereço IP livre para a rede '%(name)s'" + +#, python-format +msgid "The interface %(iface)s already exists." +msgstr "A interface %(iface)s já existe" + +msgid "Network name must be a string without slashes (/) or quotes (\")" +msgstr "" + +msgid "Supported network types are isolated, NAT and bridge" +msgstr "Tipos de rede suportados são isolada, NAT e bridge" + +msgid "Network subnet must be a string with IP address and prefix or netmask" +msgstr "" +"Subrede deve ser um texto com endereço IP e prefixo, ou máscara de rede" + +msgid "Network interface must be a string" +msgstr "Interface de rede deve ser um texto" + +msgid "Network VLAN ID must be an integer between 1 and 4094" +msgstr "ID da rede VLAN deve ser um inteiro entre 1 e 4094" + +msgid "Specify name and type to create a Network" +msgstr "Especifique o nome e o tipo para criar uma rede" + +#, python-format +msgid "" +"Unable to delete network %(name)s. There are some virtual machines %(vms)s " +"and/or templates linked to this network." +msgstr "" +"Não foi possível desativar a rede %(name)s. Há alguma máquina virtual " +"%(vms)s e/ou modelo associados a esta rede." + +#, python-format +msgid "" +"Unable to deactivate network %(name)s. There are some virtual machines " +"%(vms)s and/or templates linked to this network." +msgstr "" +"Não foi possível desativar a rede %(name)s. Há alguma máquina virtual " +"%(vms)s e/ou modelo associados a esta rede." + +#, python-format +msgid "Bridge device %(name)s can not be the trunk device of a VLAN." +msgstr "" +"Dispositivo da bridge %(name)s não pode ser um dispositivo vinculado a uma " +"VLAN." + +#, python-format +msgid "Failed to activate interface %(iface)s: %(err)s." +msgstr "Não foi possível ativar a interface %(iface)s: %(err)s." + +#, python-format +msgid "" +"Failed to activate interface %(iface)s. Please check the physical link " +"status." +msgstr "" +"Não foi possível ativar a interface %(iface)s. Por favor, verifique o status " +"da conexão física." + +#, python-format +msgid "Failed to start network %(name)s. Details: %(err)s" +msgstr "Não foi possível iniciar a rede %(name)s. Detalhes: %(err)s" + +#, python-format +msgid "Debug report %(name)s does not exist" +msgstr "Relatório de debug %(name)s não existe" + +msgid "Debug report tool not found in system" +msgstr "Ferramenta de relatório de debug não encontrada no sistema" + +#, python-format +msgid "Unable to create debug report %(name)s. Details: %(err)s." +msgstr "" +"Não foi possível criar o relatório de debug %(name)s. Detalhes: %(err)s." + +#, python-format +msgid "Can not find any debug report with the given name %(name)s" +msgstr "Não foi possível encontrar nenhum relatório com o nome %(name)s" + +#, python-format +msgid "Unable to generate debug report %(name)s. Details: %(err)s" +msgstr "" +"Não foi possível gerar o relatório de debug %(name)s. Detalhes: %(err)s" + +msgid "You should give a name for the debug report file." +msgstr "Você deve dar um nome para o arquivo do relatório de debug." + +msgid "" +"Debug report name must be a string. Only letters, digits, underscore ('_') " +"and hyphen ('-') are allowed." +msgstr "" +"Nome do relatório deve ser um texto. Somente letras, digitos, underscore " +"('_') e hífem ('-') são permitidos." + +#, python-format +msgid "" +"The debug report with specified name \"%(name)s\" already exists. Please use " +"another one." +msgstr "" +"O relatório de debug com o nome especificado \"%(name)s\" já existe. Por " +"favor, use outro nome." + +#, python-format +msgid "Storage server %(server)s was not used by Kimchi" +msgstr "Servidor de storage %(server)s não foi usado pelo Kimchi" + +#, python-format +msgid "Distro '%(name)s' does not exist" +msgstr "Distribuição '%(name)s' não existe" + +#, python-format +msgid "Partition %(name)s does not exist in the host" +msgstr "Partição %(name)s não existe no host" + +msgid "Unable to shutdown host machine as there are running virtual machines" +msgstr "" +"Não foi possível desligar o host uma vez que há máquinas virtuais ligadas" + +msgid "Unable to reboot host machine as there are running virtual machines" +msgstr "" +"Não foi possível resetar o host uma vez que há máquinas virtuais ligadas" + +#, python-format +msgid "Node device '%(name)s' not found" +msgstr "Dispositivo de nó '%(name)s' não encontrado" + +msgid "Conflicting flag filters specified." +msgstr "Foram especificados filtros de flag com conflito." + +msgid "No packages marked for update" +msgstr "Nenhum pacote marcado para atualização" + +#, python-format +msgid "Package %(name)s is not marked to be updated." +msgstr "Pacote %(name)s não está marcado para atualização." + +#, python-format +msgid "Error while getting packages marked to be updated. Details: %(err)s" +msgstr "Erro ao buscar pacotes marcados para atualização. Detalhes: %(err)s" + +msgid "There is no compatible package manager for this system." +msgstr "Não há gerenciador de pacotes compatível para este sistema." + +#, python-format +msgid "Unable to find %(item)s in datastore" +msgstr "Não foi possível encontrar %(item)s no datastore" + +#, python-format +msgid "Invalid URI %(uri)s" +msgstr "URI %(uri)s inválida" + +#, python-format +msgid "Timeout while running command '%(cmd)s' after %(seconds)s seconds" +msgstr "" +"Fim do limite de tempo ao rodar comando '%(cmd)s' após %(seconds)s segundos" + +msgid "Unable to choose a virtual machine name" +msgstr "Não foi possível escolher um nome para a máquina virtual" + +#, python-format +msgid "Invalid data value '%(value)s'" +msgstr "Valor inválido '%(value)s'" + +#, python-format +msgid "Invalid data unit '%(unit)s'" +msgstr "Unidade inválida '%(unit)s'" + +msgid "Invalid storage type. Types supported: 'cdrom', 'disk'" +msgstr "Tipo de storage inválido. Tipos suportados: 'cdrom', 'disco'" + +#, python-format +msgid "The path '%(value)s' is not a valid local/remote path for the device" +msgstr "" +"O caminho '%(value)s' não é um caminho local/remoto válido para este " +"dispositivo" + +msgid "Only CDROM path can be update." +msgstr "Apenas o caminho do CD-ROM pode ser atualizado." + +#, python-format +msgid "" +"The storage device %(dev_name)s does not exist in the virtual machine " +"%(vm_name)s" +msgstr "O disco %(dev_name)s não existe na máquina virtual %(vm_name)s" + +#, python-format +msgid "Error while creating new storage device: %(error)s" +msgstr "Erro ao criar novo dispositivo de storage: %(error)s" + +#, python-format +msgid "Error while updating storage device: %(error)s" +msgstr "Erro ao atualizar dispositivo de storage: %(error)s" + +#, python-format +msgid "Error while removing storage device: %(error)s" +msgstr "Erro ao remover dispositivo de storage: %(error)s" + +msgid "Do not support IDE device hot plug" +msgstr "Dispositivo IDE hot plug não é suportado" + +msgid "" +"Specify type and path or type and pool/volume to add a new virtual machine " +"disk" +msgstr "" +"Especifique o tipo e o caminho, ou o tipo e o pool/volume, para adicionar um " +"novo disco da máquina virtual" + +msgid "Specify path to update virtual machine disk" +msgstr "Especifique o caminho para atualizar o disco da máquina virtual" + +#, python-format +msgid "Controller type %(type)s limitation of %(limit)s devices reached" +msgstr "" +"Limitação do tipo do controlador %(type)s de %(limit)s dispositivos foi " +"alcançada" + +#, python-format +msgid "Cannot retrieve disk path information for given pool/volume: %(error)s" +msgstr "" +"Não foi possível buscar informações do caminho do disco para o pool/volume " +"dado: %(error)s" + +msgid "Volume already in use by other virtual machine." +msgstr "Volume já em uso por outra máquina virtual." + +msgid "" +"Only one of path or pool/volume can be specified to add a new virtual " +"machine disk" +msgstr "" +"Somente um caminho ou pool/volume pode ser especificado para adicionar um " +"novo disco da máquina virtual." + +#, python-format +msgid "" +"Volume chosen with format %(format)s does not fit in the storage type " +"%(type)s" +msgstr "" +"Volume escolhido com formato %(format)s não se enquadra no tipo de storage " +"%(type)s" + +msgid "YUM Repository ID must be one word only string." +msgstr "ID do repositório YUM deve ser apenas uma palavra." + +msgid "Repository URL must be an http://, ftp:// or file:// URL." +msgstr "URL do repositório deve ser uma URL http://, ftp:// ou file://." + +msgid "" +"Repository configuration is a dictionary with specific values according to " +"repository type." +msgstr "" +"Configuração do repositório é um dicionário com valores específicos de " +"acordo com o tipo do repositório." + +msgid "Distribution to DEB repository must be a string" +msgstr "Distribuição para o repositório DEB deve ser um texto" + +msgid "Components to DEB repository must be listed in a array" +msgstr "Componentes para o repositório DEB deve ser um array" + +msgid "Components to DEB repository must be a string" +msgstr "Componentes para o repositório DEB deve ser um texto" + +msgid "Mirror list to repository must be a string" +msgstr "" + +msgid "YUM Repository name must be string." +msgstr "Nome do repositório YUM deve ser um texto." + +msgid "GPG check must be a boolean value." +msgstr "Verificação de GPG deve ser um valor booleano." + +msgid "GPG key must be a URL pointing to the ASCII-armored file." +msgstr "" +"Chave GPG deve ser uma URL apontando para o arquivo no formato ASCII-armor." + +#, python-format +msgid "Could not update repository %(repo_id)s." +msgstr "Não foi possível atualizar o repositório %(repo_id)s." + +#, python-format +msgid "Repository %(repo_id)s does not exist." +msgstr "Repositório %(repo_id)s não existe." + +msgid "" +"Specify repository base URL, mirror list or metalink in order to create or " +"update a YUM repository." +msgstr "" + +msgid "Repository management tool was not recognized for your system." +msgstr "" +"Ferramenta de gerenciamento de repositório não foi reconhecida no seu " +"sistema." + +#, python-format +msgid "Repository %(repo_id)s is already enabled." +msgstr "Repositório %(repo_id)s já está habilitado." + +#, python-format +msgid "Repository %(repo_id)s is already disabled." +msgstr "Repositório %(repo_id)s já está desabilitado." + +#, python-format +msgid "Could not remove repository %(repo_id)s." +msgstr "Não foi possível remover o repositório %(repo_id)s." + +#, python-format +msgid "Could not write repository configuration file %(repo_file)s" +msgstr "" +"Não foi possível gravar o arquivo de configuração do repositório " +"%(repo_file)s" + +msgid "Specify repository distribution in order to create a DEB repository." +msgstr "" +"Especificar o repositório de distribuição para poder criar o repositório DEB." + +#, python-format +msgid "Could not enable repository %(repo_id)s." +msgstr "Não foi possível habilitar o repositório %(repo_id)s." + +#, python-format +msgid "Could not disable repository %(repo_id)s." +msgstr "Não foi possível desabilitar o repositório %(repo_id)s." + +msgid "YUM Repository ID already exists" +msgstr "ID do repositório YUM já existe" + +msgid "YUM Repository name must be a string" +msgstr "Nome do repositório YUM deve ser um texto" + +#, python-format +msgid "Unable to list repositories. Details: '%(err)s'" +msgstr "Não é possível listar os repositórios. Detalhes: '%(err)s'" + +#, python-format +msgid "Unable to retrieve repository information. Details: '%(err)s'" +msgstr "" +"Não foi possível carregar as informações do repositório. Detalhes: '%(err)s'" + +#, python-format +msgid "Unable to add repository. Details: '%(err)s'" +msgstr "Não foi possível adicionar o repositório. Detalhes: '%(err)s'" + +#, python-format +msgid "Unable to remove repository. Details: '%(err)s'" +msgstr "Não foi possível remover o repositório. Detalhes: '%(err)s'" + +#, python-format +msgid "" +"Configuration items: '%(items)s' are not supported by repository manager" +msgstr "" +"Itens de configuração '%(items)s' não são suportados pelo gerenciador de " +"repositórios." + +msgid "Repository metalink must be an http://, ftp:// or file:// URL." +msgstr "" + +msgid "Cannot specify mirrorlist and metalink at the same time." +msgstr "" + +#, python-format +msgid "" +"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it." +msgstr "" +"A máquina virtual '%(vm)s' deve estar parada antes de criar um snapshot dela" + +#, python-format +msgid "" +"Unable to create snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" +"Não foi possível criar o snapshot '%(name)s' na máquina virtual '%(vm)s'. " +"Detalhes: %(err)s" + +#, python-format +msgid "Snapshot '%(name)s' does not exist on virtual machine '%(vm)s'." +msgstr "O snapshot '%(name)s' não existe na máquina virtual '%(vm)s'." + +#, python-format +msgid "" +"Unable to retrieve snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" +"Não foi possível recuperar o snapshot '%(name)s' da máquina virtual " +"'%(vm)s'. Detalhes: %(err)s" + +#, python-format +msgid "Unable to list snapshots on virtual machine '%(vm)s'. Details: %(err)s" +msgstr "" +"Não foi possível listar os snapshots da máquina virtual '%(vm)s'. Detalhes: " +"%(err)s" + +#, python-format +msgid "" +"Unable to delete snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" +"Não foi possível remover o snapshot '%(name)s' da máquina virtual '%(vm)s'. " +"Detalhes: %(err)s" + +#, python-format +msgid "" +"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" +"Não foi possível recuperar o snapshot atual da máquina virtual '%(vm)s'. " +"Detalhes: %(err)s." + +#, python-format +msgid "" +"Unable to revert virtual machine '%(vm)s' to snapshot '%(name)s'. Details: " +"%(err)s" +msgstr "" +"Não foi possível reverter a máquina virtual '%(vm)s' para o snapshot " +"'%(name)s'. Detalhes: %(err)s" + +#, python-format +msgid "" +"Unable to create snapshot of virtual machine '%(vm)s' because it contains a " +"disk with format '%(format)s'; only 'qcow2' is supported." +msgstr "" +"Não foi possível criar o snapshot para a máquina virtual '%(vm)s' porque ela " +"contém discos no formato '%(format)s'; somente 'qcow2' é suportado." + +msgid "The number of vCPUs is too large for this system." +msgstr "O número de VCPUs é grande demais para esse sistema." + +msgid "Invalid vCPU/topology combination." +msgstr "Combinação inválida de VCPU/topologia." + +msgid "This host (or current configuration) does not allow CPU topology." +msgstr "Este host (ou configuração atual) não permite topologia de CPU." + +msgid "ERROR CODE" +msgstr "CÓDIGO DE ERRO" + +msgid "REASON" +msgstr "MOTIVO" + +msgid "STACK" +msgstr "PILHA" + +msgid "Go to Homepage" +msgstr "Ir para a Página Inicial" + +msgid "Create a New Virtual Machine" +msgstr "Criar nova Máquina Virtual" + +msgid "Virtual Machine Name" +msgstr "Nome da Máquina Virtual" + +msgid "" +"The name used to identify the virtual machine. If omitted, a name will be " +"chosen based on the template used." +msgstr "" +"O nome usado para identificar a máquina virtual. Se ele for omitido, a " +"escolha será baseada no modelo selecionado." + +msgid "Template" +msgstr "Modelo" + +msgid "Please create a template first." +msgstr "Por favor, crie um modelo primeiro." + +msgid "Create a Template" +msgstr "Criar um Modelo" + +msgid "Please choose a template." +msgstr "Por favor, escolha um modelo." + +msgid "OS" +msgstr "Sistema Operacional" + +msgid "OS Version" +msgstr "Versão do Sistema Speracional" + +msgid "CPUS" +msgstr "CPUS" + +msgid "Memory" +msgstr "Memória" + +msgid "Create" +msgstr "Criar" + +msgid "Creating..." +msgstr "Criando..." + +msgid "Edit Guest" +msgstr "Editar Guest" + +msgid "General" +msgstr "Geral" + +msgid "Storage" +msgstr "Storage" + +msgid "Interface" +msgstr "Interface" + +msgid "Permission" +msgstr "Permissão" + +msgid "Host PCI Device" +msgstr "Dispositivo de host PCI" + +msgid "Snapshot" +msgstr "Snapshot" + +msgid "Name" +msgstr "Nome" + +msgid "CPUs" +msgstr "CPUs" + +msgid "Memory (MB)" +msgstr "Memória (MB)" + +msgid "Icon" +msgstr "Ícone" + +msgid "Device" +msgstr "Dispositivo" + +msgid "Path" +msgstr "Caminho" + +msgid "Network" +msgstr "Rede" + +msgid "Type" +msgstr "Tipo" + +msgid "MAC Address" +msgstr "" + +msgid "Available system users and groups" +msgstr "Usuários e grupos de sistema disponíveis" + +msgid "Selected system users and groups" +msgstr "Usuários e grupos de sistema selecionados" + +msgid "User" +msgstr "Usuário" + +msgid "All" +msgstr "Todos" + +msgid "To Add" +msgstr "Para adicionar" + +msgid "Added" +msgstr "Adicionado" + +msgid "filter" +msgstr "filtro" + +msgid "Product" +msgstr "Produto" + +msgid "Vendor" +msgstr "Vendor" + +msgid "Created" +msgstr "Criado" + +msgid "Save" +msgstr "Salvar" + +msgid "Replace" +msgstr "Substituir" + +msgid "Detach" +msgstr "Remover" + +msgid "Cancel" +msgstr "Cancelar" + +msgid "revert" +msgstr "Reverter" + +msgid "Add a Storage Device to VM" +msgstr "Adicionar um dispositivo de storage à VM" + +msgid "Device Type" +msgstr "Tipo do Dispositivo" + +msgid "The device type. Currently, \"cdrom\" and \"disk\" are supported." +msgstr "" +"O tipo do dispositivo. Atualmente, \"cdrom\" e \"disco\" são suportados." + +msgid "Storage Pool" +msgstr "Storage Pool" + +msgid "Storage pool which volume located in" +msgstr "Storage pool no qual o volume está localizado" + +msgid "Storage Volume" +msgstr "Volume de storage" + +msgid "Storage volume to be attached" +msgstr "Volume de storage a ser adicionado" + +msgid "File Path" +msgstr "Caminho do Arquivo" + +msgid "The ISO file path in the server for CDROM." +msgstr "O caminho do arquivo ISO para o CDROM no servidor." + +msgid "Attach" +msgstr "Adicionar" + +msgid "Start" +msgstr "Iniciar" + +msgid "Reset" +msgstr "Reiniciar" + +msgid "Pause" +msgstr "" + +msgid "Resume" +msgstr "" + +msgid "Power Off" +msgstr "Forçar desligamento" + +msgid "Actions" +msgstr "Ações" + +msgid "Connect" +msgstr "Conectar" + +msgid "Clone" +msgstr "Clonar" + +msgid "Edit" +msgstr "Editar" + +msgid "Shut Down" +msgstr "Desligar" + +msgid "Delete" +msgstr "Remover" + +msgid "The username or password you entered is incorrect. Please try again." +msgstr "" +"O usuário ou senha inseridos estão incorretos. Por favor, tente novamente." + +msgid "This field is required." +msgstr "Esse campo é obrigatório." + +msgid "Log in" +msgstr "Entrar" + +msgid "Logging in..." +msgstr "Entrando..." + +msgid "Host" +msgstr "Host" + +msgid "Guests" +msgstr "Guests" + +msgid "Templates" +msgstr "Modelos" + +msgid "Failed to get application configuration" +msgstr "Não foi possível carregar as configurações da aplicação" + +msgid "This is not a valid Linux path" +msgstr "Este não é um caminho válido no Linux" + +msgid "This is not a valid URL." +msgstr "Essa não é uma URL válida." + +msgid "No such data available." +msgstr "Não há dados disponíveis." + +msgid "" +"Can not contact the host system. Verify the host system is up and that you " +"have network connectivity to it. HTTP request response %1. " +msgstr "" +"Não foi possível contactar o sistema host. Verique se o sistema do host está " +"ligado e se você possui conectividade de rede com ele. Resposta da " +"requisição HTTP %1. " + +msgid "Unable to read file." +msgstr "" + +msgid "Error while uploading file." +msgstr "" + +msgid "Delete Confirmation" +msgstr "Confirmação de remoção" + +msgid "OK" +msgstr "OK" + +msgid "Confirm" +msgstr "Confirmar" + +msgid "Warning" +msgstr "Aviso" + +msgid "Cloning..." +msgstr "" + +msgid "Loading..." +msgstr "Carregando..." + +msgid "An error occurred while retrieving system information." +msgstr "Ocorreu um erro ao recuperar informações do sistema." + +msgid "Retry" +msgstr "Tentar novamente" + +msgid "Detailed message:" +msgstr "Mensagem detalhada:" + +msgid "No ISO found" +msgstr "Nenhuma ISO encontrada" + +msgid "This is not a valid ISO file." +msgstr "Esse não é um arquivo ISO válido." + +msgid "This may take a long time. Do you want to continue?" +msgstr "Isso vai levar um longo tempo. Deseja continuar?" + +msgid "This will permanently delete the template. Would you like to continue?" +msgstr "O modelo vai ser permanentemente removido. Deseja continuar?" + +msgid "Unable to shut down system as there are some virtual machines running!" +msgstr "" +"Não foi possível desligar o sistema porque algumas máquinas virtuais estão " +"ligadas!" + +msgid "Max:" +msgstr "Máximo:" + +msgid "Utilization" +msgstr "Utilização" + +msgid "Available" +msgstr "Disponível" + +msgid "Read Rate" +msgstr "Taxa de leitura" + +msgid "Write Rate" +msgstr "Taxa de escrita" + +msgid "Received" +msgstr "Recebido" + +msgid "Sent" +msgstr "Enviado" + +msgid "" +"Shutting down or restarting host will cause unsaved work lost. Continue to " +"shut down/restarting?" +msgstr "" +"Desligar ou reiniciar o host causará perda de trabalho que não foi salvo. " +"Continuar o processo de desligar/reiniciar?" + +msgid "" +"Repository will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" +"Repositório será removido permanentemente e não poderá ser recuperado. " +"Deseja continuar?" + +msgid "Repositories" +msgstr "Repositórios" + +msgid "ID" +msgstr "ID" + +msgid "Base URL" +msgstr "URL Base" + +msgid "Is Mirror" +msgstr "É mirror" + +msgid "URL Args" +msgstr "Argumentos da URL" + +msgid "Enabled" +msgstr "Ativado" + +msgid "GPG Check" +msgstr "Verificação GPG" + +msgid "GPG Key" +msgstr "Chave GPG" + +msgid "Add" +msgstr "Adicionar" + +msgid "Remove" +msgstr "Remover" + +msgid "Enable" +msgstr "Ativar" + +msgid "Disable" +msgstr "Desativar" + +msgid "Software Updates" +msgstr "Atualizações de software" + +msgid "Package Name" +msgstr "Nome do pacote" + +msgid "Version" +msgstr "Versão" + +msgid "Architecture" +msgstr "Arquitetura" + +msgid "Repository" +msgstr "Repositório" + +msgid "Update All" +msgstr "Atualizar todos" + +msgid "Updating..." +msgstr "Atualizando..." + +msgid "Failed to retrieve packages update information." +msgstr "Não foi possível recuperar as informações de atualização de pacoates." + +msgid "Failed to update package(s)." +msgstr "Erro ao atualizar pacote(s)." + +msgid "" +"Debug report will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" +"Relatório de debug será permanentemente removido e não poderá ser " +"recuperado. Deseja continuar?" + +msgid "Debug Reports" +msgstr "Relatórios de Debug" + +msgid "Generated Time" +msgstr "Tempo gerado" + +msgid "Generate" +msgstr "Gerar" + +msgid "Generating..." +msgstr "Gerando..." + +msgid "Rename" +msgstr "Renomear" + +msgid "Download" +msgstr "Baixar" + +msgid "" +"Report name should contain only letters, digits, underscore ('_') and/or " +"hyphen ('-')." +msgstr "" +"Nome do relatório deve apenas conter letras, números, underscore ('_') e/ou " +"hífen ('-')." + +msgid "Pending..." +msgstr "Pendente..." + +msgid "Report name is the same as the original one." +msgstr "Nome do relatório é o mesmo que o original." + +msgid "" +"This will delete the virtual machine and its virtual disks. This operation " +"cannot be undone. Would you like to continue?" +msgstr "" +"A máquina virtual vai ser removida com todos seus discos. Essa operação é " +"irreversível. Deseja continuar?" + +msgid "Power off Confirmation" +msgstr "Confirmação de desligamento forçado" + +msgid "" +"This action may produce undesirable results, for example unflushed disk " +"cache in the guest. Would you like to continue?" +msgstr "" +"Essa ação pode produzir resultados não desejáveis, como por exemplo cache de " +"disco não-atualizado no guest. Deseja continuar?" + +msgid "Reset Confirmation" +msgstr "Confirmação de reinicialização" + +msgid "" +"There is a risk of data loss caused by reset without the guest OS shutdown. " +"Would you like to continue?" +msgstr "" +"Existe um risco de perda de dados causado pela reinicialização sem o " +"desligamento do sistema operacional do guest. Deseja continuar?" + +msgid "Shut Down Confirmation" +msgstr "Confirmação de desligamento" + +msgid "Note the guest OS may ignore this request. Would you like to continue?" +msgstr "" +"O sistema operacional do guest pode ignorar essa requisição. Deseja " +"continuar?" + +msgid "Virtual Machine delete Confirmation" +msgstr "Confirmação de Remoção da Máquina Virtual" + +msgid "" +"This virtual machine is not persistent. Power Off will delete it. Continue?" +msgstr "" +"Essa máquina virtual não é persistente. O desligamento irá removê-la. Deseja " +"continuar?" + +msgid "" +"When the target guest has SCSI or iSCSI volumes, they will be cloned on " +"default storage pool. The same will happen when the target pool does not " +"have enough space to clone the volumes. Do you want to continue?" +msgstr "" +"Quando o guest de destino tiver volumes SCSI ou iSCSI, eles serão clonados " +"no storage pool padrão. O mesmo vai acontecer quando o pool de destino não " +"tiver espaço suficiente para clonar os volumes. Você deseja continuar?" + +msgid "" +"This CDROM will be detached permanently and you can re-attach it. Continue " +"to detach it?" +msgstr "" +"Esse CDROM será desconectado permanentemente e você pode reconectá-lo. " +"Deseja continuar a remoção? " + +msgid "Attaching..." +msgstr "Adicionando..." + +msgid "Replacing..." +msgstr "Substituindo..." + +msgid "Successfully attached!" +msgstr "Adicionado com sucesso!" + +msgid "Successfully replaced!" +msgstr "Substituído com sucesso!" + +msgid "Successfully detached!" +msgstr "Removido com sucesso!" + +msgid "" +"This disk will be detached permanently and you can re-attach it. Continue to " +"detach it?" +msgstr "" +"Esse disco será desconectado permanentemente e você pode reconectá-lo. " +"Deseja continuar a remoção? " + +msgid "interface:" +msgstr "interface:" + +msgid "address:" +msgstr "endereço:" + +msgid "link_type:" +msgstr "tipo do link:" + +msgid "block:" +msgstr "bloco:" + +msgid "drive_type:" +msgstr "tipo do drive:" + +msgid "model:" +msgstr "modelo:" + +msgid "Affected devices:" +msgstr "Dispositivos afetados:" + +msgid "The VLAN id must be between 1 and 4094." +msgstr "ID da VLAN deve ser um número entre 1 e 4094." + +msgid "unavailable" +msgstr "indisponível" + +msgid "" +"This action will interrupt network connectivity for any virtual machine that " +"depend on this network." +msgstr "" +"Esta ação irá interromper a conectividade da rede para qualquer máquina " +"virtual que depende dessa rede." + +msgid "Create a network" +msgstr "Criar uma rede" + +msgid "" +"This network is not persistent. Instead of stop, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"Essa rede não é persistente. Ao invés de parar, essa ação irá removê-la " +"permantemente. Deseja continuar?" + +msgid "" +"The bridged VLAN tag may not work well with NetworkManager enabled. You " +"should consider disabling it." +msgstr "" + +msgid "" +"This will permanently delete the storage pool. Would you like to continue?" +msgstr "O storage pool vai ser permanentemente removido. Deseja continuar?" + +msgid "This storage pool is empty." +msgstr "Esse storage pool está vazio." + +msgid "" +"It will format your disk and you will loose any data in there, are you sure " +"to continue? " +msgstr "" +"Isso formatará seu disco e você perderá toda informação, você tem certeza " +"que quer continuar?" + +msgid "SCSI Fibre Channel" +msgstr "SCSI Fibre Channel" + +msgid "No SCSI adapters found." +msgstr "Nenhum adaptador SCSI encontrado." + +msgid "Loading iSCSI targets..." +msgstr "Carregando iSCSI targets..." + +msgid "No iSCSI found. Please input one." +msgstr "Nenhum iSCSI encontrado. Por favor, forneça um." + +msgid "Failed to load iSCSI targets." +msgstr "Erro ao carregar iSCSI targets." + +msgid "The storage pool name can not be blank." +msgstr "O nome do storage pool não pode ser vazio." + +msgid "The storage pool path can not be blank." +msgstr "O caminho do storage pool não pode ser vazio." + +msgid "NFS server mount path can not be blank." +msgstr "Caminho de montagem do servidor de NFS não pode ser vazio." + +msgid "Invalid NFS mount path." +msgstr "Caminho de montagem do NFS inválido." + +msgid "No logical device selected." +msgstr "Nenhum dispositivo lógico selecionado." + +msgid "The iSCSI target can not be blank." +msgstr "O alvo iSCSI não pode ser vazio." + +msgid "Server name can not be blank." +msgstr "Nome do servidor não pode ser vazio." + +msgid "This is not a valid Server Name or IP. Please, modify it." +msgstr "Este não é um nome ou IP de servidor válido. Por favor, modifique-o." + +msgid "Looking for available partitions ..." +msgstr "Procurando por partições disponíveis ..." + +msgid "No available partitions found." +msgstr "Nenhuma partição disponível encontrada." + +msgid "" +"This storage pool is not persistent. Instead of deactivate, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"O storage pool não é persistente. Ao invés de desativar, essa ação vai " +"removê-lo permanentemente. Deseja continuar?" + +msgid "Unable to retrieve partitions information." +msgstr "Não foi possível recuperar as informações das partições." + +msgid "In progress..." +msgstr "Em progresso..." + +msgid "Failed!" +msgstr "Falhou!" + +msgid "CDROM path needs to be a valid local/remote path and cannot be blank." +msgstr "" +"Caminho do CDROM precisa ser um caminho local válido e não pode ser vazio." + +msgid "Disk pool or volume cannot be blank." +msgstr "Pool ou volume do disco não pode ser vazio." + +msgid "Peers" +msgstr "Peers" + +msgid "Searching" +msgstr "Procurando" + +msgid "No peers found." +msgstr "Nenhum peer encontrado." + +msgid "Help" +msgstr "Ajuda" + +msgid "About" +msgstr "Sobre" + +msgid "Log out" +msgstr "Sair" + +msgid "Version:" +msgstr "Versão:" + +msgid "Session timeout, please re-login." +msgstr "Fim do limite do tempo da sessão, por favor se autentique novamente." + +msgid "User Name" +msgstr "Usuário" + +msgid "Password" +msgstr "Senha" + +msgid "Generate a New Debug Report" +msgstr "Gerar um novo Relatório de Debug" + +msgid "Report Name" +msgstr "Nome do Relatório" + +msgid "" +"The name used to identify the report. If omitted, a name will be chosen " +"based on current time. Name can contain: letters, digits, underscore (\"_\") " +"and hyphen (\"-\")." +msgstr "" +"O nome usado para identificar o relatório. Se omitido, um nome será " +"escolhido baseado no horário atual. O nome pode conter: letras, números, " +"underscore ('_') e hífen ('-')." + +msgid "Rename a Debug Report" +msgstr "Renomear um Relatório de Debug" + +msgid "" +"The name used to identify the report. Name can contain: letters, digits and " +"hyphen (\"-\")." +msgstr "" +"O nome usado para identificar o relatório. O nome pode conter: letras, " +"dígitos e hífen (\"-\")." + +msgid "Submit" +msgstr "Enviar" + +msgid "Add a Repository" +msgstr "Adicionar um Repositório" + +msgid "Identifier" +msgstr "Identificador" + +msgid "Single word, unique identifier for the repository." +msgstr "Uma única palavra, identificador único para o repositório." + +msgid "Textual name for the repository." +msgstr "Nome textual para o repositório." + +msgid "URL" +msgstr "URL" + +msgid "Required Field" +msgstr "Campo Obrigatório" + +msgid "URL to the repository. Supported protocols are http, ftp, and file." +msgstr "URL para o repositório. Protocolos suportados são http, ftp e file." + +msgid "Repository is a mirror" +msgstr "Repositório é um mirror" + +msgid "Distribution" +msgstr "Distribuição" + +msgid "Distribution of the DEB repository." +msgstr "Distribuição para o repositório DEB." + +msgid "Components" +msgstr "Componentes" + +msgid "List of components in DEB repository." +msgstr "Lista de componentes para o repositório DEB." + +msgid "Edit Repository" +msgstr "Editar Repositório" + +msgid "Mirror List URL" +msgstr "URL para a lista de mirror" + +msgid "Yes" +msgstr "Sim" + +msgid "No" +msgstr "Não" + +msgid "Add a Volume to Storage Pool" +msgstr "Adicionar um volume ao Storage Pool" + +msgid "Fetch from remote URL" +msgstr "Fazer download de uma URL remota" + +msgid "Enter the remote URL here." +msgstr "Digite a URL remota aqui." + +msgid "Upload a file" +msgstr "Fazer upload de um arquivo" + +msgid "Choose the file you want to upload." +msgstr "Escolha o arquivo que você quer fazer upload." + +msgid "Define a New Storage Pool" +msgstr "Definir novo Storage Pool" + +msgid "Storage Pool Name" +msgstr "Nome do Storage Pool" + +msgid "" +"The name used to identify the storage pools, and it should not be empty." +msgstr "O nome usado para identificar o storage pool e não deve ser vazio." + +msgid "Storage Pool Type" +msgstr "Tipo do Storage Pool" + +msgid "Storage Path" +msgstr "Caminho do storage" + +msgid "" +"The path of the Storage Pool. Each Storage Pool must have a unique path." +msgstr "" +"O caminho do Storage Pool. Cada Storage Pool deve ter um caminho único." + +msgid "" +"Kimchi will try to create the directory when it does not already exist in " +"your system." +msgstr "" +"O Kimchi vai tentar criar o diretório se ainda não existir no seu sistema." + +msgid "NFS Server IP" +msgstr "IP do servidor NFS" + +msgid "NFS server IP or hostname. It can be input or chosen from history." +msgstr "" +"IP ou hostname do servidor NFS. Pode ser inserido ou escolhido do histórico." + +msgid "NFS Path" +msgstr "Caminho do NFS" + +msgid "The NFS exported path on NFS server." +msgstr "O caminho exportado do servidor NFS." + +msgid "Device path" +msgstr "Caminho do dispositivo" + +msgid "iSCSI Server" +msgstr "Servidor iSCSI" + +msgid "iSCSI server IP or hostname. It should not be empty." +msgstr "IP ou hostname do servidor iSCSI. Não deve ser vazio." + +msgid "Server" +msgstr "Servidor" + +msgid "Port" +msgstr "Porta" + +msgid "Target" +msgstr "Alvo" + +msgid "The iSCSI target on iSCSI server" +msgstr "O alvo iSCSI no servidor iSCSI" + +msgid "Add iSCSI Authentication" +msgstr "Adicionar as credenciais do iSCSI" + +msgid "iSCSI Authentication" +msgstr "Credenciais do iSCSI" + +msgid "SCSI Adapter" +msgstr "Adaptador SCSI" + +msgid "Please, wait..." +msgstr "Por favor, aguarde..." + +msgid "Add Template" +msgstr "Adicionar Modelo" + +msgid "Where is the source media for this template? " +msgstr "Onde está a mídia de origem desse modelo? " + +msgid "Local ISO Image" +msgstr "Imagem ISO Local" + +msgid "Local Image File" +msgstr "Arquivo de Imagem Local" + +msgid "Remote ISO Image" +msgstr "Imagem ISO Remota" + +msgid "Search ISOs" +msgstr "Procurar ISOs" + +msgid "The following ISOs are available:" +msgstr "As seguintes ISOs estão disponíveis:" + +msgid "OS: " +msgstr "Sistema Operacional: " + +msgid "Version: " +msgstr "Versão: " + +msgid "Size: " +msgstr "Tamanho: " + +msgid "Search more ISOs" +msgstr "Procurar por mais ISOs" + +msgid "Create Templates from Selected ISO" +msgstr "Criar Modelos a partir das ISOs selecionadas" + +msgid "I want to use a specific ISO file" +msgstr "Eu quero usar um arquivo ISO específico" + +msgid "Loading default remote ISOs ..." +msgstr "Carregando ISOs remotas ..." + +msgid "Arch: " +msgstr "Arquitetura: " + +msgid "I want to use a custom URL" +msgstr "Eu quero usar uma URL personalizada" + +msgid "Edit Template" +msgstr "Editar Modelo" + +msgid "Processor" +msgstr "Processador" + +msgid "CDROM" +msgstr "CD-ROM" + +msgid "Image File" +msgstr "Arquivo de imagem" + +msgid "Graphics" +msgstr "Gráficos" + +msgid "Disk(GB)" +msgstr "Disco (GB)" + +msgid "Disk Format" +msgstr "" + +msgid "CPU Number" +msgstr "Quantidade de CPUs" + +msgid "Manually set CPU topology" +msgstr "Configurar manualmente a topologia de CPU" + +msgid "Cores" +msgstr "Cores" + +msgid "Threads" +msgstr "Threads" + +msgid "CPU" +msgstr "CPU" + +msgid "Disk I/O" +msgstr "Disco E/S" + +msgid "Network I/O" +msgstr "Rede E/S" + +msgid "Livetile" +msgstr "Tela ao vivo" + +msgid "No guests found." +msgstr "Nenhum guest encontrado." + +msgid "Shut down" +msgstr "Desligar" + +msgid "Restart" +msgstr "Reiniciar" + +msgid "Basic Information" +msgstr "Informações básicas" + +msgid "OS Distro" +msgstr "Distribuição" + +msgid "OS Code Name" +msgstr "Nome-código do sistema operacional" + +msgid "CPU(s)" +msgstr "CPU(s)" + +msgid "System Statistics" +msgstr "Estatísticas do sistema" + +msgid "Update Progress" +msgstr "Progresso da atualização" + +msgid "Network Name" +msgstr "Nome da rede" + +msgid "State" +msgstr "Estado" + +msgid "Network Type" +msgstr "Tipo da rede" + +msgid "Address Space" +msgstr "Espaço de endereço" + +msgid "Name should not contain '/' and '\"'." +msgstr "O nome não deve conter '/' and '\"'." + +msgid "Isolated: no external network connection" +msgstr "Isolada: nenhuma conexão externa" + +msgid "NAT: outbound physical network connection only" +msgstr "NAT: somente conexão de rede física de saída" + +msgid "Bridged: Virtual machines are connected to physical network directly" +msgstr "" +"Bridged: Máquinas virtuais estão conectadas diretamente com a rede física" + +msgid "(No interfaces found)" +msgstr "(Nenhuma interface encontrada)" + +msgid "Destination" +msgstr "Destino" + +msgid "Enable VLAN" +msgstr "Habilitar VLAN" + +msgid "VLAN ID" +msgstr "ID da VLAN" + +msgid "Stop" +msgstr "Parar" + +msgid "%Used" +msgstr "" + +msgid "Location" +msgstr "Localização" + +msgid "Capacity" +msgstr "Capacidade" + +msgid "Allocated" +msgstr "Alocado" + +msgid "active" +msgstr "ativo" + +msgid "inactive" +msgstr "inativo" + +msgid "Deactivate" +msgstr "Desativar" + +msgid "Activate" +msgstr "Ativar" + +msgid "Add Volume" +msgstr "Adicionar volume" + +msgid "Extend" +msgstr "Aumentar" + +msgid "Undefine" +msgstr "Indefinir" + +msgid "Format" +msgstr "Formato" + +msgid "Allocation" +msgstr "Alocação" + +msgid "No templates found." +msgstr "Nenhum modelo encontrado." diff --git a/po/ru_RU.po b/po/ru_RU.po new file mode 100644 index 0000000..bd8be94 --- /dev/null +++ b/po/ru_RU.po @@ -0,0 +1,2230 @@ +# English translations for kimchi package. +# Copyright (C) 2013 ORGANIZATION +# +msgid "" +msgstr "" +"Project-Id-Version: kimchi 0.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-09 17:37-0300\n" +"PO-Revision-Date: 2014-08-28 17:32+0000\n" +"Last-Translator: Aline Manera <aline.manera@gmail.com>\n" +"Language-Team: Russian (http://www.transifex.com/projects/p/kimchi/language/" +"ru/)\n" +"Language: ru_RU\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#, python-format +msgid "Unknown parameter %(value)s" +msgstr "" + +#, python-format +msgid "Delete is not allowed for %(resource)s" +msgstr "Удаление запрещено для %(resource)s" + +#, python-format +msgid "%(resource)s does not implement update method" +msgstr "%(resource)s не реализуют метод обновления" + +#, python-format +msgid "Create is not allowed for %(resource)s" +msgstr "Создание запрещено для %(resource)s" + +msgid "Unable to parse JSON request" +msgstr "Ошибка анализа запроса JSON" + +msgid "This API only supports JSON" +msgstr "Эта функция API поддерживает только JSON" + +#, python-format +msgid "Parameters does not match requirement in schema: %(err)s" +msgstr "" + +msgid "You don't have permission to perform this operation." +msgstr "" + +msgid "Datastore is not initiated in the model object." +msgstr "Хранилище данных в объекте модели не инициализировано." + +#, python-format +msgid "Unable to start task due error: %(err)s" +msgstr "Не удалось запустить задачу из-за ошибки %(err)s" + +#, python-format +msgid "Timeout of %(seconds)s seconds expired while running task '%(task)s." +msgstr "" + +#, python-format +msgid "Authentication failed for user '%(username)s'. [Error code: %(code)s]" +msgstr "Сбой идентификации пользователя %(username)s. [Код ошибки: %(code)s]" + +msgid "You are not authorized to access Kimchi" +msgstr "Нет прав доступа к Kimchi" + +#, python-format +msgid "Specify %(item)s to login into Kimchi" +msgstr "Укажите %(item)s для входа в Kimchi" + +#, python-format +msgid "User %(user_id)s not found with given LDAP settings." +msgstr "" + +#, python-format +msgid "Invalid LDAP configuration: %(item)s : %(value)s" +msgstr "" + +msgid "Unknown \"_cap\" specified" +msgstr "" + +msgid "\"_passthrough\" should be \"true\" or \"false\"" +msgstr "" + +msgid "\"_passthrough_affected_by\" should be a device name string" +msgstr "" + +#, python-format +msgid "Error while getting block devices. Details: %(err)s" +msgstr "Ошибка получения блочных устройств. Сведения: %(err)s" + +#, python-format +msgid "Error while getting block device information for %(device)s." +msgstr "Ошибка получения информации о блочных устройствах для %(device)s." + +#, python-format +msgid "Unable to find distro file: %(filename)s" +msgstr "Не найден файл варианта ОС: %(filename)s" + +#, python-format +msgid "" +"Unable to parse distro file: %(filename)s. Make sure, it is a JSON file." +msgstr "" +"Ошибка анализа файла варианта ОС %(filename)s. Убедитесь, что это файл JSON." + +#, python-format +msgid "Unable to login to iSCSI host target %(portal)s. Details: %(err)s" +msgstr "Не удалось войти в целевой %(portal)s хоста iSCSI. Сведения: %(err)s" + +#, python-format +msgid "Unable to login to iSCSI host %(host)s target %(target)s" +msgstr "Не удалось войти в целевой %(target)s хоста iSCSI %(host)s" + +#, python-format +msgid "Unable to find ISO file %(filename)s" +msgstr "" + +#, python-format +msgid "The ISO file %(filename)s is not bootable" +msgstr "Файл ISO %(filename)s не загрузочный" + +#, python-format +msgid "The ISO file %(filename)s does not have a valid El Torito boot record" +msgstr "" +"Файл ISO %(filename)s не содержит правильную загрузочную запись El Torito" + +#, python-format +msgid "Invalid El Torito validation entry in ISO %(filename)s" +msgstr "Недопустимая запись проверки El Torito в образе ISO %(filename)s" + +#, python-format +msgid "Invalid El Torito boot indicator in ISO %(filename)s" +msgstr "Недопустимый индикатор загрузки El Torito в образе ISO %(filename)s" + +#, python-format +msgid "Unexpected volume type for primary volume in ISO %(filename)s" +msgstr "Неожиданный тип тома для главного тома в образе ISO %(filename)s" + +#, python-format +msgid "Bad format while reading volume descriptor in ISO %(filename)s" +msgstr "Неверный формат дескриптора тома в образе ISO %(filename)s" + +#, python-format +msgid "" +"The hypervisor doesn't have permission to use this ISO %(filename)s. " +"Consider moving it under /var/lib/libvirt, or set the search permission to " +"file access control lists for '%(user)s' user if possible, or add the " +"'%(user)s' to the ISO path group, or (not recommended) 'chmod -R o+x " +"'path_to_iso'.Details: %(err)s" +msgstr "" +"У гипервизора нет прав доступа для использования этого образа ISO " +"%(filename)s. Переместите его в каталог /var/lib/libvirt, добавьте " +"разрешение на поиск в списки контроля доступа для пользователя %(user)s, " +"если это возможно, добавьте %(user)s в группу пути к образу ISO или (не " +"рекомендуется) выполните команду 'chmod -R o+x 'path_to_iso'. Сведения: " +"%(err)s" + +msgid "An error occurred when probing image OS information." +msgstr "" + +msgid "No OS information found in given image." +msgstr "" + +#, python-format +msgid "Unable to read image file %(filename)s" +msgstr "" + +#, python-format +msgid "" +"Image file must be an existing file on system. %(filename)s is not a valid " +"input." +msgstr "" + +#, python-format +msgid "Virtual machine %(name)s already exists" +msgstr "Виртуальная машина %(name)s уже существует" + +#, python-format +msgid "Virtual machine %(name)s does not exist" +msgstr "Виртуальная машина %(name)s не существует" + +#, python-format +msgid "" +"Unable to rename virtual machine %(name)s. The name %(new_name)s is already " +"in use or the virtual machine is not powered off." +msgstr "" + +#, python-format +msgid "Unable to retrieve screenshot for stopped virtual machine %(name)s" +msgstr "" +"Не удалось получить снимок экрана для остановленной виртуальной машины " +"%(name)s" + +msgid "Remote ISO image is not supported by this server." +msgstr "Удаленный образ ISO не поддерживается этим сервером." + +#, python-format +msgid "Screenshot is not supported on virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Unable to create virtual machine %(name)s. Details: %(err)s" +msgstr "Не удалось создать виртуальную машину %(name)s. Сведения: %(err)s" + +#, python-format +msgid "Unable to update virtual machine %(name)s. Details: %(err)s" +msgstr "Не удалось создать виртуальную машину %(name)s. Сведения: %(err)s" + +#, python-format +msgid "Unable to retrieve virtual machine %(name)s. Details: %(err)s" +msgstr "Не удалось получить виртуальную машину %(name)s. Сведения: %(err)s" + +#, python-format +msgid "Unable to connect to powered off virtual machine %(name)s." +msgstr "" + +msgid "Virtual machine name must be a string without slashes (/)" +msgstr "" + +#, python-format +msgid "Invalid template URI %(value)s specified for virtual machine" +msgstr "" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for virtual machine" +msgstr "" + +msgid "Supported virtual machine graphics are Spice or VNC" +msgstr "" + +msgid "Graphics address to listen on must be IPv4 or IPv6" +msgstr "" +"Адрес приема запросов для графической подсистемы должен быть IPv4 или IPv6" + +msgid "Specify a template to create a virtual machine from" +msgstr "Укажите шаблон для создания виртуальной машины" + +#, python-format +msgid "Unable to start virtual machine %(name)s. Details: %(err)s" +msgstr "Не удалось запустить виртуальную машину %(name)s. Сведения: %(err)s" + +#, python-format +msgid "Unable to power off virtual machine %(name)s. Details: %(err)s" +msgstr "Не удалось остановить виртуальную машину %(name)s. Сведения: %(err)s" + +#, python-format +msgid "Unable to delete virtual machine %(name)s. Details: %(err)s" +msgstr "Не удалось удалить виртуальную машину %(name)s. Сведения: %(err)s" + +#, python-format +msgid "Unable to reset virtual machine %(name)s. Details: %(err)s" +msgstr "" +"Не удалось переименовать виртуальную машину %(name)s. Сведения: %(err)s" + +msgid "User name list must be an array" +msgstr "" + +msgid "User name must be a string" +msgstr "Имя сети должно быть строкой" + +msgid "Group name list must be an array" +msgstr "" + +msgid "Group name must be a string" +msgstr "Имя сети должно быть строкой" + +#, python-format +msgid "User(s) '%(users)s' do not exist" +msgstr "Пользователь %(users)s не существует." + +#, python-format +msgid "Group(s) '%(groups)s' do not exist" +msgstr "Пользователь %(groups)s не существует." + +#, python-format +msgid "Unable to shutdown virtual machine %(name)s. Details: %(err)s" +msgstr "Не удалось остановить виртуальную машину %(name)s. Сведения: %(err)s" + +#, python-format +msgid "" +"Unable to get access metadata of virtual machine %(name)s. Details: %(err)s" +msgstr "Не удалось запустить виртуальную машину %(name)s. Сведения: %(err)s" + +msgid "The guest console password must be a string." +msgstr "" + +msgid "The life time for the guest console password must be a number." +msgstr "" + +#, python-format +msgid "Virtual machine '%(name)s' must be stopped before cloning it." +msgstr "" + +#, python-format +msgid "Insufficient disk space to clone virtual machine '%(name)s'" +msgstr "" + +#, python-format +msgid "Unable to clone VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Invalid operation for non-persistent virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Cannot suspend VM '%(name)s' because it is not running." +msgstr "" + +#, python-format +msgid "Unable to suspend VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Cannot resume VM '%(name)s' because it is not paused." +msgstr "" + +#, python-format +msgid "Unable to resume VM '%(name)s'. Details: %(err)s" +msgstr "" + +msgid "Memory assigned is higher then the maximum allowed in the host." +msgstr "" + +#, python-format +msgid "" +"VM '%(name)s' does not support live memory update. Update the memory with " +"the machine offline to enable this feature." +msgstr "" + +msgid "Only increase memory is allowed in active VMs" +msgstr "" + +msgid "" +"For live memory update, new memory value must be equal old memory value plus " +"multiples of 1024 Mib" +msgstr "" + +msgid "There are not enough free slots of 1024 Mib in the guest." +msgstr "" + +msgid "" +"Host's libvirt version does not support memory devices. Libvirt must be >= " +"1.2.14" +msgstr "" + +#, python-format +msgid "Error attaching memory device. Details: %(error)s" +msgstr "" + +#, python-format +msgid "" +"VM %(vmid)s does not contain directly assigned host device %(dev_name)s." +msgstr "" + +#, python-format +msgid "The host device %(dev_name)s is not allowed to directly assign to VM." +msgstr "" + +msgid "" +"No IOMMU groups found. Host PCI pass through needs IOMMU group to function " +"correctly. Please enable Intel VT-d or AMD IOMMU in your BIOS, then verify " +"the Kernel is compiled with IOMMU support. For Intel CPU, add intel_iommu=on " +"to your Kernel parameter in /boot/grub2/grub.conf. For AMD CPU, add iommu=pt " +"iommu=1." +msgstr "" + +msgid "\"name\" should be a device name string" +msgstr "" + +#, python-format +msgid "Interface %(iface)s does not exist in virtual machine %(name)s" +msgstr "Интерфейс %(iface)s не существует в виртуальной машине %(name)s" + +#, python-format +msgid "" +"Network %(network)s specified for virtual machine %(name)s does not exist" +msgstr "" +"Сеть %(network)s, указанная для виртуальной машины %(name)s, не существует" + +msgid "Supported virtual machine interfaces type is only network" +msgstr "Поддерживается только один тип интерфейсов виртуальной машины - сеть" + +msgid "Network name for virtual machine interface must be a string" +msgstr "Имя сети для интерфейса виртуальной машины должно быть строкой" + +msgid "Invalid network model card specified for virtual machine interface" +msgstr "" +"Указана недопустимая карта модели сети для интерфейса виртуальной машины" + +msgid "Specify type and network to add a new virtual machine interface" +msgstr "Укажите тип и сеть для добавления нового интерфейса виртуальной машины" + +msgid "MAC Address must respect this format FF:FF:FF:FF:FF:FF" +msgstr "" + +#, python-format +msgid "MAC Address %(mac)s already exists in virtual machine %(name)s" +msgstr "" + +msgid "Invalid MAC Address" +msgstr "" + +msgid "Cannot change MAC address of a running virtual machine" +msgstr "" + +#, python-format +msgid "Template %(name)s already exists" +msgstr "Шаблон %(name)s уже существует" + +#, python-format +msgid "" +"Network '%(network)s' specified for template %(template)s does not exist" +msgstr "Сеть %(network)s, указанная для шаблона %(template)s, не существует" + +#, python-format +msgid "" +"Storage pool %(pool)s specified for template %(template)s does not exist" +msgstr "Пул памяти %(pool)s, указанный для шаблона %(template)s, не существует" + +#, python-format +msgid "Storage pool %(pool)s specified for template %(template)s is not active" +msgstr "Пул памяти %(pool)s, указанный для шаблона %(template)s, не активен" + +#, python-format +msgid "Invalid parameter '%(param)s' specified for CDROM." +msgstr "Указан недопустимый параметр %(param)s для CDROM." + +#, python-format +msgid "Network %(network)s specified for template %(template)s is not active" +msgstr "Сеть %(network)s, указанная для шаблона %(template)s, не активна" + +msgid "Template name must be a string" +msgstr "Имя шаблона должно быть строкой" + +msgid "Template icon must be a path to the image" +msgstr "Значок шаблона должен быть путем к образу" + +msgid "Template distribution must be a string" +msgstr "Вариант шаблона должен быть строкой" + +msgid "Template distribution version must be a string" +msgstr "Версия варианта шаблона должна быть строкой" + +msgid "The number of CPUs must be an integer greater than 0" +msgstr "Число процессоров должно быть целым числом" + +msgid "Amount of memory (MB) must be an integer greater than 512" +msgstr "Объем памяти (МБ) должен быть целым числом больше 512" + +msgid "Template CDROM must be a local or remote ISO file" +msgstr "CDROM шаблона должен быть локальным или удаленным файлом ISO" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for template" +msgstr "Для шаблона указан недопустимый URI пула памяти %(value)s" + +msgid "Specify an ISO image as CDROM or a base image to create a template" +msgstr "Укажите образ ISO в качестве CDROM для создания шаблона" + +msgid "All networks for the template must be specified in a list." +msgstr "Все сети для шаблона должны быть указаны в списке." + +msgid "Specify a volume to a template when storage pool is iSCSI or SCSI" +msgstr "" + +#, python-format +msgid "The volume %(volume)s is not in storage pool %(pool)s" +msgstr "" + +#, python-format +msgid "Unable to create template due error: %(err)s" +msgstr "Не удалось создать шаблон из-за ошибки %(err)s" + +#, python-format +msgid "Unable to delete template due error: %(err)s" +msgstr "Не удалось удалить шаблон из-за ошибки %(err)s" + +msgid "Disk size must be an integer greater than 1GB." +msgstr "" + +msgid "Template base image must be a valid local image file" +msgstr "CDROM шаблона должен быть локальным или удаленным файлом ISO" + +#, python-format +msgid "Cannot identify base image %(path)s format" +msgstr "" + +msgid "" +"When specifying CPU topology, VCPUs must be a product of sockets, cores, and " +"threads." +msgstr "" + +msgid "" +"When specifying CPU topology, each element must be an integer greater than " +"zero." +msgstr "" + +msgid "" +"Invalid disk image format. Valid formats: bochs, cloop, cow, dmg, qcow, " +"qcow2, qed, raw, vmdk, vpc." +msgstr "" + +#, python-format +msgid "Storage pool %(name)s already exists" +msgstr "Пул памяти %(name)s уже существует" + +#, python-format +msgid "Storage pool %(name)s does not exist" +msgstr "Пул памяти %(name)s не существует" + +#, python-format +msgid "Specify %(item)s in order to create the storage pool %(name)s" +msgstr "Укажите %(item)s для создания пула памяти %(name)s" + +#, python-format +msgid "Unable to delete active storage pool %(name)s" +msgstr "Не удалось удалить активный пул памяти %(name)s" + +#, python-format +msgid "Unable to list storage pools. Details: %(err)s" +msgstr "Не удалось вывести список пулов памяти. Сведения: %(err)s" + +#, python-format +msgid "Unable to create storage pool %(name)s. Details: %(err)s" +msgstr "Не удалось создать пул памяти %(name)s. Сведения: %(err)s" + +#, python-format +msgid "" +"Unable to get number of storage volumes in storage pool %(name)s. Details: " +"%(err)s" +msgstr "" +"Не удалось получить число томов в пуле памяти %(name)s. Сведения: %(err)s" + +#, python-format +msgid "Unable to activate storage pool %(name)s. Details: %(err)s" +msgstr "Не удалось активировать пул памяти %(name)s. Сведения: %(err)s" + +#, python-format +msgid "Unable to deactivate storage pool %(name)s. Details: %(err)s" +msgstr "Не удалось деактивировать пул памяти %(name)s. Сведения: %(err)s" + +#, python-format +msgid "Unable to delete storage pool %(name)s. Details: %(err)s" +msgstr "Не удалось удалить пул памяти %(name)s. Сведения: %(err)s" + +#, python-format +msgid "" +"Unable to create NFS Pool as export path %(path)s may block during mount" +msgstr "" +"Не удалось создать пул NFS: экспортированный путь %(path)s мог быть " +"заблокирован во время монтирования" + +#, python-format +msgid "Unable to create NFS Pool as export path %(path)s mount failed" +msgstr "" +"Не удалось создать пул NFS: не удалось смонтировать экспортированный путь " +"%(path)s" + +#, python-format +msgid "Unsupported storage pool type: %(type)s" +msgstr "Неподдерживаемый тип пула памяти: %(type)s" + +#, python-format +msgid "Error while retrieving storage pool XML to %(pool)s" +msgstr "" + +msgid "Storage pool name must be a string without slashes (/)" +msgstr "" + +msgid "" +"Supported storage pool types are dir, netfs, logical, iscsi, isci and kimchi-" +"iso" +msgstr "" + +msgid "Storage pool path must be a string" +msgstr "Путь к пулу памяти должен быть строкой" + +msgid "Storage pool host must be a IP or hostname" +msgstr "Хост пула памяти должен быть IP-адресом или именем хоста" + +msgid "Storage pool device must be the absolute path to the block device" +msgstr "" + +msgid "Storage pool devices parameter must be a list" +msgstr "Параметр устройств пула памяти должен быть списком" + +msgid "Target IQN of an iSCSI pool must be a string" +msgstr "Целевой IQN пула iSCSI должен быть строкой" + +msgid "Port of a remote storage server must be an integer between 1 and 65535" +msgstr "Порт удаленного сервера памяти должен быть целым числом от 1 до 65535" + +msgid "iSCSI target username must be a string" +msgstr "" + +msgid "iSCSI target password must be a string" +msgstr "" + +msgid "Specify name and type to create a storage pool" +msgstr "Укажите имя и тип для создания пула памяти" + +#, python-format +msgid "" +"%(disk)s is not a valid disk/partition. Could not add it to the pool " +"%(pool)s." +msgstr "" +"%(disk)s не является допустимым диском/разделом. Не удалось добавить его в " +"пул %(pool)s." + +#, python-format +msgid "Unable to extend logical pool %(pool)s. Details: %(err)s" +msgstr "" + +msgid "The parameter disks only can be updated for logical storage pool." +msgstr "Диски параметров можно обновлять только для логического пула памяти." + +msgid "The SCSI host adapter name must be a string." +msgstr "Имя адаптера хоста SCSI должно быть строкой." + +msgid "The storage pool kimchi_isos is reserved for internal use" +msgstr "kimchi_isos пула памяти зарезервирован для внутреннего использования" + +#, python-format +msgid "" +"Unable to activate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"Не удалось активировать пул памяти NFS %(name)s. Сервер NFS %(server)s " +"недоступен." + +#, python-format +msgid "" +"Unable to deactivate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" +"Не удалось деактивировать пул памяти NFS %(name)s. Сервер NFS %(server)s " +"недоступен." + +#, python-format +msgid "" +"Unable to deactivate pool %(name)s as it is associated with some templates" +msgstr "" +"Не удалось деактивировать пул %(name)s: пул связан с некоторыми шаблонами" + +#, python-format +msgid "Unable to delete pool %(name)s as it is associated with some templates" +msgstr "Не удалось удалить пул %(name)s: пул связан с некоторыми шаблонами" + +#, python-format +msgid "" +"A volume group named '%(name)s' already exists. Please, choose another name " +"to create the logical pool." +msgstr "" +"Группа томов с именем %(name)s уже существует. Выберите другое имя для " +"создания логического пула." + +#, python-format +msgid "Unable to update database with deep scan information due error: %(err)s" +msgstr "" +"Не удалось обновить базу данных с информацией глубокого сканирования из-за " +"ошибки %(err)s" + +#, python-format +msgid "Storage volume %(name)s already exists" +msgstr "Том %(name)s уже существует" + +#, python-format +msgid "Storage volume %(name)s does not exist in storage pool %(pool)s" +msgstr "Том %(name)s не существует в пуле памяти %(pool)s" + +#, python-format +msgid "" +"Unable to create storage volume %(volume)s because storage pool %(pool)s is " +"not active" +msgstr "" + +#, python-format +msgid "Specify %(item)s in order to create storage volume %(volume)s" +msgstr "Укажите %(item)s для создания тома %(volume)s" + +#, python-format +msgid "" +"Unable to list storage volumes because storage pool %(pool)s is not active" +msgstr "Не удалось вывести список томов: пул памяти %(pool)s не активен" + +#, python-format +msgid "" +"Unable to create storage volume %(name)s in storage pool %(pool)s. Details: " +"%(err)s" +msgstr "" +"Не удалось создать том %(name)s в пуле памяти %(pool)s. Сведения: %(err)s" + +#, python-format +msgid "" +"Unable to list storage volumes in storage pool %(pool)s. Details: %(err)s" +msgstr "" +"Не удалось вывести список томов в пуле памяти %(pool)s. Сведения: %(err)s" + +#, python-format +msgid "Unable to wipe storage volumes %(name)s. Details: %(err)s" +msgstr "Не удалось стереть тома %(name)s. Сведения: %(err)s" + +#, python-format +msgid "Unable to delete storage volume %(name)s. Details: %(err)s" +msgstr "Не удалось удалить том %(name)s. Сведения: %(err)s" + +#, python-format +msgid "Unable to resize storage volume %(name)s. Details: %(err)s" +msgstr "Не удалось изменить размер тома %(name)s. Сведения: %(err)s" + +#, python-format +msgid "Storage type %(type)s does not support volume create and delete" +msgstr "Тип памяти %(type)s не поддерживает создание и удаление томов" + +msgid "Storage volume name must be a string" +msgstr "Имя тома должно быть строкой" + +msgid "Storage volume allocation must be an integer number" +msgstr "Выделение тома должно быть целым числом" + +msgid "" +"Storage volume format not supported. Valid formats: bochs, cloop, cow, dmg, " +"qcow, qcow2, qed, raw, vmdk, vpc." +msgstr "" + +msgid "Storage volume requires a volume name" +msgstr "Тому требуется имя" + +#, python-format +msgid "" +"Unable to update database with storage volume information due error: %(err)s" +msgstr "" +"Не удалось обновить базу данных с информацией о томах из-за ошибки %(err)s" + +#, python-format +msgid "Only one of parameter %(param)s can be specified" +msgstr "" + +#, python-format +msgid "Create volume from %(param)s is not supported" +msgstr "" + +msgid "Storage volume capacity must be an integer number." +msgstr "" + +msgid "Storage volume URL must be http://, https://, ftp:// or ftps://." +msgstr "" + +#, python-format +msgid "Unable to access file %(url)s. Please, check it." +msgstr "" + +#, python-format +msgid "" +"Unable to clone storage volume '%(name)s' in pool '%(pool)s'. Details: " +"%(err)s" +msgstr "" + +msgid "Specify chunk data and its size to upload a file." +msgstr "" + +msgid "In order to upload a storage volume, specify the 'upload' parameter." +msgstr "" + +msgid "" +"Unable to upload chunk data as it does not match with requested chunk size." +msgstr "" + +#, python-format +msgid "The storage volume %(vol)s is not under an upload process." +msgstr "" + +msgid "The upload chunk data will exceed the storage volume size." +msgstr "" + +#, python-format +msgid "Unable to upload chunk data to storage volume. Details: %(err)s." +msgstr "" + +#, python-format +msgid "Interface %(name)s does not exist" +msgstr "Интерфейс %(name)s не существует" + +#, python-format +msgid "Network %(name)s already exists" +msgstr "Сеть %(name)s уже существует" + +#, python-format +msgid "Network %(name)s does not exist" +msgstr "Сеть %(name)s не существует" + +#, python-format +msgid "Subnet %(subnet)s specified for network %(network)s is not valid." +msgstr "Подсеть %(subnet)s, указанная для сети %(network)s, недопустима." + +#, python-format +msgid "Specify a network interface to create bridged network %(name)s" +msgstr "" +"Укажите сетевой интерфейс для создания сети %(name)s с доступом через мост" + +#, python-format +msgid "Unable to delete active network %(name)s" +msgstr "Не удалось удалить активную сеть %(name)s" + +#, python-format +msgid "Interface %(iface)s specified for network %(network)s is already in use" +msgstr "Интерфейс %(iface)s, указанный для сети %(network)s, уже используется" + +msgid "Interface should be bare NIC, bonding or bridge device." +msgstr "" +"Интерфейс должен быть сетевой картой, устройством моста или связующим " +"устройством." + +#, python-format +msgid "Unable to create network %(name)s. Details: %(err)s" +msgstr "Не удалось создать сеть %(name)s. Сведения: %(err)s" + +#, python-format +msgid "Unable to find a free IP address for network '%(name)s'" +msgstr "Не найден свободный IP-адрес для сети %(name)s" + +#, python-format +msgid "The interface %(iface)s already exists." +msgstr "" + +msgid "Network name must be a string without slashes (/) or quotes (\")" +msgstr "" + +msgid "Supported network types are isolated, NAT and bridge" +msgstr "Поддерживаемые типы сетей: isolated, NAT и bridge" + +msgid "Network subnet must be a string with IP address and prefix or netmask" +msgstr "" +"Подсеть сети должна быть строкой, содержащей IP-адрес, префикс или маску сети" + +msgid "Network interface must be a string" +msgstr "Сетевой интерфейс должен быть строкой" + +msgid "Network VLAN ID must be an integer between 1 and 4094" +msgstr "Сетевой ИД VLAN должен быть целым числом от 1 до 4094" + +msgid "Specify name and type to create a Network" +msgstr "Укажите имя и тип для создания сети" + +#, python-format +msgid "" +"Unable to delete network %(name)s. There are some virtual machines %(vms)s " +"and/or templates linked to this network." +msgstr "" + +#, python-format +msgid "" +"Unable to deactivate network %(name)s. There are some virtual machines " +"%(vms)s and/or templates linked to this network." +msgstr "" + +#, python-format +msgid "Bridge device %(name)s can not be the trunk device of a VLAN." +msgstr "" +"Устройство моста %(name)s не может быть магистральным устройством VLAN." + +#, python-format +msgid "Failed to activate interface %(iface)s: %(err)s." +msgstr "Не удалось активировать интерфейс %(iface)s: %(err)s." + +#, python-format +msgid "" +"Failed to activate interface %(iface)s. Please check the physical link " +"status." +msgstr "" +"Не далось активировать интерфейс %(iface)s. Проверьте состояние физической " +"линии связи. " + +#, python-format +msgid "Failed to start network %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Debug report %(name)s does not exist" +msgstr "Отладочный отчет %(name)s не существует" + +msgid "Debug report tool not found in system" +msgstr "Инструмент отладочного отчета не найден в системе" + +#, python-format +msgid "Unable to create debug report %(name)s. Details: %(err)s." +msgstr "Не удалось создать отладочный отчет %(name)s. Сведения: %(err)s." + +#, python-format +msgid "Can not find any debug report with the given name %(name)s" +msgstr "" + +#, python-format +msgid "Unable to generate debug report %(name)s. Details: %(err)s" +msgstr "Не удалось создать отладочный отчет %(name)s. Сведения: %(err)s" + +msgid "You should give a name for the debug report file." +msgstr "" + +msgid "" +"Debug report name must be a string. Only letters, digits, underscore ('_') " +"and hyphen ('-') are allowed." +msgstr "" + +#, python-format +msgid "" +"The debug report with specified name \"%(name)s\" already exists. Please use " +"another one." +msgstr "" +"Группа томов с именем %(name)s уже существует. Выберите другое имя для " +"создания логического пула." + +#, python-format +msgid "Storage server %(server)s was not used by Kimchi" +msgstr "Сервер памяти %(server)s не использовался Kimchi" + +#, python-format +msgid "Distro '%(name)s' does not exist" +msgstr "Вариант ОС %(name)s не существует" + +#, python-format +msgid "Partition %(name)s does not exist in the host" +msgstr "Раздел %(name)s не существует на хосте" + +msgid "Unable to shutdown host machine as there are running virtual machines" +msgstr "" +"Не удалось завершить работу системы хоста: выполняются виртуальные машины" + +msgid "Unable to reboot host machine as there are running virtual machines" +msgstr "Не удалось перезагрузить систему хоста: выполняются виртуальные машины" + +#, python-format +msgid "Node device '%(name)s' not found" +msgstr "Устройство %(name)s узла не найдено" + +msgid "Conflicting flag filters specified." +msgstr "" + +msgid "No packages marked for update" +msgstr "Нет пакетов, помеченных для обновления" + +#, python-format +msgid "Package %(name)s is not marked to be updated." +msgstr "Пакет %(name)s не помечен для обновления." + +#, python-format +msgid "Error while getting packages marked to be updated. Details: %(err)s" +msgstr "Ошибка получения пакетов, помеченных для обновления. Сведения: %(err)s" + +msgid "There is no compatible package manager for this system." +msgstr "Нет совместимого администратора пакетов для этой системы." + +#, python-format +msgid "Unable to find %(item)s in datastore" +msgstr "Не найден %(item)s в хранилище данных" + +#, python-format +msgid "Invalid URI %(uri)s" +msgstr "Недопустимый URI %(uri)s" + +#, python-format +msgid "Timeout while running command '%(cmd)s' after %(seconds)s seconds" +msgstr "Истек тайм-аут выполнения команды %(cmd)s (%(seconds)s с)" + +msgid "Unable to choose a virtual machine name" +msgstr "" + +#, python-format +msgid "Invalid data value '%(value)s'" +msgstr "" + +#, python-format +msgid "Invalid data unit '%(unit)s'" +msgstr "" + +msgid "Invalid storage type. Types supported: 'cdrom', 'disk'" +msgstr "Недопустимый тип памяти. Поддерживаемые типы: cdrom" + +#, python-format +msgid "The path '%(value)s' is not a valid local/remote path for the device" +msgstr "" + +msgid "Only CDROM path can be update." +msgstr "" + +#, python-format +msgid "" +"The storage device %(dev_name)s does not exist in the virtual machine " +"%(vm_name)s" +msgstr "" + +#, python-format +msgid "Error while creating new storage device: %(error)s" +msgstr "Ошибка создания устройства хранения: %(error)s" + +#, python-format +msgid "Error while updating storage device: %(error)s" +msgstr "Ошибка обновления устройства хранения: %(error)s" + +#, python-format +msgid "Error while removing storage device: %(error)s" +msgstr "Ошибка удаления устройства хранения: %(error)s" + +msgid "Do not support IDE device hot plug" +msgstr "" + +msgid "" +"Specify type and path or type and pool/volume to add a new virtual machine " +"disk" +msgstr "Укажите тип и путь для добавления нового диска виртуальной машины" + +msgid "Specify path to update virtual machine disk" +msgstr "Укажите путь для обновления диска виртуальной машины" + +#, python-format +msgid "Controller type %(type)s limitation of %(limit)s devices reached" +msgstr "" + +#, python-format +msgid "Cannot retrieve disk path information for given pool/volume: %(error)s" +msgstr "" + +msgid "Volume already in use by other virtual machine." +msgstr "" + +msgid "" +"Only one of path or pool/volume can be specified to add a new virtual " +"machine disk" +msgstr "Укажите тип и путь для добавления нового диска виртуальной машины" + +#, python-format +msgid "" +"Volume chosen with format %(format)s does not fit in the storage type " +"%(type)s" +msgstr "" + +msgid "YUM Repository ID must be one word only string." +msgstr "" +"ИД хранилища YUM должен быть строкой, состоящей только из одного слова." + +msgid "Repository URL must be an http://, ftp:// or file:// URL." +msgstr "URL хранилища должен быть http://, ftp:// или file:// ." + +msgid "" +"Repository configuration is a dictionary with specific values according to " +"repository type." +msgstr "" +"Конфигурация хранилища представляет собой словарь значений, определяемых " +"типом хранилища." + +msgid "Distribution to DEB repository must be a string" +msgstr "Вариант для хранилища DEB должен быть строкой" + +msgid "Components to DEB repository must be listed in a array" +msgstr "Компоненты для хранилища DEB должны быть перечислены в массиве" + +msgid "Components to DEB repository must be a string" +msgstr "Компоненты для хранилища DEB должны быть строкой" + +msgid "Mirror list to repository must be a string" +msgstr "" + +msgid "YUM Repository name must be string." +msgstr "Имя хранилища YUM должно быть строкой." + +msgid "GPG check must be a boolean value." +msgstr "Проверка GPG должна быть булевским значением." + +msgid "GPG key must be a URL pointing to the ASCII-armored file." +msgstr "" +"Ключ GPG должен быть URL, указывающим на защищенный файл с кодированием " +"ASCII." + +#, python-format +msgid "Could not update repository %(repo_id)s." +msgstr "Не удалось обновить хранилище %(repo_id)s." + +#, python-format +msgid "Repository %(repo_id)s does not exist." +msgstr "Хранилище %(repo_id)s не существует." + +msgid "" +"Specify repository base URL, mirror list or metalink in order to create or " +"update a YUM repository." +msgstr "" + +msgid "Repository management tool was not recognized for your system." +msgstr "Не распознан инструмент управления хранилищем для системы." + +#, python-format +msgid "Repository %(repo_id)s is already enabled." +msgstr "Хранилище %(repo_id)s уже включено." + +#, python-format +msgid "Repository %(repo_id)s is already disabled." +msgstr "Хранилище %(repo_id)s уже выключено." + +#, python-format +msgid "Could not remove repository %(repo_id)s." +msgstr "Не удалось удалить хранилище %(repo_id)s." + +#, python-format +msgid "Could not write repository configuration file %(repo_file)s" +msgstr "Не удалось записать в файл конфигурации хранилища %(repo_file)s" + +msgid "Specify repository distribution in order to create a DEB repository." +msgstr "Укажите вариант хранилища для создания хранилища DEB." + +#, python-format +msgid "Could not enable repository %(repo_id)s." +msgstr "Не удалось включить хранилище %(repo_id)s." + +#, python-format +msgid "Could not disable repository %(repo_id)s." +msgstr "Не удалось выключить хранилище %(repo_id)s." + +msgid "YUM Repository ID already exists" +msgstr "ИД хранилища YUM уже существует" + +msgid "YUM Repository name must be a string" +msgstr "Имя хранилища YUM должно быть строкой" + +#, python-format +msgid "Unable to list repositories. Details: '%(err)s'" +msgstr "Не удалось вывести список хранилищ. Сведения: %(err)s" + +#, python-format +msgid "Unable to retrieve repository information. Details: '%(err)s'" +msgstr "Не удалось получить информацию о хранилище. Сведения: %(err)s" + +#, python-format +msgid "Unable to add repository. Details: '%(err)s'" +msgstr "Не удалось добавить хранилище. Сведения: %(err)s" + +#, python-format +msgid "Unable to remove repository. Details: '%(err)s'" +msgstr "Не удалось удалить хранилище. Сведения: %(err)s" + +#, python-format +msgid "" +"Configuration items: '%(items)s' are not supported by repository manager" +msgstr "" + +msgid "Repository metalink must be an http://, ftp:// or file:// URL." +msgstr "" + +msgid "Cannot specify mirrorlist and metalink at the same time." +msgstr "" + +#, python-format +msgid "" +"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it." +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Snapshot '%(name)s' does not exist on virtual machine '%(vm)s'." +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Unable to list snapshots on virtual machine '%(vm)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to delete snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to revert virtual machine '%(vm)s' to snapshot '%(name)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot of virtual machine '%(vm)s' because it contains a " +"disk with format '%(format)s'; only 'qcow2' is supported." +msgstr "" + +msgid "The number of vCPUs is too large for this system." +msgstr "" + +msgid "Invalid vCPU/topology combination." +msgstr "" + +msgid "This host (or current configuration) does not allow CPU topology." +msgstr "" + +msgid "ERROR CODE" +msgstr "Код ошибки" + +msgid "REASON" +msgstr "ПРИЧИНА" + +msgid "STACK" +msgstr "Стек" + +msgid "Go to Homepage" +msgstr "Перейти на главную страницу" + +msgid "Create a New Virtual Machine" +msgstr "Создать новую виртуальную машину" + +msgid "Virtual Machine Name" +msgstr "Имя виртуальной машины" + +msgid "" +"The name used to identify the virtual machine. If omitted, a name will be " +"chosen based on the template used." +msgstr "" +"Имя для идентификации виртуальной машины. Если не указано, имя будет выбрано " +"в зависимости от используемого шаблона." + +msgid "Template" +msgstr "Шаблон" + +msgid "Please create a template first." +msgstr "Пожалуйста, создайте шаблон в первую очередь." + +msgid "Create a Template" +msgstr "Создать шаблон" + +msgid "Please choose a template." +msgstr "Пожалуйста, выберите шаблон." + +msgid "OS" +msgstr "ОС" + +msgid "OS Version" +msgstr "Версия ОС" + +msgid "CPUS" +msgstr "Процессоры" + +msgid "Memory" +msgstr "Память" + +msgid "Create" +msgstr "Создать" + +msgid "Creating..." +msgstr "" + +msgid "Edit Guest" +msgstr "Изменить гостевую систему" + +msgid "General" +msgstr "Общее" + +msgid "Storage" +msgstr "Хранилище" + +msgid "Interface" +msgstr "Интерфейс" + +msgid "Permission" +msgstr "Версия" + +msgid "Host PCI Device" +msgstr "" + +msgid "Snapshot" +msgstr "" + +msgid "Name" +msgstr "Имя" + +msgid "CPUs" +msgstr "Процессоры" + +msgid "Memory (MB)" +msgstr "Память (Мб)" + +msgid "Icon" +msgstr "Значок" + +msgid "Device" +msgstr "Имя устройства" + +msgid "Path" +msgstr "Путь NFS" + +msgid "Network" +msgstr "Сеть" + +msgid "Type" +msgstr "Тип" + +msgid "MAC Address" +msgstr "" + +msgid "Available system users and groups" +msgstr "" + +msgid "Selected system users and groups" +msgstr "" + +msgid "User" +msgstr "" + +msgid "All" +msgstr "Все" + +msgid "To Add" +msgstr "" + +msgid "Added" +msgstr "" + +msgid "filter" +msgstr "" + +msgid "Product" +msgstr "" + +msgid "Vendor" +msgstr "Вендор" + +msgid "Created" +msgstr "" + +msgid "Save" +msgstr "Сохранить" + +msgid "Replace" +msgstr "Заменить" + +msgid "Detach" +msgstr "Отключить" + +msgid "Cancel" +msgstr "Отмена" + +msgid "revert" +msgstr "" + +msgid "Add a Storage Device to VM" +msgstr "Добавить устройство хранения в VM" + +msgid "Device Type" +msgstr "Тип устройства" + +msgid "The device type. Currently, \"cdrom\" and \"disk\" are supported." +msgstr "Тип устройства. В данный момент поддерживается только \"cdrom\"." + +msgid "Storage Pool" +msgstr "Пул памяти" + +msgid "Storage pool which volume located in" +msgstr "Путь к пулу памяти должен быть строкой" + +msgid "Storage Volume" +msgstr "Имя пула памяти" + +msgid "Storage volume to be attached" +msgstr "Имя тома должно быть строкой" + +msgid "File Path" +msgstr "Путь к файлу" + +msgid "The ISO file path in the server for CDROM." +msgstr "Путь к файлу ISO для CDROM на сервере." + +msgid "Attach" +msgstr "Подключить" + +msgid "Start" +msgstr "Запустить" + +msgid "Reset" +msgstr "Сбросить" + +msgid "Pause" +msgstr "" + +msgid "Resume" +msgstr "" + +msgid "Power Off" +msgstr "Выключить" + +msgid "Actions" +msgstr "Действия" + +msgid "Connect" +msgstr "Подключить" + +msgid "Clone" +msgstr "Клонировать" + +msgid "Edit" +msgstr "Редактировать" + +msgid "Shut Down" +msgstr "Завершить работу" + +msgid "Delete" +msgstr "Удалить" + +msgid "The username or password you entered is incorrect. Please try again." +msgstr "Указано неверное имя пользователя или пароль. Введите еще раз." + +msgid "This field is required." +msgstr "Это обязательное поле." + +msgid "Log in" +msgstr "Войти" + +msgid "Logging in..." +msgstr "Вход..." + +msgid "Host" +msgstr "Хост" + +msgid "Guests" +msgstr "Гостевые системы" + +msgid "Templates" +msgstr "Шаблоны" + +msgid "Failed to get application configuration" +msgstr "Не удалось получить конфигурацию приложения" + +msgid "This is not a valid Linux path" +msgstr "Этот недопустимый путь в Linux" + +msgid "This is not a valid URL." +msgstr "Это недопустимый URL." + +msgid "No such data available." +msgstr "Нет таких данных." + +msgid "" +"Can not contact the host system. Verify the host system is up and that you " +"have network connectivity to it. HTTP request response %1. " +msgstr "" +"Нет связи с системой хоста. Убедитесь, что система хоста работает и доступна " +"для подключения. Ответ на запрос HTTP: %1. " + +msgid "Unable to read file." +msgstr "" + +msgid "Error while uploading file." +msgstr "" + +msgid "Delete Confirmation" +msgstr "Подтверждение удаления" + +msgid "OK" +msgstr "OK" + +msgid "Confirm" +msgstr "Подтвердить" + +msgid "Warning" +msgstr "Предупреждение" + +msgid "Cloning..." +msgstr "" + +msgid "Loading..." +msgstr "Загружается..." + +msgid "An error occurred while retrieving system information." +msgstr "" + +msgid "Retry" +msgstr "Повторить" + +msgid "Detailed message:" +msgstr "Подробное сообщение:" + +msgid "No ISO found" +msgstr "" + +msgid "This is not a valid ISO file." +msgstr "Этот файл не является допустимым образом ISO." + +msgid "This may take a long time. Do you want to continue?" +msgstr "Это займет много времени. Продолжить?" + +msgid "This will permanently delete the template. Would you like to continue?" +msgstr "Шаблон будет безвозвратно удален. Продолжить?" + +msgid "Unable to shut down system as there are some virtual machines running!" +msgstr "" +"Невозможно завершить работу системы, поскольку в ней работают виртуальные " +"машины!" + +msgid "Max:" +msgstr "Макс.:" + +msgid "Utilization" +msgstr "Использование" + +msgid "Available" +msgstr "Доступно" + +msgid "Read Rate" +msgstr "Скорость чтения" + +msgid "Write Rate" +msgstr "Скорость записи" + +msgid "Received" +msgstr "Получено" + +msgid "Sent" +msgstr "Отправлено" + +msgid "" +"Shutting down or restarting host will cause unsaved work lost. Continue to " +"shut down/restarting?" +msgstr "" +"Завершение работы и перезапуск хоста приведут к потере несохраненной работы. " +"Продолжить завершение работы/перезапуск?" + +msgid "" +"Repository will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "Хранилище будет удалено без возможности восстановления. Продолжить?" + +msgid "Repositories" +msgstr "Хранилища" + +msgid "ID" +msgstr "ИД" + +msgid "Base URL" +msgstr "Базовый URL" + +msgid "Is Mirror" +msgstr "Зеркальная копия" + +msgid "URL Args" +msgstr "Аргументы URL" + +msgid "Enabled" +msgstr "Включено" + +msgid "GPG Check" +msgstr "Проверка GPG" + +msgid "GPG Key" +msgstr "Ключ GPG" + +msgid "Add" +msgstr "Добавить" + +msgid "Remove" +msgstr "Удалить" + +msgid "Enable" +msgstr "Включить" + +msgid "Disable" +msgstr "Выключить" + +msgid "Software Updates" +msgstr "Обновления программного обеспечения" + +msgid "Package Name" +msgstr "Имя пакета" + +msgid "Version" +msgstr "Версия" + +msgid "Architecture" +msgstr "Архитектура" + +msgid "Repository" +msgstr "Хранилище" + +msgid "Update All" +msgstr "Обновить всё" + +msgid "Updating..." +msgstr "Обновление..." + +msgid "Failed to retrieve packages update information." +msgstr "" + +msgid "Failed to update package(s)." +msgstr "Не удалось обновить пакеты." + +msgid "" +"Debug report will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" +"Отладочный отчет будет удален без возможности восстановления. Продолжить?" + +msgid "Debug Reports" +msgstr "Отладочные отчеты" + +msgid "Generated Time" +msgstr "Время создания" + +msgid "Generate" +msgstr "Создать" + +msgid "Generating..." +msgstr "Создание..." + +msgid "Rename" +msgstr "Переименовать" + +msgid "Download" +msgstr "Загрузить" + +msgid "" +"Report name should contain only letters, digits, underscore ('_') and/or " +"hyphen ('-')." +msgstr "Имя отчета должно содержать только буквы, цифры и дефисы ('-')." + +msgid "Pending..." +msgstr "Загружается..." + +msgid "Report name is the same as the original one." +msgstr "" + +msgid "" +"This will delete the virtual machine and its virtual disks. This operation " +"cannot be undone. Would you like to continue?" +msgstr "" +"Будет удалена виртуальная машина вместе со своими виртуальными дисками. Это " +"необратимая операция. Продолжить?" + +msgid "Power off Confirmation" +msgstr "Подтверждение удаления" + +msgid "" +"This action may produce undesirable results, for example unflushed disk " +"cache in the guest. Would you like to continue?" +msgstr "" + +msgid "Reset Confirmation" +msgstr "Подтверждение удаления" + +msgid "" +"There is a risk of data loss caused by reset without the guest OS shutdown. " +"Would you like to continue?" +msgstr "" + +msgid "Shut Down Confirmation" +msgstr "Подтверждение удаления" + +msgid "Note the guest OS may ignore this request. Would you like to continue?" +msgstr "Шаблон будет безвозвратно удален. Продолжить?" + +msgid "Virtual Machine delete Confirmation" +msgstr "" + +msgid "" +"This virtual machine is not persistent. Power Off will delete it. Continue?" +msgstr "" + +msgid "" +"When the target guest has SCSI or iSCSI volumes, they will be cloned on " +"default storage pool. The same will happen when the target pool does not " +"have enough space to clone the volumes. Do you want to continue?" +msgstr "" + +msgid "" +"This CDROM will be detached permanently and you can re-attach it. Continue " +"to detach it?" +msgstr "" +"Этот CDROM будет отключен. Его можно будет снова подключить. Отключить?" + +msgid "Attaching..." +msgstr "Подключение..." + +msgid "Replacing..." +msgstr "Замена..." + +msgid "Successfully attached!" +msgstr "Успешно подключен!" + +msgid "Successfully replaced!" +msgstr "Успешно заменен!" + +msgid "Successfully detached!" +msgstr "Успешно отключен!" + +msgid "" +"This disk will be detached permanently and you can re-attach it. Continue to " +"detach it?" +msgstr "" + +msgid "interface:" +msgstr "" + +msgid "address:" +msgstr "" + +msgid "link_type:" +msgstr "" + +msgid "block:" +msgstr "" + +msgid "drive_type:" +msgstr "" + +msgid "model:" +msgstr "" + +msgid "Affected devices:" +msgstr "" + +msgid "The VLAN id must be between 1 and 4094." +msgstr "ИД VLAN должен быть от 1 до 4094." + +msgid "unavailable" +msgstr "недоступно" + +msgid "" +"This action will interrupt network connectivity for any virtual machine that " +"depend on this network." +msgstr "" +"Это действие нарушит сетевые соединения у всех виртуальных машин, которые " +"зависят от этой сети." + +msgid "Create a network" +msgstr "Создать сеть" + +msgid "" +"This network is not persistent. Instead of stop, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"Этот пул памяти не постоянный. Вместо деактивации, это действие безвозвратно " +"его удалит. Продолжить?" + +msgid "" +"The bridged VLAN tag may not work well with NetworkManager enabled. You " +"should consider disabling it." +msgstr "" + +msgid "" +"This will permanently delete the storage pool. Would you like to continue?" +msgstr "Пул памяти будет безвозвратно удален. Продолжить?" + +msgid "This storage pool is empty." +msgstr "Этот пул памяти пустой." + +msgid "" +"It will format your disk and you will loose any data in there, are you sure " +"to continue? " +msgstr "" +"Диск будет отформатирован, и все данные на нем будут потеряны. Вы " +"действительно хотите продолжить? " + +msgid "SCSI Fibre Channel" +msgstr "SCSI Fibre Channel" + +msgid "No SCSI adapters found." +msgstr "Не найдены адаптеры SCSI." + +msgid "Loading iSCSI targets..." +msgstr "" + +msgid "No iSCSI found. Please input one." +msgstr "" + +msgid "Failed to load iSCSI targets." +msgstr "" + +msgid "The storage pool name can not be blank." +msgstr "Не указано имя пула памяти." + +msgid "The storage pool path can not be blank." +msgstr "Не указан путь к пулу памяти." + +msgid "NFS server mount path can not be blank." +msgstr "Не указан путь монтирования сервера NFS." + +msgid "Invalid NFS mount path." +msgstr "Недопустимый путь монтирования NFS." + +msgid "No logical device selected." +msgstr "Не выбрано логическое устройство." + +msgid "The iSCSI target can not be blank." +msgstr "Не указан целевой объект iSCSI." + +msgid "Server name can not be blank." +msgstr "Не указано имя сервера." + +msgid "This is not a valid Server Name or IP. Please, modify it." +msgstr "" + +msgid "Looking for available partitions ..." +msgstr "Поиск доступных разделов..." + +msgid "No available partitions found." +msgstr "Не найдены доступные разделы." + +msgid "" +"This storage pool is not persistent. Instead of deactivate, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"Этот пул памяти не постоянный. Вместо деактивации, это действие безвозвратно " +"его удалит. Продолжить?" + +msgid "Unable to retrieve partitions information." +msgstr "Не удалось получить информацию о хранилище. Сведения: %(err)s" + +msgid "In progress..." +msgstr "" + +msgid "Failed!" +msgstr "" + +msgid "CDROM path needs to be a valid local/remote path and cannot be blank." +msgstr "" + +msgid "Disk pool or volume cannot be blank." +msgstr "Не указано имя пула памяти." + +msgid "Peers" +msgstr "" + +msgid "Searching" +msgstr "" + +msgid "No peers found." +msgstr "" + +msgid "Help" +msgstr "Помощь" + +msgid "About" +msgstr "О программе" + +msgid "Log out" +msgstr "Выйти" + +msgid "Version:" +msgstr "Версия:" + +msgid "Session timeout, please re-login." +msgstr "" + +msgid "User Name" +msgstr "Имя пользователя" + +msgid "Password" +msgstr "Пароль" + +msgid "Generate a New Debug Report" +msgstr "Создать новый отладочный отчет" + +msgid "Report Name" +msgstr "Имя отчета" + +msgid "" +"The name used to identify the report. If omitted, a name will be chosen " +"based on current time. Name can contain: letters, digits, underscore (\"_\") " +"and hyphen (\"-\")." +msgstr "" +"Имя для идентификации отчета. Если не указано, имя будет сформировано на " +"основе текущего времени. Имя может содержать: буквы, цифры и дефисы (\"-\")." + +msgid "Rename a Debug Report" +msgstr "Создать новый отладочный отчет" + +msgid "" +"The name used to identify the report. Name can contain: letters, digits and " +"hyphen (\"-\")." +msgstr "" +"Имя для идентификации отчета. Если не указано, имя будет сформировано на " +"основе текущего времени. Имя может содержать: буквы, цифры и дефисы (\"-\")." + +msgid "Submit" +msgstr "Подтвердить" + +msgid "Add a Repository" +msgstr "Добавить хранилище" + +msgid "Identifier" +msgstr "Идентификатор" + +msgid "Single word, unique identifier for the repository." +msgstr "Одиночное слово - уникальный идентификатор хранилища." + +msgid "Textual name for the repository." +msgstr "Текстовое имя хранилища." + +msgid "URL" +msgstr "URL" + +msgid "Required Field" +msgstr "Обязательное поле" + +msgid "URL to the repository. Supported protocols are http, ftp, and file." +msgstr "URL хранилища. Поддерживаемые протоколы: http, ftp, file." + +msgid "Repository is a mirror" +msgstr "Хранилище является зеркальной копией." + +msgid "Distribution" +msgstr "Вариант" + +msgid "Distribution of the DEB repository." +msgstr "Вариант хранилища DEB." + +msgid "Components" +msgstr "Компоненты" + +msgid "List of components in DEB repository." +msgstr "Список компонентов в хранилище DEB." + +msgid "Edit Repository" +msgstr "Изменить хранилище" + +msgid "Mirror List URL" +msgstr "URL списка зеркальных копий" + +msgid "Yes" +msgstr "Да" + +msgid "No" +msgstr "Нет" + +msgid "Add a Volume to Storage Pool" +msgstr "" + +msgid "Fetch from remote URL" +msgstr "" + +msgid "Enter the remote URL here." +msgstr "" + +msgid "Upload a file" +msgstr "" + +msgid "Choose the file you want to upload." +msgstr "" + +msgid "Define a New Storage Pool" +msgstr "Создать пул памяти" + +msgid "Storage Pool Name" +msgstr "Имя пула памяти" + +msgid "" +"The name used to identify the storage pools, and it should not be empty." +msgstr "Имя для идентификации пулов памяти. Не может быть пустым." + +msgid "Storage Pool Type" +msgstr "Тип пула памяти" + +msgid "Storage Path" +msgstr "Путь к диску" + +msgid "" +"The path of the Storage Pool. Each Storage Pool must have a unique path." +msgstr "Путь к пулу памяти. Каждый пул памяти должен иметь уникальный путь." + +msgid "" +"Kimchi will try to create the directory when it does not already exist in " +"your system." +msgstr "Kimchi попытается создать каталог, если он не существует в системе." + +msgid "NFS Server IP" +msgstr "IP-адрес сервера NFS" + +msgid "NFS server IP or hostname. It can be input or chosen from history." +msgstr "" +"IP-адрес или имя хоста сервера NFS. Его можно ввести или выбрать в " +"хронологии." + +msgid "NFS Path" +msgstr "Путь NFS" + +msgid "The NFS exported path on NFS server." +msgstr "Экспортированный путь NFS на сервере NFS." + +msgid "Device path" +msgstr "Путь к устройству" + +msgid "iSCSI Server" +msgstr "Сервер iSCSI" + +msgid "iSCSI server IP or hostname. It should not be empty." +msgstr "IP-адрес или имя хоста сервера iSCSI. Не может быть пустым." + +msgid "Server" +msgstr "Сервер" + +msgid "Port" +msgstr "Порт" + +msgid "Target" +msgstr "Целевой объект" + +msgid "The iSCSI target on iSCSI server" +msgstr "Целевой объект iSCSI на сервере iSCSI" + +msgid "Add iSCSI Authentication" +msgstr "Добавить идентификацию iSCSI" + +msgid "iSCSI Authentication" +msgstr "Идентификация iSCSI" + +msgid "SCSI Adapter" +msgstr "Адаптер SCSI" + +msgid "Please, wait..." +msgstr "Подождите..." + +msgid "Add Template" +msgstr "Добавить шаблон" + +msgid "Where is the source media for this template? " +msgstr "Где находится исходный носитель для этого шаблона?" + +msgid "Local ISO Image" +msgstr "Локальный образ ISO" + +msgid "Local Image File" +msgstr "" + +msgid "Remote ISO Image" +msgstr "Удаленный образ ISO" + +msgid "Search ISOs" +msgstr "Поиск образов ISO" + +msgid "The following ISOs are available:" +msgstr "Доступные образы ISO:" + +msgid "OS: " +msgstr "ОС: " + +msgid "Version: " +msgstr "Версия: " + +msgid "Size: " +msgstr "Размер: " + +msgid "Search more ISOs" +msgstr "Поиск дополнительных образов ISO" + +msgid "Create Templates from Selected ISO" +msgstr "Создать шаблоны из выбранных образов ISO" + +msgid "I want to use a specific ISO file" +msgstr "Использовать конкретный файл ISO" + +msgid "Loading default remote ISOs ..." +msgstr "Загрузка удаленных ISO по умолчанию..." + +msgid "Arch: " +msgstr "Архитектура: " + +msgid "I want to use a custom URL" +msgstr "Использовать другой URL" + +msgid "Edit Template" +msgstr "Изменить шаблон" + +msgid "Processor" +msgstr "Процессор" + +msgid "CDROM" +msgstr "CDROM" + +msgid "Image File" +msgstr "" + +msgid "Graphics" +msgstr "Графика" + +msgid "Disk(GB)" +msgstr "" + +msgid "Disk Format" +msgstr "" + +msgid "CPU Number" +msgstr "Количество процессоров" + +msgid "Manually set CPU topology" +msgstr "" + +msgid "Cores" +msgstr "" + +msgid "Threads" +msgstr "" + +msgid "CPU" +msgstr "Процессор" + +msgid "Disk I/O" +msgstr "Дисковый ввод-вывод" + +msgid "Network I/O" +msgstr "Сетевой ввод-вывод" + +msgid "Livetile" +msgstr "Livetile" + +msgid "No guests found." +msgstr "Не найдены гостевые системы." + +msgid "Shut down" +msgstr "Выключен" + +msgid "Restart" +msgstr "Перезапуск" + +msgid "Basic Information" +msgstr "Базовая информация" + +msgid "OS Distro" +msgstr "Вариант ОС" + +msgid "OS Code Name" +msgstr "Кодовое имя ОС" + +msgid "CPU(s)" +msgstr "" + +msgid "System Statistics" +msgstr "Системная статистика" + +msgid "Update Progress" +msgstr "Ход обновления" + +msgid "Network Name" +msgstr "Имя сети" + +msgid "State" +msgstr "Состояние" + +msgid "Network Type" +msgstr "Тип сети" + +msgid "Address Space" +msgstr "Адресное пространство" + +msgid "Name should not contain '/' and '\"'." +msgstr "Недопустимое имя пула памяти. В имени не должно быть символов '/'." + +msgid "Isolated: no external network connection" +msgstr "Изолированный (без физических сетевых соединений)" + +msgid "NAT: outbound physical network connection only" +msgstr "NAT (только исходящее физическое сетевое соединение)" + +msgid "Bridged: Virtual machines are connected to physical network directly" +msgstr "Через мост (прямое подключение виртуальных машин к физической сети)" + +msgid "(No interfaces found)" +msgstr "" + +msgid "Destination" +msgstr "Целевое расположение:" + +msgid "Enable VLAN" +msgstr "Включить VLAN:" + +msgid "VLAN ID" +msgstr "" + +msgid "Stop" +msgstr "Завершить" + +msgid "%Used" +msgstr "" + +msgid "Location" +msgstr "Расположение" + +msgid "Capacity" +msgstr "Емкость" + +msgid "Allocated" +msgstr "Выделено" + +msgid "active" +msgstr "активен" + +msgid "inactive" +msgstr "неактивен" + +msgid "Deactivate" +msgstr "Выключить" + +msgid "Activate" +msgstr "Активировать" + +msgid "Add Volume" +msgstr "" + +msgid "Extend" +msgstr "" + +msgid "Undefine" +msgstr "Удалить" + +msgid "Format" +msgstr "Формат:" + +msgid "Allocation" +msgstr "Выделение ресурсов:" + +msgid "No templates found." +msgstr "Не найдены шаблоны." diff --git a/po/wok.pot b/po/wok.pot new file mode 100755 index 0000000..76a1246 --- /dev/null +++ b/po/wok.pot @@ -0,0 +1,2156 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-09 17:37-0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#, python-format +msgid "Unknown parameter %(value)s" +msgstr "" + +#, python-format +msgid "Delete is not allowed for %(resource)s" +msgstr "" + +#, python-format +msgid "%(resource)s does not implement update method" +msgstr "" + +#, python-format +msgid "Create is not allowed for %(resource)s" +msgstr "" + +msgid "Unable to parse JSON request" +msgstr "" + +msgid "This API only supports JSON" +msgstr "" + +#, python-format +msgid "Parameters does not match requirement in schema: %(err)s" +msgstr "" + +msgid "You don't have permission to perform this operation." +msgstr "" + +msgid "Datastore is not initiated in the model object." +msgstr "" + +#, python-format +msgid "Unable to start task due error: %(err)s" +msgstr "" + +#, python-format +msgid "Timeout of %(seconds)s seconds expired while running task '%(task)s." +msgstr "" + +#, python-format +msgid "Authentication failed for user '%(username)s'. [Error code: %(code)s]" +msgstr "" + +msgid "You are not authorized to access Kimchi" +msgstr "" + +#, python-format +msgid "Specify %(item)s to login into Kimchi" +msgstr "" + +#, python-format +msgid "User %(user_id)s not found with given LDAP settings." +msgstr "" + +#, python-format +msgid "Invalid LDAP configuration: %(item)s : %(value)s" +msgstr "" + +msgid "Unknown \"_cap\" specified" +msgstr "" + +msgid "\"_passthrough\" should be \"true\" or \"false\"" +msgstr "" + +msgid "\"_passthrough_affected_by\" should be a device name string" +msgstr "" + +#, python-format +msgid "Error while getting block devices. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Error while getting block device information for %(device)s." +msgstr "" + +#, python-format +msgid "Unable to find distro file: %(filename)s" +msgstr "" + +#, python-format +msgid "" +"Unable to parse distro file: %(filename)s. Make sure, it is a JSON file." +msgstr "" + +#, python-format +msgid "Unable to login to iSCSI host target %(portal)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to login to iSCSI host %(host)s target %(target)s" +msgstr "" + +#, python-format +msgid "Unable to find ISO file %(filename)s" +msgstr "" + +#, python-format +msgid "The ISO file %(filename)s is not bootable" +msgstr "" + +#, python-format +msgid "The ISO file %(filename)s does not have a valid El Torito boot record" +msgstr "" + +#, python-format +msgid "Invalid El Torito validation entry in ISO %(filename)s" +msgstr "" + +#, python-format +msgid "Invalid El Torito boot indicator in ISO %(filename)s" +msgstr "" + +#, python-format +msgid "Unexpected volume type for primary volume in ISO %(filename)s" +msgstr "" + +#, python-format +msgid "Bad format while reading volume descriptor in ISO %(filename)s" +msgstr "" + +#, python-format +msgid "" +"The hypervisor doesn't have permission to use this ISO %(filename)s. " +"Consider moving it under /var/lib/libvirt, or set the search permission to " +"file access control lists for '%(user)s' user if possible, or add the " +"'%(user)s' to the ISO path group, or (not recommended) 'chmod -R o+x " +"'path_to_iso'.Details: %(err)s" +msgstr "" + +msgid "An error occurred when probing image OS information." +msgstr "" + +msgid "No OS information found in given image." +msgstr "" + +#, python-format +msgid "Unable to read image file %(filename)s" +msgstr "" + +#, python-format +msgid "" +"Image file must be an existing file on system. %(filename)s is not a valid " +"input." +msgstr "" + +#, python-format +msgid "Virtual machine %(name)s already exists" +msgstr "" + +#, python-format +msgid "Virtual machine %(name)s does not exist" +msgstr "" + +#, python-format +msgid "" +"Unable to rename virtual machine %(name)s. The name %(new_name)s is already " +"in use or the virtual machine is not powered off." +msgstr "" + +#, python-format +msgid "Unable to retrieve screenshot for stopped virtual machine %(name)s" +msgstr "" + +msgid "Remote ISO image is not supported by this server." +msgstr "" + +#, python-format +msgid "Screenshot is not supported on virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Unable to create virtual machine %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to update virtual machine %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to retrieve virtual machine %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to connect to powered off virtual machine %(name)s." +msgstr "" + +msgid "Virtual machine name must be a string without slashes (/)" +msgstr "" + +#, python-format +msgid "Invalid template URI %(value)s specified for virtual machine" +msgstr "" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for virtual machine" +msgstr "" + +msgid "Supported virtual machine graphics are Spice or VNC" +msgstr "" + +msgid "Graphics address to listen on must be IPv4 or IPv6" +msgstr "" + +msgid "Specify a template to create a virtual machine from" +msgstr "" + +#, python-format +msgid "Unable to start virtual machine %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to power off virtual machine %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to delete virtual machine %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to reset virtual machine %(name)s. Details: %(err)s" +msgstr "" + +msgid "User name list must be an array" +msgstr "" + +msgid "User name must be a string" +msgstr "" + +msgid "Group name list must be an array" +msgstr "" + +msgid "Group name must be a string" +msgstr "" + +#, python-format +msgid "User(s) '%(users)s' do not exist" +msgstr "" + +#, python-format +msgid "Group(s) '%(groups)s' do not exist" +msgstr "" + +#, python-format +msgid "Unable to shutdown virtual machine %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to get access metadata of virtual machine %(name)s. Details: %(err)s" +msgstr "" + +msgid "The guest console password must be a string." +msgstr "" + +msgid "The life time for the guest console password must be a number." +msgstr "" + +#, python-format +msgid "Virtual machine '%(name)s' must be stopped before cloning it." +msgstr "" + +#, python-format +msgid "Insufficient disk space to clone virtual machine '%(name)s'" +msgstr "" + +#, python-format +msgid "Unable to clone VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Invalid operation for non-persistent virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Cannot suspend VM '%(name)s' because it is not running." +msgstr "" + +#, python-format +msgid "Unable to suspend VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Cannot resume VM '%(name)s' because it is not paused." +msgstr "" + +#, python-format +msgid "Unable to resume VM '%(name)s'. Details: %(err)s" +msgstr "" + +msgid "Memory assigned is higher then the maximum allowed in the host." +msgstr "" + +#, python-format +msgid "" +"VM '%(name)s' does not support live memory update. Update the memory with " +"the machine offline to enable this feature." +msgstr "" + +msgid "Only increase memory is allowed in active VMs" +msgstr "" + +msgid "" +"For live memory update, new memory value must be equal old memory value plus " +"multiples of 1024 Mib" +msgstr "" + +msgid "There are not enough free slots of 1024 Mib in the guest." +msgstr "" + +msgid "" +"Host's libvirt version does not support memory devices. Libvirt must be >= " +"1.2.14" +msgstr "" + +#, python-format +msgid "Error attaching memory device. Details: %(error)s" +msgstr "" + +#, python-format +msgid "" +"VM %(vmid)s does not contain directly assigned host device %(dev_name)s." +msgstr "" + +#, python-format +msgid "The host device %(dev_name)s is not allowed to directly assign to VM." +msgstr "" + +msgid "" +"No IOMMU groups found. Host PCI pass through needs IOMMU group to function " +"correctly. Please enable Intel VT-d or AMD IOMMU in your BIOS, then verify " +"the Kernel is compiled with IOMMU support. For Intel CPU, add intel_iommu=on " +"to your Kernel parameter in /boot/grub2/grub.conf. For AMD CPU, add iommu=pt " +"iommu=1." +msgstr "" + +msgid "\"name\" should be a device name string" +msgstr "" + +#, python-format +msgid "Interface %(iface)s does not exist in virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "" +"Network %(network)s specified for virtual machine %(name)s does not exist" +msgstr "" + +msgid "Supported virtual machine interfaces type is only network" +msgstr "" + +msgid "Network name for virtual machine interface must be a string" +msgstr "" + +msgid "Invalid network model card specified for virtual machine interface" +msgstr "" + +msgid "Specify type and network to add a new virtual machine interface" +msgstr "" + +msgid "MAC Address must respect this format FF:FF:FF:FF:FF:FF" +msgstr "" + +#, python-format +msgid "MAC Address %(mac)s already exists in virtual machine %(name)s" +msgstr "" + +msgid "Invalid MAC Address" +msgstr "" + +msgid "Cannot change MAC address of a running virtual machine" +msgstr "" + +#, python-format +msgid "Template %(name)s already exists" +msgstr "" + +#, python-format +msgid "" +"Network '%(network)s' specified for template %(template)s does not exist" +msgstr "" + +#, python-format +msgid "" +"Storage pool %(pool)s specified for template %(template)s does not exist" +msgstr "" + +#, python-format +msgid "Storage pool %(pool)s specified for template %(template)s is not active" +msgstr "" + +#, python-format +msgid "Invalid parameter '%(param)s' specified for CDROM." +msgstr "" + +#, python-format +msgid "Network %(network)s specified for template %(template)s is not active" +msgstr "" + +msgid "Template name must be a string" +msgstr "" + +msgid "Template icon must be a path to the image" +msgstr "" + +msgid "Template distribution must be a string" +msgstr "" + +msgid "Template distribution version must be a string" +msgstr "" + +msgid "The number of CPUs must be an integer greater than 0" +msgstr "" + +msgid "Amount of memory (MB) must be an integer greater than 512" +msgstr "" + +msgid "Template CDROM must be a local or remote ISO file" +msgstr "" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for template" +msgstr "" + +msgid "Specify an ISO image as CDROM or a base image to create a template" +msgstr "" + +msgid "All networks for the template must be specified in a list." +msgstr "" + +msgid "Specify a volume to a template when storage pool is iSCSI or SCSI" +msgstr "" + +#, python-format +msgid "The volume %(volume)s is not in storage pool %(pool)s" +msgstr "" + +#, python-format +msgid "Unable to create template due error: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to delete template due error: %(err)s" +msgstr "" + +msgid "Disk size must be an integer greater than 1GB." +msgstr "" + +msgid "Template base image must be a valid local image file" +msgstr "" + +#, python-format +msgid "Cannot identify base image %(path)s format" +msgstr "" + +msgid "" +"When specifying CPU topology, VCPUs must be a product of sockets, cores, and " +"threads." +msgstr "" + +msgid "" +"When specifying CPU topology, each element must be an integer greater than " +"zero." +msgstr "" + +msgid "" +"Invalid disk image format. Valid formats: bochs, cloop, cow, dmg, qcow, " +"qcow2, qed, raw, vmdk, vpc." +msgstr "" + +#, python-format +msgid "Storage pool %(name)s already exists" +msgstr "" + +#, python-format +msgid "Storage pool %(name)s does not exist" +msgstr "" + +#, python-format +msgid "Specify %(item)s in order to create the storage pool %(name)s" +msgstr "" + +#, python-format +msgid "Unable to delete active storage pool %(name)s" +msgstr "" + +#, python-format +msgid "Unable to list storage pools. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to create storage pool %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to get number of storage volumes in storage pool %(name)s. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Unable to activate storage pool %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to deactivate storage pool %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to delete storage pool %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to create NFS Pool as export path %(path)s may block during mount" +msgstr "" + +#, python-format +msgid "Unable to create NFS Pool as export path %(path)s mount failed" +msgstr "" + +#, python-format +msgid "Unsupported storage pool type: %(type)s" +msgstr "" + +#, python-format +msgid "Error while retrieving storage pool XML to %(pool)s" +msgstr "" + +msgid "Storage pool name must be a string without slashes (/)" +msgstr "" + +msgid "" +"Supported storage pool types are dir, netfs, logical, iscsi, isci and kimchi-" +"iso" +msgstr "" + +msgid "Storage pool path must be a string" +msgstr "" + +msgid "Storage pool host must be a IP or hostname" +msgstr "" + +msgid "Storage pool device must be the absolute path to the block device" +msgstr "" + +msgid "Storage pool devices parameter must be a list" +msgstr "" + +msgid "Target IQN of an iSCSI pool must be a string" +msgstr "" + +msgid "Port of a remote storage server must be an integer between 1 and 65535" +msgstr "" + +msgid "iSCSI target username must be a string" +msgstr "" + +msgid "iSCSI target password must be a string" +msgstr "" + +msgid "Specify name and type to create a storage pool" +msgstr "" + +#, python-format +msgid "" +"%(disk)s is not a valid disk/partition. Could not add it to the pool " +"%(pool)s." +msgstr "" + +#, python-format +msgid "Unable to extend logical pool %(pool)s. Details: %(err)s" +msgstr "" + +msgid "The parameter disks only can be updated for logical storage pool." +msgstr "" + +msgid "The SCSI host adapter name must be a string." +msgstr "" + +msgid "The storage pool kimchi_isos is reserved for internal use" +msgstr "" + +#, python-format +msgid "" +"Unable to activate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" + +#, python-format +msgid "" +"Unable to deactivate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "" + +#, python-format +msgid "" +"Unable to deactivate pool %(name)s as it is associated with some templates" +msgstr "" + +#, python-format +msgid "Unable to delete pool %(name)s as it is associated with some templates" +msgstr "" + +#, python-format +msgid "" +"A volume group named '%(name)s' already exists. Please, choose another name " +"to create the logical pool." +msgstr "" + +#, python-format +msgid "Unable to update database with deep scan information due error: %(err)s" +msgstr "" + +#, python-format +msgid "Storage volume %(name)s already exists" +msgstr "" + +#, python-format +msgid "Storage volume %(name)s does not exist in storage pool %(pool)s" +msgstr "" + +#, python-format +msgid "" +"Unable to create storage volume %(volume)s because storage pool %(pool)s is " +"not active" +msgstr "" + +#, python-format +msgid "Specify %(item)s in order to create storage volume %(volume)s" +msgstr "" + +#, python-format +msgid "" +"Unable to list storage volumes because storage pool %(pool)s is not active" +msgstr "" + +#, python-format +msgid "" +"Unable to create storage volume %(name)s in storage pool %(pool)s. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to list storage volumes in storage pool %(pool)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to wipe storage volumes %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to delete storage volume %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to resize storage volume %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Storage type %(type)s does not support volume create and delete" +msgstr "" + +msgid "Storage volume name must be a string" +msgstr "" + +msgid "Storage volume allocation must be an integer number" +msgstr "" + +msgid "" +"Storage volume format not supported. Valid formats: bochs, cloop, cow, dmg, " +"qcow, qcow2, qed, raw, vmdk, vpc." +msgstr "" + +msgid "Storage volume requires a volume name" +msgstr "" + +#, python-format +msgid "" +"Unable to update database with storage volume information due error: %(err)s" +msgstr "" + +#, python-format +msgid "Only one of parameter %(param)s can be specified" +msgstr "" + +#, python-format +msgid "Create volume from %(param)s is not supported" +msgstr "" + +msgid "Storage volume capacity must be an integer number." +msgstr "" + +msgid "Storage volume URL must be http://, https://, ftp:// or ftps://." +msgstr "" + +#, python-format +msgid "Unable to access file %(url)s. Please, check it." +msgstr "" + +#, python-format +msgid "" +"Unable to clone storage volume '%(name)s' in pool '%(pool)s'. Details: " +"%(err)s" +msgstr "" + +msgid "Specify chunk data and its size to upload a file." +msgstr "" + +msgid "In order to upload a storage volume, specify the 'upload' parameter." +msgstr "" + +msgid "" +"Unable to upload chunk data as it does not match with requested chunk size." +msgstr "" + +#, python-format +msgid "The storage volume %(vol)s is not under an upload process." +msgstr "" + +msgid "The upload chunk data will exceed the storage volume size." +msgstr "" + +#, python-format +msgid "Unable to upload chunk data to storage volume. Details: %(err)s." +msgstr "" + +#, python-format +msgid "Interface %(name)s does not exist" +msgstr "" + +#, python-format +msgid "Network %(name)s already exists" +msgstr "" + +#, python-format +msgid "Network %(name)s does not exist" +msgstr "" + +#, python-format +msgid "Subnet %(subnet)s specified for network %(network)s is not valid." +msgstr "" + +#, python-format +msgid "Specify a network interface to create bridged network %(name)s" +msgstr "" + +#, python-format +msgid "Unable to delete active network %(name)s" +msgstr "" + +#, python-format +msgid "Interface %(iface)s specified for network %(network)s is already in use" +msgstr "" + +msgid "Interface should be bare NIC, bonding or bridge device." +msgstr "" + +#, python-format +msgid "Unable to create network %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Unable to find a free IP address for network '%(name)s'" +msgstr "" + +#, python-format +msgid "The interface %(iface)s already exists." +msgstr "" + +msgid "Network name must be a string without slashes (/) or quotes (\")" +msgstr "" + +msgid "Supported network types are isolated, NAT and bridge" +msgstr "" + +msgid "Network subnet must be a string with IP address and prefix or netmask" +msgstr "" + +msgid "Network interface must be a string" +msgstr "" + +msgid "Network VLAN ID must be an integer between 1 and 4094" +msgstr "" + +msgid "Specify name and type to create a Network" +msgstr "" + +#, python-format +msgid "" +"Unable to delete network %(name)s. There are some virtual machines %(vms)s " +"and/or templates linked to this network." +msgstr "" + +#, python-format +msgid "" +"Unable to deactivate network %(name)s. There are some virtual machines " +"%(vms)s and/or templates linked to this network." +msgstr "" + +#, python-format +msgid "Bridge device %(name)s can not be the trunk device of a VLAN." +msgstr "" + +#, python-format +msgid "Failed to activate interface %(iface)s: %(err)s." +msgstr "" + +#, python-format +msgid "" +"Failed to activate interface %(iface)s. Please check the physical link " +"status." +msgstr "" + +#, python-format +msgid "Failed to start network %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Debug report %(name)s does not exist" +msgstr "" + +msgid "Debug report tool not found in system" +msgstr "" + +#, python-format +msgid "Unable to create debug report %(name)s. Details: %(err)s." +msgstr "" + +#, python-format +msgid "Can not find any debug report with the given name %(name)s" +msgstr "" + +#, python-format +msgid "Unable to generate debug report %(name)s. Details: %(err)s" +msgstr "" + +msgid "You should give a name for the debug report file." +msgstr "" + +msgid "" +"Debug report name must be a string. Only letters, digits, underscore ('_') " +"and hyphen ('-') are allowed." +msgstr "" + +#, python-format +msgid "" +"The debug report with specified name \"%(name)s\" already exists. Please use " +"another one." +msgstr "" + +#, python-format +msgid "Storage server %(server)s was not used by Kimchi" +msgstr "" + +#, python-format +msgid "Distro '%(name)s' does not exist" +msgstr "" + +#, python-format +msgid "Partition %(name)s does not exist in the host" +msgstr "" + +msgid "Unable to shutdown host machine as there are running virtual machines" +msgstr "" + +msgid "Unable to reboot host machine as there are running virtual machines" +msgstr "" + +#, python-format +msgid "Node device '%(name)s' not found" +msgstr "" + +msgid "Conflicting flag filters specified." +msgstr "" + +msgid "No packages marked for update" +msgstr "" + +#, python-format +msgid "Package %(name)s is not marked to be updated." +msgstr "" + +#, python-format +msgid "Error while getting packages marked to be updated. Details: %(err)s" +msgstr "" + +msgid "There is no compatible package manager for this system." +msgstr "" + +#, python-format +msgid "Unable to find %(item)s in datastore" +msgstr "" + +#, python-format +msgid "Invalid URI %(uri)s" +msgstr "" + +#, python-format +msgid "Timeout while running command '%(cmd)s' after %(seconds)s seconds" +msgstr "" + +msgid "Unable to choose a virtual machine name" +msgstr "" + +#, python-format +msgid "Invalid data value '%(value)s'" +msgstr "" + +#, python-format +msgid "Invalid data unit '%(unit)s'" +msgstr "" + +msgid "Invalid storage type. Types supported: 'cdrom', 'disk'" +msgstr "" + +#, python-format +msgid "The path '%(value)s' is not a valid local/remote path for the device" +msgstr "" + +msgid "Only CDROM path can be update." +msgstr "" + +#, python-format +msgid "" +"The storage device %(dev_name)s does not exist in the virtual machine " +"%(vm_name)s" +msgstr "" + +#, python-format +msgid "Error while creating new storage device: %(error)s" +msgstr "" + +#, python-format +msgid "Error while updating storage device: %(error)s" +msgstr "" + +#, python-format +msgid "Error while removing storage device: %(error)s" +msgstr "" + +msgid "Do not support IDE device hot plug" +msgstr "" + +msgid "" +"Specify type and path or type and pool/volume to add a new virtual machine " +"disk" +msgstr "" + +msgid "Specify path to update virtual machine disk" +msgstr "" + +#, python-format +msgid "Controller type %(type)s limitation of %(limit)s devices reached" +msgstr "" + +#, python-format +msgid "Cannot retrieve disk path information for given pool/volume: %(error)s" +msgstr "" + +msgid "Volume already in use by other virtual machine." +msgstr "" + +msgid "" +"Only one of path or pool/volume can be specified to add a new virtual " +"machine disk" +msgstr "" + +#, python-format +msgid "" +"Volume chosen with format %(format)s does not fit in the storage type " +"%(type)s" +msgstr "" + +msgid "YUM Repository ID must be one word only string." +msgstr "" + +msgid "Repository URL must be an http://, ftp:// or file:// URL." +msgstr "" + +msgid "" +"Repository configuration is a dictionary with specific values according to " +"repository type." +msgstr "" + +msgid "Distribution to DEB repository must be a string" +msgstr "" + +msgid "Components to DEB repository must be listed in a array" +msgstr "" + +msgid "Components to DEB repository must be a string" +msgstr "" + +msgid "Mirror list to repository must be a string" +msgstr "" + +msgid "YUM Repository name must be string." +msgstr "" + +msgid "GPG check must be a boolean value." +msgstr "" + +msgid "GPG key must be a URL pointing to the ASCII-armored file." +msgstr "" + +#, python-format +msgid "Could not update repository %(repo_id)s." +msgstr "" + +#, python-format +msgid "Repository %(repo_id)s does not exist." +msgstr "" + +msgid "" +"Specify repository base URL, mirror list or metalink in order to create or " +"update a YUM repository." +msgstr "" + +msgid "Repository management tool was not recognized for your system." +msgstr "" + +#, python-format +msgid "Repository %(repo_id)s is already enabled." +msgstr "" + +#, python-format +msgid "Repository %(repo_id)s is already disabled." +msgstr "" + +#, python-format +msgid "Could not remove repository %(repo_id)s." +msgstr "" + +#, python-format +msgid "Could not write repository configuration file %(repo_file)s" +msgstr "" + +msgid "Specify repository distribution in order to create a DEB repository." +msgstr "" + +#, python-format +msgid "Could not enable repository %(repo_id)s." +msgstr "" + +#, python-format +msgid "Could not disable repository %(repo_id)s." +msgstr "" + +msgid "YUM Repository ID already exists" +msgstr "" + +msgid "YUM Repository name must be a string" +msgstr "" + +#, python-format +msgid "Unable to list repositories. Details: '%(err)s'" +msgstr "" + +#, python-format +msgid "Unable to retrieve repository information. Details: '%(err)s'" +msgstr "" + +#, python-format +msgid "Unable to add repository. Details: '%(err)s'" +msgstr "" + +#, python-format +msgid "Unable to remove repository. Details: '%(err)s'" +msgstr "" + +#, python-format +msgid "" +"Configuration items: '%(items)s' are not supported by repository manager" +msgstr "" + +msgid "Repository metalink must be an http://, ftp:// or file:// URL." +msgstr "" + +msgid "Cannot specify mirrorlist and metalink at the same time." +msgstr "" + +#, python-format +msgid "" +"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it." +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Snapshot '%(name)s' does not exist on virtual machine '%(vm)s'." +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Unable to list snapshots on virtual machine '%(vm)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to delete snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to revert virtual machine '%(vm)s' to snapshot '%(name)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot of virtual machine '%(vm)s' because it contains a " +"disk with format '%(format)s'; only 'qcow2' is supported." +msgstr "" + +msgid "The number of vCPUs is too large for this system." +msgstr "" + +msgid "Invalid vCPU/topology combination." +msgstr "" + +msgid "This host (or current configuration) does not allow CPU topology." +msgstr "" + +msgid "ERROR CODE" +msgstr "" + +msgid "REASON" +msgstr "" + +msgid "STACK" +msgstr "" + +msgid "Go to Homepage" +msgstr "" + +msgid "Create a New Virtual Machine" +msgstr "" + +msgid "Virtual Machine Name" +msgstr "" + +msgid "" +"The name used to identify the virtual machine. If omitted, a name will be " +"chosen based on the template used." +msgstr "" + +msgid "Template" +msgstr "" + +msgid "Please create a template first." +msgstr "" + +msgid "Create a Template" +msgstr "" + +msgid "Please choose a template." +msgstr "" + +msgid "OS" +msgstr "" + +msgid "OS Version" +msgstr "" + +msgid "CPUS" +msgstr "" + +msgid "Memory" +msgstr "" + +msgid "Create" +msgstr "" + +msgid "Creating..." +msgstr "" + +msgid "Edit Guest" +msgstr "" + +msgid "General" +msgstr "" + +msgid "Storage" +msgstr "" + +msgid "Interface" +msgstr "" + +msgid "Permission" +msgstr "" + +msgid "Host PCI Device" +msgstr "" + +msgid "Snapshot" +msgstr "" + +msgid "Name" +msgstr "" + +msgid "CPUs" +msgstr "" + +msgid "Memory (MB)" +msgstr "" + +msgid "Icon" +msgstr "" + +msgid "Device" +msgstr "" + +msgid "Path" +msgstr "" + +msgid "Network" +msgstr "" + +msgid "Type" +msgstr "" + +msgid "MAC Address" +msgstr "" + +msgid "Available system users and groups" +msgstr "" + +msgid "Selected system users and groups" +msgstr "" + +msgid "User" +msgstr "" + +msgid "All" +msgstr "" + +msgid "To Add" +msgstr "" + +msgid "Added" +msgstr "" + +msgid "filter" +msgstr "" + +msgid "Product" +msgstr "" + +msgid "Vendor" +msgstr "" + +msgid "Created" +msgstr "" + +msgid "Save" +msgstr "" + +msgid "Replace" +msgstr "" + +msgid "Detach" +msgstr "" + +msgid "Cancel" +msgstr "" + +msgid "revert" +msgstr "" + +msgid "Add a Storage Device to VM" +msgstr "" + +msgid "Device Type" +msgstr "" + +msgid "The device type. Currently, \"cdrom\" and \"disk\" are supported." +msgstr "" + +msgid "Storage Pool" +msgstr "" + +msgid "Storage pool which volume located in" +msgstr "" + +msgid "Storage Volume" +msgstr "" + +msgid "Storage volume to be attached" +msgstr "" + +msgid "File Path" +msgstr "" + +msgid "The ISO file path in the server for CDROM." +msgstr "" + +msgid "Attach" +msgstr "" + +msgid "Start" +msgstr "" + +msgid "Reset" +msgstr "" + +msgid "Pause" +msgstr "" + +msgid "Resume" +msgstr "" + +msgid "Power Off" +msgstr "" + +msgid "Actions" +msgstr "" + +msgid "Connect" +msgstr "" + +msgid "Clone" +msgstr "" + +msgid "Edit" +msgstr "" + +msgid "Shut Down" +msgstr "" + +msgid "Delete" +msgstr "" + +msgid "The username or password you entered is incorrect. Please try again." +msgstr "" + +msgid "This field is required." +msgstr "" + +msgid "Log in" +msgstr "" + +msgid "Logging in..." +msgstr "" + +msgid "Host" +msgstr "" + +msgid "Guests" +msgstr "" + +msgid "Templates" +msgstr "" + +msgid "Failed to get application configuration" +msgstr "" + +msgid "This is not a valid Linux path" +msgstr "" + +msgid "This is not a valid URL." +msgstr "" + +msgid "No such data available." +msgstr "" + +msgid "" +"Can not contact the host system. Verify the host system is up and that you " +"have network connectivity to it. HTTP request response %1. " +msgstr "" + +msgid "Unable to read file." +msgstr "" + +msgid "Error while uploading file." +msgstr "" + +msgid "Delete Confirmation" +msgstr "" + +msgid "OK" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Warning" +msgstr "" + +msgid "Cloning..." +msgstr "" + +msgid "Loading..." +msgstr "" + +msgid "An error occurred while retrieving system information." +msgstr "" + +msgid "Retry" +msgstr "" + +msgid "Detailed message:" +msgstr "" + +msgid "No ISO found" +msgstr "" + +msgid "This is not a valid ISO file." +msgstr "" + +msgid "This may take a long time. Do you want to continue?" +msgstr "" + +msgid "This will permanently delete the template. Would you like to continue?" +msgstr "" + +msgid "Unable to shut down system as there are some virtual machines running!" +msgstr "" + +msgid "Max:" +msgstr "" + +msgid "Utilization" +msgstr "" + +msgid "Available" +msgstr "" + +msgid "Read Rate" +msgstr "" + +msgid "Write Rate" +msgstr "" + +msgid "Received" +msgstr "" + +msgid "Sent" +msgstr "" + +msgid "" +"Shutting down or restarting host will cause unsaved work lost. Continue to " +"shut down/restarting?" +msgstr "" + +msgid "" +"Repository will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" + +msgid "Repositories" +msgstr "" + +msgid "ID" +msgstr "" + +msgid "Base URL" +msgstr "" + +msgid "Is Mirror" +msgstr "" + +msgid "URL Args" +msgstr "" + +msgid "Enabled" +msgstr "" + +msgid "GPG Check" +msgstr "" + +msgid "GPG Key" +msgstr "" + +msgid "Add" +msgstr "" + +msgid "Remove" +msgstr "" + +msgid "Enable" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Software Updates" +msgstr "" + +msgid "Package Name" +msgstr "" + +msgid "Version" +msgstr "" + +msgid "Architecture" +msgstr "" + +msgid "Repository" +msgstr "" + +msgid "Update All" +msgstr "" + +msgid "Updating..." +msgstr "" + +msgid "Failed to retrieve packages update information." +msgstr "" + +msgid "Failed to update package(s)." +msgstr "" + +msgid "" +"Debug report will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "" + +msgid "Debug Reports" +msgstr "" + +msgid "Generated Time" +msgstr "" + +msgid "Generate" +msgstr "" + +msgid "Generating..." +msgstr "" + +msgid "Rename" +msgstr "" + +msgid "Download" +msgstr "" + +msgid "" +"Report name should contain only letters, digits, underscore ('_') and/or " +"hyphen ('-')." +msgstr "" + +msgid "Pending..." +msgstr "" + +msgid "Report name is the same as the original one." +msgstr "" + +msgid "" +"This will delete the virtual machine and its virtual disks. This operation " +"cannot be undone. Would you like to continue?" +msgstr "" + +msgid "Power off Confirmation" +msgstr "" + +msgid "" +"This action may produce undesirable results, for example unflushed disk " +"cache in the guest. Would you like to continue?" +msgstr "" + +msgid "Reset Confirmation" +msgstr "" + +msgid "" +"There is a risk of data loss caused by reset without the guest OS shutdown. " +"Would you like to continue?" +msgstr "" + +msgid "Shut Down Confirmation" +msgstr "" + +msgid "Note the guest OS may ignore this request. Would you like to continue?" +msgstr "" + +msgid "Virtual Machine delete Confirmation" +msgstr "" + +msgid "" +"This virtual machine is not persistent. Power Off will delete it. Continue?" +msgstr "" + +msgid "" +"When the target guest has SCSI or iSCSI volumes, they will be cloned on " +"default storage pool. The same will happen when the target pool does not " +"have enough space to clone the volumes. Do you want to continue?" +msgstr "" + +msgid "" +"This CDROM will be detached permanently and you can re-attach it. Continue " +"to detach it?" +msgstr "" + +msgid "Attaching..." +msgstr "" + +msgid "Replacing..." +msgstr "" + +msgid "Successfully attached!" +msgstr "" + +msgid "Successfully replaced!" +msgstr "" + +msgid "Successfully detached!" +msgstr "" + +msgid "" +"This disk will be detached permanently and you can re-attach it. Continue to " +"detach it?" +msgstr "" + +msgid "interface:" +msgstr "" + +msgid "address:" +msgstr "" + +msgid "link_type:" +msgstr "" + +msgid "block:" +msgstr "" + +msgid "drive_type:" +msgstr "" + +msgid "model:" +msgstr "" + +msgid "Affected devices:" +msgstr "" + +msgid "The VLAN id must be between 1 and 4094." +msgstr "" + +msgid "unavailable" +msgstr "" + +msgid "" +"This action will interrupt network connectivity for any virtual machine that " +"depend on this network." +msgstr "" + +msgid "Create a network" +msgstr "" + +msgid "" +"This network is not persistent. Instead of stop, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" + +msgid "" +"The bridged VLAN tag may not work well with NetworkManager enabled. You " +"should consider disabling it." +msgstr "" + +msgid "" +"This will permanently delete the storage pool. Would you like to continue?" +msgstr "" + +msgid "This storage pool is empty." +msgstr "" + +msgid "" +"It will format your disk and you will loose any data in there, are you sure " +"to continue? " +msgstr "" + +msgid "SCSI Fibre Channel" +msgstr "" + +msgid "No SCSI adapters found." +msgstr "" + +msgid "Loading iSCSI targets..." +msgstr "" + +msgid "No iSCSI found. Please input one." +msgstr "" + +msgid "Failed to load iSCSI targets." +msgstr "" + +msgid "The storage pool name can not be blank." +msgstr "" + +msgid "The storage pool path can not be blank." +msgstr "" + +msgid "NFS server mount path can not be blank." +msgstr "" + +msgid "Invalid NFS mount path." +msgstr "" + +msgid "No logical device selected." +msgstr "" + +msgid "The iSCSI target can not be blank." +msgstr "" + +msgid "Server name can not be blank." +msgstr "" + +msgid "This is not a valid Server Name or IP. Please, modify it." +msgstr "" + +msgid "Looking for available partitions ..." +msgstr "" + +msgid "No available partitions found." +msgstr "" + +msgid "" +"This storage pool is not persistent. Instead of deactivate, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" + +msgid "Unable to retrieve partitions information." +msgstr "" + +msgid "In progress..." +msgstr "" + +msgid "Failed!" +msgstr "" + +msgid "CDROM path needs to be a valid local/remote path and cannot be blank." +msgstr "" + +msgid "Disk pool or volume cannot be blank." +msgstr "" + +msgid "Peers" +msgstr "" + +msgid "Searching" +msgstr "" + +msgid "No peers found." +msgstr "" + +msgid "Help" +msgstr "" + +msgid "About" +msgstr "" + +msgid "Log out" +msgstr "" + +msgid "Version:" +msgstr "" + +msgid "Session timeout, please re-login." +msgstr "" + +msgid "User Name" +msgstr "" + +msgid "Password" +msgstr "" + +msgid "Generate a New Debug Report" +msgstr "" + +msgid "Report Name" +msgstr "" + +msgid "" +"The name used to identify the report. If omitted, a name will be chosen " +"based on current time. Name can contain: letters, digits, underscore (\"_\") " +"and hyphen (\"-\")." +msgstr "" + +msgid "Rename a Debug Report" +msgstr "" + +msgid "" +"The name used to identify the report. Name can contain: letters, digits and " +"hyphen (\"-\")." +msgstr "" + +msgid "Submit" +msgstr "" + +msgid "Add a Repository" +msgstr "" + +msgid "Identifier" +msgstr "" + +msgid "Single word, unique identifier for the repository." +msgstr "" + +msgid "Textual name for the repository." +msgstr "" + +msgid "URL" +msgstr "" + +msgid "Required Field" +msgstr "" + +msgid "URL to the repository. Supported protocols are http, ftp, and file." +msgstr "" + +msgid "Repository is a mirror" +msgstr "" + +msgid "Distribution" +msgstr "" + +msgid "Distribution of the DEB repository." +msgstr "" + +msgid "Components" +msgstr "" + +msgid "List of components in DEB repository." +msgstr "" + +msgid "Edit Repository" +msgstr "" + +msgid "Mirror List URL" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Add a Volume to Storage Pool" +msgstr "" + +msgid "Fetch from remote URL" +msgstr "" + +msgid "Enter the remote URL here." +msgstr "" + +msgid "Upload a file" +msgstr "" + +msgid "Choose the file you want to upload." +msgstr "" + +msgid "Define a New Storage Pool" +msgstr "" + +msgid "Storage Pool Name" +msgstr "" + +msgid "" +"The name used to identify the storage pools, and it should not be empty." +msgstr "" + +msgid "Storage Pool Type" +msgstr "" + +msgid "Storage Path" +msgstr "" + +msgid "" +"The path of the Storage Pool. Each Storage Pool must have a unique path." +msgstr "" + +msgid "" +"Kimchi will try to create the directory when it does not already exist in " +"your system." +msgstr "" + +msgid "NFS Server IP" +msgstr "" + +msgid "NFS server IP or hostname. It can be input or chosen from history." +msgstr "" + +msgid "NFS Path" +msgstr "" + +msgid "The NFS exported path on NFS server." +msgstr "" + +msgid "Device path" +msgstr "" + +msgid "iSCSI Server" +msgstr "" + +msgid "iSCSI server IP or hostname. It should not be empty." +msgstr "" + +msgid "Server" +msgstr "" + +msgid "Port" +msgstr "" + +msgid "Target" +msgstr "" + +msgid "The iSCSI target on iSCSI server" +msgstr "" + +msgid "Add iSCSI Authentication" +msgstr "" + +msgid "iSCSI Authentication" +msgstr "" + +msgid "SCSI Adapter" +msgstr "" + +msgid "Please, wait..." +msgstr "" + +msgid "Add Template" +msgstr "" + +msgid "Where is the source media for this template? " +msgstr "" + +msgid "Local ISO Image" +msgstr "" + +msgid "Local Image File" +msgstr "" + +msgid "Remote ISO Image" +msgstr "" + +msgid "Search ISOs" +msgstr "" + +msgid "The following ISOs are available:" +msgstr "" + +msgid "OS: " +msgstr "" + +msgid "Version: " +msgstr "" + +msgid "Size: " +msgstr "" + +msgid "Search more ISOs" +msgstr "" + +msgid "Create Templates from Selected ISO" +msgstr "" + +msgid "I want to use a specific ISO file" +msgstr "" + +msgid "Loading default remote ISOs ..." +msgstr "" + +msgid "Arch: " +msgstr "" + +msgid "I want to use a custom URL" +msgstr "" + +msgid "Edit Template" +msgstr "" + +msgid "Processor" +msgstr "" + +msgid "CDROM" +msgstr "" + +msgid "Image File" +msgstr "" + +msgid "Graphics" +msgstr "" + +msgid "Disk(GB)" +msgstr "" + +msgid "Disk Format" +msgstr "" + +msgid "CPU Number" +msgstr "" + +msgid "Manually set CPU topology" +msgstr "" + +msgid "Cores" +msgstr "" + +msgid "Threads" +msgstr "" + +msgid "CPU" +msgstr "" + +msgid "Disk I/O" +msgstr "" + +msgid "Network I/O" +msgstr "" + +msgid "Livetile" +msgstr "" + +msgid "No guests found." +msgstr "" + +msgid "Shut down" +msgstr "" + +msgid "Restart" +msgstr "" + +msgid "Basic Information" +msgstr "" + +msgid "OS Distro" +msgstr "" + +msgid "OS Code Name" +msgstr "" + +msgid "CPU(s)" +msgstr "" + +msgid "System Statistics" +msgstr "" + +msgid "Update Progress" +msgstr "" + +msgid "Network Name" +msgstr "" + +msgid "State" +msgstr "" + +msgid "Network Type" +msgstr "" + +msgid "Address Space" +msgstr "" + +msgid "Name should not contain '/' and '\"'." +msgstr "" + +msgid "Isolated: no external network connection" +msgstr "" + +msgid "NAT: outbound physical network connection only" +msgstr "" + +msgid "Bridged: Virtual machines are connected to physical network directly" +msgstr "" + +msgid "(No interfaces found)" +msgstr "" + +msgid "Destination" +msgstr "" + +msgid "Enable VLAN" +msgstr "" + +msgid "VLAN ID" +msgstr "" + +msgid "Stop" +msgstr "" + +msgid "%Used" +msgstr "" + +msgid "Location" +msgstr "" + +msgid "Capacity" +msgstr "" + +msgid "Allocated" +msgstr "" + +msgid "active" +msgstr "" + +msgid "inactive" +msgstr "" + +msgid "Deactivate" +msgstr "" + +msgid "Activate" +msgstr "" + +msgid "Add Volume" +msgstr "" + +msgid "Extend" +msgstr "" + +msgid "Undefine" +msgstr "" + +msgid "Format" +msgstr "" + +msgid "Allocation" +msgstr "" + +msgid "No templates found." +msgstr "" diff --git a/po/zh_CN.po b/po/zh_CN.po new file mode 100644 index 0000000..fe26fee --- /dev/null +++ b/po/zh_CN.po @@ -0,0 +1,2196 @@ +# i18n portable object for kimchi. +# Copyright (C) IBM, Corp. 2013-2014 +# ShaoHe Feng <shaohef@linux.vnet.ibm.com>, 2013-04-18. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# +msgid "" +msgstr "" +"Project-Id-Version: kimchi 0.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-09 17:37-0300\n" +"PO-Revision-Date: 2013-06-27 10:48+0000\n" +"Last-Translator: ShaoHe Feng <shaohef@linux.vnet.ibm.com>\n" +"Language-Team: ShaoHe Feng <shaohef@linux.vnet.ibm.com>\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" +"X-Poedit-Country: CHINA\n" +"X-Poedit-Language: Chinese\n" +"X-Poedit-SourceCharset: utf-8\n" + +#, python-format +msgid "Unknown parameter %(value)s" +msgstr "未知变量 %(value)s" + +#, python-format +msgid "Delete is not allowed for %(resource)s" +msgstr "不允许删除%(resource)s" + +#, python-format +msgid "%(resource)s does not implement update method" +msgstr "不支持更新%(resource)s" + +#, python-format +msgid "Create is not allowed for %(resource)s" +msgstr "不允许创建%(resource)s" + +msgid "Unable to parse JSON request" +msgstr "无法解析JSON请求" + +msgid "This API only supports JSON" +msgstr "这个API仅支持JSON" + +#, python-format +msgid "Parameters does not match requirement in schema: %(err)s" +msgstr "参数不符合要求的格式:%(err)s" + +msgid "You don't have permission to perform this operation." +msgstr "您没有权限执行这项操作。" + +msgid "Datastore is not initiated in the model object." +msgstr "尚未为model对象初始化数据存储。" + +#, python-format +msgid "Unable to start task due error: %(err)s" +msgstr "由于错误%(err)s任务启动失败" + +#, python-format +msgid "Timeout of %(seconds)s seconds expired while running task '%(task)s." +msgstr "任务'%(task)s超时%(seconds)s秒。" + +#, python-format +msgid "Authentication failed for user '%(username)s'. [Error code: %(code)s]" +msgstr "用户'%(username)s'身份验证失败.[错误代码:%(code)s]" + +msgid "You are not authorized to access Kimchi" +msgstr "您没有被授权访问Kimchi" + +#, python-format +msgid "Specify %(item)s to login into Kimchi" +msgstr "指定登录Kimchi的%(item)s" + +#, python-format +msgid "User %(user_id)s not found with given LDAP settings." +msgstr "使用指定的LDAP配置未找到%(user_id)s用户" + +#, python-format +msgid "Invalid LDAP configuration: %(item)s : %(value)s" +msgstr "无效的LDAP配置:%(item)s : %(value)s" + +msgid "Unknown \"_cap\" specified" +msgstr "未识别的\"_cap\"" + +msgid "\"_passthrough\" should be \"true\" or \"false\"" +msgstr "\"_passthrough\"值应为\"true\"或者\"false\"" + +msgid "\"_passthrough_affected_by\" should be a device name string" +msgstr "\"_passthrough_affected_by\"应为一个字符串型设备名" + +#, python-format +msgid "Error while getting block devices. Details: %(err)s" +msgstr "获取块设备时出错。详情:%(err)s" + +#, python-format +msgid "Error while getting block device information for %(device)s." +msgstr "获取块设备 %(device)s 信息时出错。" + +#, python-format +msgid "Unable to find distro file: %(filename)s" +msgstr "找不到发行版文件:%(filename)s" + +#, python-format +msgid "" +"Unable to parse distro file: %(filename)s. Make sure, it is a JSON file." +msgstr "不能解析发行版文件:%(filename)s。请确保它是一个JSON格式的文件。" + +#, python-format +msgid "Unable to login to iSCSI host target %(portal)s. Details: %(err)s" +msgstr "无法通过 %(portal)s 登录iSCSI主机和目标。详情:%(err)s" + +#, python-format +msgid "Unable to login to iSCSI host %(host)s target %(target)s" +msgstr "无法登录iSCSI主机%(host)s上的目标%(target)s。" + +#, python-format +msgid "Unable to find ISO file %(filename)s" +msgstr "未能找到ISO文件 %(filename)s" + +#, python-format +msgid "The ISO file %(filename)s is not bootable" +msgstr "ISO文件%(filename)s不可引导。" + +#, python-format +msgid "The ISO file %(filename)s does not have a valid El Torito boot record" +msgstr "ISO文件%(filename)s没有有效的El Torito引导记录。" + +#, python-format +msgid "Invalid El Torito validation entry in ISO %(filename)s" +msgstr "在ISO文件%(filename)s中发现无效的El Torito校验条目。。" + +#, python-format +msgid "Invalid El Torito boot indicator in ISO %(filename)s" +msgstr "ISO文件%(filename)s的El Torito引导标志是无效的" + +#, python-format +msgid "Unexpected volume type for primary volume in ISO %(filename)s" +msgstr "未能识别ISO文件%(filename)s的主卷类型" + +#, python-format +msgid "Bad format while reading volume descriptor in ISO %(filename)s" +msgstr "ISO文件%(filename)s的卷描述符格式错误" + +#, python-format +msgid "" +"The hypervisor doesn't have permission to use this ISO %(filename)s. " +"Consider moving it under /var/lib/libvirt, or set the search permission to " +"file access control lists for '%(user)s' user if possible, or add the " +"'%(user)s' to the ISO path group, or (not recommended) 'chmod -R o+x " +"'path_to_iso'.Details: %(err)s" +msgstr "" +"hypervisor没有访问ISO文件%(filename)s的权限。可以将ISO移到/var/lib/libvirt目" +"录下;或为'%(user)s'用户设置访问权限;或将'%(user)s'用户增加到ISO路径的属组;" +"或者为所有的用户增加访问权限 'chmod -R o+x '(不推荐)。详情:%(err)s" + +msgid "An error occurred when probing image OS information." +msgstr "搜索镜像操作系统信息时发生错误。" + +msgid "No OS information found in given image." +msgstr "在指定的镜像文件中未发现操作系统信息。" + +#, python-format +msgid "Unable to read image file %(filename)s" +msgstr "未能读取镜像文件 %(filename)s" + +#, python-format +msgid "" +"Image file must be an existing file on system. %(filename)s is not a valid " +"input." +msgstr "磁盘文件必须已存在系统中,%(filename)s不是合法文件名" + +#, python-format +msgid "Virtual machine %(name)s already exists" +msgstr "虚拟机%(name)s已经存在" + +#, python-format +msgid "Virtual machine %(name)s does not exist" +msgstr "虚拟机%(name)s不存在" + +#, python-format +msgid "" +"Unable to rename virtual machine %(name)s. The name %(new_name)s is already " +"in use or the virtual machine is not powered off." +msgstr "" +"未能实现虚拟机 %(name)s 重命名,名称 %(new_name)s 已被使用或者该虚拟机未关" +"机。" + +#, python-format +msgid "Unable to retrieve screenshot for stopped virtual machine %(name)s" +msgstr "不能获取停止状态的虚拟机%(name)s的截屏" + +msgid "Remote ISO image is not supported by this server." +msgstr "该服务器不支持远程ISO镜像。" + +#, python-format +msgid "Screenshot is not supported on virtual machine %(name)s" +msgstr "虚拟机 %(name)s 不支持快照" + +#, python-format +msgid "Unable to create virtual machine %(name)s. Details: %(err)s" +msgstr "不能创建虚拟机%(name)s。详情:%(err)s" + +#, python-format +msgid "Unable to update virtual machine %(name)s. Details: %(err)s" +msgstr "不能更新虚拟机%(name)s。详情:%(err)s" + +#, python-format +msgid "Unable to retrieve virtual machine %(name)s. Details: %(err)s" +msgstr "不能获取虚拟机%(name)s。详情:%(err)s" + +#, python-format +msgid "Unable to connect to powered off virtual machine %(name)s." +msgstr "虚拟机%(name)s已关机,连接失败。" + +msgid "Virtual machine name must be a string without slashes (/)" +msgstr "" + +#, python-format +msgid "Invalid template URI %(value)s specified for virtual machine" +msgstr "无效的虚拟机模板URI %(value)s" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for virtual machine" +msgstr "无效的虚拟机存储池URI %(value)s" + +msgid "Supported virtual machine graphics are Spice or VNC" +msgstr "虚拟机图形界面仅支持Spice以及VNC" + +msgid "Graphics address to listen on must be IPv4 or IPv6" +msgstr "远程图形访问的监听地址必须是IPv4或IPv6地址。" + +msgid "Specify a template to create a virtual machine from" +msgstr "指定用于创建虚拟机的模板" + +#, python-format +msgid "Unable to start virtual machine %(name)s. Details: %(err)s" +msgstr "不能启动虚拟机 %(name)s. 详情:%(err)s" + +#, python-format +msgid "Unable to power off virtual machine %(name)s. Details: %(err)s" +msgstr "不能关闭虚拟机%(name)s。详情:%(err)s" + +#, python-format +msgid "Unable to delete virtual machine %(name)s. Details: %(err)s" +msgstr "不能删除虚拟机 %(name)s。详情:%(err)s" + +#, python-format +msgid "Unable to reset virtual machine %(name)s. Details: %(err)s" +msgstr "未能重置虚拟机%(name)s。详情:%(err)s" + +msgid "User name list must be an array" +msgstr "用户名列表必须为一个数组" + +msgid "User name must be a string" +msgstr "用户名必须是一个字符串" + +msgid "Group name list must be an array" +msgstr "组名称列表必须为一个数组" + +msgid "Group name must be a string" +msgstr "用户组名称必须是一个字符串" + +#, python-format +msgid "User(s) '%(users)s' do not exist" +msgstr "用户'%(users)s'不存在" + +#, python-format +msgid "Group(s) '%(groups)s' do not exist" +msgstr "用户组'%(groups)s'不存在" + +#, python-format +msgid "Unable to shutdown virtual machine %(name)s. Details: %(err)s" +msgstr "未能关闭虚拟机%(name)s。详情:%(err)s" + +#, python-format +msgid "" +"Unable to get access metadata of virtual machine %(name)s. Details: %(err)s" +msgstr "无法获得虚拟机 %(name)s的元数据,详情:%(err)s" + +msgid "The guest console password must be a string." +msgstr "客户机控制台密码必须为一个字符串。" + +msgid "The life time for the guest console password must be a number." +msgstr "客户机命令行密码有效时间必须是一个数字。" + +#, python-format +msgid "Virtual machine '%(name)s' must be stopped before cloning it." +msgstr "虚拟机'%(name)s'在制作副本前必须关机。" + +#, python-format +msgid "Insufficient disk space to clone virtual machine '%(name)s'" +msgstr "制作虚拟机'%(name)s'副本所需的磁盘空间不足" + +#, python-format +msgid "Unable to clone VM '%(name)s'. Details: %(err)s" +msgstr "未能成功制作虚拟机'%(name)s'副本。详情:%(err)s" + +#, python-format +msgid "Invalid operation for non-persistent virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Cannot suspend VM '%(name)s' because it is not running." +msgstr "" + +#, python-format +msgid "Unable to suspend VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Cannot resume VM '%(name)s' because it is not paused." +msgstr "" + +#, python-format +msgid "Unable to resume VM '%(name)s'. Details: %(err)s" +msgstr "" + +msgid "Memory assigned is higher then the maximum allowed in the host." +msgstr "" + +#, python-format +msgid "" +"VM '%(name)s' does not support live memory update. Update the memory with " +"the machine offline to enable this feature." +msgstr "" + +msgid "Only increase memory is allowed in active VMs" +msgstr "" + +msgid "" +"For live memory update, new memory value must be equal old memory value plus " +"multiples of 1024 Mib" +msgstr "" + +msgid "There are not enough free slots of 1024 Mib in the guest." +msgstr "" + +msgid "" +"Host's libvirt version does not support memory devices. Libvirt must be >= " +"1.2.14" +msgstr "" + +#, python-format +msgid "Error attaching memory device. Details: %(error)s" +msgstr "" + +#, python-format +msgid "" +"VM %(vmid)s does not contain directly assigned host device %(dev_name)s." +msgstr "虚拟机%(vmid)s未指明被分配的主机设备%(dev_name)s。" + +#, python-format +msgid "The host device %(dev_name)s is not allowed to directly assign to VM." +msgstr "主机设备%(dev_name)s不允许直接分配给虚拟机。" + +msgid "" +"No IOMMU groups found. Host PCI pass through needs IOMMU group to function " +"correctly. Please enable Intel VT-d or AMD IOMMU in your BIOS, then verify " +"the Kernel is compiled with IOMMU support. For Intel CPU, add intel_iommu=on " +"to your Kernel parameter in /boot/grub2/grub.conf. For AMD CPU, add iommu=pt " +"iommu=1." +msgstr "" +"未找到IOMMU groups。主机PCI pass through需要IOMMU group才可以正确工作。请在" +"BIOS设置里将Intel VT-d 或者 AMD IOMMU 设为使能,而后确认内核支持IOMMU。对于" +"Intel CPU,在路径/boot/grub2/grub.conf中添加内核变量intel_iommu=on。对于AMD " +"CPU,则添加iommu=pt iommu=1。" + +msgid "\"name\" should be a device name string" +msgstr "\"name\"应该为一个字符串型的设备名" + +#, python-format +msgid "Interface %(iface)s does not exist in virtual machine %(name)s" +msgstr "虚拟机 %(name)s 中没有接口 %(iface)s" + +#, python-format +msgid "" +"Network %(network)s specified for virtual machine %(name)s does not exist" +msgstr "为虚拟机%(name)s指定的网络%(network)s不存在" + +msgid "Supported virtual machine interfaces type is only network" +msgstr "只支持网络类型的虚拟机接口" + +msgid "Network name for virtual machine interface must be a string" +msgstr "虚拟机接口的网络名字必须是字符串" + +msgid "Invalid network model card specified for virtual machine interface" +msgstr "虚拟机接口指定的网络模型卡无效" + +msgid "Specify type and network to add a new virtual machine interface" +msgstr "为新的虚拟机接口指定类型和网络" + +msgid "MAC Address must respect this format FF:FF:FF:FF:FF:FF" +msgstr "" + +#, python-format +msgid "MAC Address %(mac)s already exists in virtual machine %(name)s" +msgstr "" + +msgid "Invalid MAC Address" +msgstr "" + +msgid "Cannot change MAC address of a running virtual machine" +msgstr "" + +#, python-format +msgid "Template %(name)s already exists" +msgstr "模板 %(name)s 已经存在" + +#, python-format +msgid "" +"Network '%(network)s' specified for template %(template)s does not exist" +msgstr "为模板 %(template)s 指定的网络 '%(network)s' 不存在" + +#, python-format +msgid "" +"Storage pool %(pool)s specified for template %(template)s does not exist" +msgstr "为模板 %(template)s 指定的存储池 '%(pool)s' 不存在" + +#, python-format +msgid "Storage pool %(pool)s specified for template %(template)s is not active" +msgstr "为模板 %(template)s 指定的存储池 '%(pool)s' 没有激活" + +#, python-format +msgid "Invalid parameter '%(param)s' specified for CDROM." +msgstr "为CDROM指定的参数 '%(param)s' 无效" + +#, python-format +msgid "Network %(network)s specified for template %(template)s is not active" +msgstr "为模板 %(template)s 指定的网络 '%(network)s' 没有激活" + +msgid "Template name must be a string" +msgstr "模板的名字必须是一个字符串" + +msgid "Template icon must be a path to the image" +msgstr "模板的图标必须是一个指向镜像的路径" + +msgid "Template distribution must be a string" +msgstr "模板的发行版必须是一个字符串" + +msgid "Template distribution version must be a string" +msgstr "模板的发行版版本号必须是一个字符串" + +msgid "The number of CPUs must be an integer greater than 0" +msgstr "CPU数量必须为一个大于0的整数" + +msgid "Amount of memory (MB) must be an integer greater than 512" +msgstr "总内存数(MB为单位)必须是一个大于512的整数" + +msgid "Template CDROM must be a local or remote ISO file" +msgstr "模板的CDROM必须是一个本地或者远程的ISO文件" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for template" +msgstr "给模板指定了无效的存储池URI %(value)s" + +msgid "Specify an ISO image as CDROM or a base image to create a template" +msgstr "指定一个ISO镜像作为创建模板的CDROM或者基础镜像" + +msgid "All networks for the template must be specified in a list." +msgstr "为模板指定的网络必须在一个列表中" + +msgid "Specify a volume to a template when storage pool is iSCSI or SCSI" +msgstr "当存储池类型为iSCSI或者SCSI的时候须为模板指定一个卷" + +#, python-format +msgid "The volume %(volume)s is not in storage pool %(pool)s" +msgstr "卷%(volume)s不在存储池%(pool)s中" + +#, python-format +msgid "Unable to create template due error: %(err)s" +msgstr "创建模板失败。详情:%(err)s" + +#, python-format +msgid "Unable to delete template due error: %(err)s" +msgstr "由于错误:%(err)s,未能删除模板" + +msgid "Disk size must be an integer greater than 1GB." +msgstr "磁盘大小必须大于1GB。" + +msgid "Template base image must be a valid local image file" +msgstr "模板基础镜像必须为一个有效的本地镜像文件" + +#, python-format +msgid "Cannot identify base image %(path)s format" +msgstr "未能识别基础镜像%(path)s格式" + +msgid "" +"When specifying CPU topology, VCPUs must be a product of sockets, cores, and " +"threads." +msgstr "CPU拓扑中,VCPUs必须包括sockets, cores 以及threads。" + +msgid "" +"When specifying CPU topology, each element must be an integer greater than " +"zero." +msgstr "CPU拓扑中,每一个参数必须为大于零的整数。" + +msgid "" +"Invalid disk image format. Valid formats: bochs, cloop, cow, dmg, qcow, " +"qcow2, qed, raw, vmdk, vpc." +msgstr "" +"无效的磁盘镜像格式。有效的格式为:bochs, cloop, cow, dmg, qcow, qcow2, qed, " +"raw, vmdk, vpc。" + +#, python-format +msgid "Storage pool %(name)s already exists" +msgstr "存储池%(name)s已经存在" + +#, python-format +msgid "Storage pool %(name)s does not exist" +msgstr "存储池%(name)s不存在" + +#, python-format +msgid "Specify %(item)s in order to create the storage pool %(name)s" +msgstr "为新存储池%(name)s指定%(item)s" + +#, python-format +msgid "Unable to delete active storage pool %(name)s" +msgstr "不能删除激活的存储池 %(name)s" + +#, python-format +msgid "Unable to list storage pools. Details: %(err)s" +msgstr "不能列举存储池。 详情: %(err)s" + +#, python-format +msgid "Unable to create storage pool %(name)s. Details: %(err)s" +msgstr "不能创建存储池 %(name)s。详情: %(err)s" + +#, python-format +msgid "" +"Unable to get number of storage volumes in storage pool %(name)s. Details: " +"%(err)s" +msgstr "不能获取储存池%(name)s中卷的数目。详情: %(err)s" + +#, python-format +msgid "Unable to activate storage pool %(name)s. Details: %(err)s" +msgstr "不能激活储存池%(name)s。详情: %(err)s" + +#, python-format +msgid "Unable to deactivate storage pool %(name)s. Details: %(err)s" +msgstr "不能停用储存池%(name)s。详情: %(err)s" + +#, python-format +msgid "Unable to delete storage pool %(name)s. Details: %(err)s" +msgstr "不能删除储存池%(name)s。详情: %(err)s" + +#, python-format +msgid "" +"Unable to create NFS Pool as export path %(path)s may block during mount" +msgstr "不能创建NFS存储池,可能导出路径%(path)s在挂载时被阻塞了" + +#, python-format +msgid "Unable to create NFS Pool as export path %(path)s mount failed" +msgstr "不能创建NFS存储池,挂载导出路径%(path)s失败" + +#, python-format +msgid "Unsupported storage pool type: %(type)s" +msgstr "不支持的存储池类型:%(type)s" + +#, python-format +msgid "Error while retrieving storage pool XML to %(pool)s" +msgstr "查询存储池XML到%(pool)s时出现错误" + +msgid "Storage pool name must be a string without slashes (/)" +msgstr "" + +msgid "" +"Supported storage pool types are dir, netfs, logical, iscsi, isci and kimchi-" +"iso" +msgstr "存储池类型仅支持dir,netfs,logical,iscsi,isci以及kimchi-iso" + +msgid "Storage pool path must be a string" +msgstr "存储池路径必须是字符串" + +msgid "Storage pool host must be a IP or hostname" +msgstr "存储池主机必须是一个IP后者主机名" + +msgid "Storage pool device must be the absolute path to the block device" +msgstr "存储池设备必须为块设备的一个绝对路径" + +msgid "Storage pool devices parameter must be a list" +msgstr "存储池设备参数必须是一个列表" + +msgid "Target IQN of an iSCSI pool must be a string" +msgstr "iSCSI存储池的目标IQN必须是字符串" + +msgid "Port of a remote storage server must be an integer between 1 and 65535" +msgstr "远程存储服务器的端口必须是1到65535之间的整数" + +msgid "iSCSI target username must be a string" +msgstr "iSCSI目标用户名必须为一个字符串" + +msgid "iSCSI target password must be a string" +msgstr "iSCSI目标密码必须为一个字符串" + +msgid "Specify name and type to create a storage pool" +msgstr "为新存储池指定名字和类型" + +#, python-format +msgid "" +"%(disk)s is not a valid disk/partition. Could not add it to the pool " +"%(pool)s." +msgstr "%(disk)s 不是有效的磁盘/分区。不能被添加到存储池%(pool)s中" + +#, python-format +msgid "Unable to extend logical pool %(pool)s. Details: %(err)s" +msgstr "未能实现逻辑池%(pool)s的扩展,详情:%(err)s" + +msgid "The parameter disks only can be updated for logical storage pool." +msgstr "只有逻辑存储池支持更新磁盘参数。" + +msgid "The SCSI host adapter name must be a string." +msgstr "SCSI主机适配器名必须是个字符串" + +msgid "The storage pool kimchi_isos is reserved for internal use" +msgstr "存储池kimchi_isos留作内部使用" + +#, python-format +msgid "" +"Unable to activate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "不能激活NFS存储池%(name)s。NFS服务器%(server)s不可到达。" + +#, python-format +msgid "" +"Unable to deactivate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "不能停用NFS存储池%(name)s。NFS服务器%(server)s不可到达。" + +#, python-format +msgid "" +"Unable to deactivate pool %(name)s as it is associated with some templates" +msgstr "不能停用存储池%(name)s,该存储池与一些模板关联" + +#, python-format +msgid "Unable to delete pool %(name)s as it is associated with some templates" +msgstr "不能删除存储池%(name)s,该存储池与一些模板关联" + +#, python-format +msgid "" +"A volume group named '%(name)s' already exists. Please, choose another name " +"to create the logical pool." +msgstr "卷组'%(name)s'已经存在,请选择其它的名字来创建逻辑存储池。" + +#, python-format +msgid "Unable to update database with deep scan information due error: %(err)s" +msgstr "全盘扫描信息更新失败。详情:%(err)s。" + +#, python-format +msgid "Storage volume %(name)s already exists" +msgstr "存储卷%(name)s已经存在" + +#, python-format +msgid "Storage volume %(name)s does not exist in storage pool %(pool)s" +msgstr "存储池%(pool)s中没有存储卷%(name)s" + +#, python-format +msgid "" +"Unable to create storage volume %(volume)s because storage pool %(pool)s is " +"not active" +msgstr "未能创建存储卷%(volume)s,因为存储池%(pool)s 未被激活" + +#, python-format +msgid "Specify %(item)s in order to create storage volume %(volume)s" +msgstr "为新存储卷%(volume)s指定指定%(item)s" + +#, python-format +msgid "" +"Unable to list storage volumes because storage pool %(pool)s is not active" +msgstr "不能列出存储卷,因为存储池%(pool)s没有激活" + +#, python-format +msgid "" +"Unable to create storage volume %(name)s in storage pool %(pool)s. Details: " +"%(err)s" +msgstr "不能在存储池%(pool)s中创建存储卷%(name)s。详情:%(err)s" + +#, python-format +msgid "" +"Unable to list storage volumes in storage pool %(pool)s. Details: %(err)s" +msgstr "不能在存储池%(pool)s中列出存储卷。详情:%(err)s" + +#, python-format +msgid "Unable to wipe storage volumes %(name)s. Details: %(err)s" +msgstr "不能擦除存储卷%(name)s。详情:%(err)s" + +#, python-format +msgid "Unable to delete storage volume %(name)s. Details: %(err)s" +msgstr "不能删除存储卷%(name)s。详情:%(err)s" + +#, python-format +msgid "Unable to resize storage volume %(name)s. Details: %(err)s" +msgstr "不能改变存储卷%(name)s的大小。详情:%(err)s" + +#, python-format +msgid "Storage type %(type)s does not support volume create and delete" +msgstr "存储类型%(type)s不支持卷的创建和删除" + +msgid "Storage volume name must be a string" +msgstr "存储卷的名字必须是字符串" + +msgid "Storage volume allocation must be an integer number" +msgstr "存储卷分配额必须是整数" + +msgid "" +"Storage volume format not supported. Valid formats: bochs, cloop, cow, dmg, " +"qcow, qcow2, qed, raw, vmdk, vpc." +msgstr "" +"不支持该存储卷格式,支持的格式:bochs, cloop, cow, dmg, qcow, qcow2, qed, " +"raw, vmdk, vpc。" + +msgid "Storage volume requires a volume name" +msgstr "存储卷需要名字" + +#, python-format +msgid "" +"Unable to update database with storage volume information due error: %(err)s" +msgstr "存储卷信息更新失败。详情:%(err)s" + +#, python-format +msgid "Only one of parameter %(param)s can be specified" +msgstr "只能对参数%(param)s中的一个进行指定" + +#, python-format +msgid "Create volume from %(param)s is not supported" +msgstr "不支持从%(param)s创建虚拟机" + +msgid "Storage volume capacity must be an integer number." +msgstr "存储卷容量必须为一个整数" + +msgid "Storage volume URL must be http://, https://, ftp:// or ftps://." +msgstr "存储卷URL必须为http://,https://,ftp://或ftps://" + +#, python-format +msgid "Unable to access file %(url)s. Please, check it." +msgstr "不能访问文件%(url)s,请检查该文件是否存在。" + +#, python-format +msgid "" +"Unable to clone storage volume '%(name)s' in pool '%(pool)s'. Details: " +"%(err)s" +msgstr "未能于存储池'%(pool)s'制作存储卷'%(name)s'的副本,详情:%(err)s" + +msgid "Specify chunk data and its size to upload a file." +msgstr "" + +msgid "In order to upload a storage volume, specify the 'upload' parameter." +msgstr "" + +msgid "" +"Unable to upload chunk data as it does not match with requested chunk size." +msgstr "" + +#, python-format +msgid "The storage volume %(vol)s is not under an upload process." +msgstr "" + +msgid "The upload chunk data will exceed the storage volume size." +msgstr "" + +#, python-format +msgid "Unable to upload chunk data to storage volume. Details: %(err)s." +msgstr "" + +#, python-format +msgid "Interface %(name)s does not exist" +msgstr "接口%(name)s不存在" + +#, python-format +msgid "Network %(name)s already exists" +msgstr "网络%(name)s已经存在" + +#, python-format +msgid "Network %(name)s does not exist" +msgstr "网络%(name)s不存在" + +#, python-format +msgid "Subnet %(subnet)s specified for network %(network)s is not valid." +msgstr "给网络%(network)s指定的子网%(subnet)s无效" + +#, python-format +msgid "Specify a network interface to create bridged network %(name)s" +msgstr "指定一个网络接口来创建桥接类型的网络%(name)s" + +#, python-format +msgid "Unable to delete active network %(name)s" +msgstr "不能删除激活的网络%(name)s" + +#, python-format +msgid "Interface %(iface)s specified for network %(network)s is already in use" +msgstr "给网络%(network)s指定的接口%(iface)s已被使用" + +msgid "Interface should be bare NIC, bonding or bridge device." +msgstr "接口应该是一个裸的网络接口卡、bonding或者桥接设备。" + +#, python-format +msgid "Unable to create network %(name)s. Details: %(err)s" +msgstr "不能创建网络%(name)s。详情:%(err)s" + +#, python-format +msgid "Unable to find a free IP address for network '%(name)s'" +msgstr "不能为网络'%(name)s'找到一个未使用的IP网络地址。" + +#, python-format +msgid "The interface %(iface)s already exists." +msgstr "" + +msgid "Network name must be a string without slashes (/) or quotes (\")" +msgstr "" + +msgid "Supported network types are isolated, NAT and bridge" +msgstr "支持的网络类型有隔离、NAT和桥接" + +msgid "Network subnet must be a string with IP address and prefix or netmask" +msgstr "网络子网必须是一个IP地址加网络前缀或子网掩码的字符串" + +msgid "Network interface must be a string" +msgstr "网络接口必须是一个字符串" + +msgid "Network VLAN ID must be an integer between 1 and 4094" +msgstr "网络VLAN号必须是1到4094之间的整数" + +msgid "Specify name and type to create a Network" +msgstr "为新网络指定名字和类型" + +#, python-format +msgid "" +"Unable to delete network %(name)s. There are some virtual machines %(vms)s " +"and/or templates linked to this network." +msgstr "" + +#, python-format +msgid "" +"Unable to deactivate network %(name)s. There are some virtual machines " +"%(vms)s and/or templates linked to this network." +msgstr "" + +#, python-format +msgid "Bridge device %(name)s can not be the trunk device of a VLAN." +msgstr "不能以桥设备%(name)s作为VLAN的trunk设备。" + +#, python-format +msgid "Failed to activate interface %(iface)s: %(err)s." +msgstr "网络接口启动失败 %(iface)s:%(err)s。" + +#, python-format +msgid "" +"Failed to activate interface %(iface)s. Please check the physical link " +"status." +msgstr "网络接口%(iface)s启动失败,请检查网络连接情况。" + +#, python-format +msgid "Failed to start network %(name)s. Details: %(err)s" +msgstr "启动网络%(name)s失败,详情:%(err)s" + +#, python-format +msgid "Debug report %(name)s does not exist" +msgstr "诊断报告%(name)s不存在" + +msgid "Debug report tool not found in system" +msgstr "系统上没有诊断报告工具" + +#, python-format +msgid "Unable to create debug report %(name)s. Details: %(err)s." +msgstr "不能创建诊断报告%(name)s。详情:%(err)s" + +#, python-format +msgid "Can not find any debug report with the given name %(name)s" +msgstr "未能找到指定名称%(name)s的调试报告" + +#, python-format +msgid "Unable to generate debug report %(name)s. Details: %(err)s" +msgstr "不能生成诊断报告%(name)s。详情:%(err)s" + +msgid "You should give a name for the debug report file." +msgstr "不能生成诊断报告%(name)s。详情:%(err)s" + +msgid "" +"Debug report name must be a string. Only letters, digits, underscore ('_') " +"and hyphen ('-') are allowed." +msgstr "" +"调试报告名称必须为一个字符串。只有英文字符,数字,下划线('_')以及连字符('-')" +"为合法字符。" + +#, python-format +msgid "" +"The debug report with specified name \"%(name)s\" already exists. Please use " +"another one." +msgstr "名字为\"'%(name)s\"的调试报告已经存在,请选择其它的名字。" + +#, python-format +msgid "Storage server %(server)s was not used by Kimchi" +msgstr "存储服务器%(server)s未被Kimchi使用" + +#, python-format +msgid "Distro '%(name)s' does not exist" +msgstr "发行版本'%(name)s'不存在" + +#, python-format +msgid "Partition %(name)s does not exist in the host" +msgstr "主机中上没有分区%(name)s" + +msgid "Unable to shutdown host machine as there are running virtual machines" +msgstr "有虚拟机在运行,不能关闭主机" + +msgid "Unable to reboot host machine as there are running virtual machines" +msgstr "有虚拟机在运行,不能重起主机" + +#, python-format +msgid "Node device '%(name)s' not found" +msgstr "没有找到节点设备'%(name)s'" + +msgid "Conflicting flag filters specified." +msgstr "flag filters冲突。" + +msgid "No packages marked for update" +msgstr "没有软件包标识要升级" + +#, python-format +msgid "Package %(name)s is not marked to be updated." +msgstr "软件包%(name)s没有标识为要升级" + +#, python-format +msgid "Error while getting packages marked to be updated. Details: %(err)s" +msgstr "获取标识为要升级的软件包时出错。详情:%(err)s" + +msgid "There is no compatible package manager for this system." +msgstr "系统上没有兼容的软件包管理器" + +#, python-format +msgid "Unable to find %(item)s in datastore" +msgstr "在数据存储中找不到%(item)s" + +#, python-format +msgid "Invalid URI %(uri)s" +msgstr "无效的URI %(uri)s" + +#, python-format +msgid "Timeout while running command '%(cmd)s' after %(seconds)s seconds" +msgstr "命令'%(cmd)s'运行%(seconds)s秒后超时。" + +msgid "Unable to choose a virtual machine name" +msgstr "未能选择一个虚拟机名称" + +#, python-format +msgid "Invalid data value '%(value)s'" +msgstr "" + +#, python-format +msgid "Invalid data unit '%(unit)s'" +msgstr "" + +msgid "Invalid storage type. Types supported: 'cdrom', 'disk'" +msgstr "无效的存储类型。支持类型为:'cdrom','disk'" + +#, python-format +msgid "The path '%(value)s' is not a valid local/remote path for the device" +msgstr "路径'%(value)s'不是设备的有效本地/远程路径" + +msgid "Only CDROM path can be update." +msgstr "仅支持CDROM路径更新。" + +#, python-format +msgid "" +"The storage device %(dev_name)s does not exist in the virtual machine " +"%(vm_name)s" +msgstr "存储设备%(dev_name)s在虚拟机%(vm_name)s中不存在" + +#, python-format +msgid "Error while creating new storage device: %(error)s" +msgstr "创建新的存储设备时出错:%(error)s" + +#, python-format +msgid "Error while updating storage device: %(error)s" +msgstr "更新存储设备时出错:%(error)s" + +#, python-format +msgid "Error while removing storage device: %(error)s" +msgstr "移除存储设备时出错:%(error)s" + +msgid "Do not support IDE device hot plug" +msgstr "不支持IDE设备的热插拔" + +msgid "" +"Specify type and path or type and pool/volume to add a new virtual machine " +"disk" +msgstr "为添加新建虚拟机磁盘指定类型和路径或者类型和存储池/存储卷" + +msgid "Specify path to update virtual machine disk" +msgstr "指定更新虚拟机磁盘的路径" + +#, python-format +msgid "Controller type %(type)s limitation of %(limit)s devices reached" +msgstr "控制器类型为%(type)s的设备达到上限%(limit)s" + +#, python-format +msgid "Cannot retrieve disk path information for given pool/volume: %(error)s" +msgstr "未能为给出的存储池/存储卷找到对应磁盘路径信息:%(error)s" + +msgid "Volume already in use by other virtual machine." +msgstr "该卷已经被其他虚拟机使用。" + +msgid "" +"Only one of path or pool/volume can be specified to add a new virtual " +"machine disk" +msgstr "增加虚拟机磁盘时,仅能指定路径或存储池/存储卷中的一个" + +#, python-format +msgid "" +"Volume chosen with format %(format)s does not fit in the storage type " +"%(type)s" +msgstr "格式为%(format)s的卷不符合存储类型%(type)s" + +msgid "YUM Repository ID must be one word only string." +msgstr "YUM软件仓库ID必须是只包含一个单词的字符串" + +msgid "Repository URL must be an http://, ftp:// or file:// URL." +msgstr "软件仓库URL必须是http://、 ftp:// 或 file://" + +msgid "" +"Repository configuration is a dictionary with specific values according to " +"repository type." +msgstr "软件仓库配置是一个与仓库键和特定值对应的字典" + +msgid "Distribution to DEB repository must be a string" +msgstr "DEB仓库的发行版本必须是一个字符串" + +msgid "Components to DEB repository must be listed in a array" +msgstr "DEB仓库的组件必须以数组形式列出" + +msgid "Components to DEB repository must be a string" +msgstr "DEB仓库的组件必须是一个字符串" + +msgid "Mirror list to repository must be a string" +msgstr "" + +msgid "YUM Repository name must be string." +msgstr "YUM仓库的名字必须是一个字符串" + +msgid "GPG check must be a boolean value." +msgstr "GPG校验必须是一个布尔值" + +msgid "GPG key must be a URL pointing to the ASCII-armored file." +msgstr "GPG键必须是一个指向ASCII转义文件(.asc文件)的URL" + +#, python-format +msgid "Could not update repository %(repo_id)s." +msgstr "不能更新软件仓库%(repo_id)s" + +#, python-format +msgid "Repository %(repo_id)s does not exist." +msgstr "软件仓库%(repo_id)s不存在。" + +msgid "" +"Specify repository base URL, mirror list or metalink in order to create or " +"update a YUM repository." +msgstr "" + +msgid "Repository management tool was not recognized for your system." +msgstr "您的系统无法识别软件管理工具" + +#, python-format +msgid "Repository %(repo_id)s is already enabled." +msgstr "软件仓库%(repo_id)s已经启用。" + +#, python-format +msgid "Repository %(repo_id)s is already disabled." +msgstr "软件仓库%(repo_id)s已经禁用。" + +#, python-format +msgid "Could not remove repository %(repo_id)s." +msgstr "不能移除软件仓库%(repo_id)s" + +#, python-format +msgid "Could not write repository configuration file %(repo_file)s" +msgstr "无法写软件仓库的配置文件%(repo_file)s" + +msgid "Specify repository distribution in order to create a DEB repository." +msgstr "指定软件仓库发行版本来创建一个DEB仓库。" + +#, python-format +msgid "Could not enable repository %(repo_id)s." +msgstr "不能启用软件仓库%(repo_id)s" + +#, python-format +msgid "Could not disable repository %(repo_id)s." +msgstr "不能禁用软件仓库%(repo_id)s" + +msgid "YUM Repository ID already exists" +msgstr "YUM仓库ID已经存在" + +msgid "YUM Repository name must be a string" +msgstr "YUM仓库名字必须是一个字符串" + +#, python-format +msgid "Unable to list repositories. Details: '%(err)s'" +msgstr "不能列举软件仓库。详情:'%(err)s'" + +#, python-format +msgid "Unable to retrieve repository information. Details: '%(err)s'" +msgstr "不能获取软件仓库的信息。详情:'%(err)s'" + +#, python-format +msgid "Unable to add repository. Details: '%(err)s'" +msgstr "不能增加软件仓库。详情:'%(err)s'" + +#, python-format +msgid "Unable to remove repository. Details: '%(err)s'" +msgstr "不能移除软件仓库。详情:'%(err)s'" + +#, python-format +msgid "" +"Configuration items: '%(items)s' are not supported by repository manager" +msgstr "软件仓库不支持配置类型: %(items)s" + +msgid "Repository metalink must be an http://, ftp:// or file:// URL." +msgstr "" + +msgid "Cannot specify mirrorlist and metalink at the same time." +msgstr "" + +#, python-format +msgid "" +"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it." +msgstr "虚拟机'%(vm)s'在制作快照前必须关机。" + +#, python-format +msgid "" +"Unable to create snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "未能为虚拟机'%(vm)s'制作快照'%(name)s'。详情:%(err)s" + +#, python-format +msgid "Snapshot '%(name)s' does not exist on virtual machine '%(vm)s'." +msgstr "快照'%(name)s'不存在虚拟机'%(vm)s'上。" + +#, python-format +msgid "" +"Unable to retrieve snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "未能在虚拟机'%(vm)s'找到快照'%(name)s'。详情:%(err)s" + +#, python-format +msgid "Unable to list snapshots on virtual machine '%(vm)s'. Details: %(err)s" +msgstr "未能列出虚拟机'%(vm)s'的快照。详情:%(err)s" + +#, python-format +msgid "" +"Unable to delete snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "未能删除虚拟机'%(vm)s'快照'%(name)s'。详情:%(err)s" + +#, python-format +msgid "" +"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "未能找到虚拟机'%(vm)s'当前快照。详情:%(err)s" + +#, python-format +msgid "" +"Unable to revert virtual machine '%(vm)s' to snapshot '%(name)s'. Details: " +"%(err)s" +msgstr "未能恢复虚拟机'%(vm)s'到快照'%(name)s'。详情:%(err)s" + +#, python-format +msgid "" +"Unable to create snapshot of virtual machine '%(vm)s' because it contains a " +"disk with format '%(format)s'; only 'qcow2' is supported." +msgstr "" +"未能为虚拟机'%(vm)s'创建快照因为其使用了格式为'%(format)s'的磁盘;当前仅支" +"持'qcow2'格式。" + +msgid "The number of vCPUs is too large for this system." +msgstr "vCPUs的数量对该系统而言太大。" + +msgid "Invalid vCPU/topology combination." +msgstr "无效的vCPU/topology组合。" + +msgid "This host (or current configuration) does not allow CPU topology." +msgstr "当前主机(或当前配置)不允许CPU拓扑。" + +msgid "ERROR CODE" +msgstr "错误码" + +msgid "REASON" +msgstr "原因" + +msgid "STACK" +msgstr "调用栈" + +msgid "Go to Homepage" +msgstr "返回主页" + +msgid "Create a New Virtual Machine" +msgstr "创建一个新的虚拟机" + +msgid "Virtual Machine Name" +msgstr "虚拟机名称" + +msgid "" +"The name used to identify the virtual machine. If omitted, a name will be " +"chosen based on the template used." +msgstr "名字是虚拟机的标识。如果省略,将会基于使用的模板选择一个名字。" + +msgid "Template" +msgstr "模板" + +msgid "Please create a template first." +msgstr "请先选择一个模板" + +msgid "Create a Template" +msgstr "创建一个模板" + +msgid "Please choose a template." +msgstr "请选择模板。" + +msgid "OS" +msgstr "操作系统" + +msgid "OS Version" +msgstr "操作系统版本" + +msgid "CPUS" +msgstr "中央处理器" + +msgid "Memory" +msgstr "内存" + +msgid "Create" +msgstr "创建" + +msgid "Creating..." +msgstr "正在创建..." + +msgid "Edit Guest" +msgstr "修改客户机" + +msgid "General" +msgstr "常规" + +msgid "Storage" +msgstr "存储" + +msgid "Interface" +msgstr "网络接口" + +msgid "Permission" +msgstr "权限" + +msgid "Host PCI Device" +msgstr "主机PCI设备" + +msgid "Snapshot" +msgstr "快照" + +msgid "Name" +msgstr "名称" + +msgid "CPUs" +msgstr "中央处理器" + +msgid "Memory (MB)" +msgstr "内存(MB)" + +msgid "Icon" +msgstr "图标" + +msgid "Device" +msgstr "设备名称" + +msgid "Path" +msgstr "路径" + +msgid "Network" +msgstr "网络" + +msgid "Type" +msgstr "类型" + +msgid "MAC Address" +msgstr "" + +msgid "Available system users and groups" +msgstr "可选的系统用户及用户组" + +msgid "Selected system users and groups" +msgstr "已选的系统用户及用户组" + +msgid "User" +msgstr "用户" + +msgid "All" +msgstr "所有" + +msgid "To Add" +msgstr "待添加" + +msgid "Added" +msgstr "已添加" + +msgid "filter" +msgstr "过滤器" + +msgid "Product" +msgstr "产品" + +msgid "Vendor" +msgstr "厂商" + +msgid "Created" +msgstr "创建于" + +msgid "Save" +msgstr "保存" + +msgid "Replace" +msgstr "替换" + +msgid "Detach" +msgstr "卸载" + +msgid "Cancel" +msgstr "取消" + +msgid "revert" +msgstr "恢复" + +msgid "Add a Storage Device to VM" +msgstr "为虚拟机添加一个存储设备" + +msgid "Device Type" +msgstr "设备类型" + +msgid "The device type. Currently, \"cdrom\" and \"disk\" are supported." +msgstr "设备类型。目前支持设备类型:\"cdrom\"和\"disk\"。 " + +msgid "Storage Pool" +msgstr "存储池" + +msgid "Storage pool which volume located in" +msgstr "存储卷所在的存储池" + +msgid "Storage Volume" +msgstr "存储卷" + +msgid "Storage volume to be attached" +msgstr "被添加的存储卷" + +msgid "File Path" +msgstr "文件路径" + +msgid "The ISO file path in the server for CDROM." +msgstr "服务器端CDROM所使用的ISO文件路径" + +msgid "Attach" +msgstr "装载" + +msgid "Start" +msgstr "启用" + +msgid "Reset" +msgstr "重置" + +msgid "Pause" +msgstr "" + +msgid "Resume" +msgstr "" + +msgid "Power Off" +msgstr "关闭电源" + +msgid "Actions" +msgstr "操作" + +msgid "Connect" +msgstr "连接到" + +msgid "Clone" +msgstr "制作副本" + +msgid "Edit" +msgstr "编辑" + +msgid "Shut Down" +msgstr "关机" + +msgid "Delete" +msgstr "删除" + +msgid "The username or password you entered is incorrect. Please try again." +msgstr "用户名或密码错误,请重新输入。" + +msgid "This field is required." +msgstr "需要填写此处" + +msgid "Log in" +msgstr "登录" + +msgid "Logging in..." +msgstr "登录中..." + +msgid "Host" +msgstr "主机" + +msgid "Guests" +msgstr "客户机" + +msgid "Templates" +msgstr "模板" + +msgid "Failed to get application configuration" +msgstr "获取应用配置失败" + +msgid "This is not a valid Linux path" +msgstr "这不是一个有效的Linux路径" + +msgid "This is not a valid URL." +msgstr "这不是一个有效的URL" + +msgid "No such data available." +msgstr "没有可用的数据" + +msgid "" +"Can not contact the host system. Verify the host system is up and that you " +"have network connectivity to it. HTTP request response %1. " +msgstr "" +"连接不上主机。请确保主机系统已启动,并且能通过网络连接主机。HTTP请求响应:%1" + +msgid "Unable to read file." +msgstr "" + +msgid "Error while uploading file." +msgstr "" + +msgid "Delete Confirmation" +msgstr "删除确认" + +msgid "OK" +msgstr "确定" + +msgid "Confirm" +msgstr "确认" + +msgid "Warning" +msgstr "警告" + +msgid "Cloning..." +msgstr "" + +msgid "Loading..." +msgstr "正在加载..." + +msgid "An error occurred while retrieving system information." +msgstr "" + +msgid "Retry" +msgstr "重试" + +msgid "Detailed message:" +msgstr "详细消息:" + +msgid "No ISO found" +msgstr "没有发现ISO文件" + +msgid "This is not a valid ISO file." +msgstr "这不是一个有效的ISO文件" + +msgid "This may take a long time. Do you want to continue?" +msgstr "这需要一段时间。是否继续?" + +msgid "This will permanently delete the template. Would you like to continue?" +msgstr "这将永久删除模板。是否继续?" + +msgid "Unable to shut down system as there are some virtual machines running!" +msgstr "有虚拟机在运行,不能关闭主机。" + +msgid "Max:" +msgstr "最大:" + +msgid "Utilization" +msgstr "利用率" + +msgid "Available" +msgstr "可利用的" + +msgid "Read Rate" +msgstr "读速率" + +msgid "Write Rate" +msgstr "写速率" + +msgid "Received" +msgstr "接收" + +msgid "Sent" +msgstr "发送" + +msgid "" +"Shutting down or restarting host will cause unsaved work lost. Continue to " +"shut down/restarting?" +msgstr "关闭或者重启主机会导致没有保存的工作丢失。继续关机/重启?" + +msgid "" +"Repository will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "软件仓库将被永久删除,不能恢复。是否继续?" + +msgid "Repositories" +msgstr "软件仓库" + +msgid "ID" +msgstr "标识符" + +msgid "Base URL" +msgstr "基本URL" + +msgid "Is Mirror" +msgstr "是否为镜像" + +msgid "URL Args" +msgstr "URL参数" + +msgid "Enabled" +msgstr "已启用" + +msgid "GPG Check" +msgstr "GPG校验" + +msgid "GPG Key" +msgstr "GPG键" + +msgid "Add" +msgstr "增加" + +msgid "Remove" +msgstr "删除" + +msgid "Enable" +msgstr "使能" + +msgid "Disable" +msgstr "禁用" + +msgid "Software Updates" +msgstr "软件更新" + +msgid "Package Name" +msgstr "软件包名称" + +msgid "Version" +msgstr "版本" + +msgid "Architecture" +msgstr "体系结构" + +msgid "Repository" +msgstr "软件仓库" + +msgid "Update All" +msgstr "更新所有" + +msgid "Updating..." +msgstr "正在更新..." + +msgid "Failed to retrieve packages update information." +msgstr "查找软件包更新信息失败。" + +msgid "Failed to update package(s)." +msgstr "更新软件包失败" + +msgid "" +"Debug report will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "诊断报告将被永久删除,并且不能恢复。是否继续?" + +msgid "Debug Reports" +msgstr "主机诊断报告" + +msgid "Generated Time" +msgstr "生成时间" + +msgid "Generate" +msgstr "生成" + +msgid "Generating..." +msgstr "正在生成..." + +msgid "Rename" +msgstr "重命名" + +msgid "Download" +msgstr "下载" + +msgid "" +"Report name should contain only letters, digits, underscore ('_') and/or " +"hyphen ('-')." +msgstr "报告名字中只能包含字母、数字、下划线('_')和连字符('-')" + +msgid "Pending..." +msgstr "正在加载..." + +msgid "Report name is the same as the original one." +msgstr "报告名称与原始名称重复。" + +msgid "" +"This will delete the virtual machine and its virtual disks. This operation " +"cannot be undone. Would you like to continue?" +msgstr "这将删除虚拟机和它的虚拟磁盘。该操作不能撤销,继续吗?" + +msgid "Power off Confirmation" +msgstr "关闭电源确认" + +msgid "" +"This action may produce undesirable results, for example unflushed disk " +"cache in the guest. Would you like to continue?" +msgstr "这样做可能导致不良后果,比如客户机磁盘缓存未刷新,确认要继续吗?" + +msgid "Reset Confirmation" +msgstr "重置确认" + +msgid "" +"There is a risk of data loss caused by reset without the guest OS shutdown. " +"Would you like to continue?" +msgstr "在客户机操作系统未关闭的情况下重置有风险导致数据丢失,确认要继续吗?" + +msgid "Shut Down Confirmation" +msgstr "关机确认" + +msgid "Note the guest OS may ignore this request. Would you like to continue?" +msgstr "注意,客户机操作系统可能会忽略这个请求,确认要继续吗?" + +msgid "Virtual Machine delete Confirmation" +msgstr "虚拟机删除确认" + +msgid "" +"This virtual machine is not persistent. Power Off will delete it. Continue?" +msgstr "该虚拟机不是一个稳定的虚拟机,关机将会删除它,是否继续?" + +msgid "" +"When the target guest has SCSI or iSCSI volumes, they will be cloned on " +"default storage pool. The same will happen when the target pool does not " +"have enough space to clone the volumes. Do you want to continue?" +msgstr "" +"当目标客户机使用SCSI或者iSCSI存储卷时,这些存储卷的副本将被放置于默认存储池" +"中。在目标存储池没有足够空间放置其他存储卷的时候也会如此。确认继续?" + +msgid "" +"This CDROM will be detached permanently and you can re-attach it. Continue " +"to detach it?" +msgstr "CDROM将被永久卸载,你可以重新装载它。继续卸载?" + +msgid "Attaching..." +msgstr "正在装载" + +msgid "Replacing..." +msgstr "正在替换..." + +msgid "Successfully attached!" +msgstr "成功装载" + +msgid "Successfully replaced!" +msgstr "成功替换" + +msgid "Successfully detached!" +msgstr "成功卸载" + +msgid "" +"This disk will be detached permanently and you can re-attach it. Continue to " +"detach it?" +msgstr "该磁盘将会被永久卸载,你可以重新添加它,继续执行卸载操作吗?" + +msgid "interface:" +msgstr "接口:" + +msgid "address:" +msgstr "地址:" + +msgid "link_type:" +msgstr "连接类型:" + +msgid "block:" +msgstr "块:" + +msgid "drive_type:" +msgstr "设备类型:" + +msgid "model:" +msgstr "模型:" + +msgid "Affected devices:" +msgstr "被影响的设备:" + +msgid "The VLAN id must be between 1 and 4094." +msgstr "VLAN 标识符必须在1至4094之间" + +msgid "unavailable" +msgstr "无法获取" + +msgid "" +"This action will interrupt network connectivity for any virtual machine that " +"depend on this network." +msgstr "此操作将中断依赖此网络的虚拟机的网络连接。" + +msgid "Create a network" +msgstr "创建一个网络" + +msgid "" +"This network is not persistent. Instead of stop, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"这是一个临时的网络配置,该操作会永久地删除这个网络而不是停止其运行,确定要继" +"续吗?" + +msgid "" +"The bridged VLAN tag may not work well with NetworkManager enabled. You " +"should consider disabling it." +msgstr "" + +msgid "" +"This will permanently delete the storage pool. Would you like to continue?" +msgstr "这将永久删除存储池。是否继续?" + +msgid "This storage pool is empty." +msgstr "这个存储池为空" + +msgid "" +"It will format your disk and you will loose any data in there, are you sure " +"to continue? " +msgstr "你的磁盘将会格式化,磁盘上的数据会丢失,你确定要继续吗?" + +msgid "SCSI Fibre Channel" +msgstr "SCSI光纤通道" + +msgid "No SCSI adapters found." +msgstr "没有发现SCSI适配器" + +msgid "Loading iSCSI targets..." +msgstr "读取iSCSI目标..." + +msgid "No iSCSI found. Please input one." +msgstr "未能找到iSCSI,请输入一个。" + +msgid "Failed to load iSCSI targets." +msgstr "读取iSCSI目标失败。" + +msgid "The storage pool name can not be blank." +msgstr "存储池的名称不能为空。" + +msgid "The storage pool path can not be blank." +msgstr "存储池的路径不能为空。" + +msgid "NFS server mount path can not be blank." +msgstr "NFS服务器挂载路径不能为空。" + +msgid "Invalid NFS mount path." +msgstr "无效的NFS挂载路径。" + +msgid "No logical device selected." +msgstr "没有选择逻辑设备。" + +msgid "The iSCSI target can not be blank." +msgstr "iSCSI目标不能为空。" + +msgid "Server name can not be blank." +msgstr "服务器不能为空。" + +msgid "This is not a valid Server Name or IP. Please, modify it." +msgstr "这不是你个有效的服务器名称或IP地址,请对其进行修改。" + +msgid "Looking for available partitions ..." +msgstr "查找有效的分区 ..." + +msgid "No available partitions found." +msgstr "没有发现模板。" + +msgid "" +"This storage pool is not persistent. Instead of deactivate, this action will " +"permanently delete it. Would you like to continue?" +msgstr "对于非持久存储池,这个操作将会永久删除存储池而不是停用。是否继续?" + +msgid "Unable to retrieve partitions information." +msgstr "未能找到分区信息。" + +msgid "In progress..." +msgstr "正在进行..." + +msgid "Failed!" +msgstr "失败!" + +msgid "CDROM path needs to be a valid local/remote path and cannot be blank." +msgstr "CDROM路径需要一个有效的本地/远程路径且不能为空。" + +msgid "Disk pool or volume cannot be blank." +msgstr "存储池或卷不能为空" + +msgid "Peers" +msgstr "对等机" + +msgid "Searching" +msgstr "正在查询" + +msgid "No peers found." +msgstr "没有发现对等机。" + +msgid "Help" +msgstr "帮助" + +msgid "About" +msgstr "关于" + +msgid "Log out" +msgstr "登出" + +msgid "Version:" +msgstr "版本:" + +msgid "Session timeout, please re-login." +msgstr "登录超时,请重新登录。" + +msgid "User Name" +msgstr "用户名" + +msgid "Password" +msgstr "密码" + +msgid "Generate a New Debug Report" +msgstr "产生一个新的诊断报告" + +msgid "Report Name" +msgstr "诊断报告名" + +msgid "" +"The name used to identify the report. If omitted, a name will be chosen " +"based on current time. Name can contain: letters, digits, underscore (\"_\") " +"and hyphen (\"-\")." +msgstr "" +"名字用来标识诊断报告。如果省略,将会基于当前时间生成一个新名字。名字中可以包" +"含字母、数字、下划线 ('_') 和连字符('-')" + +msgid "Rename a Debug Report" +msgstr "重命名一个调试报告" + +msgid "" +"The name used to identify the report. Name can contain: letters, digits and " +"hyphen (\"-\")." +msgstr "报告的唯一表示名称,名称可以包含:英文字符,数字和连字符(\"-\")。" + +msgid "Submit" +msgstr "提交" + +msgid "Add a Repository" +msgstr "增加一个软件仓库" + +msgid "Identifier" +msgstr "标识符" + +msgid "Single word, unique identifier for the repository." +msgstr "一个单词,唯一标识软件仓库" + +msgid "Textual name for the repository." +msgstr "软件仓库的字面名字" + +msgid "URL" +msgstr "URL" + +msgid "Required Field" +msgstr "必需的字段" + +msgid "URL to the repository. Supported protocols are http, ftp, and file." +msgstr "软件仓库的URL,支持的协议有http、ftp、和file" + +msgid "Repository is a mirror" +msgstr "软件仓库是一个镜像" + +msgid "Distribution" +msgstr "发行版" + +msgid "Distribution of the DEB repository." +msgstr "DEB仓库的发行版" + +msgid "Components" +msgstr "组件" + +msgid "List of components in DEB repository." +msgstr "DEB仓库中的组件列表" + +msgid "Edit Repository" +msgstr "修改软件仓库" + +msgid "Mirror List URL" +msgstr "镜像列表URL" + +msgid "Yes" +msgstr "是" + +msgid "No" +msgstr "否" + +msgid "Add a Volume to Storage Pool" +msgstr "为存储池添加一个卷" + +msgid "Fetch from remote URL" +msgstr "从远程URL获取" + +msgid "Enter the remote URL here." +msgstr "在这里输入远程URL。" + +msgid "Upload a file" +msgstr "上传一个文件" + +msgid "Choose the file you want to upload." +msgstr "选择需要上传的文件。" + +msgid "Define a New Storage Pool" +msgstr "定义一个新的存储池" + +msgid "Storage Pool Name" +msgstr "存储池名称" + +msgid "" +"The name used to identify the storage pools, and it should not be empty." +msgstr "该名称用来唯一标识存储池,该名称不能为空。" + +msgid "Storage Pool Type" +msgstr "存储池类型" + +msgid "Storage Path" +msgstr "存储路径" + +msgid "" +"The path of the Storage Pool. Each Storage Pool must have a unique path." +msgstr "存储池的路径.每个存储池的路径是唯一的。" + +msgid "" +"Kimchi will try to create the directory when it does not already exist in " +"your system." +msgstr "如果目录不存在,KIMCHI会自动在系统中创建一个新的目录" + +msgid "NFS Server IP" +msgstr "NFS服务器IP" + +msgid "NFS server IP or hostname. It can be input or chosen from history." +msgstr "NFS服务器IP或者主机名,可以直接输入或者从历史记录中选取。" + +msgid "NFS Path" +msgstr "NFS 路径" + +msgid "The NFS exported path on NFS server." +msgstr "NFS服务器上导出的NFS路径" + +msgid "Device path" +msgstr "设备路径" + +msgid "iSCSI Server" +msgstr "iSCSI服务器" + +msgid "iSCSI server IP or hostname. It should not be empty." +msgstr "iSCSI服务器IP或者主机名, 不能为空。" + +msgid "Server" +msgstr "服务器" + +msgid "Port" +msgstr "端口" + +msgid "Target" +msgstr "目标" + +msgid "The iSCSI target on iSCSI server" +msgstr "iSCSI目标" + +msgid "Add iSCSI Authentication" +msgstr "添加ISCSI认证" + +msgid "iSCSI Authentication" +msgstr "iSCSI认证" + +msgid "SCSI Adapter" +msgstr "SCSI适配器" + +msgid "Please, wait..." +msgstr "请等待..." + +msgid "Add Template" +msgstr "创建模板" + +msgid "Where is the source media for this template? " +msgstr "模板的源介质在哪里?" + +msgid "Local ISO Image" +msgstr "本地ISO镜像" + +msgid "Local Image File" +msgstr "本地镜像文件" + +msgid "Remote ISO Image" +msgstr "远程ISO镜像" + +msgid "Search ISOs" +msgstr "搜索ISO" + +msgid "The following ISOs are available:" +msgstr "可用ISO文件如下" + +msgid "OS: " +msgstr "操作系统: " + +msgid "Version: " +msgstr "版本: " + +msgid "Size: " +msgstr "大小:" + +msgid "Search more ISOs" +msgstr "搜索更多ISO" + +msgid "Create Templates from Selected ISO" +msgstr "从选中的ISO中创建模板" + +msgid "I want to use a specific ISO file" +msgstr "指定一个ISO文件" + +msgid "Loading default remote ISOs ..." +msgstr "加载默认的远程ISOs ..." + +msgid "Arch: " +msgstr "体系结构:" + +msgid "I want to use a custom URL" +msgstr "我想用一个自定义的URL" + +msgid "Edit Template" +msgstr "编辑模板" + +msgid "Processor" +msgstr "处理器" + +msgid "CDROM" +msgstr "光驱" + +msgid "Image File" +msgstr "镜像文件" + +msgid "Graphics" +msgstr "图形" + +msgid "Disk(GB)" +msgstr "磁盘(GB)" + +msgid "Disk Format" +msgstr "" + +msgid "CPU Number" +msgstr "CPU个数" + +msgid "Manually set CPU topology" +msgstr "手动配置CPU拓扑" + +msgid "Cores" +msgstr "内核数" + +msgid "Threads" +msgstr "线程" + +msgid "CPU" +msgstr "处理器" + +msgid "Disk I/O" +msgstr "磁盘I/O" + +msgid "Network I/O" +msgstr "网络I/O" + +msgid "Livetile" +msgstr "屏幕" + +msgid "No guests found." +msgstr "没有发现客户机" + +msgid "Shut down" +msgstr "关机" + +msgid "Restart" +msgstr "重启" + +msgid "Basic Information" +msgstr "基本信息" + +msgid "OS Distro" +msgstr "操作系统发行版" + +msgid "OS Code Name" +msgstr "操作系统代号" + +msgid "CPU(s)" +msgstr "CPU(s)" + +msgid "System Statistics" +msgstr "系统统计信息" + +msgid "Update Progress" +msgstr "更新进度" + +msgid "Network Name" +msgstr "网络名称" + +msgid "State" +msgstr "状态" + +msgid "Network Type" +msgstr "网络类型" + +msgid "Address Space" +msgstr "地址空间" + +msgid "Name should not contain '/' and '\"'." +msgstr "名字中不能包含‘/’和'\"'。" + +msgid "Isolated: no external network connection" +msgstr "隔离: 同物理网络不连通" + +msgid "NAT: outbound physical network connection only" +msgstr "NAT: 从虚拟机到物理网络单向连接" + +msgid "Bridged: Virtual machines are connected to physical network directly" +msgstr "桥接:虚拟机可以直接连接到物理网络中。" + +msgid "(No interfaces found)" +msgstr "(没有发现网络接口)" + +msgid "Destination" +msgstr "目标设备" + +msgid "Enable VLAN" +msgstr "启用VLAN" + +msgid "VLAN ID" +msgstr "VLAN号" + +msgid "Stop" +msgstr "停止" + +msgid "%Used" +msgstr "" + +msgid "Location" +msgstr "路径" + +msgid "Capacity" +msgstr "容量" + +msgid "Allocated" +msgstr "已分配" + +msgid "active" +msgstr "已激活" + +msgid "inactive" +msgstr "未激活" + +msgid "Deactivate" +msgstr "停用" + +msgid "Activate" +msgstr "激活" + +msgid "Add Volume" +msgstr "添加卷" + +msgid "Extend" +msgstr "扩展" + +msgid "Undefine" +msgstr "取消定义" + +msgid "Format" +msgstr "格式" + +msgid "Allocation" +msgstr "分配" + +msgid "No templates found." +msgstr "没有发现模板" diff --git a/po/zh_TW.po b/po/zh_TW.po new file mode 100644 index 0000000..5570f02 --- /dev/null +++ b/po/zh_TW.po @@ -0,0 +1,2170 @@ +# English translations for kimchi package. +# Copyright (C) 2013 ORGANIZATION +# +msgid "" +msgstr "" +"Project-Id-Version: kimchi 0.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-09 17:37-0300\n" +"PO-Revision-Date: 2013-07-11 17:32-0400\n" +"Last-Translator: Crístian Viana <vianac@linux.vnet.ibm.com>\n" +"Language-Team: English\n" +"Language: zh_TW\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#, python-format +msgid "Unknown parameter %(value)s" +msgstr "" + +#, python-format +msgid "Delete is not allowed for %(resource)s" +msgstr "不容許針對 %(resource)s 執行刪除" + +#, python-format +msgid "%(resource)s does not implement update method" +msgstr "%(resource)s 未實作更新方法" + +#, python-format +msgid "Create is not allowed for %(resource)s" +msgstr "不容許針對 %(resource)s 執行建立" + +msgid "Unable to parse JSON request" +msgstr "無法剖析 JSON 要求" + +msgid "This API only supports JSON" +msgstr "此 API 僅支援 JSON" + +#, python-format +msgid "Parameters does not match requirement in schema: %(err)s" +msgstr "" + +msgid "You don't have permission to perform this operation." +msgstr "" + +msgid "Datastore is not initiated in the model object." +msgstr "未在模型物件中起始資料儲存庫。" + +#, python-format +msgid "Unable to start task due error: %(err)s" +msgstr "由於下列錯誤,無法開始工作:%(err)s" + +#, python-format +msgid "Timeout of %(seconds)s seconds expired while running task '%(task)s." +msgstr "" + +#, python-format +msgid "Authentication failed for user '%(username)s'. [Error code: %(code)s]" +msgstr "使用者 '%(username)s' 的鑑別失敗。[錯誤碼:%(code)s]" + +msgid "You are not authorized to access Kimchi" +msgstr "您未獲授權來存取 Kimchi" + +#, python-format +msgid "Specify %(item)s to login into Kimchi" +msgstr "指定 %(item)s 以登入 Kimchi" + +#, python-format +msgid "User %(user_id)s not found with given LDAP settings." +msgstr "" + +#, python-format +msgid "Invalid LDAP configuration: %(item)s : %(value)s" +msgstr "" + +msgid "Unknown \"_cap\" specified" +msgstr "" + +msgid "\"_passthrough\" should be \"true\" or \"false\"" +msgstr "" + +msgid "\"_passthrough_affected_by\" should be a device name string" +msgstr "" + +#, python-format +msgid "Error while getting block devices. Details: %(err)s" +msgstr "取得區塊裝置時發生錯誤。詳細資料:%(err)s" + +#, python-format +msgid "Error while getting block device information for %(device)s." +msgstr "取得 %(device)s 的區塊裝置資訊時發生錯誤。" + +#, python-format +msgid "Unable to find distro file: %(filename)s" +msgstr "找不到 distro 檔案:%(filename)s" + +#, python-format +msgid "" +"Unable to parse distro file: %(filename)s. Make sure, it is a JSON file." +msgstr "無法剖析 distro 檔案:%(filename)s。請確保它是 JSON 檔案。" + +#, python-format +msgid "Unable to login to iSCSI host target %(portal)s. Details: %(err)s" +msgstr "無法登入 iSCSI 主機目標 %(portal)s。詳細資料:%(err)s" + +#, python-format +msgid "Unable to login to iSCSI host %(host)s target %(target)s" +msgstr "無法登入 iSCSI 主機 %(host)s 目標 %(target)s" + +#, python-format +msgid "Unable to find ISO file %(filename)s" +msgstr "" + +#, python-format +msgid "The ISO file %(filename)s is not bootable" +msgstr "ISO 檔案 %(filename)s 不可開機" + +#, python-format +msgid "The ISO file %(filename)s does not have a valid El Torito boot record" +msgstr "ISO 檔案 %(filename)s 沒有有效的 El Torito 開機記錄" + +#, python-format +msgid "Invalid El Torito validation entry in ISO %(filename)s" +msgstr "ISO %(filename)s 中有無效的 El Torito 驗證項目" + +#, python-format +msgid "Invalid El Torito boot indicator in ISO %(filename)s" +msgstr "ISO %(filename)s 中有無效的 El Torito 啟動指示器" + +#, python-format +msgid "Unexpected volume type for primary volume in ISO %(filename)s" +msgstr "ISO %(filename)s 中有主要磁碟區的非預期磁區類型" + +#, python-format +msgid "Bad format while reading volume descriptor in ISO %(filename)s" +msgstr "讀取 ISO %(filename)s 中的磁區描述子時遇到不當的格式" + +#, python-format +msgid "" +"The hypervisor doesn't have permission to use this ISO %(filename)s. " +"Consider moving it under /var/lib/libvirt, or set the search permission to " +"file access control lists for '%(user)s' user if possible, or add the " +"'%(user)s' to the ISO path group, or (not recommended) 'chmod -R o+x " +"'path_to_iso'.Details: %(err)s" +msgstr "" +"Hypervisor 沒有使用此 ISO %(filename)s 的許可權。請考量將其移動至 /var/lib/" +"libvirt 下、將搜尋許可權設為'%(user)s' 使用者的檔案存取控制清單(若有可能)、" +"將 '%(user)s' 新增至 ISO 路徑群組或(建議不要執行此動作)執行 'chmod -R o+x " +"'path_to_iso'。詳細資料:%(err)s" + +msgid "An error occurred when probing image OS information." +msgstr "" + +msgid "No OS information found in given image." +msgstr "" + +#, python-format +msgid "Unable to read image file %(filename)s" +msgstr "" + +#, python-format +msgid "" +"Image file must be an existing file on system. %(filename)s is not a valid " +"input." +msgstr "" + +#, python-format +msgid "Virtual machine %(name)s already exists" +msgstr "虛擬機器 %(name)s 已存在" + +#, python-format +msgid "Virtual machine %(name)s does not exist" +msgstr "虛擬機器 %(name)s 不存在" + +#, python-format +msgid "" +"Unable to rename virtual machine %(name)s. The name %(new_name)s is already " +"in use or the virtual machine is not powered off." +msgstr "" + +#, python-format +msgid "Unable to retrieve screenshot for stopped virtual machine %(name)s" +msgstr "無法擷取已停止虛擬機器 %(name)s 的畫面" + +msgid "Remote ISO image is not supported by this server." +msgstr "此伺服器不支援遠端 ISO 映像檔。" + +#, python-format +msgid "Screenshot is not supported on virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Unable to create virtual machine %(name)s. Details: %(err)s" +msgstr "無法建立虛擬機器 %(name)s。詳細資料:%(err)s" + +#, python-format +msgid "Unable to update virtual machine %(name)s. Details: %(err)s" +msgstr "無法建立虛擬機器 %(name)s。詳細資料:%(err)s" + +#, python-format +msgid "Unable to retrieve virtual machine %(name)s. Details: %(err)s" +msgstr "無法擷取虛擬機器 %(name)s。詳細資料:%(err)s" + +#, python-format +msgid "Unable to connect to powered off virtual machine %(name)s." +msgstr "" + +msgid "Virtual machine name must be a string without slashes (/)" +msgstr "" + +#, python-format +msgid "Invalid template URI %(value)s specified for virtual machine" +msgstr "" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for virtual machine" +msgstr "" + +msgid "Supported virtual machine graphics are Spice or VNC" +msgstr "" + +msgid "Graphics address to listen on must be IPv4 or IPv6" +msgstr "要接聽的圖形卡位址必須是 IPv4 或 IPv6" + +msgid "Specify a template to create a virtual machine from" +msgstr "指定用於建立虛擬機器的範本" + +#, python-format +msgid "Unable to start virtual machine %(name)s. Details: %(err)s" +msgstr "無法啟動虛擬機器 %(name)s。詳細資料:%(err)s" + +#, python-format +msgid "Unable to power off virtual machine %(name)s. Details: %(err)s" +msgstr "無法停止虛擬機器 %(name)s。詳細資料:%(err)s" + +#, python-format +msgid "Unable to delete virtual machine %(name)s. Details: %(err)s" +msgstr "無法刪除虛擬機器 %(name)s。詳細資料:%(err)s" + +#, python-format +msgid "Unable to reset virtual machine %(name)s. Details: %(err)s" +msgstr "無法重新命名虛擬機器 %(name)s。詳細資料:%(err)s" + +msgid "User name list must be an array" +msgstr "" + +msgid "User name must be a string" +msgstr "網路名稱必須是字串" + +msgid "Group name list must be an array" +msgstr "" + +msgid "Group name must be a string" +msgstr "網路名稱必須是字串" + +#, python-format +msgid "User(s) '%(users)s' do not exist" +msgstr "使用者 '%(users)s' 不存在。" + +#, python-format +msgid "Group(s) '%(groups)s' do not exist" +msgstr "使用者 '%(groups)s' 不存在。" + +#, python-format +msgid "Unable to shutdown virtual machine %(name)s. Details: %(err)s" +msgstr "無法停止虛擬機器 %(name)s。詳細資料:%(err)s" + +#, python-format +msgid "" +"Unable to get access metadata of virtual machine %(name)s. Details: %(err)s" +msgstr "無法啟動虛擬機器 %(name)s。詳細資料:%(err)s" + +msgid "The guest console password must be a string." +msgstr "" + +msgid "The life time for the guest console password must be a number." +msgstr "" + +#, python-format +msgid "Virtual machine '%(name)s' must be stopped before cloning it." +msgstr "" + +#, python-format +msgid "Insufficient disk space to clone virtual machine '%(name)s'" +msgstr "" + +#, python-format +msgid "Unable to clone VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Invalid operation for non-persistent virtual machine %(name)s" +msgstr "" + +#, python-format +msgid "Cannot suspend VM '%(name)s' because it is not running." +msgstr "" + +#, python-format +msgid "Unable to suspend VM '%(name)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Cannot resume VM '%(name)s' because it is not paused." +msgstr "" + +#, python-format +msgid "Unable to resume VM '%(name)s'. Details: %(err)s" +msgstr "" + +msgid "Memory assigned is higher then the maximum allowed in the host." +msgstr "" + +#, python-format +msgid "" +"VM '%(name)s' does not support live memory update. Update the memory with " +"the machine offline to enable this feature." +msgstr "" + +msgid "Only increase memory is allowed in active VMs" +msgstr "" + +msgid "" +"For live memory update, new memory value must be equal old memory value plus " +"multiples of 1024 Mib" +msgstr "" + +msgid "There are not enough free slots of 1024 Mib in the guest." +msgstr "" + +msgid "" +"Host's libvirt version does not support memory devices. Libvirt must be >= " +"1.2.14" +msgstr "" + +#, python-format +msgid "Error attaching memory device. Details: %(error)s" +msgstr "" + +#, python-format +msgid "" +"VM %(vmid)s does not contain directly assigned host device %(dev_name)s." +msgstr "" + +#, python-format +msgid "The host device %(dev_name)s is not allowed to directly assign to VM." +msgstr "" + +msgid "" +"No IOMMU groups found. Host PCI pass through needs IOMMU group to function " +"correctly. Please enable Intel VT-d or AMD IOMMU in your BIOS, then verify " +"the Kernel is compiled with IOMMU support. For Intel CPU, add intel_iommu=on " +"to your Kernel parameter in /boot/grub2/grub.conf. For AMD CPU, add iommu=pt " +"iommu=1." +msgstr "" + +msgid "\"name\" should be a device name string" +msgstr "" + +#, python-format +msgid "Interface %(iface)s does not exist in virtual machine %(name)s" +msgstr "介面 %(iface)s 不存在於虛擬機器 %(name)s 中" + +#, python-format +msgid "" +"Network %(network)s specified for virtual machine %(name)s does not exist" +msgstr "為虛擬機器 %(name)s 指定的網路 %(network)s 不存在" + +msgid "Supported virtual machine interfaces type is only network" +msgstr "唯一受支援的虛擬機器介面類型是網路" + +msgid "Network name for virtual machine interface must be a string" +msgstr "虛擬機器介面的網路名稱必須是字串" + +msgid "Invalid network model card specified for virtual machine interface" +msgstr "為虛擬機器介面指定的網路模型卡無效" + +msgid "Specify type and network to add a new virtual machine interface" +msgstr "指定類型和網路以新增虛擬機器介面" + +msgid "MAC Address must respect this format FF:FF:FF:FF:FF:FF" +msgstr "" + +#, python-format +msgid "MAC Address %(mac)s already exists in virtual machine %(name)s" +msgstr "" + +msgid "Invalid MAC Address" +msgstr "" + +msgid "Cannot change MAC address of a running virtual machine" +msgstr "" + +#, python-format +msgid "Template %(name)s already exists" +msgstr "範本 %(name)s 已存在" + +#, python-format +msgid "" +"Network '%(network)s' specified for template %(template)s does not exist" +msgstr "為範本 %(template)s 指定的網路 '%(network)s' 不存在" + +#, python-format +msgid "" +"Storage pool %(pool)s specified for template %(template)s does not exist" +msgstr "為範本 %(template)s 指定的儲存區 '%(pool)s' 不存在" + +#, python-format +msgid "Storage pool %(pool)s specified for template %(template)s is not active" +msgstr "為範本 %(template)s 指定的儲存區 '%(pool)s' 未處於作用中狀態" + +#, python-format +msgid "Invalid parameter '%(param)s' specified for CDROM." +msgstr "為 CDROM 指定的參數 '%(param)s' 無效。" + +#, python-format +msgid "Network %(network)s specified for template %(template)s is not active" +msgstr "為範本 %(template)s 指定的網路 %(network)s 未處於作用中狀態" + +msgid "Template name must be a string" +msgstr "範本名稱必須是字串" + +msgid "Template icon must be a path to the image" +msgstr "範本圖示必須是影像的路徑" + +msgid "Template distribution must be a string" +msgstr "範本發行套件必須是字串" + +msgid "Template distribution version must be a string" +msgstr "範本發行版本必須是字串" + +msgid "The number of CPUs must be an integer greater than 0" +msgstr "CPU 數目必須是整數" + +msgid "Amount of memory (MB) must be an integer greater than 512" +msgstr "記憶體數量 (MB) 必須是大於 512 的整數" + +msgid "Template CDROM must be a local or remote ISO file" +msgstr "範本 CDROM 必須是本端或遠端 ISO 檔案" + +#, python-format +msgid "Invalid storage pool URI %(value)s specified for template" +msgstr "為範本指定的儲存區 URI %(value)s 無效" + +msgid "Specify an ISO image as CDROM or a base image to create a template" +msgstr "指定 ISO 映像檔作為 CDROM 以建立範本" + +msgid "All networks for the template must be specified in a list." +msgstr "範本的所有網路都必須在清單中指定。" + +msgid "Specify a volume to a template when storage pool is iSCSI or SCSI" +msgstr "" + +#, python-format +msgid "The volume %(volume)s is not in storage pool %(pool)s" +msgstr "" + +#, python-format +msgid "Unable to create template due error: %(err)s" +msgstr "由於下列錯誤,無法建立範本:%(err)s" + +#, python-format +msgid "Unable to delete template due error: %(err)s" +msgstr "由於下列錯誤,無法刪除範本:%(err)s" + +msgid "Disk size must be an integer greater than 1GB." +msgstr "" + +msgid "Template base image must be a valid local image file" +msgstr "範本 CDROM 必須是本端或遠端 ISO 檔案" + +#, python-format +msgid "Cannot identify base image %(path)s format" +msgstr "" + +msgid "" +"When specifying CPU topology, VCPUs must be a product of sockets, cores, and " +"threads." +msgstr "" + +msgid "" +"When specifying CPU topology, each element must be an integer greater than " +"zero." +msgstr "" + +msgid "" +"Invalid disk image format. Valid formats: bochs, cloop, cow, dmg, qcow, " +"qcow2, qed, raw, vmdk, vpc." +msgstr "" + +#, python-format +msgid "Storage pool %(name)s already exists" +msgstr "儲存區 %(name)s 已存在" + +#, python-format +msgid "Storage pool %(name)s does not exist" +msgstr "儲存區 %(name)s 不存在" + +#, python-format +msgid "Specify %(item)s in order to create the storage pool %(name)s" +msgstr "指定 %(item)s 以建立儲存區 %(name)s" + +#, python-format +msgid "Unable to delete active storage pool %(name)s" +msgstr "無法刪除作用中的儲存區 %(name)s" + +#, python-format +msgid "Unable to list storage pools. Details: %(err)s" +msgstr "無法列出儲存區。詳細資料:%(err)s" + +#, python-format +msgid "Unable to create storage pool %(name)s. Details: %(err)s" +msgstr "無法建立儲存區 %(name)s。詳細資料:%(err)s" + +#, python-format +msgid "" +"Unable to get number of storage volumes in storage pool %(name)s. Details: " +"%(err)s" +msgstr "無法取得儲存區 %(name)s 中儲存磁區的數目。詳細資料:%(err)s" + +#, python-format +msgid "Unable to activate storage pool %(name)s. Details: %(err)s" +msgstr "無法啟動儲存區 %(name)s。詳細資料:%(err)s" + +#, python-format +msgid "Unable to deactivate storage pool %(name)s. Details: %(err)s" +msgstr "無法取消啟動儲存區 %(name)s。詳細資料:%(err)s" + +#, python-format +msgid "Unable to delete storage pool %(name)s. Details: %(err)s" +msgstr "無法刪除儲存區 %(name)s。詳細資料:%(err)s" + +#, python-format +msgid "" +"Unable to create NFS Pool as export path %(path)s may block during mount" +msgstr "無法建立 NFS 儲存區,因為在裝載期間,匯出路徑 %(path)s 可能會封鎖" + +#, python-format +msgid "Unable to create NFS Pool as export path %(path)s mount failed" +msgstr "無法建立 NFS 儲存區,因為匯出路徑 %(path)s 裝載失敗" + +#, python-format +msgid "Unsupported storage pool type: %(type)s" +msgstr "不受支援的儲存區類型:%(type)s" + +#, python-format +msgid "Error while retrieving storage pool XML to %(pool)s" +msgstr "" + +msgid "Storage pool name must be a string without slashes (/)" +msgstr "" + +msgid "" +"Supported storage pool types are dir, netfs, logical, iscsi, isci and kimchi-" +"iso" +msgstr "" + +msgid "Storage pool path must be a string" +msgstr "儲存區路徑必須是字串" + +msgid "Storage pool host must be a IP or hostname" +msgstr "儲存區主機必須是 IP 或主機名稱" + +msgid "Storage pool device must be the absolute path to the block device" +msgstr "" + +msgid "Storage pool devices parameter must be a list" +msgstr "儲存區裝置參數必須是清單" + +msgid "Target IQN of an iSCSI pool must be a string" +msgstr "iSCSI 儲存區的目標 IQN 必須是字串" + +msgid "Port of a remote storage server must be an integer between 1 and 65535" +msgstr "遠端儲存體伺服器的埠必須是介於 1 和 65535 之間的整數" + +msgid "iSCSI target username must be a string" +msgstr "" + +msgid "iSCSI target password must be a string" +msgstr "" + +msgid "Specify name and type to create a storage pool" +msgstr "指定名稱和類型以建立儲存區" + +#, python-format +msgid "" +"%(disk)s is not a valid disk/partition. Could not add it to the pool " +"%(pool)s." +msgstr "%(disk)s 不是有效的磁碟/分割區。無法將它新增至儲存區%(pool)s。" + +#, python-format +msgid "Unable to extend logical pool %(pool)s. Details: %(err)s" +msgstr "" + +msgid "The parameter disks only can be updated for logical storage pool." +msgstr "只能針對邏輯儲存區更新「僅限磁碟」參數。" + +msgid "The SCSI host adapter name must be a string." +msgstr "SCSI 主機配接卡名稱必須是字串。" + +msgid "The storage pool kimchi_isos is reserved for internal use" +msgstr "儲存區 kimchi_isos 保留供內部使用" + +#, python-format +msgid "" +"Unable to activate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "無法啟動 NFS 儲存區 %(name)s。NFS 伺服器 %(server)s無法連線。" + +#, python-format +msgid "" +"Unable to deactivate NFS storage pool %(name)s. NFS server %(server)s is " +"unreachable." +msgstr "無法取消啟動 NFS 儲存區 %(name)s。NFS 伺服器 %(server)s無法連線。" + +#, python-format +msgid "" +"Unable to deactivate pool %(name)s as it is associated with some templates" +msgstr "無法取消啟動儲存區 %(name)s,因為它與部分範本相關聯" + +#, python-format +msgid "Unable to delete pool %(name)s as it is associated with some templates" +msgstr "無法刪除儲存區 %(name)s,因為它與部分範本相關聯" + +#, python-format +msgid "" +"A volume group named '%(name)s' already exists. Please, choose another name " +"to create the logical pool." +msgstr "名為 '%(name)s' 的磁區群組已存在。請選擇另一個名稱以建立邏輯儲存區。" + +#, python-format +msgid "Unable to update database with deep scan information due error: %(err)s" +msgstr "由於下列錯誤,無法使用深層掃描資訊來更新資料庫:%(err)s" + +#, python-format +msgid "Storage volume %(name)s already exists" +msgstr "儲存磁區 %(name)s 已存在" + +#, python-format +msgid "Storage volume %(name)s does not exist in storage pool %(pool)s" +msgstr "儲存磁區 %(name)s 不存在於儲存區 %(pool)s 中" + +#, python-format +msgid "" +"Unable to create storage volume %(volume)s because storage pool %(pool)s is " +"not active" +msgstr "" + +#, python-format +msgid "Specify %(item)s in order to create storage volume %(volume)s" +msgstr "指定 %(item)s 以建立儲存磁區 %(volume)s" + +#, python-format +msgid "" +"Unable to list storage volumes because storage pool %(pool)s is not active" +msgstr "無法列出儲存磁區,因為儲存區 %(pool)s 未處於作用中狀態" + +#, python-format +msgid "" +"Unable to create storage volume %(name)s in storage pool %(pool)s. Details: " +"%(err)s" +msgstr "無法在儲存區 %(pool)s 中建立儲存磁區 %(name)s。詳細資料:%(err)s" + +#, python-format +msgid "" +"Unable to list storage volumes in storage pool %(pool)s. Details: %(err)s" +msgstr "無法列出儲存區 %(pool)s 中的儲存磁區。詳細資料:%(err)s" + +#, python-format +msgid "Unable to wipe storage volumes %(name)s. Details: %(err)s" +msgstr "無法清除儲存磁區 %(name)s。詳細資料:%(err)s" + +#, python-format +msgid "Unable to delete storage volume %(name)s. Details: %(err)s" +msgstr "無法刪除儲存磁區 %(name)s。詳細資料:%(err)s" + +#, python-format +msgid "Unable to resize storage volume %(name)s. Details: %(err)s" +msgstr "無法調整儲存磁區 %(name)s 的大小。詳細資料:%(err)s" + +#, python-format +msgid "Storage type %(type)s does not support volume create and delete" +msgstr "儲存體類型 %(type)s 不支援磁區建立和刪除" + +msgid "Storage volume name must be a string" +msgstr "儲存磁區名稱必須是字串" + +msgid "Storage volume allocation must be an integer number" +msgstr "儲存磁區配置必須是整數" + +msgid "" +"Storage volume format not supported. Valid formats: bochs, cloop, cow, dmg, " +"qcow, qcow2, qed, raw, vmdk, vpc." +msgstr "" + +msgid "Storage volume requires a volume name" +msgstr "儲存磁區需要磁區名稱" + +#, python-format +msgid "" +"Unable to update database with storage volume information due error: %(err)s" +msgstr "由於下列錯誤,無法使用儲存磁區資訊來更新資料庫:%(err)s" + +#, python-format +msgid "Only one of parameter %(param)s can be specified" +msgstr "" + +#, python-format +msgid "Create volume from %(param)s is not supported" +msgstr "" + +msgid "Storage volume capacity must be an integer number." +msgstr "" + +msgid "Storage volume URL must be http://, https://, ftp:// or ftps://." +msgstr "" + +#, python-format +msgid "Unable to access file %(url)s. Please, check it." +msgstr "" + +#, python-format +msgid "" +"Unable to clone storage volume '%(name)s' in pool '%(pool)s'. Details: " +"%(err)s" +msgstr "" + +msgid "Specify chunk data and its size to upload a file." +msgstr "" + +msgid "In order to upload a storage volume, specify the 'upload' parameter." +msgstr "" + +msgid "" +"Unable to upload chunk data as it does not match with requested chunk size." +msgstr "" + +#, python-format +msgid "The storage volume %(vol)s is not under an upload process." +msgstr "" + +msgid "The upload chunk data will exceed the storage volume size." +msgstr "" + +#, python-format +msgid "Unable to upload chunk data to storage volume. Details: %(err)s." +msgstr "" + +#, python-format +msgid "Interface %(name)s does not exist" +msgstr "介面 %(name)s 不存在" + +#, python-format +msgid "Network %(name)s already exists" +msgstr "網路 %(name)s 已存在" + +#, python-format +msgid "Network %(name)s does not exist" +msgstr "網路 %(name)s 不存在" + +#, python-format +msgid "Subnet %(subnet)s specified for network %(network)s is not valid." +msgstr "為網路 %(network)s 指定的子網路 %(subnet)s 無效。" + +#, python-format +msgid "Specify a network interface to create bridged network %(name)s" +msgstr "指定網路介面以建立橋接的網路 %(name)s" + +#, python-format +msgid "Unable to delete active network %(name)s" +msgstr "無法刪除作用中的網路 %(name)s" + +#, python-format +msgid "Interface %(iface)s specified for network %(network)s is already in use" +msgstr "為網路 %(network)s 指定的介面 %(iface)s 已在使用中" + +msgid "Interface should be bare NIC, bonding or bridge device." +msgstr "介面應該是裸露 NIC、接合裝置或橋接器裝置。" + +#, python-format +msgid "Unable to create network %(name)s. Details: %(err)s" +msgstr "無法建立網路 %(name)s。詳細資料:%(err)s" + +#, python-format +msgid "Unable to find a free IP address for network '%(name)s'" +msgstr "找不到網路 '%(name)s' 的可用 IP 位址" + +#, python-format +msgid "The interface %(iface)s already exists." +msgstr "" + +msgid "Network name must be a string without slashes (/) or quotes (\")" +msgstr "" + +msgid "Supported network types are isolated, NAT and bridge" +msgstr "受支援的網路類型是隔離式、NAT 和橋接器" + +msgid "Network subnet must be a string with IP address and prefix or netmask" +msgstr "網路的子網路必須是含有 IP 位址、字首或網路遮罩的字串" + +msgid "Network interface must be a string" +msgstr "網路介面必須是字串" + +msgid "Network VLAN ID must be an integer between 1 and 4094" +msgstr "網路 VLAN ID 必須是介於 1 和 4094 之間的整數" + +msgid "Specify name and type to create a Network" +msgstr "指定名稱和類型以建立網路" + +#, python-format +msgid "" +"Unable to delete network %(name)s. There are some virtual machines %(vms)s " +"and/or templates linked to this network." +msgstr "" + +#, python-format +msgid "" +"Unable to deactivate network %(name)s. There are some virtual machines " +"%(vms)s and/or templates linked to this network." +msgstr "" + +#, python-format +msgid "Bridge device %(name)s can not be the trunk device of a VLAN." +msgstr "橋接器裝置 %(name)s 不能是 VLAN 的幹線裝置。" + +#, python-format +msgid "Failed to activate interface %(iface)s: %(err)s." +msgstr "無法啟動介面 %(iface)s:%(err)s。" + +#, python-format +msgid "" +"Failed to activate interface %(iface)s. Please check the physical link " +"status." +msgstr "無法啟動介面 %(iface)s。請檢查實際鏈結狀態。" + +#, python-format +msgid "Failed to start network %(name)s. Details: %(err)s" +msgstr "" + +#, python-format +msgid "Debug report %(name)s does not exist" +msgstr "除錯報告 %(name)s 不存在" + +msgid "Debug report tool not found in system" +msgstr "在系統中找不到除錯報告工具" + +#, python-format +msgid "Unable to create debug report %(name)s. Details: %(err)s." +msgstr "無法建立除錯報告 %(name)s。詳細資料:%(err)s。" + +#, python-format +msgid "Can not find any debug report with the given name %(name)s" +msgstr "" + +#, python-format +msgid "Unable to generate debug report %(name)s. Details: %(err)s" +msgstr "無法產生除錯報告 %(name)s。詳細資料:%(err)s" + +msgid "You should give a name for the debug report file." +msgstr "" + +msgid "" +"Debug report name must be a string. Only letters, digits, underscore ('_') " +"and hyphen ('-') are allowed." +msgstr "" + +#, python-format +msgid "" +"The debug report with specified name \"%(name)s\" already exists. Please use " +"another one." +msgstr "名為 '%(name)s' 的磁區群組已存在。請選擇另一個名稱以建立邏輯儲存區。" + +#, python-format +msgid "Storage server %(server)s was not used by Kimchi" +msgstr "Kimchi 未使用儲存體伺服器 %(server)s" + +#, python-format +msgid "Distro '%(name)s' does not exist" +msgstr "Distro '%(name)s' 不存在" + +#, python-format +msgid "Partition %(name)s does not exist in the host" +msgstr "分割區 %(name)s 不存在於主機中" + +msgid "Unable to shutdown host machine as there are running virtual machines" +msgstr "無法關閉主機,因為有一些虛擬機器正在執行中" + +msgid "Unable to reboot host machine as there are running virtual machines" +msgstr "無法將主機重新開機,因為有一些虛擬機器正在執行中" + +#, python-format +msgid "Node device '%(name)s' not found" +msgstr "找不到節點裝置 '%(name)s'" + +msgid "Conflicting flag filters specified." +msgstr "" + +msgid "No packages marked for update" +msgstr "沒有套件標示為要進行更新" + +#, python-format +msgid "Package %(name)s is not marked to be updated." +msgstr "套件 %(name)s 未標示為要進行更新。" + +#, python-format +msgid "Error while getting packages marked to be updated. Details: %(err)s" +msgstr "取得標示為要進行更新的套件時發生錯誤。詳細資料:%(err)s" + +msgid "There is no compatible package manager for this system." +msgstr "沒有此系統的相容套件管理程式。" + +#, python-format +msgid "Unable to find %(item)s in datastore" +msgstr "在資料儲存庫中找不到 %(item)s" + +#, python-format +msgid "Invalid URI %(uri)s" +msgstr "URI %(uri)s 無效" + +#, python-format +msgid "Timeout while running command '%(cmd)s' after %(seconds)s seconds" +msgstr "執行指令 '%(cmd)s' %(seconds)s 秒之後逾時" + +msgid "Unable to choose a virtual machine name" +msgstr "" + +#, python-format +msgid "Invalid data value '%(value)s'" +msgstr "" + +#, python-format +msgid "Invalid data unit '%(unit)s'" +msgstr "" + +msgid "Invalid storage type. Types supported: 'cdrom', 'disk'" +msgstr "儲存體類型無效。受支援的類型:'cdrom'" + +#, python-format +msgid "The path '%(value)s' is not a valid local/remote path for the device" +msgstr "" + +msgid "Only CDROM path can be update." +msgstr "" + +#, python-format +msgid "" +"The storage device %(dev_name)s does not exist in the virtual machine " +"%(vm_name)s" +msgstr "" + +#, python-format +msgid "Error while creating new storage device: %(error)s" +msgstr "建立新的儲存裝置時發生錯誤:%(error)s" + +#, python-format +msgid "Error while updating storage device: %(error)s" +msgstr "更新儲存裝置時發生錯誤:%(error)s" + +#, python-format +msgid "Error while removing storage device: %(error)s" +msgstr "移除儲存裝置時發生錯誤:%(error)s" + +msgid "Do not support IDE device hot plug" +msgstr "" + +msgid "" +"Specify type and path or type and pool/volume to add a new virtual machine " +"disk" +msgstr "指定類型和路徑以新增虛擬機器磁碟" + +msgid "Specify path to update virtual machine disk" +msgstr "指定路徑以更新虛擬機器磁碟" + +#, python-format +msgid "Controller type %(type)s limitation of %(limit)s devices reached" +msgstr "" + +#, python-format +msgid "Cannot retrieve disk path information for given pool/volume: %(error)s" +msgstr "" + +msgid "Volume already in use by other virtual machine." +msgstr "" + +msgid "" +"Only one of path or pool/volume can be specified to add a new virtual " +"machine disk" +msgstr "指定類型和路徑以新增虛擬機器磁碟" + +#, python-format +msgid "" +"Volume chosen with format %(format)s does not fit in the storage type " +"%(type)s" +msgstr "" + +msgid "YUM Repository ID must be one word only string." +msgstr "YUM 儲存庫 ID 必須是僅限一個單字的字串。" + +msgid "Repository URL must be an http://, ftp:// or file:// URL." +msgstr "儲存庫 URL 必須是 http://、ftp:// 或 file:// URL。" + +msgid "" +"Repository configuration is a dictionary with specific values according to " +"repository type." +msgstr "儲存庫配置是字典,其中包含於儲存庫類型對應的特定值。" + +msgid "Distribution to DEB repository must be a string" +msgstr "DEB 儲存庫的發行套件必須是字串" + +msgid "Components to DEB repository must be listed in a array" +msgstr "DEB 儲存庫的元件必須以陣列的形式列出" + +msgid "Components to DEB repository must be a string" +msgstr "DEB 儲存庫的元件必須是字串" + +msgid "Mirror list to repository must be a string" +msgstr "" + +msgid "YUM Repository name must be string." +msgstr "YUM 儲存庫名稱必須是字串。" + +msgid "GPG check must be a boolean value." +msgstr "GPG 檢查必須是布林值。" + +msgid "GPG key must be a URL pointing to the ASCII-armored file." +msgstr "GPG 金鑰必須是指向 ASCII 裝甲檔案的 URL。" + +#, python-format +msgid "Could not update repository %(repo_id)s." +msgstr "無法更新儲存庫 %(repo_id)s。" + +#, python-format +msgid "Repository %(repo_id)s does not exist." +msgstr "儲存庫 %(repo_id)s 不存在。" + +msgid "" +"Specify repository base URL, mirror list or metalink in order to create or " +"update a YUM repository." +msgstr "" + +msgid "Repository management tool was not recognized for your system." +msgstr "未能辨識系統的儲存庫管理工具。" + +#, python-format +msgid "Repository %(repo_id)s is already enabled." +msgstr "已啟用儲存庫 %(repo_id)s。" + +#, python-format +msgid "Repository %(repo_id)s is already disabled." +msgstr "已停用儲存庫 %(repo_id)s。" + +#, python-format +msgid "Could not remove repository %(repo_id)s." +msgstr "無法移除儲存庫 %(repo_id)s。" + +#, python-format +msgid "Could not write repository configuration file %(repo_file)s" +msgstr "無法寫入儲存庫配置檔 %(repo_file)s" + +msgid "Specify repository distribution in order to create a DEB repository." +msgstr "指定儲存庫發行套件以建立 DEB 儲存庫。" + +#, python-format +msgid "Could not enable repository %(repo_id)s." +msgstr "無法啟用儲存庫 %(repo_id)s。" + +#, python-format +msgid "Could not disable repository %(repo_id)s." +msgstr "無法停用儲存庫 %(repo_id)s。" + +msgid "YUM Repository ID already exists" +msgstr "YUM 儲存庫 ID 已存在" + +msgid "YUM Repository name must be a string" +msgstr "YUM 儲存庫名稱必須是字串" + +#, python-format +msgid "Unable to list repositories. Details: '%(err)s'" +msgstr "無法列出儲存庫。詳細資料:'%(err)s'" + +#, python-format +msgid "Unable to retrieve repository information. Details: '%(err)s'" +msgstr "無法擷取儲存庫資訊。詳細資料:'%(err)s'" + +#, python-format +msgid "Unable to add repository. Details: '%(err)s'" +msgstr "無法新增儲存庫。詳細資料:'%(err)s'" + +#, python-format +msgid "Unable to remove repository. Details: '%(err)s'" +msgstr "無法移除儲存庫。詳細資料:'%(err)s'" + +#, python-format +msgid "" +"Configuration items: '%(items)s' are not supported by repository manager" +msgstr "" + +msgid "Repository metalink must be an http://, ftp:// or file:// URL." +msgstr "" + +msgid "Cannot specify mirrorlist and metalink at the same time." +msgstr "" + +#, python-format +msgid "" +"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it." +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Snapshot '%(name)s' does not exist on virtual machine '%(vm)s'." +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "Unable to list snapshots on virtual machine '%(vm)s'. Details: %(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to delete snapshot '%(name)s' on virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to revert virtual machine '%(vm)s' to snapshot '%(name)s'. Details: " +"%(err)s" +msgstr "" + +#, python-format +msgid "" +"Unable to create snapshot of virtual machine '%(vm)s' because it contains a " +"disk with format '%(format)s'; only 'qcow2' is supported." +msgstr "" + +msgid "The number of vCPUs is too large for this system." +msgstr "" + +msgid "Invalid vCPU/topology combination." +msgstr "" + +msgid "This host (or current configuration) does not allow CPU topology." +msgstr "" + +msgid "ERROR CODE" +msgstr "錯誤碼" + +msgid "REASON" +msgstr "原因" + +msgid "STACK" +msgstr "堆疊" + +msgid "Go to Homepage" +msgstr "跳至首頁" + +msgid "Create a New Virtual Machine" +msgstr "建立新的虛擬機器" + +msgid "Virtual Machine Name" +msgstr "虛擬機器名稱" + +msgid "" +"The name used to identify the virtual machine. If omitted, a name will be " +"chosen based on the template used." +msgstr "用來識別虛擬機器的名稱。如果省略,則會根據所用的範本選擇名稱。" + +msgid "Template" +msgstr "範本" + +msgid "Please create a template first." +msgstr "請先建立範本。" + +msgid "Create a Template" +msgstr "建立範本" + +msgid "Please choose a template." +msgstr "請選擇範本。" + +msgid "OS" +msgstr "OS" + +msgid "OS Version" +msgstr "OS 版本" + +msgid "CPUS" +msgstr "CPUS" + +msgid "Memory" +msgstr "記憶體" + +msgid "Create" +msgstr "建立" + +msgid "Creating..." +msgstr "" + +msgid "Edit Guest" +msgstr "編輯客體" + +msgid "General" +msgstr "一般" + +msgid "Storage" +msgstr "儲存體" + +msgid "Interface" +msgstr "介面" + +msgid "Permission" +msgstr "版本" + +msgid "Host PCI Device" +msgstr "" + +msgid "Snapshot" +msgstr "" + +msgid "Name" +msgstr "名稱" + +msgid "CPUs" +msgstr "CPU" + +msgid "Memory (MB)" +msgstr "記憶體" + +msgid "Icon" +msgstr "圖示" + +msgid "Device" +msgstr "裝置名稱" + +msgid "Path" +msgstr "NFS 路徑" + +msgid "Network" +msgstr "網路" + +msgid "Type" +msgstr "類型" + +msgid "MAC Address" +msgstr "" + +msgid "Available system users and groups" +msgstr "" + +msgid "Selected system users and groups" +msgstr "" + +msgid "User" +msgstr "" + +msgid "All" +msgstr "全部" + +msgid "To Add" +msgstr "" + +msgid "Added" +msgstr "" + +msgid "filter" +msgstr "" + +msgid "Product" +msgstr "" + +msgid "Vendor" +msgstr "供應商" + +msgid "Created" +msgstr "" + +msgid "Save" +msgstr "儲存" + +msgid "Replace" +msgstr "取代" + +msgid "Detach" +msgstr "分離" + +msgid "Cancel" +msgstr "取消 " + +msgid "revert" +msgstr "" + +msgid "Add a Storage Device to VM" +msgstr "將儲存裝置新增至 VM" + +msgid "Device Type" +msgstr "裝置類型" + +msgid "The device type. Currently, \"cdrom\" and \"disk\" are supported." +msgstr "裝置類型。目前僅支援 \"cdrom\"。" + +msgid "Storage Pool" +msgstr "儲存區" + +msgid "Storage pool which volume located in" +msgstr "儲存區路徑必須是字串" + +msgid "Storage Volume" +msgstr "儲存區名稱" + +msgid "Storage volume to be attached" +msgstr "儲存磁區名稱必須是字串" + +msgid "File Path" +msgstr "檔案路徑" + +msgid "The ISO file path in the server for CDROM." +msgstr "CDROM 的 ISO 檔案路徑在伺服器中。" + +msgid "Attach" +msgstr "連接" + +msgid "Start" +msgstr "開始" + +msgid "Reset" +msgstr "重設" + +msgid "Pause" +msgstr "" + +msgid "Resume" +msgstr "" + +msgid "Power Off" +msgstr "" + +msgid "Actions" +msgstr "動作" + +msgid "Connect" +msgstr "連接" + +msgid "Clone" +msgstr "" + +msgid "Edit" +msgstr "編輯" + +msgid "Shut Down" +msgstr "關閉" + +msgid "Delete" +msgstr "刪除" + +msgid "The username or password you entered is incorrect. Please try again." +msgstr "您輸入的使用者名稱或密碼不正確。請重試。" + +msgid "This field is required." +msgstr "此欄位是必要的。" + +msgid "Log in" +msgstr "登入" + +msgid "Logging in..." +msgstr "正在登入..." + +msgid "Host" +msgstr "主機" + +msgid "Guests" +msgstr "客體" + +msgid "Templates" +msgstr "範本" + +msgid "Failed to get application configuration" +msgstr "無法取得應用程式配置" + +msgid "This is not a valid Linux path" +msgstr "這是無效的 Linux 路徑" + +msgid "This is not a valid URL." +msgstr "這是無效的 URL。" + +msgid "No such data available." +msgstr "沒有此類可用資料。" + +msgid "" +"Can not contact the host system. Verify the host system is up and that you " +"have network connectivity to it. HTTP request response %1. " +msgstr "" +"無法連接至主機系統。請驗證主機系統是否已啟動,以及您是否具有與它的連線。HTTP " +"要求回應為 %1。" + +msgid "Unable to read file." +msgstr "" + +msgid "Error while uploading file." +msgstr "" + +msgid "Delete Confirmation" +msgstr "刪除確認" + +msgid "OK" +msgstr "確定" + +msgid "Confirm" +msgstr "確認" + +msgid "Warning" +msgstr "警告" + +msgid "Cloning..." +msgstr "" + +msgid "Loading..." +msgstr "正在載入..." + +msgid "An error occurred while retrieving system information." +msgstr "" + +msgid "Retry" +msgstr "重試" + +msgid "Detailed message:" +msgstr "詳細的訊息:" + +msgid "No ISO found" +msgstr "" + +msgid "This is not a valid ISO file." +msgstr "這是無效的 ISO 檔案。" + +msgid "This may take a long time. Do you want to continue?" +msgstr "它將需要很長時間。要繼續嗎?" + +msgid "This will permanently delete the template. Would you like to continue?" +msgstr "此動作將永久地刪除範本。要繼續嗎?" + +msgid "Unable to shut down system as there are some virtual machines running!" +msgstr "無法關閉系統,因為有幾個虛擬機器正在執行中!" + +msgid "Max:" +msgstr "上限:" + +msgid "Utilization" +msgstr "使用率" + +msgid "Available" +msgstr "可用" + +msgid "Read Rate" +msgstr "讀取速率" + +msgid "Write Rate" +msgstr "寫入速率" + +msgid "Received" +msgstr "已接收" + +msgid "Sent" +msgstr "已傳送" + +msgid "" +"Shutting down or restarting host will cause unsaved work lost. Continue to " +"shut down/restarting?" +msgstr "關閉或重新啟動主機將導致未儲存的工作遺失。要繼續關閉/重新啟動嗎?" + +msgid "" +"Repository will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "將會永久地移除儲存庫並且無法回復。要繼續嗎?" + +msgid "Repositories" +msgstr "儲存庫" + +msgid "ID" +msgstr "ID" + +msgid "Base URL" +msgstr "基本 URL" + +msgid "Is Mirror" +msgstr "是鏡映" + +msgid "URL Args" +msgstr "URL 引數" + +msgid "Enabled" +msgstr "已啟用" + +msgid "GPG Check" +msgstr "GPG 檢查" + +msgid "GPG Key" +msgstr "GPG 金鑰" + +msgid "Add" +msgstr "新增" + +msgid "Remove" +msgstr "移除" + +msgid "Enable" +msgstr "啟用" + +msgid "Disable" +msgstr "停用" + +msgid "Software Updates" +msgstr "軟體更新" + +msgid "Package Name" +msgstr "套件名稱" + +msgid "Version" +msgstr "版本" + +msgid "Architecture" +msgstr "架構" + +msgid "Repository" +msgstr "儲存庫" + +msgid "Update All" +msgstr "全部更新" + +msgid "Updating..." +msgstr "正在更新..." + +msgid "Failed to retrieve packages update information." +msgstr "" + +msgid "Failed to update package(s)." +msgstr "無法更新套件。" + +msgid "" +"Debug report will be removed permanently and can't be recovered. Do you want " +"to continue?" +msgstr "將會永久地移除除錯報告並且無法回復。要繼續嗎?" + +msgid "Debug Reports" +msgstr "除錯報告" + +msgid "Generated Time" +msgstr "產生時間" + +msgid "Generate" +msgstr "產生" + +msgid "Generating..." +msgstr "正在產生..." + +msgid "Rename" +msgstr "重新命名" + +msgid "Download" +msgstr "下載" + +msgid "" +"Report name should contain only letters, digits, underscore ('_') and/or " +"hyphen ('-')." +msgstr "報告名稱只應該包含字母、數字及/或連字號 ('-')。" + +msgid "Pending..." +msgstr "正在載入..." + +msgid "Report name is the same as the original one." +msgstr "" + +msgid "" +"This will delete the virtual machine and its virtual disks. This operation " +"cannot be undone. Would you like to continue?" +msgstr "此動作將會刪除虛擬機器及其虛擬磁碟。此作業無法復原。要繼續嗎?" + +msgid "Power off Confirmation" +msgstr "刪除確認" + +msgid "" +"This action may produce undesirable results, for example unflushed disk " +"cache in the guest. Would you like to continue?" +msgstr "" + +msgid "Reset Confirmation" +msgstr "刪除確認" + +msgid "" +"There is a risk of data loss caused by reset without the guest OS shutdown. " +"Would you like to continue?" +msgstr "" + +msgid "Shut Down Confirmation" +msgstr "刪除確認" + +msgid "Note the guest OS may ignore this request. Would you like to continue?" +msgstr "此動作將永久地刪除範本。要繼續嗎?" + +msgid "Virtual Machine delete Confirmation" +msgstr "" + +msgid "" +"This virtual machine is not persistent. Power Off will delete it. Continue?" +msgstr "" + +msgid "" +"When the target guest has SCSI or iSCSI volumes, they will be cloned on " +"default storage pool. The same will happen when the target pool does not " +"have enough space to clone the volumes. Do you want to continue?" +msgstr "" + +msgid "" +"This CDROM will be detached permanently and you can re-attach it. Continue " +"to detach it?" +msgstr "" +"將會永久地分離此 CDROM,但是您可以將其重新連接。要繼續分離此 CDROM 嗎?" + +msgid "Attaching..." +msgstr "正在連接..." + +msgid "Replacing..." +msgstr "正在取代..." + +msgid "Successfully attached!" +msgstr "已順利連接!" + +msgid "Successfully replaced!" +msgstr "已順利取代!" + +msgid "Successfully detached!" +msgstr "已順利分離!" + +msgid "" +"This disk will be detached permanently and you can re-attach it. Continue to " +"detach it?" +msgstr "" + +msgid "interface:" +msgstr "" + +msgid "address:" +msgstr "" + +msgid "link_type:" +msgstr "" + +msgid "block:" +msgstr "" + +msgid "drive_type:" +msgstr "" + +msgid "model:" +msgstr "" + +msgid "Affected devices:" +msgstr "" + +msgid "The VLAN id must be between 1 and 4094." +msgstr "VLAN ID 必須介於 1 和 4094 之間。" + +msgid "unavailable" +msgstr "無法使用" + +msgid "" +"This action will interrupt network connectivity for any virtual machine that " +"depend on this network." +msgstr "此動作將會岔斷依賴於此網路之所有虛擬機器的網路連線功能。" + +msgid "Create a network" +msgstr "建立網路" + +msgid "" +"This network is not persistent. Instead of stop, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"此儲存區不是持續性的。此動作不是會將其取消啟動,而是會將其永久地刪除。要繼續" +"嗎?" + +msgid "" +"The bridged VLAN tag may not work well with NetworkManager enabled. You " +"should consider disabling it." +msgstr "" + +msgid "" +"This will permanently delete the storage pool. Would you like to continue?" +msgstr "此動作將永久地刪除儲存區。要繼續嗎?" + +msgid "This storage pool is empty." +msgstr "此儲存區是空的。" + +msgid "" +"It will format your disk and you will loose any data in there, are you sure " +"to continue? " +msgstr "此動作會格式化您的磁碟,而您將會遺失磁碟中的所有資料。確定要繼續嗎?" + +msgid "SCSI Fibre Channel" +msgstr "SCSI 光纖通道" + +msgid "No SCSI adapters found." +msgstr "找不到 SCSI 配接卡。" + +msgid "Loading iSCSI targets..." +msgstr "" + +msgid "No iSCSI found. Please input one." +msgstr "" + +msgid "Failed to load iSCSI targets." +msgstr "" + +msgid "The storage pool name can not be blank." +msgstr "儲存區名稱不能空白。" + +msgid "The storage pool path can not be blank." +msgstr "儲存區路徑不能空白。" + +msgid "NFS server mount path can not be blank." +msgstr "NFS 伺服器裝載路徑不能空白。" + +msgid "Invalid NFS mount path." +msgstr "NFS 裝載路徑無效。" + +msgid "No logical device selected." +msgstr "未選取邏輯裝置。" + +msgid "The iSCSI target can not be blank." +msgstr "iSCSI 目標不能空白。" + +msgid "Server name can not be blank." +msgstr "伺服器名稱不能空白。" + +msgid "This is not a valid Server Name or IP. Please, modify it." +msgstr "" + +msgid "Looking for available partitions ..." +msgstr "正在尋找可用的分割區 ..." + +msgid "No available partitions found." +msgstr "找不到可用的分割區。" + +msgid "" +"This storage pool is not persistent. Instead of deactivate, this action will " +"permanently delete it. Would you like to continue?" +msgstr "" +"此儲存區不是持續性的。此動作不是會將其取消啟動,而是會將其永久地刪除。要繼續" +"嗎?" + +msgid "Unable to retrieve partitions information." +msgstr "無法擷取儲存庫資訊。詳細資料:'%(err)s'" + +msgid "In progress..." +msgstr "" + +msgid "Failed!" +msgstr "" + +msgid "CDROM path needs to be a valid local/remote path and cannot be blank." +msgstr "" + +msgid "Disk pool or volume cannot be blank." +msgstr "儲存區名稱不能空白。" + +msgid "Peers" +msgstr "" + +msgid "Searching" +msgstr "" + +msgid "No peers found." +msgstr "" + +msgid "Help" +msgstr "說明" + +msgid "About" +msgstr "相關" + +msgid "Log out" +msgstr "登出" + +msgid "Version:" +msgstr "版本:" + +msgid "Session timeout, please re-login." +msgstr "" + +msgid "User Name" +msgstr "使用者名稱" + +msgid "Password" +msgstr "密碼" + +msgid "Generate a New Debug Report" +msgstr "產生新的除錯報告" + +msgid "Report Name" +msgstr "報告名稱" + +msgid "" +"The name used to identify the report. If omitted, a name will be chosen " +"based on current time. Name can contain: letters, digits, underscore (\"_\") " +"and hyphen (\"-\")." +msgstr "" +"用來識別報告的名稱。如果省略,則會根據現行時間選擇名稱。名稱可以包含:字母、" +"數字和連字號 (\"-\")。" + +msgid "Rename a Debug Report" +msgstr "產生新的除錯報告" + +msgid "" +"The name used to identify the report. Name can contain: letters, digits and " +"hyphen (\"-\")." +msgstr "" +"用來識別報告的名稱。如果省略,則會根據現行時間選擇名稱。名稱可以包含:字母、" +"數字和連字號 (\"-\")。" + +msgid "Submit" +msgstr "" + +msgid "Add a Repository" +msgstr "新增儲存庫" + +msgid "Identifier" +msgstr "ID" + +msgid "Single word, unique identifier for the repository." +msgstr "單字,儲存庫的唯一 ID。" + +msgid "Textual name for the repository." +msgstr "儲存庫的文字名稱。" + +msgid "URL" +msgstr "URL" + +msgid "Required Field" +msgstr "必要欄位" + +msgid "URL to the repository. Supported protocols are http, ftp, and file." +msgstr "儲存庫的 URL。受支援的通訊協定包括 http、ftp 和 file。" + +msgid "Repository is a mirror" +msgstr "儲存庫是鏡映。" + +msgid "Distribution" +msgstr "發行套件" + +msgid "Distribution of the DEB repository." +msgstr "DEB 儲存庫的發行套件。" + +msgid "Components" +msgstr "元件" + +msgid "List of components in DEB repository." +msgstr "DEB 儲存庫中的元件清單。" + +msgid "Edit Repository" +msgstr "編輯儲存庫" + +msgid "Mirror List URL" +msgstr "鏡映清單 URL" + +msgid "Yes" +msgstr "是" + +msgid "No" +msgstr "否" + +msgid "Add a Volume to Storage Pool" +msgstr "" + +msgid "Fetch from remote URL" +msgstr "" + +msgid "Enter the remote URL here." +msgstr "" + +msgid "Upload a file" +msgstr "" + +msgid "Choose the file you want to upload." +msgstr "" + +msgid "Define a New Storage Pool" +msgstr "定義新的儲存區" + +msgid "Storage Pool Name" +msgstr "儲存區名稱" + +msgid "" +"The name used to identify the storage pools, and it should not be empty." +msgstr "用來識別儲存區的名稱,不應該是空的。" + +msgid "Storage Pool Type" +msgstr "儲存區類型" + +msgid "Storage Path" +msgstr "儲存體路徑" + +msgid "" +"The path of the Storage Pool. Each Storage Pool must have a unique path." +msgstr "儲存區的路徑。每一個儲存區都必須有一個唯一的路徑。" + +msgid "" +"Kimchi will try to create the directory when it does not already exist in " +"your system." +msgstr "Kimchi 將嘗試建立該目錄(當該目錄尚不存在於系統中時)。" + +msgid "NFS Server IP" +msgstr "NFS 伺服器 IP" + +msgid "NFS server IP or hostname. It can be input or chosen from history." +msgstr "NFS 伺服器 IP 或主機名稱。可以直接輸入,也可以從歷程中選擇。" + +msgid "NFS Path" +msgstr "NFS 路徑" + +msgid "The NFS exported path on NFS server." +msgstr "NFS 伺服器上 NFS 匯出的路徑。" + +msgid "Device path" +msgstr "裝置路徑" + +msgid "iSCSI Server" +msgstr "iSCSI 伺服器" + +msgid "iSCSI server IP or hostname. It should not be empty." +msgstr "iSCSI 伺服器 IP 或主機名稱。它不應該是空的。" + +msgid "Server" +msgstr "伺服器" + +msgid "Port" +msgstr "埠" + +msgid "Target" +msgstr "目標" + +msgid "The iSCSI target on iSCSI server" +msgstr "iSCSI 伺服器上的 iSCSI 目標" + +msgid "Add iSCSI Authentication" +msgstr "新增 iSCSI 鑑別" + +msgid "iSCSI Authentication" +msgstr "iSCSI 鑑別" + +msgid "SCSI Adapter" +msgstr "SCSI 配接卡" + +msgid "Please, wait..." +msgstr "請稍候..." + +msgid "Add Template" +msgstr "新增範本" + +msgid "Where is the source media for this template? " +msgstr "此範本的來源媒體位於何處?" + +msgid "Local ISO Image" +msgstr "本端 ISO 映像檔" + +msgid "Local Image File" +msgstr "" + +msgid "Remote ISO Image" +msgstr "遠端 ISO 映像檔" + +msgid "Search ISOs" +msgstr "搜尋 ISO" + +msgid "The following ISOs are available:" +msgstr "下列 ISO 可用:" + +msgid "OS: " +msgstr "OS:" + +msgid "Version: " +msgstr "版本:" + +msgid "Size: " +msgstr "大小:" + +msgid "Search more ISOs" +msgstr "搜尋更多 ISO" + +msgid "Create Templates from Selected ISO" +msgstr "從所選 ISO 建立範本" + +msgid "I want to use a specific ISO file" +msgstr "我想使用特定的 ISO 檔案" + +msgid "Loading default remote ISOs ..." +msgstr "正在載入預設遠端 ISO ..." + +msgid "Arch: " +msgstr "架構:" + +msgid "I want to use a custom URL" +msgstr "我想使用自訂 URL" + +msgid "Edit Template" +msgstr "編輯範本" + +msgid "Processor" +msgstr "處理器" + +msgid "CDROM" +msgstr "CDROM" + +msgid "Image File" +msgstr "" + +msgid "Graphics" +msgstr "圖形卡" + +msgid "Disk(GB)" +msgstr "" + +msgid "Disk Format" +msgstr "" + +msgid "CPU Number" +msgstr "CPU 數目" + +msgid "Manually set CPU topology" +msgstr "" + +msgid "Cores" +msgstr "" + +msgid "Threads" +msgstr "" + +msgid "CPU" +msgstr "CPU" + +msgid "Disk I/O" +msgstr "磁碟 I/O" + +msgid "Network I/O" +msgstr "網路 I/O" + +msgid "Livetile" +msgstr "Livetile" + +msgid "No guests found." +msgstr "找不到客體。" + +msgid "Shut down" +msgstr "關閉" + +msgid "Restart" +msgstr "重新啟動" + +msgid "Basic Information" +msgstr "基本資訊" + +msgid "OS Distro" +msgstr "OS Distro" + +msgid "OS Code Name" +msgstr "OS 程式碼名稱" + +msgid "CPU(s)" +msgstr "" + +msgid "System Statistics" +msgstr "系統統計資料" + +msgid "Update Progress" +msgstr "更新進度" + +msgid "Network Name" +msgstr "網路名稱" + +msgid "State" +msgstr "狀態" + +msgid "Network Type" +msgstr "網路類型" + +msgid "Address Space" +msgstr "位址空間" + +msgid "Name should not contain '/' and '\"'." +msgstr "儲存區名稱無效。它不應該包含 '/'。" + +msgid "Isolated: no external network connection" +msgstr "已隔離:沒有實體網路連線" + +msgid "NAT: outbound physical network connection only" +msgstr "NAT:僅限出埠實體網路連線" + +msgid "Bridged: Virtual machines are connected to physical network directly" +msgstr "已橋接:虛擬機器直接已連接至實體網路" + +msgid "(No interfaces found)" +msgstr "" + +msgid "Destination" +msgstr "目的地:" + +msgid "Enable VLAN" +msgstr "啟用 VLAN:" + +msgid "VLAN ID" +msgstr "VLAN ID:" + +msgid "Stop" +msgstr "停止" + +msgid "%Used" +msgstr "" + +msgid "Location" +msgstr "位置" + +msgid "Capacity" +msgstr "容量" + +msgid "Allocated" +msgstr "已配置" + +msgid "active" +msgstr "作用中" + +msgid "inactive" +msgstr "非作用中" + +msgid "Deactivate" +msgstr "取消啟動" + +msgid "Activate" +msgstr "啟動" + +msgid "Add Volume" +msgstr "" + +msgid "Extend" +msgstr "" + +msgid "Undefine" +msgstr "取消定義" + +msgid "Format" +msgstr "格式:" + +msgid "Allocation" +msgstr "配置:" + +msgid "No templates found." +msgstr "找不到範本。" diff --git a/src/wok/control/Makefile.am b/src/wok/control/Makefile.am new file mode 100644 index 0000000..fee98dc --- /dev/null +++ b/src/wok/control/Makefile.am @@ -0,0 +1,27 @@ +# +# Kimchi +# +# Copyright IBM Corp, 2013 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +SUBDIRS = vm + +control_PYTHON = *.py + +controldir = $(pythondir)/kimchi/control + +install-data-local: + $(MKDIR_P) $(DESTDIR)$(controldir) diff --git a/src/wok/control/__init__.py b/src/wok/control/__init__.py new file mode 100644 index 0000000..98d42d3 --- /dev/null +++ b/src/wok/control/__init__.py @@ -0,0 +1,26 @@ +# +# Project Kimchi +# +# Copyright IBM, Corp. 2013-2014 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +import os + + +from kimchi.control.utils import load_url_sub_node + + +sub_nodes = load_url_sub_node(os.path.dirname(__file__), __name__) diff --git a/src/wok/i18n.py b/src/wok/i18n.py new file mode 100644 index 0000000..d2ffa34 --- /dev/null +++ b/src/wok/i18n.py @@ -0,0 +1,354 @@ +# +# Project Kimchi +# +# Copyright IBM, Corp. 2014-2015 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +import gettext + +_ = gettext.gettext + + +messages = { + "KCHAPI0001E": _("Unknown parameter %(value)s"), + "KCHAPI0002E": _("Delete is not allowed for %(resource)s"), + "KCHAPI0003E": _("%(resource)s does not implement update method"), + "KCHAPI0005E": _("Create is not allowed for %(resource)s"), + "KCHAPI0006E": _("Unable to parse JSON request"), + "KCHAPI0007E": _("This API only supports JSON"), + "KCHAPI0008E": _("Parameters does not match requirement in schema: %(err)s"), + "KCHAPI0009E": _("You don't have permission to perform this operation."), + + "KCHASYNC0001E": _("Datastore is not initiated in the model object."), + "KCHASYNC0002E": _("Unable to start task due error: %(err)s"), + "KCHASYNC0003E": _("Timeout of %(seconds)s seconds expired while running task '%(task)s."), + + "KCHAUTH0001E": _("Authentication failed for user '%(username)s'. [Error code: %(code)s]"), + "KCHAUTH0002E": _("You are not authorized to access Kimchi"), + "KCHAUTH0003E": _("Specify %(item)s to login into Kimchi"), + "KCHAUTH0004E": _("User %(user_id)s not found with given LDAP settings."), + "KCHAUTH0005E": _("Invalid LDAP configuration: %(item)s : %(value)s"), + + "KCHDEVS0001E": _('Unknown "_cap" specified'), + "KCHDEVS0002E": _('"_passthrough" should be "true" or "false"'), + "KCHDEVS0003E": _('"_passthrough_affected_by" should be a device name string'), + + "KCHDISKS0001E": _("Error while getting block devices. Details: %(err)s"), + "KCHDISKS0002E": _("Error while getting block device information for %(device)s."), + + "KCHDL0001E": _("Unable to find distro file: %(filename)s"), + "KCHDL0002E": _("Unable to parse distro file: %(filename)s. Make sure, it is a JSON file."), + + "KCHISCSI0001E": _("Unable to login to iSCSI host target %(portal)s. Details: %(err)s"), + "KCHISCSI0002E": _("Unable to login to iSCSI host %(host)s target %(target)s"), + + "KCHISO0001E": _("Unable to find ISO file %(filename)s"), + "KCHISO0002E": _("The ISO file %(filename)s is not bootable"), + "KCHISO0003E": _("The ISO file %(filename)s does not have a valid El Torito boot record"), + "KCHISO0004E": _("Invalid El Torito validation entry in ISO %(filename)s"), + "KCHISO0005E": _("Invalid El Torito boot indicator in ISO %(filename)s"), + "KCHISO0006E": _("Unexpected volume type for primary volume in ISO %(filename)s"), + "KCHISO0007E": _("Bad format while reading volume descriptor in ISO %(filename)s"), + "KCHISO0008E": _("The hypervisor doesn't have permission to use this ISO %(filename)s. " + "Consider moving it under /var/lib/libvirt, or set the search permission " + "to file access control lists for '%(user)s' user if possible, or add the " + "'%(user)s' to the ISO path group, or (not recommended) 'chmod -R o+x 'path_to_iso'." + "Details: %(err)s" ), + + "KCHIMG0001E": _("An error occurred when probing image OS information."), + "KCHIMG0002E": _("No OS information found in given image."), + "KCHIMG0003E": _("Unable to read image file %(filename)s"), + "KCHIMG0004E": _("Image file must be an existing file on system. %(filename)s is not a valid input."), + + "KCHVM0001E": _("Virtual machine %(name)s already exists"), + "KCHVM0002E": _("Virtual machine %(name)s does not exist"), + "KCHVM0003E": _("Unable to rename virtual machine %(name)s. The name %(new_name)s is already in use or the virtual machine is not powered off."), + "KCHVM0004E": _("Unable to retrieve screenshot for stopped virtual machine %(name)s"), + "KCHVM0005E": _("Remote ISO image is not supported by this server."), + "KCHVM0006E": _("Screenshot is not supported on virtual machine %(name)s"), + "KCHVM0007E": _("Unable to create virtual machine %(name)s. Details: %(err)s"), + "KCHVM0008E": _("Unable to update virtual machine %(name)s. Details: %(err)s"), + "KCHVM0009E": _("Unable to retrieve virtual machine %(name)s. Details: %(err)s"), + "KCHVM0010E": _("Unable to connect to powered off virtual machine %(name)s."), + "KCHVM0011E": _("Virtual machine name must be a string without slashes (/)"), + "KCHVM0012E": _("Invalid template URI %(value)s specified for virtual machine"), + "KCHVM0013E": _("Invalid storage pool URI %(value)s specified for virtual machine"), + "KCHVM0014E": _("Supported virtual machine graphics are Spice or VNC"), + "KCHVM0015E": _("Graphics address to listen on must be IPv4 or IPv6"), + "KCHVM0016E": _("Specify a template to create a virtual machine from"), + "KCHVM0019E": _("Unable to start virtual machine %(name)s. Details: %(err)s"), + "KCHVM0020E": _("Unable to power off virtual machine %(name)s. Details: %(err)s"), + "KCHVM0021E": _("Unable to delete virtual machine %(name)s. Details: %(err)s"), + "KCHVM0022E": _("Unable to reset virtual machine %(name)s. Details: %(err)s"), + "KCHVM0023E": _("User name list must be an array"), + "KCHVM0024E": _("User name must be a string"), + "KCHVM0025E": _("Group name list must be an array"), + "KCHVM0026E": _("Group name must be a string"), + "KCHVM0027E": _("User(s) '%(users)s' do not exist"), + "KCHVM0028E": _("Group(s) '%(groups)s' do not exist"), + "KCHVM0029E": _("Unable to shutdown virtual machine %(name)s. Details: %(err)s"), + "KCHVM0030E": _("Unable to get access metadata of virtual machine %(name)s. Details: %(err)s"), + "KCHVM0031E": _("The guest console password must be a string."), + "KCHVM0032E": _("The life time for the guest console password must be a number."), + "KCHVM0033E": _("Virtual machine '%(name)s' must be stopped before cloning it."), + "KCHVM0034E": _("Insufficient disk space to clone virtual machine '%(name)s'"), + "KCHVM0035E": _("Unable to clone VM '%(name)s'. Details: %(err)s"), + "KCHVM0036E": _("Invalid operation for non-persistent virtual machine %(name)s"), + "KCHVM0037E": _("Cannot suspend VM '%(name)s' because it is not running."), + "KCHVM0038E": _("Unable to suspend VM '%(name)s'. Details: %(err)s"), + "KCHVM0039E": _("Cannot resume VM '%(name)s' because it is not paused."), + "KCHVM0040E": _("Unable to resume VM '%(name)s'. Details: %(err)s"), + "KCHVM0041E": _("Memory assigned is higher then the maximum allowed in the host."), + "KCHVM0042E": _("VM '%(name)s' does not support live memory update. Update the memory with the machine offline to enable this feature."), + "KCHVM0043E": _("Only increase memory is allowed in active VMs"), + "KCHVM0044E": _("For live memory update, new memory value must be equal old memory value plus multiples of 1024 Mib"), + "KCHVM0045E": _("There are not enough free slots of 1024 Mib in the guest."), + "KCHVM0046E": _("Host's libvirt version does not support memory devices. Libvirt must be >= 1.2.14"), + "KCHVM0047E": _("Error attaching memory device. Details: %(error)s"), + + "KCHVMHDEV0001E": _("VM %(vmid)s does not contain directly assigned host device %(dev_name)s."), + "KCHVMHDEV0002E": _("The host device %(dev_name)s is not allowed to directly assign to VM."), + "KCHVMHDEV0003E": _("No IOMMU groups found. Host PCI pass through needs IOMMU group to function correctly. " + "Please enable Intel VT-d or AMD IOMMU in your BIOS, then verify the Kernel is compiled with IOMMU support. " + "For Intel CPU, add intel_iommu=on to your Kernel parameter in /boot/grub2/grub.conf. " + "For AMD CPU, add iommu=pt iommu=1."), + "KCHVMHDEV0004E": _('"name" should be a device name string'), + "KCHVMHDEV0005E": _('The device %(name)s is probably in use by the host. Unable to attach it to the guest.'), + + "KCHVMIF0001E": _("Interface %(iface)s does not exist in virtual machine %(name)s"), + "KCHVMIF0002E": _("Network %(network)s specified for virtual machine %(name)s does not exist"), + "KCHVMIF0004E": _("Supported virtual machine interfaces type is only network"), + "KCHVMIF0005E": _("Network name for virtual machine interface must be a string"), + "KCHVMIF0006E": _("Invalid network model card specified for virtual machine interface"), + "KCHVMIF0007E": _("Specify type and network to add a new virtual machine interface"), + "KCHVMIF0008E": _("MAC Address must respect this format FF:FF:FF:FF:FF:FF"), + "KCHVMIF0009E": _("MAC Address %(mac)s already exists in virtual machine %(name)s"), + "KCHVMIF0010E": _("Invalid MAC Address"), + "KCHVMIF0011E": _("Cannot change MAC address of a running virtual machine"), + + "KCHTMPL0001E": _("Template %(name)s already exists"), + "KCHTMPL0003E": _("Network '%(network)s' specified for template %(template)s does not exist"), + "KCHTMPL0004E": _("Storage pool %(pool)s specified for template %(template)s does not exist"), + "KCHTMPL0005E": _("Storage pool %(pool)s specified for template %(template)s is not active"), + "KCHTMPL0006E": _("Invalid parameter '%(param)s' specified for CDROM."), + "KCHTMPL0007E": _("Network %(network)s specified for template %(template)s is not active"), + "KCHTMPL0008E": _("Template name must be a string"), + "KCHTMPL0009E": _("Template icon must be a path to the image"), + "KCHTMPL0010E": _("Template distribution must be a string"), + "KCHTMPL0011E": _("Template distribution version must be a string"), + "KCHTMPL0012E": _("The number of CPUs must be an integer greater than 0"), + "KCHTMPL0013E": _("Amount of memory (MB) must be an integer greater than 512"), + "KCHTMPL0014E": _("Template CDROM must be a local or remote ISO file"), + "KCHTMPL0015E": _("Invalid storage pool URI %(value)s specified for template"), + "KCHTMPL0016E": _("Specify an ISO image as CDROM or a base image to create a template"), + "KCHTMPL0017E": _("All networks for the template must be specified in a list."), + "KCHTMPL0018E": _("Specify a volume to a template when storage pool is iSCSI or SCSI"), + "KCHTMPL0019E": _("The volume %(volume)s is not in storage pool %(pool)s"), + "KCHTMPL0020E": _("Unable to create template due error: %(err)s"), + "KCHTMPL0021E": _("Unable to delete template due error: %(err)s"), + "KCHTMPL0022E": _("Disk size must be an integer greater than 1GB."), + "KCHTMPL0023E": _("Template base image must be a valid local image file"), + "KCHTMPL0024E": _("Cannot identify base image %(path)s format"), + "KCHTMPL0025E": _("When specifying CPU topology, VCPUs must be a product of sockets, cores, and threads."), + "KCHTMPL0026E": _("When specifying CPU topology, each element must be an integer greater than zero."), + "KCHTMPL0027E": _("Invalid disk image format. Valid formats: bochs, cloop, cow, dmg, qcow, qcow2, qed, raw, vmdk, vpc."), + + "KCHPOOL0001E": _("Storage pool %(name)s already exists"), + "KCHPOOL0002E": _("Storage pool %(name)s does not exist"), + "KCHPOOL0004E": _("Specify %(item)s in order to create the storage pool %(name)s"), + "KCHPOOL0005E": _("Unable to delete active storage pool %(name)s"), + "KCHPOOL0006E": _("Unable to list storage pools. Details: %(err)s"), + "KCHPOOL0007E": _("Unable to create storage pool %(name)s. Details: %(err)s"), + "KCHPOOL0008E": _("Unable to get number of storage volumes in storage pool %(name)s. Details: %(err)s"), + "KCHPOOL0009E": _("Unable to activate storage pool %(name)s. Details: %(err)s"), + "KCHPOOL0010E": _("Unable to deactivate storage pool %(name)s. Details: %(err)s"), + "KCHPOOL0011E": _("Unable to delete storage pool %(name)s. Details: %(err)s"), + "KCHPOOL0012E": _("Unable to create NFS Pool as export path %(path)s may block during mount"), + "KCHPOOL0013E": _("Unable to create NFS Pool as export path %(path)s mount failed"), + "KCHPOOL0014E": _("Unsupported storage pool type: %(type)s"), + "KCHPOOL0015E": _("Error while retrieving storage pool XML to %(pool)s"), + "KCHPOOL0016E": _("Storage pool name must be a string without slashes (/)"), + "KCHPOOL0017E": _("Supported storage pool types are dir, netfs, logical, iscsi, isci and kimchi-iso"), + "KCHPOOL0018E": _("Storage pool path must be a string"), + "KCHPOOL0019E": _("Storage pool host must be a IP or hostname"), + "KCHPOOL0020E": _("Storage pool device must be the absolute path to the block device"), + "KCHPOOL0021E": _("Storage pool devices parameter must be a list"), + "KCHPOOL0022E": _("Target IQN of an iSCSI pool must be a string"), + "KCHPOOL0023E": _("Port of a remote storage server must be an integer between 1 and 65535"), + "KCHPOOL0024E": _("iSCSI target username must be a string"), + "KCHPOOL0025E": _("iSCSI target password must be a string"), + "KCHPOOL0026E": _("Specify name and type to create a storage pool"), + "KCHPOOL0027E": _("%(disk)s is not a valid disk/partition. Could not add it to the pool %(pool)s."), + "KCHPOOL0028E": _("Unable to extend logical pool %(pool)s. Details: %(err)s"), + "KCHPOOL0029E": _("The parameter disks only can be updated for logical storage pool."), + "KCHPOOL0030E": _("The SCSI host adapter name must be a string."), + "KCHPOOL0031E": _("The storage pool kimchi_isos is reserved for internal use"), + "KCHPOOL0032E": _("Unable to activate NFS storage pool %(name)s. NFS server %(server)s is unreachable."), + "KCHPOOL0033E": _("Unable to deactivate NFS storage pool %(name)s. NFS server %(server)s is unreachable."), + "KCHPOOL0034E": _("Unable to deactivate pool %(name)s as it is associated with some templates"), + "KCHPOOL0035E": _("Unable to delete pool %(name)s as it is associated with some templates"), + "KCHPOOL0036E": _("A volume group named '%(name)s' already exists. Please, choose another name to create the logical pool."), + "KCHPOOL0037E": _("Unable to update database with deep scan information due error: %(err)s"), + + "KCHVOL0001E": _("Storage volume %(name)s already exists"), + "KCHVOL0002E": _("Storage volume %(name)s does not exist in storage pool %(pool)s"), + "KCHVOL0003E": _("Unable to create storage volume %(volume)s because storage pool %(pool)s is not active"), + "KCHVOL0004E": _("Specify %(item)s in order to create storage volume %(volume)s"), + "KCHVOL0006E": _("Unable to list storage volumes because storage pool %(pool)s is not active"), + "KCHVOL0007E": _("Unable to create storage volume %(name)s in storage pool %(pool)s. Details: %(err)s"), + "KCHVOL0008E": _("Unable to list storage volumes in storage pool %(pool)s. Details: %(err)s"), + "KCHVOL0009E": _("Unable to wipe storage volumes %(name)s. Details: %(err)s"), + "KCHVOL0010E": _("Unable to delete storage volume %(name)s. Details: %(err)s"), + "KCHVOL0011E": _("Unable to resize storage volume %(name)s. Details: %(err)s"), + "KCHVOL0012E": _("Storage type %(type)s does not support volume create and delete"), + "KCHVOL0013E": _("Storage volume name must be a string"), + "KCHVOL0014E": _("Storage volume allocation must be an integer number"), + "KCHVOL0015E": _("Storage volume format not supported. Valid formats: bochs, cloop, cow, dmg, qcow, qcow2, qed, raw, vmdk, vpc."), + "KCHVOL0016E": _("Storage volume requires a volume name"), + "KCHVOL0017E": _("Unable to update database with storage volume information due error: %(err)s"), + "KCHVOL0018E": _("Only one of parameter %(param)s can be specified"), + "KCHVOL0019E": _("Create volume from %(param)s is not supported"), + "KCHVOL0020E": _("Storage volume capacity must be an integer number."), + "KCHVOL0021E": _("Storage volume URL must be http://, https://, ftp:// or ftps://."), + "KCHVOL0022E": _("Unable to access file %(url)s. Please, check it."), + "KCHVOL0023E": _("Unable to clone storage volume '%(name)s' in pool '%(pool)s'. Details: %(err)s"), + "KCHVOL0024E": _("Specify chunk data and its size to upload a file."), + "KCHVOL0025E": _("In order to upload a storage volume, specify the 'upload' parameter."), + "KCHVOL0026E": _("Unable to upload chunk data as it does not match with requested chunk size."), + "KCHVOL0027E": _("The storage volume %(vol)s is not under an upload process."), + "KCHVOL0028E": _("The upload chunk data will exceed the storage volume size."), + "KCHVOL0029E": _("Unable to upload chunk data to storage volume. Details: %(err)s."), + + "KCHIFACE0001E": _("Interface %(name)s does not exist"), + + "KCHNET0001E": _("Network %(name)s already exists"), + "KCHNET0002E": _("Network %(name)s does not exist"), + "KCHNET0003E": _("Subnet %(subnet)s specified for network %(network)s is not valid."), + "KCHNET0004E": _("Specify a network interface to create bridged network %(name)s"), + "KCHNET0005E": _("Unable to delete active network %(name)s"), + "KCHNET0006E": _("Interface %(iface)s specified for network %(network)s is already in use"), + "KCHNET0007E": _("Interface should be bare NIC, bonding or bridge device."), + "KCHNET0008E": _("Unable to create network %(name)s. Details: %(err)s"), + "KCHNET0009E": _("Unable to find a free IP address for network '%(name)s'"), + "KCHNET0010E": _("The interface %(iface)s already exists."), + "KCHNET0011E": _("Network name must be a string without slashes (/) or quotes (\")"), + "KCHNET0012E": _("Supported network types are isolated, NAT and bridge"), + "KCHNET0013E": _("Network subnet must be a string with IP address and prefix or netmask"), + "KCHNET0014E": _("Network interface must be a string"), + "KCHNET0015E": _("Network VLAN ID must be an integer between 1 and 4094"), + "KCHNET0016E": _("Specify name and type to create a Network"), + "KCHNET0017E": _("Unable to delete network %(name)s. There are some virtual machines %(vms)s and/or templates linked to this network."), + "KCHNET0018E": _("Unable to deactivate network %(name)s. There are some virtual machines %(vms)s and/or templates linked to this network."), + "KCHNET0019E": _("Bridge device %(name)s can not be the trunk device of a VLAN."), + "KCHNET0020E": _("Failed to activate interface %(iface)s: %(err)s."), + "KCHNET0021E": _("Failed to activate interface %(iface)s. Please check the physical link status."), + "KCHNET0022E": _("Failed to start network %(name)s. Details: %(err)s"), + + "KCHDR0001E": _("Debug report %(name)s does not exist"), + "KCHDR0002E": _("Debug report tool not found in system"), + "KCHDR0003E": _("Unable to create debug report %(name)s. Details: %(err)s."), + "KCHDR0004E": _("Can not find any debug report with the given name %(name)s"), + "KCHDR0005E": _("Unable to generate debug report %(name)s. Details: %(err)s"), + "KCHDR0006E": _("You should give a name for the debug report file."), + "KCHDR0007E": _("Debug report name must be a string. Only letters, digits, underscore ('_') and hyphen ('-') are allowed."), + "KCHDR0008E": _("The debug report with specified name \"%(name)s\" already exists. Please use another one."), + + "KCHSR0001E": _("Storage server %(server)s was not used by Kimchi"), + + "KCHDISTRO0001E": _("Distro '%(name)s' does not exist"), + + "KCHPART0001E": _("Partition %(name)s does not exist in the host"), + + "KCHHOST0001E": _("Unable to shutdown host machine as there are running virtual machines"), + "KCHHOST0002E": _("Unable to reboot host machine as there are running virtual machines"), + "KCHHOST0003E": _("Node device '%(name)s' not found"), + "KCHHOST0004E": _("Conflicting flag filters specified."), + + "KCHPKGUPD0001E": _("No packages marked for update"), + "KCHPKGUPD0002E": _("Package %(name)s is not marked to be updated."), + "KCHPKGUPD0003E": _("Error while getting packages marked to be updated. Details: %(err)s"), + "KCHPKGUPD0004E": _("There is no compatible package manager for this system."), + + "KCHOBJST0001E": _("Unable to find %(item)s in datastore"), + + "KCHUTILS0001E": _("Invalid URI %(uri)s"), + "KCHUTILS0002E": _("Timeout while running command '%(cmd)s' after %(seconds)s seconds"), + "KCHUTILS0003E": _("Unable to choose a virtual machine name"), + "KCHUTILS0004E": _("Invalid data value '%(value)s'"), + "KCHUTILS0005E": _("Invalid data unit '%(unit)s'"), + + "KCHVMSTOR0002E": _("Invalid storage type. Types supported: 'cdrom', 'disk'"), + "KCHVMSTOR0003E": _("The path '%(value)s' is not a valid local/remote path for the device"), + "KCHVMSTOR0006E": _("Only CDROM path can be update."), + "KCHVMSTOR0007E": _("The storage device %(dev_name)s does not exist in the virtual machine %(vm_name)s"), + "KCHVMSTOR0008E": _("Error while creating new storage device: %(error)s"), + "KCHVMSTOR0009E": _("Error while updating storage device: %(error)s"), + "KCHVMSTOR0010E": _("Error while removing storage device: %(error)s"), + "KCHVMSTOR0011E": _("Do not support IDE device hot plug"), + "KCHVMSTOR0012E": _("Specify type and path or type and pool/volume to add a new virtual machine disk"), + "KCHVMSTOR0013E": _("Specify path to update virtual machine disk"), + "KCHVMSTOR0014E": _("Controller type %(type)s limitation of %(limit)s devices reached"), + "KCHVMSTOR0015E": _("Cannot retrieve disk path information for given pool/volume: %(error)s"), + "KCHVMSTOR0016E": _("Volume already in use by other virtual machine."), + "KCHVMSTOR0017E": _("Only one of path or pool/volume can be specified to add a new virtual machine disk"), + "KCHVMSTOR0018E": _("Volume chosen with format %(format)s does not fit in the storage type %(type)s"), + + "KCHREPOS0001E": _("YUM Repository ID must be one word only string."), + "KCHREPOS0002E": _("Repository URL must be an http://, ftp:// or file:// URL."), + "KCHREPOS0003E": _("Repository configuration is a dictionary with specific values according to repository type."), + "KCHREPOS0004E": _("Distribution to DEB repository must be a string"), + "KCHREPOS0005E": _("Components to DEB repository must be listed in a array"), + "KCHREPOS0006E": _("Components to DEB repository must be a string"), + "KCHREPOS0007E": _("Mirror list to repository must be a string"), + "KCHREPOS0008E": _("YUM Repository name must be string."), + "KCHREPOS0009E": _("GPG check must be a boolean value."), + "KCHREPOS0010E": _("GPG key must be a URL pointing to the ASCII-armored file."), + "KCHREPOS0011E": _("Could not update repository %(repo_id)s."), + "KCHREPOS0012E": _("Repository %(repo_id)s does not exist."), + "KCHREPOS0013E": _("Specify repository base URL, mirror list or metalink in order to create or update a YUM repository."), + "KCHREPOS0014E": _("Repository management tool was not recognized for your system."), + "KCHREPOS0015E": _("Repository %(repo_id)s is already enabled."), + "KCHREPOS0016E": _("Repository %(repo_id)s is already disabled."), + "KCHREPOS0017E": _("Could not remove repository %(repo_id)s."), + "KCHREPOS0018E": _("Could not write repository configuration file %(repo_file)s"), + "KCHREPOS0019E": _("Specify repository distribution in order to create a DEB repository."), + "KCHREPOS0020E": _("Could not enable repository %(repo_id)s."), + "KCHREPOS0021E": _("Could not disable repository %(repo_id)s."), + "KCHREPOS0022E": _("YUM Repository ID already exists"), + "KCHREPOS0023E": _("YUM Repository name must be a string"), + "KCHREPOS0024E": _("Unable to list repositories. Details: '%(err)s'"), + "KCHREPOS0025E": _("Unable to retrieve repository information. Details: '%(err)s'"), + "KCHREPOS0026E": _("Unable to add repository. Details: '%(err)s'"), + "KCHREPOS0027E": _("Unable to remove repository. Details: '%(err)s'"), + "KCHREPOS0028E": _("Configuration items: '%(items)s' are not supported by repository manager"), + "KCHREPOS0029E": _("Repository metalink must be an http://, ftp:// or file:// URL."), + "KCHREPOS0030E": _("Cannot specify mirrorlist and metalink at the same time."), + + "KCHSNAP0001E": _("Virtual machine '%(vm)s' must be stopped before creating a snapshot of it."), + "KCHSNAP0002E": _("Unable to create snapshot '%(name)s' on virtual machine '%(vm)s'. Details: %(err)s"), + "KCHSNAP0003E": _("Snapshot '%(name)s' does not exist on virtual machine '%(vm)s'."), + "KCHSNAP0004E": _("Unable to retrieve snapshot '%(name)s' on virtual machine '%(vm)s'. Details: %(err)s"), + "KCHSNAP0005E": _("Unable to list snapshots on virtual machine '%(vm)s'. Details: %(err)s"), + "KCHSNAP0006E": _("Unable to delete snapshot '%(name)s' on virtual machine '%(vm)s'. Details: %(err)s"), + "KCHSNAP0008E": _("Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: %(err)s"), + "KCHSNAP0009E": _("Unable to revert virtual machine '%(vm)s' to snapshot '%(name)s'. Details: %(err)s"), + "KCHSNAP0010E": _("Unable to create snapshot of virtual machine '%(vm)s' because it contains a disk with format '%(format)s'; only 'qcow2' is supported."), + + "KCHCPUINF0001E": _("The number of vCPUs is too large for this system."), + "KCHCPUINF0002E": _("Invalid vCPU/topology combination."), + "KCHCPUINF0003E": _("This host (or current configuration) does not allow CPU topology."), + +} diff --git a/src/wok/model/Makefile.am b/src/wok/model/Makefile.am new file mode 100644 index 0000000..a6ccbf0 --- /dev/null +++ b/src/wok/model/Makefile.am @@ -0,0 +1,25 @@ +# +# Kimchi +# +# Copyright IBM Corp, 2013 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +model_PYTHON = *.py + +modeldir = $(pythondir)/kimchi/model + +install-data-local: + $(MKDIR_P) $(DESTDIR)$(modeldir) diff --git a/src/wok/model/__init__.py b/src/wok/model/__init__.py new file mode 100644 index 0000000..ca7ede4 --- /dev/null +++ b/src/wok/model/__init__.py @@ -0,0 +1,18 @@ +# +# Project Kimchi +# +# Copyright IBM, Corp. 2014 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA diff --git a/src/wok/xmlutils/Makefile.am b/src/wok/xmlutils/Makefile.am new file mode 100644 index 0000000..73f86f4 --- /dev/null +++ b/src/wok/xmlutils/Makefile.am @@ -0,0 +1,25 @@ +# +# Kimchi +# +# Copyright IBM Corp, 2014 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +xmlutils_PYTHON = *.py + +xmlutilsdir = $(pythondir)/kimchi/xmlutils + +install-data-local: + $(MKDIR_P) $(DESTDIR)$(xmlutilsdir) diff --git a/src/wok/xmlutils/__init__.py b/src/wok/xmlutils/__init__.py new file mode 100644 index 0000000..ca7ede4 --- /dev/null +++ b/src/wok/xmlutils/__init__.py @@ -0,0 +1,18 @@ +# +# Project Kimchi +# +# Copyright IBM, Corp. 2014 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA diff --git a/ui/css/Makefile.am b/ui/css/Makefile.am new file mode 100644 index 0000000..f4f3dac --- /dev/null +++ b/ui/css/Makefile.am @@ -0,0 +1,26 @@ +# +# Kimchi +# +# Copyright IBM, Corp. 2013 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +EXTRA_DIST = theme-default + +cssdir = $(datadir)/kimchi/ui/css +dist_css_DATA = theme-default.min.css + +theme-default.min.css: theme-default/*.css + cat $^ > $@ + +CLEANFILES = theme-default.min.css diff --git a/ui/css/theme-default/button.css b/ui/css/theme-default/button.css new file mode 100644 index 0000000..00e0ddf --- /dev/null +++ b/ui/css/theme-default/button.css @@ -0,0 +1,501 @@ +/* + * Project Kimchi + * + * Copyright IBM, Corp. 2013-2015 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + /* Generated at http://colorzilla.com/gradient-editor/ */ +.btn { + display: inline-block; + height: 42px; + margin: 3px; + vertical-align: top; + border: 1px solid #aaa; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + -moz-box-sizing: content-box; + box-sizing: content-box; + box-shadow: -2px -2px 2px #eaeaea, 2px 2px 2px #fff, 3px 3px 3px white + inset, -3px -3px 3px rgba(0, 0, 0, .25) inset; + background: #ffffff; + background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%, #ffffff), color-stop(100%, #e5e5e5)); + background: -webkit-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); + background: -o-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); + background: -ms-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); + background: linear-gradient(to bottom, #ffffff 0%, #e5e5e5 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', + endColorstr='#e5e5e5', GradientType=0); + line-height: 42px; + color: #333; + font-size: 13px; + text-shadow: -1px -1px 1px #aaa, 1px 1px 1px #fff; + text-align: center; + text-overflow: ellipsis; + white-space: nowrap; + cursor: pointer; +} + +.btn[disabled] { + opacity: 0.3; +} + +.btn:not([disabled]):hover { + box-shadow: -2px -2px 2px #dadada, 2px 2px 2px #fff, 3px 3px 3px white + inset, -3px -3px 3px rgba(0, 0, 0, .25) inset; + background: #d5d5d5; + background: -moz-linear-gradient(top, #d5d5d5 0%, #eeeeee 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%, #d5d5d5), color-stop(100%, #eeeeee)); + background: -webkit-linear-gradient(top, #d5d5d5 0%, #eeeeee 100%); + background: -o-linear-gradient(top, #d5d5d5 0%, #eeeeee 100%); + background: -ms-linear-gradient(top, #d5d5d5 0%, #eeeeee 100%); + background: linear-gradient(to bottom, #d5d5d5 0%, #eeeeee 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#d5d5d5', + endColorstr='#eeeeee', GradientType=0); +} + +.btn:not([disabled]):active { + box-shadow: -2px -2px 2px #eaeaea, 2px 2px 2px #fff, 3px 3px 3px + rgba(0, 0, 0, .25) inset, -3px -3px 3px white inset; + background: #ffffff; + background: -moz-linear-gradient(top, #e5e5e5 0%, #ffffff 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%, #e5e5e5), color-stop(100%, #ffffff)); + background: -webkit-linear-gradient(top, #e5e5e5 0%, #ffffff 100%); + background: -o-linear-gradient(top, #e5e5e5 0%, #ffffff 100%); + background: -ms-linear-gradient(top, #e5e5e5 0%, #ffffff 100%); + background: linear-gradient(to bottom, #e5e5e5 0%, #ffffff 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e5e5e5', + endColorstr='#ffffff', GradientType=0); +} + +.btn.loading { + box-shadow: none; + cursor: default; +} + +.btn.loading .icon { + background: url(../images/theme-default/icon-load.png) center + center no-repeat; +} + +.btn.pause-gray .icon { + background: url(../images/theme-default/ac22_pause_grey.png) center + center no-repeat; +} + +.btn.resume-gray .icon { + background: url(../images/theme-default/ac24_resume_grey.png) center + center no-repeat; +} + +.btn .text { + padding: 0 10px; +} + +.btn .icon { + display: block; + width: 42px; + height: 42px; +} + +.btn.dropdown { + text-align: left; + position: relative; + padding-right: 25px; +} + +.btn.dropdown .arrow { + position: absolute; + width: 15px; + height: 42px; + line-height: 42px; + top: 0; + right: 10px; + background: url(../images/theme-default/arrow-down-black.png) no-repeat + center center; + right: 10px; +} + +.btn .input { + margin-left: 10px; +} + +/* Generated at http://colorzilla.com/gradient-editor/ */ +.btn-tool { + display: inline-block; + height: 38px; + margin: 6px 3px; + vertical-align: top; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + -moz-box-sizing: content-box; + box-sizing: content-box; + box-shadow: -1px -1px 1px #777, 1px 1px 1px #eee, 2px 2px 2px #ddd inset, + -3px -3px 3px rgba(0, 0, 0, .25) inset; + background: #f3f3f3; + background: -moz-linear-gradient(top, #f3f3f3 0%, #dddddd 50%, #d8d8d8 51%, + #cccccc 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%, #f3f3f3), color-stop(50%, #dddddd), + color-stop(51%, #d8d8d8), color-stop(100%, #cccccc)); + background: -webkit-linear-gradient(top, #f3f3f3 0%, #dddddd 50%, #d8d8d8 + 51%, #cccccc 100%); + background: -o-linear-gradient(top, #f3f3f3 0%, #dddddd 50%, #d8d8d8 51%, + #cccccc 100%); + background: -ms-linear-gradient(top, #f3f3f3 0%, #dddddd 50%, #d8d8d8 51%, + #cccccc 100%); + background: linear-gradient(to bottom, #f3f3f3 0%, #dddddd 50%, + #d8d8d8 51%, #cccccc 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3f3f3', + endColorstr='#cccccc', GradientType=0); + overflow: hidden; + cursor: pointer; +} + +.btn-tool:hover { + box-shadow: -1px -1px 1px #777, 1px 1px 1px #eee, 2px 2px 2px + rgba(0, 0, 0, .25) inset, -3px -3px 3px + rgba(0, 0, 0, .25) inset; +} + +/* Generated at http://colorzilla.com/gradient-editor/ */ +.btn-tool.left,.btn-tool.right { + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; + background: #dddddd; + background: -moz-linear-gradient(top, #dddddd 0%, #999999 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%, #dddddd), color-stop(100%, #999999)); + background: -webkit-linear-gradient(top, #dddddd 0%, #999999 100%); + background: -o-linear-gradient(top, #dddddd 0%, #999999 100%); + background: -ms-linear-gradient(top, #dddddd 0%, #999999 100%); + background: linear-gradient(to bottom, #dddddd 0%, #999999 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dddddd', + endColorstr='#999999', GradientType=0); +} + +.btn-tool:active,.btn-tool.active { + box-shadow: -1px -1px 1px #777, 1px 1px 1px #eee, 3px 3px 3px + rgba(0, 0, 0, .35) inset; +} + +.btn-tool.left { + -webkit-border-top-left-radius: 5px; + -moz-border-top-left-radius: 5px; + border-top-left-radius: 5px; + -webkit-border-bottom-left-radius: 5px; + -moz-border-bottom-left-radius: 5px; + border-bottom-left-radius: 5px; +} + +.btn-tool.right { + -webkit-border-top-right-radius: 5px; + -moz-border-top-right-radius: 5px; + border-top-right-radius: 5px; + -webkit-border-bottom-right-radius: 5px; + -moz-border-bottom-right-radius: 5px; + border-bottom-right-radius: 5px; +} + +.btn-tool .icon { + display: block; + width: 48px; + height: 38px; +} + +.icon.reset { + background: url(../images/theme-default/icon-reset.png) center + center no-repeat; +} + +.icon.power-up { + background: url(../images/theme-default/icon-power-up.png) center + center no-repeat; +} + +.icon.power-down { + background: url(../images/theme-default/icon-power-down.png) center + center no-repeat; +} + +.icon.pause { + background: url(../images/theme-default/ac22_pause.png) center + center no-repeat; +} + +.icon.resume { + background: url(../images/theme-default/ac24_resume.png) center + center no-repeat; +} + +.icon.search { + background: url(../images/theme-default/icon-search.png) no-repeat + center center; +} + +.icon.sort { + background: url(../images/theme-default/icon-sort.png) no-repeat + center center; +} + +.icon.design { + background: url(../images/theme-default/icon-design.png) no-repeat + center center; +} + +.icon.list { + background: url(../images/theme-default/icon-list.png) no-repeat + center center; +} + +.icon.detail { + background: url(../images/theme-default/icon-detail.png) no-repeat + center center; +} + +.icon.add { + line-height: 32px; + text-align: center; + text-shadow: -1px -1px 1px #aaa, 1px 1px 1px #eee; + font-size: 38px; + font-weight: bold; + color: #7cae0a; +} + +.icon.tree { + width: 42px; + background: url(../images/theme-default/icon-tree.png) no-repeat + center center; +} + +/* Generated at http://colorzilla.com/gradient-editor/ */ +.btn-tool.tree { + width: 42px; + margin: 5px 10px; + background: #ffffff; + background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%, #ffffff), color-stop(100%, #e5e5e5)); + background: -webkit-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); + background: -o-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); + background: -ms-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); + background: linear-gradient(to bottom, #ffffff 0%, #e5e5e5 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', + endColorstr='#e5e5e5', GradientType=0); + box-shadow: -1px -1px 1px #03385c, 1px 1px 1px #09F, 3px 3px 3px white + inset, -3px -3px 3px rgba(0, 0, 0, .25) inset; +} + +.btn-select { + display: inline-block; + position: relative; + height: 30px; + padding-right: 20px; + vertical-align: top; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + background: #fff; + box-shadow: -1px -1px 1px #666, 1px 1px 1px #fff, 1px 1px 1px + rgba(0, 0, 0, .15) inset; + font-size: 13px; + line-height: 30px; + text-align: left; + cursor: pointer; +} + +.btn-select .input { + border: 0 solid #CCCCCC; + margin-right: 10px; + font-size: 16px; + height: 30px; + line-height: 30px; + width: 100%; + position: absolute; + padding: 0 5px; +} + +.btn-select input.invalid-field { + border: 1px solid #FF4444; +} +.btn-select .arrow { + position: absolute; + width: 15px; + height: 30px; + line-height: 30px; + top: 0; + right: 5px; + background: url(../images/theme-default/arrow-down-black.png) no-repeat + center center; +} + +/* Generated at http://colorzilla.com/gradient-editor/ */ +.button-big { + display: block; + margin-bottom: 10px; + border: 1px solid #ccc; + box-shadow: -1px -1px 1px #ccc, 1px 1px 1px #eee; + text-shadow: -1px -1px 1px #ccc, 1px 1px 1px #fff; + -webkit-border-radius: 05px; + -moz-border-radius: 05px; + border-radius: 05px; + background: #ffffff; + background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%, #ffffff), color-stop(100%, #e5e5e5)); + background: -webkit-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); + background: -o-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); + background: -ms-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); + background: linear-gradient(to bottom, #ffffff 0%, #e5e5e5 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', + endColorstr='#e5e5e5', GradientType=0); + text-align: center; + font-size: 13px; + line-height: 38px; + width: 100%; +} + +.button-big:not([disabled]):hover { + box-shadow: -1px -1px 1px #bbb, 1px 1px 1px #ddd; + background: #eeeeee; + background: -moz-linear-gradient(top, #eeeeee 0%, #d5d5d5 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%, #eeeeee), color-stop(100%, #d5d5d5)); + background: -webkit-linear-gradient(top, #eeeeee 0%, #d5d5d5 100%); + background: -o-linear-gradient(top, #eeeeee 0%, #d5d5d5 100%); + background: -ms-linear-gradient(top, #eeeeee 0%, #d5d5d5 100%); + background: linear-gradient(to bottom, #eeeeee 0%, #d5d5d5 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', + endColorstr='#d5d5d5', GradientType=0); +} + +.button-big:not([disabled]):active { + box-shadow: -1px -1px 1px #eee, 1px 1px 1px #ccc, 2px 2px 2px #ccc inset, + -2px -2px 2px #aaa inset; + background: -moz-linear-gradient(top, #e5e5e5 0%, #ffffff 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%, #e5e5e5), color-stop(100%, #ffffff)); + background: -webkit-linear-gradient(top, #e5e5e5 0%, #ffffff 100%); + background: -o-linear-gradient(top, #e5e5e5 0%, #ffffff 100%); + background: -ms-linear-gradient(top, #e5e5e5 0%, #ffffff 100%); + background: linear-gradient(to bottom, #e5e5e5 0%, #ffffff 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e5e5e5', + endColorstr='#ffffff', GradientType=0); +} + +/* Generated at http://colorzilla.com/gradient-editor/ */ +.button-big.red:not([disabled]) { + text-shadow: -1px -1px 1px #9e0505, 1px 1px 1px #fc5d4c; + border: 1px solid #b10f14; + background: #ff3019; + background: -moz-linear-gradient(top, #ff3019 0%, #cf0404 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%, #ff3019), color-stop(100%, #cf0404)); + background: -webkit-linear-gradient(top, #ff3019 0%, #cf0404 100%); + background: -o-linear-gradient(top, #ff3019 0%, #cf0404 100%); + background: -ms-linear-gradient(top, #ff3019 0%, #cf0404 100%); + background: linear-gradient(to bottom, #ff3019 0%, #cf0404 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3019', + endColorstr='#cf0404', GradientType=0); + color: #fff; +} + +.button-big.red:not([disabled]):hover { + background: #ef2009; + background: -moz-linear-gradient(top, #ef2009 0%, #bf0404 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%, #ef2009), color-stop(100%, #bf0404)); + background: -webkit-linear-gradient(top, #ef2009 0%, #bf0404 100%); + background: -o-linear-gradient(top, #ef2009 0%, #bf0404 100%); + background: -ms-linear-gradient(top, #ef2009 0%, #bf0404 100%); + background: linear-gradient(to bottom, #ef2009 0%, #bf0404 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ef2009', + endColorstr='#bf0404', GradientType=0); + color: #fff; +} + +.button-big.red:not([disabled]):active { + background: -moz-linear-gradient(top, #cf0404 0%, #ff3019 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%, #cf0404), color-stop(100%, #ff3019)); + background: -webkit-linear-gradient(top, #cf0404 0%, #ff3019 100%); + background: -o-linear-gradient(top, #cf0404 0%, #ff3019 100%); + background: -ms-linear-gradient(top, #cf0404 0%, #ff3019 100%); + background: linear-gradient(to bottom, #cf0404 0%, #ff3019 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cf0404', + endColorstr='#ff3019', GradientType=0); +} + +.button-big.disable { + display: none; +} + +.btn-normal { + display: inline-block; + height: 38px; + margin: 9px 3px; + vertical-align: top; + background: #06F; + line-height: 38px; + padding: 0 20px; + color: #EEE; + border-radius: 8px; + font-size: 13px; +} + +.btn-normal:not([disabled]):hover { + background: #04D; +} + +.btn-normal:not([disabled]):active { + box-shadow: -1px -1px 1px #eee, 1px 1px 1px #ccc, 2px 2px 2px #ccc inset, + -2px -2px 2px #aaa inset; + background: -moz-linear-gradient(top, #04d 0%, #06f 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%, #04d), color-stop(100%, #06f)); + background: -webkit-linear-gradient(top, #04d 0%, #ff3019 100%); + background: -o-linear-gradient(top, #04d 0%, #06f 100%); + background: -ms-linear-gradient(top, #04d 0%, #06f 100%); + background: linear-gradient(to bottom, #04d 0%, #06f 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#04d', + endColorstr='#06f', GradientType=0); +} + +.btn-normal[disabled] { + background-color: silver; +} + +.btn-group { + float: right; + padding: 0 10px; +} + +.btn-small { + display: inline-block; + height: 25px; + margin: 6px 3px; + vertical-align: top; + background: #06F; + line-height: 25px; + padding: 0 10px; + color: #EEE; + border-radius: 8px; + font-size: 10px; +} diff --git a/ui/css/theme-default/message.css b/ui/css/theme-default/message.css new file mode 100644 index 0000000..28c392b --- /dev/null +++ b/ui/css/theme-default/message.css @@ -0,0 +1,135 @@ +/* + * Project Kimchi + * + * Copyright IBM, Corp. 2013-2014 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#messageField { + position: fixed; + margin: auto; + left: 0; + right: 0; + top: 0; + width: 1024px; + max-width: 100%; + z-index: 200; +} + +.message { + background-color: #FFF68F; + position: relative; + margin-bottom: 5px; +} + +.message.warn { + background-color: #FFF68F; +} + +.message.error { + background-color: #FFAEB9; +} + +.message.success { + background-color: #90EE90; +} + +.message .close { + position: absolute; + width: 30px; + height: 30px; + top: 0; + right: 0; + color: #545454; + font-size: 12px; + text-align: center; + line-height: 30px; + cursor: pointer; +} + +.message .content { + padding: 0 30px 0 10px; + line-height: 30px; +} + +.confirmbox { + position: absolute; + margin: auto; + left: 0; + right: 0; + top: 0; + bottom: 0; + box-shadow: 2px 2px 6px #000; + border: 2px solid #0f71b4; + -webkit-border-radius: 8px; + -moz-border-radius: 8px; + border-radius: 8px; + background-color: black; + box-sizing: border-box; + max-width: 100%; + max-height: 100%; + width: 350px; + height: 200px; + z-index: 9999; +} + +.confirmbox>footer { + position: absolute; + left: 0; + right: 0; + bottom: 0; + height: 48px; + box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.15); +} + +.confirmbox .title { + display: inline-block; + padding: 10px 10px 0 10px; + line-height: 20px; + color: white; +} + +.confirmbox .content { + padding: 20px 10px 0px 100px; + line-height: 16px; + font-size: 13px; + color: white; + background: url(../images/theme-default/alert.png) no-repeat 20px center; + height: 41px; + vertical-align: middle; +} + + +.confirmbox .close { + position: absolute; + width: 13px; + height: 13px; + top: 7px; + right: 7px; + -webkit-border-radius: 13px; + -moz-border-radius: 13px; + border-radius: 13px; + border: 2px solid #ccc; + color: #ccc; + font-size: 13px; + text-align: center; + line-height: 13px; + font-weight: bold; + background: #4a4a4a;; + cursor: pointer; +} + +.confirmbox>header>.close:hover { + border: 2px solid #444; + color: #444; +} diff --git a/ui/css/theme-default/popover.css b/ui/css/theme-default/popover.css new file mode 100644 index 0000000..3668307 --- /dev/null +++ b/ui/css/theme-default/popover.css @@ -0,0 +1,124 @@ +/* + * Project Kimchi + * + * Copyright IBM, Corp. 2013-2014 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +.popover { + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + background: #eee; + border: 2px solid #096aad; + box-shadow: 1px 1px 2px rgba(0, 0, 0, .5); + z-index: 9999; + position: absolute; + top: 125%; + left: 0; + display: none; + cursor: default; + width: 100%; +} + +.popover:BEFORE { + content: ""; + display: block; + border: 12px solid transparent; + border-bottom-color: #096aad; + position: absolute; + top: -24px; + left: 20px; +} + +.popover:AFTER { + content: ""; + display: block; + border: 10px solid transparent; + border-bottom-color: #eee; + position: absolute; + top: -20px; + left: 22px; +} + +.popover.right-side { + left: auto; + right: 0; +} + +.popover.right-side:BEFORE { + left: auto; + right: 20px; +} + +.popover.right-side:AFTER { + left: auto; + right: 22px; +} + +/* Generated at http://colorzilla.com/gradient-editor/ */ +.actionsheet { + background: rgb(238, 238, 238); + background: -moz-linear-gradient(top, rgba(238, 238, 238, 1) 0%, + rgba(204, 204, 204, 1) 10px, rgba(204, 204, 204, 1) 96%, + rgba(165, 165, 165, 1) 100%); + background: -webkit-gradient(linear, left top, left bottom, + color-stop(0%, rgba(238, 238, 238, 1)), color-stop(10px, + rgba(204, 204, 204, 1)), color-stop(96%, + rgba(204, 204, 204, 1)), color-stop(100%, + rgba(165, 165, 165, 1))); + background: -webkit-linear-gradient(top, rgba(238, 238, 238, 1) 0%, + rgba(204, 204, 204, 1) 10px, rgba(204, 204, 204, 1) 96%, + rgba(165, 165, 165, 1) 100%); + background: -o-linear-gradient(top, rgba(238, 238, 238, 1) 0%, + rgba(204, 204, 204, 1) 10px, rgba(204, 204, 204, 1) 96%, + rgba(165, 165, 165, 1) 100%); + background: -ms-linear-gradient(top, rgba(238, 238, 238, 1) 0%, + rgba(204, 204, 204, 1) 10px, rgba(204, 204, 204, 1) 96%, + rgba(165, 165, 165, 1) 100%); + background: linear-gradient(to bottom, rgba(238, 238, 238, 1) 0%, + rgba(204, 204, 204, 1) 10px, rgba(204, 204, 204, 1) 96%, + rgba(165, 165, 165, 1) 100%); + padding: 10px 10px 0 10px; +} + +.select-list { + max-height: 195px; + overflow: auto; +} + +.select-list>li { + height: 48px; + padding: 0 20px 0 40px; + border-bottom: 1px solid #ccc; + box-shadow: 0px 1px 1px #fff; + text-shadow: -1px -1px 1px #ddd, 1px 1px 1px #fff; + color: #222; + font-size: 12px; + line-height: 48px; +} + +.select-list>li:LAST-CHILD { + border-bottom: none; + box-shadow: inherit; +} + +.select-list>li:hover { + background: #f8f8f8 url(../images/theme-default/check-grey.png) no-repeat + 10px center; +} + +.select-list>li.active { + background: #f8f8f8 url(../images/theme-default/check-green.png) no-repeat + 10px center; +} diff --git a/ui/images/Makefile.am b/ui/images/Makefile.am new file mode 100644 index 0000000..7b63d23 --- /dev/null +++ b/ui/images/Makefile.am @@ -0,0 +1,22 @@ +# +# Kimchi +# +# Copyright IBM, Corp. 2013 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +SUBDIRS = theme-default + +imagedir = $(datadir)/kimchi/ui/images + +dist_image_DATA = *.png *.ico diff --git a/ui/images/logo.ico b/ui/images/logo.ico new file mode 100644 index 0000000000000000000000000000000000000000..446143f066a60f479b2cb8f8d04ab3c97ff60e56 GIT binary patch literal 1214 zcma)*3rLeu6vyu=X_;nPV)$&PPF)r(wTQ|dTGOUtnOdf0mZ=cR#99xbub1{BqnD9^ z^Z>PV6h)fUny6#CN{3di2P{*h2ek@Oq0a4o*=I}2Iv?krbAR`oKi_vQA0faVCr83o zF{!X2#Dx$Nz}$(sm^sgR<Jj30yCMGpMl1z837jm3H1$<DU4IV>Tbdw<FM-;Hi<#et z=I}n~iB^qh8{XzCNyvT<I;$&znmT~?eFXZgAE@Om?1h(6Iq+2e1-ca!zOAO7n3*}; zXq6n?2kF<!f%cez;-Fgx4$e+xo{WR;oqhc_OW;#nF!Zm|JK}m8gi6aC+##`QA5PmJ zfeZ(o(}%&&1P5#*1vVbnssk~XhN5bNz=T)>5^+BS=V54SJ|^z)5I7%kU;>-skiq*{ z5B^=eF<T)pK9+)bV;9UCK>t-HOi+bkR-wK1xpfXL;S<?ho1pQ5gYzxiHR~=e+XHS( zYe7QMZb3IjWV72H-JpD~6z(tbgwn1o$D2s!YteWNJS!i9l%iW?+34Lvr*KL(6{_X| zobEjAb{lD|4qsmYvGF;~r0Aunc#>=c)0W4s|D{#(q9~vaX{rGms=((Wn*~LeWqIu} zkGvlzwaxjL25hey2bVweu<xK*t+@Oa_)UKTK^x4IwmKMOjm@oL`l)}_NGPy}tdb}w zHa>H`ji2N7m}Xsj#j7-`#=Dv}`)h&)9th^&^dR%>WH_MB8KcIXVf8p&s1xD|_k)R- zrk$Z0-|Gf}&4Au$KhU$k?3YR5by~D9M&-q$=ocNz4!IY&p7%OxuJf&+Ei-G(23hU; zHTLhMtjFR9ExVbPQVLzBFlROcIZ|#jmX6fm_hsVa3XP<aKAeAt8dqp&oBW=V^+d>Q zkcNnm%Ds?ggd^Rv2~9_o82cv;p6LSBD_g_s-n1uZ8#<EeLwTm~LE9J!Zdo@M&*jFU zoM+Z%F5)(8$8y`Wz~%Pd;Nlx@aH{<lk}}CcRMRXZMD&%Uhz3Ze$jpg#uec1IlFMPW MDQ4iZEk#_;cNAJoqyPW_ literal 0 HcmV?d00001 diff --git a/ui/images/theme-default/Makefile.am b/ui/images/theme-default/Makefile.am new file mode 100644 index 0000000..7c69b2a --- /dev/null +++ b/ui/images/theme-default/Makefile.am @@ -0,0 +1,20 @@ +# +# Kimchi +# +# Copyright IBM, Corp. 2013 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +imagedir = $(datadir)/kimchi/ui/images/theme-default + +dist_image_DATA = *.png *.gif diff --git a/ui/images/theme-default/logo-white.png b/ui/images/theme-default/logo-white.png new file mode 100644 index 0000000000000000000000000000000000000000..8ef8ae15aa40ceb7db5170c9806ac74b840eaa0f GIT binary patch literal 9879 zcmV;ICTQ7-P)<h;3K|Lk000e1NJLTq008U&001xu1^@s65-*lO00009a7bBm000XU z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag z^g>IBfRsybQWXdwQbLP>6p<z>Aqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uh<iVD~V z<RPMtgQJLw%KPDaqifc@_vX$1wbwr9tn;0-&j-K=43<bUQ8j=JsX`tR;Dg7+#^K~H zK!FM*Z~zbpvt%K2{UZSY_<lS*D<Z%Lz5oGu(+dayz)hRLFdT>f59&ghTmgWD0l;*T zI7<kC6aYYajzXpYKt=(8otP$50H6c_V9R4-;{Z@C0AMG7=F<Rxo%or10RUT+Ar%3j zkpLhQWr#!oXgdI`&sK^>09Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-<?i z0%4j!F2Z@488U%158(66005wo6%pWr^Zj_v4zAA5HjcIqUoGmt2LB>rV&nehQ1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_<lS*MWK+n+1cgf z<k(8YLR(?VSAG6x!e78w{cQPuJpA|d;J)G{fihizM+Erb!p!tcr5w+a34~(Y=8s4G zw+sLL9n&JjNn*KJDiq^U5^;`1nvC-@r6P$!k}1U{(*I=Q-z@tBKHoI}uxdU5dyy@u zU1J0GOD7Ombim^G008p4Z^6_k2m^p<gW=D2|L;HjN1!DDfM!XOaR2~bL?kX$%CkSm z2mk;?pn)o|K^yeJ7%adB9Ki+L!3+FgHiSYX#KJ-lLJDMn9CBbOtb#%)hRv`YDqt_v zKpix|QD}yfa1JiQRk#j4a1Z)n2%f<xynzV>LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_Ifq<Ex{*7`05XF7hP+2Hl!3BQJ=6@fL%FCo z8iYoo3(#bAF`ADSpqtQgv>H8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ<AYmRsNLWl*PS{AOARHt#5!wki2?K;t z!Y3k=s7tgax)J%r7-BLphge7~Bi0g+6E6^Zh(p9TBoc{3GAFr^0!gu?RMHaCM$&Fl zBk3%un>0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 z<uv66WtcKSRim0x-Ke2d5jBrmLam{;Qm;{ms1r1GnmNsb7D-E`t)i9F8fX`2_i3-_ zbh;7Ul^#x)&{xvS=|||7=mYe33=M`AgU5(xC>fg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vF<Q0r40Q)j6=sE4X&sBct1q<&fbi3VB2Ov6t@q*0);U*o*SAPZv|vv@2aYYnT0 zb%8a+Cb7-ge0D0knEf5Qi#@8Tp*ce{N;6lpQuCB%KL_KOarm5cP6_8Ir<e17iry6O zDdH&`rZh~sF=bq9s+O0QSgS~@QL9Jmy*94xr=6y~MY~!1fet~(N+(<=M`w@D1)b+p z*;C!83a1uLJv#NSE~;y#8=<>IcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#tDe?p!?5wT$+oGt z8L;Kp2HUQ-ZMJ=3XJQv;x5ci*?vuTfeY$;({XGW_huIFR9a<fJbF^|4I#xQ~n$Dc= zKYhjYmgz5NSkDm8*fZm{6U!;YX`NG>(?@3)XSs8O^N5RyOM=TTmp(3=8^+zpz2r)C z^>JO{deZfso3oq3?Wo(Y?l$ge?uXo;%ru`Vo>?<<(8I_>;8Eq#KMS9gFl*neeosSB zfoHYnBQIkwkyowPu(zdms`p{<7e4kra-ZWq<2*OsGTvEV%s0Td$hXT+!*8Bnh2KMe zBmZRodjHV?r+_5^X9J0WL4jKW`}lf%A-|44I@@LTvf1rHjG(ze6+w@Jt%Bvjts!X0 z?2xS?_ve_-k<Mujg;0Lz*3buG=3$G&ehepthlN*$KaOySSQ^nWmo<0M+(UEUMEXRQ zMBbZcF;6+KElM>iKB_KiJlZ$9G`c^=E@oNG)mWWaNo-3TIW8)$Hg0Ub-~8?KhvJ>$ z3*&nim@mj(aCxE5!t{lw7O5^0EIO7zOo&c6l<+|iDySBWCGrz@C5{St!X3hAA}`T4 z(TLbXTq+(;@<=L8dXnssyft|w#WSTW<++3>sgS%(4NTpeI-VAqb|7ssJvzNHgOZVu zaYCvgO_R1~>SyL=cFU|~g|hy|Zi}}s9+d~lYqOB71z9Z$wnC=pR9Yz4DhIM>Wmjgu z&56o6maCpC&F##y%G;1PobR9i?GnNg;gYtchD%p19a!eQtZF&3JaKv33gZ<8D~47E ztUS1iwkmDaPpj=$m#%)jCVEY4fnLGNg2A-`YwHVD3gv};>)hAvT~AmqS>Lr``i7kw zJ{5_It`yrBmlc25DBO7E8;5VoznR>Ww5hAaxn$2~(q`%A-YuS64wkBy=9dm`4cXeX z4c}I@?e+FW+b@^RDBHV(wnMq2zdX3SWv9u`%{xC-q*U}&`cyXV(%rRT*Z6MH?i+i& z_B8C(+grT%{XWUQ+f@NoP1R=AW&26{v-dx)iK^-Nmiuj8txj!m?Z*Ss1N{dh4z}01 z)YTo*JycSU)+_5r4#yw9{+;i4Ee$peRgIj+;v;ZGdF1K$3E%e~4LaI(jC-u%2h$&R z9cLXcYC@Xwnns&bn)_Q~Te?roKGD|d-g^8;+aC{{G(1^(O7m37Y1-+6)01cN&y1aw zoqc{T`P^XJqPBbIW6s}d4{z_f5Om?vMgNQEJG?v2T=KYd^0M3I6IZxbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BK<z=<L*0kfKU@CX*zeqbYQT4(^U>T#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot<a{81DF0~rvGr5Xr~8u`lav1h z1DNytV>2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z000}pNkl<Zc-riJdzci}nfLG1wY&P>Gd=e!12fD8hG8xk?pM)h1OY`!48{#a#nt5T z%SPi0#>aSzNpvL<*UwL*(QJHJU9xW6XarVd6-GocT;x8?Fc;>2>05PIo$rr6)l<_9 z3h1-qQt$Jer@O1_)TypIzxuuBec$sQLMa6R5JGU4LI7|81Xg4K5hZ4}b!Q15g1( z*=HPp&gyff`n;(a7eLvuI;*Fderu*<&Pt5`XNe{M8$>wA<IP}|7+CE9Z0tABK&7%{ z4bX8WunMO7BKvNDn6jd=5@Yp^PndvjA<+^Gu;&0)8vq4>!f~9EpOata<-AwL`%tA* z%8NdsF(yYI-+yS|0all1b!`mj1~Ush#|Z-Ac%BdrAi4%U8q>6hPHBvR-vG2~2JMWw zbLqCto2{p4i3QkEz-nelnSs>_z+RA1Fu_mLZzMf@wM~^g9AuDwF3UMiI608h|G>%C zlQ4l*VMPWYNs=TNWo1{`R6W}Uk_kWy^Ry`<a3@+iI`)Pmk)VlDHIvG0i6s_bKSTHw zcC`brl^2)KQ@WkE2?J7|59tUX2R67dq(;2xh}|;1JngT4Y<=;aRKR8g0-1%1d$D~m zJX7i%%#<`;RzPHt5NL!8t2`eW;|!b{%(K7V)YJ3g$)2uulWJ{=B^F@MQXQ5V@N5+& z6|>!^JpV@?RMNAMi+mKphb#!hju4Hbr>(~$R)(qoY&Gih94}Ul9XHS0*?+6j(vk1c zh>#8eX^`Lp2L&7`;2MJF>I;SfT?3)gERXZ*j@qJi+jo7iiLonX#w0=rvBt8NSb$9d zt1$)@8N*5i`GqCke*gEKgYNWVp%?{v3A}nb2xO?BP@%%jrJ-<4v7y3Jn=Esa3W~qu zI^KS#SB(pWu%i?*iim^&L^wbog98Oc1QdhN(4)r0W1W4a2XykAwE36yY<laBzp`rq z0G(0_3$&J4fIS_whDt0*vMgswSy#JHddH6yOEI1+heuC`4j=*zl*SN77{!-lpRAfw zxS#%p5<-YpJGN}O<KXds$c|A`4F_r<p%@~3l!F}<90U*|Fsl+xoR8R03LD0Dcltko z?WX5{`}D^*-ui<<47+$V>oHnl0d}MqR$3kaUzk%c*468oS3nC;DOVyZmJ5v#3?T#+ zDl~zhxGt}4?!7g?9Wy`sBLMujF1@rOx_#G=^I|b_2|TzYuOM9D&**mW_Bco4JO&1Q z<Z!DKbO3-8JmJBELIi;V8+?#pBesdBg3%lR$B?iXTgE3#EWn;YCFa;C{F1*iJ(Qj` z&R&LmQV0n$dbL4lh@tq3yc0R|1KV?EX1tL(*}okC?H?Er$dTr|0>L4FUBUS784DJ^ zTUc53K0mAGm`+4BuEzzvabE!rH8t>!A5Isx?a1M&3`%4G1RPX2prWXH(&79o7KYh% zYZ&&;T4IR>*ik?Wm*NtfnrnPcJQsz|B6z49p?DM^6qDChyj}F|!rytvIsXPA#8^<f z@5euB;G5g8D66d9Gi}vPkBz_M@3ynCFoEH&sjb`vU}NX&TWY1s^1oL$yf9m&LjVNm z=!Z6Wc8_btqF3D&Wg!f^nJlry0_+)t0-!F*ZF9sO85vwA{6ZSUupOEf#^lE<|5UU( z_i@24^Z|&lq5{y5zW>3uv&WTuI`96wel&5(w+^#*V;C9Lqyf+aSI&9&M1IDn;Ys7Z z@A}I-)A-gd2WB@k)5Vv+>aH2T*>v96mpOhVgybOMS5^V^0tjN*@5=*l07yf^EfqB# zBe8lsfFV}mxG*BIvH;8kFb2R$03Wj9MEG;Ak7xhM#f}>??gzDEJuhg$k`y-69I_%f zWLLT$X;3%?S}=yp@1}oTaAVGT!7lW$4j*EjLVbPHCRuhl!!@(#+%t8_xAw8lpqs#& z8ZV53>dF(biqfBTx|9N2OOI?@wxC}bliQ8q808oM%@qG^jzd0QnSO?jO#rw7OaxHN zI`UC=%qajxY##^U04u$e(y!bYMhI~LD4>)+1OSbVjmzun>-VM{Gg?(AfNB60>{;#u za0tL4tdP*JRJhL=ubKn%jpKBHgdKvT*Uh=WheU7z0VQ`8{Ilc{TN(2hU=0IMT@Gh- z&XPsH{J{fj-(f(DvVB2TLZ*`3E{ft{&Wfw{`Tya@-O8BUBLI2`Awz@^oe&}tLX7xj z!E}9JL{%=Jls-f$ePQR$ot5l*C=vl8V*yNk?6Jo#qm=%PQu-pL^eO;d0MhQe@4m|- zk;oGtee}__0D>0+SWOZ(zSP&(53qaoc>yR2fTHK0fBxD?B=Xd@ZQG`?=VBT8E+B?Y z1uKUX>o5Qk)<OfKBDRP`0uAc$FY<gW=L#P)=2OjJ1)$HGKTn%Af1Zlri2;URHmM5F znL34TeQzfRfb+WDl0y;%cV@ONQ;|JhiOQPn)DIpx((kZIS}>v_g`JJb0qlj692b9~ zj!h|*2q7wfd;s-}7cZ{3?Y7&du|r+}@C>C?CWM^0_10U*$g-?dS6BZ%rSxugUoQlM zn9g31=I70y#kEBNG_72@at;7YpFVvNrSuuoeYfNSQHhOcCK1Ea<v0^_=`CF?1A0yT zfQlG2O5to!_E3s$_K=ODn!rghGXB>*eU37fEctS%7*|p!#-po9G&oi4>&aF*DiDDS z6}q_YY;XRdA!_?`YwO8(TD$r>P2e<C?DGXHM(Nlb8?#Q%&(E)T?z!hKmt|Q2um`~1 zrvG&?5D5Gfz)u1E2NIEBv9Ec*7y!@+;2r=A0X)L`gK9zM!U3$oq#}lA)EFJtV8kc@ zJ*b4<3#A1^dP`i<IK9R0u??A+E@om+m_S5Q0F2r7lj&)o)8Z{Qx9?y5_RRNv+Tb^p z_|P;l+UJWC%@@+bV}lxZc}}r^Uq?Z~;|Go$d!xU9&}hp%J@3m94L}WmiLbr(+8nRf zn+Bi>z;&i^dW^OE7Jzq6%o-<zI05+B{fw~lDa?3987K?`oy^9`UiLl8_Vu&<y4l!6 z2;taq9#$0g>{K?+Gz?;76vJVR5R%WXO-*gb^sIOQ4+B`wep`O;3lOkIaK9aZ-J2H3 zfaFXANL<h(ZCxF$Edcb85Zo229(p6v5?-nXBS=wC^%T&Y2BNvsr%^o`21Xh@C;;kI zl;i*T&bv*lV{Ul$5C89qj6>VjicLG}hjgGvRngqtS8*&H{%8NhasRaUSlcg7w6yi& z%XRfoLWl=I{j<+LJGHj9wt{u+o7uQE1VAN;u&g3NNG${6epWO9c>wAept{-r%LS0m z?o$&pQ1t=G05Fc#u`{q81+bTW4iG|&7of<Pe=LA<R!3p`g6zC|n2{(|;)IZD01Mc4 z46*a?GumO-?gucH5RwhxFgxEMdvRE(xj>9gBPOO7j~!Rz$|=2{^W^=Oc=9$VStXCu z)K9qtK<r;PZXD33sJ{!Q2O~Yr{iSU!?Pkj_1wdy{olWO9e1p!L+(74jV>+ETV<w$9 zJyFaTFspttH43E^f7$+ia?DIA<*&Z(dw<pzeE-_OjHR1vG6`lDJF#$L4z4WWFyGs9 z`?TtkpXTM~NnbL%#sSpbbI(0fZo28FnQYrn0PJRC-6$bMXZI_xX3d&!QcC|XrF1)n zGi>;8zy0>vl+q`U967QMK;}y?y|kdGr)M>#^dDPWTi32$y?Q=?831OiUAuO{!Gi~{ zqm<rBDP6l~&z?K(yz|Z(49qfnAqfohvjAMNYSpR*jg5`VB9X`~M!l}CuAAH2+ZRzv z`%_ieJ$v>zfB3^6&iUx0kBoNKee%gCMmqshJ5B&4l+xc&O8>HR=gyfHyIz<Kn*>YT zp7q1#h<ggLdqD*|dZTKtu7t)cyfXU`fMa*ud&jnyx?b7P_6e4E@9r$h&dd7S2*B8R zP}o6+!e@n}tvh#_jb5DDGClK>sm(99wcb26^TfYp_BK{HeKG<rKeF6C@OC!cEKjdH z@cbWIe#00b>54kvNdbHI>~XGKxw7Hjd+%MqHa!4f69a3+#C8Cn+3ohhBsEhSXKib; zEQbNW>-F~c_V(6!z21cYHUlWm&dx4=`st_F`ThPUmMvRWU0Yi_o4pXW0GKmj!i1Vf z9(kmsuCDIL_19nD%>GjvfZF{0{OKDvZk*rH&``#jJ<gaFX=!P*7-Kq^CXkeg6DN-Q z^{;>Z5E3q{EdVA}RaH%X<dH|lHZ(LGUcP*Ji|JvVW`x7YR6mw{#SA;b=Q>EdljV$3 zc*<tLQ?US2`8>2aYKz0(ao=Ms%vUZS_fPQ}b#vFg&YJyy+b@_O=GM30Ch9;Ox=zkV zS*5Av+e@xF@-A1lp<7o%M2o>K5fo>;F)b@hru*7&zH!yx6;et^xS<$$&sn;=y9*zE z^wDdXk!dr4$1v=6(o(KdlVv$Fior^gBq<62e!suL>-ApA3^>;Vm_aFh8vuU(^Pewb zV0{3<6#%XUPzm5D&-3nUuDRyBl+qykUxfh1zxwK{a~W9s*!iZjvGsB!f+f~tbl1&8 z0DcZ&8f&Ktz%HKW-Ak7)U5SKC>a(oNmRvx99cgf}`9yo}BnUb6Ac1lS8D$W2CP4R< z1=s^5lcv@T<t)ft=WyEIao8O36l*Zl{xE_AF~qgg;Yd?hcXmUqIiFL~T{Cmm^cYE) zlEqiHHopF;p3xkM#z85C#Bs<;ccR|aTw0YSt}t~h4qsrh`<yv*R%B#k6tSN*0Mbo9 z;PXB00{{&7SL?=&8(#qcj^m1ua1*V^uv={3wr$&<1OT4rmzw@p(Ji;!QeIbASI)qC z9TIbmLu`y`l)Vga_LOUQF{Pc>EnBv{Y_vlu6<~#Zer;4@m;j@3HW%Q|0jKyt;xW)z z45H$rl@;zVhNG4AOD=2ZMk3<pG=mc*fTro7DM}RKIq-HTXm}`rE7nEkG}O|qjUOgm zNG2nT06_Tn*IpZ#nYH*pzCz3L>^gX!LX>3WEB$<x(mw~l6F85|ilay^1JMKkHPLAF zSpX}TktT%m^Rd3hKoTZ|WC7?h8E{^MDV&oKl3i0%)A8Yl9~%1?0C*FCd-dwoRczZP zB%-Y%?7Z<5ZOOQIW_i_gyvmG9M@-kT0Ki`@wfF16u;x^vs=#y5I2nW=#<ak5YGy`e zD@JBFG}zE^uTTKAzN|hmm`r6P0zi<Uaw1L;9c@An+W0=S@qI9X)ja>!@Ci!*gd?3p zt?fga9@CRP4%lP?`BGOghBGpz`j5|f7z^Mo0Ji~vEX%W6T3Xg1;qDU7lf64Joc+;o z$(ZlGv5x|fcJJP81{=rRI(m6|`B=7X3uDp9C@&D>`K11T-DDJ_?4J5k`U8)zzaROc z0IV5+F_FiBmSV!!sg8IggcP8f0h^2mPDb;CB2H;?hbo8wVabaLpb<S;MlpVgCgAb_ z_|E=NtUDCfBe7vOFX0Hh{7{C8jrlLA+TG7O?atob-X{SdCnx9D4I4I;AmKteAJs86 zz=KZ#lG)15rLd!6jEk^wHIQ%>#m<opM{8%aXg7;tzeWrj0}ykH`VmbVX%q}cb%`U< zVho2N#xRQiHMe{+?cg+Ya2igD6vqZb=%oa`gd3r!nyp-i-#bn)G93+X0;|E6RF8%; zgHcV0>wxh-Aw-0Yk0;Znnm~WPpp7x+q7Oav(36^`H4#F*D_5?3m;u&y9xsJ+bvuz! zo>i~ux7)by<O>X}E&2L0tOg*K;fOa1(4eY%;`L4lR9z>Hhx@DF-m*nP!WS83h8T_& z5JJ#;U^hvkj}D`djM9fGbm+r_++-}Xq=<6X*g!!bJK)1`6q6?Cu^dWu7zSX<-ZkQ| zpYn^cD@;QJ{NfkCII(x{-a7%nX0y#~X=%B|q#Bd|;b+y}+1a^^{hmk&;n^ezo(zle zEG!UT1Pp6r+gH=Lf#*t`Lnniggms@I0LKwD9tn^CuTPqmu?`_&WCs7_`0nI^-Q@EK zN25Fh;(}ZBq%sR92%_lm`M#A|n0CJ}&2KZt)|}08SRxcWp&%SdL`%iPpmzU&NzMGy zIxD4At*);AOLuqodP6mS=9y>4uyH8=KL}a^;6z(n+je$cKX~e?r>;U`YTra8TtO3& zh<?gqFBJ>47YoDw+be(AF*mp8Nhb+oNYz0IAn-hTf>7Q%5V>vD&1(v9dit0%lj&)_ zk3y#+qM8?WE<LqllF&d%Q#jYB@P<}YG?cAo>R&|68nd2cj%(r6esGa)2!rj=L7<i{ zeH$a^#eNx)Pe%RFgAYEKRE=-A;f9C50+uC|((d2?{`c#3T|Z6;@vd66>Y4lQyKgao zOOf!aE(I`S&6+h+*tJ<>(f{RuP1u$aLdvq0r<acFf0>VmF%SWGo`APWXgrPy`@_E9 zE?KrLGi3~$oQ0D+zJ{Jn<6$j^zSz)cyGTbz$G-IJv>igpsXMN^Zdo0G=!-ADykD5| zojV4qZ~V`2@#Tlrva1e<XFm7`p=!kjjI?y0D_}cK-;+QjgiuN;{nf92)zZ||bU%== z8dFMVvoU3l-|z1krEc&H+ku32xAP49K5IYs=%bGw<~Z(J0LOTqcduKw?yg`kczaV* z(~{=q=EaoKr`E4ue;K7Tj6_iX`Lq-HoO+ggMIxN80VYHH_|-RDA1T_h<(~X35_$Zc z*iAj%Q4m1@b^7t&C%Y~iFT4ME>6MEfe)IKBe=<&xJHCdt?Ef&yvU%l`M}TJg*3G9q z`1aGSp&S4{G!)bww(=vvjDweCW=P+?<0p6T06>;}`}^BZ9NK#%8g9#w?RL(YKdD`^ zIf59OI_6yGZSFLE7gJtlU;uayiD;xH05(uc{~N&3W5<qtVmee}Kxn@D>Z?cF4hHnk zYHzgt=H*g8Mj{4z6@bNxqEr_Y6l5b2Oz|fGp8~K`O8W^R=h_a(&hwe~!;-H?Na}Kv z46x=UA%)!sj(U&xYl~n0AbRVj#<uaX!66{l1N0q)M?K!}igj&w2(fLlKn^L2>)rR> zdcDicaM@*(X#2sB$tcEQv-)aShmEOyHn-2?th-{;y`<{H6=nYVF4w7<iyppb-ChhY zq{W-g5y$XcT=No_XUnoYhS&YkkeK;m1o<2H#kf8@yFW(u3~I6-s~FDfB&2R9gs7%_ zJZgKNwV$<Ro~V(Ub;Gz9VaAj=&vwWewp(iU1;ntaAkqQQn(<?XYJfkw<mSz{%uS#5 z`kvlP8xMC?b#}U3J#8LQ?QQyo5bG><%XCY5QO<4vJ?8ohtX#@?7dYKFX<mv_5=6ln z3JqpBR1wtOneGwA$w&mYQ^PpM&SNlY+{CatQ)ka*yc#tDJ#K*2q#7GBwi>(MxaoV? zw9g!-nYulxW}m6O&)bjTWN3zw(7aryIh%)(f#aOoF}>tYt7lEGyYK;PbVxdXQhpnN ze<{y$z0y*jA$XmW?1xTt5Jl2dPKyswO^c1o%`lw#M%=C0ugaycV)EQ<pLwAzS#i2D z!&*<ZixVM8QMjFY<=+nMwN;I;G^@Q@%J^Bw`K2+@kun`^l+J1PRi{e)4BO&oIOpfJ zcQ*TVe14cDJ=b>5vYsUu0$|x&*BtGVI;Bd>_Bpg1zjHLUG#iZsj9f&^ywW-a5clNg zd-|K3jmhUC1FD043a&KA{0QF?a5&Py$rO?^p58TZ$_`Yj7@5zBrmDZzdOMa}Gz^;p zTHQ3pHPXjO0EF^y%*>6sy&fqZ>)-eG8^=>XYfk894rtH;XcOz|F7Kwaq`$fOR~TLu z&%wq_a{id&vasC!9hZlL;#I)QDyXOlqAUt9Cm?4QVGE#^T+Ax5nV}4oR$`#CD-NeS zy|jE;zs@a+4h|KF9BHkbI`hxnCyu?;-qPHM(L)Rku*PyKtERQ+^k;b<&kH9<E)cB% zum^H8OZfEIkK>O1^t8MH9DWW0PvElo;{k65QkdOhQ%fwsrZ8o4F=tT}9l51t*R<L_ z_XTZEj(2;Z@j^ytBsi(i?wV5QPyb!hp55<bWV%!WK=b(1#6V%uH&5yM8qIDO3)3?G zxF>Op48YEDoTF&`m^m?L_&Y&+XL(kU3*KT0l8b^PBHU7bdtPQi9A_DvVTmOdBVb2} zD<jJjR=kVDY1y22Y&p2>Lg=E1;6Oi)o;W-&%i*4w?{M#k^!0uq#-hh*EIPp1?3u)7 zFO3pRJ`s;kQ|)%)(z+?@|NV(yHUV(k>~<w*Y{8<K6kgEBpQ@#fursa5i9n?T&TJXr zHAq4_d`iiuip`dqd)Q)EODw>qh+));L2-$i+nXkpPJldV3aBpwaV-veI0WKPNBa?9 zfC$Q!imhV-9~$f-ni|nG-5DV?5EppB>BP9I%ENbFv;3EDKJiPfe9}a>>WKcdRc&6Z z+anIUPk_JBi9o3X?qV5|gGWpsK%S>zf3CaeQ;bZPYWV~$u>gApu*Lzv#-r1hmVUH1 ze{3O_l?PprKq84HXoU1EKop^Rd<eET%ji3mjqnhl#Q>WGC=O&7<_vAPX8GN7Cyeg| zpn39r3wL+#xL(bOaQ-4Yyajf6b8T>?i;xrn8dNxVH!9K>y_M(loWw|Xlf|x<Sb#kP zXyX91{+1Ibrp#BKi+Pk8ZA21eYC;Xq0}dCsoIL0rFAy07q9Gt226&3n?A*a8E}#3e zxdl1zvGJ|m7wQ@t^+z~owGEC^8yo=%cDn$9=K-QY)5E9=to)$d)3Ax>xKZcdT4IR> z*pZT4W@Bh@kn8B|eC7FVyM#9-{U1NkxcmsHsOuW2t|g)vI02AsfGmQiF1UEAE*w+1 z@80^F^_5<En_)0oxMYcbeCS{td4O2PL(CPxi-{ahal{ePBbem7>iC?T@2&USqz(-G zU6UCuEDNzE7n7V8OMFI(HBAZt%dxciXiM$^O<wtCuX^dx!C+2LC?tnNL6N8tYS*>6 zR}mxSKKrrjOUG=zA}_E>;>aL|SEw5T5SqSt!S$b1?Rp_p)63-syl@d7ica9-?3m?U zba+M4+DA)VfgPrLAtYjCV`l?cD>}!Liy5#+%&L(TO#&c=VsZPS-cZ%iP&9X6-%z>@ z&@24z{<?HeTR;&GVK|)6NE(&|-H-0R$8$9O_=EdO8&~lDpwmn27$c7DSeSLgjs@wL zJ(puoJ8G(9UKvlDI%ghzZ|i1QfVIQ|?3o$XoFFY(;+if7)tD5DYa&O$IYf~vlAv>m zEcu2it73Qs_2la24?O$Cq>lWyA2s_wEz6euu~}(X@0jVI`yV+rr5VF%Im0GqjRT+- zU@fr#``Lg6P7gUWm((QQqpjm=d^b-MlaYuYHo_i_74uXRD;r=vr?IOASW7NOqf;{c z&$N_7Dj>~ZH75htO~;Jpj!EW1X1`;szGh-&)iN|$VhQm72LO%1&>rlb!F2!t002ov JPDHLkV1gkP$2tH2 literal 0 HcmV?d00001 diff --git a/ui/js/Makefile.am b/ui/js/Makefile.am new file mode 100644 index 0000000..d0653b9 --- /dev/null +++ b/ui/js/Makefile.am @@ -0,0 +1,27 @@ +# +# Kimchi +# +# Copyright IBM, Corp. 2013 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +EXTRA_DIST = src widgets + +jsdir = $(datadir)/kimchi/ui/js + +dist_js_DATA = kimchi.min.js $(filter-out kimchi.min.js, $(wildcard *.js)) + +kimchi.min.js: widgets/*.js src/*.js + cat $(sort $^) > $@ + +CLEANFILES = kimchi.min.js diff --git a/ui/libs/Makefile.am b/ui/libs/Makefile.am new file mode 100644 index 0000000..a2acce2 --- /dev/null +++ b/ui/libs/Makefile.am @@ -0,0 +1,22 @@ +# +# Kimchi +# +# Copyright IBM, Corp. 2013 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +SUBDIRS = themes + +jsdir = $(datadir)/kimchi/ui/libs + +dist_js_DATA = $(wildcard *.js) $(NULL) diff --git a/ui/libs/themes/Makefile.am b/ui/libs/themes/Makefile.am new file mode 100644 index 0000000..1ce56d9 --- /dev/null +++ b/ui/libs/themes/Makefile.am @@ -0,0 +1,18 @@ +# +# Kimchi +# +# Copyright IBM, Corp. 2013 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +SUBDIRS = base diff --git a/ui/libs/themes/base/Makefile.am b/ui/libs/themes/base/Makefile.am new file mode 100644 index 0000000..d7454f0 --- /dev/null +++ b/ui/libs/themes/base/Makefile.am @@ -0,0 +1,22 @@ +# +# Kimchi +# +# Copyright IBM, Corp. 2013 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +SUBDIRS = images + +basedir = $(datadir)/kimchi/ui/libs/themes/base + +dist_base_DATA = $(wildcard *.css) $(NULL) diff --git a/ui/libs/themes/base/images/Makefile.am b/ui/libs/themes/base/images/Makefile.am new file mode 100644 index 0000000..312cbeb --- /dev/null +++ b/ui/libs/themes/base/images/Makefile.am @@ -0,0 +1,20 @@ +# +# Kimchi +# +# Copyright IBM, Corp. 2013 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +imagesdir = $(datadir)/kimchi/ui/libs/themes/base/images + +dist_images_DATA = *.png *.gif diff --git a/ui/libs/themes/base/images/animated-overlay.gif b/ui/libs/themes/base/images/animated-overlay.gif new file mode 100644 index 0000000000000000000000000000000000000000..d441f75ebfbdf26a265dfccd670120d25c0a341c GIT binary patch literal 1738 zcmZ|OX;ji_6b5ixNYt8>l?gOuO)6lU%W(mxn(`>1S(XO;u`D+P%xqBvMr|w-Vyr1s z7R|Cn0b8|Hu<=Zmv1mFqh9Fj!NuZfKB2MP$e75`XJ@>=!y!Ux9xR3x;EW!q1^V>X| znVFuRUN`NqJ2)ybXh%e__h!!pv(M|S3+?9F%(K}zyE40MGyhWF5-IDgL&=%2-9`Nk z!1@8uk4t%_{(K~>N;sK&dzJbwJ=$kYTlL=$%#0Pfh>U{%i@~wWbvYsD_K-D`&+u1( z#Ma`>%q<^UhzGvi(hyE`zCD{-=2|zL5>wnB=DE!U?(CZG%q4@lDnCq_%&3DCla#(X zmBhDD+RN$aMWW<LG>Hm?ig*>1Onn6~r?Ma~N2JKAxN>H%UtRyRqS)6Um!-Tz%-r=& zQmTb^JFIe3W^-kAm`}`2P|niMh>RYyd)S^f(dbrx965?rzbhP|XeP}o&&DSZ4|oYQ z)I{f!SfycYw?3=9W;o-B%U5xs(pP2<N?HNN?5r^w!C<6B0+$OZ0Lmi7VVNp{U6ULN z&`2011x^d_<<;pU=7bh5z5r=X5zRs?Ha`0$bzswBRl4iSZ6;h<*<;oghlWbOCRBFx z!*@3{Y^Rt#Bcopml+DYmX?|rp;x*{TmDSLJ2Kw3E+vE2WGt0^K?tY9G_D#d(D$%`x zx^suJUAP!N-%@KUb8<$+2?`{}i2x2!32~D!{BcCE8i!&?p)jjdhrprx0FOE%KyNC7 z%`N4#Q?EDYbae+-hLf})VDMh%d&PNY6St)35+YjuY3%7gs5aCiJ%6yl%=S7Qq4mx! zs9INrWp7K}+c!pd9s_Mj7+0OlEsOWQQDg9kqz*ATj(-{K7;mC$K2@Lm8uPYh%z(!b zOc_ahiB>67X~9-7L|4WzaYexC0GtG8wWygm63rF{llCEraxzkc=IxvFQ-y37=_;e5 zJLq^gsSO0Ayz?a>E_?{dmUc+t#qv$)XN8$<<}rQ#)lsiw+pmL&J>~+hgpo>i$m+;l zZIa_ZRIfSeT$~v5d`EBV&*k`apPgjv&B|+d`Q!nyu{L4rs%ZfoF0*Kq8I%ByOcFpL zK=>wzofZo<+0GZLCnWM3oQ^pb(gRSf02;~cEn@LJ>~XB9IkEX{$N#Z`m%>S!U{uPx zloI%bL<aeq2)}`KK0NtV`r<t!xAhK#BUHA}fq@3^@q%S>do$Adxlh(Uv^yX7s5G&C zLwNRG>~T?G{kzupp8EcyLGPoPf)@&9Wqfw_l&uU-6cexk%5;uQg%wb=0k_733{i#& z1a2p)gV3S2+QG1-K9tZ}E~I<(P0r2aFFY-c{o?TUOz3Xjod#TLE2A_c?<dUZ>*T7t z=1>~%YW450{Qqno4t`}gvLnuMrcu8+#xEBoY%2_+Mb#Z6S38+r*M4O`-+!zl(@m`D zQsi|GA2l3gEy}LFe<#Hv8?$_L#u8<V7`aa3T8^L6Vj|k2ka8@OD&okc9Vj8VZd}3D zN`y$ga-~$?N3tvS_;>E|3-bP$*L<a`J7_kkzCfxbYxPi$2y(;d$KO=^^s~9Cko7UY zew07>a*E>B{X!Sy4i6?TKam!49aXCAW4S*P_O^H4^*DpiA40o}Uqw~Eo&veh1`|8i zD2$x+>_b^bXE4N;AW=5>iYak2%!JAh0j1*k1{p#iRCjbB7!cSws~U{1IA@acLII$t z$>X#A+^s6iJ5~DFG!xa?>z{=lxtdi1rzbM-(nqAu3D8h-&64xo6|E!p?pK0xT;qoK z`6%+SpBk+~M?nO}>2mTw!A{yZ6O>Z@kwSd4;8aWU5z!P~tQl?u==^+R`{OmOS}oZh zOXQ3{6kuz?Is^n^L7;9ieB9C+8B{>t+pDrlq4xGDDn#T#3T5$l1g`FTQkU;b-981j zNm{zC`$wn7etklM#qHI4=3m5gwa6DNS{?Z!vSObi_od{4eUo=_S2B<nEUw3!MOp9Z z2S<At@^Y;@>KNpkSdiqe(k9WtkeM79;2-%CFbb)aB=&H1?i1}uwFzoZQ(38Kn1zBP ORn*B%u*Wk|4g3!*Rv{Mv literal 0 HcmV?d00001 diff --git a/ui/libs/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png b/ui/libs/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png new file mode 100644 index 0000000000000000000000000000000000000000..5b5dab2ab7b1c50dea9cfe73dc5a269a92d2d4b4 GIT binary patch literal 180 zcmeAS@N?(olHy`uVBq!ia0vp^8bF-F!3HG1q!d*FscKIb$B>N1x91EQ4=4yQ7#`R^ z$vje}<irI&an_s0pV!D+$FtuP31JO&3=I&aE+u|=5A)Hv$*VMh&S3C#^>bP0l+XkK DSH>_4 literal 0 HcmV?d00001 diff --git a/ui/libs/themes/base/images/ui-bg_flat_75_ffffff_40x100.png b/ui/libs/themes/base/images/ui-bg_flat_75_ffffff_40x100.png new file mode 100644 index 0000000000000000000000000000000000000000..ac8b229af950c29356abf64a6c4aa894575445f0 GIT binary patch literal 178 zcmeAS@N?(olHy`uVBq!ia0vp^8bF-F!3HG1q!d*FsY*{5$B>N1x91EQ4=4yQYz+E8 zPo9&<{J;c_6SHRil>2s{Zw^OT)6@jj2u|u!(plXsM>LJD`vD!n;OXk;vd$@?2>^GI BH@yG= literal 0 HcmV?d00001 diff --git a/ui/libs/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png b/ui/libs/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png new file mode 100644 index 0000000000000000000000000000000000000000..ad3d6346e00f246102f72f2e026ed0491988b394 GIT binary patch literal 120 zcmeAS@N?(olHy`uVBq!ia0vp^j6gJjgAK^akKnour0hLi978O6-<~(*I$*%ybaDOn z{W;e!B}_MSUQoPXhYd^Y6RUoS1yepnPx`2Kz)7OXQG!!=-jY=F+d2OOy?#DnJ32>z UEim$g7SJdLPgg&ebxsLQ09~*s;{X5v literal 0 HcmV?d00001 diff --git a/ui/libs/themes/base/images/ui-bg_glass_65_ffffff_1x400.png b/ui/libs/themes/base/images/ui-bg_glass_65_ffffff_1x400.png new file mode 100644 index 0000000000000000000000000000000000000000..42ccba269b6e91bef12ad0fa18be651b5ef0ee68 GIT binary patch literal 105 zcmeAS@N?(olHy`uVBq!ia0vp^j6gJjgAK^akKnouqzpV=978O6-=0?FV^9z|eBtf= z|7WztIJ;WT>{+tN>ySr~=F{k$>;_x^_y?afmf9pRKH0)6?eSP?3s5hEr>mdKI;Vst E0O<Z9>;M1& literal 0 HcmV?d00001 diff --git a/ui/libs/themes/base/images/ui-bg_glass_75_dadada_1x400.png b/ui/libs/themes/base/images/ui-bg_glass_75_dadada_1x400.png new file mode 100644 index 0000000000000000000000000000000000000000..5a46b47cb16631068aee9e0bd61269fc4e95e5cd GIT binary patch literal 111 zcmeAS@N?(olHy`uVBq!ia0vp^j6gJjgAK^akKnouq|7{B978O6lPf+wIa#m9#>Unb zm^4K~wN3Zq+uP<E-4iDYHYX${Ii)G?xY5!0{fvg8SC7yQ4u<2&oOc%dd<Zm-fx*+& K&t;ucLK6Ud-y?JY literal 0 HcmV?d00001 diff --git a/ui/libs/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png b/ui/libs/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png new file mode 100644 index 0000000000000000000000000000000000000000..86c2baa655eac8539db34f8d9adb69ec1226201c GIT binary patch literal 110 zcmeAS@N?(olHy`uVBq!ia0vp^j6gJjgAK^akKnouq)a_s978O6-<~$)Vo(rZKDhVK z|J9WTLT^QIG;Q^ml{ow8HvtEZhta#LLqp$|vO7%bGjI7IBizcw`SFI!bT^;@44$rj JF6*2UngEbSBdP!Z literal 0 HcmV?d00001 diff --git a/ui/libs/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png b/ui/libs/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png new file mode 100644 index 0000000000000000000000000000000000000000..4443fdc1a156babad4336f004eaf5ca5dfa0f9ab GIT binary patch literal 119 zcmeAS@N?(olHy`uVBq!ia0vp^j6gJjgAK^akKnour0hIh978O6-<~(*YA|4MzBvER z|7}eQtdCVXoUc2b{PaWeaIKu7gJx>{vDV26o)#~38k_!`W=^oo1w6ixmPC4R1b Tyd6G3lNdZ*{an^LB{Ts5`idse literal 0 HcmV?d00001 diff --git a/ui/libs/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/ui/libs/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png new file mode 100644 index 0000000000000000000000000000000000000000..7c9fa6c6edcfcdd3e5b77e6f547b719e6fc66e30 GIT binary patch literal 101 zcmeAS@N?(olHy`uVBq!ia0vp^j6j^i!3HGVb)pi0l#Zv1V~E7m<ccpZF4n8Dv9Yx& zy8QY7U*2m$;l+;n|NjK_PainIAnKgVYt6(keT9{lbLSy{pgsmqS3j3^P6<r_2PGZu literal 0 HcmV?d00001 diff --git a/ui/libs/themes/base/images/ui-icons_222222_256x240.png b/ui/libs/themes/base/images/ui-icons_222222_256x240.png new file mode 100644 index 0000000000000000000000000000000000000000..ee039dc096a38a3753f92519546eee94bcfbeffa GIT binary patch literal 4369 zcmd^?`8yPD_s3^phOrG}UnfiUEn8(9QW1?MNkxXVDEpFin2{xWrLx5kBC;k~Gm<qS zlCjL7i8RK}U~Jz$pXdAh70>I3`<(O3xvulR&VAkQJHZBho(m=l0{{SA7UpJl008iB z3Rq<W|2;_-7k2-KB^xXIv(o=dIA`;2{2d$}XotQ85Qd*%VY6v_n58Cd?~A&P5#{^J zi8K&2HNPNv?YM@WO00G~zT;l+VE0Kg@z%zO^7q9lZz|p?91vtzU=UDRq1*F<D$nWM zb4K2gPww6wHa`FWcw#NgOzcBmE;*;TP1f^5dd<t`VxFpod(f|0p1!m3)bswBcSW}9 zn~^|^u`SAx9|XtZXN*Lit(BeJakn%A$u1j7w(A3)J@4!3A%XdA=+|O%Ujaw~kRJ|J zxVy*rGl7>vn`1P1SiomLXkg776;)RSXXXV1Iqu_@e2%8dEPZ*NvG6-d*$oWlBXKKg zV({l@ll0gM+F;pm#SBg*2mQ!Rn_HBhT&5w_d`jyG6+_vuxMHXoKj|Yh2EGJ-B`N+E z$pmy>sA-*C0S`BfHv`&Y>Z626r<TK!&z}5CO?ShZxo@{0{0i#xy7UQo2ym5!Fo}@j zfrCw%3)hQf^KnR&{miIGlliFnuUWV8;!{lB^kW54j#P6$jM>?uZY8?`zzbXj7u1}` z;TS<~e1eY(jD4j)wElgyeR*V7`qdhf3S5Vcdq_R*a&F^r|9|M*i>!yeL)xMH?-6M_ zJjl&7(M|RQJ2z;fI7;E!$?Pfq$usWpjLxzlazT~K6v`ft@@P32;&o$5@b}Yj#d~r) z9^2%vhdyIgOXOGiCNOR_sjx3j8*01pUqQBn7r}I@E53HUy&DusRETO9wG~Rdfx=Ta zwD>0smtXx6l#X>f`lTc3c!pmLbwTP$Zfe7s__87<&i+s33P`Udim99RAA$T_Y7T3^ z>vV9wL8<t&cNX-%DKpzBSFE-NuSMipzl`Na&B3hEs=T9FeFwelEG65;Pk%l>Sc0x! z_eRl4cEFZ`EXPfL3omdIIY|MS@P4-79I_Af%(!ONP=msk&*mFs^(0gOj->4HEJ}Ca zL(HZSEXEQH#fbJDfQ^RQnvtlx$kD>NeLhPB+yUp!E5O$&?fP1}JdI;l4(=H(hEfAQ zNRU;>uU@{f`2)^*UI^NA8VHra<YMxlB5^^{Z|wsu-|&i4B4@-qlRB>DlXrE*?OWOs z<bK?zZ-o#m32D7O|3JDwMR#_BDA8@liIO>7D#P(ftiy|@ab?=t923@#mR}=S6GNj1 z?mTR4hby}vE*2>Wg7-X!KAz3vwvJ)qVMtB~**$wrQ^&0>;8UR6E7imZV-)iH?Tt~> zX-EGVhMYWVxX}dU)MQaN+jv0*8;3JBy*az#1aW|^_4%i?mlU$yRTy>-wCJJVC==P> zEx=B7cZ&E7jJ@{Z{CG+0A-lAG;ovs3FALs8|JLq?o#M-to~~wx^JI)GhP%l=X?-mS zEbfx}Nj)D74<>(1{)gt2^%v7UAlLYp6gO$gsv=`$#2)3F9ed8@mcK6i!h@mGQqU}e zyItCAfl~4IqG~(AU2lV?`)nu#S5+1BrCJv>QmoI?LyuLj8e^o>li?U6OMey{r_T(* zY8RG<@x>cK$(nNMlhy)E`{;|c6$@%L*hZEYs{mUmt$8-u8m?YV3{83m{YAwB%6Y{L z6k9V^jd0tnd%q4<e+J_*8ELc(*M~dsj1Ivz<$zFGD()AsFHj<WCqr=x{njn&++Vs5 zOmF>+xwp&Yfr#>WqoooH9K5xYM|V_s8{16~N?TcuYd@6+y1_aS;c{q^(Kyv6DZcFd zd@RkCqyC{5yX5E=oHd-`WBQ0I>9_&^<}<7793`JA=$mRuSrr}iQyzxG9T)%=Xp2g4 zkFI*p1^XIjQQE0yQNGyZNn{h@1;N1>r@)!(21u5LGg2Ob1==Thh`ZXost~Y05y+XE zrc7k%zx|Fxe^LX9HhqjcV~P|W`3AXYj%WAaFNz@uZ-xRmf!NHrNh4zKSO1WrwFL6P zXM}G=*p9v_k=mUmpg-$Y6I7Mt4@y2D+ys?c;_C@aVeP<th?Ll781adwMBMpE@%-Au zX<kffS{y06V;4-boaseGu=hVRVr8~Y7SvW*%MwXPtMrXX5Uk$BM=`MwRIK3}76xm@ z0>nKabqAS%y%AoFzKI#JaeQxo%Il=}>GqqqxhG8cPyu>P?R=}Ol7vhvDcW{Z8i0Zn zzm^YCS5qT4m#*SycTaxzIpnMMHwFrEO>lJzqr0i6lGn6M7x;$7B7Iy)6renY$OiZc zMEFF-;Ff)@RWrYEodz{P?avD?^RtUsN$GEP>xrgxlbtd22`L1q+Vm;zyBzLIj#2fp zQZS2sUF)*%MR5S(jid&TIT<2`Js!yUdi}%lzzxkuKjf|bHvGZz#1l5<Ukl1!3o3sO z6IThexFRnfaZB9$`{BQ9ZrJ_q&f2<NzZW9&I(ohS(r)0kWq1yAIKiuyJV#1*$P3)l zE$E#cuC<H8Fu#A>%O0plla6C28K&%)=R}0F6xRI>HvM|=4x#=-to|lSN^N9P6&xIP z2dq0{CX-Xc&YJNeXXD#dn;c9feR-*P_CfUEp8(wN{z!yEZrI*MPs**fh@b|xe*S&i zHc8i5C2XFuJ)xhg7K~%2H`zsX?JhZT+>};UB5<M~du|fYd;BbSZ?>Ha<c>E$E9<Lb z7f8vDf#c6*am5|^H(vhj^&mAaMQLd|k|=+c=rU8q)cFLV4Qr<RtrrAPfl35B)=3P- zdf+J|?-cJASSCb!R9yQLUaaQSf=vDrYs=fg!|9o<E9R4Far9xy)#uD>2V@>aXAPbP zjHGY7LH_&c+;-7yblDf5tKrky!+N>Vx>?<g;7lXpWXAEC&RwB+ra*mL%6Cnm9LZK* zK8kgkHfH?NbE0Fc;kokhLjUlCdkyF(h?&~vN}l|A?R`bgi7y?PQZ(>)QZi1hm1A<c z;!!>ea(92RyRiFczw&w7)GT*KddVhT(T~0Egdo9qyLRosyG6?!=QbqPzk^x9!b!;O zjEYZ(YM2+oYg-TrJTt9??(26|bMF?cgl&%SzC;-tOToW%SoAmvaoExO%bz%?xjk zc(|{^J<~z4;>Loltn&Q#cD-zLlA0oFa(P1*5{sdl$v0#75<`$?CT{uv?urEF5%l#% z1*lLBO|PYH2z}OUCDP!56T6(s<{oG|TOAmiP3Z95>EKzFu=~wRiHd}%-yn`p^?J6( zih27|xpMpU0(-^Ma=J7`xm^&DhSqXkjnQt=LQjM?m_ss!!0cIcfgCXk7TijCGz5At zUKx0OZ(Pc2owm3zR5RS0N)Y#iMfl$WQCVB&sa%OY<#3FtYF&H{`S5{&n#aQKe2Se9 zB?KD>qbcT%&$2w0lfgg>hoa-{bj}D!0GrB0(o9%dP6Pxsw8y%(rU7O|*#fSHYBm2h zyytq$C(2?`j}W=ORiP$Y;41*}G=Y$(2OhqHVfd_b2NmhSboLunMtOr5!~U=jF_g7g zx<r2WnmW3xrFL8lJN)wC>!U^R$M++HtM%nJWA0HW6A->{j|_B;D@i9waP$)>{6HyW zi?%Q-uGS3xs5_COdmgZjld7Pfo4dBxil@eQDw4^F*Vcb}d)bfW?|OD#N(nd^;T^jB zZea;L9}obXL9cH4o}9qQv(@ovFw_meU5D94g#m>tZ>F(pY-+sVc~p1lWWYncfsZBD zlLUulh#8ZKbJZaXx~7T%9*9kCI?ptUWNtB6zk6wB?Esa@U>adq3-GJsAap@@buxd8 zEh*0kH65g*0pwfcCE82`98Gls@jB5(U`@lWMLxq4sPDlmq!Rv<r32)-$Z+{objm0d zN2czOn{UdZr9>*Vp(zSX$437XGBPqZRXNva3-1V4LK`FF19js@6mZK*48gf-Z-ZNB zLM=}?fKd18YCyN<3I%#wqeFjR9^PLn0C|nbyn1-&Ph!re@O0EEp`97_ouN^T>luaA zQbRd68s2B-M1Q}bL`59M`{jC(<_`P4m+_LOgr`2Gt(Rm4y+wDaGcvik0$;t-0c3C{ zKhx0TB~7CpakFn?r9>!&+;ccIO!hd{$-sX1k+O=VmV@?^gOz?c=kZ*8x}L)H)dP zYzhfqNU`(IVUtd)A!)GN@5UL@&OX&+@<Dt<zsld|1}5GQCqB?OSp<ANqxB;$I1d+G zY8NHtBC}oN*vtdxq$q@xY!4@?`^nWK_!f4rh&6DO9(J<jboYx*-Su7ieBZ@_0d!2< z?Ur{d>1C?lb`+!>)>=w1JnE$X>Lw#Yjk7&t)#5>X#Cjs|&jQ!X46aWn?QOjkKm*1G ztbhAifM)AKF=tIbp&vSIPqX&9FQ`BEN|??$UXR)85VQkj*P`!)ht-9)fQ|t&EI}c) zY_Dp0Km2C(q8potDF7er6kZ;VOs*dAVznYFU=Tj)$Gq2%pheYQJdTMt)xV?d0aA0f zf!9BB;E?X!!FWTWHx>8q_1{a`32+aVn2QqF4@>>wO;ea#m&96EhNkjIR(#vwq%yr` zfH0w))fHpM%M^W;nW$_)tb@EVVvhrYi*g_wUlF^|U`HFf<~&<cAyjg@uy}AR><mO6 zd@!Oq9fxSjBln=@@S$7`?Uss(ppA?}&Xf|2!(=)%7!G8Ve@m3vJ_xfx*=BN~jZUZ^ z9fZGj@=;7>JOeBOMX&56=R~^VwL+|j!Ca?>Tx==&$#g^C#2+mS?tyG29g?7BC;5|* zhNhNJ<VY>?*-LgdlM)3Jx?L+<yP;9agzUk8T&$zm{x0rWzmRQ(Qq=^d$shJ_nepwv z<(;8fPmwJ3BB#qY-nRzL$?j|brS^d@BfQ)?79G4_3{R{F=W;qZw9ZLI?8Z|V0%l*n zCZZkCbMx@S(0E~@9w3*_{c2)-X7Rp({>w7;FK4mFXC;;XzQ429NM`AD<X+0cox_*v zr`jNulDe6F^R(96u$!@FSUJwbu{$iXTeiy|&gbbdd{S|WOztKCuwd{q=Y@Ky)yJ98 zOdqi<u!=Q`$)_>>QNUJVX`T3s9}m~hbK7csE0P(!l|C~FWjU=g#?C}12ip<n4$(R! zi*-h*yyX`OV{C0B<n*Zouj#HIttpjCB{fT^+ho+e%coMj;%gV<hRgdz{sV6vz9XeK zoQH7)9$A-=1^i?oWn^F(OYY}zKaVzj+rCA}9W!%32XFXbly$Jzj6Ki5g-=7LwwqD^ zxY56U^tJ6&o;k7+##c5f)Fenh0xxO7o(~1FgLZa5US#-u0yngN=!>KQAA~kz3%msO zg2N0*dRqd|SG=WcPVM-2UAcd>w1y8d%zsl=9Z^nq83TK_9xPH=!{}}AuqY7aaFPnP l;BjQ_^4`vQQuBMqxOYB4T*@HG=I>V@U~v|0R%wcf{y%IJ0Z9M= literal 0 HcmV?d00001 diff --git a/ui/libs/themes/base/images/ui-icons_2e83ff_256x240.png b/ui/libs/themes/base/images/ui-icons_2e83ff_256x240.png new file mode 100644 index 0000000000000000000000000000000000000000..45e8928e5284adacea3f9ec07b9b50667d2ac65f GIT binary patch literal 4369 zcmd^?`8O2)_s3^phOrG}UnfiUEn8(9QW1?MNkxXVDEpFin2{xWrLx5kBC;k~Gm<qS zlCjL7i8RK}U~J#s@6Y%1S9~7lb?$xLU+y{go_o*h`AV=spXY*!!T<mOmxZ~R9RL9Q zdj+hrf&W^P#f9C!Zpp^V{;b-=qyL>Fhwsn)TR1w<4t)tA3_robX4CdCOHJC|7j+vW z%J-EMX&`87enIluaSc0_SnYUx$GzUc?vrNXt&I`o?~7C3RJ>C-Ajq!3AfU8Dx90^_ zp3}MKjJzYC+`T(&egFXQ#9Ek{*oVAaa!zrZtmlRFnwQPRJXH<%pkK2*eP`pT=lwD7 zifq+4BY_rUTa+U|2#&?i7>PVvD?7R4ZfOLPT{e<z*9Sa%-q+JZ0`uF@uf^uR0+0eA zKOCxXcaQOB0xyL&$7t}dfX{x=z?wHIs;&yo%nJr`+{Z2X98Hy3`tm$u;dhd<8yL(- z;#Sne;Lpz{>9G~G!Ls3s8JtQE`jMM9w<tfkOhc;ql-3a{hO%LC#ZWVT(nn|vd<pzY zQv5BF3Fy2~(>l2V9&Q+K2DHW0M+uQmEr%nYJ^7cK?uIpU-)=wn71ZZ-=@ar0;3^AY z5+TI{2b(e%t{2PZ<B%x(nNg1>^HKF*vu@+Xr<l6w#|okxspftdv$I9rN_GQ)7q|*8 zs5y_rF@oIq1RoU``$~Uk{rhVB^2n_8t2HJSxDFflkb2zZ+{WSl|IoP?Sr2=Mv_tpb zBhqwukeg|uo9qd8ZqP<?l)|%<*;D+JXWZi%on=Ghf-03Mlsz8h(Q+`v>&BAc@2BC4 z_vCgww#i=)ea5Vo$glEEVBBg_VPBj!)OO>)f@}#dg6ULOeC>LBHz<;*5Y;YfE0lNx zg{N+4@lO~ozxpF69qV@VOGnc248Iuag4C1T)P^(hWkpP!{h!JekX}m^Q#b2B4f1oT zIjsGz)4}-$rQ*-tS<w5Y%xt4vvDzNI7LjNDGL|1T2eU@2@{VTp9rUuZlx!D2{rUJ{ z3A%pW8$~DC0b2^P95?wbyueB1Bn4o?``LnX$Uf9F<C;}N4GLdAn{SZSlT7_PlCs0I zDBXb%F`GiL7)vk|BieTWHX3ScMxyQ_M+@in`79A|2b?#r0AHuH>uc%qG>%<4xM#E& zN)7lRK~^2VdiloY4>;#}A!yHOAXEmEi^+eA#05pawGXs>!z)gSoDuI#>bRCq-qjJe zZ)r=A`*EMX6+)~er1kdv1L^)0-PsAEM7JF$O6G8>496$24lkO<m1%2pOjtWwevM#F z42>SR^RTfUuIz%iSfn5b-t!##cs7sQI);gdAvqmn_v|%I9k;fCPl0Z)R1+hNQONJN zH%3jT9sOq*a`LF*MiY=zlSSQZ;{_FL9M07A=In+O!~wR}=bzGEQpk2!Vc0p)qKAH? zOk{(%06W#)DdICQ_S%Q@<0Y+!?9%#$gWJ%)EO-<BTe}-}iZ54sx|$u%lQFIs?k4-B z^|c_dxJ&9M^?WcqnEWyMADUCvUrhIaT;pF-+@vY1ij0*Jdz5c>>^YZP{<`oB4~9xh zL9-0*c4@B#O2ylYs_g`Ky$zb~v!M`NRaMNFYF*Gsu|7)=JyyMHjFC=HhGUE@{aI|B zJ~ITXU052%7jFb5Ys#fhS_?4kqc7H0EU49B8(Chg0&JzU=Gka#xOz1)H0d4m7ZnRA z=M^tdY|U6T!fmte{W?_r8H~qdq|q{5AMU_2It1I4143n~xL?4&K#BOB48<w*Teqll zf9X0fz4bHZ-Y$~|BFf{9mP#ye@YYTq-BICfY&StDZDl#G{Ztz02J1kC%b`U^<5ZiZ z__Fi!u{2kX`iENVlA~L2)^LW8=_9VB;|BbjbO<lzgV3Z>l9_Rdm!(c^C?JU;tF0 zEh@o1y6Qa_>}#AwX{VY+`C^kNkxhgb1P5cB0%xupAXyg9NO=SnXrJUE?rQg{Lcsn+ zAZKctGLfbK_B#^&Nev|0^fB&?DN=ak8|0!np524LD25=s84BP8Vl(3=jflNp{X>e@ z637Ri5xx;&JNl+XYImA|{;XR~P*svYDEWYJ6I5!6uO~2twFC1ZQevB7#3z~(apxn& z^J@>Mc`>PJair{yT`<jZrWX;x-v7*qmDxI3P+Mg!OC%kw(l;VOuzC|8#l%8Tv4(G0 z7_1cw5ch!89b^LbMtCv$CT7IO@xA>iuan-V+i%|Ho-pA<1?V-k^R2Q<5;Co%XxmL` z018t4T0TTwO^w)Gx{9OSJ^9_|kgwX`7%0Rw!PO~@?xvnfUehvN;2Rc;^l>3kfbtk3 z8{j7p;S&{uTlTe9&HTc38q@%_KQFk<&n{vmrN7y&Cz{etcE->rq!6HL)2F!aa=0%! zM%Bwo!7TQ5t;@a_#Q}sjk{UebWQZ8{cp&HN^$*JfH#8spkhk{R@CVBiPuP@yEhu{} zsQfuhTqV%rioATpEphMfhyRYbVfVW`YwLFXUWm-===J(byMf!5;W^CV1g~2194Xx) zFK|z{pm%n-)-DRe{Qhk(d!QaoI*y%Wn6h7<6A{i*Sob&B^y|Spg!&J$`kN>zwUJ3x zaB$ciu<nSNOim3uYsQP5jc-?Naxj(j<)z};2hoFn0&u_kBM}O@VS5)nDYx1pf*RQR z`S)$xBwb^buzAY%gnq7CFpintWEa)7yX44mQ(9Sxz=?kBxk*6p@w42$*>*0FJKg}T ztgnh)ASF8njz5>h6?f#{c=<QigVeYbrKRaeqWoE+%S;th=M#iBteNh&UJyV9DiQ2h zCovT3fv1eTQ@mSXnGo$!aqUldv6@p0GWkoaEpG=8r)RRRm`|p~(T62hpEIu=ka-lH zHFz2@lD_Q*`R}K5+eNd{WnX-*hEHn`>*Yr4W_34$GmVIo8OLWjcZK4a0`+Yv-!*}9 zBwKm;DAsA(nDI-`iH@;`=gP+m{lgFLHK3m$W@?)&dGhDA_Z2xOzI0$p(ZJtH$vCxE zj>+kYNBJzs-TlSx!tSH}%I9fQv)mc!C7X0bKlZv4f&}C3+O-4k7A<p}+mKlQ4rT=l zCn2{pDn1>mVO|KYZ9ydP%(N1^uisV8y;~p`x4qFXD?!_OyN9=w(O<V*&M}1I>d6W; zGrT?G;l2v@Ob5k^8w<9w%Jbjb^|H}PYKo}I<qcU#EQV?(-;CW$3_+TixaI#lD-xJT z(AO6gph7h?y_UKm^jWi&NP`DX>~bobd!XrTbzp2Zp~H8lgJ)I3?l&(bDiWf8gE&6b z>)9GB=Iu-6%I((+>=jGP>CzD8c0oWITFZGgM!Q7|JrUYq4#^Y(vuDu-a>OWDa4Y4} z5a_*lW#IL_aVf8L+Ty}c&2VojLEIA-;eQK6Wo?<KawYbZ!!f3+b@4Ui!v_Lt9t*qk zDRw@T5NsTbrkFQA%ko%G1_Lb|ijKF_IU^teY$_8;Ght~t5fIeS9_!kg2AC0L3%DAp z)%@G=p6e~2D2qisLge~Zg_>xAuK>i;1VWx3c=!s2;j_*iRHOsb*>6-C<qcj8`@=rO zP}XMY68YV0>gcYP+Ho=L@XLd*j~2ln-;WHg)|cCixksH$K={5rGSD@yB%LI|(NCc8 z1Er8H+QO)~S~K{g?nH|2dB8SKs)BxQ?%G}}o*LV!NG2m*TmR|pWj~g`>)ClJCE#F$ zcj)fBg(dKOKmc$Cy}IRlasngIR>z~kP&WW~9cC951{AKmnZ~ZMsqup6QQf7J0T1;C zK9*Qd5*(HxW=tl|RfjO>nkoW#AU3t>JkuzWxy4-l?xmTv15_r1X@p@dz^{&j&;{Mq z$^0$0q&y?kbdZh)kZ+NfXfqLTG}Q^j>qHlUH4VEK`3y^-z6Y<6O88Hf4v^;}!{t-a zDWg;znYu%6zA1~A5~<XNrYJBS8~snn$jIDO<y@mJydzi%ZH$Z$)QuZaz%45=1m~)~ z4Q`zYwLIYfLfxmU0o|G_6zFY@4*h+3cz>w?<TWDm>fxO~i8-Ib(^02{c4pXjhDI^2 zXB1LP4dvWuc%PXQ{r!d#6>${rm+M8EJM8yf#!H$Kp8AxwUXm5`7Tu-J$mHe<eDz8P zkinV!Ohb>CG>vw|&Ay415}_1w&*9K8+2d3v1N+@a$|820o4u60Tj@u&kI!~q2V9X; z>tMvQDI|O$#m+m2O**ZHq`_{#8)ry6`&5s~2k{O4Du16Fn0P;&_(0!e5%Bel){nU0 zJX~<8U6hoI%yx}qGY_1Tq7YKDJ)ETOCs&W)TiCrK*1%DE*vXdD-7hwE*LUgjeHRM` z&@pkhTi>m#Kc+QIK+2Ybn9-sFVKNHyIgfob4H_77yYh))Rq$7Pw|+aD6&yZ|ki9 z8Zb6s{oBt1G+PgfIcxd}{m@~1nzhe;LH)5;!gS8@ddyabpdBc?7JVl?tS+<#bPSMT z2@0uYdsWN(;Ww)n-PlA-0r+62@bYkEa`k{0s})fJgYZ#5=DmIdEvok7aZJRi{w-|} zkea&<y#A2`hji}_#v2m7skndFe=lVxz&%)EE=piOEcJ&sO<`_b5^G%<n#vzp@oj^X z%JiB6!h~{GSBxDmQ}k74qOt+84)V%~Jq`#i%7JivMeIU@9c}EI^K40lP|4}S;=!@7 zGZ1<3!HDW~9HJ?Y+=H6KhjKBrTPh}kHZl%5Q%W!nlj+c4IFM2PEm3CsAj}43o5_VX zI-!1a5dPZ9M=_Q046q0ky|R;>6X}ZA3b7&vbDb7)v8CuI(+zzSf3z&P2eOrPNP?D~ z<WE8xnp!@QBele5FWK2lN)$}!cCBpfhDIq9vIqZBv5sQ<ySQilLber3RTGpZf7ria z#<%~5cZOy?MY7b3oG#yZ-x@S0yR!k5+6TUj@N(-|bnt#LJh2{}%jx9MIwuve8&6>f zn0@)0h;~5F&BG5v<AsTOfLuEFtBLWM#rp>OFU!=woW&ZSl~nrs{?1w>nWfW_dnpTd z4qvLDYJ*ft>Sp%M(^_xCZpNBn<v0_^?y$&i*)D%LpQp$0NyRBLxtjpMg2Bt27wV-} zA7?@{eZ;cBD%L0_pT_h@0b7Nob>c66JX}A|ZL9IENM`U>`ph7d<+RQiI}@E8Y)70s zMC*_&))}GlmR}@{v9*nm)29-=rn`Q$rc^4G)GVQHlTr6BpGxtHuU(8AF7Ffh54?5w zj+EYT9>x)PWL-iQ@RNm<k%46_xu3)RJlgba`xYU0%*_29yy1gU*1=vg_B;a@J`J7P zZbtp1M*r&3*S1r6=Ez1EU)iWolOX*FyrcztJ`}_b+S&bhk>T?R+|c@=FOmj)5Za6_ z@DkVy4l^L>Z3#SI@s_eVwd3D)<^Ivq8a~J{|4mhOL^<7M4D8){ut;GIqqn`oqCk|x pNh;Wa$C0(mdpqYz&F>xK-uVD=DT5%Jzh8ZT#aXmjr70%*{{S|9XD$E$ literal 0 HcmV?d00001 diff --git a/ui/libs/themes/base/images/ui-icons_454545_256x240.png b/ui/libs/themes/base/images/ui-icons_454545_256x240.png new file mode 100644 index 0000000000000000000000000000000000000000..7ec70d11bfb2f77374dfd00ef61ba0c3647b5a0c GIT binary patch literal 4369 zcmd^?`8yPD_s3^phOrG}UnfiUEn8(9QW1?MNkxXVDEpFin2{xWrLx5kBC;k~Gm<qS zlCjL7i8RK}U~Jz$pXdAh70>I3`<(O3xvulR&VAkQJHZBho(m=l0{{SA7UpJl008iB z3Rq<W|2;_-7k2-KB^xXIv;R}XP1Jt+J2*Pf4t)tA3_robX4CdCOHJC|7j+vW%J-EM zX&`87enIluaSc0_SnYUx$GzUc?vrNXt&I`o?~7C3RJ>C-Ajq!3AfU8Dx90^_p3}MK zjJzYC+`T(&egFXQ#9Ek{*oVAaa!zrZtmlRFnwQPRJXH<%pkK2*eP`pT=lwD7ifq+4 zBY_rUTa+U|2#&?i7>PVvD?7R4ZfOLPT{e<z*9Sa%-q+JZ0`uF@uf^uR0+0eAKOCxX zcaQOB0xyL&$7t}dfX{x=z?wHIs;&yo%nJr`+{Z2X98Hy3`tm$u;dhd<8yL(-;#Sne z;Lpz{>9G~G!Ls3s8JtQE`jMM9w<tfkOhc;ql-3a{hO%LC#ZWVT(nn|vd<pzYQv5BF z3Fy2~(>l2V9&Q+K2DHW0M+uQmEr%nYJ^7cK?uIpU-)=wn71ZZ-=@ar0;3^AY5+TI{ z2b(e%t{2PZ<B%x(nNg1>^HKF*vu@+Xr<l6w#|okxspftdv$I9rN_GQ)7q|*8s5y_r zF@oIq1RoU``$~Uk{rhVB^2n_8t2HJSxDFflkb2zZ+{WSl|IoP?Sr2=Mv_tpbBhqwu zkeg|uo9qd8ZqP<?l)|%<*;D+JXWZi%on=Ghf-03Mlsz8h(Q+`v>&BAc@2BC4_vCgw zw#i=)ea5Vo$glEEVBBg_VPBj!)OO>)f@}#dg6ULOeC>LBHz<;*5Y;YfE0lNxg{N+4 z@lO~ozxpF69qV@VOGnc248Iuag4C1T)P^(hWkpP!{h!JekX}m^Q#b2B0{OYr9M*o< z>EL{WQt@Z+Ea-hxX0}nTSZxnpi^#Kn8Ox8FgIS|hc}KJQ4tm*HO16ui{(O9}1YN)G zjiQt6fGq`Cj+^`zUf?8hk^(T{{cOQGWFP98am}is28A!5%{R#ENv8fCN!j69l<vTX zm`x#Aj3pR~5$!tw8x6HJBT;veqlI((e3l5f1J0XQfUi^9^|f?)8pp02+%sAXr3QSE zAghjFy?kTy2b}Y~5VYqs5GsSo#pFLl;)0^z+6P*`;T5Mu&WLv=bzI9Q@9K!#x3ne5 z{kTux3L#b!(t3OTfpmY0?(76nqT7xWC3Cn`hU1f1hZjxb%CxmPCafJTzecbohDHzE zdDz$vS9U>MEK(2z?|BY=Je$XD9mB-Kkem*(d-j^9j$2#6r$Dz?s)-TCDCGCs8>6Pv zj{Y+YIeFA@qY22V$)awy@q!9A4rgk5b9TcC;s9Ig^G|6nDP+5=Fzg&?(L=vcCbGd> zfSu~@6!94td+o#d@sid<c4_^>!EI<?7QBi6t=$bf#g{8RUCj>X$rx7*cawe6`dScJ z+$HssdOjE)O#Ybs56vm-FQ$7yuJJD^Zqk%hMaIgAJ<2yb_MFQte_i;62ScT$pjifY zyR_E=rQ+>H)pmlr-Udzg*-!|ssw(D7wJvC+Sf8bb9;;q8#z?0p!!bsd{wy|5pBaMH zE-Ve>i#LLjHRaMLtp%9&(HCng7Sw96jVv!#0k%?F^K7&=T)mnYn)D9(i;4x5^NJTJ zwq~pv;kH@#ejTd*48~(J(r6j34|m`h9fEDj0im)~+%I5XphWymhT;_Zty|Q&zjPg# z-ufAHZ<omf5#{klOC=UKcxxw*?x^rKwwoZ7wz3@8eku)ggLNRn<<KIdajH#HeA)T= zSeh$G{X;Ew$<Zx1YdFKl^buFmaRdI%XI9raN<LH2H`S7|Dmv<?JPd_9FaRph7M0*0 zUG<&|_BGC;v{TKZe6h)s$R@%If`c(mfiu?)kSq&lq&xx(v`_L7ceQ&}Az*(ZkTW$+ znaI+A`yGk?qy`dg`WSb{6e&FN4RX;O&+frr6hjc+3<Yokv6*p`M#SE){vkzc3FL#% z2;YdX9eq<GwL48ff7Y!gs4B@Hlzc$A2`aV3*Atk++JX5HDY4Bk;uB4Yxbu<X`L&1B zyqMIqI8t`UE|_LH(~F2;?|){*%50r1sI9V=C6bO-=^K$CSiOmlVqzhvSi?6g4AzPT zh<iZl4l)6IBfJ=W6EkAt_}>1M*Gccw?Kf|8Pnhtb0`!{N`Bqsa37J+>wC$!e00k+2 zEgzz;rbcWoUB%Jvp8W1}$XD%e3>4y;;OZ1ccT-O#uW6Ys@C}Pa`nZrNKzR(24e%3) z@QI4SE&E!lW`5y14QhbepBG%_XBV-O(%<aX6HVzRJ7ee*QV3AB=~LWyIoy{Vqv~a) zU>5tj)@9#|;sC-MNev!zGDHk}JdpGC`iJF#8=8-P$Xoku_=Dw%Cv3{U7L>gfRQ?<$ zt`cZ*MP5GQmbmx#!++P@u>0MewRO9GFGS{b^m_fJ-N0?j@EqoFf>$khj+E|@7r3We z&^tR^YZrxKe*d<YJy4G(9mh^GOxZ8bi3n#Ytos{m`t{%)Lj8wW{Y{jV+Q_6TI5_MM zSa-xsCZ~p-HRDCj#<#0BIhacN@>22agXqCO0l44&kqCv{u)T|(lv`~PK@DvE{QI_T zlCH5z*gR!>LO)k67{^R+vWx24U2^2ODXpwT;6y+6+$5m)_*w4WYdo9dCeE)>p+Y zkdhq($DhmMiaYXey!_kiL26uz($aJ!QT{B^Wu}U$^9e#5)=c+XF9@Ill?ZmMlNgHi zz*9!vDc&uxOo;ZVxb`Q!Sk0*gnfxWzmbZh4(=%CD%qP?0=);n$&zaW_$UKV98axdc zN#AyZ{P)wj?V{P}vM)YY!>6@}^>U+iv$`9>nMTCPjN>z%yF&3yf%>+T@0vh4lC8Xa z6zeo?%=o3}M8{aebLHcO{^1Ar8qiM=Gquf?Jo)q5`-+?sUpg?QXyEUpWSm+n$K-Uy zqkI<R?*3wTVfWE~<@2<uS?-MVl1;jzAA8*iL4xsi?b?BNi<UXgZAh$t2eX2OlaSjP z6`u~(FfWAHwjdICW?Bi|*YB$4-Yt-e+urDxm7s0C-NReT=&xHY=NLk9^<)K_8Qvc8 za9@Rcrh{U|jRjj-<@xXJdfDhCHAU3q@`fxV7DF|YZ^rH=h9J#M-17h36$#8E=<ACL zP@x){UQ68&`mEVXq`?Cxb~%;JJ<xQvIxsey(BZq&!Lur1_nVgz6$w$lK^&jz^=yq5 z^Y*23<@W0Z_KKzDbZLlkyC5J9t>wHLquru~o(OF)hhz$Y*|X>ZIbswnxRvr~2=rdO zGVuD|xRlpAZE<0!X1F(%Anpl^@V^D3vbM}qxe|NI;TTiZy7(IM;R69RkA>a&6gwYE z2sREzQ_LHmWqB+ogMk(fMaSFeoDq-!HkFB_nXt5+2ncFuk9BQL1I&oB1zZi)YW{6_ z&-Ip1l*OVRA##1ILQS;5R{-K^0wGTiJbVSi@LA^$D$;@J>^G{6@&+%4{b3(sC~LEH ziTv(0b#zxt?YJ0r_~pUZM~mQ(??(n#>&tD%+@nq=Abj5*8R!~Ul1`G~=qFJ4fl|m8 zZDCYgtr`4LcOpgiJYX9qRY5;DcWti~PmS$VB$E-Zt^f4)vLDOe_3XTq5^ylWJ9PKm z!V-8sAOJXnUfuFNIf0R9tK-pNs2hO04zr620}5B(Ok>yB)Of-3sP59qfQNbmA4{w! z2@cB;GbR(~szVrbO%(w=5S!X`o@o@x++wbN_tMPT0V<QhG{UeJ;8({%=z{L*Wd0Ug zQl1fNI!H$Y$hXK#w3!Gvn(74Nb)t*FnucAAe1;`Z--B03CHyB#2gq}g;qs~Ilu;^< zOx+<j-;_m5iBxJsQxuqvjs7QOWMpota<0)9-Vv;XHb%w=>c)*I;Fgsbf^*g02Di?H zTApwKq3+YwfNsqd3iP%{hyK1iyuVZc@*0tO_3+N0#GFsz>8MjeJ2UJ%L!%hiGYYAt zhH`E+ywA*u{(eJ=ia3h*%k?779rk-K<0VZAPkl;TFUbmei|$fqWO8!_zIvqt$ly$V zrlH46nnpX~X5Yk0iBJl;=WuA4>~X4-f&K0yWf42h&0b30t@NYX$7egQ1Fp!abui-D z6cWCWV&|R1CY@G8(qOmWjWeX3eX7UggZPGimA}soOuQdXe4uZ#2>5zN>qlI09xk}l zE=tNpX1m6*nFr2EQ3xs79!^sCldDJYE$m(qYv3q7>}1R7?iZW7>$~*%zKaC|=$N?M zE$>#+%T&MZC`dW1wUl6Z)Jgx<O-6<qXM4t~#e?{W^+e#G1+JMHT%S(b+j=X228<0@ z|Ms&0&DMir&YFHgKXllhX6<udP=D-|Fr9O}9<$XUXa~x!Mc)Yzs|#%b9Rp-of<kK9 zUe)q`_|57?H#QMd06y3$ygVG4Ts`2$YDHAQAbix1d9NQqi>keN920S>e@EK`q~>k| zuYcsgA>F%!@rFciD(>Iwzn8KT;2tb77bUPCmioh+rZBfIiM6f_P34cQ__o1GWqQp3 zVL~~pE5?qODf%iiQQ3f42YF@09tQ*$<v=*TB6gv{jy879dA6iNsN{5E@!(k48Hhai zU_^B~4$+iH?m^ArL%A5*Efo_%8ySb3DJ2+($#iHi9LOmDmMF7*5N3n2&E!HGolrkI z2!HM5qnOHg23Q1&UfD^`iFCzlg;)`TxlRkY*i!V9>4v_EKUx;t1KCPCBtgqg@+Tn; zO)a0uky_%jm+WjNB?=~VyH>V#L!*=l*@OSMSVyt_UEH&NA=?V2stHPyKkVN!<J*7B zJ43UcB3bH1PM2@IZw;E0-Pr(2?E_y%c)4{fI(WYro>&jg<#cjros){#ji)dK%)We0 zL_478=HZ8-@xnwsKrWs8)x`MB;(Y`Cmu2c-&SH(vN-F(*e`l?c%+l$|y_AJJhcDGn zwLvN+bu;_sX|1<mH)GAPa-4}{cUWY%Y?nWr&(mZ0q~a8r+)V&r!Qf@i3-wZ~k29f} zK4Mv56>AiePh<L{fUUyPI`J1j9<HC~w$=DnBr|v`eP$5Ka$0AMorz8kwj<6RqIF0X z>x@u&%P$hf*xE+O=~D?_(_KGWQ!158YL-y9$*6mmPo;Rp*Dl5lm-mVM2i`h-M@nxv z590_tvMwPD_{l=b$iOm|+|S{D9&P%zeT$GgX6Akl-tfUF>tL@Ld!B&{pN39tH>3V> zqksMAYul+jb7UiouWVGPNsxX7Ueba+9|~dz?d*QM$ng0DZfO0`7fAy?2yMm|cnRzU zhZ&IcwgjH9cuU!w+VStYa{p*)4IgBf|E8)sqMYtB2KH_}SfsFq(c9i(Q6S3UBo%DI k<H*|Oy`A%<=J$?q?|gu`ltGZq->*Kv;w;*%(i9W@fAqs5i2wiq literal 0 HcmV?d00001 diff --git a/ui/libs/themes/base/images/ui-icons_888888_256x240.png b/ui/libs/themes/base/images/ui-icons_888888_256x240.png new file mode 100644 index 0000000000000000000000000000000000000000..5ba708c39172a69e069136bd1309c4322c61f571 GIT binary patch literal 4369 zcmd^?`8yPD_s3^phOrG}UnfiUEn8(9QW1?MNkxXVDEpFin2{xWrLx5kBC;k~Gm<qS zlCjL7i8RK}U~Jz$pXdAh70>I3`<(O3xvulR&VAkQJHZBho(m=l0{{SA7UpJl008iB z3Rq<W|2;_-7k2-KB^xXIvyc9l$dBy{|2sH3&<=eGAPhgj!e-O<FiTC^-WPQnBg*%c z6KNo5YJNfT+Hnm#m00a~e8;`s!S0i0;;oGl<?oAA-c-C(I3UQbz#yQsLbvAyRi4wi z=Zw4~pWMAWY<>U$@Wfh}nb?QCTyjovo2=)B^qQB=#XMCF_n=?1Jbh>5sptJM?}}{I zHzR=-V_TFXKM0P+&lrh3TPr)c<8EmLl3g~EY}W@od*0X6Ljv>L(67bjz5<W}AU_<c zaCeXKX96#UHpgi2uz=5g(7>8EDypsu&ddu2a@@x)`5aA^S^DxkW8rs_vKtu8N8(o0 z#Nf}*Ch4&iw866BiW!_r4*HRsHn%80xlBW<`IOcXDu%LQam7$Ge$q#1415XvN>cnS zk_qU%P}4fO0v>J{Zw9o*)JF-CPA!KcpFR1Pn(l@*bKh=1_!ZRWb?FoG5a22cVG<$5 z0|%Qj7p@n}=Hrkk`<YRXCi7ACU$buG#iy9M>BkD99I57h7_+lQ-AZ-?fETz5E~q(= z!!d%~_yivn82d_pX#M+Y`|`-F^s6-{6}S!?_mFzr<=n>M{{PUq7g-N`hqOcY-y_m= zc#xZEqMPgqc5cu{ag@Tdli5@JlV{xH8J%TA<bo=dDU>}P<<W95#OubA;P0p5iudGp zJhsVS4}He0mdLO2O<>$=Qej`5Hq>_Gzk+NDFM{b*SA6Yydp9VOs1VgIYAcj@1BIt< zXz@=NF2DLCC>`r|^h-z5@eIEh>Vnjh+|-6M@nuC!oc*856_8#_6jL|rKLYu=)Ew4+ z*XiJVgHrKl?=0wjQ)aeNu2^jkUW>@Hei_S;nuA%RRe49V`VM;8SxUBxpZ<J&umoMd z?v0|8?0_u=S&p0h7GB^aa*_ft;r(pEIb<K|nQ_gkp$3I7pUpSO>Pe>l9ZA{YS(NU; zhnP(vSd1kYiV^KQ02>XpH6u}Xk)wrk`+SxNxC73cSAefm+V!<`c^b#A9NaTn45bEq zkRYp$U%h-|^9P*syb!eKG!QC-$;IS9MdE^@-`WRSzTp+8M9zqJCUsoPC-3Tr+qbkO z$o;ra-wGjC64H8m{(*FVitg+LQKH+96D4!FREFb|Scex)<I1$PIVP+fEx$&vCWb~2 z+<Dm84p(+TTr5%$1n+qceLS1TZ5_kJ!;qW~vU~QLrjA=%z^6dBSE`8-#wg_X+Z&^% z(~kZ#3^{q!aH9#xsmY>lw()`rHV$WMdUJNe3E}`->+?@(FDYcZt1#>wXwgHzQ6{p% zTY#PF?iBGE7<=u*`SFt0Lw0HX!oh85UlzQH{;k~&JH?kPJzdQX=gAmX40n@#()wBu zSllJ`lX^ZF9!&n2{1443>o2BzK(6sGDQ?n~RYk_ih&{?TJNBH*Eq`73g$F~WrJz{` zce}LL0;S^ZMb&nKyWR#(_t{VguBs~LOSLX&q*$M&haRh5HO5G%C&MvDmi{a@PM;Zq z)h;Xz<BK<fk~QVhC#?mT_R$w>D;Cshu#GG)RsptBTJvnQHC(-#7@G7B`iqJMl=F%g zD7I#-8sWBC_kJC!{tU)rGSX-nt`B$M86ARc$^oIWRNOCMU!X+%PKM$X`mI~kxxaKB znBMvsb8nZ)0}<u%MoT3YICyI(kM5}OHny7}l(w=Q*M2Gubc1yu!sXB+qj9QDQheF@ z`B<7ONBu)BcFEB#IBPh=$Mg|b(s2X+&1Y8EIZ8fL&^OhRvMM_2r#uXWJ1_t$&=!^8 z9$odG3-&e6qO?=ZqI|K*lgK8*3xb0&PJuJm4UjAgXQVs=3$#!25O=kERUu%1B9JpR zO_|8jfBPMY{-g#HZTc8@#uO<$@(ps)9MA5-Ulc<S-V6nB0<oEKlSaheul^xLYYF6o z&j{a$upNC<BDFhBK!4V)Ca5aOAC!DRxCtt?#Mcv;!rFoP5Gk?EFya$UiMaET;`z0Q z)4Z6}v^Y|B$1a#=In#@XVDEos#L8@)EU2xrmL-yoR_Pm&AXvSLk78mWs93`{EDY9) z1&Dh<>JBmidn3FUeG@Zc<M`hGl-Eh`)9p8Jb5EG?p#t=p+WA&lB?*~UQnc-+GynxD zek~uOuBJw8E?vdZ?w<VabI4ciZwwUTn&9dbMt4(BC9i3jF7OSDMf$jqC_s4(kqz(@ zi13Mu!7ck*t7d-TIt^-o+MgF(=4ThNlG5Mo))P(XCOc#36H*9JwdqsbcRAdb9HZ)G zrC=8Oy4Gdii{b#n8%Yfwb23B>dpwZy_4<e9fg75Se#l$<ZTN%bi6?BzzZR6e7F7Nm zCaw}_aYbG};+DAg_rrhJ+_3xIowaqlelJAkb@Y1urQN`7%kUiLaDrDYd5)CskQcb8 zThKc@Tx%DFVSfL%mpxFACLPC4GECVo&xr_UDXjY&Z2I-!9YXzwSp7|ul-kIoDmXao z4p?`@OeUv>oi*b{&c?T^HaVC|`tnlo?1SjRKLNPk{gDWT+_1fio|Ic{5kU=X{rvm3 zZIZ6BO4vMQdqO`~Ef~j4Z?cQ(+Ff$wxGAlyMBqd}_S__(_xM@v-fTM;$Q^HhR@PU= zE|8KP1IM4s;)*-+Z@m25>p^N<iqg__BvJk>(PgHJsq+a!8`ezsTQ3Np0+k4Mtdkgu z^}tg`-YMQKuuO>dsJQkgyjabt1)2OM)|R(}hto4zSIj5V;^@PYtIwI&4#+%;&Kf)o z7)jrDgZ%f?x$UCa=&~<9SHq{ZhxKx!b+ft~!I?(H$&BMOox4KuOo95gl<%5AIg+is zd=%?6ZOr(k=S0U?!*k{1h5q3O_ZrYo5Hq#Sl|1?L+WU%}6JI(orD)*qq-300E63z? z#iM){<nI1rcVYL@e&zGDsafuf^pZ`wq91$R2|<GKcJ11McZ-%e&TUAne+RRIg_Drm z85N%n)i5uF*R~)McxGA&-PiA`=H4xki`(AlmzAJxz1_oG%IL3KF6S6RarI;cni<|6 z@o-;-d!~b8#f=49S>^ff?RwehBsE3U<no3rBo;$8lW)fEC59l)Ox*JS-4zMUBk1dk z3Q(aMnqEuY5c;gyN~FO9Cw4iN%{|a`wmL92o6zCA)4{VUVfUMt5)}zizd;<I>h)}m z74!C`a^?2x1@?-i<#cI?a=RcP4Xx$88l&B!g`Nm)Fo$Fcf!VX@0y$z7EVz~OXbALP zyfX0m-nf+4I&E=bsAjk~l_2g3i}1e%qO!KkQ@Ij*%HbGO)w=i^^5FvkHIIee`4l@J zN(eR%MpMiipJjP0Cxd|&4n@b?>6{Ue05+A0q?xd^oCpYNXpePmO#{q`vISfX)oT82 zc+d5gPn5-?9wBmlt3pk*z*hj`X#ycn4?KJY!|++>4l2@t>FhVEjPeFAhW%k5Vkm2~ zbcy`#HFb1XOYOKAcKGGN*GG%skMBnYSL@4d#@wS$CLny@9vSEwSCUSW;OHk%_<>T$ z7HwfvT&)@WQFkIm_dH-5Csjc|H+OBX6;F-rR3wuTudV;|_Oc(#-}UUgloD_-!aH>L z-NF)hJ|F-%gI?Y8Jvo7qXRG7UV5l2_yAHF93IhsP-b`cH*wlEz^Qi99$$*D?10PGQ zCkYPA5Hltd=c+>(bWIfjJP@1Obe?Gx$=qVDe)rPM+5sw)!8F3K7T{OMLFj_+>SX>F zTT-48YC1?q1IV|?OSG8?IGXAN;&q~nz?z0#i+qM9P~U@BNG1FyO9#kvk>T>G=#)_^ zj!fMlH{X;+ONmr!LsJx(j*b2&WMpJ+s&cN;7Tyu8gf>RT2kOR+DBzZr7=m-v-UheM zgj$|(0HN;F)qrlz6$<pWMu+~sJiNbD0P-4<dG+wlpTwL`;pwPTLOV0;J42%w*E0&K zrG|2DG`!EuiT-{=iHbOi_sjJn%^mi8FXJUm2~T}WTQA89dW-H-XJm471-^Qv1IXY^ zex{+vOPWSI;%48(N{LVkx#w_bnCx+?lY#y2BV`dg&dpv*-mUbb+Q(-*uLG{gsdX^o z*%T7KkYeYZ!zP_pL(*Wk-;Fb*oqeju<b(KzewDw^4NSZrPJEzmvIzKkM(amha2_tW z)GkWOMP|Fkv6%<XNl^$X*&a?(_mitf@Gb0K5o_QmJ?v!5>FyVsy6e02`M!$<1L&Bz z+b!=_(#ur8?I=h&thJP2c+^S%)lEi*8fSaPs>Or&i1kF^p9QX&8C;)E+S__7fCh{W zSpW930L|8eV$Pa=LO*oao@VWHUr>MSl`x%iydJaFA!rB6u0`Jo5337p0UZNmSb{=o z*<RK1e)!GmMK?APQvg2LDZD%!nOr^K#cD-Vz#x3ok9n^jL5r%rcpMXPs((k@1El6| z1FwJNz#-kcgYkw$Zz}HJ>%W(>6W|^!F&8DUAC~&Vo2D?gE{V0S3{B;atoXLUNo9J? z0AWHot1HHimnr%xGf~-qSO<A!#2yC(7v(@Wz9M#^!Hza|&3U$@La5|)Ve#Nt*cpgC z_+UhJIu6m4NA5w*;X}C?+AS3mK^qx|oGB$3hsktkFdWDz|CT7TeGq1Yvd!c|8=X); zItYL5<fE9%cm`MmieA}C&WUuzYlT=5gSk!%x!6+llj(-Oi9cEv+ymK4IwV2MPVy%q z4NWbd$dOv&vzP2_CM60cbh}ozc0;3-3E6}HxL8NA{axI%ej(cmrK$-^lRxa=GUMBS z%R57}o+4T5MNXG*yl)Mflik?>O6>z*MtHe(EIN3<7@k-U&gFD+Xq}Ua*o~(!1kApC zO+-7O=jP#uq4B~*JwPs<`_;tw%;J3m{g-9xU(RBU&q^x&eSc@Ik<8NR$i0+>JBKgT zPqjfRC3Q3V=4q|BVK-yVuyUM<V|Q3&w``X`oX^u^_@v?#ncPhPV8P&J&I|QYtB*6G znLc7!U=?c=lTTy%qkyf#(mL@MKOU~1=eE`ORwOfcD}81V%5qv~jGc*24z?rC9inwe z7VC^qdCM;n#@O0M$mvrFUejGaT2m^ON@|u+x5=n`mrtd5#nz4VU+c{0H7Td`C)e zI1l3pJhCn!3;4-G%E-VnmfX+bejaW5wtb6`J7(s74&Ly=DC=Oa8GD|A3!jEgZ8xL- zaif3z=xf`lJac3tjIV4|s7a811YXjDJs%2U2kq>ByvXqR1a4^k&=*MqJ_v2b7I+El z1&0}s^tJ?^uXsz@oZ9j4x^n+$X$>D_nE$4#I-;EJG6wc;Jy@i$hSA&JVNoE;;UpDo l!Q;r<<-MKrq~`aIaqoP9xRgPV&EKy+z~U_0tkM({{ePlYU?u<n literal 0 HcmV?d00001 diff --git a/ui/libs/themes/base/images/ui-icons_cd0a0a_256x240.png b/ui/libs/themes/base/images/ui-icons_cd0a0a_256x240.png new file mode 100644 index 0000000000000000000000000000000000000000..7930a558099bc8d92b4264eb67a0f040460f4a4f GIT binary patch literal 4369 zcmd^?`8O2)_s3@pGmLE*`#M>&Z`mr_kcwz5Nh&g=McJ3E!;CE1E0ryV5Ro;>nvty8 zA{omJnn+{p4952Let*87zvA;auXFF~{<`_uPA4&sV%P>LMpp1PTBEIL*yWZ2<t_ z@fEPj3Ocq#^GmzOZpqrx?tDKK`oD9ix*7Y&g`)y&QC9#$uv5&e)~$~-Ri*5Fkay7{ zy!{*qeE}1*OA<Fus@p2ZXvN{$AM^}%oi-I~X$UX-Sd{#({Db@fUS<UfW=bt^eVJeB zF`aY4&@1BE{rkga2LJ$fjJc_?UGVEAr)1a3Iv#M3S?OH#bCoc6+6{}d_coq;JRI{X z&r*3e5@0^IMLzNcW0`%85Qy_NGLt)Q7KThR%Z3tddVm)%d%L@dAU<o_jhLJ_0HQzm zr+p>%{t3Pe;FXZ3XmxI8(D_g57_$Zil~sY6d4T}-hu9_Wqp4C0AMO{-e2$W~1A}=8 z?24)=?B)4HUDo_oXckN%okP)HFJjaB4*3_SNpKaf;yPT}KqfS{2x7`d{0xbPErH%h zh`mQJ03DaATP9aP!}a4$fY#``NI~M6<uJsHXa7>&RljED)8z}hhWxrNbxIBlTxG^j z!X>$3AQQ&I%_5mRECOjaGwR-GHmde})^)t-3_~aFM1G_L#mpCNdcLqr(RKjv3R}(z zG2^yBftMYh;H3a#-slaj|5$BX9+{PTv&NtR*P-L?l21FGTG`$H9~##p%VE!uR>=NG zc&auxVl!1_lP%uX71AJvlz(wLYl?63oLd~dqjZRrU#UEWw8J6Yn-7L~T$$tjeAQiW z9$XG5Hu>rxFBnzgd6ho#^gE5pY>U$dTCRN85Y1tQQ0=Pn{?7OJ10x9Xk!>P2f(f^f zILd}5--N;Po4*25F|J3ywIv+R@rfcYNj}R-sXrH2TFAiK{jFGG(ru1p=w$w<LB7t_ zhc!R6+d1ALmHpT{@_XKunr@USRM~;n!gH-&$M7NNpjIdqp3%(SgB~{K;_ag6zn&f} zLDp}2A!$TgU~_(^!zQ1(Cn%AWC=ZPPIGcX~(TjXxRK04TPUg*H^$E0mmZ5h~LS}dt zsWb2?dQ%V@Z2^LyMS2fFhC{7Q2;_alXu;e*uLT@tkM-i==k1Vkc`H?x%DyWL^N12f zssbOy%c$X2uio1H3FEjZ2<bixgh-=v(0R`h*ubdwb^#Xec*MvNGh!Wy?KkpByV_!Q z&8_jWKOfSzf(aG))Sm8tAU>R;IXQwAX*S~oiEK{g;kZPW;YE|!QY|g^2`dMS{&1Fr zkf?!sj~m)xO3v`hh4KQRJ&&Q!=X1HNq8T_Sg2P^B&rZX{VQUNc9O(K+B_Z4hiTH7M zW7K5Y!Ec5xD~B9zFlKUWG_Rd)xTK7U#hRGhp51T++e6oS{gT^?3s~>V4?6{zchhc_ z3UBb_W2U+~guMsG-g<L<zM}b<O-ip|a2wK_32UT%Z*#>=@#aWPSFypk)5jIUTxFiM zycGZzbxQuCTnvH*kv=E=LsRnltLbhgm$=ttS1IzU0)1t~4(XE>bHVwJpAPKOqoI-# zrdc{yo0R7Qx%~ZQl{UPa?gmxo#ZWM|vNHNxl@8NLksfn5Ek><!jGjhIf}ss9{FtpB zztRP&oSEy#7jFe7X~?EcTJbaNqAu5zFQ`^y8kk?L0&FBT=UJ(1*g92F6!8P(Hw6PI z;}OeOXh~l+#BQ_f{XSIr6@){lr&7~h9`C@?+XY&c{6l0Y*x$h30P(n;bcHF@d)LSd z$8;W;-1!y#V3)xS7UA|nNhajmdub(&?kMv#v>C${w=x~pekl%gfwaLwWspL{af)?f zT<OL67^(|<-D6EQiP0?>OBmhT<OyfuNqxS}7nV2Ki@%alw^b7}%iHUw+zo`<(Etk2 z1{v=bRr!$<+8=9P(xGZzw%F)FU=`+Jf`QPE0W&xC5zGtcB;5n@wN7&rcC~s`z#u;Y zkRv5kiNM@<_XCmktQs6;@)Uc{1R*r?9emjg$L7vg7>yU&3;}QeF&VLwhJ>Dezu>~P zc+$aFxKDWKj-CmD(v`}uH|ts*SefX@lyrc<%~WE6tHU#dv;y+LlA@cTgl8J!u@@u6 z@@fvJdC)1TvBa$QT@ck`rUxF**7w4Yh0!vZUsGu%Lm(cl(l#QPpmoOH3JC>FMe07G zq0kl#K+GLndyoOx8{t9g8JiLs#`pH8JWqR_ZM%J!Yr>cp>95<^#=FWQfzPm%q;5B+ z0>}ul8+l+gRaHV$$tsq5|MU;<L*6PsBcLGX1ZRg3s*7?aX-(5)fp=Im!rPfh2Fjrc ztbkuYxOZeUcG<^DCF2|CS*Ci3-9>?AJ~m-XNxjW3U6JH2k`tOXAqi)yGI@^uA&dQ% zZCJIe7{qK>+p_F)Sqy-GC!x-5MgogsP6lwiUH`N^a7*LKPdO{!4L^_^;goe*e}3s( z0i~~@V#)#L*W~2F?}&N*IQ)0a4Z1$uTU)p7^Mq&IM6K6d*$vpX2+L*+$9vY0=7?$b zxdD4R`8~74HMWsx#*goNSp#(_;z`UT-GuGxoUl-){JNk1rf)aSKE!W`#m`t#v6V!u zgn>fufpkVprL(KqSkhl*Z+yRQosF)bEiV<#K8hOr>yQ1@7Xg>g3EjKwLB7)(9$3%X z$G30OD&Z2Nh{;v5!}oF4fUu0TM%&2F-6aS1+fqu3cn;K4k4-#kkB|BO?bZtcTygp+ zB|R0)0x`)UVEm;Fwx~Vt*6ZV3k5Xcj6_=(X2y*8M&NGz^?Jr>Jutu8idcHpesED^^ znM9MV2A<P%&+u%4q=U6a#k9WQM61s%NaroFG`}A_oSw<NW;U4`OB<G0eaX0SK;l+# zQs=HmOZc?u=Y5>cX%oppm45TS9yYBtteX?1liAe($}l8Mrk|YY*cFUp@Yl5_|Ih%+ z5^dz<B3Y)XV@9t%Cfdj9Un-p}@C!S5P>*^BpQ&l8;Le-Z+E?J1_|}dtK>`0HCSg@u z*e9pUpX4zkcJ~*%3c8N=D_*8f&2puu6>riMeA#MG3E+*kYt|0Dnl;U^u0x`IJLnY* zjELAyFaL6=ihd=uwgnc)F;a_ZKEBsA_U<q_yY7vCTM69O-95acgzDdNzCag@ts}`( zO>uVc$NS1$GwozcE)2-hGS_c!*V9@%u`#?lhbMR;p$MXpbUS7*AsAt5?3(xQtcatZ zK;B-KhX__vb(?F4Q0GloBJ>|QvdJoM?lDbgsR3iM@a;Z3?cA&4wtslYkr80ETZHkc z9*>q7Q7<0~XHK7PK#yo@cBi@smopq(-%`e-KH4Qx-~rbHu}dW58QqJ{;3Inef@=x4 zI)BgQYXff|j7xg1Qx_M8s)u`0@M0d&aKAfD6qe?B3THxh84PWrQX5xII()>h>b|f$ zpKR+*4#vbnsS3H{v&>IrrO}Xrp{O`p?Q{I%z{XPHRAc7mQ~rVVZ80t_sel;~R{!fE znoWNU9=P1`jx=A?#Ye1fm8**6`|yK3jKQSofyZy4XkM$FK?NExjqO&YVea7N(7$X$ zbR{k3PT@a2CJt_@Dead-55GO?f3gVr{BdM(wXV#1%q{YCJlyB~k-m;m1@SZyhI$5p z9ViBGQ5QzVRGUDbbtaN^E&{f(lI64ub2s){aFm!11riDV*6MFh58H{nU5}0{$^Hi; zJVW<CEG&WM{r!P6sMRf>(-UYp)>>|Lx|%+y^DwKhz`tPS-85#6Rh0)ckL)U$^na{7 z@VVG(5^ui@Hf1odF537(mlR>ZBhjf%r<n%fj4j6M4^NHE9iS2kM8ywl0)Dq2ge>T+ zPUdZ~CgvI<rvtUsfxL@61nUX^qp1!cPCKd)q+!sx$ZJpx@i};dP{e()um`^s9xj`T zN*<+PNt7K@(`^})q;Q26Bw3!}(BOAUT3Y(H3db6C;RD`MaARbApmyAl3~FA9#yeH+ zZE$H%sOAd!<7>ZM_wUkJAw%w}x9jc8!TL)0!EfOi*AMUgP00QdmWDhdxHH4HGc<~J zIVYb|Vj$~E#d*)1>gzKQFOMaAy<RWW*kOC{I!?j_|J=Kz<%*1em&h(<Mmi^lzuz+r zKmuj(F$~;aQ`Otxw|gg6iUpHN-G@WNB=<8Nbj%NLN%NR-F18ZVZiO$!E-uSy9dJ!n zwVfWvDj)xi7&Gq_I_bC?oC>}BVVo}I<Xtr;7sxyGyX<35K*GZ?!XrK7ML_>K&7ZMB zx!9l*+ek@g>FsKVCT<u9Sw6UUdpJ?eSGEq$yRdsrw4S}>u!A+bt50<5zR%LvhtB47 zphLoLmz-;H4@2#)g8=!k#zLI#UMqFnH)&}~tj#&gW_Q99mQw+L7dU5Tu)W%;@9Qi9 z>QGi--TSZnR2z4)8B5wJy^vu$s+IRc0ll#|LNt!?I`me%fGty24eDN4Xl+O{(+NPj z1ygVh>zf*$Pk&fEX-3AP^1w$s1y_e7lBxzgSu6?iXt=l939t1dNMV&Hw?hI}<+!vx zKuXRw@aAWBEW)iT2xma>qG11B|GnfLf43m<xk&!~(3GEERQb7e35-=mND5y>`S%SD z3d3^-2o=m;T`_XFO4d`JiOd4T*vl!w_t?SMNPGOr712xew$!m3PP4`3g2iVGiU!9* z&w=GY2O}!evGB%RQa5rA7s5%`YA&A$+(<v<NG?X(Po_bFU_g4=_XO$fgHUUvO$H~* z@RZuoLD*YIZ-o^43&0{!<l0VBc7zK~GuV<4#CcZG*@mo_L^JS7_}RSR7QkBEF2S_y zD0doM-`M<x6rm|Ld&SmzQapb`r*ma%HzZOCpEdZ8iggg(-^IS@6SOH;tehY>`a%B< z)4%^Wyf-xKA)KjJ=y>(k$Cki3nVk)w<Ua6qxTkCTqP^Fv;feL291chOmO07r-8eFx z-}GC50?HmWHxD}ui4!8|0&-|vZzjfP79Z;Cy)ISzb{=DNUPAHs{hhT!FiNH)_L3Lw z9llmO(+aMT(8=hXr?%XM-i|TF$Z{l%-D8&7vRVFgF;|!Foq|<ha5Vye`GZ$EF4ak{ zKFxq+c#CF&l&z2qUiInE{5JAS>xAEYIGA3p>sG^i;f$cIw3$H&^I7dNHU=sw$d)j7 zh|(sSuhT>1EWU{wVQLz{XV1iYPIvxnNv=>Vu3kdkB_SVNJ(KJiSF;#9T-Gc6A9!kU z?a4i1-1H;R$hx=;;1@G7Jsm?|a=U>2b+qZz`aN9sgsIyFSp6r%%!9oq%tbmjY#K7P z-Gux{jUMaKw>DF`W{3tTZ|SIDqX6v)w4@1rITXmow6pv9GTr+NsJ`V>Zv++iD5MFK z@5#Rx6sk|u-Qs__;w5Q)X2-Ad+QXxzHC&)U-n+`G@G_e77|5&TV3EucN^AXqK{AmK pCn+FvZU>f5ukGw-)qi%3dglGbB=rNWkH7i=^YbXv3KMkH{{f&jC-?vW literal 0 HcmV?d00001 diff --git a/ui/pages/Makefile.am b/ui/pages/Makefile.am new file mode 100644 index 0000000..a22afc1 --- /dev/null +++ b/ui/pages/Makefile.am @@ -0,0 +1,22 @@ +# +# Kimchi +# +# Copyright IBM, Corp. 2013 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +SUBDIRS = help tabs websockify + +htmldir = $(datadir)/kimchi/ui/pages + +dist_html_DATA = $(wildcard *.tmpl) $(NULL) diff --git a/ui/pages/error.html.tmpl b/ui/pages/error.html.tmpl new file mode 100644 index 0000000..d8e16e6 --- /dev/null +++ b/ui/pages/error.html.tmpl @@ -0,0 +1,69 @@ +#* + * Kimchi + * + * Copyright IBM, Corp. 2013-2014 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *# + +#encoding UTF-8 +#import gettext +#from kimchi.cachebust import href +#silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) +#silent _ = t.gettext +#silent _t = t.gettext +<!doctype html> +<html class="no-js" lang=$lang.lang[0]> +<head> + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <title>Kimchi</title> + <link rel="stylesheet" href="$href("/css/theme-default.min.css")"> +</head> + + +<body> + <div class="error-background"> + <h1 id="logo"> + <img src="/images/theme-default/logo-white.png" alt="Kimchi"> + </h1> + </div> + <div class="error-msg error-icon"> + <div class=" error-text"> + <h4>$_("ERROR CODE")</h4> + </div> + <div class="error-text"> + <span>$data.code</span> + </div> + <div class="error-text"> + <h4>$_("REASON")</h4> + </div> + <div class="error-text"> + <span>$data.reason</span> + </div> + #if $varExists('data.call_stack') + <div class="error-text"> + <h4>$_("STACK")</h4> + </div> + <div class="error-text"> + <pre>$data.call_stack</pre> + </div> + </div> + #else + </div> + #end if + <div class="error-msg"> + <a id="btn-homepage" class="btn-normal" href="/">$_("Go to Homepage") ></a> + </div> +</body> +</html> diff --git a/ui/pages/i18n.json.tmpl b/ui/pages/i18n.json.tmpl new file mode 100644 index 0000000..f705613 --- /dev/null +++ b/ui/pages/i18n.json.tmpl @@ -0,0 +1,187 @@ +#* + * Project Kimchi + * + * Copyright IBM, Corp. 2014-2015 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *# +#unicode UTF-8 +#import gettext +#from kimchi.cachebust import href +#silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) +#silent _ = t.gettext +#silent _t = t.gettext +{ + "KCHAUTH6001E": "$_("The username or password you entered is incorrect. Please try again.")", + "KCHAUTH6002E": "$_("This field is required.")", + + "KCHAUTH6001M": "$_("Log in")", + "KCHAUTH6002M": "$_("Logging in...")", + + "Host": "$_("Host")", + "Guests": "$_("Guests")", + "Templates": "$_("Templates")", + "Storage": "$_("Storage")", + "Network": "$_("Network")", + + "KCHAPI6002E": "$_("Failed to get application configuration")", + "KCHAPI6003E": "$_("This is not a valid Linux path")", + "KCHAPI6004E": "$_("This is not a valid URL.")", + "KCHAPI6005E": "$_("No such data available.")", + "KCHAPI6007E": "$_("Can not contact the host system. Verify the host system is up and that you have network connectivity to it. HTTP request response %1. ")", + "KCHAPI6008E": "$_("Unable to read file.")", + "KCHAPI6009E": "$_("Error while uploading file.")", + + "KCHAPI6001M": "$_("Delete Confirmation")", + "KCHAPI6002M": "$_("OK")", + "KCHAPI6003M": "$_("Cancel")", + "KCHAPI6004M": "$_("Confirm")", + "KCHAPI6005M": "$_("Create")", + "KCHAPI6006M": "$_("Warning")", + "KCHAPI6007M": "$_("Save")", + "KCHAPI6008M": "$_("Creating...")", + "KCHAPI6009M": "$_("Cloning...")", + + "KCHGRD6001M": "$_("Loading...")", + "KCHGRD6002M": "$_("An error occurred while retrieving system information.")", + "KCHGRD6003M": "$_("Retry")", + "KCHGRD6004M": "$_("Detailed message:")", + + "KCHTMPL6001W": "$_("No ISO found")", + + "KCHTMPL6002E": "$_("This is not a valid ISO file.")", + + "KCHTMPL6002M": "$_("This may take a long time. Do you want to continue?")", + "KCHTMPL6003M": "$_("This will permanently delete the template. Would you like to continue?")", + + "KCHHOST6001E": "$_("Unable to shut down system as there are some virtual machines running!")", + + "KCHHOST6001M": "$_("Max:")", + "KCHHOST6002M": "$_("Utilization")", + "KCHHOST6003M": "$_("Available")", + "KCHHOST6004M": "$_("Read Rate")", + "KCHHOST6005M": "$_("Write Rate")", + "KCHHOST6006M": "$_("Received")", + "KCHHOST6007M": "$_("Sent")", + "KCHHOST6008M": "$_("Shutting down or restarting host will cause unsaved work lost. Continue to shut down/restarting?")", + + + "KCHREPO6001M": "$_("Confirm")", + "KCHREPO6002M": "$_("Repository will be removed permanently and can't be recovered. Do you want to continue?")", + "KCHREPO6003M": "$_("Repositories")", + "KCHREPO6004M": "$_("ID")", + "KCHREPO6005M": "$_("Name")", + "KCHREPO6006M": "$_("Base URL")", + "KCHREPO6007M": "$_("Is Mirror")", + "KCHREPO6008M": "$_("URL Args")", + "KCHREPO6009M": "$_("Enabled")", + "KCHREPO6010M": "$_("GPG Check")", + "KCHREPO6011M": "$_("GPG Key")", + "KCHREPO6012M": "$_("Add")", + "KCHREPO6013M": "$_("Edit")", + "KCHREPO6014M": "$_("Remove")", + "KCHREPO6016M": "$_("Enable")", + "KCHREPO6017M": "$_("Disable")", + + + "KCHUPD6001M": "$_("Software Updates")", + "KCHUPD6002M": "$_("Package Name")", + "KCHUPD6003M": "$_("Version")", + "KCHUPD6004M": "$_("Architecture")", + "KCHUPD6005M": "$_("Repository")", + "KCHUPD6006M": "$_("Update All")", + "KCHUPD6007M": "$_("Updating...")", + "KCHUPD6008M": "$_("Failed to retrieve packages update information.")", + "KCHUPD6009M": "$_("Failed to update package(s).")", + + + "KCHDR6001M": "$_("Debug report will be removed permanently and can't be recovered. Do you want to continue?")", + "KCHDR6002M": "$_("Debug Reports")", + "KCHDR6003M": "$_("Name")", + "KCHDR6005M": "$_("Generated Time")", + "KCHDR6006M": "$_("Generate")", + "KCHDR6007M": "$_("Generating...")", + "KCHDR6008M": "$_("Rename")", + "KCHDR6009M": "$_("Remove")", + "KCHDR6010M": "$_("Download")", + "KCHDR6011M": "$_("Report name should contain only letters, digits, underscore ('_') and/or hyphen ('-').")", + "KCHDR6012M": "$_("Pending...")", + "KCHDR6013M": "$_("Report name is the same as the original one.")", + + "KCHVM6001M": "$_("This will delete the virtual machine and its virtual disks. This operation cannot be undone. Would you like to continue?")", + "KCHVM6002M": "$_("Power off Confirmation")", + "KCHVM6003M": "$_("This action may produce undesirable results, " + "for example unflushed disk cache in the guest. " + "Would you like to continue?")", + "KCHVM6004M": "$_("Reset Confirmation")", + "KCHVM6005M": "$_("There is a risk of data loss caused by reset without" + " the guest OS shutdown. Would you like to continue?")", + "KCHVM6006M": "$_("Shut Down Confirmation")", + "KCHVM6007M": "$_("Note the guest OS may ignore this request. Would you like to continue?")", + "KCHVM6008M": "$_("Virtual Machine delete Confirmation")", + "KCHVM6009M": "$_("This virtual machine is not persistent. Power Off will delete it. Continue?")", + "KCHVM6010M": "$_("When the target guest has SCSI or iSCSI volumes, they will be cloned on default storage pool. The same will happen when the target pool does not have enough space to clone the volumes. Do you want to continue?")", + + "KCHVMCD6001M": "$_("This CDROM will be detached permanently and you can re-attach it. Continue to detach it?")", + "KCHVMCD6002M": "$_("Attach")", + "KCHVMCD6003M": "$_("Attaching...")", + "KCHVMCD6004M": "$_("Replace")", + "KCHVMCD6005M": "$_("Replacing...")", + "KCHVMCD6006M": "$_("Successfully attached!")", + "KCHVMCD6007M": "$_("Successfully replaced!")", + "KCHVMCD6008M": "$_("Successfully detached!")", + "KCHVMCD6009M": "$_("This disk will be detached permanently and you can re-attach it. Continue to detach it?")", + + "KCHVMED6001M": "$_("interface:")", + "KCHVMED6002M": "$_("address:")", + "KCHVMED6003M": "$_("link_type:")", + "KCHVMED6004M": "$_("block:")", + "KCHVMED6005M": "$_("drive_type:")", + "KCHVMED6006M": "$_("model:")", + "KCHVMED6007M": "$_("Affected devices:")", + + "KCHNET6001E": "$_("The VLAN id must be between 1 and 4094.")", + + "KCHNET6001M": "$_("unavailable")", + "KCHNET6002M": "$_("This action will interrupt network connectivity for any virtual machine that depend on this network.")", + "KCHNET6003M": "$_("Create a network")", + "KCHNET6004M": "$_("This network is not persistent. Instead of stop, this action will permanently delete it. Would you like to continue?")", + "KCHNET6001W": "$_("The bridged VLAN tag may not work well with NetworkManager enabled. You should consider disabling it.")", + + "KCHPOOL6001M": "$_("This will permanently delete the storage pool. Would you like to continue?")", + "KCHPOOL6002M": "$_("This storage pool is empty.")", + "KCHPOOL6003M": "$_("It will format your disk and you will loose any data in there, are you sure to continue? ")", + "KCHPOOL6004M": "$_("SCSI Fibre Channel")", + "KCHPOOL6005M": "$_("No SCSI adapters found.")", + "KCHPOOL6006M": "$_("Loading iSCSI targets...")", + "KCHPOOL6007M": "$_("No iSCSI found. Please input one.")", + "KCHPOOL6008M": "$_("Failed to load iSCSI targets.")", + + "KCHPOOL6001E": "$_("The storage pool name can not be blank.")", + "KCHPOOL6002E": "$_("The storage pool path can not be blank.")", + "KCHPOOL6003E": "$_("NFS server mount path can not be blank.")", + "KCHPOOL6005E": "$_("Invalid NFS mount path.")", + "KCHPOOL6006E": "$_("No logical device selected.")", + "KCHPOOL6007E": "$_("The iSCSI target can not be blank.")", + "KCHPOOL6008E": "$_("Server name can not be blank.")", + "KCHPOOL6009E": "$_("This is not a valid Server Name or IP. Please, modify it.")", + "KCHPOOL6010M": "$_("Looking for available partitions ...")", + "KCHPOOL6011M": "$_("No available partitions found.")", + "KCHPOOL6012M": "$_("This storage pool is not persistent. Instead of deactivate, this action will permanently delete it. Would you like to continue?")", + "KCHPOOL6013M": "$_("Unable to retrieve partitions information.")", + "KCHPOOL6014M": "$_("In progress...")", + "KCHPOOL6015M": "$_("Failed!")", + + "KCHVMSTOR0001E": "$_("CDROM path needs to be a valid local/remote path and cannot be blank.")", + "KCHVMSTOR0002E": "$_("Disk pool or volume cannot be blank.")" +} diff --git a/ui/robots.txt b/ui/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/ui/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / -- 1.7.1

- Fix and update COPYING file - Add API and README docs to reflect new changes introduced by wok. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- COPYING | 13 +++++------ README.md | 1 + docs/API.md | 46 ++++++++++++++++++++++++++++++++++++++++ docs/README.md | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 117 insertions(+), 7 deletions(-) create mode 120000 README.md create mode 100644 docs/API.md create mode 100644 docs/README.md diff --git a/COPYING b/COPYING index b34c747..a79f55d 100644 --- a/COPYING +++ b/COPYING @@ -1,11 +1,10 @@ -Kimchi is distributed pursuant to the terms of two different licenses. -The user interface (located in ui/ in this distribution) is governed by -the Apache License version 2.0. +Wok/Kimchi are distributed pursuant to the terms of two different licenses. +The user interface (located in ui/ and plugins/kimchi/ui in this distribution) +is governed by the Apache License version 2.0. -imported from JQuery UI (http://jqueryui.com) -The code under ui/spice-html5 is imported from spice-html5 project -(http://cgit.freedesktop.org/spice/spice-html5) and the code under ui/libs -which is imported from JQuery UI (http://jqueryui.com) +The code under plugins/kimchi/ui/spice-html5 is imported from spice-html5 +project (http://cgit.freedesktop.org/spice/spice-html5) and the code under +ui/libs which is imported from JQuery UI (http://jqueryui.com) The rest of this distribution is governed by the GNU Lesser General Public License version 3. diff --git a/README.md b/README.md new file mode 120000 index 0000000..0e01b43 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +docs/README.md \ No newline at end of file diff --git a/docs/API.md b/docs/API.md new file mode 100644 index 0000000..67d966e --- /dev/null +++ b/docs/API.md @@ -0,0 +1,46 @@ +## Wok REST API Specification + +The API provides functionality to the application and may be used directly by +external tools. In the following sections you will find the specification of +all Collections and Resource types that are supported and the URIs where they +can be accessed. In order to use the API effectively, please the following +general conventions: + +* The **Content Type** of the API is JSON. When making HTTP requests to this + API you should specify the following headers: + * Accept: application/json + * Content-type: application/json +* A **Collection** is a group of Resources of a given type. + * A **GET** request retrieves a list of summarized Resource representations + This summary *may* include all or some of the Resource properties but + *must* include a link to the full Resource representation. + * A **POST** request will create a new Resource in the Collection. The set + of Resource properties *must* be specified as a JSON object in the request + body. + * No other HTTP methods are supported for Collections +* A **Resource** is a representation of a singular object in the API (eg. + Virtual Machine). + * A **GET** request retrieves the full Resource representation. + * A **DELETE** request will delete the Resource. This request *may* contain + a JSON object which specifies optional parameters. + * A **PUT** request is used to modify the properties of a Resource (eg. + Change the name of a Virtual Machine). This kind of request *must not* + alter the live state of the Resource. Only *actions* may alter live state. + * A **POST** request commits an *action* upon a Resource (eg. Start a + Virtual Machine). This request is made to a URI relative to the Resource + URI. Available *actions* are described within the *actions* property of a + Resource representation. The request body *must* contain a JSON object + which specifies parameters. +* URIs begin with '/' to indicate Wok server root. + * Variable segments in the URI begin with a ':' and should replaced with the + appropriate resource identifier. + + +### Collection: Plugins + +**URI:** /plugins + +**Methods:** + +* **GET**: Retrieve a summarized list names of all UI Plugins + diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..1b31ccf --- /dev/null +++ b/docs/README.md @@ -0,0 +1,64 @@ +Wok (Webserver Originated from Kimchi) +====================================== + +Wok is a cherrypy-based web framework with HTML5 support that is extended by +plugins which expose functionality through REST APIs. + +Examples of such plugins are Kimchi (Virtualization Management) and Ginger +(System Administration). Wok comes with a sample plugin for education purposes. + +Wok runs through wokd daemon. + + +Build and Install +----------------- + + $ ./autogen.sh --system + $ make + $ sudo make install # Optional if running from the source tree + + +Run +--- + + $ sudo wokd --host=0.0.0.0 + +If you cannot access Wok, take a look at these 2 points: + +1. Firewall +Wok uses by default the ports 8000, 8001 and 64667. To allow incoming connections: + + For system using firewalld, do: + sudo firewall-cmd --add-port=8000/tcp --permanent + sudo firewall-cmd --add-port=8001/tcp --permanent + sudo firewall-cmd --add-port=64667/tcp --permanent + sudo firewall-cmd --reload + + For openSUSE systems, do: + sudo /sbin/SuSEfirewall2 open EXT TCP 8000 + sudo /sbin/SuSEfirewall2 open EXT TCP 8001 + sudo /sbin/SuSEfirewall2 open EXT TCP 64667 + + For system using iptables, do: + sudo iptables -A INPUT -p tcp --dport 8000 -j ACCEPT + sudo iptables -A INPUT -p tcp --dport 8001 -j ACCEPT + sudo iptables -A INPUT -p tcp --dport 64667 -j ACCEPT + + Don't forget to correctly save the rules. + + +2. SELinux +Allow httpd_t context for Wok web server: + + semanage permissive -a httpd_t + + +Participating +------------- + +All patches are sent through our mailing list hosted by oVirt. More +information can be found at: + +https://github.com/kimchi-project/kimchi/wiki/Communications + +Patches should be sent using git-send-email to kimchi-devel@ovirt.org. -- 1.7.1

Update kimchi plugin documentation to reflect new plugin structure. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/docs/API.md | 112 ++++++++++++++---------------- plugins/kimchi/docs/README-federation.md | 18 +++--- plugins/kimchi/docs/README.md | 37 +++++++--- 3 files changed, 86 insertions(+), 81 deletions(-) diff --git a/plugins/kimchi/docs/API.md b/plugins/kimchi/docs/API.md index e022c9e..bfefeab 100644 --- a/plugins/kimchi/docs/API.md +++ b/plugins/kimchi/docs/API.md @@ -31,13 +31,13 @@ the following general conventions: URI. Available *actions* are described within the *actions* property of a Resource representation. The request body *must* contain a JSON object which specifies parameters. -* URIs begin with a '/' to indicate the root of the API. +* URIs begin with '/plugins/kimchi' to indicate the root of Kimchi plugin. * Variable segments in the URI begin with a ':' and should replaced with the appropriate resource identifier. ### Collection: Virtual Machines -**URI:** /vms +**URI:** /plugins/kimchi/vms **Methods:** @@ -61,7 +61,7 @@ the following general conventions: ### Resource: Virtual Machine -**URI:** /vms/*:name* +**URI:** /plugins/kimchi/vms/*:name* **Methods:** @@ -149,7 +149,7 @@ the following general conventions: ### Sub-resource: Virtual Machine Screenshot -**URI:** /vms/*:name*/screenshot +**URI:** /plugins/kimchi/vms/*:name*/screenshot Represents a snapshot of the Virtual Machine's primary monitor. @@ -159,7 +159,7 @@ Represents a snapshot of the Virtual Machine's primary monitor. ### Sub-collection: Virtual Machine storages -**URI:** /vms/*:name*/storages +**URI:** /plugins/kimchi/vms/*:name*/storages * **GET**: Retrieve a summarized list of all storages of specified guest * **POST**: Attach a new storage or virtual drive to specified virtual machine. * type: The type of the storage (currently support 'cdrom' and 'disk'). @@ -168,7 +168,7 @@ Represents a snapshot of the Virtual Machine's primary monitor. * vol: Storage volume name of disk image. ### Sub-resource: storage -**URI:** /vms/*:name*/storages/*:dev* +**URI:** /plugins/kimchi/vms/*:name*/storages/*:dev* * **GET**: Retrieve storage information * dev: The name of the storage in the vm. * type: The type of the storage (currently support 'cdrom' and 'disk'). @@ -182,28 +182,28 @@ Represents a snapshot of the Virtual Machine's primary monitor. ### Sub-collection: Virtual Machine Passthrough Devices -**URI:** /vms/*:name*/hostdevs +**URI:** /plugins/kimchi/vms/*:name*/hostdevs * **GET**: Retrieve a summarized list of all directly assigned host device of specified guest. * **POST**: Directly assign a host device to guest. * name: The name of the host device to be assigned to vm. ### Sub-resource: Device -**URI:** /vms/*:name*/hostdevs/*:dev* +**URI:** /plugins/kimchi/vms/*:name*/hostdevs/*:dev* * **GET**: Retrieve assigned device information * name: The name of the assigned device. * type: The type of the assigned device. * **DELETE**: Detach the host device from VM. ### Sub-collection: Virtual Machine Snapshots -**URI:** /vms/*:name*/snapshots +**URI:** /plugins/kimchi/vms/*:name*/snapshots * **POST**: Create a new snapshot on a VM. * name: The snapshot name (optional, defaults to a value based on the current time). * **GET**: Retrieve a list of snapshots on a VM. ### Sub-resource: Snapshot -**URI:** /vms/*:name*/snapshots/*:snapshot* +**URI:** /plugins/kimchi/vms/*:name*/snapshots/*:snapshot* * **GET**: Retrieve snapshot information. * created: The time when the snapshot was created (in seconds, since the epoch). @@ -220,12 +220,12 @@ Represents a snapshot of the Virtual Machine's primary monitor. * revert: Revert the domain to the given snapshot. ### Sub-resource: Current snapshot -**URI:** /vms/*:name*/snapshots/current +**URI:** /plugins/kimchi/vms/*:name*/snapshots/current * **GET**: Retrieve current snapshot information for the virtual machine. ### Collection: Templates -**URI:** /templates +**URI:** /plugins/kimchi/templates **Methods:** @@ -270,7 +270,7 @@ Represents a snapshot of the Virtual Machine's primary monitor. ### Sub-Collection: Virtual Machine Network Interfaces -**URI:** /vms/*:name*/ifaces +**URI:** /plugins/kimchi/vms/*:name*/ifaces Represents all network interfaces attached to a Virtual Machine. @@ -289,7 +289,7 @@ Represents all network interfaces attached to a Virtual Machine. ### Sub-Resource: Virtual Machine Network Interface -**URI:** /vms/*:name*/ifaces/*:mac* +**URI:** /plugins/kimchi/vms/*:name*/ifaces/*:mac* A interface represents available network interface on VM. @@ -324,7 +324,7 @@ A interface represents available network interface on VM. ### Resource: Template -**URI:** /templates/*:name* +**URI:** /plugins/kimchi/templates/*:name* **Methods:** @@ -397,7 +397,7 @@ A interface represents available network interface on VM. ### Collection: Storage Pools -**URI:** /storagepools +**URI:** /plugins/kimchi/storagepools **Methods:** @@ -428,7 +428,7 @@ A interface represents available network interface on VM. ### Resource: Storage Pool -**URI:** /storagepools/*:name* +**URI:** /plugins/kimchi/storagepools/*:name* **Methods:** @@ -473,7 +473,7 @@ A interface represents available network interface on VM. ### Collection: Storage Volumes -**URI:** /storagepools/*:poolname*/storagevolumes +**URI:** /plugins/kimchi/storagepools/*:poolname*/storagevolumes **Methods:** @@ -493,7 +493,7 @@ A interface represents available network interface on VM. ### Resource: Storage Volume -**URI:** /storagepools/*:poolname*/storagevolumes/*:name* +**URI:** /plugins/kimchi/storagepools/*:poolname*/storagevolumes/*:name* **Methods:** @@ -531,7 +531,7 @@ A interface represents available network interface on VM. ### Collection: Interfaces -**URI:** /interfaces +**URI:** /plugins/kimchi/interfaces **Methods:** @@ -539,7 +539,7 @@ A interface represents available network interface on VM. ### Resource: Interface -**URI:** /interfaces/*:name* +**URI:** /plugins/kimchi/interfaces/*:name* A interface represents available interface on host. @@ -570,7 +570,7 @@ A interface represents available interface on host. ### Collection: Networks -**URI:** /networks +**URI:** /plugins/kimchi/networks **Methods:** @@ -592,7 +592,7 @@ A interface represents available interface on host. ### Resource: Network -**URI:** /networks/*:name* +**URI:** /plugins/kimchi/networks/*:name* **Methods:** @@ -637,7 +637,7 @@ A interface represents available interface on host. ### Collection: Tasks -**URI:** /tasks +**URI:** /plugins/kimchi/tasks **Methods:** @@ -645,7 +645,7 @@ A interface represents available interface on host. ### Resource: Task -**URI:** /tasks/*:id* +**URI:** /plugins/kimchi/tasks/*:id* A task represents an asynchronous operation that is being performed by the server. @@ -668,7 +668,7 @@ server. ### Resource: Configuration -**URI:** /config +**URI:** /plugins/kimchi/config Contains information about the application environment and configuration. @@ -685,7 +685,7 @@ Contains information about the application environment and configuration. ### Resource: Capabilities -**URI:** /config/capabilities +**URI:** /plugins/kimchi/config/capabilities Contains information about the host capabilities: iso streaming, screenshot creation. @@ -716,7 +716,7 @@ creation. ### Collection: Storage Servers -**URI:** /storageservers +**URI:** /plugins/kimchi/storageservers **Methods:** @@ -727,7 +727,7 @@ creation. ### Resource: Storage Server -**URI:** /storageservers/*:host* +**URI:** /plugins/kimchi/storageservers/*:host* **Methods:** @@ -737,7 +737,7 @@ creation. ### Collection: Storage Targets -**URI:** /storageservers/*:name*/storagetargets +**URI:** /plugins/kimchi/storageservers/*:name*/storagetargets **Methods:** @@ -754,7 +754,7 @@ creation. ### Collection: Distros -**URI:** /config/distros +**URI:** /plugins/kimchi/config/distros **Methods:** @@ -762,7 +762,7 @@ creation. ### Resource: Distro -**URI:** /config/distros/*:name* +**URI:** /plugins/kimchi/config/distros/*:name* Contains information about the OS distribution. @@ -780,7 +780,7 @@ Contains information about the OS distribution. #### Collection: Debug Reports -**URI:** /debugreports +**URI:** /plugins/kimchi/debugreports **Methods:** @@ -792,7 +792,7 @@ Contains information about the OS distribution. ### Resource: Debug Report -**URI:** /debugreports/*:name* +**URI:** /plugins/kimchi/debugreports/*:name* A Debug Report is an archive of logs and other information about the host that is used to diagnose and debug problems. The exact format and contents are @@ -819,7 +819,7 @@ specific to the low level collection tool being used. ### Sub-resource: Debug Report content -**URI:** /debugreports/*:name*/content +**URI:** /plugins/kimchi/debugreports/*:name*/content It is the sub-resource of Debug Report and the client use it to get the real content of the Debug Report file from the server @@ -832,7 +832,7 @@ of the Debug Report file from the server ### Resource: Host -**URI:** /host +**URI:** /plugins/kimchi/host Contains information of host. **Methods:** @@ -859,7 +859,7 @@ Contains information of host. ### Resource: Users -**URI:** /users +**URI:** /plugins/kimchi/users List of available users. **Methods:** @@ -871,7 +871,7 @@ List of available users. ### Resource: Groups -**URI:** /groups +**URI:** /plugins/kimchi/groups List of available groups. **Methods:** @@ -880,7 +880,7 @@ List of available groups. ### Resource: HostStats -**URI:** /host/stats +**URI:** /plugins/kimchi/host/stats Contains the host sample data. @@ -912,7 +912,7 @@ Contains the host sample data. ### Resource: HostStats -**URI:** /host/cpuinfo +**URI:** /plugins/kimchi/host/cpuinfo The cores and sockets of a hosts's CPU. Useful when sizing VMs to take advantages of the perforamance benefits of SMT (Power) or Hyper-Threading (Intel). @@ -936,7 +936,7 @@ advantages of the perforamance benefits of SMT (Power) or Hyper-Threading (Intel ### Resource: HostStatsHistory -**URI:** /host/stats/history +**URI:** /plugins/kimchi/host/stats/history It is the sub-resource of Host Stats and the client uses it to get the host stats history @@ -962,17 +962,9 @@ stats history *No actions defined* -### Collection: Plugins - -**URI:** /plugins - -**Methods:** - -* **GET**: Retrieve a summarized list names of all UI Plugins - ### Collection: Partitions -**URI:** /host/partitions +**URI:** /plugins/kimchi/host/partitions **Methods:** @@ -980,7 +972,7 @@ stats history ### Resource: Partition -**URI:** /host/partitions/*:name* +**URI:** /plugins/kimchi/host/partitions/*:name* **Methods:** @@ -998,7 +990,7 @@ stats history ### Collection: Devices -**URI:** /host/devices +**URI:** /plugins/kimchi/host/devices **Methods:** @@ -1016,7 +1008,7 @@ stats history ### Resource: Device -**URI:** /host/devices/*:name* +**URI:** /plugins/kimchi/host/devices/*:name* **Methods:** @@ -1045,11 +1037,11 @@ stats history ### Sub-collection: VMs with the device assigned. -**URI:** /host/devices/*:name*/vmholders +**URI:** /plugins/kimchi/host/devices/*:name*/vmholders * **GET**: Retrieve a summarized list of all VMs holding the device. ### Sub-resource: VM holder -**URI:** /host/devices/*:name*/vmholders/*:vm* +**URI:** /plugins/kimchi/host/devices/*:name*/vmholders/*:vm* * **GET**: Retrieve information of the VM which is holding the device * name: The name of the VM. * state: The power state of the VM. Could be "running" and "shutdown". @@ -1057,7 +1049,7 @@ stats history ### Collection: Host Packages Update -**URI:** /host/packagesupdate +**URI:** /plugins/kimchi/host/packagesupdate Contains the information and action of packages update in the host. @@ -1067,7 +1059,7 @@ Contains the information and action of packages update in the host. ### Resource: Host Package Update -**URI:** /host/packagesupdate/*:name* +**URI:** /plugins/kimchi/host/packagesupdate/*:name* Contains the information for a specific package to be updated. @@ -1081,7 +1073,7 @@ Contains the information for a specific package to be updated. ### Collection: Host Repositories -**URI:** /host/repositories +**URI:** /plugins/kimchi/host/repositories **Methods:** @@ -1101,7 +1093,7 @@ http://, ftp:// or file:// URL. ### Resource: Repository -**URI:** /host/repositories/*:repo-id* +**URI:** /plugins/kimchi/host/repositories/*:repo-id* **Methods:** @@ -1147,7 +1139,7 @@ http://, ftp:// or file:// URL. ### Collection: Peers -**URI:** /peers +**URI:** /plugins/kimchi/peers **Methods:** diff --git a/plugins/kimchi/docs/README-federation.md b/plugins/kimchi/docs/README-federation.md index b71a172..c184f4f 100644 --- a/plugins/kimchi/docs/README-federation.md +++ b/plugins/kimchi/docs/README-federation.md @@ -1,11 +1,11 @@ Kimchi Project - Federation Feature =================================== -Federation feature is a mechanism to discover Kimchi peers in the same network. -It uses openSLP tool (http://www.openslp.org/) to register and find the Kimchi +Federation feature is a Kimchi mechanism to discover Wok peers in the same +network. It uses openSLP tool (http://www.openslp.org/) to register and find Wok servers. -By default this feature is disabled on Kimchi as it is not critical for KVM +By default this feature is disabled on Wok as it is not critical for KVM virtualization and requires additional software installation. To enable it, do the following: @@ -43,18 +43,18 @@ To enable it, do the following: For system using iptables, do: sudo iptables -A INPUT -s <subnet> -j ACCEPT -4. Start slpd service and make sure it is up while running Kimchi +4. Start slpd service and make sure it is up while running Wok sudo service slpd start -5. Enable federation on Kimchi by editing the /etc/kimchi/kimchi.conf file: +5. Enable federation on Wok by editing the /etc/wok/wok.conf file: federation = on -6. Then start Kimchi service - sudo service kimchid start +6. Then start Wok service + sudo service wokd start -The Kimchi server will be registered on openSLP on server starting up and will -be found by other Kimchi peers (with federation feature enabled) in the same +The Wok server will be registered on openSLP on server starting up and will +be found by other Wok peers (with federation feature enabled) in the same network. Enjoy! diff --git a/plugins/kimchi/docs/README.md b/plugins/kimchi/docs/README.md index 034a591..f400333 100644 --- a/plugins/kimchi/docs/README.md +++ b/plugins/kimchi/docs/README.md @@ -4,9 +4,10 @@ Kimchi Project Kimchi is an HTML5 based management tool for KVM. It is designed to make it as easy as possible to get started with KVM and create your first guest. -Kimchi runs as a daemon on the hypervisor host. It manages KVM guests through -libvirt. The management interface is accessed over the web using a browser that -supports HTML5. +Kimchi runs as a Wok plugin. Wok runs as a daemon on the hypervisor host. + +Kimchi manages KVM guests through libvirt. The management interface is accessed +over the web using a browser that supports HTML5. Browser Support =============== @@ -33,11 +34,11 @@ find. Hypervisor Distro Support ========================= -Kimchi daemon might run on any GNU/Linux distribution that meets the conditions +Kimchi and Wok might run on any GNU/Linux distribution that meets the conditions described on the 'Getting Started' section below. -The Kimchi community makes an effort to test with the latest versions of Fedora, -RHEL, OpenSuSe, and Ubuntu. +The Kimchi community makes an effort to test it with the latest versions of +Fedora, RHEL, OpenSuSe, and Ubuntu. Getting Started =============== @@ -125,6 +126,17 @@ information on how configure your system to access this repository. Build and Install ----------------- + + Wok: + $ ./autogen.sh --system + + $ make + $ sudo make install # Optional if running from the source tree + + + Kimchi: + $ cd plugins/kimchi + For openSUSE 13.1: $ ./autogen.sh --with-spice-html5 @@ -137,12 +149,12 @@ Build and Install Run --- - $ sudo kimchid --host=0.0.0.0 + $ sudo wokd --host=0.0.0.0 -If you cannot access Kimchi, take a look at these 2 points: +If you cannot access Wok, take a look at these 2 points: 1. Firewall -Kimchi uses by default the ports 8000, 8001 and 64667. To allow incoming connections: +Wok uses by default the ports 8000, 8001 and 64667. To allow incoming connections: For system using firewalld, do: sudo firewall-cmd --add-port=8000/tcp --permanent @@ -164,7 +176,7 @@ Kimchi uses by default the ports 8000, 8001 and 64667. To allow incoming connect 2. SELinux -Allow httpd_t context for Kimchi web server: +Allow httpd_t context for Wok web server: semanage permissive -a httpd_t @@ -172,6 +184,7 @@ Allow httpd_t context for Kimchi web server: Test ---- + $ cd plugins/kimchi $ make check-local # check for i18n and formatting errors $ sudo make check @@ -183,9 +196,9 @@ Usage Connect your browser to https://localhost:8001. You should see a screen like: - + -Kimchi uses PAM to authenticate users so you can log in with the same username +Wok uses PAM to authenticate users so you can log in with the same username and password that you would use to log in to the machine itself. Once logged in you will see a screen like: -- 1.7.1

Update autoconf and all build files to the new directory structure Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- .gitignore | 18 +++--- Makefile.am | 91 +++++++++++++++---------------- configure.ac | 38 +++---------- contrib/Makefile.am | 12 ++-- docs/Makefile.am | 9 +-- plugins/Makefile.am | 2 +- po/Makevars | 2 +- po/POTFILES.in | 3 +- po/gen-pot.in | 2 +- src/Makefile.am | 24 ++++---- src/nginx/Makefile.am | 6 +- src/wok/Makefile.am | 18 +++--- src/wok/config.py.in | 2 +- src/wok/control/Makefile.am | 4 +- src/wok/model/Makefile.am | 2 +- src/wok/xmlutils/Makefile.am | 2 +- ui/Makefile.am | 4 +- ui/css/Makefile.am | 2 +- ui/images/Makefile.am | 4 +- ui/images/theme-default/Makefile.am | 2 +- ui/js/Makefile.am | 8 ++-- ui/libs/Makefile.am | 2 +- ui/libs/themes/base/Makefile.am | 2 +- ui/libs/themes/base/images/Makefile.am | 2 +- ui/pages/Makefile.am | 4 +- ui/pages/websockify/Makefile.am | 2 +- 26 files changed, 118 insertions(+), 149 deletions(-) diff --git a/.gitignore b/.gitignore index b3988b6..a9bbc16 100644 --- a/.gitignore +++ b/.gitignore @@ -18,19 +18,20 @@ configure config.log config.status contrib/DEBIAN/control -contrib/kimchi.spec.fedora -contrib/kimchi.spec.suse +contrib/wok.spec.fedora +contrib/wok.spec.suse contrib/make-deb.sh -docs/kimchid.8 +docs/wokd.8 *.min.css *.min.js *.gmo stamp-po -kimchi-*.tar.gz -src/kimchid -src/kimchi.conf -src/nginx/kimchi.conf -src/kimchi/config.py +wok-*.tar.gz +wok.spec +src/wokd +src/wok.conf +src/nginx/wok.conf +src/wok/config.py tests/run_tests.sh tests/test_config.py plugins/sample/po/POTFILES @@ -40,4 +41,3 @@ po/gen-pot *.orig *.rej *.pem -ui/pages/help/*/*.html diff --git a/Makefile.am b/Makefile.am index 1a0c8e7..9384d45 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,9 +16,9 @@ # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -SUBDIRS = src ui docs contrib tests po config plugins +SUBDIRS = src ui docs contrib po plugins -man_MANS = docs/kimchid.8 +man_MANS = docs/wokd.8 AUTOMAKE_OPTIONS = foreign @@ -35,12 +35,12 @@ EXTRA_DIST = \ $(NULL) -PEP8_BLACKLIST = *src/kimchi/config.py,*src/kimchi/i18n.py,*tests/test_config.py +PEP8_BLACKLIST = *src/wok/config.py,*src/wok/i18n.py -SKIP_PYFLAKES_ERR = "\./src/kimchi/websocket\.py" +SKIP_PYFLAKES_ERR = "\./src/wok/websocket\.py" I18N_FILES = plugins/*/i18n.py \ - src/kimchi/i18n.py \ + src/wok/i18n.py \ $(NULL) check-local: @@ -60,7 +60,7 @@ all-local: while read L && test -n "$$L"; do \ dir=mo/$$L/LC_MESSAGES ; \ $(MKDIR_P) $$dir ; \ - ln -sf ../../../po/$$L.gmo $$dir/kimchi.mo ; \ + ln -sf ../../../po/$$L.gmo $$dir/wok.mo ; \ done < po/LINGUAS # @@ -69,44 +69,41 @@ all-local: install-deb: install cp -R $(top_srcdir)/contrib/DEBIAN $(DESTDIR)/ - mkdir -p $(DESTDIR)/var/lib/kimchi/debugreports - mkdir -p $(DESTDIR)/var/lib/kimchi/screenshots - mkdir -p $(DESTDIR)/var/lib/kimchi/vnc-tokens - mkdir -p $(DESTDIR)/var/lib/kimchi/isos - touch $(DESTDIR)/var/lib/kimchi/objectstore + mkdir -p $(DESTDIR)/var/lib/wok/vnc-tokens + touch $(DESTDIR)/var/lib/wok/objectstore $(MKDIR_P) $(DESTDIR)/etc/init $(MKDIR_P) $(DESTDIR)/usr/lib/firewalld/services - cp -R $(top_srcdir)/contrib/kimchid-upstart.conf.debian \ - $(DESTDIR)/etc/init/kimchid.conf + cp -R $(top_srcdir)/contrib/wokd-upstart.conf.debian \ + $(DESTDIR)/etc/init/wokd.conf cp -R $(top_srcdir)/src/firewalld.xml \ - $(DESTDIR)/usr/lib/firewalld/services/kimchid.xml + $(DESTDIR)/usr/lib/firewalld/services/wokd.xml deb: contrib/make-deb.sh $(top_srcdir)/contrib/make-deb.sh -kimchi.spec: contrib/kimchi.spec.fedora contrib/kimchi.spec.suse +wok.spec: contrib/wok.spec.fedora contrib/wok.spec.suse @if test -e /etc/redhat-release; then \ - ln -sf contrib/kimchi.spec.fedora $@ ; \ + ln -sf contrib/wok.spec.fedora $@ ; \ elif test -e /etc/SuSE-release; then \ - ln -sf contrib/kimchi.spec.suse $@ ; \ + ln -sf contrib/wok.spec.suse $@ ; \ else \ echo "Unable to select a spec file for RPM build" ; \ /bin/false ; \ fi -rpm: dist kimchi.spec +rpm: dist wok.spec $(MKDIR_P) rpm/BUILD rpm/RPMS rpm/SOURCES rpm/SPECS rpm/SRPMS - cp $(top_srcdir)/kimchi.spec rpm/SPECS/kimchi.spec + cp $(top_srcdir)/wok.spec rpm/SPECS/wok.spec cp $(DIST_ARCHIVES) rpm/SOURCES - rpmbuild -ba --define "_topdir `pwd`/rpm" rpm/SPECS/kimchi.spec + rpmbuild -ba --define "_topdir `pwd`/rpm" rpm/SPECS/wok.spec -fedora-rpm: contrib/kimchi.spec.fedora - ln -sf contrib/kimchi.spec.fedora kimchi.spec +fedora-rpm: contrib/wok.spec.fedora + ln -sf contrib/wok.spec.fedora wok.spec $(MAKE) rpm -suse-rpm: contrib/kimchi.spec.suse - ln -sf contrib/kimchi.spec.suse kimchi.spec +suse-rpm: contrib/wok.spec.suse + ln -sf contrib/wok.spec.suse wok.spec $(MAKE) rpm ChangeLog: @@ -117,39 +114,39 @@ ChangeLog: install-data-local: @if test -d $(systemdsystemunitdir) ; then \ mkdir -p $(DESTDIR)/$(systemdsystemunitdir); \ - $(INSTALL_DATA) contrib/kimchid.service.fedora $(DESTDIR)/$(systemdsystemunitdir)/kimchid.service; \ + $(INSTALL_DATA) contrib/wokd.service.fedora $(DESTDIR)/$(systemdsystemunitdir)/wokd.service; \ else \ mkdir -p $(DESTDIR)/etc/init.d/ \ - $(INSTALL_DATA) contrib/kimchid.sysvinit $(DESTDIR)/etc/init.d/kimchid; \ - chmod +x $(DESTDIR)/etc/init.d/kimchid; \ + $(INSTALL_DATA) contrib/wokd.sysvinit $(DESTDIR)/etc/init.d/wokd; \ + chmod +x $(DESTDIR)/etc/init.d/wokd; \ fi; \ if test -d /usr/lib/firewalld/services/; then \ mkdir -p $(DESTDIR)/usr/lib/firewalld/services/; \ - $(INSTALL_DATA) src/firewalld.xml $(DESTDIR)/usr/lib/firewalld/services/kimchid.xml; \ + $(INSTALL_DATA) src/firewalld.xml $(DESTDIR)/usr/lib/firewalld/services/wokd.xml; \ fi; \ - mkdir -p $(DESTDIR)/var/lib/kimchi/{debugreports,screenshots,vnc-tokens,isos} - touch $(DESTDIR)/var/lib/kimchi/objectstore - mkdir -p $(DESTDIR)/var/log/kimchi/ - touch $(DESTDIR)/var/log/kimchi/kimchi-access.log - touch $(DESTDIR)/var/log/kimchi/kimchi-error.log - mkdir -p $(DESTDIR)/etc/kimchi/ - $(INSTALL_DATA) src/dhparams.pem $(DESTDIR)/etc/kimchi/dhparams.pem - touch $(DESTDIR)/etc/nginx/conf.d/kimchi.conf + mkdir -p $(DESTDIR)/var/lib/wok/vnc-tokens + touch $(DESTDIR)/var/lib/wok/objectstore + mkdir -p $(DESTDIR)/var/log/wok/ + touch $(DESTDIR)/var/log/wok/wok-access.log + touch $(DESTDIR)/var/log/wok/wok-error.log + mkdir -p $(DESTDIR)/etc/wok/ + $(INSTALL_DATA) src/dhparams.pem $(DESTDIR)/etc/wok/dhparams.pem + touch $(DESTDIR)/etc/nginx/conf.d/wok.conf uninstall-local: - @if test -f $(systemdsystemunitdir)/kimchid.service; then \ - $(RM) $(DESTDIR)/$(systemdsystemunitdir)/kimchid.service; \ - elif test -f /etc/init.d/kimchid; then \ - $(RM) $(DESTDIR)/etc/init.d/kimchid; \ - $(RM) $(DESTDIR)/etc/init/kimchi.conf; \ + @if test -f $(systemdsystemunitdir)/wokd.service; then \ + $(RM) $(DESTDIR)/$(systemdsystemunitdir)/wokd.service; \ + elif test -f /etc/init.d/wokd; then \ + $(RM) $(DESTDIR)/etc/init.d/wokd; \ + $(RM) $(DESTDIR)/etc/init/wok.conf; \ fi; \ if test -d /usr/lib/firewalld/services/; then \ - $(RM) $(DESTDIR)/usr/lib/firewalld/services/kimchid.xml; \ + $(RM) $(DESTDIR)/usr/lib/firewalld/services/wokd.xml; \ fi; \ - $(RM) -rf $(DESTDIR)/var/lib/kimchi - $(RM) -rf $(DESTDIR)/var/log/kimchi - $(RM) -rf $(DESTDIR)/etc/kimchi - $(RM) $(DESTDIR)/etc/nginx/conf.d/kimchi.conf + $(RM) -rf $(DESTDIR)/var/lib/wok + $(RM) -rf $(DESTDIR)/var/log/wok + $(RM) -rf $(DESTDIR)/etc/wok + $(RM) $(DESTDIR)/etc/nginx/conf.d/wok.conf VERSION: @if test -d .git; then \ @@ -162,4 +159,4 @@ VERSION: clean-local: rm -rf mo rpm -CLEANFILES = kimchi.spec `find "$(top_srcdir)" -type f -name "*.pyc" -print` +CLEANFILES = wok.spec `find "$(top_srcdir)" -type f -name "*.pyc" -print` diff --git a/configure.ac b/configure.ac index 0261b5f..736b343 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -AC_INIT([kimchi], [m4_esyscmd([./build-aux/pkg-version --version])]) +AC_INIT([wok], [m4_esyscmd([./build-aux/pkg-version --version])]) AC_SUBST([PACKAGE_VERSION], [m4_esyscmd([./build-aux/pkg-version --version])]) @@ -87,15 +87,13 @@ AC_CONFIG_FILES([ po/gen-pot Makefile docs/Makefile - docs/kimchid.8 + docs/wokd.8 src/Makefile - src/distros.d/Makefile src/nginx/Makefile - src/kimchi/Makefile - src/kimchi/control/Makefile - src/kimchi/control/vm/Makefile - src/kimchi/model/Makefile - src/kimchi/xmlutils/Makefile + src/wok/Makefile + src/wok/control/Makefile + src/wok/model/Makefile + src/wok/xmlutils/Makefile plugins/Makefile plugins/sample/Makefile plugins/sample/po/Makefile.in @@ -109,37 +107,17 @@ AC_CONFIG_FILES([ ui/images/Makefile ui/images/theme-default/Makefile ui/js/Makefile - ui/spice-html5/Makefile - ui/spice-html5/css/Makefile - ui/spice-html5/pages/Makefile - ui/spice-html5/thirdparty/Makefile ui/libs/Makefile ui/libs/themes/Makefile ui/libs/themes/base/Makefile ui/libs/themes/base/images/Makefile ui/pages/Makefile - ui/pages/help/Makefile - ui/pages/help/en_US/Makefile - ui/pages/help/de_DE/Makefile - ui/pages/help/es_ES/Makefile - ui/pages/help/fr_FR/Makefile - ui/pages/help/it_IT/Makefile - ui/pages/help/ja_JP/Makefile - ui/pages/help/ko_KR/Makefile - ui/pages/help/pt_BR/Makefile - ui/pages/help/ru_RU/Makefile - ui/pages/help/zh_CN/Makefile - ui/pages/help/zh_TW/Makefile - ui/pages/tabs/Makefile ui/pages/websockify/Makefile contrib/Makefile contrib/DEBIAN/Makefile contrib/DEBIAN/control - contrib/kimchi.spec.fedora - contrib/kimchi.spec.suse - tests/Makefile - config/Makefile - config/ui/Makefile + contrib/wok.spec.fedora + contrib/wok.spec.suse ],[ chmod +x po/gen-pot ]) diff --git a/contrib/Makefile.am b/contrib/Makefile.am index 393306f..b537df5 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -18,11 +18,11 @@ SUBDIRS = DEBIAN EXTRA_DIST = \ check_i18n.py \ - kimchid.sysvinit \ - kimchid.service.fedora \ - kimchi.spec.fedora.in \ - kimchid-upstart.conf.debian \ - kimchid-upstart.conf.fedora \ + wokd.sysvinit \ + wokd.service.fedora \ + wok.spec.fedora.in \ + wokd-upstart.conf.debian \ + wokd-upstart.conf.fedora \ make-deb.sh.in \ $(NULL) @@ -35,4 +35,4 @@ make-deb.sh: make-deb.sh.in $(top_builddir)/config.status mv $@-t $@ BUILT_SOURCES = make-deb.sh -CLEANFILES = kimchi.spec.fedora kimchi.spec.suse kimchi.spec make-deb.sh +CLEANFILES = wok.spec.fedora wok.spec.suse wok.spec make-deb.sh diff --git a/docs/Makefile.am b/docs/Makefile.am index 2f686f1..db23721 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -17,15 +17,12 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -docdir = $(datadir)/kimchi/doc +docdir = $(datadir)/wok/doc dist_doc_DATA = \ API.md \ README.md \ - README-federation.md \ - kimchi-guest.png \ - kimchi-templates.png \ - kimchid.8 \ + wokd.8 \ $(NULL) -CLEANFILES = kimchid.8 +CLEANFILES = wokd.8 diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 894d28e..21a6ece 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -22,4 +22,4 @@ SUBDIRS = sample plugins_PYTHON = \ __init__.py -pluginsdir = $(pythondir)/kimchi/plugins +pluginsdir = $(pythondir)/wok/plugins diff --git a/po/Makevars b/po/Makevars index c29a807..e135764 100644 --- a/po/Makevars +++ b/po/Makevars @@ -1,7 +1,7 @@ # Makefile variables for PO directory in any package using GNU gettext. # Usually the message domain is the same as the package name. -DOMAIN = kimchi +DOMAIN = wok # These two variables depend on the location of this directory. subdir = po diff --git a/po/POTFILES.in b/po/POTFILES.in index 57bc711..aae0ca9 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,4 +1,3 @@ # List of source files which contain translatable strings. -src/kimchi/i18n.py +src/wok/i18n.py ui/pages/*.tmpl -ui/pages/tabs/*.tmpl diff --git a/po/gen-pot.in b/po/gen-pot.in index 0e3cd10..7ccf28b 100644 --- a/po/gen-pot.in +++ b/po/gen-pot.in @@ -6,4 +6,4 @@ for src in $@; do else cat $src | @CHEETAH@ compile - fi -done | xgettext --no-location -o kimchi.pot -L Python - +done | xgettext --no-location -o wok.pot -L Python - diff --git a/src/Makefile.am b/src/Makefile.am index e0e0821..2fed7d5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -17,19 +17,19 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -SUBDIRS = kimchi distros.d nginx +SUBDIRS = wok nginx -EXTRA_DIST = kimchid.in \ - kimchi.conf.in \ +EXTRA_DIST = wokd.in \ + wok.conf.in \ firewalld.xml \ $(NULL) -bin_SCRIPTS = kimchid +bin_SCRIPTS = wokd -confdir = $(sysconfdir)/kimchi -dist_conf_DATA = kimchi.conf template.conf +confdir = $(sysconfdir)/wok +dist_conf_DATA = wok.conf -BUILT_SOURCES = kimchi.conf +BUILT_SOURCES = wok.conf do_substitution = \ sed -e 's,[@]pythondir[@],$(pythondir),g' \ @@ -38,12 +38,12 @@ do_substitution = \ -e 's,[@]VERSION[@],$(VERSION),g' -kimchid: kimchid.in Makefile - $(do_substitution) < $(srcdir)/kimchid.in > kimchid - chmod +x kimchid +wokd: wokd.in Makefile + $(do_substitution) < $(srcdir)/wokd.in > wokd + chmod +x wokd -kimchi.conf: kimchi.conf.in Makefile - $(do_substitution) < kimchi.conf.in > kimchi.conf +wok.conf: wok.conf.in Makefile + $(do_substitution) < wok.conf.in > wok.conf # Generate unique Diffie-Hellman group with 2048-bit all-local: dhparams.pem diff --git a/src/nginx/Makefile.am b/src/nginx/Makefile.am index c754947..0f36b44 100644 --- a/src/nginx/Makefile.am +++ b/src/nginx/Makefile.am @@ -17,9 +17,9 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -EXTRA_DIST = kimchi.conf.in +EXTRA_DIST = wok.conf.in confdir = $(sysconfdir)/nginx/conf.d -dist_conf_DATA = kimchi.conf.in +dist_conf_DATA = wok.conf.in -CLEANFILES = kimchi.conf +CLEANFILES = wok.conf diff --git a/src/wok/Makefile.am b/src/wok/Makefile.am index 5c204e0..6e00907 100644 --- a/src/wok/Makefile.am +++ b/src/wok/Makefile.am @@ -19,9 +19,9 @@ SUBDIRS = control model xmlutils -kimchi_PYTHON = $(filter-out config.py, $(wildcard *.py)) +wok_PYTHON = $(filter-out config.py, $(wildcard *.py)) -nodist_kimchi_PYTHON = config.py +nodist_wok_PYTHON = config.py EXTRA_DIST = \ API.json \ @@ -33,14 +33,14 @@ else WITH_SPICE=no endif -kimchidir = $(pythondir)/kimchi +wokdir = $(pythondir)/wok install-data-local: - $(MKDIR_P) $(DESTDIR)$(kimchidir) - $(INSTALL_DATA) API.json $(DESTDIR)$(kimchidir)/API.json + $(MKDIR_P) $(DESTDIR)$(wokdir) + $(INSTALL_DATA) API.json $(DESTDIR)$(wokdir)/API.json uninstall-local: - $(RM) $(DESTDIR)$(kimchidir)/API.json + $(RM) $(DESTDIR)$(wokdir)/API.json do_substitution = \ sed -e 's,[@]prefix[@],$(prefix),g' \ @@ -48,9 +48,9 @@ do_substitution = \ -e 's,[@]sysconfdir[@],$(sysconfdir),g' \ -e 's,[@]localstatedir[@],$(localstatedir),g' \ -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \ - -e 's,[@]kimchidir[@],$(kimchidir),g' \ - -e 's,[@]kimchiversion[@],$(PACKAGE_VERSION),g' \ - -e 's,[@]kimchirelease[@],$(PACKAGE_RELEASE),g' \ + -e 's,[@]wokdir[@],$(wokdir),g' \ + -e 's,[@]wokversion[@],$(PACKAGE_VERSION),g' \ + -e 's,[@]wokrelease[@],$(PACKAGE_RELEASE),g' \ -e 's,[@]withspice[@],$(WITH_SPICE),g' diff --git a/src/wok/config.py.in b/src/wok/config.py.in index 8cc63e7..019f42f 100644 --- a/src/wok/config.py.in +++ b/src/wok/config.py.in @@ -136,7 +136,7 @@ class Paths(object): else: base = os.path.dirname('./%s' % __file__) - if os.access('%s/../../src/kimchi/config.py' % base, os.F_OK): + if os.access('%s/../../src/wok/config.py' % base, os.F_OK): return os.path.abspath('%s/../..' % base) else: return '@pkgdatadir@' diff --git a/src/wok/control/Makefile.am b/src/wok/control/Makefile.am index fee98dc..d6cb3f0 100644 --- a/src/wok/control/Makefile.am +++ b/src/wok/control/Makefile.am @@ -17,11 +17,9 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -SUBDIRS = vm - control_PYTHON = *.py -controldir = $(pythondir)/kimchi/control +controldir = $(pythondir)/wok/control install-data-local: $(MKDIR_P) $(DESTDIR)$(controldir) diff --git a/src/wok/model/Makefile.am b/src/wok/model/Makefile.am index a6ccbf0..8f0f102 100644 --- a/src/wok/model/Makefile.am +++ b/src/wok/model/Makefile.am @@ -19,7 +19,7 @@ model_PYTHON = *.py -modeldir = $(pythondir)/kimchi/model +modeldir = $(pythondir)/wok/model install-data-local: $(MKDIR_P) $(DESTDIR)$(modeldir) diff --git a/src/wok/xmlutils/Makefile.am b/src/wok/xmlutils/Makefile.am index 73f86f4..69aa524 100644 --- a/src/wok/xmlutils/Makefile.am +++ b/src/wok/xmlutils/Makefile.am @@ -19,7 +19,7 @@ xmlutils_PYTHON = *.py -xmlutilsdir = $(pythondir)/kimchi/xmlutils +xmlutilsdir = $(pythondir)/wok/xmlutils install-data-local: $(MKDIR_P) $(DESTDIR)$(xmlutilsdir) diff --git a/ui/Makefile.am b/ui/Makefile.am index d541355..e534d62 100644 --- a/ui/Makefile.am +++ b/ui/Makefile.am @@ -15,8 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -SUBDIRS = css images js libs pages spice-html5 +SUBDIRS = css images js libs pages -uidir = $(datadir)/kimchi/ui +uidir = $(datadir)/wok/ui dist_ui_DATA = robots.txt diff --git a/ui/css/Makefile.am b/ui/css/Makefile.am index f4f3dac..29ddb26 100644 --- a/ui/css/Makefile.am +++ b/ui/css/Makefile.am @@ -17,7 +17,7 @@ EXTRA_DIST = theme-default -cssdir = $(datadir)/kimchi/ui/css +cssdir = $(datadir)/wok/ui/css dist_css_DATA = theme-default.min.css theme-default.min.css: theme-default/*.css diff --git a/ui/images/Makefile.am b/ui/images/Makefile.am index 7b63d23..297c0bd 100644 --- a/ui/images/Makefile.am +++ b/ui/images/Makefile.am @@ -17,6 +17,6 @@ SUBDIRS = theme-default -imagedir = $(datadir)/kimchi/ui/images +imagedir = $(datadir)/wok/ui/images -dist_image_DATA = *.png *.ico +dist_image_DATA = *.ico diff --git a/ui/images/theme-default/Makefile.am b/ui/images/theme-default/Makefile.am index 7c69b2a..336729c 100644 --- a/ui/images/theme-default/Makefile.am +++ b/ui/images/theme-default/Makefile.am @@ -15,6 +15,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -imagedir = $(datadir)/kimchi/ui/images/theme-default +imagedir = $(datadir)/wok/ui/images/theme-default dist_image_DATA = *.png *.gif diff --git a/ui/js/Makefile.am b/ui/js/Makefile.am index d0653b9..2549846 100644 --- a/ui/js/Makefile.am +++ b/ui/js/Makefile.am @@ -17,11 +17,11 @@ EXTRA_DIST = src widgets -jsdir = $(datadir)/kimchi/ui/js +jsdir = $(datadir)/wok/ui/js -dist_js_DATA = kimchi.min.js $(filter-out kimchi.min.js, $(wildcard *.js)) +dist_js_DATA = wok.min.js $(filter-out wok.min.js, $(wildcard *.js)) -kimchi.min.js: widgets/*.js src/*.js +wok.min.js: widgets/*.js src/*.js cat $(sort $^) > $@ -CLEANFILES = kimchi.min.js +CLEANFILES = wok.min.js diff --git a/ui/libs/Makefile.am b/ui/libs/Makefile.am index a2acce2..49ad3bb 100644 --- a/ui/libs/Makefile.am +++ b/ui/libs/Makefile.am @@ -17,6 +17,6 @@ SUBDIRS = themes -jsdir = $(datadir)/kimchi/ui/libs +jsdir = $(datadir)/wok/ui/libs dist_js_DATA = $(wildcard *.js) $(NULL) diff --git a/ui/libs/themes/base/Makefile.am b/ui/libs/themes/base/Makefile.am index d7454f0..1bbaa50 100644 --- a/ui/libs/themes/base/Makefile.am +++ b/ui/libs/themes/base/Makefile.am @@ -17,6 +17,6 @@ SUBDIRS = images -basedir = $(datadir)/kimchi/ui/libs/themes/base +basedir = $(datadir)/wok/ui/libs/themes/base dist_base_DATA = $(wildcard *.css) $(NULL) diff --git a/ui/libs/themes/base/images/Makefile.am b/ui/libs/themes/base/images/Makefile.am index 312cbeb..5388542 100644 --- a/ui/libs/themes/base/images/Makefile.am +++ b/ui/libs/themes/base/images/Makefile.am @@ -15,6 +15,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -imagesdir = $(datadir)/kimchi/ui/libs/themes/base/images +imagesdir = $(datadir)/wok/ui/libs/themes/base/images dist_images_DATA = *.png *.gif diff --git a/ui/pages/Makefile.am b/ui/pages/Makefile.am index a22afc1..68f4c92 100644 --- a/ui/pages/Makefile.am +++ b/ui/pages/Makefile.am @@ -15,8 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -SUBDIRS = help tabs websockify +SUBDIRS = websockify -htmldir = $(datadir)/kimchi/ui/pages +htmldir = $(datadir)/wok/ui/pages dist_html_DATA = $(wildcard *.tmpl) $(NULL) diff --git a/ui/pages/websockify/Makefile.am b/ui/pages/websockify/Makefile.am index d498242..5321562 100644 --- a/ui/pages/websockify/Makefile.am +++ b/ui/pages/websockify/Makefile.am @@ -15,6 +15,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -websockifyhtmldir = $(datadir)/kimchi/ui/pages/websockify +websockifyhtmldir = $(datadir)/wok/ui/pages/websockify dist_websockifyhtml_DATA = $(wildcard *.html) $(NULL) -- 1.7.1

- Reflect new plugin structure in all base files. - Add kimchi plugin specifics (spice, config.py) - Remove wok specifics Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/.gitignore | 8 +-- plugins/kimchi/Makefile.am | 94 +++++++++----------- plugins/kimchi/configure.ac | 44 ++------- plugins/kimchi/contrib/Makefile.am | 4 - plugins/kimchi/control/Makefile.am | 2 +- plugins/kimchi/control/vm/Makefile.am | 2 +- plugins/kimchi/docs/Makefile.am | 3 - plugins/kimchi/model/Makefile.am | 2 +- plugins/kimchi/po/POTFILES.in | 3 +- plugins/kimchi/tests/Makefile.am | 2 +- plugins/kimchi/ui/Makefile.am | 4 +- plugins/kimchi/ui/config/Makefile.am | 4 +- plugins/kimchi/ui/css/Makefile.am | 2 +- plugins/kimchi/ui/images/Makefile.am | 2 +- plugins/kimchi/ui/images/theme-default/Makefile.am | 2 +- plugins/kimchi/ui/js/Makefile.am | 2 +- plugins/kimchi/ui/libs/Makefile.am | 2 +- plugins/kimchi/ui/libs/themes/base/Makefile.am | 2 +- .../kimchi/ui/libs/themes/base/images/Makefile.am | 2 +- plugins/kimchi/ui/pages/Makefile.am | 4 +- plugins/kimchi/ui/pages/help/Makefile.am | 2 +- plugins/kimchi/ui/pages/help/de_DE/Makefile.am | 2 +- plugins/kimchi/ui/pages/help/en_US/Makefile.am | 2 +- plugins/kimchi/ui/pages/help/es_ES/Makefile.am | 2 +- plugins/kimchi/ui/pages/help/fr_FR/Makefile.am | 2 +- plugins/kimchi/ui/pages/help/it_IT/Makefile.am | 2 +- plugins/kimchi/ui/pages/help/ja_JP/Makefile.am | 2 +- plugins/kimchi/ui/pages/help/ko_KR/Makefile.am | 2 +- plugins/kimchi/ui/pages/help/pt_BR/Makefile.am | 2 +- plugins/kimchi/ui/pages/help/ru_RU/Makefile.am | 2 +- plugins/kimchi/ui/pages/help/zh_CN/Makefile.am | 2 +- plugins/kimchi/ui/pages/help/zh_TW/Makefile.am | 2 +- plugins/kimchi/ui/pages/tabs/Makefile.am | 2 +- plugins/kimchi/ui/spice-html5/Makefile.am | 2 +- plugins/kimchi/ui/spice-html5/css/Makefile.am | 2 +- plugins/kimchi/ui/spice-html5/pages/Makefile.am | 2 +- .../kimchi/ui/spice-html5/thirdparty/Makefile.am | 2 +- plugins/kimchi/xmlutils/Makefile.am | 2 +- 38 files changed, 92 insertions(+), 134 deletions(-) diff --git a/plugins/kimchi/.gitignore b/plugins/kimchi/.gitignore index b3988b6..1dae610 100644 --- a/plugins/kimchi/.gitignore +++ b/plugins/kimchi/.gitignore @@ -16,25 +16,19 @@ build-aux/missing build-aux/py-compile configure config.log +config.py config.status contrib/DEBIAN/control contrib/kimchi.spec.fedora contrib/kimchi.spec.suse contrib/make-deb.sh -docs/kimchid.8 *.min.css *.min.js *.gmo stamp-po kimchi-*.tar.gz -src/kimchid -src/kimchi.conf -src/nginx/kimchi.conf -src/kimchi/config.py tests/run_tests.sh tests/test_config.py -plugins/sample/po/POTFILES -plugins/sample/sample.conf po/POTFILES po/gen-pot *.orig diff --git a/plugins/kimchi/Makefile.am b/plugins/kimchi/Makefile.am index 1a0c8e7..1e1287b 100644 --- a/plugins/kimchi/Makefile.am +++ b/plugins/kimchi/Makefile.am @@ -16,9 +16,24 @@ # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -SUBDIRS = src ui docs contrib tests po config plugins -man_MANS = docs/kimchid.8 +SUBDIRS = contrib control distros.d docs model po tests ui xmlutils + +kimchi_PYTHON = $(filter-out config.py, $(wildcard *.py)) + +nodist_kimchi_PYTHON = config.py + +if WITH_SPICE +WITH_SPICE=yes +else +WITH_SPICE=no +endif + +wokdir = $(pythondir)/wok +kimchidir = $(pythondir)/wok/plugins/kimchi + +confdir = $(sysconfdir)/wok/plugins.d +dist_conf_DATA = kimchi.conf template.conf AUTOMAKE_OPTIONS = foreign @@ -26,28 +41,26 @@ ACLOCAL_AMFLAGS = --install -I m4 EXTRA_DIST = \ config.rpath \ + API.json \ autogen.sh \ COPYING.ASL2 \ COPYING.LGPL \ CONTRIBUTE.md \ VERSION \ build-aux/pkg-version \ + config.py.in \ $(NULL) -PEP8_BLACKLIST = *src/kimchi/config.py,*src/kimchi/i18n.py,*tests/test_config.py +PEP8_BLACKLIST = *config.py,*i18n.py,*tests/test_config.py -SKIP_PYFLAKES_ERR = "\./src/kimchi/websocket\.py" - -I18N_FILES = plugins/*/i18n.py \ - src/kimchi/i18n.py \ +I18N_FILES = i18n.py \ $(NULL) check-local: - PYTHONPATH=src contrib/check_i18n.py $(I18N_FILES) + contrib/check_i18n.py $(I18N_FILES) find . -path './.git' -prune -type f -o \ -name '*.py' -o -name '*.py.in' | xargs $(PYFLAKES) | \ - grep -w -v $(SKIP_PYFLAKES_ERR) | \ while read LINE; do echo "$$LINE"; false; done $(PEP8) --version @@ -63,6 +76,22 @@ all-local: ln -sf ../../../po/$$L.gmo $$dir/kimchi.mo ; \ done < po/LINGUAS +do_substitution = \ + sed -e 's,[@]prefix[@],$(prefix),g' \ + -e 's,[@]datadir[@],$(datadir),g' \ + -e 's,[@]sysconfdir[@],$(sysconfdir),g' \ + -e 's,[@]localstatedir[@],$(localstatedir),g' \ + -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \ + -e 's,[@]wokdir[@],$(wokdir),g' \ + -e 's,[@]kimchidir[@],$(kimchidir),g' \ + -e 's,[@]kimchiversion[@],$(PACKAGE_VERSION),g' \ + -e 's,[@]kimchirelease[@],$(PACKAGE_RELEASE),g' \ + -e 's,[@]withspice[@],$(WITH_SPICE),g' + +config.py: config.py.in Makefile + $(do_substitution) < $(srcdir)/config.py.in > config.py + + # # Packaging helpers # @@ -71,15 +100,7 @@ install-deb: install cp -R $(top_srcdir)/contrib/DEBIAN $(DESTDIR)/ mkdir -p $(DESTDIR)/var/lib/kimchi/debugreports mkdir -p $(DESTDIR)/var/lib/kimchi/screenshots - mkdir -p $(DESTDIR)/var/lib/kimchi/vnc-tokens mkdir -p $(DESTDIR)/var/lib/kimchi/isos - touch $(DESTDIR)/var/lib/kimchi/objectstore - $(MKDIR_P) $(DESTDIR)/etc/init - $(MKDIR_P) $(DESTDIR)/usr/lib/firewalld/services - cp -R $(top_srcdir)/contrib/kimchid-upstart.conf.debian \ - $(DESTDIR)/etc/init/kimchid.conf - cp -R $(top_srcdir)/src/firewalld.xml \ - $(DESTDIR)/usr/lib/firewalld/services/kimchid.xml deb: contrib/make-deb.sh @@ -115,41 +136,13 @@ ChangeLog: fi install-data-local: - @if test -d $(systemdsystemunitdir) ; then \ - mkdir -p $(DESTDIR)/$(systemdsystemunitdir); \ - $(INSTALL_DATA) contrib/kimchid.service.fedora $(DESTDIR)/$(systemdsystemunitdir)/kimchid.service; \ - else \ - mkdir -p $(DESTDIR)/etc/init.d/ \ - $(INSTALL_DATA) contrib/kimchid.sysvinit $(DESTDIR)/etc/init.d/kimchid; \ - chmod +x $(DESTDIR)/etc/init.d/kimchid; \ - fi; \ - if test -d /usr/lib/firewalld/services/; then \ - mkdir -p $(DESTDIR)/usr/lib/firewalld/services/; \ - $(INSTALL_DATA) src/firewalld.xml $(DESTDIR)/usr/lib/firewalld/services/kimchid.xml; \ - fi; \ - mkdir -p $(DESTDIR)/var/lib/kimchi/{debugreports,screenshots,vnc-tokens,isos} - touch $(DESTDIR)/var/lib/kimchi/objectstore - mkdir -p $(DESTDIR)/var/log/kimchi/ - touch $(DESTDIR)/var/log/kimchi/kimchi-access.log - touch $(DESTDIR)/var/log/kimchi/kimchi-error.log - mkdir -p $(DESTDIR)/etc/kimchi/ - $(INSTALL_DATA) src/dhparams.pem $(DESTDIR)/etc/kimchi/dhparams.pem - touch $(DESTDIR)/etc/nginx/conf.d/kimchi.conf + $(MKDIR_P) $(DESTDIR)$(kimchidir) + $(INSTALL_DATA) API.json $(DESTDIR)$(kimchidir)/API.json + mkdir -p $(DESTDIR)/var/lib/kimchi/{debugreports,screenshots,isos} uninstall-local: - @if test -f $(systemdsystemunitdir)/kimchid.service; then \ - $(RM) $(DESTDIR)/$(systemdsystemunitdir)/kimchid.service; \ - elif test -f /etc/init.d/kimchid; then \ - $(RM) $(DESTDIR)/etc/init.d/kimchid; \ - $(RM) $(DESTDIR)/etc/init/kimchi.conf; \ - fi; \ - if test -d /usr/lib/firewalld/services/; then \ - $(RM) $(DESTDIR)/usr/lib/firewalld/services/kimchid.xml; \ - fi; \ + $(RM) $(DESTDIR)$(kimchidir)/API.json $(RM) -rf $(DESTDIR)/var/lib/kimchi - $(RM) -rf $(DESTDIR)/var/log/kimchi - $(RM) -rf $(DESTDIR)/etc/kimchi - $(RM) $(DESTDIR)/etc/nginx/conf.d/kimchi.conf VERSION: @if test -d .git; then \ @@ -162,4 +155,5 @@ VERSION: clean-local: rm -rf mo rpm -CLEANFILES = kimchi.spec `find "$(top_srcdir)" -type f -name "*.pyc" -print` +BUILT_SOURCES = config.py +CLEANFILES = config.py kimchi.spec `find "$(top_srcdir)" -type f -name "*.pyc" -print` diff --git a/plugins/kimchi/configure.ac b/plugins/kimchi/configure.ac index 0261b5f..843307a 100644 --- a/plugins/kimchi/configure.ac +++ b/plugins/kimchi/configure.ac @@ -64,15 +64,6 @@ else AC_SUBST([ENABLE_SAMPLE], [False]) fi -# check for systemd -PKG_PROG_PKG_CONFIG -AC_ARG_WITH([systemdsystemunitdir], - AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), - [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]) -if test "x$with_systemdsystemunitdir" != xno; then - AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) -fi - AC_ARG_WITH( [spice-html5], [AS_HELP_STRING([--with-spice-html5], @@ -87,36 +78,24 @@ AC_CONFIG_FILES([ po/gen-pot Makefile docs/Makefile - docs/kimchid.8 - src/Makefile - src/distros.d/Makefile - src/nginx/Makefile - src/kimchi/Makefile - src/kimchi/control/Makefile - src/kimchi/control/vm/Makefile - src/kimchi/model/Makefile - src/kimchi/xmlutils/Makefile - plugins/Makefile - plugins/sample/Makefile - plugins/sample/po/Makefile.in - plugins/sample/sample.conf - plugins/sample/ui/Makefile - plugins/sample/ui/config/Makefile - plugins/sample/ui/js/Makefile - plugins/sample/ui/pages/Makefile + distros.d/Makefile + control/Makefile + control/vm/Makefile + model/Makefile ui/Makefile + ui/config/Makefile ui/css/Makefile ui/images/Makefile ui/images/theme-default/Makefile ui/js/Makefile - ui/spice-html5/Makefile - ui/spice-html5/css/Makefile - ui/spice-html5/pages/Makefile - ui/spice-html5/thirdparty/Makefile ui/libs/Makefile ui/libs/themes/Makefile ui/libs/themes/base/Makefile ui/libs/themes/base/images/Makefile + ui/spice-html5/Makefile + ui/spice-html5/css/Makefile + ui/spice-html5/pages/Makefile + ui/spice-html5/thirdparty/Makefile ui/pages/Makefile ui/pages/help/Makefile ui/pages/help/en_US/Makefile @@ -130,16 +109,13 @@ AC_CONFIG_FILES([ ui/pages/help/ru_RU/Makefile ui/pages/help/zh_CN/Makefile ui/pages/help/zh_TW/Makefile - ui/pages/tabs/Makefile - ui/pages/websockify/Makefile contrib/Makefile contrib/DEBIAN/Makefile contrib/DEBIAN/control contrib/kimchi.spec.fedora contrib/kimchi.spec.suse tests/Makefile - config/Makefile - config/ui/Makefile + xmlutils/Makefile ],[ chmod +x po/gen-pot ]) diff --git a/plugins/kimchi/contrib/Makefile.am b/plugins/kimchi/contrib/Makefile.am index 393306f..5001191 100644 --- a/plugins/kimchi/contrib/Makefile.am +++ b/plugins/kimchi/contrib/Makefile.am @@ -18,11 +18,7 @@ SUBDIRS = DEBIAN EXTRA_DIST = \ check_i18n.py \ - kimchid.sysvinit \ - kimchid.service.fedora \ kimchi.spec.fedora.in \ - kimchid-upstart.conf.debian \ - kimchid-upstart.conf.fedora \ make-deb.sh.in \ $(NULL) diff --git a/plugins/kimchi/control/Makefile.am b/plugins/kimchi/control/Makefile.am index fee98dc..33118ca 100644 --- a/plugins/kimchi/control/Makefile.am +++ b/plugins/kimchi/control/Makefile.am @@ -21,7 +21,7 @@ SUBDIRS = vm control_PYTHON = *.py -controldir = $(pythondir)/kimchi/control +controldir = $(pythondir)/wok/plugins/kimchi/control install-data-local: $(MKDIR_P) $(DESTDIR)$(controldir) diff --git a/plugins/kimchi/control/vm/Makefile.am b/plugins/kimchi/control/vm/Makefile.am index e57b907..b17c68a 100644 --- a/plugins/kimchi/control/vm/Makefile.am +++ b/plugins/kimchi/control/vm/Makefile.am @@ -20,7 +20,7 @@ vm_PYTHON = *.py -vmdir = $(pythondir)/kimchi/control/vm +vmdir = $(pythondir)/wok/plugins/kimchi/control/vm install-data-local: $(MKDIR_P) $(DESTDIR)$(vmdir) diff --git a/plugins/kimchi/docs/Makefile.am b/plugins/kimchi/docs/Makefile.am index 2f686f1..679aa18 100644 --- a/plugins/kimchi/docs/Makefile.am +++ b/plugins/kimchi/docs/Makefile.am @@ -25,7 +25,4 @@ dist_doc_DATA = \ README-federation.md \ kimchi-guest.png \ kimchi-templates.png \ - kimchid.8 \ $(NULL) - -CLEANFILES = kimchid.8 diff --git a/plugins/kimchi/model/Makefile.am b/plugins/kimchi/model/Makefile.am index a6ccbf0..f4f4750 100644 --- a/plugins/kimchi/model/Makefile.am +++ b/plugins/kimchi/model/Makefile.am @@ -19,7 +19,7 @@ model_PYTHON = *.py -modeldir = $(pythondir)/kimchi/model +modeldir = $(pythondir)/wok/plugins/kimchi/model install-data-local: $(MKDIR_P) $(DESTDIR)$(modeldir) diff --git a/plugins/kimchi/po/POTFILES.in b/plugins/kimchi/po/POTFILES.in index 57bc711..92eef1e 100644 --- a/plugins/kimchi/po/POTFILES.in +++ b/plugins/kimchi/po/POTFILES.in @@ -1,4 +1,3 @@ # List of source files which contain translatable strings. -src/kimchi/i18n.py +i18n.py ui/pages/*.tmpl -ui/pages/tabs/*.tmpl diff --git a/plugins/kimchi/tests/Makefile.am b/plugins/kimchi/tests/Makefile.am index 09dce6c..c1f6784 100644 --- a/plugins/kimchi/tests/Makefile.am +++ b/plugins/kimchi/tests/Makefile.am @@ -31,7 +31,7 @@ do_substitution = \ -e 's,[@]prefix[@],$(prefix),g' \ -e 's,[@]datadir[@],$(datadir),g' \ -e 's,[@]PYTHON_VERSION[@],$(PYTHON_VERSION),g' \ - -e 's,[@]kimchidir[@],$(pythondir)/kimchi,g' \ + -e 's,[@]wokdir[@],$(pythondir)/wok,g' \ -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' diff --git a/plugins/kimchi/ui/Makefile.am b/plugins/kimchi/ui/Makefile.am index 208d3e3..386aa78 100644 --- a/plugins/kimchi/ui/Makefile.am +++ b/plugins/kimchi/ui/Makefile.am @@ -15,4 +15,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -SUBDIRS = ui +SUBDIRS = config css images js libs pages spice-html5 + +uidir = $(datadir)/wok/plugins/kimchi/ui diff --git a/plugins/kimchi/ui/config/Makefile.am b/plugins/kimchi/ui/config/Makefile.am index 32b74e3..e3b3d19 100644 --- a/plugins/kimchi/ui/config/Makefile.am +++ b/plugins/kimchi/ui/config/Makefile.am @@ -15,8 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -xmldir = $(datadir)/kimchi/config/ui +xmldir = $(datadir)/wok/plugins/kimchi/ui/config dist_xml_DATA = \ - tabs.xml \ + tab-ext.xml \ $(NULL) diff --git a/plugins/kimchi/ui/css/Makefile.am b/plugins/kimchi/ui/css/Makefile.am index f4f3dac..5071d29 100644 --- a/plugins/kimchi/ui/css/Makefile.am +++ b/plugins/kimchi/ui/css/Makefile.am @@ -17,7 +17,7 @@ EXTRA_DIST = theme-default -cssdir = $(datadir)/kimchi/ui/css +cssdir = $(datadir)/wok/plugins/kimchi/ui/css dist_css_DATA = theme-default.min.css theme-default.min.css: theme-default/*.css diff --git a/plugins/kimchi/ui/images/Makefile.am b/plugins/kimchi/ui/images/Makefile.am index 7b63d23..0562e6a 100644 --- a/plugins/kimchi/ui/images/Makefile.am +++ b/plugins/kimchi/ui/images/Makefile.am @@ -17,6 +17,6 @@ SUBDIRS = theme-default -imagedir = $(datadir)/kimchi/ui/images +imagedir = $(datadir)/wok/plugins/kimchi/ui/images dist_image_DATA = *.png *.ico diff --git a/plugins/kimchi/ui/images/theme-default/Makefile.am b/plugins/kimchi/ui/images/theme-default/Makefile.am index 7c69b2a..7e11d75 100644 --- a/plugins/kimchi/ui/images/theme-default/Makefile.am +++ b/plugins/kimchi/ui/images/theme-default/Makefile.am @@ -15,6 +15,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -imagedir = $(datadir)/kimchi/ui/images/theme-default +imagedir = $(datadir)/wok/plugins/kimchi/ui/images/theme-default dist_image_DATA = *.png *.gif diff --git a/plugins/kimchi/ui/js/Makefile.am b/plugins/kimchi/ui/js/Makefile.am index d0653b9..50f5f77 100644 --- a/plugins/kimchi/ui/js/Makefile.am +++ b/plugins/kimchi/ui/js/Makefile.am @@ -17,7 +17,7 @@ EXTRA_DIST = src widgets -jsdir = $(datadir)/kimchi/ui/js +jsdir = $(datadir)/wok/plugins/kimchi/ui/js dist_js_DATA = kimchi.min.js $(filter-out kimchi.min.js, $(wildcard *.js)) diff --git a/plugins/kimchi/ui/libs/Makefile.am b/plugins/kimchi/ui/libs/Makefile.am index a2acce2..818c4ec 100644 --- a/plugins/kimchi/ui/libs/Makefile.am +++ b/plugins/kimchi/ui/libs/Makefile.am @@ -17,6 +17,6 @@ SUBDIRS = themes -jsdir = $(datadir)/kimchi/ui/libs +jsdir = $(datadir)/wok/plugins/kimchi/ui/libs dist_js_DATA = $(wildcard *.js) $(NULL) diff --git a/plugins/kimchi/ui/libs/themes/base/Makefile.am b/plugins/kimchi/ui/libs/themes/base/Makefile.am index d7454f0..70326ba 100644 --- a/plugins/kimchi/ui/libs/themes/base/Makefile.am +++ b/plugins/kimchi/ui/libs/themes/base/Makefile.am @@ -17,6 +17,6 @@ SUBDIRS = images -basedir = $(datadir)/kimchi/ui/libs/themes/base +basedir = $(datadir)/wok/plugins/kimchi/ui/libs/themes/base dist_base_DATA = $(wildcard *.css) $(NULL) diff --git a/plugins/kimchi/ui/libs/themes/base/images/Makefile.am b/plugins/kimchi/ui/libs/themes/base/images/Makefile.am index 312cbeb..e20b434 100644 --- a/plugins/kimchi/ui/libs/themes/base/images/Makefile.am +++ b/plugins/kimchi/ui/libs/themes/base/images/Makefile.am @@ -15,6 +15,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -imagesdir = $(datadir)/kimchi/ui/libs/themes/base/images +imagesdir = $(datadir)/wok/plugins/kimchi/ui/libs/themes/base/images dist_images_DATA = *.png *.gif diff --git a/plugins/kimchi/ui/pages/Makefile.am b/plugins/kimchi/ui/pages/Makefile.am index a22afc1..076b814 100644 --- a/plugins/kimchi/ui/pages/Makefile.am +++ b/plugins/kimchi/ui/pages/Makefile.am @@ -15,8 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -SUBDIRS = help tabs websockify +SUBDIRS = help tabs -htmldir = $(datadir)/kimchi/ui/pages +htmldir = $(datadir)/wok/plugins/kimchi/ui/pages dist_html_DATA = $(wildcard *.tmpl) $(NULL) diff --git a/plugins/kimchi/ui/pages/help/Makefile.am b/plugins/kimchi/ui/pages/help/Makefile.am index 5c04319..0fbe47b 100644 --- a/plugins/kimchi/ui/pages/help/Makefile.am +++ b/plugins/kimchi/ui/pages/help/Makefile.am @@ -22,7 +22,7 @@ DITA_XSL_FILE = dita-help.xsl EXTRA_DIST = gen-index.py\ $(DITA_XSL_FILE) -helpdir = $(datadir)/kimchi/ui/pages/help +helpdir = $(datadir)/wok/plugins/kimchi/ui/pages/help dist_help_DATA = kimchi.css diff --git a/plugins/kimchi/ui/pages/help/de_DE/Makefile.am b/plugins/kimchi/ui/pages/help/de_DE/Makefile.am index ab1c769..3d99aae 100644 --- a/plugins/kimchi/ui/pages/help/de_DE/Makefile.am +++ b/plugins/kimchi/ui/pages/help/de_DE/Makefile.am @@ -14,7 +14,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -de_DE_helpdir = $(datadir)/kimchi/ui/pages/help/de_DE +de_DE_helpdir = $(datadir)/wok/plugins/kimchi/ui/pages/help/de_DE dist_de_DE_help_DATA = $(wildcard *.html) $(NULL) diff --git a/plugins/kimchi/ui/pages/help/en_US/Makefile.am b/plugins/kimchi/ui/pages/help/en_US/Makefile.am index d5ab24f..d37f03a 100644 --- a/plugins/kimchi/ui/pages/help/en_US/Makefile.am +++ b/plugins/kimchi/ui/pages/help/en_US/Makefile.am @@ -14,7 +14,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -en_US_helpdir = $(datadir)/kimchi/ui/pages/help/en_US +en_US_helpdir = $(datadir)/wok/plugins/kimchi/ui/pages/help/en_US dist_en_US_help_DATA = $(wildcard *.html) $(NULL) diff --git a/plugins/kimchi/ui/pages/help/es_ES/Makefile.am b/plugins/kimchi/ui/pages/help/es_ES/Makefile.am index a3317a6..29c596f 100644 --- a/plugins/kimchi/ui/pages/help/es_ES/Makefile.am +++ b/plugins/kimchi/ui/pages/help/es_ES/Makefile.am @@ -14,7 +14,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -es_ES_helpdir = $(datadir)/kimchi/ui/pages/help/es_ES +es_ES_helpdir = $(datadir)/wok/plugins/kimchi/ui/pages/help/es_ES dist_es_ES_help_DATA = $(wildcard *.html) $(NULL) diff --git a/plugins/kimchi/ui/pages/help/fr_FR/Makefile.am b/plugins/kimchi/ui/pages/help/fr_FR/Makefile.am index a5eba5a..11ce394 100644 --- a/plugins/kimchi/ui/pages/help/fr_FR/Makefile.am +++ b/plugins/kimchi/ui/pages/help/fr_FR/Makefile.am @@ -14,7 +14,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -fr_FR_helpdir = $(datadir)/kimchi/ui/pages/help/fr_FR +fr_FR_helpdir = $(datadir)/wok/plugins/kimchi/ui/pages/help/fr_FR dist_fr_FR_help_DATA = $(wildcard *.html) $(NULL) diff --git a/plugins/kimchi/ui/pages/help/it_IT/Makefile.am b/plugins/kimchi/ui/pages/help/it_IT/Makefile.am index c828f26..62e2f29 100644 --- a/plugins/kimchi/ui/pages/help/it_IT/Makefile.am +++ b/plugins/kimchi/ui/pages/help/it_IT/Makefile.am @@ -14,7 +14,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -it_IT_helpdir = $(datadir)/kimchi/ui/pages/help/it_IT +it_IT_helpdir = $(datadir)/wok/plugins/kimchi/ui/pages/help/it_IT dist_it_IT_help_DATA = $(wildcard *.html) $(NULL) diff --git a/plugins/kimchi/ui/pages/help/ja_JP/Makefile.am b/plugins/kimchi/ui/pages/help/ja_JP/Makefile.am index a7d6464..f9c2f33 100644 --- a/plugins/kimchi/ui/pages/help/ja_JP/Makefile.am +++ b/plugins/kimchi/ui/pages/help/ja_JP/Makefile.am @@ -14,7 +14,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -ja_JP_helpdir = $(datadir)/kimchi/ui/pages/help/ja_JP +ja_JP_helpdir = $(datadir)/wok/plugins/kimchi/ui/pages/help/ja_JP dist_ja_JP_help_DATA = $(wildcard *.html) $(NULL) diff --git a/plugins/kimchi/ui/pages/help/ko_KR/Makefile.am b/plugins/kimchi/ui/pages/help/ko_KR/Makefile.am index 3242ad7..e441955 100644 --- a/plugins/kimchi/ui/pages/help/ko_KR/Makefile.am +++ b/plugins/kimchi/ui/pages/help/ko_KR/Makefile.am @@ -14,7 +14,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -ko_KR_helpdir = $(datadir)/kimchi/ui/pages/help/ko_KR +ko_KR_helpdir = $(datadir)/wok/plugins/kimchi/ui/pages/help/ko_KR dist_ko_KR_help_DATA = $(wildcard *.html) $(NULL) diff --git a/plugins/kimchi/ui/pages/help/pt_BR/Makefile.am b/plugins/kimchi/ui/pages/help/pt_BR/Makefile.am index 0f1df92..7fc2cb0 100644 --- a/plugins/kimchi/ui/pages/help/pt_BR/Makefile.am +++ b/plugins/kimchi/ui/pages/help/pt_BR/Makefile.am @@ -14,7 +14,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -pt_BR_helpdir = $(datadir)/kimchi/ui/pages/help/pt_BR +pt_BR_helpdir = $(datadir)/wok/plugins/kimchi/ui/pages/help/pt_BR dist_pt_BR_help_DATA = $(wildcard *.html) $(NULL) diff --git a/plugins/kimchi/ui/pages/help/ru_RU/Makefile.am b/plugins/kimchi/ui/pages/help/ru_RU/Makefile.am index b128c6d..85ca27a 100644 --- a/plugins/kimchi/ui/pages/help/ru_RU/Makefile.am +++ b/plugins/kimchi/ui/pages/help/ru_RU/Makefile.am @@ -14,7 +14,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -ru_RU_helpdir = $(datadir)/kimchi/ui/pages/help/ru_RU +ru_RU_helpdir = $(datadir)/wok/plugins/kimchi/ui/pages/help/ru_RU dist_ru_RU_help_DATA = $(wildcard *.html) $(NULL) diff --git a/plugins/kimchi/ui/pages/help/zh_CN/Makefile.am b/plugins/kimchi/ui/pages/help/zh_CN/Makefile.am index 8b812ff..e785048 100644 --- a/plugins/kimchi/ui/pages/help/zh_CN/Makefile.am +++ b/plugins/kimchi/ui/pages/help/zh_CN/Makefile.am @@ -14,7 +14,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -zh_CN_helpdir = $(datadir)/kimchi/ui/pages/help/zh_CN +zh_CN_helpdir = $(datadir)/wok/plugins/kimchi/ui/pages/help/zh_CN dist_zh_CN_help_DATA = $(wildcard *.html) $(NULL) diff --git a/plugins/kimchi/ui/pages/help/zh_TW/Makefile.am b/plugins/kimchi/ui/pages/help/zh_TW/Makefile.am index 911d737..9c8ac26 100644 --- a/plugins/kimchi/ui/pages/help/zh_TW/Makefile.am +++ b/plugins/kimchi/ui/pages/help/zh_TW/Makefile.am @@ -14,7 +14,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -zh_TW_helpdir = $(datadir)/kimchi/ui/pages/help/zh_TW +zh_TW_helpdir = $(datadir)/wok/plugins/kimchi/ui/pages/help/zh_TW dist_zh_TW_help_DATA = $(wildcard *.html) $(NULL) diff --git a/plugins/kimchi/ui/pages/tabs/Makefile.am b/plugins/kimchi/ui/pages/tabs/Makefile.am index a29df7e..4d5d33e 100644 --- a/plugins/kimchi/ui/pages/tabs/Makefile.am +++ b/plugins/kimchi/ui/pages/tabs/Makefile.am @@ -15,6 +15,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -tabshtmldir = $(datadir)/kimchi/ui/pages/tabs +tabshtmldir = $(datadir)/wok/plugins/kimchi/ui/pages/tabs dist_tabshtml_DATA = $(wildcard *.html.tmpl) $(NULL) diff --git a/plugins/kimchi/ui/spice-html5/Makefile.am b/plugins/kimchi/ui/spice-html5/Makefile.am index 3a6558a..c43f1ef 100644 --- a/plugins/kimchi/ui/spice-html5/Makefile.am +++ b/plugins/kimchi/ui/spice-html5/Makefile.am @@ -20,6 +20,6 @@ SUBDIRS = pages if WITH_SPICE SUBDIRS += css thirdparty -spicehtml5dir = $(datadir)/kimchi/ui/spice-html5 +spicehtml5dir = $(datadir)/wok/plugins/kimchi/ui/spice-html5 dist_spicehtml5_DATA = $(wildcard *.js) $(NULL) endif diff --git a/plugins/kimchi/ui/spice-html5/css/Makefile.am b/plugins/kimchi/ui/spice-html5/css/Makefile.am index 6106e0d..ed51972 100644 --- a/plugins/kimchi/ui/spice-html5/css/Makefile.am +++ b/plugins/kimchi/ui/spice-html5/css/Makefile.am @@ -15,6 +15,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -spicecssdir = $(datadir)/kimchi/ui/spice-html5 +spicecssdir = $(datadir)/wok/plugins/kimchi/ui/spice-html5 dist_spicecss_DATA = $(wildcard *.css) $(NULL) diff --git a/plugins/kimchi/ui/spice-html5/pages/Makefile.am b/plugins/kimchi/ui/spice-html5/pages/Makefile.am index 45e67a5..431ec6c 100644 --- a/plugins/kimchi/ui/spice-html5/pages/Makefile.am +++ b/plugins/kimchi/ui/spice-html5/pages/Makefile.am @@ -15,6 +15,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -spicepagesdir = $(datadir)/kimchi/ui/spice-html5/pages +spicepagesdir = $(datadir)/wok/plugins/kimchi/ui/spice-html5/pages dist_spicepages_DATA = $(wildcard *.html) $(NULL) diff --git a/plugins/kimchi/ui/spice-html5/thirdparty/Makefile.am b/plugins/kimchi/ui/spice-html5/thirdparty/Makefile.am index b83a585..474478d 100644 --- a/plugins/kimchi/ui/spice-html5/thirdparty/Makefile.am +++ b/plugins/kimchi/ui/spice-html5/thirdparty/Makefile.am @@ -15,6 +15,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -thirdpartydir = $(datadir)/kimchi/ui/spice-html5/thirdparty +thirdpartydir = $(datadir)/wok/plugins/kimchi/ui/spice-html5/thirdparty dist_thirdparty_DATA = $(wildcard *.js) $(NULL) diff --git a/plugins/kimchi/xmlutils/Makefile.am b/plugins/kimchi/xmlutils/Makefile.am index 73f86f4..207ad7f 100644 --- a/plugins/kimchi/xmlutils/Makefile.am +++ b/plugins/kimchi/xmlutils/Makefile.am @@ -19,7 +19,7 @@ xmlutils_PYTHON = *.py -xmlutilsdir = $(pythondir)/kimchi/xmlutils +xmlutilsdir = $(pythondir)/wok/plugins/kimchi/xmlutils install-data-local: $(MKDIR_P) $(DESTDIR)$(xmlutilsdir) -- 1.7.1

- Rename from kimchi(d) to wok(d) - Remove all kimchi specifics (including deps) - Do not check for libvirt status - Reflect new file names/structure - Replace gettext-devel dependency by gettext Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- contrib/DEBIAN/control.in | 15 +----- contrib/DEBIAN/postrm | 4 +- contrib/make-deb.sh.in | 2 +- contrib/wok.spec.fedora.in | 106 ++++++++++++++------------------------ contrib/wok.spec.suse.in | 86 +++++++++++-------------------- contrib/wokd-upstart.conf.debian | 14 ++---- contrib/wokd-upstart.conf.fedora | 11 +--- contrib/wokd.service.fedora | 6 +- contrib/wokd.sysvinit | 18 +++--- src/firewalld.xml | 4 +- 10 files changed, 93 insertions(+), 173 deletions(-) diff --git a/contrib/DEBIAN/control.in b/contrib/DEBIAN/control.in index a288e9b..ef4e0c2 100644 --- a/contrib/DEBIAN/control.in +++ b/contrib/DEBIAN/control.in @@ -6,31 +6,18 @@ Architecture: all Depends: python-cherrypy3 (>= 3.2.0), python-cheetah, python-imaging, - python-configobj, websockify, novnc, python-jsonschema (>= 1.3.0), - python-libvirt, gettext, - libvirt-bin, - nfs-common, python-m2crypto, - qemu-kvm, python-pam, - python-parted, - python-psutil (>= 0.6.0), - python-ethtool, - sosreport, - python-ipaddr, python-lxml, - open-iscsi, nginx, - python-guestfs, python-ldap, - libguestfs-tools, spice-html5 Build-Depends: libxslt, openssl, python-lxml Maintainer: Aline Manera <alinefm@br.ibm.com> -Description: Kimchi web server +Description: Wok - Webserver Originated from Kimchi diff --git a/contrib/DEBIAN/postrm b/contrib/DEBIAN/postrm index ef90b49..256a234 100755 --- a/contrib/DEBIAN/postrm +++ b/contrib/DEBIAN/postrm @@ -20,9 +20,9 @@ case "$1" in remove) - rm -rf /var/log/kimchi /var/run/kimchi.pid + rm -rf /var/log/wok /var/run/wok.pid ;; purge) - rm -rf /var/log/kimchi /var/run/kimchi.pid /usr/share/kimchi/ + rm -rf /var/log/wok /var/run/wok.pid /usr/share/wok/ ;; esac diff --git a/contrib/make-deb.sh.in b/contrib/make-deb.sh.in index 5a6e56a..6c42072 100644 --- a/contrib/make-deb.sh.in +++ b/contrib/make-deb.sh.in @@ -11,5 +11,5 @@ fi TMPDIR=`mktemp -d` make DESTDIR=$TMPDIR install-deb -dpkg-deb -b $TMPDIR kimchi-${VERSION}-${RELEASE}.noarch.deb +dpkg-deb -b $TMPDIR wok-${VERSION}-${RELEASE}.noarch.deb rm -rf $TMPDIR diff --git a/contrib/wok.spec.fedora.in b/contrib/wok.spec.fedora.in index 183fd43..edbe385 100644 --- a/contrib/wok.spec.fedora.in +++ b/contrib/wok.spec.fedora.in @@ -1,38 +1,24 @@ -Name: kimchi +Name: wok Version: @PACKAGE_VERSION@ Release: @PACKAGE_RELEASE@%{?dist} -Summary: Kimchi server application +Summary: Wok - Webserver Originated from Kimchi BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release} BuildArch: noarch Group: System Environment/Base License: LGPL/ASL2 Source0: %{name}-%{version}.tar.gz -Requires: qemu-kvm -Requires: gettext-devel -Requires: libvirt -Requires: libvirt-python -Requires: libvirt-daemon-config-network +Requires: gettext Requires: python-cherrypy >= 3.2.0 Requires: python-cheetah Requires: python-websockify -Requires: python-configobj Requires: novnc Requires: m2crypto Requires: python-imaging Requires: PyPAM -Requires: pyparted -Requires: python-psutil >= 0.6.0 Requires: python-jsonschema >= 1.3.0 -Requires: python-ethtool -Requires: sos -Requires: python-ipaddr Requires: python-lxml -Requires: nfs-utils Requires: nginx -Requires: iscsi-initiator-utils Requires: python-ldap -Requires: python-libguestfs -Requires: libguestfs-tools BuildRequires: libxslt BuildRequires: openssl BuildRequires: python-lxml @@ -64,7 +50,7 @@ BuildRequires: systemd-units %endif %description -Web server application to manage KVM/Qemu virtual machines +Wok is Webserver Originated from Kimchi. %prep @@ -84,22 +70,18 @@ make rm -rf %{buildroot} make DESTDIR=%{buildroot} install -%if 0%{?with_systemd} - -%endif - %if 0%{?rhel} == 6 # Install the upstart script -install -Dm 0755 contrib/kimchid-upstart.conf.fedora %{buildroot}/etc/init/kimchid.conf +install -Dm 0755 contrib/wokd-upstart.conf.fedora %{buildroot}/etc/init/wokd.conf %endif %if 0%{?rhel} == 5 # Install the SysV init scripts -install -Dm 0755 contrib/kimchid.sysvinit %{buildroot}%{_initrddir}/kimchid +install -Dm 0755 contrib/wokd.sysvinit %{buildroot}%{_initrddir}/wokd %endif %post if [ $1 -eq 1 ] ; then - /bin/systemctl enable kimchid.service >/dev/null 2>&1 || : + /bin/systemctl enable wokd.service >/dev/null 2>&1 || : # Initial installation /bin/systemctl daemon-reload >/dev/null 2>&1 || : fi @@ -109,8 +91,8 @@ fi if [ $1 -eq 0 ] ; then # Package removal, not upgrade - /bin/systemctl --no-reload disable kimchid.service > /dev/null 2>&1 || : - /bin/systemctl stop kimchid.service > /dev/null 2>&1 || : + /bin/systemctl --no-reload disable wokd.service > /dev/null 2>&1 || : + /bin/systemctl stop wokd.service > /dev/null 2>&1 || : fi exit 0 @@ -118,7 +100,7 @@ exit 0 %postun if [ "$1" -ge 1 ] ; then - /bin/systemctl try-restart kimchid.service >/dev/null 2>&1 || : + /bin/systemctl try-restart wokd.service >/dev/null 2>&1 || : fi exit 0 @@ -127,55 +109,43 @@ rm -rf $RPM_BUILD_ROOT %files %attr(-,root,root) -%{_bindir}/kimchid -%{python_sitelib}/kimchi/*.py* -%{python_sitelib}/kimchi/control/*.py* -%{python_sitelib}/kimchi/control/vm/*.py* -%{python_sitelib}/kimchi/model/*.py* -%{python_sitelib}/kimchi/xmlutils/*.py* -%{python_sitelib}/kimchi/API.json -%{python_sitelib}/kimchi/plugins/*.py* -%{python_sitelib}/kimchi/ -%{_datadir}/kimchi/doc/API.md -%{_datadir}/kimchi/doc/README.md -%{_datadir}/kimchi/doc/README-federation.md -%{_datadir}/kimchi/doc/kimchi-guest.png -%{_datadir}/kimchi/doc/kimchi-templates.png -%{_prefix}/share/locale/*/LC_MESSAGES/kimchi.mo -%{_datadir}/kimchi/config/ui/*.xml -%{_datadir}/kimchi/ui/ -%{_datadir}/kimchi -%{_sysconfdir}/nginx/conf.d/kimchi.conf.in -%{_sysconfdir}/nginx/conf.d/kimchi.conf -%{_sysconfdir}/kimchi/kimchi.conf -%{_sysconfdir}/kimchi/template.conf -%{_sysconfdir}/kimchi/distros.d/debian.json -%{_sysconfdir}/kimchi/distros.d/fedora.json -%{_sysconfdir}/kimchi/distros.d/opensuse.json -%{_sysconfdir}/kimchi/distros.d/ubuntu.json -%{_sysconfdir}/kimchi/distros.d/gentoo.json -%{_sysconfdir}/kimchi/ -%{_sharedstatedir}/kimchi/debugreports/ -%{_sharedstatedir}/kimchi/screenshots/ -%{_sharedstatedir}/kimchi/vnc-tokens/ -%{_sharedstatedir}/kimchi/isos/ -%{_sharedstatedir}/kimchi/ -%{_localstatedir}/log/kimchi/* -%{_localstatedir}/log/kimchi/ -%{_mandir}/man8/kimchid.8.gz +%{_bindir}/wokd +%{python_sitelib}/wok/*.py* +%{python_sitelib}/wok/control/*.py* +%{python_sitelib}/wok/model/*.py* +%{python_sitelib}/wok/xmlutils/*.py* +%{python_sitelib}/wok/API.json +%{python_sitelib}/wok/plugins/*.py* +%{python_sitelib}/wok/ +%{_prefix}/share/locale/*/LC_MESSAGES/wok.mo +%{_datadir}/wok/ui/ +%{_datadir}/wok +%{_sysconfdir}/nginx/conf.d/wok.conf.in +%{_sysconfdir}/nginx/conf.d/wok.conf +%{_sysconfdir}/wok/wok.conf +%{_sysconfdir}/wok/ +%{_sharedstatedir}/wok/vnc-tokens/ +%{_sharedstatedir}/wok/ +%{_localstatedir}/log/wok/* +%{_localstatedir}/log/wok/ +%{_mandir}/man8/wokd.8.gz %if 0%{?with_systemd} -%{_unitdir}/kimchid.service -%{_prefix}/lib/firewalld/services/kimchid.xml +%{_unitdir}/wokd.service +%{_prefix}/lib/firewalld/services/wokd.xml %endif %if 0%{?rhel} == 6 -/etc/init/kimchid.conf +/etc/init/wokd.conf %endif %if 0%{?rhel} == 5 -%{_initrddir}/kimchid +%{_initrddir}/wokd %endif %changelog +* Fri Jun 19 2015 Lucio Correia <luciojhc@linux.vnet.ibm.com> 1.6 +- Rename to wokd +- Remove kimchi specifics + * Thu Feb 26 2015 Frédéric Bonnard <frediz@linux.vnet.ibm.com> 1.4.0 - Add man page for kimchid diff --git a/contrib/wok.spec.suse.in b/contrib/wok.spec.suse.in index fa55cc5..27a2992 100644 --- a/contrib/wok.spec.suse.in +++ b/contrib/wok.spec.suse.in @@ -1,38 +1,25 @@ -Name: kimchi +Name: wok Version: @PACKAGE_VERSION@ Release: @PACKAGE_RELEASE@%{?dist} -Summary: Kimchi server application +Summary: Wok - Webserver Originated from Kimchi BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release} BuildArch: noarch Group: System Environment/Base License: LGPL/ASL2 Source0: %{name}-%{version}.tar.gz -Requires: kvm Requires: gettext-tools -Requires: libvirt -Requires: libvirt-python -Requires: libvirt-daemon-config-network Requires: python-CherryPy >= 3.2.0 Requires: python-Cheetah Requires: python-websockify -Requires: python-configobj Requires: novnc Requires: python-imaging Requires: python-M2Crypto Requires: python-pam -Requires: python-parted -Requires: python-psutil >= 0.6.0 Requires: python-jsonschema >= 1.3.0 -Requires: python-ethtool -Requires: python-ipaddr Requires: python-ldap Requires: python-lxml Requires: python-xml -Requires: nfs-client Requires: nginx -Requires: open-iscsi -Requires: python-libguestfs -Requires: guestfs-tools BuildRequires: libxslt-tools BuildRequires: openssl BuildRequires: python-lxml @@ -42,7 +29,7 @@ Requires: python-ordereddict %endif %description -Web server application to manage KVM/Qemu virtual machines +Wok is Webserver Originated from Kimchi. %prep %setup @@ -56,56 +43,43 @@ rm -rf %{buildroot} make DESTDIR=%{buildroot} install %post -chkconfig kimchid on +chkconfig wokd on %preun -service kimchid stop +service wokd stop %clean rm -rf $RPM_BUILD_ROOT %files %attr(-,root,root) -%{_bindir}/kimchid -%{python_sitelib}/kimchi/*.py* -%{python_sitelib}/kimchi/control/*.py* -%{python_sitelib}/kimchi/control/vm/*.py* -%{python_sitelib}/kimchi/model/*.py* -%{python_sitelib}/kimchi/xmlutils/*.py* -%{python_sitelib}/kimchi/API.json -%{python_sitelib}/kimchi/plugins/*.py* -%{python_sitelib}/kimchi/ -%{_datadir}/kimchi/doc/API.md -%{_datadir}/kimchi/doc/README.md -%{_datadir}/kimchi/doc/README-federation.md -%{_datadir}/kimchi/doc/kimchi-guest.png -%{_datadir}/kimchi/doc/kimchi-templates.png -%{_prefix}/share/locale/*/LC_MESSAGES/kimchi.mo -%{_datadir}/kimchi/config/ui/*.xml -%{_datadir}/kimchi/ui/ -%{_datadir}/kimchi -%{_sysconfdir}/nginx/conf.d/kimchi.conf.in -%{_sysconfdir}/nginx/conf.d/kimchi.conf -%{_sysconfdir}/kimchi/kimchi.conf -%{_sysconfdir}/kimchi/template.conf -%{_sysconfdir}/kimchi/distros.d/debian.json -%{_sysconfdir}/kimchi/distros.d/fedora.json -%{_sysconfdir}/kimchi/distros.d/opensuse.json -%{_sysconfdir}/kimchi/distros.d/ubuntu.json -%{_sysconfdir}/kimchi/distros.d/gentoo.json -%{_sysconfdir}/kimchi -%{_initrddir}/kimchid -%{_sysconfdir}/kimchi/ -%{_var}/lib/kimchi/debugreports/ -%{_var}/lib/kimchi/screenshots/ -%{_var}/lib/kimchi/vnc-tokens/ -%{_var}/lib/kimchi/isos/ -%{_var}/lib/kimchi/ -%{_localstatedir}/log/kimchi/* -%{_localstatedir}/log/kimchi/ -%{_mandir}/man8/kimchid.8.gz +%{_bindir}/wokd +%{python_sitelib}/wok/*.py* +%{python_sitelib}/wok/control/*.py* +%{python_sitelib}/wok/model/*.py* +%{python_sitelib}/wok/xmlutils/*.py* +%{python_sitelib}/wok/API.json +%{python_sitelib}/wok/plugins/*.py* +%{python_sitelib}/wok/ +%{_prefix}/share/locale/*/LC_MESSAGES/wok.mo +%{_datadir}/wok/ui/ +%{_datadir}/wok +%{_sysconfdir}/wok/wok.conf +%{_sysconfdir}/wok/ +%{_initrddir}/wokd +%{_sysconfdir}/nginx/conf.d/wok.conf.in +%{_sysconfdir}/nginx/conf.d/wok.conf +%{_var}/lib/wok/vnc-tokens/ +%{_var}/lib/wok/ +%{_localstatedir}/log/wok/* +%{_localstatedir}/log/wok/ +%{_mandir}/man8/wokd.8.gz %changelog +* Fri Jun 19 2015 Lucio Correia <luciojhc@linux.vnet.ibm.com> 1.6 +- Rename to wokd +- Remove kimchi specifics + * Thu Feb 26 2015 Frédéric Bonnard <frediz@linux.vnet.ibm.com> 1.4.0 - Add man page for kimchid diff --git a/contrib/wokd-upstart.conf.debian b/contrib/wokd-upstart.conf.debian index a58d3c3..82e9156 100644 --- a/contrib/wokd-upstart.conf.debian +++ b/contrib/wokd-upstart.conf.debian @@ -1,5 +1,5 @@ # -# kimchid - Kimchi Web Server +# wokd - Wok Web Server # # Copyright IBM, Corp. 2013 # @@ -18,17 +18,11 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # -description "Kimchi Web Server" +description "Wok - Webserver Originated from Kimchi" -start on started libvirt-bin -stop on stopped libvirt-bin +start on stopped rc RUNLEVEL=[2345] respawn respawn limit 5 30 -pre-start script - status libvirt-bin | grep -q "start/running" && exit 0 - start libvirt-bin || exit 1 -end script - -exec /usr/bin/kimchid +exec /usr/bin/wokd diff --git a/contrib/wokd-upstart.conf.fedora b/contrib/wokd-upstart.conf.fedora index 53e8a39..f02ce34 100644 --- a/contrib/wokd-upstart.conf.fedora +++ b/contrib/wokd-upstart.conf.fedora @@ -1,5 +1,5 @@ # -# kimchid - Kimchi Web Server +# wokd - Wok Web Server # # Copyright IBM, Corp. 2013 # @@ -18,16 +18,11 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # -description "Kimchi Web Server" +description "Wok - Webserver Originated from Kimchi" start on stopped rc RUNLEVEL=[2345] respawn respawn limit 5 30 -pre-start script - service libvirtd status | grep -q "start/running" && exit 0 - service libvirtd start || exit 1 -end script - -exec /usr/bin/kimchid +exec /usr/bin/wokd diff --git a/contrib/wokd.service.fedora b/contrib/wokd.service.fedora index 7abe49b..17414d3 100644 --- a/contrib/wokd.service.fedora +++ b/contrib/wokd.service.fedora @@ -1,13 +1,13 @@ [Unit] -Description=Kimchi server +Description=Wok - Webserver Originated from Kimchi Requires=libvirtd.service After=libvirtd.service [Service] Type=simple -ExecStart=/usr/bin/kimchid +ExecStart=/usr/bin/wokd ExecStop=/bin/kill -TERM $MAINPID -EnvironmentFile=/etc/kimchi/kimchi.conf +EnvironmentFile=/etc/wok/wok.conf [Install] WantedBy=multi-user.target diff --git a/contrib/wokd.sysvinit b/contrib/wokd.sysvinit index 023b34c..10680ee 100644 --- a/contrib/wokd.sysvinit +++ b/contrib/wokd.sysvinit @@ -1,6 +1,6 @@ #! /bin/sh # -# kimchid Kimchi Web Server +# wokd Wok Web Server # # Copyright IBM, Corp. 2013 # @@ -21,12 +21,12 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # ### BEGIN INIT INFO -# Provides: kimchid +# Provides: wokd # Required-Start: libvirtd # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 6 -# Description: Start the kimchid daemon +# Description: Start the wokd daemon ### END INIT INFO . /etc/rc.status @@ -45,21 +45,21 @@ rc_reset case "$1" in start) - echo -n "Starting kimchid daemon" + echo -n "Starting wokd daemon" ## Start daemon with startproc(8). If this fails ## the echo return value is set appropriate. - startproc -f /usr/bin/kimchid > /dev/null 2>&1 + startproc -f /usr/bin/wokd > /dev/null 2>&1 # Remember status and be verbose rc_status -v ;; stop) - echo -n "Shutting down kimchid daemon" + echo -n "Shutting down wokd daemon" ## Stop daemon with killproc(8) and if this fails ## set echo the echo return value. - killproc -TERM /usr/bin/kimchid + killproc -TERM /usr/bin/wokd # Remember status and be verbose rc_status -v @@ -82,7 +82,7 @@ case "$1" in rc_status ;; status) - echo -n "Checking for service kimchid " + echo -n "Checking for service wokd " ## Check status with checkproc(8), if process is running ## checkproc will return with exit status 0. @@ -92,7 +92,7 @@ case "$1" in # 2 - service dead, but /var/lock/ lock file exists # 3 - service not running - checkproc /usr/bin/kimchid + checkproc /usr/bin/wokd rc_status -v ;; diff --git a/src/firewalld.xml b/src/firewalld.xml index 03e1510..ff9fafe 100644 --- a/src/firewalld.xml +++ b/src/firewalld.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <service> - <short>kimchid</short> - <description>Kimchid is a daemon service for kimchi which is a HTML5 based management tool for KVM. It is designed to make it as easy as possible to get started with KVM and create your first guest.</description> + <short>wokd</short> + <description>wokd is a daemon service for wok which is a web framework.</description> <port protocol="tcp" port="8000"/> <port protocol="tcp" port="8001"/> <port protocol="tcp" port="64667"/> -- 1.7.1

- Add dependency on wok - Drop wok specifics from specs - Reflect new plugin structure in the specs - Replace gettext-devel dependency by gettext Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/contrib/DEBIAN/control.in | 6 +- plugins/kimchi/contrib/kimchi.spec.fedora.in | 99 +++++--------------------- plugins/kimchi/contrib/kimchi.spec.suse.in | 46 +++++-------- 3 files changed, 37 insertions(+), 114 deletions(-) diff --git a/plugins/kimchi/contrib/DEBIAN/control.in b/plugins/kimchi/contrib/DEBIAN/control.in index a288e9b..ecfcd89 100644 --- a/plugins/kimchi/contrib/DEBIAN/control.in +++ b/plugins/kimchi/contrib/DEBIAN/control.in @@ -3,7 +3,8 @@ Version: @PACKAGE_VERSION@ Section: base Priority: optional Architecture: all -Depends: python-cherrypy3 (>= 3.2.0), +Depends: wok, + python-cherrypy3 (>= 3.2.0), python-cheetah, python-imaging, python-configobj, @@ -30,7 +31,6 @@ Depends: python-cherrypy3 (>= 3.2.0), libguestfs-tools, spice-html5 Build-Depends: libxslt, - openssl, python-lxml Maintainer: Aline Manera <alinefm@br.ibm.com> -Description: Kimchi web server +Description: Kimchi web application diff --git a/plugins/kimchi/contrib/kimchi.spec.fedora.in b/plugins/kimchi/contrib/kimchi.spec.fedora.in index 183fd43..7a7a447 100644 --- a/plugins/kimchi/contrib/kimchi.spec.fedora.in +++ b/plugins/kimchi/contrib/kimchi.spec.fedora.in @@ -7,8 +7,9 @@ BuildArch: noarch Group: System Environment/Base License: LGPL/ASL2 Source0: %{name}-%{version}.tar.gz +Requires: wok Requires: qemu-kvm -Requires: gettext-devel +Requires: gettext Requires: libvirt Requires: libvirt-python Requires: libvirt-daemon-config-network @@ -34,7 +35,6 @@ Requires: python-ldap Requires: python-libguestfs Requires: libguestfs-tools BuildRequires: libxslt -BuildRequires: openssl BuildRequires: python-lxml %if 0%{?rhel} >= 6 || 0%{?fedora} >= 19 @@ -51,20 +51,8 @@ Requires: python-imaging BuildRequires: python-unittest2 %endif -%if 0%{?with_systemd} -Requires: systemd -Requires: firewalld -Requires(post): systemd -Requires(preun): systemd -Requires(postun): systemd -%endif - -%if 0%{?with_systemd} -BuildRequires: systemd-units -%endif - %description -Web server application to manage KVM/Qemu virtual machines +Web application to manage KVM/Qemu virtual machines %prep @@ -84,71 +72,29 @@ make rm -rf %{buildroot} make DESTDIR=%{buildroot} install -%if 0%{?with_systemd} - -%endif - -%if 0%{?rhel} == 6 -# Install the upstart script -install -Dm 0755 contrib/kimchid-upstart.conf.fedora %{buildroot}/etc/init/kimchid.conf -%endif -%if 0%{?rhel} == 5 -# Install the SysV init scripts -install -Dm 0755 contrib/kimchid.sysvinit %{buildroot}%{_initrddir}/kimchid -%endif - -%post -if [ $1 -eq 1 ] ; then - /bin/systemctl enable kimchid.service >/dev/null 2>&1 || : - # Initial installation - /bin/systemctl daemon-reload >/dev/null 2>&1 || : -fi - - -%preun - -if [ $1 -eq 0 ] ; then - # Package removal, not upgrade - /bin/systemctl --no-reload disable kimchid.service > /dev/null 2>&1 || : - /bin/systemctl stop kimchid.service > /dev/null 2>&1 || : -fi - -exit 0 - - -%postun -if [ "$1" -ge 1 ] ; then - /bin/systemctl try-restart kimchid.service >/dev/null 2>&1 || : -fi -exit 0 %clean rm -rf $RPM_BUILD_ROOT %files %attr(-,root,root) -%{_bindir}/kimchid -%{python_sitelib}/kimchi/*.py* -%{python_sitelib}/kimchi/control/*.py* -%{python_sitelib}/kimchi/control/vm/*.py* -%{python_sitelib}/kimchi/model/*.py* -%{python_sitelib}/kimchi/xmlutils/*.py* -%{python_sitelib}/kimchi/API.json -%{python_sitelib}/kimchi/plugins/*.py* -%{python_sitelib}/kimchi/ +%{python_sitelib}/wok/plugins/kimchi/*.py* +%{python_sitelib}/wok/plugins/kimchi/control/*.py* +%{python_sitelib}/wok/plugins/kimchi/control/vm/*.py* +%{python_sitelib}/wok/plugins/kimchi/model/*.py* +%{python_sitelib}/wok/plugins/kimchi/API.json +%{python_sitelib}/wok/plugins/kimchi/ %{_datadir}/kimchi/doc/API.md %{_datadir}/kimchi/doc/README.md %{_datadir}/kimchi/doc/README-federation.md %{_datadir}/kimchi/doc/kimchi-guest.png %{_datadir}/kimchi/doc/kimchi-templates.png %{_prefix}/share/locale/*/LC_MESSAGES/kimchi.mo -%{_datadir}/kimchi/config/ui/*.xml -%{_datadir}/kimchi/ui/ -%{_datadir}/kimchi -%{_sysconfdir}/nginx/conf.d/kimchi.conf.in -%{_sysconfdir}/nginx/conf.d/kimchi.conf -%{_sysconfdir}/kimchi/kimchi.conf -%{_sysconfdir}/kimchi/template.conf +%{_datadir}/wok/plugins/kimchi/ui/config/*.xml +%{_datadir}/wok/plugins/kimchi/ui/ +%{_datadir}/wok/plugins/kimchi +%{_sysconfdir}/wok/plugins.d/kimchi.conf +%{_sysconfdir}/wok/plugins.d/template.conf %{_sysconfdir}/kimchi/distros.d/debian.json %{_sysconfdir}/kimchi/distros.d/fedora.json %{_sysconfdir}/kimchi/distros.d/opensuse.json @@ -157,25 +103,14 @@ rm -rf $RPM_BUILD_ROOT %{_sysconfdir}/kimchi/ %{_sharedstatedir}/kimchi/debugreports/ %{_sharedstatedir}/kimchi/screenshots/ -%{_sharedstatedir}/kimchi/vnc-tokens/ %{_sharedstatedir}/kimchi/isos/ %{_sharedstatedir}/kimchi/ -%{_localstatedir}/log/kimchi/* -%{_localstatedir}/log/kimchi/ -%{_mandir}/man8/kimchid.8.gz -%if 0%{?with_systemd} -%{_unitdir}/kimchid.service -%{_prefix}/lib/firewalld/services/kimchid.xml -%endif -%if 0%{?rhel} == 6 -/etc/init/kimchid.conf -%endif -%if 0%{?rhel} == 5 -%{_initrddir}/kimchid -%endif %changelog +* Thu Jun 18 2015 Lucio Correia <luciojhc@linux.vnet.ibm.com> 1.6 +- Run kimchi as a plugin + * Thu Feb 26 2015 Frédéric Bonnard <frediz@linux.vnet.ibm.com> 1.4.0 - Add man page for kimchid diff --git a/plugins/kimchi/contrib/kimchi.spec.suse.in b/plugins/kimchi/contrib/kimchi.spec.suse.in index fa55cc5..8e98c94 100644 --- a/plugins/kimchi/contrib/kimchi.spec.suse.in +++ b/plugins/kimchi/contrib/kimchi.spec.suse.in @@ -7,6 +7,7 @@ BuildArch: noarch Group: System Environment/Base License: LGPL/ASL2 Source0: %{name}-%{version}.tar.gz +Requires: wok Requires: kvm Requires: gettext-tools Requires: libvirt @@ -34,7 +35,6 @@ Requires: open-iscsi Requires: python-libguestfs Requires: guestfs-tools BuildRequires: libxslt-tools -BuildRequires: openssl BuildRequires: python-lxml %if 0%{?sles_version} == 11 @@ -42,7 +42,7 @@ Requires: python-ordereddict %endif %description -Web server application to manage KVM/Qemu virtual machines +Web application to manage KVM/Qemu virtual machines %prep %setup @@ -55,57 +55,45 @@ make rm -rf %{buildroot} make DESTDIR=%{buildroot} install -%post -chkconfig kimchid on - -%preun -service kimchid stop %clean rm -rf $RPM_BUILD_ROOT %files %attr(-,root,root) -%{_bindir}/kimchid -%{python_sitelib}/kimchi/*.py* -%{python_sitelib}/kimchi/control/*.py* -%{python_sitelib}/kimchi/control/vm/*.py* -%{python_sitelib}/kimchi/model/*.py* -%{python_sitelib}/kimchi/xmlutils/*.py* -%{python_sitelib}/kimchi/API.json -%{python_sitelib}/kimchi/plugins/*.py* -%{python_sitelib}/kimchi/ +%{python_sitelib}/wok/plugins/kimchi/*.py* +%{python_sitelib}/wok/plugins/kimchi/control/*.py* +%{python_sitelib}/wok/plugins/kimchi/control/vm/*.py* +%{python_sitelib}/wok/plugins/kimchi/model/*.py* +%{python_sitelib}/wok/plugins/kimchi/API.json +%{python_sitelib}/wok/plugins/kimchi/ %{_datadir}/kimchi/doc/API.md %{_datadir}/kimchi/doc/README.md %{_datadir}/kimchi/doc/README-federation.md %{_datadir}/kimchi/doc/kimchi-guest.png %{_datadir}/kimchi/doc/kimchi-templates.png %{_prefix}/share/locale/*/LC_MESSAGES/kimchi.mo -%{_datadir}/kimchi/config/ui/*.xml -%{_datadir}/kimchi/ui/ -%{_datadir}/kimchi -%{_sysconfdir}/nginx/conf.d/kimchi.conf.in -%{_sysconfdir}/nginx/conf.d/kimchi.conf -%{_sysconfdir}/kimchi/kimchi.conf -%{_sysconfdir}/kimchi/template.conf +%{_datadir}/wok/plugins/kimchi/ui/config/*.xml +%{_datadir}/wok/plugins/kimchi/ui/ +%{_datadir}/wok/plugins/kimchi +%{_sysconfdir}/wok/plugins.d/kimchi.conf +%{_sysconfdir}/wok/plugins.d/template.conf %{_sysconfdir}/kimchi/distros.d/debian.json %{_sysconfdir}/kimchi/distros.d/fedora.json %{_sysconfdir}/kimchi/distros.d/opensuse.json %{_sysconfdir}/kimchi/distros.d/ubuntu.json %{_sysconfdir}/kimchi/distros.d/gentoo.json -%{_sysconfdir}/kimchi -%{_initrddir}/kimchid %{_sysconfdir}/kimchi/ %{_var}/lib/kimchi/debugreports/ %{_var}/lib/kimchi/screenshots/ -%{_var}/lib/kimchi/vnc-tokens/ %{_var}/lib/kimchi/isos/ %{_var}/lib/kimchi/ -%{_localstatedir}/log/kimchi/* -%{_localstatedir}/log/kimchi/ -%{_mandir}/man8/kimchid.8.gz + %changelog +* Thu Jun 18 2015 Lucio Correia <luciojhc@linux.vnet.ibm.com> 1.6 +- Run kimchi as a plugin + * Thu Feb 26 2015 Frédéric Bonnard <frediz@linux.vnet.ibm.com> 1.4.0 - Add man page for kimchid -- 1.7.1

This patch adapts imports to the new file structure and updates imported names in code. No other code changes. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/control/__init__.py | 2 +- plugins/kimchi/control/config.py | 4 +- plugins/kimchi/control/cpuinfo.py | 2 +- plugins/kimchi/control/debugreports.py | 6 +- plugins/kimchi/control/groups.py | 4 +- plugins/kimchi/control/host.py | 8 ++-- plugins/kimchi/control/interfaces.py | 4 +- plugins/kimchi/control/networks.py | 4 +- plugins/kimchi/control/peers.py | 4 +- plugins/kimchi/control/storagepools.py | 12 +++--- plugins/kimchi/control/storageservers.py | 8 ++-- plugins/kimchi/control/storagevolumes.py | 8 ++-- plugins/kimchi/control/tasks.py | 4 +- plugins/kimchi/control/templates.py | 4 +- plugins/kimchi/control/users.py | 6 +- plugins/kimchi/control/vm/__init__.py | 2 +- plugins/kimchi/control/vm/hostdevs.py | 4 +- plugins/kimchi/control/vm/ifaces.py | 4 +- plugins/kimchi/control/vm/snapshots.py | 4 +- plugins/kimchi/control/vm/storages.py | 4 +- plugins/kimchi/control/vms.py | 6 +- plugins/kimchi/disks.py | 4 +- plugins/kimchi/distroloader.py | 6 +- plugins/kimchi/imageinfo.py | 4 +- plugins/kimchi/iscsi.py | 2 +- plugins/kimchi/isoinfo.py | 4 +- plugins/kimchi/kvmusertests.py | 2 +- plugins/kimchi/mockmodel.py | 40 ++++++++-------- plugins/kimchi/model/config.py | 25 +++++----- plugins/kimchi/model/cpuinfo.py | 4 +- plugins/kimchi/model/debugreports.py | 12 +++--- plugins/kimchi/model/diskutils.py | 8 ++-- plugins/kimchi/model/featuretests.py | 4 +- plugins/kimchi/model/groups.py | 2 +- plugins/kimchi/model/host.py | 26 +++++----- plugins/kimchi/model/hostdev.py | 6 +- plugins/kimchi/model/interfaces.py | 6 +- plugins/kimchi/model/libvirtconnection.py | 2 +- plugins/kimchi/model/libvirtstoragepool.py | 8 ++-- plugins/kimchi/model/model.py | 10 ++-- plugins/kimchi/model/networks.py | 22 +++++----- plugins/kimchi/model/peers.py | 4 +- plugins/kimchi/model/storagepools.py | 21 +++++---- plugins/kimchi/model/storageservers.py | 4 +- plugins/kimchi/model/storagetargets.py | 6 +- plugins/kimchi/model/storagevolumes.py | 20 ++++---- plugins/kimchi/model/tasks.py | 2 +- plugins/kimchi/model/templates.py | 16 +++--- plugins/kimchi/model/users.py | 4 +- plugins/kimchi/model/utils.py | 2 +- plugins/kimchi/model/vmhostdevs.py | 16 +++--- plugins/kimchi/model/vmifaces.py | 10 ++-- plugins/kimchi/model/vms.py | 48 ++++++++++--------- plugins/kimchi/model/vmsnapshots.py | 12 +++--- plugins/kimchi/model/vmstorages.py | 22 +++++----- plugins/kimchi/osinfo.py | 2 +- plugins/kimchi/repositories.py | 12 +++--- plugins/kimchi/scan.py | 4 +- plugins/kimchi/screenshot.py | 4 +- plugins/kimchi/swupdate.py | 10 ++-- plugins/kimchi/tests/iso_gen.py | 2 +- plugins/kimchi/tests/run_tests.sh.in | 2 +- plugins/kimchi/tests/test_authorization.py | 6 +- plugins/kimchi/tests/test_config.py.in | 4 +- plugins/kimchi/tests/test_exception.py | 6 +- plugins/kimchi/tests/test_host.py | 2 +- plugins/kimchi/tests/test_mock_network.py | 2 +- plugins/kimchi/tests/test_mock_storagepool.py | 2 +- plugins/kimchi/tests/test_mock_storagevolume.py | 2 +- plugins/kimchi/tests/test_mockmodel.py | 6 +- plugins/kimchi/tests/test_model.py | 24 +++++----- plugins/kimchi/tests/test_model_network.py | 4 +- plugins/kimchi/tests/test_model_storagepool.py | 4 +- plugins/kimchi/tests/test_model_storagevolume.py | 9 ++-- plugins/kimchi/tests/test_networkxml.py | 4 +- plugins/kimchi/tests/test_objectstore.py | 4 +- plugins/kimchi/tests/test_osinfo.py | 4 +- plugins/kimchi/tests/test_plugin.py | 8 ++-- plugins/kimchi/tests/test_rest.py | 12 +++--- plugins/kimchi/tests/test_rollbackcontext.py | 2 +- plugins/kimchi/tests/test_server.py | 4 +- plugins/kimchi/tests/test_storagepoolxml.py | 2 +- plugins/kimchi/tests/test_template.py | 4 +- plugins/kimchi/tests/test_utils.py | 4 +- plugins/kimchi/tests/test_vmtemplate.py | 6 +- plugins/kimchi/tests/test_yumparser.py | 12 +++--- plugins/kimchi/tests/utils.py | 20 ++++---- plugins/kimchi/ui/pages/error.html.tmpl | 2 +- plugins/kimchi/ui/pages/guest-add.html.tmpl | 2 +- .../kimchi/ui/pages/guest-storage-add.html.tmpl | 2 +- plugins/kimchi/ui/pages/guest.html.tmpl | 2 +- plugins/kimchi/ui/pages/i18n.json.tmpl | 2 +- plugins/kimchi/ui/pages/report-add.html.tmpl | 2 +- plugins/kimchi/ui/pages/report-rename.html.tmpl | 2 +- plugins/kimchi/ui/pages/repository-add.html.tmpl | 2 +- plugins/kimchi/ui/pages/repository-edit.html.tmpl | 2 +- .../ui/pages/storagepool-add-volume.html.tmpl | 2 +- plugins/kimchi/ui/pages/tabs/guests.html.tmpl | 2 +- plugins/kimchi/ui/pages/tabs/host.html.tmpl | 2 +- plugins/kimchi/ui/pages/tabs/network.html.tmpl | 2 +- plugins/kimchi/ui/pages/tabs/templates.html.tmpl | 2 +- plugins/kimchi/ui/pages/template-add.html.tmpl | 2 +- plugins/kimchi/ui/pages/template-edit.html.tmpl | 2 +- plugins/kimchi/vmtemplate.py | 23 +++++----- plugins/kimchi/xmlutils/disk.py | 4 +- plugins/kimchi/xmlutils/interface.py | 2 +- plugins/sample/__init__.py | 6 +- plugins/sample/model.py | 4 +- plugins/sample/sample.conf.in | 2 +- plugins/sample/ui/pages/i18n.json.tmpl | 2 +- src/wok/asynctask.py | 2 +- src/wok/auth.py | 8 ++-- src/wok/cachebust.py | 2 +- src/wok/control/__init__.py | 2 +- src/wok/control/base.py | 26 +++++----- src/wok/control/plugins.py | 4 +- src/wok/control/utils.py | 6 +- src/wok/exception.py | 4 +- src/wok/model/plugins.py | 2 +- src/wok/objectstore.py | 6 +- src/wok/proxy.py | 4 +- src/wok/root.py | 16 +++--- src/wok/server.py | 20 ++++---- src/wok/template.py | 2 +- src/wok/utils.py | 6 +- src/wok/vnc.py | 2 +- src/wokd.in | 6 +- ui/pages/error.html.tmpl | 2 +- ui/pages/i18n.json.tmpl | 2 +- ui/pages/login.html.tmpl | 4 +- ui/pages/wok-ui.html.tmpl | 4 +- 131 files changed, 446 insertions(+), 440 deletions(-) diff --git a/plugins/kimchi/control/__init__.py b/plugins/kimchi/control/__init__.py index 98d42d3..4ad9459 100644 --- a/plugins/kimchi/control/__init__.py +++ b/plugins/kimchi/control/__init__.py @@ -20,7 +20,7 @@ import os -from kimchi.control.utils import load_url_sub_node +from wok.control.utils import load_url_sub_node sub_nodes = load_url_sub_node(os.path.dirname(__file__), __name__) diff --git a/plugins/kimchi/control/config.py b/plugins/kimchi/control/config.py index 45bb013..15df68f 100644 --- a/plugins/kimchi/control/config.py +++ b/plugins/kimchi/control/config.py @@ -17,8 +17,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import Collection, Resource -from kimchi.control.utils import UrlSubNode +from wok.control.base import Collection, Resource +from wok.control.utils import UrlSubNode @UrlSubNode("config") diff --git a/plugins/kimchi/control/cpuinfo.py b/plugins/kimchi/control/cpuinfo.py index 415dd3d..31f316c 100644 --- a/plugins/kimchi/control/cpuinfo.py +++ b/plugins/kimchi/control/cpuinfo.py @@ -18,7 +18,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import Resource +from wok.control.base import Resource class CPUInfo(Resource): diff --git a/plugins/kimchi/control/debugreports.py b/plugins/kimchi/control/debugreports.py index 377d002..b5a3072 100644 --- a/plugins/kimchi/control/debugreports.py +++ b/plugins/kimchi/control/debugreports.py @@ -17,9 +17,9 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import AsyncCollection, Resource -from kimchi.control.utils import internal_redirect -from kimchi.control.utils import UrlSubNode +from wok.control.base import AsyncCollection, Resource +from wok.control.utils import internal_redirect +from wok.control.utils import UrlSubNode @UrlSubNode('debugreports', True) diff --git a/plugins/kimchi/control/groups.py b/plugins/kimchi/control/groups.py index f18b2ab..649ff09 100644 --- a/plugins/kimchi/control/groups.py +++ b/plugins/kimchi/control/groups.py @@ -17,8 +17,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import SimpleCollection -from kimchi.control.utils import UrlSubNode +from wok.control.base import SimpleCollection +from wok.control.utils import UrlSubNode @UrlSubNode('groups', True) diff --git a/plugins/kimchi/control/host.py b/plugins/kimchi/control/host.py index 5e736db..6634d8f 100644 --- a/plugins/kimchi/control/host.py +++ b/plugins/kimchi/control/host.py @@ -17,10 +17,10 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.cpuinfo import CPUInfo -from kimchi.control.base import Collection, Resource, SimpleCollection -from kimchi.control.utils import UrlSubNode -from kimchi.exception import NotFoundError +from cpuinfo import CPUInfo +from wok.control.base import Collection, Resource, SimpleCollection +from wok.control.utils import UrlSubNode +from wok.exception import NotFoundError @UrlSubNode('host', True) diff --git a/plugins/kimchi/control/interfaces.py b/plugins/kimchi/control/interfaces.py index 3c76f3f..d698b7a 100644 --- a/plugins/kimchi/control/interfaces.py +++ b/plugins/kimchi/control/interfaces.py @@ -17,8 +17,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import Collection, Resource -from kimchi.control.utils import UrlSubNode +from wok.control.base import Collection, Resource +from wok.control.utils import UrlSubNode @UrlSubNode('interfaces', True) diff --git a/plugins/kimchi/control/networks.py b/plugins/kimchi/control/networks.py index 42e013f..fd92111 100644 --- a/plugins/kimchi/control/networks.py +++ b/plugins/kimchi/control/networks.py @@ -17,8 +17,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import Collection, Resource -from kimchi.control.utils import UrlSubNode +from wok.control.base import Collection, Resource +from wok.control.utils import UrlSubNode @UrlSubNode('networks', True) diff --git a/plugins/kimchi/control/peers.py b/plugins/kimchi/control/peers.py index f72a38c..21e9f13 100644 --- a/plugins/kimchi/control/peers.py +++ b/plugins/kimchi/control/peers.py @@ -17,8 +17,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import SimpleCollection -from kimchi.control.utils import UrlSubNode +from wok.control.base import SimpleCollection +from wok.control.utils import UrlSubNode @UrlSubNode("peers", True) diff --git a/plugins/kimchi/control/storagepools.py b/plugins/kimchi/control/storagepools.py index ee74bee..4a83c20 100644 --- a/plugins/kimchi/control/storagepools.py +++ b/plugins/kimchi/control/storagepools.py @@ -19,12 +19,12 @@ import cherrypy -from kimchi.control.base import Collection, Resource -from kimchi.control.storagevolumes import IsoVolumes, StorageVolumes -from kimchi.control.utils import get_class_name, model_fn -from kimchi.control.utils import validate_params -from kimchi.model.storagepools import ISO_POOL_NAME -from kimchi.control.utils import UrlSubNode +from wok.control.base import Collection, Resource +from storagevolumes import IsoVolumes, StorageVolumes +from wok.control.utils import get_class_name, model_fn +from wok.control.utils import validate_params +from ..model.storagepools import ISO_POOL_NAME +from wok.control.utils import UrlSubNode @UrlSubNode('storagepools', True) diff --git a/plugins/kimchi/control/storageservers.py b/plugins/kimchi/control/storageservers.py index 4b70c39..654ab47 100644 --- a/plugins/kimchi/control/storageservers.py +++ b/plugins/kimchi/control/storageservers.py @@ -17,9 +17,9 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -import kimchi.template -from kimchi.control.base import Collection, Resource -from kimchi.control.utils import get_class_name, model_fn, UrlSubNode +from wok import template +from wok.control.base import Collection, Resource +from wok.control.utils import get_class_name, model_fn, UrlSubNode @UrlSubNode('storageservers', True) @@ -57,4 +57,4 @@ class StorageTargets(Collection): res_list = [] get_list = getattr(self.model, model_fn(self, 'get_list')) res_list = get_list(*self.model_args, **filter_params) - return kimchi.template.render(get_class_name(self), res_list) + return template.render(get_class_name(self), res_list) diff --git a/plugins/kimchi/control/storagevolumes.py b/plugins/kimchi/control/storagevolumes.py index 8af7abc..bbe6627 100644 --- a/plugins/kimchi/control/storagevolumes.py +++ b/plugins/kimchi/control/storagevolumes.py @@ -17,9 +17,9 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -import kimchi.template -from kimchi.control.base import AsyncCollection, Collection, Resource -from kimchi.control.utils import get_class_name, model_fn +from wok import template +from wok.control.base import AsyncCollection, Collection, Resource +from wok.control.utils import get_class_name, model_fn class StorageVolumes(AsyncCollection): @@ -80,4 +80,4 @@ class IsoVolumes(Collection): except AttributeError: pass - return kimchi.template.render(get_class_name(self), res_list) + return template.render(get_class_name(self), res_list) diff --git a/plugins/kimchi/control/tasks.py b/plugins/kimchi/control/tasks.py index 4870dbd..b25d892 100644 --- a/plugins/kimchi/control/tasks.py +++ b/plugins/kimchi/control/tasks.py @@ -17,8 +17,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import Collection, Resource -from kimchi.control.utils import UrlSubNode +from wok.control.base import Collection, Resource +from wok.control.utils import UrlSubNode @UrlSubNode("tasks", True) diff --git a/plugins/kimchi/control/templates.py b/plugins/kimchi/control/templates.py index 4c45910..fc58815 100644 --- a/plugins/kimchi/control/templates.py +++ b/plugins/kimchi/control/templates.py @@ -17,8 +17,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import Collection, Resource -from kimchi.control.utils import UrlSubNode +from wok.control.base import Collection, Resource +from wok.control.utils import UrlSubNode @UrlSubNode('templates', True) diff --git a/plugins/kimchi/control/users.py b/plugins/kimchi/control/users.py index 45603d0..756a2f7 100644 --- a/plugins/kimchi/control/users.py +++ b/plugins/kimchi/control/users.py @@ -17,9 +17,9 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import SimpleCollection -from kimchi.control.utils import get_class_name, model_fn, UrlSubNode -from kimchi.template import render +from wok.control.base import SimpleCollection +from wok.control.utils import get_class_name, model_fn, UrlSubNode +from wok.template import render @UrlSubNode('users', True) diff --git a/plugins/kimchi/control/vm/__init__.py b/plugins/kimchi/control/vm/__init__.py index 2ea1e8c..a311045 100644 --- a/plugins/kimchi/control/vm/__init__.py +++ b/plugins/kimchi/control/vm/__init__.py @@ -20,7 +20,7 @@ import os -from kimchi.control.utils import load_url_sub_node +from wok.control.utils import load_url_sub_node sub_nodes = load_url_sub_node(os.path.dirname(__file__), __name__) diff --git a/plugins/kimchi/control/vm/hostdevs.py b/plugins/kimchi/control/vm/hostdevs.py index 1eb88cf..a43b9d8 100644 --- a/plugins/kimchi/control/vm/hostdevs.py +++ b/plugins/kimchi/control/vm/hostdevs.py @@ -17,8 +17,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import Collection, Resource -from kimchi.control.utils import UrlSubNode +from wok.control.base import Collection, Resource +from wok.control.utils import UrlSubNode @UrlSubNode("hostdevs") diff --git a/plugins/kimchi/control/vm/ifaces.py b/plugins/kimchi/control/vm/ifaces.py index 8a60217..ac957fd 100644 --- a/plugins/kimchi/control/vm/ifaces.py +++ b/plugins/kimchi/control/vm/ifaces.py @@ -17,8 +17,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import Collection, Resource -from kimchi.control.utils import UrlSubNode +from wok.control.base import Collection, Resource +from wok.control.utils import UrlSubNode @UrlSubNode("ifaces") diff --git a/plugins/kimchi/control/vm/snapshots.py b/plugins/kimchi/control/vm/snapshots.py index bbebc9a..dd17b85 100644 --- a/plugins/kimchi/control/vm/snapshots.py +++ b/plugins/kimchi/control/vm/snapshots.py @@ -17,8 +17,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import AsyncCollection, Resource -from kimchi.control.utils import UrlSubNode +from wok.control.base import AsyncCollection, Resource +from wok.control.utils import UrlSubNode @UrlSubNode('snapshots') diff --git a/plugins/kimchi/control/vm/storages.py b/plugins/kimchi/control/vm/storages.py index 81a5d48..f502caa 100644 --- a/plugins/kimchi/control/vm/storages.py +++ b/plugins/kimchi/control/vm/storages.py @@ -17,8 +17,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import Collection, Resource -from kimchi.control.utils import UrlSubNode +from wok.control.base import Collection, Resource +from wok.control.utils import UrlSubNode @UrlSubNode("storages") diff --git a/plugins/kimchi/control/vms.py b/plugins/kimchi/control/vms.py index a40b56e..c8105bc 100644 --- a/plugins/kimchi/control/vms.py +++ b/plugins/kimchi/control/vms.py @@ -17,9 +17,9 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import AsyncCollection, Resource -from kimchi.control.utils import internal_redirect, UrlSubNode -from kimchi.control.vm import sub_nodes +from wok.control.base import AsyncCollection, Resource +from wok.control.utils import internal_redirect, UrlSubNode +from vm import sub_nodes @UrlSubNode('vms', True) diff --git a/plugins/kimchi/disks.py b/plugins/kimchi/disks.py index 016a079..59e52f9 100644 --- a/plugins/kimchi/disks.py +++ b/plugins/kimchi/disks.py @@ -24,8 +24,8 @@ import subprocess from parted import Device as PDevice from parted import Disk as PDisk -from kimchi.exception import OperationFailed -from kimchi.utils import kimchi_log +from wok.exception import OperationFailed +from wok.utils import kimchi_log def _get_dev_node_path(maj_min): diff --git a/plugins/kimchi/distroloader.py b/plugins/kimchi/distroloader.py index daed73c..8ad34d2 100644 --- a/plugins/kimchi/distroloader.py +++ b/plugins/kimchi/distroloader.py @@ -23,9 +23,9 @@ import json import os -from kimchi import config -from kimchi.exception import NotFoundError, OperationFailed -from kimchi.utils import kimchi_log +import config +from wok.exception import NotFoundError, OperationFailed +from wok.utils import kimchi_log ARCHS = {'x86_64': ['x86_64', 'amd64', 'i686', 'x86', 'i386'], diff --git a/plugins/kimchi/imageinfo.py b/plugins/kimchi/imageinfo.py index 89d1e0a..fbd1396 100644 --- a/plugins/kimchi/imageinfo.py +++ b/plugins/kimchi/imageinfo.py @@ -22,8 +22,8 @@ import os import sys import guestfs -from kimchi.exception import ImageFormatError, InvalidParameter, TimeoutExpired -from kimchi.utils import run_command, kimchi_log +from wok.exception import ImageFormatError, InvalidParameter, TimeoutExpired +from wok.utils import run_command, kimchi_log def probe_img_info(path): diff --git a/plugins/kimchi/iscsi.py b/plugins/kimchi/iscsi.py index b3e1b78..02886ac 100644 --- a/plugins/kimchi/iscsi.py +++ b/plugins/kimchi/iscsi.py @@ -20,7 +20,7 @@ import subprocess -from kimchi.exception import OperationFailed +from wok.exception import OperationFailed class TargetClient(object): diff --git a/plugins/kimchi/isoinfo.py b/plugins/kimchi/isoinfo.py index 6fb0f38..de9c359 100644 --- a/plugins/kimchi/isoinfo.py +++ b/plugins/kimchi/isoinfo.py @@ -28,8 +28,8 @@ import sys import urllib2 -from kimchi.exception import IsoFormatError -from kimchi.utils import check_url_path, kimchi_log +from wok.exception import IsoFormatError +from wok.utils import check_url_path, kimchi_log iso_dir = [ diff --git a/plugins/kimchi/kvmusertests.py b/plugins/kimchi/kvmusertests.py index 5724267..ace157e 100644 --- a/plugins/kimchi/kvmusertests.py +++ b/plugins/kimchi/kvmusertests.py @@ -22,7 +22,7 @@ import threading import libvirt -from kimchi.rollbackcontext import RollbackContext +from wok.rollbackcontext import RollbackContext KVMUSERTEST_VM_NAME = "KVMUSERTEST_VM" diff --git a/plugins/kimchi/mockmodel.py b/plugins/kimchi/mockmodel.py index aaf1af2..384ce9b 100644 --- a/plugins/kimchi/mockmodel.py +++ b/plugins/kimchi/mockmodel.py @@ -23,29 +23,29 @@ import os import random import time -import kimchi.model.cpuinfo +from model import cpuinfo from lxml import objectify from lxml.builder import E -from kimchi import config -from kimchi import imageinfo -from kimchi import osinfo -from kimchi.exception import NotFoundError, OperationFailed -from kimchi.model.debugreports import DebugReportsModel -from kimchi.model.host import DeviceModel -from kimchi.model.libvirtstoragepool import IscsiPoolDef, NetfsPoolDef -from kimchi.model.libvirtstoragepool import StoragePoolDef -from kimchi.model.model import Model -from kimchi.model.storagepools import StoragePoolModel -from kimchi.model.storagevolumes import StorageVolumeModel, StorageVolumesModel -from kimchi.model.templates import LibvirtVMTemplate -from kimchi.model.users import PAMUsersModel -from kimchi.model.groups import PAMGroupsModel -from kimchi.objectstore import ObjectStore -from kimchi.utils import add_task, get_next_clone_name, kimchi_log -from kimchi.vmtemplate import VMTemplate -from kimchi.xmlutils.utils import xml_item_update +import config +import imageinfo +import osinfo +from wok.exception import NotFoundError, OperationFailed +from model.debugreports import DebugReportsModel +from model.host import DeviceModel +from model.libvirtstoragepool import IscsiPoolDef, NetfsPoolDef +from model.libvirtstoragepool import StoragePoolDef +from model.model import Model +from model.storagepools import StoragePoolModel +from model.storagevolumes import StorageVolumeModel, StorageVolumesModel +from model.templates import LibvirtVMTemplate +from model.users import PAMUsersModel +from model.groups import PAMGroupsModel +from wok.objectstore import ObjectStore +from wok.utils import add_task, get_next_clone_name, kimchi_log +from vmtemplate import VMTemplate +from wok.xmlutils.utils import xml_item_update fake_user = {'root': 'letmein!'} @@ -74,7 +74,7 @@ class MockModel(Model): self._mock_swupdate = MockSoftwareUpdate() self._mock_repositories = MockRepositories() - kimchi.model.cpuinfo.get_topo_capabilities = \ + cpuinfo.get_topo_capabilities = \ MockModel.get_topo_capabilities libvirt.virConnect.defineXML = MockModel.domainDefineXML libvirt.virDomain.XMLDesc = MockModel.domainXMLDesc diff --git a/plugins/kimchi/model/config.py b/plugins/kimchi/model/config.py index d894b21..6f593e3 100644 --- a/plugins/kimchi/model/config.py +++ b/plugins/kimchi/model/config.py @@ -21,18 +21,19 @@ from multiprocessing.pool import ThreadPool import cherrypy -from kimchi.basemodel import Singleton -from kimchi.config import config as kconfig -from kimchi.config import find_qemu_binary, get_version -from kimchi.distroloader import DistroLoader -from kimchi.exception import NotFoundError -from kimchi.model.debugreports import DebugReportsModel -from kimchi.model.featuretests import FeatureTests, FEATURETEST_POOL_NAME -from kimchi.model.featuretests import FEATURETEST_VM_NAME -from kimchi.repositories import Repositories -from kimchi.screenshot import VMScreenshot -from kimchi.swupdate import SoftwareUpdate -from kimchi.utils import check_url_path, kimchi_log, run_command +from wok.basemodel import Singleton +from wok.config import config as kconfig +from wok.config import get_version +from ..config import find_qemu_binary +from ..distroloader import DistroLoader +from wok.exception import NotFoundError +from debugreports import DebugReportsModel +from featuretests import FeatureTests, FEATURETEST_POOL_NAME +from featuretests import FEATURETEST_VM_NAME +from ..repositories import Repositories +from ..screenshot import VMScreenshot +from ..swupdate import SoftwareUpdate +from wok.utils import check_url_path, kimchi_log, run_command class ConfigModel(object): diff --git a/plugins/kimchi/model/cpuinfo.py b/plugins/kimchi/model/cpuinfo.py index 548aa3e..54d6eaa 100644 --- a/plugins/kimchi/model/cpuinfo.py +++ b/plugins/kimchi/model/cpuinfo.py @@ -21,8 +21,8 @@ import platform from xml.etree import ElementTree as ET -from kimchi.exception import InvalidParameter, InvalidOperation -from kimchi.utils import kimchi_log, run_command +from wok.exception import InvalidParameter, InvalidOperation +from wok.utils import kimchi_log, run_command ARCH = 'power' if platform.machine().startswith('ppc') else 'x86' diff --git a/plugins/kimchi/model/debugreports.py b/plugins/kimchi/model/debugreports.py index 5f74da8..6cc8819 100644 --- a/plugins/kimchi/model/debugreports.py +++ b/plugins/kimchi/model/debugreports.py @@ -25,12 +25,12 @@ import shutil import subprocess import time -from kimchi import config -from kimchi.exception import InvalidParameter, KimchiException, NotFoundError -from kimchi.exception import OperationFailed -from kimchi.model.tasks import TaskModel -from kimchi.utils import add_task, kimchi_log -from kimchi.utils import run_command +from .. import config +from wok.exception import InvalidParameter, KimchiException, NotFoundError +from wok.exception import OperationFailed +from tasks import TaskModel +from wok.utils import add_task, kimchi_log +from wok.utils import run_command class DebugReportsModel(object): diff --git a/plugins/kimchi/model/diskutils.py b/plugins/kimchi/model/diskutils.py index 0be2024..041a135 100644 --- a/plugins/kimchi/model/diskutils.py +++ b/plugins/kimchi/model/diskutils.py @@ -18,10 +18,10 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.exception import OperationFailed, NotFoundError -from kimchi.model.vms import VMModel, VMsModel -from kimchi.utils import kimchi_log -from kimchi.xmlutils.disk import get_vm_disk_info, get_vm_disks +from wok.exception import OperationFailed, NotFoundError +from vms import VMModel, VMsModel +from wok.utils import kimchi_log +from ..xmlutils.disk import get_vm_disk_info, get_vm_disks """ Functions that multiple storage-related models (e.g. VMStoragesModel, diff --git a/plugins/kimchi/model/featuretests.py b/plugins/kimchi/model/featuretests.py index 047108f..16fd25e 100644 --- a/plugins/kimchi/model/featuretests.py +++ b/plugins/kimchi/model/featuretests.py @@ -25,8 +25,8 @@ import subprocess from lxml.builder import E -from kimchi.rollbackcontext import RollbackContext -from kimchi.utils import kimchi_log, run_command, servermethod +from wok.rollbackcontext import RollbackContext +from wok.utils import kimchi_log, run_command, servermethod FEATURETEST_VM_NAME = "FEATURETEST_VM" FEATURETEST_POOL_NAME = "FEATURETEST_POOL" diff --git a/plugins/kimchi/model/groups.py b/plugins/kimchi/model/groups.py index 0af3f8f..fc63d68 100644 --- a/plugins/kimchi/model/groups.py +++ b/plugins/kimchi/model/groups.py @@ -19,7 +19,7 @@ import grp -from kimchi.config import config +from wok.config import config class GroupsModel(object): diff --git a/plugins/kimchi/model/host.py b/plugins/kimchi/model/host.py index b2fa379..f1f0b83 100644 --- a/plugins/kimchi/model/host.py +++ b/plugins/kimchi/model/host.py @@ -26,19 +26,19 @@ from collections import defaultdict import psutil from cherrypy.process.plugins import BackgroundTask -from kimchi import disks -from kimchi import netinfo -from kimchi.basemodel import Singleton -from kimchi.model import hostdev -from kimchi.exception import InvalidOperation, InvalidParameter -from kimchi.exception import NotFoundError, OperationFailed -from kimchi.model.config import CapabilitiesModel -from kimchi.model.tasks import TaskModel -from kimchi.model.vms import DOM_STATE_MAP -from kimchi.repositories import Repositories -from kimchi.swupdate import SoftwareUpdate -from kimchi.utils import add_task, kimchi_log -from kimchi.xmlutils.utils import xpath_get_text +from .. import disks +from wok import netinfo +from wok.basemodel import Singleton +import hostdev +from wok.exception import InvalidOperation, InvalidParameter +from wok.exception import NotFoundError, OperationFailed +from config import CapabilitiesModel +from tasks import TaskModel +from vms import DOM_STATE_MAP +from ..repositories import Repositories +from ..swupdate import SoftwareUpdate +from wok.utils import add_task, kimchi_log +from wok.xmlutils.utils import xpath_get_text HOST_STATS_INTERVAL = 1 diff --git a/plugins/kimchi/model/hostdev.py b/plugins/kimchi/model/hostdev.py index 2a4a311..34a8e1b 100644 --- a/plugins/kimchi/model/hostdev.py +++ b/plugins/kimchi/model/hostdev.py @@ -21,9 +21,9 @@ import os from pprint import pformat from pprint import pprint -from kimchi.model.libvirtconnection import LibvirtConnection -from kimchi.utils import kimchi_log -from kimchi.xmlutils.utils import dictize +from libvirtconnection import LibvirtConnection +from wok.utils import kimchi_log +from wok.xmlutils.utils import dictize def _get_all_host_dev_infos(libvirt_conn): diff --git a/plugins/kimchi/model/interfaces.py b/plugins/kimchi/model/interfaces.py index 4069caf..5ccadc7 100644 --- a/plugins/kimchi/model/interfaces.py +++ b/plugins/kimchi/model/interfaces.py @@ -17,9 +17,9 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi import netinfo -from kimchi.exception import NotFoundError -from kimchi.model.networks import NetworksModel +from wok import netinfo +from wok.exception import NotFoundError +from networks import NetworksModel class InterfacesModel(object): diff --git a/plugins/kimchi/model/libvirtconnection.py b/plugins/kimchi/model/libvirtconnection.py index 7a5337c..4a4eee4 100644 --- a/plugins/kimchi/model/libvirtconnection.py +++ b/plugins/kimchi/model/libvirtconnection.py @@ -23,7 +23,7 @@ import time import cherrypy import libvirt -from kimchi.utils import kimchi_log +from wok.utils import kimchi_log class LibvirtConnection(object): diff --git a/plugins/kimchi/model/libvirtstoragepool.py b/plugins/kimchi/model/libvirtstoragepool.py index c6deafc..b7a8291 100644 --- a/plugins/kimchi/model/libvirtstoragepool.py +++ b/plugins/kimchi/model/libvirtstoragepool.py @@ -24,10 +24,10 @@ from lxml.builder import E import libvirt -from kimchi.exception import InvalidParameter, OperationFailed, TimeoutExpired -from kimchi.iscsi import TargetClient -from kimchi.rollbackcontext import RollbackContext -from kimchi.utils import kimchi_log, parse_cmd_output, run_command +from wok.exception import InvalidParameter, OperationFailed, TimeoutExpired +from ..iscsi import TargetClient +from wok.rollbackcontext import RollbackContext +from wok.utils import kimchi_log, parse_cmd_output, run_command class StoragePoolDef(object): diff --git a/plugins/kimchi/model/model.py b/plugins/kimchi/model/model.py index 40ebc98..33dea12 100644 --- a/plugins/kimchi/model/model.py +++ b/plugins/kimchi/model/model.py @@ -20,10 +20,10 @@ import inspect import os -from kimchi.basemodel import BaseModel -from kimchi.model.libvirtconnection import LibvirtConnection -from kimchi.objectstore import ObjectStore -from kimchi.utils import import_module, listPathModules +from wok.basemodel import BaseModel +from libvirtconnection import LibvirtConnection +from wok.objectstore import ObjectStore +from wok.utils import import_module, listPathModules class Model(BaseModel): @@ -41,7 +41,7 @@ class Model(BaseModel): if mod_name.startswith("_") or mod_name == this_mod: continue - module = import_module('model.' + mod_name) + module = import_module('plugins.kimchi.model.' + mod_name) members = inspect.getmembers(module, inspect.isclass) for cls_name, instance in members: if inspect.getmodule(instance) == module: diff --git a/plugins/kimchi/model/networks.py b/plugins/kimchi/model/networks.py index 275e12b..7a3dfc8 100644 --- a/plugins/kimchi/model/networks.py +++ b/plugins/kimchi/model/networks.py @@ -25,17 +25,17 @@ import libvirt from xml.sax.saxutils import escape -from kimchi import netinfo -from kimchi import network as knetwork -from kimchi.config import paths -from kimchi.exception import InvalidOperation, InvalidParameter -from kimchi.exception import MissingParameter, NotFoundError, OperationFailed -from kimchi.osinfo import defaults as tmpl_defaults -from kimchi.rollbackcontext import RollbackContext -from kimchi.utils import kimchi_log, run_command -from kimchi.xmlutils.network import create_vlan_tagged_bridge_xml -from kimchi.xmlutils.network import to_network_xml -from kimchi.xmlutils.utils import xpath_get_text +from wok import netinfo +from wok import network as knetwork +from wok.config import paths +from wok.exception import InvalidOperation, InvalidParameter +from wok.exception import MissingParameter, NotFoundError, OperationFailed +from ..osinfo import defaults as tmpl_defaults +from wok.rollbackcontext import RollbackContext +from wok.utils import kimchi_log, run_command +from ..xmlutils.network import create_vlan_tagged_bridge_xml +from ..xmlutils.network import to_network_xml +from wok.xmlutils.utils import xpath_get_text KIMCHI_BRIDGE_PREFIX = 'kb' diff --git a/plugins/kimchi/model/peers.py b/plugins/kimchi/model/peers.py index 0d4227b..ef70b1e 100644 --- a/plugins/kimchi/model/peers.py +++ b/plugins/kimchi/model/peers.py @@ -21,8 +21,8 @@ import cherrypy import re import socket -from kimchi.config import config -from kimchi.utils import kimchi_log, run_command +from wok.config import config +from wok.utils import kimchi_log, run_command class PeersModel(object): diff --git a/plugins/kimchi/model/storagepools.py b/plugins/kimchi/model/storagepools.py index f022deb..6d9c8cf 100644 --- a/plugins/kimchi/model/storagepools.py +++ b/plugins/kimchi/model/storagepools.py @@ -23,16 +23,17 @@ import sys from lxml.builder import E -from kimchi.config import config, paths -from kimchi.scan import Scanner -from kimchi.exception import InvalidOperation, MissingParameter -from kimchi.exception import NotFoundError, OperationFailed -from kimchi.model.config import CapabilitiesModel -from kimchi.model.host import DeviceModel -from kimchi.model.libvirtstoragepool import StoragePoolDef -from kimchi.osinfo import defaults as tmpl_defaults -from kimchi.utils import add_task, kimchi_log, pool_name_from_uri, run_command -from kimchi.xmlutils.utils import xpath_get_text +from wok.config import config, paths +from ..scan import Scanner +from wok.exception import InvalidOperation, MissingParameter +from wok.exception import NotFoundError, OperationFailed +from config import CapabilitiesModel +from host import DeviceModel +from libvirtstoragepool import StoragePoolDef +from ..osinfo import defaults as tmpl_defaults +from wok.utils import add_task, kimchi_log, run_command +from ..utils import pool_name_from_uri +from wok.xmlutils.utils import xpath_get_text ISO_POOL_NAME = u'kimchi_isos' diff --git a/plugins/kimchi/model/storageservers.py b/plugins/kimchi/model/storageservers.py index dcdb74a..17e1289 100644 --- a/plugins/kimchi/model/storageservers.py +++ b/plugins/kimchi/model/storageservers.py @@ -17,8 +17,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.exception import NotFoundError -from kimchi.model.storagepools import StoragePoolModel, StoragePoolsModel +from wok.exception import NotFoundError +from storagepools import StoragePoolModel, StoragePoolsModel # Types of remote storage servers supported STORAGE_SERVERS = ['netfs', 'iscsi'] diff --git a/plugins/kimchi/model/storagetargets.py b/plugins/kimchi/model/storagetargets.py index 159f987..dd88fec 100644 --- a/plugins/kimchi/model/storagetargets.py +++ b/plugins/kimchi/model/storagetargets.py @@ -22,9 +22,9 @@ import lxml.etree as ET from lxml import objectify from lxml.builder import E -from kimchi.model.config import CapabilitiesModel -from kimchi.model.storageservers import STORAGE_SERVERS -from kimchi.utils import kimchi_log, patch_find_nfs_target +from config import CapabilitiesModel +from storageservers import STORAGE_SERVERS +from wok.utils import kimchi_log, patch_find_nfs_target class StorageTargetsModel(object): diff --git a/plugins/kimchi/model/storagevolumes.py b/plugins/kimchi/model/storagevolumes.py index 22856ff..92e1c7c 100644 --- a/plugins/kimchi/model/storagevolumes.py +++ b/plugins/kimchi/model/storagevolumes.py @@ -28,16 +28,16 @@ from lxml.builder import E import libvirt -from kimchi.config import READONLY_POOL_TYPE -from kimchi.exception import InvalidOperation, InvalidParameter, IsoFormatError -from kimchi.exception import MissingParameter, NotFoundError, OperationFailed -from kimchi.isoinfo import IsoImage -from kimchi.model.diskutils import get_disk_used_by, set_disk_used_by -from kimchi.model.storagepools import StoragePoolModel -from kimchi.model.tasks import TaskModel -from kimchi.utils import add_task, get_next_clone_name, get_unique_file_name -from kimchi.utils import kimchi_log -from kimchi.xmlutils.utils import xpath_get_text +from ..config import READONLY_POOL_TYPE +from wok.exception import InvalidOperation, InvalidParameter, IsoFormatError +from wok.exception import MissingParameter, NotFoundError, OperationFailed +from ..isoinfo import IsoImage +from diskutils import get_disk_used_by, set_disk_used_by +from storagepools import StoragePoolModel +from tasks import TaskModel +from wok.utils import add_task, get_next_clone_name, get_unique_file_name +from wok.utils import kimchi_log +from wok.xmlutils.utils import xpath_get_text VOLUME_TYPE_MAP = {0: 'file', diff --git a/plugins/kimchi/model/tasks.py b/plugins/kimchi/model/tasks.py index 61bc2f3..678fdc2 100644 --- a/plugins/kimchi/model/tasks.py +++ b/plugins/kimchi/model/tasks.py @@ -20,7 +20,7 @@ import time -from kimchi.exception import TimeoutExpired +from wok.exception import TimeoutExpired class TasksModel(object): diff --git a/plugins/kimchi/model/templates.py b/plugins/kimchi/model/templates.py index ef83706..0f1f6be 100644 --- a/plugins/kimchi/model/templates.py +++ b/plugins/kimchi/model/templates.py @@ -23,14 +23,14 @@ import stat import libvirt -from kimchi.exception import InvalidOperation, InvalidParameter -from kimchi.exception import NotFoundError, OperationFailed -from kimchi.kvmusertests import UserTests -from kimchi.model.cpuinfo import CPUInfoModel -from kimchi.utils import pool_name_from_uri -from kimchi.utils import probe_file_permission_as_user, run_setfacl_set_attr -from kimchi.vmtemplate import VMTemplate -from kimchi.xmlutils.utils import xpath_get_text +from wok.exception import InvalidOperation, InvalidParameter +from wok.exception import NotFoundError, OperationFailed +from ..kvmusertests import UserTests +from cpuinfo import CPUInfoModel +from ..utils import pool_name_from_uri +from wok.utils import probe_file_permission_as_user, run_setfacl_set_attr +from ..vmtemplate import VMTemplate +from wok.xmlutils.utils import xpath_get_text class TemplatesModel(object): diff --git a/plugins/kimchi/model/users.py b/plugins/kimchi/model/users.py index 1422bae..2fa65dd 100644 --- a/plugins/kimchi/model/users.py +++ b/plugins/kimchi/model/users.py @@ -20,8 +20,8 @@ import ldap import pwd -from kimchi.config import config -from kimchi.exception import NotFoundError +from wok.config import config +from wok.exception import NotFoundError class UsersModel(object): diff --git a/plugins/kimchi/model/utils.py b/plugins/kimchi/model/utils.py index 7f27edd..878390f 100644 --- a/plugins/kimchi/model/utils.py +++ b/plugins/kimchi/model/utils.py @@ -21,7 +21,7 @@ import libvirt from lxml import etree, objectify from lxml.builder import E, ElementMaker -from kimchi.exception import OperationFailed +from wok.exception import OperationFailed KIMCHI_META_URL = "https://github.com/kimchi-project/kimchi" KIMCHI_NAMESPACE = "kimchi" diff --git a/plugins/kimchi/model/vmhostdevs.py b/plugins/kimchi/model/vmhostdevs.py index ea75fce..f8c87dd 100644 --- a/plugins/kimchi/model/vmhostdevs.py +++ b/plugins/kimchi/model/vmhostdevs.py @@ -24,14 +24,14 @@ import libvirt from lxml import etree, objectify from lxml.builder import E -from kimchi.exception import InvalidOperation, InvalidParameter, NotFoundError -from kimchi.exception import OperationFailed -from kimchi.model.config import CapabilitiesModel -from kimchi.model.host import DeviceModel, DevicesModel -from kimchi.model.utils import get_vm_config_flag -from kimchi.model.vms import DOM_STATE_MAP, VMModel -from kimchi.rollbackcontext import RollbackContext -from kimchi.utils import kimchi_log, run_command +from wok.exception import InvalidOperation, InvalidParameter, NotFoundError +from wok.exception import OperationFailed +from config import CapabilitiesModel +from host import DeviceModel, DevicesModel +from utils import get_vm_config_flag +from vms import DOM_STATE_MAP, VMModel +from wok.rollbackcontext import RollbackContext +from wok.utils import kimchi_log, run_command import platform diff --git a/plugins/kimchi/model/vmifaces.py b/plugins/kimchi/model/vmifaces.py index 93a769b..fe136e3 100644 --- a/plugins/kimchi/model/vmifaces.py +++ b/plugins/kimchi/model/vmifaces.py @@ -22,11 +22,11 @@ import random import libvirt from lxml import etree, objectify -from kimchi.exception import InvalidParameter, MissingParameter -from kimchi.exception import NotFoundError, InvalidOperation -from kimchi.model.config import CapabilitiesModel -from kimchi.model.vms import DOM_STATE_MAP, VMModel -from kimchi.xmlutils.interface import get_iface_xml +from wok.exception import InvalidOperation, MissingParameter +from wok.exception import NotFoundError, InvalidOperation +from config import CapabilitiesModel +from vms import DOM_STATE_MAP, VMModel +from ..xmlutils.interface import get_iface_xml class VMIfacesModel(object): diff --git a/plugins/kimchi/model/vms.py b/plugins/kimchi/model/vms.py index 106e9bc..a874ca1 100644 --- a/plugins/kimchi/model/vms.py +++ b/plugins/kimchi/model/vms.py @@ -29,25 +29,27 @@ from xml.etree import ElementTree import libvirt -from kimchi import model, vnc -from kimchi.config import READONLY_POOL_TYPE, config -from kimchi.exception import InvalidOperation, InvalidParameter -from kimchi.exception import NotFoundError, OperationFailed -from kimchi.kvmusertests import UserTests -from kimchi.model.config import CapabilitiesModel -from kimchi.model.tasks import TaskModel -from kimchi.model.templates import TemplateModel -from kimchi.model.utils import get_vm_name -from kimchi.model.utils import get_metadata_node -from kimchi.model.utils import set_metadata_node -from kimchi.rollbackcontext import RollbackContext -from kimchi.screenshot import VMScreenshot -from kimchi.utils import add_task, convert_data_size, get_next_clone_name -from kimchi.utils import import_class, kimchi_log, run_setfacl_set_attr -from kimchi.utils import template_name_from_uri -from kimchi.xmlutils.cpu import get_cpu_xml, get_numa_xml -from kimchi.xmlutils.utils import xpath_get_text, xml_item_update -from kimchi.xmlutils.utils import dictize +from wok import vnc +from .. import model +from wok.config import config +from ..config import READONLY_POOL_TYPE +from wok.exception import InvalidOperation, InvalidParameter +from wok.exception import NotFoundError, OperationFailed +from ..kvmusertests import UserTests +from config import CapabilitiesModel +from tasks import TaskModel +from templates import TemplateModel +from utils import get_vm_name +from utils import get_metadata_node +from utils import set_metadata_node +from wok.rollbackcontext import RollbackContext +from ..screenshot import VMScreenshot +from wok.utils import add_task, convert_data_size, get_next_clone_name +from wok.utils import import_class, kimchi_log, run_setfacl_set_attr +from ..utils import template_name_from_uri +from ..xmlutils.cpu import get_cpu_xml, get_numa_xml +from wok.xmlutils.utils import xpath_get_text, xml_item_update +from wok.xmlutils.utils import dictize DOM_STATE_MAP = {0: 'nostate', @@ -182,16 +184,16 @@ class VMModel(object): self.objstore = kargs['objstore'] self.caps = CapabilitiesModel(**kargs) self.vmscreenshot = VMScreenshotModel(**kargs) - self.users = import_class('kimchi.model.users.UsersModel')(**kargs) - self.groups = import_class('kimchi.model.groups.GroupsModel')(**kargs) + self.users = import_class('plugins.kimchi.model.users.UsersModel')(**kargs) + self.groups = import_class('plugins.kimchi.model.groups.GroupsModel')(**kargs) self.vms = VMsModel(**kargs) self.task = TaskModel(**kargs) self.storagepool = model.storagepools.StoragePoolModel(**kargs) self.storagevolume = model.storagevolumes.StorageVolumeModel(**kargs) self.storagevolumes = model.storagevolumes.StorageVolumesModel(**kargs) - cls = import_class('kimchi.model.vmsnapshots.VMSnapshotModel') + cls = import_class('plugins.kimchi.model.vmsnapshots.VMSnapshotModel') self.vmsnapshot = cls(**kargs) - cls = import_class('kimchi.model.vmsnapshots.VMSnapshotsModel') + cls = import_class('plugins.kimchi.model.vmsnapshots.VMSnapshotsModel') self.vmsnapshots = cls(**kargs) self.stats = {} diff --git a/plugins/kimchi/model/vmsnapshots.py b/plugins/kimchi/model/vmsnapshots.py index 3a92cdc..60de253 100644 --- a/plugins/kimchi/model/vmsnapshots.py +++ b/plugins/kimchi/model/vmsnapshots.py @@ -24,12 +24,12 @@ import lxml.etree as ET from lxml import objectify from lxml.builder import E -from kimchi.exception import InvalidOperation, NotFoundError, OperationFailed -from kimchi.model.tasks import TaskModel -from kimchi.model.vms import DOM_STATE_MAP, VMModel -from kimchi.model.vmstorages import VMStorageModel, VMStoragesModel -from kimchi.utils import add_task -from kimchi.xmlutils.utils import xpath_get_text +from wok.exception import InvalidOperation, NotFoundError, OperationFailed +from tasks import TaskModel +from vms import DOM_STATE_MAP, VMModel +from vmstorages import VMStorageModel, VMStoragesModel +from wok.utils import add_task +from wok.xmlutils.utils import xpath_get_text class VMSnapshotsModel(object): diff --git a/plugins/kimchi/model/vmstorages.py b/plugins/kimchi/model/vmstorages.py index 142b177..29f8f30 100644 --- a/plugins/kimchi/model/vmstorages.py +++ b/plugins/kimchi/model/vmstorages.py @@ -21,17 +21,17 @@ import string from lxml import etree -from kimchi.exception import InvalidOperation, InvalidParameter, NotFoundError -from kimchi.exception import OperationFailed -from kimchi.model.config import CapabilitiesModel -from kimchi.model.vms import DOM_STATE_MAP, VMModel -from kimchi.model.storagevolumes import StorageVolumeModel -from kimchi.model.utils import get_vm_config_flag -from kimchi.osinfo import lookup -from kimchi.model.diskutils import get_disk_used_by, set_disk_used_by -from kimchi.utils import kimchi_log -from kimchi.xmlutils.disk import get_device_node, get_disk_xml -from kimchi.xmlutils.disk import get_vm_disk_info, get_vm_disks +from wok.exception import InvalidOperation, InvalidParameter, NotFoundError +from wok.exception import OperationFailed +from config import CapabilitiesModel +from vms import DOM_STATE_MAP, VMModel +from storagevolumes import StorageVolumeModel +from utils import get_vm_config_flag +from ..osinfo import lookup +from diskutils import get_disk_used_by, set_disk_used_by +from wok.utils import kimchi_log +from ..xmlutils.disk import get_device_node, get_disk_xml +from ..xmlutils.disk import get_vm_disk_info, get_vm_disks HOTPLUG_TYPE = ['scsi', 'virtio'] diff --git a/plugins/kimchi/osinfo.py b/plugins/kimchi/osinfo.py index 78eb828..d2aab71 100644 --- a/plugins/kimchi/osinfo.py +++ b/plugins/kimchi/osinfo.py @@ -26,7 +26,7 @@ from collections import defaultdict from configobj import ConfigObj from distutils.version import LooseVersion -from kimchi.config import paths +from wok.config import paths SUPPORTED_ARCHS = {'x86': ('i386', 'i686', 'x86_64'), diff --git a/plugins/kimchi/repositories.py b/plugins/kimchi/repositories.py index 20b7311..926bd45 100644 --- a/plugins/kimchi/repositories.py +++ b/plugins/kimchi/repositories.py @@ -24,12 +24,12 @@ import urlparse from ConfigParser import ConfigParser -from kimchi.basemodel import Singleton -from kimchi.config import kimchiLock -from kimchi.exception import InvalidOperation, InvalidParameter -from kimchi.exception import OperationFailed, NotFoundError, MissingParameter -from kimchi.utils import validate_repo_url -from kimchi.yumparser import get_yum_repositories, write_repo_to_file +from wok.basemodel import Singleton +from config import kimchiLock +from wok.exception import InvalidOperation, InvalidParameter +from wok.exception import OperationFailed, NotFoundError, MissingParameter +from wok.utils import validate_repo_url +from yumparser import get_yum_repositories, write_repo_to_file class Repositories(object): diff --git a/plugins/kimchi/scan.py b/plugins/kimchi/scan.py index 86999b4..8e42fbc 100644 --- a/plugins/kimchi/scan.py +++ b/plugins/kimchi/scan.py @@ -26,8 +26,8 @@ import tempfile import time -from kimchi.isoinfo import IsoImage, probe_iso -from kimchi.utils import kimchi_log +from isoinfo import IsoImage, probe_iso +from wok.utils import kimchi_log SCAN_IGNORE = ['/tmp/kimchi-scan-*'] diff --git a/plugins/kimchi/screenshot.py b/plugins/kimchi/screenshot.py index e599d40..765e1a6 100644 --- a/plugins/kimchi/screenshot.py +++ b/plugins/kimchi/screenshot.py @@ -32,8 +32,8 @@ except ImportError: import Image -from kimchi import config -from kimchi.utils import kimchi_log +import config +from wok.utils import kimchi_log (fd, pipe) = tempfile.mkstemp() diff --git a/plugins/kimchi/swupdate.py b/plugins/kimchi/swupdate.py index 70db2ef..592fb84 100644 --- a/plugins/kimchi/swupdate.py +++ b/plugins/kimchi/swupdate.py @@ -20,11 +20,11 @@ import subprocess import time -from kimchi.basemodel import Singleton -from kimchi.config import kimchiLock -from kimchi.exception import NotFoundError, OperationFailed -from kimchi.utils import kimchi_log, run_command -from kimchi.yumparser import get_yum_packages_list_update +from wok.basemodel import Singleton +from config import kimchiLock +from wok.exception import NotFoundError, OperationFailed +from wok.utils import kimchi_log, run_command +from yumparser import get_yum_packages_list_update class SoftwareUpdate(object): diff --git a/plugins/kimchi/tests/iso_gen.py b/plugins/kimchi/tests/iso_gen.py index 096161d..7e92622 100644 --- a/plugins/kimchi/tests/iso_gen.py +++ b/plugins/kimchi/tests/iso_gen.py @@ -20,7 +20,7 @@ import platform import struct -from kimchi.isoinfo import IsoImage +from wok.plugins.kimchi.isoinfo import IsoImage iso_des = [ ('openbsd', lambda v: True, diff --git a/plugins/kimchi/tests/run_tests.sh.in b/plugins/kimchi/tests/run_tests.sh.in index d1f4b38..beef75e 100644 --- a/plugins/kimchi/tests/run_tests.sh.in +++ b/plugins/kimchi/tests/run_tests.sh.in @@ -52,4 +52,4 @@ for ((i=0;i<${#LIST[@]};i++)); do fi done -PYTHONPATH=../src:../ $CMD $OPTS ${MODEL_LIST[@]} ${MOCK_LIST[@]} +PYTHONPATH=../plugins:../src:../ $CMD $OPTS ${MODEL_LIST[@]} ${MOCK_LIST[@]} diff --git a/plugins/kimchi/tests/test_authorization.py b/plugins/kimchi/tests/test_authorization.py index 959dcf8..6513b67 100644 --- a/plugins/kimchi/tests/test_authorization.py +++ b/plugins/kimchi/tests/test_authorization.py @@ -23,7 +23,7 @@ import unittest from functools import partial -import kimchi.mockmodel +from wok.plugins.kimchi import mockmodel from iso_gen import construct_fake_iso from utils import get_free_port, patch_auth, request from utils import run_server, wait_task @@ -41,7 +41,7 @@ def setUpModule(): global test_server, model, host, port, ssl_port patch_auth(sudo=False) - model = kimchi.mockmodel.MockModel('/tmp/obj-store-test') + model = mockmodel.MockModel('/tmp/obj-store-test') host = '127.0.0.1' port = get_free_port('http') ssl_port = get_free_port('https') @@ -123,7 +123,7 @@ class AuthorizationTests(unittest.TestCase): wait_task(model.task_lookup, task_info['id']) model.vm_update(u'test-me', - {'users': [kimchi.mockmodel.fake_user.keys()[0]], + {'users': [mockmodel.fake_user.keys()[0]], 'groups': []}) task_info = model.vms_create({'name': u'test-usera', diff --git a/plugins/kimchi/tests/test_config.py.in b/plugins/kimchi/tests/test_config.py.in index 6123f66..337218e 100644 --- a/plugins/kimchi/tests/test_config.py.in +++ b/plugins/kimchi/tests/test_config.py.in @@ -19,8 +19,8 @@ import unittest -from kimchi import config -from kimchi.config import Paths, PluginPaths, KimchiConfig +from wok import config +from wok.config import Paths, PluginPaths, KimchiConfig get_prefix = None diff --git a/plugins/kimchi/tests/test_exception.py b/plugins/kimchi/tests/test_exception.py index a533015..834a275 100644 --- a/plugins/kimchi/tests/test_exception.py +++ b/plugins/kimchi/tests/test_exception.py @@ -22,8 +22,8 @@ import os import unittest -import kimchi.mockmodel -import kimchi.server +from wok.plugins.kimchi import mockmodel +import wok.server from utils import get_free_port, patch_auth, request, run_server @@ -38,7 +38,7 @@ def setup_server(environment='development'): global test_server, model, host, port, ssl_port patch_auth() - model = kimchi.mockmodel.MockModel('/tmp/obj-store-test') + model = mockmodel.MockModel('/tmp/obj-store-test') host = '127.0.0.1' port = get_free_port('http') ssl_port = get_free_port('https') diff --git a/plugins/kimchi/tests/test_host.py b/plugins/kimchi/tests/test_host.py index 1273457..7770148 100644 --- a/plugins/kimchi/tests/test_host.py +++ b/plugins/kimchi/tests/test_host.py @@ -28,7 +28,7 @@ import unittest from functools import partial -from kimchi.mockmodel import MockModel +from wok.plugins.kimchi.mockmodel import MockModel from utils import get_free_port, patch_auth, request, run_server, wait_task test_server = None diff --git a/plugins/kimchi/tests/test_mock_network.py b/plugins/kimchi/tests/test_mock_network.py index 4416c04..4e390b1 100644 --- a/plugins/kimchi/tests/test_mock_network.py +++ b/plugins/kimchi/tests/test_mock_network.py @@ -24,7 +24,7 @@ import unittest from functools import partial -from kimchi.mockmodel import MockModel +from wok.plugins.kimchi.mockmodel import MockModel from test_model_network import _do_network_test from utils import get_free_port, patch_auth, request, run_server diff --git a/plugins/kimchi/tests/test_mock_storagepool.py b/plugins/kimchi/tests/test_mock_storagepool.py index 1dc9277..c72708b 100644 --- a/plugins/kimchi/tests/test_mock_storagepool.py +++ b/plugins/kimchi/tests/test_mock_storagepool.py @@ -24,7 +24,7 @@ import unittest from functools import partial -from kimchi.mockmodel import MockModel +from wok.plugins.kimchi.mockmodel import MockModel from utils import get_free_port, patch_auth, request, run_server diff --git a/plugins/kimchi/tests/test_mock_storagevolume.py b/plugins/kimchi/tests/test_mock_storagevolume.py index f59aa13..3dd16b7 100644 --- a/plugins/kimchi/tests/test_mock_storagevolume.py +++ b/plugins/kimchi/tests/test_mock_storagevolume.py @@ -24,7 +24,7 @@ import unittest from functools import partial -from kimchi.mockmodel import MockModel +from wok.plugins.kimchi.mockmodel import MockModel from test_model_storagevolume import _do_volume_test from utils import get_free_port, patch_auth, request, run_server diff --git a/plugins/kimchi/tests/test_mockmodel.py b/plugins/kimchi/tests/test_mockmodel.py index 52972f0..03ad445 100644 --- a/plugins/kimchi/tests/test_mockmodel.py +++ b/plugins/kimchi/tests/test_mockmodel.py @@ -24,9 +24,9 @@ import time import unittest -import kimchi.mockmodel +from wok.plugins.kimchi import mockmodel from utils import get_free_port, patch_auth, request, run_server, wait_task -from kimchi.osinfo import get_template_default +from wok.plugins.kimchi.osinfo import get_template_default test_server = None @@ -40,7 +40,7 @@ fake_iso = None def setUpModule(): global host, port, ssl_port, model, test_server, fake_iso cherrypy.request.headers = {'Accept': 'application/json'} - model = kimchi.mockmodel.MockModel('/tmp/obj-store-test') + model = mockmodel.MockModel('/tmp/obj-store-test') patch_auth() port = get_free_port('http') ssl_port = get_free_port('https') diff --git a/plugins/kimchi/tests/test_model.py b/plugins/kimchi/tests/test_model.py index 3828342..7f90274 100644 --- a/plugins/kimchi/tests/test_model.py +++ b/plugins/kimchi/tests/test_model.py @@ -29,18 +29,18 @@ import uuid import iso_gen -import kimchi.objectstore +import wok.objectstore import utils -from kimchi import netinfo -from kimchi.basemodel import Singleton -from kimchi.config import config -from kimchi.exception import InvalidOperation -from kimchi.exception import InvalidParameter, NotFoundError, OperationFailed -from kimchi.osinfo import get_template_default -from kimchi.model import model -from kimchi.model.libvirtconnection import LibvirtConnection -from kimchi.rollbackcontext import RollbackContext -from kimchi.utils import add_task +from wok import netinfo +from wok.basemodel import Singleton +from wok.config import config +from wok.exception import InvalidOperation +from wok.exception import InvalidParameter, NotFoundError, OperationFailed +from wok.plugins.kimchi.osinfo import get_template_default +from wok.plugins.kimchi.model import model +from wok.plugins.kimchi.model.libvirtconnection import LibvirtConnection +from wok.rollbackcontext import RollbackContext +from wok.utils import add_task invalid_repository_urls = ['www.fedora.org', # missing protocol @@ -1217,7 +1217,7 @@ class BaseModelTests(unittest.TestCase): def get_list(self): return list(self.data) - class TestModel(kimchi.basemodel.BaseModel): + class TestModel(wok.basemodel.BaseModel): def __init__(self): foo = BaseModelTests.FoosModel() super(BaseModelTests.TestModel, self).__init__([foo]) diff --git a/plugins/kimchi/tests/test_model_network.py b/plugins/kimchi/tests/test_model_network.py index 5dbe54d..d557b3c 100644 --- a/plugins/kimchi/tests/test_model_network.py +++ b/plugins/kimchi/tests/test_model_network.py @@ -24,8 +24,8 @@ import unittest from functools import partial -from kimchi.model.model import Model -from kimchi.rollbackcontext import RollbackContext +from wok.plugins.kimchi.model.model import Model +from wok.rollbackcontext import RollbackContext from utils import get_free_port, patch_auth, request, rollback_wrapper from utils import run_server diff --git a/plugins/kimchi/tests/test_model_storagepool.py b/plugins/kimchi/tests/test_model_storagepool.py index eabf875..a01adc0 100644 --- a/plugins/kimchi/tests/test_model_storagepool.py +++ b/plugins/kimchi/tests/test_model_storagepool.py @@ -24,8 +24,8 @@ import unittest from functools import partial -from kimchi.model.model import Model -from kimchi.rollbackcontext import RollbackContext +from wok.plugins.kimchi.model.model import Model +from wok.rollbackcontext import RollbackContext from utils import get_free_port, patch_auth, request from utils import run_server diff --git a/plugins/kimchi/tests/test_model_storagevolume.py b/plugins/kimchi/tests/test_model_storagevolume.py index 5e76d3d..d47b4e3 100644 --- a/plugins/kimchi/tests/test_model_storagevolume.py +++ b/plugins/kimchi/tests/test_model_storagevolume.py @@ -25,10 +25,11 @@ import unittest from functools import partial -from kimchi.config import paths, READONLY_POOL_TYPE -from kimchi.model.model import Model -from kimchi.mockmodel import MockModel -from kimchi.rollbackcontext import RollbackContext +from wok.config import paths +from wok.plugins.kimchi.config import READONLY_POOL_TYPE +from wok.plugins.kimchi.model.model import Model +from wok.plugins.kimchi.mockmodel import MockModel +from wok.rollbackcontext import RollbackContext from utils import fake_auth_header, get_free_port, patch_auth, request from utils import rollback_wrapper, run_server, wait_task diff --git a/plugins/kimchi/tests/test_networkxml.py b/plugins/kimchi/tests/test_networkxml.py index 3706a71..139f051 100644 --- a/plugins/kimchi/tests/test_networkxml.py +++ b/plugins/kimchi/tests/test_networkxml.py @@ -23,8 +23,8 @@ import lxml.etree as ET import utils -from kimchi.xmlutils import network as nxml -from kimchi.xmlutils.utils import xpath_get_text +from wok.plugins.kimchi.xmlutils import network as nxml +from wok.xmlutils.utils import xpath_get_text class NetworkXmlTests(unittest.TestCase): diff --git a/plugins/kimchi/tests/test_objectstore.py b/plugins/kimchi/tests/test_objectstore.py index f62217e..412a7f2 100644 --- a/plugins/kimchi/tests/test_objectstore.py +++ b/plugins/kimchi/tests/test_objectstore.py @@ -23,8 +23,8 @@ import tempfile import threading import unittest -from kimchi.exception import NotFoundError -from kimchi import objectstore +from wok.exception import NotFoundError +from wok import objectstore tmpfile = None diff --git a/plugins/kimchi/tests/test_osinfo.py b/plugins/kimchi/tests/test_osinfo.py index e617c54..1712ded 100644 --- a/plugins/kimchi/tests/test_osinfo.py +++ b/plugins/kimchi/tests/test_osinfo.py @@ -20,8 +20,8 @@ import unittest -from kimchi.osinfo import _get_arch, get_template_default, lookup -from kimchi.osinfo import modern_version_bases +from wok.plugins.kimchi.osinfo import _get_arch, get_template_default, lookup +from wok.plugins.kimchi.osinfo import modern_version_bases class OSInfoTests(unittest.TestCase): diff --git a/plugins/kimchi/tests/test_plugin.py b/plugins/kimchi/tests/test_plugin.py index 9eb6e0a..2f2475a 100644 --- a/plugins/kimchi/tests/test_plugin.py +++ b/plugins/kimchi/tests/test_plugin.py @@ -25,9 +25,9 @@ import unittest from functools import partial -import kimchi.mockmodel -import kimchi.server -from kimchi.utils import get_enabled_plugins +from wok.plugins.kimchi import mockmodel +import wok.server +from wok.utils import get_enabled_plugins import utils @@ -42,7 +42,7 @@ def setUpModule(): global test_server, model, host, port, ssl_port utils.patch_auth() - model = kimchi.mockmodel.MockModel('/tmp/obj-store-test') + model = mockmodel.MockModel('/tmp/obj-store-test') host = '127.0.0.1' port = utils.get_free_port('http') ssl_port = utils.get_free_port('https') diff --git a/plugins/kimchi/tests/test_rest.py b/plugins/kimchi/tests/test_rest.py index c2d142f..f390abb 100644 --- a/plugins/kimchi/tests/test_rest.py +++ b/plugins/kimchi/tests/test_rest.py @@ -29,11 +29,11 @@ import urlparse from functools import partial import iso_gen -import kimchi.mockmodel -import kimchi.server -from kimchi.osinfo import get_template_default -from kimchi.rollbackcontext import RollbackContext -from kimchi.utils import add_task +from wok.plugins.kimchi import mockmodel +import wok.server +from wok.plugins.kimchi.osinfo import get_template_default +from wok.rollbackcontext import RollbackContext +from wok.utils import add_task from utils import get_free_port, patch_auth, request from utils import run_server, wait_task @@ -51,7 +51,7 @@ def setUpModule(): global test_server, model, host, port, ssl_port, cherrypy_port patch_auth() - model = kimchi.mockmodel.MockModel('/tmp/obj-store-test') + model = mockmodel.MockModel('/tmp/obj-store-test') host = '127.0.0.1' port = get_free_port('http') ssl_port = get_free_port('https') diff --git a/plugins/kimchi/tests/test_rollbackcontext.py b/plugins/kimchi/tests/test_rollbackcontext.py index 1492d33..6eac6d0 100644 --- a/plugins/kimchi/tests/test_rollbackcontext.py +++ b/plugins/kimchi/tests/test_rollbackcontext.py @@ -19,7 +19,7 @@ import unittest -from kimchi.rollbackcontext import RollbackContext +from wok.rollbackcontext import RollbackContext class FirstError(Exception): diff --git a/plugins/kimchi/tests/test_server.py b/plugins/kimchi/tests/test_server.py index a4d31d0..228a9b5 100644 --- a/plugins/kimchi/tests/test_server.py +++ b/plugins/kimchi/tests/test_server.py @@ -28,8 +28,8 @@ import unittest from functools import partial import utils -from kimchi import mockmodel -from kimchi.control.base import Collection, Resource +from wok.plugins.kimchi import mockmodel +from wok.control.base import Collection, Resource test_server = None model = None diff --git a/plugins/kimchi/tests/test_storagepoolxml.py b/plugins/kimchi/tests/test_storagepoolxml.py index c508c58..7e45cca 100644 --- a/plugins/kimchi/tests/test_storagepoolxml.py +++ b/plugins/kimchi/tests/test_storagepoolxml.py @@ -20,7 +20,7 @@ import lxml.etree as ET import unittest -from kimchi.model.libvirtstoragepool import StoragePoolDef +from wok.plugins.kimchi.model.libvirtstoragepool import StoragePoolDef class StoragepoolXMLTests(unittest.TestCase): diff --git a/plugins/kimchi/tests/test_template.py b/plugins/kimchi/tests/test_template.py index acdb7c6..b263b63 100644 --- a/plugins/kimchi/tests/test_template.py +++ b/plugins/kimchi/tests/test_template.py @@ -24,8 +24,8 @@ import unittest from functools import partial -from kimchi.config import READONLY_POOL_TYPE -from kimchi.mockmodel import MockModel +from wok.plugins.kimchi.config import READONLY_POOL_TYPE +from wok.plugins.kimchi.mockmodel import MockModel from utils import get_free_port, patch_auth, request, run_server diff --git a/plugins/kimchi/tests/test_utils.py b/plugins/kimchi/tests/test_utils.py index b8ff621..bcb14e2 100644 --- a/plugins/kimchi/tests/test_utils.py +++ b/plugins/kimchi/tests/test_utils.py @@ -19,8 +19,8 @@ import unittest -from kimchi.exception import InvalidParameter -from kimchi.utils import convert_data_size +from wok.exception import InvalidParameter +from wok.utils import convert_data_size class UtilsTests(unittest.TestCase): diff --git a/plugins/kimchi/tests/test_vmtemplate.py b/plugins/kimchi/tests/test_vmtemplate.py index 0ca9adb..6213900 100644 --- a/plugins/kimchi/tests/test_vmtemplate.py +++ b/plugins/kimchi/tests/test_vmtemplate.py @@ -22,9 +22,9 @@ import unittest import uuid -from kimchi.osinfo import get_template_default -from kimchi.vmtemplate import VMTemplate -from kimchi.xmlutils.utils import xpath_get_text +from wok.plugins.kimchi.osinfo import get_template_default +from wok.plugins.kimchi.vmtemplate import VMTemplate +from wok.xmlutils.utils import xpath_get_text class VMTemplateTests(unittest.TestCase): diff --git a/plugins/kimchi/tests/test_yumparser.py b/plugins/kimchi/tests/test_yumparser.py index 69f411a..8dd16b0 100644 --- a/plugins/kimchi/tests/test_yumparser.py +++ b/plugins/kimchi/tests/test_yumparser.py @@ -21,12 +21,12 @@ import os import tempfile import unittest -from kimchi.model import model -from kimchi.rollbackcontext import RollbackContext -from kimchi.yumparser import delete_repo_from_file, get_repo_files -from kimchi.yumparser import get_yum_packages_list_update -from kimchi.yumparser import get_yum_repositories, write_repo_to_file -from kimchi.yumparser import YumRepoObject +from wok.plugins.kimchi.model import model +from wok.rollbackcontext import RollbackContext +from wok.plugins.kimchi.yumparser import delete_repo_from_file, get_repo_files +from wok.plugins.kimchi.yumparser import get_yum_packages_list_update +from wok.plugins.kimchi.yumparser import get_yum_repositories, write_repo_to_file +from wok.plugins.kimchi.yumparser import YumRepoObject TEMP_REPO_FILE = '' diff --git a/plugins/kimchi/tests/utils.py b/plugins/kimchi/tests/utils.py index 2ffe776..6144dc7 100644 --- a/plugins/kimchi/tests/utils.py +++ b/plugins/kimchi/tests/utils.py @@ -36,12 +36,12 @@ from contextlib import closing from lxml import etree -import kimchi.mockmodel -import kimchi.server -from kimchi.config import config, paths -from kimchi.auth import User, USER_NAME, USER_GROUPS, USER_ROLES, tabs -from kimchi.exception import NotFoundError, OperationFailed -from kimchi.utils import kimchi_log +from wok.plugins.kimchi import mockmodel +import wok.server +from wok.config import config, paths +from wok.auth import User, USER_NAME, USER_GROUPS, USER_ROLES, tabs +from wok.exception import NotFoundError, OperationFailed +from wok.utils import kimchi_log _ports = {} @@ -118,7 +118,7 @@ def run_server(host, port, ssl_port, test_mode, cherrypy_port=None, if model is not None: setattr(args, 'model', model) - s = kimchi.server.Server(args) + s = wok.server.Server(args) t = threading.Thread(target=s.start) t.setDaemon(True) t.start() @@ -142,7 +142,7 @@ def _request(conn, path, data, method, headers): headers = {'Content-Type': 'application/json', 'Accept': 'application/json'} if 'AUTHORIZATION' not in headers.keys(): - user, pw = kimchi.mockmodel.fake_user.items()[0] + user, pw = mockmodel.fake_user.items()[0] hdr = "Basic " + base64.b64encode("%s:%s" % (user, pw)) headers['AUTHORIZATION'] = hdr conn.request(method, path, data, headers) @@ -203,7 +203,7 @@ class FakeUser(User): @staticmethod def authenticate(username, password, service="passwd"): try: - return kimchi.mockmodel.fake_user[username] == password + return mockmodel.fake_user[username] == password except KeyError, e: raise OperationFailed("KCHAUTH0001E", {'username': 'username', 'code': e.message}) @@ -254,7 +254,7 @@ def rollback_wrapper(func, resource, *args): # requests lib take care of encode part, so use this lib instead def fake_auth_header(): headers = {'Accept': 'application/json'} - user, pw = kimchi.mockmodel.fake_user.items()[0] + user, pw = mockmodel.fake_user.items()[0] hdr = "Basic " + base64.b64encode("%s:%s" % (user, pw)) headers['AUTHORIZATION'] = hdr return headers diff --git a/plugins/kimchi/ui/pages/error.html.tmpl b/plugins/kimchi/ui/pages/error.html.tmpl index d8e16e6..068f2a6 100644 --- a/plugins/kimchi/ui/pages/error.html.tmpl +++ b/plugins/kimchi/ui/pages/error.html.tmpl @@ -18,7 +18,7 @@ #encoding UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/ui/pages/guest-add.html.tmpl b/plugins/kimchi/ui/pages/guest-add.html.tmpl index ab26c1e..8466bae 100644 --- a/plugins/kimchi/ui/pages/guest-add.html.tmpl +++ b/plugins/kimchi/ui/pages/guest-add.html.tmpl @@ -17,7 +17,7 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/ui/pages/guest-storage-add.html.tmpl b/plugins/kimchi/ui/pages/guest-storage-add.html.tmpl index 504316c..a26e0f9 100644 --- a/plugins/kimchi/ui/pages/guest-storage-add.html.tmpl +++ b/plugins/kimchi/ui/pages/guest-storage-add.html.tmpl @@ -17,7 +17,7 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/ui/pages/guest.html.tmpl b/plugins/kimchi/ui/pages/guest.html.tmpl index a192413..a876f38 100644 --- a/plugins/kimchi/ui/pages/guest.html.tmpl +++ b/plugins/kimchi/ui/pages/guest.html.tmpl @@ -17,7 +17,7 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/ui/pages/i18n.json.tmpl b/plugins/kimchi/ui/pages/i18n.json.tmpl index f705613..cd320e0 100644 --- a/plugins/kimchi/ui/pages/i18n.json.tmpl +++ b/plugins/kimchi/ui/pages/i18n.json.tmpl @@ -17,7 +17,7 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/ui/pages/report-add.html.tmpl b/plugins/kimchi/ui/pages/report-add.html.tmpl index e63da44..ecfb1a0 100644 --- a/plugins/kimchi/ui/pages/report-add.html.tmpl +++ b/plugins/kimchi/ui/pages/report-add.html.tmpl @@ -17,7 +17,7 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/ui/pages/report-rename.html.tmpl b/plugins/kimchi/ui/pages/report-rename.html.tmpl index 5bc91d3..ca17982 100644 --- a/plugins/kimchi/ui/pages/report-rename.html.tmpl +++ b/plugins/kimchi/ui/pages/report-rename.html.tmpl @@ -17,7 +17,7 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/ui/pages/repository-add.html.tmpl b/plugins/kimchi/ui/pages/repository-add.html.tmpl index 6de4f76..5b1208e 100644 --- a/plugins/kimchi/ui/pages/repository-add.html.tmpl +++ b/plugins/kimchi/ui/pages/repository-add.html.tmpl @@ -17,7 +17,7 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/ui/pages/repository-edit.html.tmpl b/plugins/kimchi/ui/pages/repository-edit.html.tmpl index f13cb90..616cbc0 100644 --- a/plugins/kimchi/ui/pages/repository-edit.html.tmpl +++ b/plugins/kimchi/ui/pages/repository-edit.html.tmpl @@ -17,7 +17,7 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/ui/pages/storagepool-add-volume.html.tmpl b/plugins/kimchi/ui/pages/storagepool-add-volume.html.tmpl index 048f1ed..8099006 100644 --- a/plugins/kimchi/ui/pages/storagepool-add-volume.html.tmpl +++ b/plugins/kimchi/ui/pages/storagepool-add-volume.html.tmpl @@ -17,7 +17,7 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/ui/pages/tabs/guests.html.tmpl b/plugins/kimchi/ui/pages/tabs/guests.html.tmpl index 7bbf570..b96dd21 100644 --- a/plugins/kimchi/ui/pages/tabs/guests.html.tmpl +++ b/plugins/kimchi/ui/pages/tabs/guests.html.tmpl @@ -19,7 +19,7 @@ #unicode UTF-8 #import gettext #from Cheetah.Template import Template -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/ui/pages/tabs/host.html.tmpl b/plugins/kimchi/ui/pages/tabs/host.html.tmpl index d5a9b1d..921b45f 100644 --- a/plugins/kimchi/ui/pages/tabs/host.html.tmpl +++ b/plugins/kimchi/ui/pages/tabs/host.html.tmpl @@ -18,7 +18,7 @@ #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/ui/pages/tabs/network.html.tmpl b/plugins/kimchi/ui/pages/tabs/network.html.tmpl index 6eaa4b3..421f6bc 100644 --- a/plugins/kimchi/ui/pages/tabs/network.html.tmpl +++ b/plugins/kimchi/ui/pages/tabs/network.html.tmpl @@ -18,7 +18,7 @@ #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/ui/pages/tabs/templates.html.tmpl b/plugins/kimchi/ui/pages/tabs/templates.html.tmpl index 4f91254..cd9b8e5 100644 --- a/plugins/kimchi/ui/pages/tabs/templates.html.tmpl +++ b/plugins/kimchi/ui/pages/tabs/templates.html.tmpl @@ -17,7 +17,7 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/ui/pages/template-add.html.tmpl b/plugins/kimchi/ui/pages/template-add.html.tmpl index 58cb20f..fe63283 100644 --- a/plugins/kimchi/ui/pages/template-add.html.tmpl +++ b/plugins/kimchi/ui/pages/template-add.html.tmpl @@ -17,7 +17,7 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/ui/pages/template-edit.html.tmpl b/plugins/kimchi/ui/pages/template-edit.html.tmpl index 5191f54..fa6ebd3 100644 --- a/plugins/kimchi/ui/pages/template-edit.html.tmpl +++ b/plugins/kimchi/ui/pages/template-edit.html.tmpl @@ -17,7 +17,7 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/plugins/kimchi/vmtemplate.py b/plugins/kimchi/vmtemplate.py index 79e04ed..f45f80d 100644 --- a/plugins/kimchi/vmtemplate.py +++ b/plugins/kimchi/vmtemplate.py @@ -26,17 +26,18 @@ import uuid from lxml import etree from lxml.builder import E -from kimchi import imageinfo -from kimchi import osinfo -from kimchi.exception import InvalidParameter, IsoFormatError, MissingParameter -from kimchi.exception import ImageFormatError, OperationFailed -from kimchi.isoinfo import IsoImage -from kimchi.utils import check_url_path, pool_name_from_uri -from kimchi.xmlutils.cpu import get_cpu_xml -from kimchi.xmlutils.disk import get_disk_xml -from kimchi.xmlutils.graphics import get_graphics_xml -from kimchi.xmlutils.interface import get_iface_xml -from kimchi.xmlutils.qemucmdline import get_qemucmdline_xml +import imageinfo +import osinfo +from wok.exception import InvalidParameter, IsoFormatError, MissingParameter +from wok.exception import ImageFormatError, OperationFailed +from isoinfo import IsoImage +from wok.utils import check_url_path +from utils import pool_name_from_uri +from xmlutils.cpu import get_cpu_xml +from xmlutils.disk import get_disk_xml +from xmlutils.graphics import get_graphics_xml +from xmlutils.interface import get_iface_xml +from xmlutils.qemucmdline import get_qemucmdline_xml class VMTemplate(object): diff --git a/plugins/kimchi/xmlutils/disk.py b/plugins/kimchi/xmlutils/disk.py index 64e243a..a451c43 100644 --- a/plugins/kimchi/xmlutils/disk.py +++ b/plugins/kimchi/xmlutils/disk.py @@ -27,8 +27,8 @@ import urlparse from lxml import objectify from lxml.builder import E -from kimchi.exception import InvalidParameter, NotFoundError -from kimchi.utils import check_url_path +from wok.exception import InvalidParameter, NotFoundError +from wok.utils import check_url_path BUS_TO_DEV_MAP = {'ide': 'hd', 'virtio': 'vd', 'scsi': 'sd'} DEV_TYPE_SRC_ATTR_MAP = {'file': 'file', 'block': 'dev'} diff --git a/plugins/kimchi/xmlutils/interface.py b/plugins/kimchi/xmlutils/interface.py index 82ac505..70b63bd 100644 --- a/plugins/kimchi/xmlutils/interface.py +++ b/plugins/kimchi/xmlutils/interface.py @@ -22,7 +22,7 @@ import lxml.etree as ET from distutils.version import LooseVersion from lxml.builder import E -from kimchi import osinfo +from .. import osinfo def get_iface_xml(params, arch=None, os_distro=None, os_version=None): diff --git a/plugins/sample/__init__.py b/plugins/sample/__init__.py index 10c244c..d741ddb 100644 --- a/plugins/sample/__init__.py +++ b/plugins/sample/__init__.py @@ -24,9 +24,9 @@ import os from cherrypy import expose -from kimchi.config import PluginPaths -from kimchi.control.base import Collection, Resource -from kimchi.root import Root +from wok.config import PluginPaths +from wok.control.base import Collection, Resource +from wok.root import Root from plugins.sample.i18n import messages from plugins.sample.model import Model diff --git a/plugins/sample/model.py b/plugins/sample/model.py index ce43761..8edcc85 100644 --- a/plugins/sample/model.py +++ b/plugins/sample/model.py @@ -17,8 +17,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.exception import InvalidOperation, NotFoundError -from kimchi.basemodel import BaseModel +from wok.exception import InvalidOperation, NotFoundError +from wok.basemodel import BaseModel class CirclesModel(object): diff --git a/plugins/sample/sample.conf.in b/plugins/sample/sample.conf.in index ac7e27f..28ae891 100644 --- a/plugins/sample/sample.conf.in +++ b/plugins/sample/sample.conf.in @@ -24,4 +24,4 @@ tools.kimchiauth.on = True [/help] tools.staticdir.on = True tools.nocache.on = True -tools.staticdir.dir = kimchi.config.PluginPaths('sample').ui_dir + '/pages/help' +tools.staticdir.dir = wok.config.PluginPaths('sample').ui_dir + '/pages/help' diff --git a/plugins/sample/ui/pages/i18n.json.tmpl b/plugins/sample/ui/pages/i18n.json.tmpl index ed9b66f..737bb39 100644 --- a/plugins/sample/ui/pages/i18n.json.tmpl +++ b/plugins/sample/ui/pages/i18n.json.tmpl @@ -17,7 +17,7 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang) #silent _ = t.gettext #silent _t = t.gettext diff --git a/src/wok/asynctask.py b/src/wok/asynctask.py index b5673b2..1e0ec4b 100644 --- a/src/wok/asynctask.py +++ b/src/wok/asynctask.py @@ -22,7 +22,7 @@ import threading import traceback -from kimchi.exception import OperationFailed +from wok.exception import OperationFailed class AsyncTask(object): diff --git a/src/wok/auth.py b/src/wok/auth.py index 1a52185..6bd1566 100644 --- a/src/wok/auth.py +++ b/src/wok/auth.py @@ -30,10 +30,10 @@ import termios import time import urllib2 -from kimchi import template -from kimchi.config import config -from kimchi.exception import InvalidOperation, OperationFailed -from kimchi.utils import get_all_tabs, run_command +from wok import template +from wok.config import config +from wok.exception import InvalidOperation, OperationFailed +from wok.utils import get_all_tabs, run_command USER_NAME = 'username' USER_GROUPS = 'groups' diff --git a/src/wok/cachebust.py b/src/wok/cachebust.py index e2e2c9f..d7cf111 100644 --- a/src/wok/cachebust.py +++ b/src/wok/cachebust.py @@ -20,7 +20,7 @@ import os -from kimchi.config import paths +from wok.config import paths def href(url): diff --git a/src/wok/control/__init__.py b/src/wok/control/__init__.py index 98d42d3..4ad9459 100644 --- a/src/wok/control/__init__.py +++ b/src/wok/control/__init__.py @@ -20,7 +20,7 @@ import os -from kimchi.control.utils import load_url_sub_node +from wok.control.utils import load_url_sub_node sub_nodes = load_url_sub_node(os.path.dirname(__file__), __name__) diff --git a/src/wok/control/base.py b/src/wok/control/base.py index 006a6f7..d926a63 100644 --- a/src/wok/control/base.py +++ b/src/wok/control/base.py @@ -22,14 +22,14 @@ import re import urllib2 -import kimchi.template -from kimchi.auth import USER_GROUPS, USER_NAME, USER_ROLES -from kimchi.control.utils import get_class_name, internal_redirect, model_fn -from kimchi.control.utils import parse_request, validate_method -from kimchi.control.utils import validate_params -from kimchi.exception import InvalidOperation, InvalidParameter -from kimchi.exception import KimchiException, MissingParameter, NotFoundError -from kimchi.exception import OperationFailed, UnauthorizedError +import wok.template +from wok.auth import USER_GROUPS, USER_NAME, USER_ROLES +from wok.control.utils import get_class_name, internal_redirect, model_fn +from wok.control.utils import parse_request, validate_method +from wok.control.utils import validate_params +from wok.exception import InvalidOperation, InvalidParameter +from wok.exception import KimchiException, MissingParameter, NotFoundError +from wok.exception import OperationFailed, UnauthorizedError class Resource(object): @@ -90,7 +90,7 @@ class Resource(object): def generate_action_handler_task(self, action_name, action_args=None): def _render_task(self, task): cherrypy.response.status = 202 - return kimchi.template.render('Task', task) + return wok.template.render('Task', task) return self._generate_action_handler_base(action_name, _render_task, action_args=action_args) @@ -213,7 +213,7 @@ class Resource(object): def get(self): self.lookup() - return kimchi.template.render(get_class_name(self), self.data) + return wok.template.render(get_class_name(self), self.data) @property def data(self): @@ -314,7 +314,7 @@ class Collection(object): flag_filter, fields_filter = _split_filter(filter_params) resources = self._get_resources(flag_filter) data = self.filter_data(resources, fields_filter) - return kimchi.template.render(get_class_name(self), data) + return wok.template.render(get_class_name(self), data) @cherrypy.expose def index(self, *args, **kwargs): @@ -361,7 +361,7 @@ class AsyncCollection(Collection): args = self.model_args + [params] task = create(*args) cherrypy.response.status = 202 - return kimchi.template.render("Task", task) + return wok.template.render("Task", task) class SimpleCollection(Collection): @@ -378,4 +378,4 @@ class SimpleCollection(Collection): res_list = get_list(*self.model_args) except AttributeError: pass - return kimchi.template.render(get_class_name(self), res_list) + return wok.template.render(get_class_name(self), res_list) diff --git a/src/wok/control/plugins.py b/src/wok/control/plugins.py index 39fd851..1cc1d5a 100644 --- a/src/wok/control/plugins.py +++ b/src/wok/control/plugins.py @@ -17,8 +17,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.control.base import SimpleCollection -from kimchi.control.utils import UrlSubNode +from wok.control.base import SimpleCollection +from wok.control.utils import UrlSubNode @UrlSubNode("plugins") diff --git a/src/wok/control/utils.py b/src/wok/control/utils.py index d26fe48..d617dcd 100644 --- a/src/wok/control/utils.py +++ b/src/wok/control/utils.py @@ -25,9 +25,9 @@ import json from jsonschema import Draft3Validator, ValidationError, FormatChecker -from kimchi.auth import USER_ROLES -from kimchi.exception import InvalidParameter, OperationFailed -from kimchi.utils import import_module, listPathModules +from wok.auth import USER_ROLES +from wok.exception import InvalidParameter, OperationFailed +from wok.utils import import_module, listPathModules def get_class_name(cls): diff --git a/src/wok/exception.py b/src/wok/exception.py index 039152a..f41028b 100644 --- a/src/wok/exception.py +++ b/src/wok/exception.py @@ -21,8 +21,8 @@ import cherrypy import gettext -from kimchi.i18n import messages as _messages -from kimchi.template import get_lang, validate_language +from wok.i18n import messages as _messages +from wok.template import get_lang, validate_language class KimchiException(Exception): diff --git a/src/wok/model/plugins.py b/src/wok/model/plugins.py index 1b4d21b..e350f1e 100644 --- a/src/wok/model/plugins.py +++ b/src/wok/model/plugins.py @@ -17,7 +17,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from kimchi.utils import get_enabled_plugins +from wok.utils import get_enabled_plugins class PluginsModel(object): diff --git a/src/wok/objectstore.py b/src/wok/objectstore.py index 3e91a26..7c2a5cc 100644 --- a/src/wok/objectstore.py +++ b/src/wok/objectstore.py @@ -28,9 +28,9 @@ except ImportError: from ordereddict import OrderedDict -from kimchi import config -from kimchi.exception import NotFoundError -from kimchi.utils import kimchi_log +from wok import config +from wok.exception import NotFoundError +from wok.utils import kimchi_log class ObjectStoreSession(object): diff --git a/src/wok/proxy.py b/src/wok/proxy.py index 5dcca65..1c46c11 100644 --- a/src/wok/proxy.py +++ b/src/wok/proxy.py @@ -27,8 +27,8 @@ import pwd import subprocess from string import Template -from kimchi import sslcert -from kimchi.config import paths +from wok import sslcert +from wok.config import paths def _create_proxy_config(options): diff --git a/src/wok/root.py b/src/wok/root.py index cd338d9..a3b8be1 100644 --- a/src/wok/root.py +++ b/src/wok/root.py @@ -23,14 +23,14 @@ import os from distutils.version import LooseVersion -from kimchi import auth -from kimchi import template -from kimchi.i18n import messages -from kimchi.config import paths -from kimchi.control import sub_nodes -from kimchi.control.base import Resource -from kimchi.control.utils import parse_request -from kimchi.exception import MissingParameter, OperationFailed +from wok import auth +from wok import template +from wok.i18n import messages +from wok.config import paths +from wok.control import sub_nodes +from wok.control.base import Resource +from wok.control.utils import parse_request +from wok.exception import MissingParameter, OperationFailed class Root(Resource): diff --git a/src/wok/server.py b/src/wok/server.py index eb58465..5394d24 100644 --- a/src/wok/server.py +++ b/src/wok/server.py @@ -23,16 +23,16 @@ import logging import logging.handlers import os -from kimchi import auth -from kimchi import config -from kimchi.model import model -from kimchi import mockmodel -from kimchi import vnc -from kimchi.config import KimchiConfig, PluginConfig -from kimchi.control import sub_nodes -from kimchi.proxy import start_proxy, terminate_proxy -from kimchi.root import KimchiRoot -from kimchi.utils import get_enabled_plugins, import_class +from wok import auth +from wok import config +from wok.model import model +from wok import mockmodel +from wok import vnc +from wok.config import KimchiConfig, PluginConfig +from wok.control import sub_nodes +from wok.proxy import start_proxy, terminate_proxy +from wok.root import KimchiRoot +from wok.utils import get_enabled_plugins, import_class LOGGING_LEVEL = {"debug": logging.DEBUG, diff --git a/src/wok/template.py b/src/wok/template.py index aaba0c9..46c0f3c 100644 --- a/src/wok/template.py +++ b/src/wok/template.py @@ -22,7 +22,7 @@ import errno import json -from kimchi.config import paths +from wok.config import paths from Cheetah.Template import Template from glob import iglob diff --git a/src/wok/utils.py b/src/wok/utils.py index ff3a5da..d8ad25f 100644 --- a/src/wok/utils.py +++ b/src/wok/utils.py @@ -35,9 +35,9 @@ from threading import Timer from urlparse import urlparse from cherrypy.lib.reprconf import Parser -from kimchi.asynctask import AsyncTask -from kimchi.config import paths, PluginPaths -from kimchi.exception import InvalidParameter, TimeoutExpired +from wok.asynctask import AsyncTask +from wok.config import paths, PluginPaths +from wok.exception import InvalidParameter, TimeoutExpired kimchi_log = cherrypy.log.error_log diff --git a/src/wok/vnc.py b/src/wok/vnc.py index b4194b1..e50e9f2 100644 --- a/src/wok/vnc.py +++ b/src/wok/vnc.py @@ -25,7 +25,7 @@ import os from multiprocessing import Process from websockify import WebSocketProxy -from kimchi.config import config, paths +from wok.config import config, paths WS_TOKENS_DIR = '/var/lib/kimchi/vnc-tokens' diff --git a/src/wokd.in b/src/wokd.in index 4ea7a42..62a8504 100644 --- a/src/wokd.in +++ b/src/wokd.in @@ -25,8 +25,8 @@ sys.path.insert(1, '@pythondir@') from optparse import OptionParser -import kimchi.server -import kimchi.config as config +import wok.server +import wok.config as config if not config.paths.installed: @@ -93,7 +93,7 @@ def main(options): setattr(options, 'max_body_size', config.config.get('server', 'max_body_size')) - kimchi.server.main(options) + wok.server.main(options) if __name__ == '__main__': sys.exit(main(sys.argv[1:])) diff --git a/ui/pages/error.html.tmpl b/ui/pages/error.html.tmpl index d8e16e6..068f2a6 100644 --- a/ui/pages/error.html.tmpl +++ b/ui/pages/error.html.tmpl @@ -18,7 +18,7 @@ #encoding UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/ui/pages/i18n.json.tmpl b/ui/pages/i18n.json.tmpl index f705613..cd320e0 100644 --- a/ui/pages/i18n.json.tmpl +++ b/ui/pages/i18n.json.tmpl @@ -17,7 +17,7 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext diff --git a/ui/pages/login.html.tmpl b/ui/pages/login.html.tmpl index e2f6855..e13e03d 100644 --- a/ui/pages/login.html.tmpl +++ b/ui/pages/login.html.tmpl @@ -17,12 +17,12 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext #silent next = "?next=%s" % $getVar('data.next', '') if $getVar('data.next', '') else "" -#from kimchi.config import get_version +#from wok.config import get_version <!DOCTYPE html> <html lang="$lang.lang[0]"> <head> diff --git a/ui/pages/wok-ui.html.tmpl b/ui/pages/wok-ui.html.tmpl index 8da8acc..23e6875 100644 --- a/ui/pages/wok-ui.html.tmpl +++ b/ui/pages/wok-ui.html.tmpl @@ -17,11 +17,11 @@ *# #unicode UTF-8 #import gettext -#from kimchi.cachebust import href +#from wok.cachebust import href #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext -#from kimchi.config import get_version +#from wok.config import get_version <!DOCTYPE html> <html lang="$lang.lang[0]"> <head> -- 1.7.1

- Renames kimchi references to wok. - Rename kimchi_log to wok_log - It now uses wok.min.js for server JS API. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/disks.py | 8 +- plugins/kimchi/distroloader.py | 6 +- plugins/kimchi/imageinfo.py | 4 +- plugins/kimchi/isoinfo.py | 4 +- plugins/kimchi/mockmodel.py | 6 +- plugins/kimchi/model/config.py | 8 +- plugins/kimchi/model/cpuinfo.py | 6 +- plugins/kimchi/model/debugreports.py | 18 +- plugins/kimchi/model/diskutils.py | 6 +- plugins/kimchi/model/featuretests.py | 8 +- plugins/kimchi/model/host.py | 8 +- plugins/kimchi/model/hostdev.py | 8 +- plugins/kimchi/model/libvirtconnection.py | 8 +- plugins/kimchi/model/libvirtstoragepool.py | 4 +- plugins/kimchi/model/networks.py | 16 +- plugins/kimchi/model/peers.py | 14 +- plugins/kimchi/model/storagepools.py | 32 ++-- plugins/kimchi/model/storagetargets.py | 6 +- plugins/kimchi/model/storagevolumes.py | 6 +- plugins/kimchi/model/vmhostdevs.py | 6 +- plugins/kimchi/model/vms.py | 22 +- plugins/kimchi/model/vmstorages.py | 8 +- plugins/kimchi/scan.py | 4 +- plugins/kimchi/screenshot.py | 6 +- plugins/kimchi/swupdate.py | 8 +- plugins/kimchi/tests/utils.py | 6 +- plugins/kimchi/ui/js/src/kimchi.api.js | 234 ++++++++++---------- plugins/kimchi/ui/js/src/kimchi.grid.js | 2 +- plugins/kimchi/ui/js/src/kimchi.guest_add_main.js | 14 +- plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js | 56 +++--- plugins/kimchi/ui/js/src/kimchi.guest_main.js | 36 ++-- .../kimchi/ui/js/src/kimchi.guest_media_main.js | 8 +- .../ui/js/src/kimchi.guest_storage_add.main.js | 10 +- plugins/kimchi/ui/js/src/kimchi.host.js | 76 ++++---- plugins/kimchi/ui/js/src/kimchi.line-chart.js | 4 +- plugins/kimchi/ui/js/src/kimchi.network.js | 36 ++-- plugins/kimchi/ui/js/src/kimchi.report_add_main.js | 10 +- .../kimchi/ui/js/src/kimchi.report_rename_main.js | 10 +- .../kimchi/ui/js/src/kimchi.repository_add_main.js | 6 +- .../ui/js/src/kimchi.repository_edit_main.js | 10 +- plugins/kimchi/ui/js/src/kimchi.storage_main.js | 66 +++--- .../ui/js/src/kimchi.storagepool_add_main.js | 26 +- .../js/src/kimchi.storagepool_add_volume_main.js | 18 +- .../kimchi/ui/js/src/kimchi.template_add_main.js | 38 ++-- .../kimchi/ui/js/src/kimchi.template_edit_main.js | 12 +- plugins/kimchi/ui/js/src/kimchi.template_main.js | 16 +- .../kimchi/ui/spice-html5/pages/spice_auto.html | 2 +- plugins/sample/API.json | 2 +- plugins/sample/__init__.py | 2 +- plugins/sample/sample.conf.in | 10 +- plugins/sample/ui/js/util.js | 4 +- .../sample/ui/pages/help/en_US/sample-tab1.html | 2 +- .../sample/ui/pages/help/en_US/sample-tab2.html | 2 +- src/nginx/wok.conf.in | 8 +- src/wok.conf.in | 14 +- src/wok/auth.py | 10 +- src/wok/config.py.in | 40 ++-- src/wok/control/base.py | 8 +- src/wok/exception.py | 22 +- src/wok/objectstore.py | 4 +- src/wok/proxy.py | 18 +- src/wok/server.py | 14 +- src/wok/template.py | 4 +- src/wok/utils.py | 22 +- src/wok/vnc.py | 6 +- src/wokd.in | 6 +- ui/js/src/wok.cookie.js | 2 +- ui/js/src/wok.lang.js | 6 +- ui/js/src/wok.login.js | 14 +- ui/js/src/wok.main.js | 84 ++++---- ui/js/src/wok.message.js | 20 +- ui/js/src/wok.popable.js | 4 +- ui/js/src/wok.substitute.js | 2 +- ui/js/src/wok.topic.js | 8 +- ui/js/src/wok.user.js | 6 +- ui/js/src/wok.utils.js | 18 +- ui/js/src/wok.window.js | 4 +- ui/js/widgets/button-dropDown.js | 2 +- ui/js/widgets/combobox.js | 2 +- ui/js/widgets/filter-select.js | 2 +- ui/js/widgets/select-menu.js | 2 +- ui/pages/error.html.tmpl | 4 +- ui/pages/login.html.tmpl | 4 +- ui/pages/websockify/console.html | 12 +- ui/pages/wok-ui.html.tmpl | 10 +- 85 files changed, 665 insertions(+), 665 deletions(-) diff --git a/plugins/kimchi/disks.py b/plugins/kimchi/disks.py index 59e52f9..88a69f4 100644 --- a/plugins/kimchi/disks.py +++ b/plugins/kimchi/disks.py @@ -25,7 +25,7 @@ from parted import Device as PDevice from parted import Disk as PDisk from wok.exception import OperationFailed -from wok.utils import kimchi_log +from wok.utils import wok_log def _get_dev_node_path(maj_min): @@ -82,7 +82,7 @@ def _is_dev_leaf(devNodePath): except OperationFailed as e: # lsblk is known to fail on multipath devices # Assume these devices contain children - kimchi_log.error( + wok_log.error( "Error getting device info for %s: %s", devNodePath, e) return False @@ -97,7 +97,7 @@ def _is_dev_extended_partition(devType, devNodePath): try: extended_part = PDisk(device).getExtendedPartition() except NotImplementedError as e: - kimchi_log.warning( + wok_log.warning( "Error getting extended partition info for dev %s type %s: %s", devNodePath, devType, e.message) # Treate disk with unsupported partiton table as if it does not @@ -180,7 +180,7 @@ def get_partition_details(name): try: dev = _get_lsblk_devs(keys, [dev_path])[0] except OperationFailed as e: - kimchi_log.error( + wok_log.error( "Error getting partition info for %s: %s", name, e) return {} diff --git a/plugins/kimchi/distroloader.py b/plugins/kimchi/distroloader.py index 8ad34d2..a593246 100644 --- a/plugins/kimchi/distroloader.py +++ b/plugins/kimchi/distroloader.py @@ -25,7 +25,7 @@ import os import config from wok.exception import NotFoundError, OperationFailed -from wok.utils import kimchi_log +from wok.utils import wok_log ARCHS = {'x86_64': ['x86_64', 'amd64', 'i686', 'x86', 'i386'], @@ -43,7 +43,7 @@ class DistroLoader(object): msg_args = {'filename': fname} if not os.path.isfile(fname): msg = "DistroLoader: failed to find distro file: %s" % fname - kimchi_log.error(msg) + wok_log.error(msg) raise NotFoundError("KCHDL0001E", msg_args) try: with open(fname) as f: @@ -51,7 +51,7 @@ class DistroLoader(object): return data except ValueError: msg = "DistroLoader: failed to parse distro file: %s" % fname - kimchi_log.error(msg) + wok_log.error(msg) raise OperationFailed("KCHDL0002E", msg_args) def get(self): diff --git a/plugins/kimchi/imageinfo.py b/plugins/kimchi/imageinfo.py index fbd1396..7d92f54 100644 --- a/plugins/kimchi/imageinfo.py +++ b/plugins/kimchi/imageinfo.py @@ -23,7 +23,7 @@ import sys import guestfs from wok.exception import ImageFormatError, InvalidParameter, TimeoutExpired -from wok.utils import run_command, kimchi_log +from wok.utils import run_command, wok_log def probe_img_info(path): @@ -32,7 +32,7 @@ def probe_img_info(path): try: out = run_command(cmd, 10)[0] except TimeoutExpired: - kimchi_log.warning("Cannot decide format of base img %s", path) + wok_log.warning("Cannot decide format of base img %s", path) return None info = json.loads(out) diff --git a/plugins/kimchi/isoinfo.py b/plugins/kimchi/isoinfo.py index de9c359..cec20b1 100644 --- a/plugins/kimchi/isoinfo.py +++ b/plugins/kimchi/isoinfo.py @@ -29,7 +29,7 @@ import urllib2 from wok.exception import IsoFormatError -from wok.utils import check_url_path, kimchi_log +from wok.utils import check_url_path, wok_log iso_dir = [ @@ -178,7 +178,7 @@ class IsoImage(object): return (distro, version) msg = "probe_iso: Unable to identify ISO %s with Volume ID: %s" - kimchi_log.debug(msg, self.path, self.volume_id) + wok_log.debug(msg, self.path, self.volume_id) return ('unknown', 'unknown') diff --git a/plugins/kimchi/mockmodel.py b/plugins/kimchi/mockmodel.py index 384ce9b..88eb033 100644 --- a/plugins/kimchi/mockmodel.py +++ b/plugins/kimchi/mockmodel.py @@ -43,7 +43,7 @@ from model.templates import LibvirtVMTemplate from model.users import PAMUsersModel from model.groups import PAMGroupsModel from wok.objectstore import ObjectStore -from wok.utils import add_task, get_next_clone_name, kimchi_log +from wok.utils import add_task, get_next_clone_name, wok_log from vmtemplate import VMTemplate from wok.xmlutils.utils import xml_item_update @@ -276,10 +276,10 @@ class MockModel(Model): conn.storagePoolDefineXML(ET.tostring(root), 0) def _mock_host_shutdown(self, *name): - kimchi_log.info("The host system will be shutted down") + wok_log.info("The host system will be shutted down") def _mock_host_reboot(self, *name): - kimchi_log.info("The host system will be rebooted") + wok_log.info("The host system will be rebooted") def _mock_storagevolumes_create(self, pool, params): vol_source = ['url', 'capacity'] diff --git a/plugins/kimchi/model/config.py b/plugins/kimchi/model/config.py index 6f593e3..d0799fe 100644 --- a/plugins/kimchi/model/config.py +++ b/plugins/kimchi/model/config.py @@ -33,7 +33,7 @@ from featuretests import FEATURETEST_VM_NAME from ..repositories import Repositories from ..screenshot import VMScreenshot from ..swupdate import SoftwareUpdate -from wok.utils import check_url_path, kimchi_log, run_command +from wok.utils import check_url_path, wok_log, run_command class ConfigModel(object): @@ -86,7 +86,7 @@ class CapabilitiesModel(object): FeatureTests.enable_libvirt_error_logging() def _set_capabilities(self): - kimchi_log.info("*** Running feature tests ***") + wok_log.info("*** Running feature tests ***") conn = self.conn.get() self.qemu_stream = FeatureTests.qemu_supports_iso_stream() self.nfs_target_probe = FeatureTests.libvirt_support_nfs_probe(conn) @@ -100,14 +100,14 @@ class CapabilitiesModel(object): if FeatureTests.libvirt_supports_iso_stream(conn, p): self.libvirt_stream_protocols.append(p) - kimchi_log.info("*** Feature tests completed ***") + wok_log.info("*** Feature tests completed ***") _set_capabilities.priority = 90 def _qemu_support_spice(self): qemu_path = find_qemu_binary(find_emulator=True) out, err, rc = run_command(['ldd', qemu_path]) if rc != 0: - kimchi_log.error('Failed to find qemu binary dependencies: %s', + wok_log.error('Failed to find qemu binary dependencies: %s', err) return False for line in out.split('\n'): diff --git a/plugins/kimchi/model/cpuinfo.py b/plugins/kimchi/model/cpuinfo.py index 54d6eaa..61d1ec6 100644 --- a/plugins/kimchi/model/cpuinfo.py +++ b/plugins/kimchi/model/cpuinfo.py @@ -22,7 +22,7 @@ import platform from xml.etree import ElementTree as ET from wok.exception import InvalidParameter, InvalidOperation -from wok.utils import kimchi_log, run_command +from wok.utils import wok_log, run_command ARCH = 'power' if platform.machine().startswith('ppc') else 'x86' @@ -59,11 +59,11 @@ class CPUInfoModel(object): connect = self.conn.get() libvirt_topology = get_topo_capabilities(connect) except Exception as e: - kimchi_log.info("Unable to get CPU topology capabilities: %s" + wok_log.info("Unable to get CPU topology capabilities: %s" % e.message) return if libvirt_topology is None: - kimchi_log.info("cpu_info topology not supported.") + wok_log.info("cpu_info topology not supported.") return if ARCH == 'power': diff --git a/plugins/kimchi/model/debugreports.py b/plugins/kimchi/model/debugreports.py index 6cc8819..ea5853d 100644 --- a/plugins/kimchi/model/debugreports.py +++ b/plugins/kimchi/model/debugreports.py @@ -26,10 +26,10 @@ import subprocess import time from .. import config -from wok.exception import InvalidParameter, KimchiException, NotFoundError +from wok.exception import InvalidParameter, WokException, NotFoundError from wok.exception import OperationFailed from tasks import TaskModel -from wok.utils import add_task, kimchi_log +from wok.utils import add_task, wok_log from wok.utils import run_command @@ -95,7 +95,7 @@ class DebugReportsModel(object): break # Some error in sosreport happened if reportFile is None: - kimchi_log.error('Debug report file not found. See sosreport ' + wok_log.error('Debug report file not found. See sosreport ' 'output for detail:\n%s', output) fname = (patterns[0] % name).split('/')[-1] raise OperationFailed('KCHDR0004E', {'name': fname}) @@ -107,19 +107,19 @@ class DebugReportsModel(object): # Moving report msg = 'Moving debug report file "%s" to "%s"' % (reportFile, target) - kimchi_log.info(msg) + wok_log.info(msg) shutil.move(reportFile, target) # Deleting md5 msg = 'Deleting report md5 file: "%s"' % (md5_report_file) - kimchi_log.info(msg) + wok_log.info(msg) with open(md5_report_file) as f: md5 = f.read().strip() - kimchi_log.info('Md5 file content: "%s"', md5) + wok_log.info('Md5 file content: "%s"', md5) os.remove(md5_report_file) cb('OK', True) return - except KimchiException as e: + except WokException as e: log_error(e) raise @@ -151,7 +151,7 @@ class DebugReportsModel(object): if retcode == 0: return helper_tool['fn'] except Exception, e: - kimchi_log.info('Exception running command: %s', e) + wok_log.info('Exception running command: %s', e) return None @@ -189,7 +189,7 @@ class DebugReportModel(object): raise InvalidParameter('KCHDR0008E', {'name': params['name']}) shutil.move(file_source, file_target) - kimchi_log.info('%s renamed to %s' % (file_source, file_target)) + wok_log.info('%s renamed to %s' % (file_source, file_target)) return params['name'] def delete(self, name): diff --git a/plugins/kimchi/model/diskutils.py b/plugins/kimchi/model/diskutils.py index 041a135..49bf17d 100644 --- a/plugins/kimchi/model/diskutils.py +++ b/plugins/kimchi/model/diskutils.py @@ -20,7 +20,7 @@ from wok.exception import OperationFailed, NotFoundError from vms import VMModel, VMsModel -from wok.utils import kimchi_log +from wok.utils import wok_log from ..xmlutils.disk import get_vm_disk_info, get_vm_disks """ @@ -35,7 +35,7 @@ def get_disk_used_by(objstore, conn, path): try: used_by = session.get('storagevolume', path)['used_by'] except (KeyError, NotFoundError): - kimchi_log.info('Volume %s not found in obj store.' % path) + wok_log.info('Volume %s not found in obj store.' % path) used_by = [] # try to find this volume in existing vm vms_list = VMsModel.get_vms(conn) @@ -54,7 +54,7 @@ def get_disk_used_by(objstore, conn, path): # used_by to be out of sync, data corruption could # occour if a disk is added to two guests # unknowingly. - kimchi_log.error('Unable to store storage volume id in' + wok_log.error('Unable to store storage volume id in' ' objectstore due error: %s', e.message) raise OperationFailed('KCHVOL0017E', diff --git a/plugins/kimchi/model/featuretests.py b/plugins/kimchi/model/featuretests.py index 16fd25e..eb41edb 100644 --- a/plugins/kimchi/model/featuretests.py +++ b/plugins/kimchi/model/featuretests.py @@ -26,7 +26,7 @@ import subprocess from lxml.builder import E from wok.rollbackcontext import RollbackContext -from wok.utils import kimchi_log, run_command, servermethod +from wok.utils import wok_log, run_command, servermethod FEATURETEST_VM_NAME = "FEATURETEST_VM" FEATURETEST_POOL_NAME = "FEATURETEST_POOL" @@ -132,7 +132,7 @@ class FeatureTests(object): dom.undefine() return True except libvirt.libvirtError, e: - kimchi_log.error(e.message) + wok_log.error(e.message) return False finally: FeatureTests.enable_libvirt_error_logging() @@ -147,7 +147,7 @@ class FeatureTests(object): FeatureTests.disable_libvirt_error_logging() conn.findStoragePoolSources('netfs', _get_xml(), 0) except libvirt.libvirtError as e: - kimchi_log.error(e.message) + wok_log.error(e.message) if e.get_error_code() == 38: # if libvirt cannot find showmount, # it returns 38--general system call failure @@ -213,7 +213,7 @@ class FeatureTests(object): def kernel_support_vfio(): out, err, rc = run_command(['modprobe', 'vfio-pci']) if rc != 0: - kimchi_log.warning("Unable to load Kernal module vfio-pci.") + wok_log.warning("Unable to load Kernal module vfio-pci.") return False return True diff --git a/plugins/kimchi/model/host.py b/plugins/kimchi/model/host.py index f1f0b83..2a78a88 100644 --- a/plugins/kimchi/model/host.py +++ b/plugins/kimchi/model/host.py @@ -37,7 +37,7 @@ from tasks import TaskModel from vms import DOM_STATE_MAP from ..repositories import Repositories from ..swupdate import SoftwareUpdate -from wok.utils import add_task, kimchi_log +from wok.utils import add_task, wok_log from wok.xmlutils.utils import xpath_get_text @@ -131,7 +131,7 @@ class HostModel(object): if pkgs == 0: raise OperationFailed('KCHPKGUPD0001E') - kimchi_log.debug('Host is going to be updated.') + wok_log.debug('Host is going to be updated.') taskid = add_task('/host/swupdate', swupdate.doUpdate, self.objstore, None) return self.task.lookup(taskid) @@ -142,7 +142,7 @@ class HostModel(object): if len(running_vms) > 0: raise OperationFailed("KCHHOST0001E") - kimchi_log.info('Host is going to shutdown.') + wok_log.info('Host is going to shutdown.') os.system('shutdown -h now') def reboot(self, args=None): @@ -151,7 +151,7 @@ class HostModel(object): if len(running_vms) > 0: raise OperationFailed("KCHHOST0002E") - kimchi_log.info('Host is going to reboot.') + wok_log.info('Host is going to reboot.') os.system('reboot') def _get_vms_list_by_state(self, state): diff --git a/plugins/kimchi/model/hostdev.py b/plugins/kimchi/model/hostdev.py index 34a8e1b..9ebc3c3 100644 --- a/plugins/kimchi/model/hostdev.py +++ b/plugins/kimchi/model/hostdev.py @@ -22,7 +22,7 @@ from pprint import pformat from pprint import pprint from libvirtconnection import LibvirtConnection -from wok.utils import kimchi_log +from wok.utils import wok_log from wok.xmlutils.utils import dictize @@ -42,7 +42,7 @@ def _get_dev_info_tree(dev_infos): try: parent = devs[dev_info['parent']] except KeyError: - kimchi_log.error('Parent %s of device %s does not exist.', + wok_log.error('Parent %s of device %s does not exist.', dev_info['parent'], dev_info['name']) continue @@ -97,7 +97,7 @@ def _get_same_iommugroup_devices(dev_infos, device_info): try: parent_info = dev_dict[parent] except KeyError: - kimchi_log.error("Parent %s of device %s does not exist", + wok_log.error("Parent %s of device %s does not exist", parent, dev_info['name']) break @@ -184,7 +184,7 @@ def get_dev_info(node_dev): if dev_type in ('net', 'pci', 'scsi_host', 'storage', 'usb_device'): return globals()['_get_%s_dev_info' % dev_type](info) - kimchi_log.error("Unknown device type: %s", dev_type) + wok_log.error("Unknown device type: %s", dev_type) return info diff --git a/plugins/kimchi/model/libvirtconnection.py b/plugins/kimchi/model/libvirtconnection.py index 4a4eee4..d2ce031 100644 --- a/plugins/kimchi/model/libvirtconnection.py +++ b/plugins/kimchi/model/libvirtconnection.py @@ -23,7 +23,7 @@ import time import cherrypy import libvirt -from wok.utils import kimchi_log +from wok.utils import wok_log class LibvirtConnection(object): @@ -75,7 +75,7 @@ class LibvirtConnection(object): libvirt.VIR_ERR_NO_CONNECT, libvirt.VIR_ERR_INVALID_CONN) if edom in EDOMAINS and ecode in ECODES: - kimchi_log.error('Connection to libvirt broken. ' + wok_log.error('Connection to libvirt broken. ' 'Recycling. ecode: %d edom: %d' % (ecode, edom)) with LibvirtConnection._connectionLock: @@ -95,9 +95,9 @@ class LibvirtConnection(object): conn = libvirt.open(self.uri) break except libvirt.libvirtError: - kimchi_log.error('Unable to connect to libvirt.') + wok_log.error('Unable to connect to libvirt.') if not retries: - kimchi_log.error("Unable to establish connection " + wok_log.error("Unable to establish connection " "with libvirt. Please check " "your libvirt URI which is often " "defined in " diff --git a/plugins/kimchi/model/libvirtstoragepool.py b/plugins/kimchi/model/libvirtstoragepool.py index b7a8291..6c1f031 100644 --- a/plugins/kimchi/model/libvirtstoragepool.py +++ b/plugins/kimchi/model/libvirtstoragepool.py @@ -27,7 +27,7 @@ import libvirt from wok.exception import InvalidParameter, OperationFailed, TimeoutExpired from ..iscsi import TargetClient from wok.rollbackcontext import RollbackContext -from wok.utils import kimchi_log, parse_cmd_output, run_command +from wok.utils import wok_log, parse_cmd_output, run_command class StoragePoolDef(object): @@ -165,7 +165,7 @@ class ScsiPoolDef(StoragePoolDef): msg = "Libvirt version <= 1.0.5. Setting SCSI host name as '%s'; "\ "setting SCSI adapter type as 'scsi_host'; "\ "ignoring wwnn and wwpn." % tmp_name - kimchi_log.info(msg) + wok_log.info(msg) # Path for Fibre Channel scsi hosts self.poolArgs['path'] = '/dev/disk/by-path' if not self.poolArgs['source']['adapter']['type']: diff --git a/plugins/kimchi/model/networks.py b/plugins/kimchi/model/networks.py index 7a3dfc8..594bfca 100644 --- a/plugins/kimchi/model/networks.py +++ b/plugins/kimchi/model/networks.py @@ -32,7 +32,7 @@ from wok.exception import InvalidOperation, InvalidParameter from wok.exception import MissingParameter, NotFoundError, OperationFailed from ..osinfo import defaults as tmpl_defaults from wok.rollbackcontext import RollbackContext -from wok.utils import kimchi_log, run_command +from wok.utils import wok_log, run_command from ..xmlutils.network import create_vlan_tagged_bridge_xml from ..xmlutils.network import to_network_xml from wok.xmlutils.utils import xpath_get_text @@ -59,9 +59,9 @@ class NetworksModel(object): net = conn.networkLookupByName(net_name) except libvirt.libvirtError, e: msg = "Fatal: Unable to find network %s." - kimchi_log.error(msg, net_name) - kimchi_log.error(error_msg) - kimchi_log.error("Details: %s", e.message) + wok_log.error(msg, net_name) + wok_log.error(error_msg) + wok_log.error("Details: %s", e.message) sys.exit(1) if net.isActive() == 0: @@ -69,9 +69,9 @@ class NetworksModel(object): net.create() except libvirt.libvirtError as e: msg = "Fatal: Unable to activate network %s." - kimchi_log.error(msg, net_name) - kimchi_log.error(error_msg) - kimchi_log.error("Details: %s", e.message) + wok_log.error(msg, net_name) + wok_log.error(error_msg) + wok_log.error("Details: %s", e.message) sys.exit(1) def create(self, params): @@ -211,7 +211,7 @@ class NetworksModel(object): try: bridges.append(net.bridgeName()) except libvirt.libvirtError, e: - kimchi_log.error(e.message) + wok_log.error(e.message) if br_name in bridges: raise InvalidOperation("KCHNET0010E", {'iface': br_name}) diff --git a/plugins/kimchi/model/peers.py b/plugins/kimchi/model/peers.py index ef70b1e..a9cf3b7 100644 --- a/plugins/kimchi/model/peers.py +++ b/plugins/kimchi/model/peers.py @@ -22,7 +22,7 @@ import re import socket from wok.config import config -from wok.utils import kimchi_log, run_command +from wok.utils import wok_log, run_command class PeersModel(object): @@ -37,19 +37,19 @@ class PeersModel(object): self.url = hostname + ":" + port cmd = ["slptool", "register", - "service:kimchid://%s" % self.url] + "service:wokd://%s" % self.url] out, error, ret = run_command(cmd) if out and len(out) != 0: - kimchi_log.error("Unable to register server on openSLP." + wok_log.error("Unable to register server on openSLP." " Details: %s" % out) cherrypy.engine.subscribe('exit', self._peer_deregister) def _peer_deregister(self): cmd = ["slptool", "deregister", - "service:kimchid://%s" % self.url] + "service:wokd://%s" % self.url] out, error, ret = run_command(cmd) if out and len(out) != 0: - kimchi_log.error("Unable to deregister server on openSLP." + wok_log.error("Unable to deregister server on openSLP." " Details: %s" % out) def get_list(self): @@ -57,14 +57,14 @@ class PeersModel(object): if config.get("server", "federation") == "off": return [] - cmd = ["slptool", "findsrvs", "service:kimchid"] + cmd = ["slptool", "findsrvs", "service:wokd"] out, error, ret = run_command(cmd) if ret != 0: return [] peers = [] for server in out.strip().split("\n"): - match = re.match("service:kimchid://(.*?),.*", server) + match = re.match("service:wokd://(.*?),.*", server) peer = match.group(1) if peer != self.url: peers.append("https://" + peer) diff --git a/plugins/kimchi/model/storagepools.py b/plugins/kimchi/model/storagepools.py index 6d9c8cf..2514ce4 100644 --- a/plugins/kimchi/model/storagepools.py +++ b/plugins/kimchi/model/storagepools.py @@ -31,7 +31,7 @@ from config import CapabilitiesModel from host import DeviceModel from libvirtstoragepool import StoragePoolDef from ..osinfo import defaults as tmpl_defaults -from wok.utils import add_task, kimchi_log, run_command +from wok.utils import add_task, wok_log, run_command from ..utils import pool_name_from_uri from wok.xmlutils.utils import xpath_get_text @@ -92,8 +92,8 @@ class StoragePoolsModel(object): pool_path = pools[pool_name].get('path') if pool_path is None: msg = "Fatal: Unable to find storage pool %s. " + error_msg - kimchi_log.error(msg % pool_name) - kimchi_log.error("Details: %s", e.message) + wok_log.error(msg % pool_name) + wok_log.error("Details: %s", e.message) sys.exit(1) # Try to create the pool @@ -108,8 +108,8 @@ class StoragePoolsModel(object): except libvirt.libvirtError, e: msg = "Fatal: Unable to create storage pool %s. " msg += error_msg - kimchi_log.error(msg % pool_name) - kimchi_log.error("Details: %s", e.message) + wok_log.error(msg % pool_name) + wok_log.error("Details: %s", e.message) sys.exit(1) if pool.isActive() == 0: @@ -118,8 +118,8 @@ class StoragePoolsModel(object): except libvirt.libvirtError, e: msg = "Fatal: Unable to craete storage pool %s. " msg += error_msg - kimchi_log.error(msg % pool_name) - kimchi_log.error("Details: %s", e.message) + wok_log.error(msg % pool_name) + wok_log.error("Details: %s", e.message) sys.exit(1) def get_list(self): @@ -192,14 +192,14 @@ class StoragePoolsModel(object): # disable autostart for others pool.setAutostart(0) except libvirt.libvirtError as e: - kimchi_log.error("Problem creating Storage Pool: %s", e) + wok_log.error("Problem creating Storage Pool: %s", e) raise OperationFailed("KCHPOOL0007E", {'name': name, 'err': e.get_error_message()}) if params['type'] == 'netfs': output, error, returncode = run_command(['setsebool', '-P', 'virt_use_nfs=1']) if error or returncode: - kimchi_log.error("Unable to set virt_use_nfs=1. If you use " + wok_log.error("Unable to set virt_use_nfs=1. If you use " "SELinux, this may prevent NFS pools from " "being used.") return name @@ -213,7 +213,7 @@ class StoragePoolsModel(object): session.delete('scanning', pool_name) except Exception, e: err = "Exception %s occured when cleaning scan result" - kimchi_log.debug(err % e.message) + wok_log.debug(err % e.message) def _do_deep_scan(self, params): scan_params = dict(ignore_list=[]) @@ -228,7 +228,7 @@ class StoragePoolsModel(object): scan_params['ignore_list'].append(res['path']) except Exception, e: err = "Exception %s occured when get ignore path" - kimchi_log.debug(err % e.message) + wok_log.debug(err % e.message) params['path'] = self.scanner.scan_dir_prepare(params['name']) scan_params['pool_path'] = params['path'] @@ -270,9 +270,9 @@ class StoragePoolModel(object): # If something (say a busy pool) prevents the refresh, # throwing an Exception here would prevent all pools from # displaying information -- so return None for busy - kimchi_log.error("ERROR: Storage Pool get vol count: %s " + wok_log.error("ERROR: Storage Pool get vol count: %s " % e.get_error_message()) - kimchi_log.error("ERROR: Storage Pool get vol count error no: %s " + wok_log.error("ERROR: Storage Pool get vol count error no: %s " % e.get_error_code()) return 0 except Exception as e: @@ -325,7 +325,7 @@ class StoragePoolModel(object): # FIXME: nfs workaround - prevent any libvirt operation # for a nfs if the corresponding NFS server is down. if pool_type == 'netfs' and not self._nfs_status_online(pool): - kimchi_log.debug("NFS pool %s is offline, reason: NFS " + wok_log.debug("NFS pool %s is offline, reason: NFS " "server %s is unreachable.", name, source['addr']) # Mark state as '4' => inaccessible. @@ -364,7 +364,7 @@ class StoragePoolModel(object): lsblk_cmd = ['lsblk', disk] output, error, returncode = run_command(lsblk_cmd) if returncode != 0: - kimchi_log.error('%s is not a valid disk/partition. Could not ' + wok_log.error('%s is not a valid disk/partition. Could not ' 'add it to the pool %s.', disk, pool_name) raise OperationFailed('KCHPOOL0027E', {'disk': disk, 'pool': pool_name}) @@ -374,7 +374,7 @@ class StoragePoolModel(object): output, error, returncode = run_command(vgextend_cmd) if returncode != 0: msg = "Could not add disks to pool %s, error: %s" - kimchi_log.error(msg, pool_name, error) + wok_log.error(msg, pool_name, error) raise OperationFailed('KCHPOOL0028E', {'pool': pool_name, 'err': error}) # refreshing pool state diff --git a/plugins/kimchi/model/storagetargets.py b/plugins/kimchi/model/storagetargets.py index dd88fec..bbcfb0d 100644 --- a/plugins/kimchi/model/storagetargets.py +++ b/plugins/kimchi/model/storagetargets.py @@ -24,7 +24,7 @@ from lxml.builder import E from config import CapabilitiesModel from storageservers import STORAGE_SERVERS -from wok.utils import kimchi_log, patch_find_nfs_target +from wok.utils import wok_log, patch_find_nfs_target class StorageTargetsModel(object): @@ -51,7 +51,7 @@ class StorageTargetsModel(object): ret = conn.findStoragePoolSources(target_type, xml, 0) except libvirt.libvirtError as e: err = "Query storage pool source fails because of %s" - kimchi_log.warning(err, e.get_error_message()) + wok_log.warning(err, e.get_error_message()) continue targets = self._parse_target_source_result(target_type, ret) @@ -78,7 +78,7 @@ class StorageTargetsModel(object): except libvirt.libvirtError as e: err = "Query storage pool source fails because of %s" - kimchi_log.warning(err, e.get_error_message()) + wok_log.warning(err, e.get_error_message()) # Filter target_list to not not show the used paths target_list = [elem for elem in target_list diff --git a/plugins/kimchi/model/storagevolumes.py b/plugins/kimchi/model/storagevolumes.py index 92e1c7c..908fbc4 100644 --- a/plugins/kimchi/model/storagevolumes.py +++ b/plugins/kimchi/model/storagevolumes.py @@ -36,7 +36,7 @@ from diskutils import get_disk_used_by, set_disk_used_by from storagepools import StoragePoolModel from tasks import TaskModel from wok.utils import add_task, get_next_clone_name, get_unique_file_name -from wok.utils import kimchi_log +from wok.utils import wok_log from wok.xmlutils.utils import xpath_get_text @@ -233,7 +233,7 @@ class StorageVolumesModel(object): if virt_vol: virt_vol.delete(0) except libvirt.libvirtError, virt_e: - kimchi_log.error(virt_e.message) + wok_log.error(virt_e.message) finally: raise OperationFailed('KCHVOL0007E', {'name': name, 'pool': pool_name, @@ -528,7 +528,7 @@ class IsoVolumesModel(object): volumes = pool.listVolumes() except Exception, e: # Skip inactive pools - kimchi_log.debug("Shallow scan: skipping pool %s because of " + wok_log.debug("Shallow scan: skipping pool %s because of " "error: %s", (pool_name, e.message)) continue diff --git a/plugins/kimchi/model/vmhostdevs.py b/plugins/kimchi/model/vmhostdevs.py index f8c87dd..18f4e1f 100644 --- a/plugins/kimchi/model/vmhostdevs.py +++ b/plugins/kimchi/model/vmhostdevs.py @@ -31,7 +31,7 @@ from host import DeviceModel, DevicesModel from utils import get_vm_config_flag from vms import DOM_STATE_MAP, VMModel from wok.rollbackcontext import RollbackContext -from wok.utils import kimchi_log, run_command +from wok.utils import wok_log, run_command import platform @@ -169,7 +169,7 @@ class VMHostDevsModel(object): out, err, rc = run_command(['setsebool', '-P', 'virt_use_sysfs=on']) if rc != 0: - kimchi_log.warning("Unable to turn on sebool virt_use_sysfs") + wok_log.warning("Unable to turn on sebool virt_use_sysfs") def _attach_pci_device(self, vmid, dev_info): self._validate_pci_passthrough_env() @@ -205,7 +205,7 @@ class VMHostDevsModel(object): try: dom.attachDeviceFlags(xmlstr, device_flags) except libvirt.libvirtError: - kimchi_log.error( + wok_log.error( 'Failed to attach host device %s to VM %s: \n%s', pci_info['name'], vmid, xmlstr) raise diff --git a/plugins/kimchi/model/vms.py b/plugins/kimchi/model/vms.py index a874ca1..2e9721d 100644 --- a/plugins/kimchi/model/vms.py +++ b/plugins/kimchi/model/vms.py @@ -45,7 +45,7 @@ from utils import set_metadata_node from wok.rollbackcontext import RollbackContext from ..screenshot import VMScreenshot from wok.utils import add_task, convert_data_size, get_next_clone_name -from wok.utils import import_class, kimchi_log, run_setfacl_set_attr +from wok.utils import import_class, wok_log, run_setfacl_set_attr from ..utils import template_name_from_uri from ..xmlutils.cpu import get_cpu_xml, get_numa_xml from wok.xmlutils.utils import xpath_get_text, xml_item_update @@ -134,7 +134,7 @@ class VMsModel(object): except Exception as e: # It is possible to continue Kimchi executions without store # vm icon info - kimchi_log.error('Error trying to update database with guest ' + wok_log.error('Error trying to update database with guest ' 'icon information due error: %s', e.message) # If storagepool is SCSI, volumes will be LUNs and must be passed by @@ -396,7 +396,7 @@ class VMModel(object): # a new volume with the same size, the pool 'default' should # be used if orig_vol['capacity'] > orig_pool['available']: - kimchi_log.warning('storage pool \'%s\' doesn\'t have ' + wok_log.warning('storage pool \'%s\' doesn\'t have ' 'enough free space to store image ' '\'%s\'; falling back to \'default\'', orig_pool_name, path) @@ -412,7 +412,7 @@ class VMModel(object): elif orig_pool['type'] in ['scsi', 'iscsi']: # SCSI and iSCSI always fall back to the storage pool 'default' - kimchi_log.warning('cannot create new volume for clone in ' + wok_log.warning('cannot create new volume for clone in ' 'storage pool \'%s\'; falling back to ' '\'default\'', orig_pool_name) new_pool_name = u'default' @@ -866,7 +866,7 @@ class VMModel(object): except Exception as e: # VM might be deleted just after we get the list. # This is OK, just skip. - kimchi_log.debug('Error processing VM stats: %s', e.message) + wok_log.debug('Error processing VM stats: %s', e.message) def _get_percentage_cpu_usage(self, vm_uuid, info, seconds): prevCpuTime = self.stats[vm_uuid].get('cputime', 0) @@ -1042,7 +1042,7 @@ class VMModel(object): try: snapshot_names = self.vmsnapshots.get_list(name) except OperationFailed, e: - kimchi_log.error('cannot list snapshots: %s; ' + wok_log.error('cannot list snapshots: %s; ' 'skipping snapshot deleting...' % e.message) else: for s in snapshot_names: @@ -1067,7 +1067,7 @@ class VMModel(object): session.delete('storagevolume', path, ignore_missing=True) except libvirt.libvirtError as e: - kimchi_log.error('Unable to get storage volume by path: %s' % + wok_log.error('Unable to get storage volume by path: %s' % e.message) except Exception as e: raise OperationFailed('KCHVOL0017E', {'err': e.message}) @@ -1087,7 +1087,7 @@ class VMModel(object): session.delete('vm', dom.UUIDString(), ignore_missing=True) except Exception as e: # It is possible to delete vm without delete its database info - kimchi_log.error('Error deleting vm information from database: ' + wok_log.error('Error deleting vm information from database: ' '%s', e.message) vnc.remove_proxy_token(name) @@ -1183,7 +1183,7 @@ class VMModel(object): except Exception as e: # It is possible to continue Kimchi executions without delete # screenshots - kimchi_log.error('Error trying to delete vm screenshot from ' + wok_log.error('Error trying to delete vm screenshot from ' 'database due error: %s', e.message) def suspend(self, name): @@ -1249,7 +1249,7 @@ class VMScreenshotModel(object): except Exception as e: # It is possible to continue Kimchi executions without store # screenshots - kimchi_log.error('Error trying to update database with guest ' + wok_log.error('Error trying to update database with guest ' 'screenshot information due error: %s', e.message) return img_path @@ -1267,7 +1267,7 @@ class VMScreenshotModel(object): # exception from '__exit__' when calling 'session.store' # It is possible to continue Kimchi vm executions without # screenshots - kimchi_log.error('Error trying to update database with guest ' + wok_log.error('Error trying to update database with guest ' 'screenshot information due error: %s', e.message) return LibvirtVMScreenshot(params, conn) diff --git a/plugins/kimchi/model/vmstorages.py b/plugins/kimchi/model/vmstorages.py index 29f8f30..f7cef52 100644 --- a/plugins/kimchi/model/vmstorages.py +++ b/plugins/kimchi/model/vmstorages.py @@ -29,7 +29,7 @@ from storagevolumes import StorageVolumeModel from utils import get_vm_config_flag from ..osinfo import lookup from diskutils import get_disk_used_by, set_disk_used_by -from wok.utils import kimchi_log +from wok.utils import wok_log from ..xmlutils.disk import get_device_node, get_disk_xml from ..xmlutils.disk import get_vm_disk_info, get_vm_disks @@ -191,7 +191,7 @@ class VMStorageModel(object): if path is not None: used_by = get_disk_used_by(self.objstore, self.conn, path) else: - kimchi_log.error("Unable to decrement volume used_by on" + wok_log.error("Unable to decrement volume used_by on" " delete because no path could be found.") dom.detachDeviceFlags(etree.tostring(disk), get_vm_config_flag(dom, 'all')) @@ -202,7 +202,7 @@ class VMStorageModel(object): used_by.remove(vm_name) set_disk_used_by(self.objstore, path, used_by) else: - kimchi_log.error("Unable to update %s:%s used_by on delete." + wok_log.error("Unable to update %s:%s used_by on delete." % (vm_name, dev_name)) def update(self, vm_name, dev_name, params): @@ -246,6 +246,6 @@ class VMStorageModel(object): set_disk_used_by(self.objstore, new_disk_path, new_disk_used_by) except Exception as e: - kimchi_log.error("Unable to update dev used_by on update due to" + wok_log.error("Unable to update dev used_by on update due to" " %s:" % e.message) return dev diff --git a/plugins/kimchi/scan.py b/plugins/kimchi/scan.py index 8e42fbc..663b838 100644 --- a/plugins/kimchi/scan.py +++ b/plugins/kimchi/scan.py @@ -27,7 +27,7 @@ import time from isoinfo import IsoImage, probe_iso -from wok.utils import kimchi_log +from wok.utils import wok_log SCAN_IGNORE = ['/tmp/kimchi-scan-*'] @@ -58,7 +58,7 @@ class Scanner(object): self.clean_cb(transient_pool) except OSError as e: msg = "Exception %s occured when cleaning stale pool, ignore" - kimchi_log.debug(msg % e.message) + wok_log.debug(msg % e.message) def scan_dir_prepare(self, name): # clean stale scan storage pools diff --git a/plugins/kimchi/screenshot.py b/plugins/kimchi/screenshot.py index 765e1a6..05701dd 100644 --- a/plugins/kimchi/screenshot.py +++ b/plugins/kimchi/screenshot.py @@ -33,7 +33,7 @@ except ImportError: import config -from wok.utils import kimchi_log +from wok.utils import wok_log (fd, pipe) = tempfile.mkstemp() @@ -164,7 +164,7 @@ class VMScreenshot(object): try: self._generate_scratch(thumbnail) except: - kimchi_log.error("screenshot_creation: Unable to create " + wok_log.error("screenshot_creation: Unable to create " "screenshot image %s." % thumbnail) else: self._create_black_image(thumbnail) @@ -178,7 +178,7 @@ class VMScreenshot(object): # work around pic truncate validation in thumbnail generation im.thumbnail(self.THUMBNAIL_SIZE) except Exception as e: - kimchi_log.warning("Image load with warning: %s." % e) + wok_log.warning("Image load with warning: %s." % e) im.save(thumbnail, "PNG") self.info['thumbnail'] = thumbnail diff --git a/plugins/kimchi/swupdate.py b/plugins/kimchi/swupdate.py index 592fb84..cd56707 100644 --- a/plugins/kimchi/swupdate.py +++ b/plugins/kimchi/swupdate.py @@ -23,7 +23,7 @@ import time from wok.basemodel import Singleton from config import kimchiLock from wok.exception import NotFoundError, OperationFailed -from wok.utils import kimchi_log, run_command +from wok.utils import wok_log, run_command from yumparser import get_yum_packages_list_update @@ -49,18 +49,18 @@ class SoftwareUpdate(object): # correct package management system try: __import__('yum') - kimchi_log.info("Loading YumUpdate features.") + wok_log.info("Loading YumUpdate features.") self._pkg_mnger = YumUpdate() except ImportError: try: __import__('apt') - kimchi_log.info("Loading AptUpdate features.") + wok_log.info("Loading AptUpdate features.") self._pkg_mnger = AptUpdate() except ImportError: zypper_help = ["zypper", "--help"] (stdout, stderr, returncode) = run_command(zypper_help) if returncode == 0: - kimchi_log.info("Loading ZypperUpdate features.") + wok_log.info("Loading ZypperUpdate features.") self._pkg_mnger = ZypperUpdate() else: raise Exception("There is no compatible package manager " diff --git a/plugins/kimchi/tests/utils.py b/plugins/kimchi/tests/utils.py index 6144dc7..e22bffa 100644 --- a/plugins/kimchi/tests/utils.py +++ b/plugins/kimchi/tests/utils.py @@ -41,7 +41,7 @@ import wok.server from wok.config import config, paths from wok.auth import User, USER_NAME, USER_GROUPS, USER_ROLES, tabs from wok.exception import NotFoundError, OperationFailed -from wok.utils import kimchi_log +from wok.utils import wok_log _ports = {} @@ -227,12 +227,12 @@ def wait_task(task_lookup, taskid, timeout=10): for i in range(0, timeout): task_info = task_lookup(taskid) if task_info['status'] == "running": - kimchi_log.info("Waiting task %s, message: %s", + wok_log.info("Waiting task %s, message: %s", taskid, task_info['message']) time.sleep(1) else: return - kimchi_log.error("Timeout while process long-run task, " + wok_log.error("Timeout while process long-run task, " "try to increase timeout value.") diff --git a/plugins/kimchi/ui/js/src/kimchi.api.js b/plugins/kimchi/ui/js/src/kimchi.api.js index a7c3b2d..81e44fd 100644 --- a/plugins/kimchi/ui/js/src/kimchi.api.js +++ b/plugins/kimchi/ui/js/src/kimchi.api.js @@ -53,7 +53,7 @@ var kimchi = { */ getCapabilities : function(suc, err, done) { done = typeof done !== 'undefined' ? done: function(){}; - kimchi.requestJSON({ + wok.requestJSON({ url : "config/capabilities", type : "GET", contentType : "application/json", @@ -68,7 +68,7 @@ var kimchi = { * Get the i18 strings. */ getI18n: function(suc, err, url, sync) { - kimchi.requestJSON({ + wok.requestJSON({ url : url ? url : 'i18n.json', type : 'GET', resend: true, @@ -83,7 +83,7 @@ var kimchi = { * Get the host static information. */ getHost: function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'host', type : 'GET', resend: true, @@ -98,11 +98,11 @@ var kimchi = { * Get the dynamic host stats (usually used for monitoring). */ getHostStats : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'host/stats', type : 'GET', contentType : 'application/json', - headers: {'Kimchi-Robot': 'kimchi-robot'}, + headers: {'Wok-Robot': 'wok-robot'}, dataType : 'json', success : suc, error: err @@ -113,12 +113,12 @@ var kimchi = { * Get the historic host stats. */ getHostStatsHistory : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'host/stats/history', type : 'GET', resend: true, contentType : 'application/json', - headers: {'Kimchi-Robot': 'kimchi-robot'}, + headers: {'Wok-Robot': 'wok-robot'}, dataType : 'json', success : suc, error: err @@ -137,7 +137,7 @@ var kimchi = { * suc: callback if succeed err: callback if failed */ createVM : function(settings, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : "vms", type : "POST", contentType : "application/json", @@ -153,7 +153,7 @@ var kimchi = { * if failed */ createTemplate : function(settings, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : "templates", type : "POST", contentType : "application/json", @@ -165,7 +165,7 @@ var kimchi = { }, deleteTemplate : function(tem, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'templates/' + encodeURIComponent(tem), type : 'DELETE', contentType : 'application/json', @@ -176,7 +176,7 @@ var kimchi = { }, cloneTemplate : function(tem, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'templates/' + encodeURIComponent(tem) + "/clone", type : 'POST', contentType : 'application/json', @@ -187,7 +187,7 @@ var kimchi = { }, listTemplates : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'templates', type : 'GET', contentType : 'application/json', @@ -201,7 +201,7 @@ var kimchi = { * Retrieve the information of a template by the given name. */ retrieveTemplate : function(templateName, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : "templates/" + encodeURIComponent(templateName), type : 'GET', contentType : 'application/json', @@ -231,7 +231,7 @@ var kimchi = { * The unit is MBytes suc: callback if succeed err: callback if failed */ createStoragePool : function(settings, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'storagepools', type : 'POST', contentType : 'application/json', @@ -248,12 +248,12 @@ var kimchi = { dataType : 'json', data : JSON.stringify(content) }).done(suc).fail(err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); }); }, startVM : function(vm, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/' + encodeURIComponent(vm) + '/start', type : 'POST', contentType : 'application/json', @@ -264,7 +264,7 @@ var kimchi = { }, poweroffVM : function(vm, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/' + encodeURIComponent(vm) + '/poweroff', type : 'POST', contentType : 'application/json', @@ -275,7 +275,7 @@ var kimchi = { }, shutdownVM : function(vm, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/' + encodeURIComponent(vm) + '/shutdown', type : 'POST', contentType : 'application/json', @@ -286,7 +286,7 @@ var kimchi = { }, resetVM : function(vm, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/' + encodeURIComponent(vm) + '/reset', type : 'POST', contentType : 'application/json', @@ -297,7 +297,7 @@ var kimchi = { }, suspendVM : function(vm, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/' + encodeURIComponent(vm) + '/suspend', type : 'POST', contentType : 'application/json', @@ -308,7 +308,7 @@ var kimchi = { }, resumeVM : function(vm, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/' + encodeURIComponent(vm) + '/resume', type : 'POST', contentType : 'application/json', @@ -352,7 +352,7 @@ var kimchi = { }, deleteVM : function(vm, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/' + encodeURIComponent(vm), type : 'DELETE', contentType : 'application/json', @@ -363,13 +363,13 @@ var kimchi = { }, vncToVM : function(vm) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'config', type : 'GET', dataType : 'json' }).done(function(data, textStatus, xhr) { proxy_port = data['display_proxy_port']; - kimchi.requestJSON({ + wok.requestJSON({ url : "vms/" + encodeURIComponent(vm) + "/connect", type : "POST", dataType : "json" @@ -384,24 +384,24 @@ var kimchi = { * contain = which is not safe in a URL query component. * So remove it when needed as base64 can work well without it. * */ - url += "&path=?token=" + kimchi.urlSafeB64Encode(vm).replace(/=*$/g, ""); - url += "&kimchi=" + location.port; + url += "&path=?token=" + wok.urlSafeB64Encode(vm).replace(/=*$/g, ""); + url += "&wok=" + location.port; url += '&encrypt=1'; window.open(url); }); }).error(function() { - kimchi.message.error.code('KCHAPI6002E'); + wok.message.error.code('KCHAPI6002E'); }); }, spiceToVM : function(vm) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'config', type : 'GET', dataType : 'json' }).done(function(data, textStatus, xhr) { proxy_port = data['display_proxy_port']; - kimchi.requestJSON({ + wok.requestJSON({ url : "vms/" + encodeURIComponent(vm) + "/connect", type : "POST", dataType : "json" @@ -416,22 +416,22 @@ var kimchi = { * contain = which is not safe in a URL query component. * So remove it when needed as base64 can work well without it. * */ - url += "&token=" + kimchi.urlSafeB64Encode(vm).replace(/=*$/g, ""); - url += "&kimchi=" + location.port; + url += "&token=" + wok.urlSafeB64Encode(vm).replace(/=*$/g, ""); + url += "&wok=" + location.port; url += '&encrypt=1'; window.open(url); }); }).error(function() { - kimchi.message.error.code('KCHAPI6002E'); + wok.message.error.code('KCHAPI6002E'); }); }, listVMs : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms', type : 'GET', contentType : 'application/json', - headers: {'Kimchi-Robot': 'kimchi-robot'}, + headers: {'Wok-Robot': 'wok-robot'}, dataType : 'json', resend: true, success : suc, @@ -440,7 +440,7 @@ var kimchi = { }, listTemplates : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'templates', type : 'GET', contentType : 'application/json', @@ -452,7 +452,7 @@ var kimchi = { }, listStoragePools : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'storagepools', type : 'GET', contentType : 'application/json', @@ -475,7 +475,7 @@ var kimchi = { }, listIsos : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'storagepools/kimchi_isos/storagevolumes', type : 'GET', contentType : 'application/json', @@ -486,7 +486,7 @@ var kimchi = { }, listDistros : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'config/distros', type : 'GET', contentType : 'application/json', @@ -548,7 +548,7 @@ var kimchi = { }, getTask : function(taskId, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'tasks/' + encodeURIComponent(taskId), type : 'GET', contentType : 'application/json', @@ -559,7 +559,7 @@ var kimchi = { }, getTasksByFilter : function(filter, suc, err, sync) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'tasks?' + filter, type : 'GET', contentType : 'application/json', @@ -626,7 +626,7 @@ var kimchi = { }, listNetworks : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'networks', type : 'GET', contentType : 'application/json', @@ -634,27 +634,27 @@ var kimchi = { resend : true, success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, toggleNetwork : function(name, on, suc, err) { var action = on ? "activate" : "deactivate"; - kimchi.requestJSON({ + wok.requestJSON({ url : 'networks/' + encodeURIComponent(name) + '/' + action, type : 'POST', contentType : 'application/json', dataType : 'json', success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, createNetwork : function(network, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'networks', type : 'POST', contentType : 'application/json', @@ -662,13 +662,13 @@ var kimchi = { data : JSON.stringify(network), success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, getInterfaces : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'interfaces', type : 'GET', contentType : 'application/json', @@ -676,26 +676,26 @@ var kimchi = { resend : true, success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, deleteNetwork : function(name, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'networks/' + encodeURIComponent(name), type : 'DELETE', contentType : 'application/json', dataType : 'json', success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, listReports : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'debugreports', type : 'GET', contentType : 'application/json', @@ -738,7 +738,7 @@ var kimchi = { kimchi.trackTask(taskID, suc, err, progress); }; - kimchi.requestJSON({ + wok.requestJSON({ url : 'debugreports', type : "POST", contentType : "application/json", @@ -763,7 +763,7 @@ var kimchi = { deleteReport: function(settings, suc, err) { var reportName = encodeURIComponent(settings['name']); - kimchi.requestJSON({ + wok.requestJSON({ url : 'debugreports/' + reportName, type : 'DELETE', contentType : 'application/json', @@ -780,7 +780,7 @@ var kimchi = { shutdown: function(settings, suc, err) { var reboot = settings && settings['reboot'] === true; var url = 'host/' + (reboot ? 'reboot' : 'shutdown'); - kimchi.requestJSON({ + wok.requestJSON({ url : url, type : 'POST', contentType : 'application/json', @@ -791,7 +791,7 @@ var kimchi = { }, listHostPartitions : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'host/partitions', type : 'GET', contentType : 'application/json', @@ -803,21 +803,21 @@ var kimchi = { getStorageServers: function(type, suc, err) { var url = 'storageservers?_target_type=' + type; - kimchi.requestJSON({ + wok.requestJSON({ url : url, type : 'GET', contentType : 'application/json', dataType : 'json', success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, getStorageTargets: function(server,type, suc, err) { var url = 'storageservers/' + server + '/storagetargets?_target_type=' + type; - kimchi.requestJSON({ + wok.requestJSON({ url : url, type : 'GET', contentType : 'application/json', @@ -830,7 +830,7 @@ var kimchi = { getStoragePool: function(poolName, suc, err) { var url = kimchi.url + 'storagepools/' + encodeURIComponent(poolName); - kimchi.requestJSON({ + wok.requestJSON({ url : url, type : 'GET', contentType : 'application/json', @@ -843,7 +843,7 @@ var kimchi = { getStoragePoolVolume: function(poolName, volumeName, suc, err) { var url = 'storagepools/' + encodeURIComponent(poolName) + '/storagevolumes/' + encodeURIComponent(volumeName); - kimchi.requestJSON({ + wok.requestJSON({ url : url, type : 'GET', contentType : 'application/json', @@ -857,7 +857,7 @@ var kimchi = { addVMStorage : function(settings, suc, err) { var vm = encodeURIComponent(settings['vm']); delete settings['vm']; - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/' + vm + '/storages', type : 'POST', contentType : 'application/json', @@ -871,7 +871,7 @@ var kimchi = { retrieveVMStorage : function(settings, suc, err) { var vm = encodeURIComponent(settings['vm']); var dev = encodeURIComponent(settings['dev']); - kimchi.requestJSON({ + wok.requestJSON({ url : "vms/" + vm + '/storages/' + dev, type : 'GET', contentType : 'application/json', @@ -884,7 +884,7 @@ var kimchi = { replaceVMStorage : function(settings, suc, err) { var vm = encodeURIComponent(settings['vm']); var dev = encodeURIComponent(settings['dev']); - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/' + vm + '/storages/' + dev, type : 'PUT', contentType : 'application/json', @@ -900,7 +900,7 @@ var kimchi = { deleteVMStorage : function(settings, suc, err) { var vm = settings['vm']; var dev = settings['dev']; - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/' + encodeURIComponent(vm) + '/storages/' + encodeURIComponent(dev), type : 'DELETE', @@ -918,7 +918,7 @@ var kimchi = { if(type) { url += '?type=' + type; } - kimchi.requestJSON({ + wok.requestJSON({ url : url, type : 'GET', contentType : 'application/json', @@ -929,7 +929,7 @@ var kimchi = { }, listSoftwareUpdates : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'host/packagesupdate', type : 'GET', contentType : 'application/json', @@ -969,7 +969,7 @@ var kimchi = { } }; - kimchi.requestJSON({ + wok.requestJSON({ url : 'host/swupdate', type : "POST", contentType : "application/json", @@ -980,7 +980,7 @@ var kimchi = { }, createRepository : function(settings, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : "host/repositories", type : "POST", contentType : "application/json", @@ -993,7 +993,7 @@ var kimchi = { retrieveRepository : function(repository, suc, err) { var reposID = encodeURIComponent(repository); - kimchi.requestJSON({ + wok.requestJSON({ url : "host/repositories/" + reposID, type : 'GET', contentType : 'application/json', @@ -1031,7 +1031,7 @@ var kimchi = { deleteRepository : function(repository, suc, err) { var reposID = encodeURIComponent(repository); - kimchi.requestJSON({ + wok.requestJSON({ url : 'host/repositories/' + reposID, type : 'DELETE', contentType : 'application/json', @@ -1042,7 +1042,7 @@ var kimchi = { }, listRepositories : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'host/repositories', type : 'GET', contentType : 'application/json', @@ -1055,34 +1055,34 @@ var kimchi = { getHostFCDevices: function(suc, err) { var url = 'host/devices?_cap=fc_host'; - kimchi.requestJSON({ + wok.requestJSON({ url : url, type : 'GET', contentType : 'application/json', dataType : 'json', success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, getGuestInterfaces: function(name, suc, err) { var url = 'vms/'+encodeURIComponent(name)+'/ifaces'; - kimchi.requestJSON({ + wok.requestJSON({ url : url, type : 'GET', contentType : 'application/json', dataType : 'json', success : suc, error : err || function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, createGuestInterface : function(name, interface, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/'+encodeURIComponent(name)+'/ifaces', type : 'POST', contentType : 'application/json', @@ -1090,20 +1090,20 @@ var kimchi = { data : JSON.stringify(interface), success : suc, error : err || function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, deleteGuestInterface : function(vm, mac, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/'+encodeURIComponent(vm)+'/ifaces/'+encodeURIComponent(mac), type : 'DELETE', contentType : 'application/json', dataType : 'json', success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, @@ -1117,13 +1117,13 @@ var kimchi = { dataType : 'json', success: suc, error: err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, getUserById : function(data, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'users?_user_id=' + data.user_id, type : 'GET', contentType : 'application/json', @@ -1132,13 +1132,13 @@ var kimchi = { async : false, success : suc && suc(data), error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, getUsers : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'users', type : 'GET', contentType : 'application/json', @@ -1146,13 +1146,13 @@ var kimchi = { resend : true, success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, getGroups : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'groups', type : 'GET', contentType : 'application/json', @@ -1160,13 +1160,13 @@ var kimchi = { resend : true, success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, getHostPCIDevices : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'host/devices?_passthrough=true&_cap=pci', type : 'GET', contentType : 'application/json', @@ -1174,13 +1174,13 @@ var kimchi = { resend : true, success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, getPCIDeviceCompanions : function(pcidev, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'host/devices?_passthrough_affected_by=' + pcidev, type : 'GET', contentType : 'application/json', @@ -1188,7 +1188,7 @@ var kimchi = { resend : true, success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, @@ -1196,7 +1196,7 @@ var kimchi = { getISCSITargets : function(server, port, suc, err) { server = encodeURIComponent(server); port = port ? '&_server_port='+encodeURIComponent(port) : ''; - kimchi.requestJSON({ + wok.requestJSON({ url : 'storageservers/'+server+'/storagetargets?_target_type=iscsi'+port, type : 'GET', contentType : 'application/json', @@ -1204,13 +1204,13 @@ var kimchi = { resend : true, success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, getPeers : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'peers', type : 'GET', contentType : 'application/json', @@ -1218,13 +1218,13 @@ var kimchi = { resend : true, success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, getVMPCIDevices : function(id, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/'+encodeURIComponent(id)+'/hostdevs', type : 'GET', contentType : 'application/json', @@ -1232,13 +1232,13 @@ var kimchi = { resend : true, success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, addVMPCIDevice : function(vm, device, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/'+ encodeURIComponent(vm) +'/hostdevs', type : 'POST', contentType : 'application/json', @@ -1246,20 +1246,20 @@ var kimchi = { data : JSON.stringify(device), success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, removeVMPCIDevice : function(vm, device, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/'+ encodeURIComponent(vm) +'/hostdevs/' + encodeURIComponent(device), type : 'DELETE', contentType : 'application/json', dataType : 'json', success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, @@ -1268,7 +1268,7 @@ var kimchi = { * Create a new volume with capacity */ createVolumeWithCapacity: function(poolName, settings, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'storagepools/' + encodeURIComponent(poolName) + '/storagevolumes', type : 'POST', contentType : "application/json", @@ -1285,7 +1285,7 @@ var kimchi = { uploadVolumeToSP: function(poolName, volumeName, settings, suc, err) { var url = 'storagepools/' + encodeURIComponent(poolName) + '/storagevolumes/' + encodeURIComponent(volumeName); var fd = settings['formData']; - kimchi.requestJSON({ + wok.requestJSON({ url : url, type : 'PUT', data : fd, @@ -1303,7 +1303,7 @@ var kimchi = { downloadVolumeToSP: function(settings, suc, err) { var sp = encodeURIComponent(settings['sp']); delete settings['sp']; - kimchi.requestJSON({ + wok.requestJSON({ url : 'storagepools/' + sp + '/storagevolumes', type : 'POST', data : JSON.stringify(settings), @@ -1315,20 +1315,20 @@ var kimchi = { }, cloneGuest: function(vm, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/'+encodeURIComponent(vm)+"/clone", type : 'POST', contentType : 'application/json', dataType : 'json', success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, listSnapshots : function(vm, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/'+encodeURIComponent(vm)+'/snapshots', type : 'GET', contentType : 'application/json', @@ -1336,13 +1336,13 @@ var kimchi = { resend : true, success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, getCurrentSnapshot : function(vm, suc, err, sync) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/'+encodeURIComponent(vm)+'/snapshots/current', type : 'GET', contentType : 'application/json', @@ -1351,52 +1351,52 @@ var kimchi = { resend : true, success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, revertSnapshot : function(vm, snapshot, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/'+encodeURIComponent(vm)+'/snapshots/'+encodeURIComponent(snapshot)+'/revert', type : 'POST', contentType : 'application/json', dataType : 'json', success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, createSnapshot : function(vm, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/'+encodeURIComponent(vm)+'/snapshots', type : 'POST', contentType : 'application/json', dataType : 'json', success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, deleteSnapshot : function(vm, snapshot, suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'vms/'+encodeURIComponent(vm)+'/snapshots/'+encodeURIComponent(snapshot), type : 'DELETE', contentType : 'application/json', dataType : 'json', success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }, getCPUInfo : function(suc, err) { - kimchi.requestJSON({ + wok.requestJSON({ url : 'host/cpuinfo', type : 'GET', contentType : 'application/json', @@ -1404,7 +1404,7 @@ var kimchi = { resend : true, success : suc, error : err ? err : function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); } diff --git a/plugins/kimchi/ui/js/src/kimchi.grid.js b/plugins/kimchi/ui/js/src/kimchi.grid.js index 6fed753..fcd9096 100644 --- a/plugins/kimchi/ui/js/src/kimchi.grid.js +++ b/plugins/kimchi/ui/js/src/kimchi.grid.js @@ -376,7 +376,7 @@ kimchi.widget.Grid.prototype = (function() { var container = $('#' + containerID); var gridID = this['opts']['id']; var rowSelection = this['opts']['rowSelection'] || 'single'; - var domNode = $(kimchi.substitute(htmlStr, { + var domNode = $(wok.substitute(htmlStr, { id: gridID, loading: i18n['KCHGRD6001M'], message: i18n['KCHGRD6002M'], diff --git a/plugins/kimchi/ui/js/src/kimchi.guest_add_main.js b/plugins/kimchi/ui/js/src/kimchi.guest_add_main.js index df76975..1008d85 100644 --- a/plugins/kimchi/ui/js/src/kimchi.guest_add_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.guest_add_main.js @@ -17,7 +17,7 @@ */ kimchi.guest_add_main = function() { var showTemplates = function() { - kimchi.topic('templateCreated').unsubscribe(showTemplates); + wok.topic('templateCreated').unsubscribe(showTemplates); kimchi.listTemplates(function(result) { if (result && result.length) { $('#prompt-create-template').addClass('hidden'); @@ -25,16 +25,16 @@ kimchi.guest_add_main = function() { var html = ''; var tmpl = $('#tmpl-template').html(); $.each(result, function(index, value) { - html += kimchi.substitute(tmpl, value); + html += wok.substitute(tmpl, value); }); $('#templateTile').html(html); return; } $('#btn-create-template').on('click', function(event) { - kimchi.topic('templateCreated').subscribe(showTemplates); + wok.topic('templateCreated').subscribe(showTemplates); - kimchi.window.open('template-add.html'); + wok.window.open('template-add.html'); event.preventDefault(); }); @@ -42,7 +42,7 @@ kimchi.guest_add_main = function() { $('#prompt-choose-template').addClass('hidden'); $('#prompt-create-template').removeClass('hidden'); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); }; @@ -66,14 +66,14 @@ kimchi.guest_add_main = function() { var formData = $('#form-vm-add').serializeObject(); kimchi.createVM(formData, function() { kimchi.listVmsAuto(); - kimchi.window.close(); + wok.window.close(); }, function(jqXHR, textStatus, errorThrown) { $('#vm-doAdd').attr('style', 'display'); $('#vm-doAdding').attr('style', 'display:none'); var reason = jqXHR && jqXHR['responseJSON'] && jqXHR['responseJSON']['reason']; - kimchi.message.error(reason); + wok.message.error(reason); }); return false; diff --git a/plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js b/plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js index 7671e43..28c2163 100644 --- a/plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js @@ -46,7 +46,7 @@ kimchi.guest_edit_main = function() { $.each(storages, function(index, storage) { storage['vm'] = kimchi.selectedGuest; rowHTML = $('#' + storage['type'] + '-row-tmpl').html(); - var templated = kimchi.substitute(rowHTML, storage); + var templated = wok.substitute(rowHTML, storage); container.append(templated); }); @@ -120,12 +120,12 @@ kimchi.guest_edit_main = function() { settings['content'] = i18n['KCHVMCD6009M']; var dev = $(this).data('dev'); - kimchi.confirm(settings, function() { + wok.confirm(settings, function() { kimchi.deleteVMStorage({ vm: kimchi.selectedGuest, dev: dev }, function() { - kimchi.topic('kimchi/vmCDROMDetached').publish(); + wok.topic('kimchi/vmCDROMDetached').publish(); }); }); }); @@ -140,13 +140,13 @@ kimchi.guest_edit_main = function() { }; kimchi.replaceVMStorage(settings, function(result) { - kimchi.topic('kimchi/vmCDROMReplaced').publish({ + wok.topic('kimchi/vmCDROMReplaced').publish({ result: result }); }, function(result) { var errText = result['reason'] || result['responseJSON']['reason']; - kimchi.message.error(errText); + wok.message.error(errText); }); }); @@ -183,7 +183,7 @@ kimchi.guest_edit_main = function() { if (data.id == -1) { data.id = $('#form-guest-edit-interface > .body').children().size() } - var itemNode = $.parseHTML(kimchi.substitute($('#interface-tmpl').html(),data)); + var itemNode = $.parseHTML(wok.substitute($('#interface-tmpl').html(),data)); $(".body", "#form-guest-edit-interface").append(itemNode); $("select", itemNode).append(networkOptions); if(data.network!==""){ @@ -283,7 +283,7 @@ kimchi.guest_edit_main = function() { }); }); var addItem = function(data) { - var itemNode = $.parseHTML(kimchi.substitute($('#ldap-user-tmpl').html(),data)); + var itemNode = $.parseHTML(wok.substitute($('#ldap-user-tmpl').html(),data)); $(".body", "#form-guest-edit-permission .ldap").append(itemNode); $(".delete", itemNode).button({ icons: { primary: "ui-icon-trash" }, @@ -314,7 +314,7 @@ kimchi.guest_edit_main = function() { }; //set up for PAM var userNodes = {}, groupNodes = {}; - authType = kimchi.capabilities['auth'] + authType = wok.capabilities['auth'] if (authType == 'pam') { $("#form-guest-edit-permission .ldap").hide(); kimchi.retrieveVM(kimchi.selectedGuest, function(vm){ @@ -367,7 +367,7 @@ kimchi.guest_edit_main = function() { var init = function(availUsers, availGroups, selUsers, selGroups){ var initNode = function(key, isUserNode){ var nodeGroups = isUserNode ? userNodes : groupNodes; - nodeGroups[key] = $.parseHTML(kimchi.substitute($('#permission-item-pam').html(), { + nodeGroups[key] = $.parseHTML(wok.substitute($('#permission-item-pam').html(), { val: key, class: isUserNode? "user-icon" : "group-icon" })); @@ -432,9 +432,9 @@ kimchi.guest_edit_main = function() { var setupPCIDevice = function(){ kimchi.getHostPCIDevices(function(hostPCIs){ kimchi.getVMPCIDevices(kimchi.selectedGuest, function(vmPCIs){ - var pciEnabled = kimchi.capabilities.kernel_vfio; + var pciEnabled = wok.capabilities.kernel_vfio; for(var i=0; i<hostPCIs.length; i++){ - var itemNode = $.parseHTML(kimchi.substitute($('#pci-tmpl').html(),{ + var itemNode = $.parseHTML(wok.substitute($('#pci-tmpl').html(),{ name: hostPCIs[i].name, product: hostPCIs[i].product.description, vendor: hostPCIs[i].vendor.description @@ -545,7 +545,7 @@ kimchi.guest_edit_main = function() { } }; var addItem = function(data, container) { - var itemNode = $.parseHTML(kimchi.substitute($('#snapshot-tmpl').html(),data)); + var itemNode = $.parseHTML(wok.substitute($('#snapshot-tmpl').html(),data)); $("."+container, "#form-guest-edit-snapshot").append(itemNode); $(".delete", itemNode).button({ icons: { primary: "ui-icon-trash" }, @@ -559,7 +559,7 @@ kimchi.guest_edit_main = function() { setCurrentSnapshot(); $("button", "#form-guest-edit-snapshot").button("enable"); }, function(data){ - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); $("button", "#form-guest-edit-snapshot").button("enable"); }); }); @@ -577,9 +577,9 @@ kimchi.guest_edit_main = function() { $("button", "#form-guest-edit-snapshot").button("enable"); setCurrentSnapshot(item.prop("id")); kimchi.listVmsAuto(); - kimchi.window.close(); + wok.window.close(); }, function(data){ - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); $(".icon", item).addClass("hide"); $("button", "#form-guest-edit-snapshot").button("enable"); }); @@ -598,7 +598,7 @@ kimchi.guest_edit_main = function() { listGeneratingSnapshots(); $("button", "#form-guest-edit-snapshot").button("enable"); }, function(err){ - kimchi.message.error(err.message); + wok.message.error(err.message); listGeneratingSnapshots(); $("button", "#form-guest-edit-snapshot").button("enable"); }); @@ -650,7 +650,7 @@ kimchi.guest_edit_main = function() { text: false }).click(function(event) { event.preventDefault(); - kimchi.window.open("guest-storage-add.html"); + wok.window.open("guest-storage-add.html"); }); if(kimchi.thisVMState === "running") { $("#form-guest-edit-general input").prop("disabled", true); @@ -674,14 +674,14 @@ kimchi.guest_edit_main = function() { setupPCIDevice(); setupSnapshot(); - kimchi.topic('kimchi/vmCDROMAttached').subscribe(onAttached); - kimchi.topic('kimchi/vmCDROMReplaced').subscribe(onReplaced); - kimchi.topic('kimchi/vmCDROMDetached').subscribe(onDetached); + wok.topic('kimchi/vmCDROMAttached').subscribe(onAttached); + wok.topic('kimchi/vmCDROMReplaced').subscribe(onReplaced); + wok.topic('kimchi/vmCDROMDetached').subscribe(onDetached); kimchi.clearGuestEdit = function() { - kimchi.topic('kimchi/vmCDROMAttached').unsubscribe(onAttached); - kimchi.topic('kimchi/vmCDROMReplaced').unsubscribe(onReplaced); - kimchi.topic('kimchi/vmCDROMDetached').unsubscribe(onDetached); + wok.topic('kimchi/vmCDROMAttached').unsubscribe(onAttached); + wok.topic('kimchi/vmCDROMReplaced').unsubscribe(onReplaced); + wok.topic('kimchi/vmCDROMDetached').unsubscribe(onDetached); }; }; @@ -699,16 +699,16 @@ kimchi.guest_edit_main = function() { kimchi.updateVM(kimchi.selectedGuest, data, function() { kimchi.listVmsAuto(); - kimchi.window.close(); + wok.window.close(); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); $(saveButton).prop('disabled', false); }); } var permissionSubmit = function(event) { var content = { users: [], groups: [] }; - authType = kimchi.capabilities['auth'] + authType = wok.capabilities['auth'] if (authType == 'pam') { $("#permission-sel-users").children().each(function(){ content.users.push($("label", this).text()); @@ -717,7 +717,7 @@ kimchi.guest_edit_main = function() { content.groups.push($("label", this).text()); }); kimchi.updateVM(kimchi.selectedGuest, content, function(){ - kimchi.window.close(); + wok.window.close(); }); } else if (authType == 'ldap') { $(saveButton).prop('disabled', true); @@ -737,7 +737,7 @@ kimchi.guest_edit_main = function() { }); if (errors == 0) { kimchi.updateVM(kimchi.selectedGuest, content, function(){ - kimchi.window.close(); + wok.window.close(); }); } else { $(saveButton).prop('disabled', false); diff --git a/plugins/kimchi/ui/js/src/kimchi.guest_main.js b/plugins/kimchi/ui/js/src/kimchi.guest_main.js index 7e25b68..a0f927b 100644 --- a/plugins/kimchi/ui/js/src/kimchi.guest_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.guest_main.js @@ -55,7 +55,7 @@ kimchi.vmstart = function(event) { kimchi.listVmsAuto(); }, function(err) { button.removeClass('loading'); - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); } ); } else { @@ -76,7 +76,7 @@ kimchi.vmsuspend = function(event) { kimchi.listVmsAuto(); }, function(err) { button.removeClass('pause-gray'); - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); } ); } else { @@ -97,7 +97,7 @@ kimchi.vmresume = function(event) { kimchi.listVmsAuto(); }, function(err) { button.removeClass('resume-gray'); - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); } ); } else { @@ -123,12 +123,12 @@ kimchi.vmpoweroff = function(event) { confirm : i18n['KCHAPI6002M'], cancel : i18n['KCHAPI6003M'] }; - kimchi.confirm(settings, function() { + wok.confirm(settings, function() { kimchi.poweroffVM(vm_id, function(result) { button.removeClass('loading'); kimchi.listVmsAuto(); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); }, function() { }); @@ -147,11 +147,11 @@ kimchi.vmshutdown = function(event){ confirm : i18n['KCHAPI6002M'], cancel : i18n['KCHAPI6003M'] }; - kimchi.confirm(settings, function() { + wok.confirm(settings, function() { kimchi.shutdownVM(vm_id, function(result) { kimchi.listVmsAuto(); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); } ); }, function() { @@ -167,11 +167,11 @@ kimchi.vmreset = function(event){ confirm : i18n['KCHAPI6002M'], cancel : i18n['KCHAPI6003M'] }; - kimchi.confirm(settings, function() { + wok.confirm(settings, function() { kimchi.resetVM(vm_id, function(result) { kimchi.listVmsAuto(); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); } ); }, function() { @@ -187,11 +187,11 @@ kimchi.vmdelete = function(event) { confirm : i18n['KCHAPI6002M'], cancel : i18n['KCHAPI6003M'] }; - kimchi.confirm(settings, function() { + wok.confirm(settings, function() { kimchi.deleteVM(vm_id, function(result) { kimchi.listVmsAuto(); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); }, function() { }); @@ -201,7 +201,7 @@ kimchi.vmedit = function(event) { var vm = $(this).closest('li[name=guest]'); var vm_id=vm.attr("id"); kimchi.selectedGuest = vm_id; - kimchi.window.open({ + wok.window.open({ url: 'guest-edit.html', close: function() { kimchi.clearGuestEdit(); @@ -252,7 +252,7 @@ kimchi.listVmsAuto = function() { guests.push($.extend({}, kimchi.sampleGuestObject, {name: guestName, isCreating: true})); if(kimchi.trackingTasks.indexOf(tasks[i].id)==-1) kimchi.trackTask(tasks[i].id, null, function(err){ - kimchi.message.error(err.message); + wok.message.error(err.message); }, null); } }, null, true); @@ -267,7 +267,7 @@ kimchi.listVmsAuto = function() { guests.push($.extend({}, kimchi.sampleGuestObject, {name: guestName, isCloning: true})); if(kimchi.trackingTasks.indexOf(tasks[i].id)==-1) kimchi.trackTask(tasks[i].id, null, function(err){ - kimchi.message.error(err.message); + wok.message.error(err.message); }, null); } }, null, true); @@ -299,7 +299,7 @@ kimchi.listVmsAuto = function() { kimchi.vmTimeout = window.setTimeout("kimchi.listVmsAuto();", 5000); }, function(errorResponse, textStatus, errorThrown) { if(errorResponse.responseJSON && errorResponse.responseJSON.reason) { - kimchi.message.error(errorResponse.responseJSON.reason); + wok.message.error(errorResponse.responseJSON.reason); } kimchi.vmTimeout = window.setTimeout("kimchi.listVmsAuto();", 5000); }); @@ -439,7 +439,7 @@ kimchi.createGuestLi = function(vmObject, prevScreenImage, openMenu) { guestActions.find("[name=vm-delete]").on({click : kimchi.vmdelete}); guestActions.find("[name=vm-clone]").click(function(){ var guest = $(this).closest('li[name=guest]').attr("id"); - kimchi.confirm({ + wok.confirm({ title : i18n['KCHAPI6006M'], content : i18n['KCHVM6010M'], confirm : i18n['KCHAPI6002M'], @@ -489,10 +489,10 @@ kimchi.guestSetRequestHeader = function(xhr) { }; kimchi.guest_main = function() { - if(kimchi.tabMode['guests'] === 'admin') { + if(wok.tabMode['guests'] === 'admin') { $('.tools').attr('style','display'); $("#vm-add").on("click", function(event) { - kimchi.window.open('guest-add.html'); + wok.window.open('guest-add.html'); }); } kimchi.guestTemplate = $('#guest-tmpl').html(); diff --git a/plugins/kimchi/ui/js/src/kimchi.guest_media_main.js b/plugins/kimchi/ui/js/src/kimchi.guest_media_main.js index 82bceb4..2e4e7e8 100644 --- a/plugins/kimchi/ui/js/src/kimchi.guest_media_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.guest_media_main.js @@ -28,14 +28,14 @@ kimchi.guest_media_main = function() { $.each(storages, function(index, storage) { storage['vm'] = kimchi.selectedGuest; - var templated = kimchi.substitute(rowHTML, storage); + var templated = wok.substitute(rowHTML, storage); container.append(templated); }); var replaceCDROM = function(event) { event.preventDefault(); kimchi.selectedGuestStorage = $(this).data('dev'); - kimchi.window.open("guest-cdrom-edit.html"); + wok.window.open("guest-cdrom-edit.html"); }; $('input[type="text"][name="cdrom"]', container).on('click', replaceCDROM); @@ -48,9 +48,9 @@ kimchi.guest_media_main = function() { var onReplaced = function(params) { refreshCDROMs(); }; - kimchi.topic('kimchi/vmCDROMReplaced').subscribe(onReplaced); + wok.topic('kimchi/vmCDROMReplaced').subscribe(onReplaced); kimchi.clearGuestMedia = function() { - kimchi.topic('kimchi/vmCDROMReplaced').unsubscribe(onReplaced); + wok.topic('kimchi/vmCDROMReplaced').unsubscribe(onReplaced); }; }; diff --git a/plugins/kimchi/ui/js/src/kimchi.guest_storage_add.main.js b/plugins/kimchi/ui/js/src/kimchi.guest_storage_add.main.js index 3581c34..6723b1a 100644 --- a/plugins/kimchi/ui/js/src/kimchi.guest_storage_add.main.js +++ b/plugins/kimchi/ui/js/src/kimchi.guest_storage_add.main.js @@ -123,7 +123,7 @@ kimchi.guest_storage_add_main = function() { if (/^((https|http|ftp|ftps|tftp|\/).*)+$/.test(settings['path'])) return true; else { - kimchi.message.error.code('KCHVMSTOR0001E'); + wok.message.error.code('KCHVMSTOR0001E'); return false; } } @@ -132,7 +132,7 @@ kimchi.guest_storage_add_main = function() { if (settings['pool'] && settings['vol']) return true; else { - kimchi.message.error.code('KCHVMSTOR0002E'); + wok.message.error.code('KCHVMSTOR0002E'); return false; } } @@ -169,14 +169,14 @@ kimchi.guest_storage_add_main = function() { $(submitButton).addClass('loading').text(i18n['KCHVMCD6003M']); kimchi.addVMStorage(settings, function(result) { - kimchi.window.close(); - kimchi.topic('kimchi/vmCDROMAttached').publish({ + wok.window.close(); + wok.topic('kimchi/vmCDROMAttached').publish({ result: result }); }, function(result) { var errText = result['reason'] || result['responseJSON']['reason']; - kimchi.message.error(errText); + wok.message.error(errText); $.each([submitButton, pathTextbox, poolTextbox, volTextbox], function(i, c) { $(c).prop('disabled', false); diff --git a/plugins/kimchi/ui/js/src/kimchi.host.js b/plugins/kimchi/ui/js/src/kimchi.host.js index b75b9e4..7834024 100644 --- a/plugins/kimchi/ui/js/src/kimchi.host.js +++ b/plugins/kimchi/ui/js/src/kimchi.host.js @@ -86,7 +86,7 @@ kimchi.host_main = function() { id: 'repositories-grid-add-button', label: i18n['KCHREPO6012M'], onClick: function(event) { - kimchi.window.open({url:'repository-add.html', class: repo_type}); + wok.window.open({url:'repository-add.html', class: repo_type}); } }, { id: 'repositories-grid-enable-button', @@ -101,7 +101,7 @@ kimchi.host_main = function() { var enable = !repository['enabled']; $(this).prop('disabled', true); kimchi.enableRepository(name, enable, function() { - kimchi.topic('kimchi/repositoryUpdated').publish(); + wok.topic('kimchi/repositoryUpdated').publish(); }); } }, { @@ -114,7 +114,7 @@ kimchi.host_main = function() { return; } kimchi.selectedRepository = repository['repo_id']; - kimchi.window.open({url:'repository-edit.html', class: repo_type}); + wok.window.open({url:'repository-edit.html', class: repo_type}); } }, { id: 'repositories-grid-remove-button', @@ -133,11 +133,11 @@ kimchi.host_main = function() { cancel : i18n['KCHAPI6003M'] }; - kimchi.confirm(settings, function() { + wok.confirm(settings, function() { kimchi.deleteRepository( repository['repo_id'], function(result) { - kimchi.topic('kimchi/repositoryDeleted').publish(result); + wok.topic('kimchi/repositoryDeleted').publish(result); }, function(error) { } ); @@ -217,19 +217,19 @@ kimchi.host_main = function() { var progressArea = $('#' + progressAreaID)[0]; $('#software-updates-progress-container').removeClass('hidden'); $(progressArea).text(''); - !kimchi.isElementInViewport(progressArea) && + !wok.isElementInViewport(progressArea) && progressArea.scrollIntoView(); $(updateButton).text(i18n['KCHUPD6007M']).prop('disabled', true); kimchi.updateSoftware(function(result) { reloadProgressArea(result); $(updateButton).text(i18n['KCHUPD6006M']).prop('disabled', false); - kimchi.topic('kimchi/softwareUpdated').publish({ + wok.topic('kimchi/softwareUpdated').publish({ result: result }); }, function(error) { var message = error && error['responseJSON'] && error['responseJSON']['reason']; - kimchi.message.error(message || i18n['KCHUPD6009M']); + wok.message.error(message || i18n['KCHUPD6009M']); $(updateButton).text(i18n['KCHUPD6006M']).prop('disabled', false); }, reloadProgressArea); } @@ -287,7 +287,7 @@ kimchi.host_main = function() { var enableReportButtons = function(toEnable) { var buttonID = '#{grid}-{btn}-button'; $.each(['rename', 'remove', 'download'], function(i, n) { - $(kimchi.substitute(buttonID, { + $(wok.substitute(buttonID, { grid: reportGridID, btn: n })).prop('disabled', !toEnable); @@ -302,7 +302,7 @@ kimchi.host_main = function() { id: reportGridID + '-generate-button', label: i18n['KCHDR6006M'], onClick: function(event) { - kimchi.window.open('report-add.html'); + wok.window.open('report-add.html'); } }, { id: reportGridID + '-rename-button', @@ -315,7 +315,7 @@ kimchi.host_main = function() { } kimchi.selectedReport = report['name']; - kimchi.window.open('report-rename.html'); + wok.window.open('report-rename.html'); } }, { id: reportGridID + '-remove-button', @@ -334,13 +334,13 @@ kimchi.host_main = function() { cancel : i18n['KCHAPI6003M'] }; - kimchi.confirm(settings, function() { + wok.confirm(settings, function() { kimchi.deleteReport({ name: report['name'] }, function(result) { listDebugReports(); }, function(error) { - kimchi.message.error(error.responseJSON.reason); + wok.message.error(error.responseJSON.reason); }); }); } @@ -401,7 +401,7 @@ kimchi.host_main = function() { } kimchi.trackTask(tasks[i].id, function(result) { - kimchi.topic('kimchi/debugReportAdded').publish(); + wok.topic('kimchi/debugReportAdded').publish(); }, function(result) { // Error message from Async Task status if (result['message']) { @@ -411,8 +411,8 @@ kimchi.host_main = function() { else { var errText = result['responseJSON']['reason']; } - result && kimchi.message.error(errText); - kimchi.topic('kimchi/debugReportAdded').publish(); + result && wok.message.error(errText); + wok.topic('kimchi/debugReportAdded').publish(); }, null); } }, null, true); @@ -462,7 +462,7 @@ kimchi.host_main = function() { cancel : i18n['KCHAPI6003M'] }; - kimchi.confirm(settings, function() { + wok.confirm(settings, function() { kimchi.shutdown(params); $(shutdownButtonID).prop('disabled', true); $(restartButtonID).prop('disabled', true); @@ -470,7 +470,7 @@ kimchi.host_main = function() { kimchi.listVMs(function(vms) { for(var i = 0; i < vms.length; i++) { if(vms[i]['state'] === 'running') { - kimchi.message.error.code('KCHHOST6001E'); + wok.message.error.code('KCHHOST6001E'); $(shutdownButtonID).prop('disabled', false); $(restartButtonID).prop('disabled', false); return; @@ -505,37 +505,37 @@ kimchi.host_main = function() { }); var setupUI = function() { - if (kimchi.capabilities == undefined) { + if (wok.capabilities == undefined) { setTimeout(setupUI, 2000); return; } - if((kimchi.capabilities['repo_mngt_tool']) && (kimchi.capabilities['repo_mngt_tool']!="None")) { - initRepositoriesGrid(kimchi.capabilities['repo_mngt_tool']); - $('#repositories-section').switchClass('hidden', kimchi.capabilities['repo_mngt_tool']); - kimchi.topic('kimchi/repositoryAdded') + if((wok.capabilities['repo_mngt_tool']) && (wok.capabilities['repo_mngt_tool']!="None")) { + initRepositoriesGrid(wok.capabilities['repo_mngt_tool']); + $('#repositories-section').switchClass('hidden', wok.capabilities['repo_mngt_tool']); + wok.topic('kimchi/repositoryAdded') .subscribe(listRepositories); - kimchi.topic('kimchi/repositoryUpdated') + wok.topic('kimchi/repositoryUpdated') .subscribe(listRepositories); - kimchi.topic('kimchi/repositoryDeleted') + wok.topic('kimchi/repositoryDeleted') .subscribe(listRepositories); } - if(kimchi.capabilities['update_tool']) { + if(wok.capabilities['update_tool']) { $('#software-update-section').removeClass('hidden'); initSoftwareUpdatesGrid(); - kimchi.topic('kimchi/softwareUpdated') + wok.topic('kimchi/softwareUpdated') .subscribe(listSoftwareUpdates); $('#software-updates-progress-container').accordion({ collapsible: true }); } - if(kimchi.capabilities['system_report_tool']) { + if(wok.capabilities['system_report_tool']) { listDebugReports(); - kimchi.topic('kimchi/debugReportAdded') + wok.topic('kimchi/debugReportAdded') .subscribe(listDebugReports); - kimchi.topic('kimchi/debugReportRenamed') + wok.topic('kimchi/debugReportRenamed') .subscribe(listDebugReports); } }; @@ -545,10 +545,10 @@ kimchi.host_main = function() { kimchi.getHost(function(data) { var htmlTmpl = $('#host-tmpl').html(); data['logo'] = data['logo'] || ''; - data['memory'] = kimchi.formatMeasurement(data['memory'], { + data['memory'] = wok.formatMeasurement(data['memory'], { fixed: 2 }); - var templated = kimchi.substitute(htmlTmpl, data); + var templated = wok.substitute(htmlTmpl, data); $('#host-content-container').html(templated); initPage(); @@ -839,18 +839,18 @@ kimchi.host_main = function() { } repositoriesGrid && repositoriesGrid.destroy(); - kimchi.topic('kimchi/repositoryAdded') + wok.topic('kimchi/repositoryAdded') .unsubscribe(listRepositories); - kimchi.topic('kimchi/repositoryUpdated') + wok.topic('kimchi/repositoryUpdated') .unsubscribe(listRepositories); - kimchi.topic('kimchi/repositoryDeleted') + wok.topic('kimchi/repositoryDeleted') .unsubscribe(listRepositories); softwareUpdatesGrid && softwareUpdatesGrid.destroy(); - kimchi.topic('kimchi/softwareUpdated').unsubscribe(listSoftwareUpdates); + wok.topic('kimchi/softwareUpdated').unsubscribe(listSoftwareUpdates); reportGrid && reportGrid.destroy(); - kimchi.topic('kimchi/debugReportAdded').unsubscribe(listDebugReports); - kimchi.topic('kimchi/debugReportRenamed').unsubscribe(listDebugReports); + wok.topic('kimchi/debugReportAdded').unsubscribe(listDebugReports); + wok.topic('kimchi/debugReportRenamed').unsubscribe(listDebugReports); }); }; diff --git a/plugins/kimchi/ui/js/src/kimchi.line-chart.js b/plugins/kimchi/ui/js/src/kimchi.line-chart.js index d2f40db..46c9833 100644 --- a/plugins/kimchi/ui/js/src/kimchi.line-chart.js +++ b/plugins/kimchi/ui/js/src/kimchi.line-chart.js @@ -109,7 +109,7 @@ kimchi.widget.LineChart = function(params) { var maxValueLabel = i18n['KCHHOST6001M'] + ' ' + (type === 'value' - ? kimchi.formatMeasurement(maxValue, formatSettings) + ? wok.formatMeasurement(maxValue, formatSettings) : '100%'); if(!chartVAxis) { chartVAxis = $('<div class="chart-vaxis-container">' + @@ -182,7 +182,7 @@ kimchi.widget.LineChart = function(params) { var latestPoint = data[i]['points'].slice(-1).pop(); var latestValue = latestPoint['y']; if(type === 'value') { - latestValue = kimchi.formatMeasurement( + latestValue = wok.formatMeasurement( latestValue, formatSettings ); diff --git a/plugins/kimchi/ui/js/src/kimchi.network.js b/plugins/kimchi/ui/js/src/kimchi.network.js index c84bcb0..214e18b 100644 --- a/plugins/kimchi/ui/js/src/kimchi.network.js +++ b/plugins/kimchi/ui/js/src/kimchi.network.js @@ -19,7 +19,7 @@ kimchi.NETWORK_TYPE_BRIDGE = "bridged"; kimchi.initNetwork = function() { - if(kimchi.tabMode['network'] === 'admin') { + if(wok.tabMode['network'] === 'admin') { $('.tools').attr('style','display'); $('#network-content .header span:last-child').attr('style','display'); kimchi.initNetworkCreation(); @@ -52,7 +52,7 @@ kimchi.initNetworkListView = function() { kimchi.addNetworkItem = function(network) { $("#networkBody").append(kimchi.getNetworkItemHtml(network)); - if(kimchi.tabMode["network"] === "admin") { + if(wok.tabMode["network"] === "admin") { $(".column-action").attr("style","display"); } else { $(".column-space").addClass('column-space-no-border-right'); @@ -72,7 +72,7 @@ kimchi.getNetworkItemHtml = function(network) { } var disable_in_use = network.in_use ? "ui-state-disabled" : ""; - var networkItem = kimchi.substitute($('#networkItem').html(), { + var networkItem = wok.substitute($('#networkItem').html(), { name : network.name, state : network.state, type : network.type, @@ -88,7 +88,7 @@ kimchi.getNetworkItemHtml = function(network) { }; kimchi.stopNetwork = function(network,menu) { - $(".network-state", $("#" + kimchi.escapeStr(network.name))).switchClass("up", "nw-loading"); + $(".network-state", $("#" + wok.escapeStr(network.name))).switchClass("up", "nw-loading"); $("[nwAct='stop']", menu).addClass("ui-state-disabled"); kimchi.toggleNetwork(network.name, false, function() { $("[nwAct='start']", menu).removeClass("hide-action-item"); @@ -98,23 +98,23 @@ kimchi.stopNetwork = function(network,menu) { $("[nwAct='delete']", menu).removeClass("ui-state-disabled"); $(":first-child", $("[nwAct='delete']", menu)).removeAttr("disabled"); } - $(".network-state", $("#" + kimchi.escapeStr(network.name))).switchClass("nw-loading", "down"); + $(".network-state", $("#" + wok.escapeStr(network.name))).switchClass("nw-loading", "down"); }, function(err) { - $(".network-state", $("#" + kimchi.escapeStr(network.name))).switchClass("nw-loading", "up"); + $(".network-state", $("#" + wok.escapeStr(network.name))).switchClass("nw-loading", "up"); if (!network.in_use) { $("[nwAct='stop']", menu).removeClass("ui-state-disabled"); } - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); } kimchi.addNetworkActions = function(network) { - $(".menu-container", "#" + kimchi.escapeStr(network.name)).menu(); + $(".menu-container", "#" + wok.escapeStr(network.name)).menu(); - $('#' + kimchi.escapeStr(network.name)).on('click', '.menu-container li', function(evt) { + $('#' + wok.escapeStr(network.name)).on('click', '.menu-container li', function(evt) { var menu = $(evt.currentTarget).parent(); if ($(evt.currentTarget).attr("nwAct") === "start") { - $(".network-state", $("#" + kimchi.escapeStr(network.name))).switchClass("down", "nw-loading"); + $(".network-state", $("#" + wok.escapeStr(network.name))).switchClass("down", "nw-loading"); $("[nwAct='start']", menu).addClass("ui-state-disabled"); $("[nwAct='delete']", menu).addClass("ui-state-disabled"); $(":first-child", $("[nwAct='delete']", menu)).attr("disabled", true); @@ -126,15 +126,15 @@ kimchi.addNetworkActions = function(network) { if (network.in_use) { $("[nwAct='stop']", menu).addClass("ui-state-disabled"); } - $(".network-state", $("#" + kimchi.escapeStr(network.name))).switchClass("nw-loading", "up"); + $(".network-state", $("#" + wok.escapeStr(network.name))).switchClass("nw-loading", "up"); }, function(err) { - $(".network-state", $("#" + kimchi.escapeStr(network.name))).switchClass("nw-loading","down"); + $(".network-state", $("#" + wok.escapeStr(network.name))).switchClass("nw-loading","down"); $("[nwAct='start']", menu).removeClass("ui-state-disabled"); if (!network.in_use) { $("[nwAct='delete']", menu).removeClass("ui-state-disabled"); } $(":first-child", $("[nwAct='delete']", menu)).removeAttr("disabled"); - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); } else if ($(evt.currentTarget).attr("nwAct") === "stop") { if (network.in_use) { @@ -147,7 +147,7 @@ kimchi.addNetworkActions = function(network) { confirm : i18n['KCHAPI6002M'], cancel : i18n['KCHAPI6003M'] }; - kimchi.confirm(settings, function() { + wok.confirm(settings, function() { kimchi.stopNetwork(network, menu); $(evt.currentTarget).parents(".item").remove(); }, null); @@ -160,7 +160,7 @@ kimchi.addNetworkActions = function(network) { if (network.state === "up" || network.in_use) { return false; } - kimchi.confirm({ + wok.confirm({ title : i18n['KCHAPI6006M'], content : i18n['KCHNET6002M'], confirm : i18n['KCHAPI6002M'], @@ -200,7 +200,7 @@ kimchi.initNetworkCreation = function() { if ($("#enableVlan").prop("checked")) { data.vlan_id = network.vlan_id; if (!(data.vlan_id >=1 && data.vlan_id <= 4094)) { - kimchi.message.error.code('KCHNET6001E'); + wok.message.error.code('KCHNET6001E'); errorCallback(); return; } @@ -214,7 +214,7 @@ kimchi.initNetworkCreation = function() { kimchi.addNetworkItem(network); $("#networkConfig").dialog("close"); }, function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); errorCallback(); }); }); @@ -324,7 +324,7 @@ kimchi.setDefaultNetworkType = function(isInterfaceAvail) { $("#networkBriDisabledLabel").show(); } else { if (kimchi.capabilities && kimchi.capabilities.nm_running) { - kimchi.message.warn(i18n['KCHNET6001W']); + wok.message.warn(i18n['KCHNET6001W']); } $("#bridgeOptions").slideDown(100); $("#networkVlanID").toggle(false); diff --git a/plugins/kimchi/ui/js/src/kimchi.report_add_main.js b/plugins/kimchi/ui/js/src/kimchi.report_add_main.js index 9a7df2c..5f098d3 100644 --- a/plugins/kimchi/ui/js/src/kimchi.report_add_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.report_add_main.js @@ -29,7 +29,7 @@ kimchi.report_add_main = function() { var reportName = nameTextbox.val(); var validator = RegExp("^[_A-Za-z0-9-]*$"); if (!validator.test(reportName)) { - kimchi.message.error.code('KCHDR6011M'); + wok.message.error.code('KCHDR6011M'); return false; } var formData = addReportForm.serializeObject(); @@ -39,13 +39,13 @@ kimchi.report_add_main = function() { return; } taskAccepted = true; - kimchi.window.close(); - kimchi.topic('kimchi/debugReportAdded').publish(); + wok.window.close(); + wok.topic('kimchi/debugReportAdded').publish(); }; kimchi.createReport(formData, function(result) { onTaskAccepted(); - kimchi.topic('kimchi/debugReportAdded').publish(); + wok.topic('kimchi/debugReportAdded').publish(); }, function(result) { // Error message from Async Task status if (result['message']) { @@ -55,7 +55,7 @@ kimchi.report_add_main = function() { else { var errText = result['responseJSON']['reason']; } - result && kimchi.message.error(errText); + result && wok.message.error(errText); taskAccepted && $('.grid-body-view table tr:first-child', diff --git a/plugins/kimchi/ui/js/src/kimchi.report_rename_main.js b/plugins/kimchi/ui/js/src/kimchi.report_rename_main.js index 6ee56d9..1bdb8d9 100644 --- a/plugins/kimchi/ui/js/src/kimchi.report_rename_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.report_rename_main.js @@ -28,13 +28,13 @@ kimchi.report_rename_main = function() { // if the user hasn't changed the report's name, // nothing should be done. if (reportName == kimchi.selectedReport) { - kimchi.message.error.code('KCHDR6013M'); + wok.message.error.code('KCHDR6013M'); return false; } var validator = RegExp("^[A-Za-z0-9-]*$"); if (!validator.test(reportName)) { - kimchi.message.error.code('KCHDR6011M'); + wok.message.error.code('KCHDR6011M'); return false; } var formData = renameReportForm.serializeObject(); @@ -43,15 +43,15 @@ kimchi.report_rename_main = function() { kimchi.renameReport(kimchi.selectedReport, formData, function(result) { submitButton.prop('disabled', false); nameTextbox.prop('disabled', false); - kimchi.window.close(); - kimchi.topic('kimchi/debugReportRenamed').publish({ + wok.window.close(); + wok.topic('kimchi/debugReportRenamed').publish({ result: result }); }, function(result) { var errText = result && result['responseJSON'] && result['responseJSON']['reason']; - kimchi.message.error(errText); + wok.message.error(errText); submitButton.prop('disabled', false); nameTextbox.prop('disabled', false).focus(); }); diff --git a/plugins/kimchi/ui/js/src/kimchi.repository_add_main.js b/plugins/kimchi/ui/js/src/kimchi.repository_add_main.js index 2a277fd..656306b 100644 --- a/plugins/kimchi/ui/js/src/kimchi.repository_add_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.repository_add_main.js @@ -81,13 +81,13 @@ kimchi.repository_add_main = function() { } kimchi.createRepository(formData, function() { - kimchi.topic('kimchi/repositoryAdded').publish(); - kimchi.window.close(); + wok.topic('kimchi/repositoryAdded').publish(); + wok.window.close(); }, function(jqXHR, textStatus, errorThrown) { var reason = jqXHR && jqXHR['responseJSON'] && jqXHR['responseJSON']['reason']; - kimchi.message.error(reason); + wok.message.error(reason); }); return false; }; diff --git a/plugins/kimchi/ui/js/src/kimchi.repository_edit_main.js b/plugins/kimchi/ui/js/src/kimchi.repository_edit_main.js index a9a0ca6..85e24d4 100644 --- a/plugins/kimchi/ui/js/src/kimchi.repository_edit_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.repository_edit_main.js @@ -21,10 +21,10 @@ kimchi.repository_edit_main = function() { var saveButton = $('#repository-edit-button-save'); - if(kimchi.capabilities['repo_mngt_tool']=="yum") { + if(wok.capabilities['repo_mngt_tool']=="yum") { editForm.find('input.deb').prop('disabled', true); } - else if(kimchi.capabilities['repo_mngt_tool']=="deb") { + else if(wok.capabilities['repo_mngt_tool']=="deb") { editForm.find('input.yum').prop('disabled', true); } @@ -57,13 +57,13 @@ kimchi.repository_edit_main = function() { } kimchi.updateRepository(kimchi.selectedRepository, formData, function() { - kimchi.topic('kimchi/repositoryUpdated').publish(); - kimchi.window.close(); + wok.topic('kimchi/repositoryUpdated').publish(); + wok.window.close(); }, function(jqXHR, textStatus, errorThrown) { var reason = jqXHR && jqXHR['responseJSON'] && jqXHR['responseJSON']['reason']; - kimchi.message.error(reason); + wok.message.error(reason); }); return false; diff --git a/plugins/kimchi/ui/js/src/kimchi.storage_main.js b/plugins/kimchi/ui/js/src/kimchi.storage_main.js index 963bc10..1238c5f 100644 --- a/plugins/kimchi/ui/js/src/kimchi.storage_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.storage_main.js @@ -22,15 +22,15 @@ kimchi.doListStoragePools = function() { var listHtml = ''; $.each(result, function(index, value) { value.usage = Math.round(value.allocated / value.capacity * 100) || 0; - value.capacity = kimchi.changetoProperUnit(value.capacity,1); - value.allocated = kimchi.changetoProperUnit(value.allocated,1); + value.capacity = wok.changetoProperUnit(value.capacity,1); + value.allocated = wok.changetoProperUnit(value.allocated,1); value.enableExt = value.type==="logical" ? "" : "hide-content"; if ('kimchi-iso' !== value.type) { - listHtml += kimchi.substitute(storageHtml, value); + listHtml += wok.substitute(storageHtml, value); } }); $('#storagepoolsList').html(listHtml); - if(kimchi.tabMode['storage'] === 'admin') { + if(wok.tabMode['storage'] === 'admin') { $('.storage-button').attr('style','display'); } else { $('.storage-allocate').addClass('storage-allocate-padding-user'); @@ -40,7 +40,7 @@ kimchi.doListStoragePools = function() { $('#storagepoolsList').html(''); } }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); } @@ -91,7 +91,7 @@ kimchi.storageBindClick = function() { } }); - if(kimchi.tabMode['storage'] === 'admin') { + if(wok.tabMode['storage'] === 'admin') { $('.pool-delete').on('click', function(event) { var $pool = $(this); var settings = { @@ -100,12 +100,12 @@ kimchi.storageBindClick = function() { confirm : i18n['KCHAPI6002M'], cancel : i18n['KCHAPI6003M'] }; - kimchi.confirm(settings, function() { + wok.confirm(settings, function() { var poolName = $pool.data('name'); kimchi.deleteStoragePool(poolName, function() { kimchi.doListStoragePools(); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); }); }); @@ -115,7 +115,7 @@ kimchi.storageBindClick = function() { kimchi.changePoolState(poolName, 'activate', function() { kimchi.doListStoragePools(); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); }); @@ -128,11 +128,11 @@ kimchi.storageBindClick = function() { cancel : i18n['KCHAPI6003M'] }; if (!$(this).data('persistent')) { - kimchi.confirm(settings, function() { + wok.confirm(settings, function() { kimchi.changePoolState(poolName, 'deactivate', function() { kimchi.doListStoragePools(); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); }, function() { return false; @@ -142,7 +142,7 @@ kimchi.storageBindClick = function() { kimchi.changePoolState(poolName, 'deactivate', function() { kimchi.doListStoragePools(); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); } }); @@ -150,7 +150,7 @@ kimchi.storageBindClick = function() { $('.pool-add-volume').on('click', function(event) { var poolName = $(this).data('name'); kimchi.selectedSP = poolName; - kimchi.window.open('storagepool-add-volume.html'); + wok.window.open('storagepool-add-volume.html'); }); $('.storage-action').on('click', function() { @@ -192,9 +192,9 @@ kimchi._generateVolumeHTML = function(volume) { return ''; } var volumeHtml = $('#volumeTmpl').html(); - volume.capacity = kimchi.changetoProperUnit(volume.capacity,1); - volume.allocation = kimchi.changetoProperUnit(volume.allocation,1); - return kimchi.substitute(volumeHtml, volume); + volume.capacity = wok.changetoProperUnit(volume.capacity,1); + volume.allocation = wok.changetoProperUnit(volume.allocation,1); + return wok.substitute(volumeHtml, volume); }; kimchi.doListVolumes = function(poolObj) { @@ -213,11 +213,11 @@ kimchi.doListVolumes = function(poolObj) { } kimchi.trackTask(tasks[i].id, function(result) { - kimchi.topic('kimchi/volumeTransferFinished').publish(result); + wok.topic('kimchi/volumeTransferFinished').publish(result); }, function(result) { - kimchi.topic('kimchi/volumeTransferError').publish(result); + wok.topic('kimchi/volumeTransferError').publish(result); }, function(result) { - kimchi.topic('kimchi/volumeTransferProgress').publish(result); + wok.topic('kimchi/volumeTransferProgress').publish(result); }); } }, null, true); @@ -265,14 +265,14 @@ kimchi.doListVolumes = function(poolObj) { } $.each(ongoingVolumesMap, function(volumeName, task) { - kimchi.topic('kimchi/volumeTransferProgress').publish(task); + wok.topic('kimchi/volumeTransferProgress').publish(task); }); poolObj.removeClass('in'); kimchi.changeArrow(handleArrow); slide.slideDown('slow'); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); } @@ -291,7 +291,7 @@ kimchi.initLogicalPoolExtend = function() { if (data.length > 0) { for(var i=0;i<data.length;i++){ if (data[i].type === 'part' || data[i].type === 'disk') { - $('.host-partition', '#logicalPoolExtend').append(kimchi.substitute($('#logicalPoolExtendTmpl').html(), data[i])); + $('.host-partition', '#logicalPoolExtend').append(wok.substitute($('#logicalPoolExtendTmpl').html(), data[i])); } } } else { @@ -316,8 +316,8 @@ kimchi.initLogicalPoolExtend = function() { kimchi.updateStoragePool($("#logicalPoolExtend").dialog("option", "poolName"),{disks: devicePaths},function(data){ var item = $("#"+$("#logicalPoolExtend").dialog("option", "poolName")); $(".usage", $(".storage-name", item)).text((Math.round(data.allocated/data.capacity*100)||0)+"%"); - $(".storage-text", $(".storage-capacity", item)).text(kimchi.changetoProperUnit(data.capacity,1)); - $(".storage-text", $(".storage-allocate", item)).text(kimchi.changetoProperUnit(data.allocated,1)); + $(".storage-text", $(".storage-capacity", item)).text(wok.changetoProperUnit(data.capacity,1)); + $(".storage-text", $(".storage-allocate", item)).text(wok.changetoProperUnit(data.allocated,1)); }); $(this).dialog("close"); } @@ -326,23 +326,23 @@ kimchi.initLogicalPoolExtend = function() { } kimchi.storage_main = function() { - if(kimchi.tabMode['storage'] === 'admin') { + if(wok.tabMode['storage'] === 'admin') { $('.tools').attr('style','display'); $('#storage-pool-add').on('click', function() { - kimchi.window.open('storagepool-add.html'); + wok.window.open('storagepool-add.html'); }); $('.list-title .title-actions').attr('style','display'); } kimchi.doListStoragePools(); kimchi.initLogicalPoolExtend(); - kimchi.topic('kimchi/storageVolumeAdded').subscribe(function() { + wok.topic('kimchi/storageVolumeAdded').subscribe(function() { pool = kimchi.selectedSP; var poolNode = $('.storage-li[data-name="' + pool + '"]'); kimchi.doListVolumes(poolNode); }); - kimchi.topic('kimchi/volumeTransferProgress').subscribe(function(result) { + wok.topic('kimchi/volumeTransferProgress').subscribe(function(result) { var extractProgressData = function(data) { var sizeArray = /(\d+)\/(\d+)/g.exec(data) || [0, 0, 0]; var downloaded = sizeArray[1]; @@ -353,7 +353,7 @@ kimchi.storage_main = function() { percent = downloaded / total * 100; } } - var formatted = kimchi.formatMeasurement(downloaded); + var formatted = wok.formatMeasurement(downloaded); var size = (1.0 * formatted['v']).toFixed(1) + formatted['s']; return { size: size, @@ -377,7 +377,7 @@ kimchi.storage_main = function() { $('.progress-status', volumeBox).text(i18n['KCHPOOL6014M']); }); - kimchi.topic('kimchi/volumeTransferFinished').subscribe(function(result) { + wok.topic('kimchi/volumeTransferFinished').subscribe(function(result) { var uriElements = result.target_uri.split('/'); var poolName = uriElements[2]; var volumeName = uriElements.pop(); @@ -387,11 +387,11 @@ kimchi.storage_main = function() { var html = kimchi._generateVolumeHTML(volume); $(volumeBox).replaceWith(html); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); }); - kimchi.topic('kimchi/volumeTransferError').subscribe(function(result) { + wok.topic('kimchi/volumeTransferError').subscribe(function(result) { // Error message from Async Task status if (result['message']) { var errText = result['message']; @@ -400,7 +400,7 @@ kimchi.storage_main = function() { else { var errText = result['responseJSON']['reason']; } - result && kimchi.message.error(errText); + result && wok.message.error(errText); var uriElements = result.target_uri.split('/'); var poolName = uriElements[2]; diff --git a/plugins/kimchi/ui/js/src/kimchi.storagepool_add_main.js b/plugins/kimchi/ui/js/src/kimchi.storagepool_add_main.js index e33a299..91026ca 100644 --- a/plugins/kimchi/ui/js/src/kimchi.storagepool_add_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.storagepool_add_main.js @@ -80,7 +80,7 @@ kimchi.setupISCSI = function(){ }, function(data){ $('input', "#iSCSITarget").attr("placeholder", i18n['KCHPOOL6008M']); callback(); - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); }); }; var triggerLoadTarget = function(){ @@ -129,7 +129,7 @@ kimchi.initStorageAddPage = function() { valid_types = ['part', 'disk', 'mpath']; $.each(data, function(index, value) { if (valid_types.indexOf(value.type) != -1) { - listHtml += kimchi.substitute(deviceHtml, value); + listHtml += wok.substitute(deviceHtml, value); } }); $('.host-partition', '#form-pool-add').html(listHtml); @@ -199,7 +199,7 @@ kimchi.initStorageAddPage = function() { } }); $('#nfsserverId').on("change keyup",function() { - if ($(this).val() !== '' && kimchi.isServer($(this).val())) { + if ($(this).val() !== '' && wok.isServer($(this).val())) { $('#nfspathId').prop('disabled',false); $(this).removeClass("invalid-field"); } else { @@ -248,9 +248,9 @@ kimchi.initStorageAddPage = function() { $(this).toggleClass("invalid-field",!/^[0-9]*$/.test($(this).val())); }); $('#iscsiserverId').keyup(function(event) { - $(this).toggleClass("invalid-field",!kimchi.isServer($(this).val().trim())); + $(this).toggleClass("invalid-field",!wok.isServer($(this).val().trim())); }).change(function(event) { - $(this).toggleClass("invalid-field",!kimchi.isServer($(this).val().trim())); + $(this).toggleClass("invalid-field",!wok.isServer($(this).val().trim())); }); kimchi.setupISCSI(); }; @@ -299,7 +299,7 @@ kimchi.validateForm = function() { kimchi.validateDirForm = function () { var path = $('#pathId').val(); if (!/(^\/.*)$/.test(path)) { - kimchi.message.error.code('KCHAPI6003E'); + wok.message.error.code('KCHAPI6003E'); return false; } return true; @@ -312,7 +312,7 @@ kimchi.validateNfsForm = function () { return false; } if (!/((\/([0-9a-zA-Z-_\.]+)))$/.test(nfspath)) { - kimchi.message.error.code('KCHPOOL6005E'); + wok.message.error.code('KCHPOOL6005E'); return false; } $('#nfs-mount-loading').removeClass('hidden'); @@ -329,8 +329,8 @@ kimchi.validateIscsiForm = function() { }; kimchi.validateServer = function(serverField) { - if(!kimchi.isServer(serverField)) { - kimchi.message.error.code('KCHPOOL6009E'); + if(!wok.isServer(serverField)) { + wok.message.error.code('KCHPOOL6009E'); return false; } return true; @@ -338,7 +338,7 @@ kimchi.validateServer = function(serverField) { kimchi.validateLogicalForm = function () { if ($("input[name=devices]:checked").length === 0) { - kimchi.message.error.code('KCHPOOL6006E'); + wok.message.error.code('KCHPOOL6006E'); return false; } else { return true; @@ -389,9 +389,9 @@ kimchi.addPool = function(event) { $('#pool-loading').show(); kimchi.createStoragePool(formData, function() { kimchi.doListStoragePools(); - kimchi.window.close(); + wok.window.close(); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); $('input', '#form-pool-add').removeAttr('disabled'); $('#pool-loading').hide(); $('#pool-doAdd').show(); @@ -404,7 +404,7 @@ kimchi.addPool = function(event) { confirm : i18n['KCHAPI6002M'], cancel : i18n['KCHAPI6003M'] }; - kimchi.confirm(settings, function() { + wok.confirm(settings, function() { storagePoolAddingFunc(); }, function() { }); diff --git a/plugins/kimchi/ui/js/src/kimchi.storagepool_add_volume_main.js b/plugins/kimchi/ui/js/src/kimchi.storagepool_add_volume_main.js index c56f68c..8479ab2 100644 --- a/plugins/kimchi/ui/js/src/kimchi.storagepool_add_volume_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.storagepool_add_volume_main.js @@ -63,7 +63,7 @@ kimchi.sp_add_volume_main = function() { var msg = result['message'] || ( result['responseJSON'] && result['responseJSON']['reason'] ); - kimchi.message.error(msg); + wok.message.error(msg); }; var fetchRemoteFile = function() { @@ -73,8 +73,8 @@ kimchi.sp_add_volume_main = function() { sp: kimchi.selectedSP, url: volumeURL }, function(result) { - kimchi.window.close(); - kimchi.topic('kimchi/storageVolumeAdded').publish(); + wok.window.close(); + wok.topic('kimchi/storageVolumeAdded').publish(); }, onError); }; @@ -91,7 +91,7 @@ kimchi.sp_add_volume_main = function() { capacity: blobFile.size, upload: true }, function(result) { - kimchi.window.close(); + wok.window.close(); trackVolCreation(result.id); }, onError); }; @@ -117,14 +117,14 @@ kimchi.sp_add_volume_main = function() { var reader = new FileReader(); reader.onloadend = function(e) { if (e.loaded == 0) - kimchi.message.error.code('KCHAPI6008E'); + wok.message.error.code('KCHAPI6008E'); else createUploadVol(); }; reader.readAsBinaryString(blob); } catch (err) { - kimchi.message.error.code('KCHAPI6008E'); + wok.message.error.code('KCHAPI6008E'); return; } @@ -134,14 +134,14 @@ kimchi.sp_add_volume_main = function() { var reader = new FileReader(); reader.onloadend = function(e) { if (e.loaded == 0) - kimchi.message.error.code('KCHAPI6009E'); + wok.message.error.code('KCHAPI6009E'); else uploadRequest(blob); }; reader.readAsBinaryString(blob); } catch (err) { - kimchi.message.error.code('KCHAPI6009E'); + wok.message.error.code('KCHAPI6009E'); return; } } @@ -156,7 +156,7 @@ kimchi.sp_add_volume_main = function() { trackVolCreation(taskid); }, 2000); } else { - kimchi.topic('kimchi/storageVolumeAdded').publish(); + wok.topic('kimchi/storageVolumeAdded').publish(); doUpload(); } } diff --git a/plugins/kimchi/ui/js/src/kimchi.template_add_main.js b/plugins/kimchi/ui/js/src/kimchi.template_add_main.js index e449212..5528eb2 100644 --- a/plugins/kimchi/ui/js/src/kimchi.template_add_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.template_add_main.js @@ -56,7 +56,7 @@ kimchi.template_add_main = function() { $('#iso-search').show(); } }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); }); @@ -71,7 +71,7 @@ kimchi.template_add_main = function() { var settings = { content : i18n['KCHTMPL6002M'] }; - kimchi.confirm(settings, function() { + wok.confirm(settings, function() { $('#iso-search').hide(); $('#iso-search-loading').show(); deepScan('#iso-search'); @@ -82,7 +82,7 @@ kimchi.template_add_main = function() { var settings = { content : i18n['KCHTMPL6002M'] }; - kimchi.confirm(settings, function() { + wok.confirm(settings, function() { $('#iso-more').hide(); $('#iso-more-loading').show(); deepScan('#iso-more'); @@ -116,7 +116,7 @@ kimchi.template_add_main = function() { showLocalIsoField(isos); } else { if (isFinished) { - kimchi.message.warn(i18n['KCHTMPL6001W']); + wok.message.warn(i18n['KCHTMPL6001W']); } } if (isFinished) { @@ -124,7 +124,7 @@ kimchi.template_add_main = function() { $(button).show(); } }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); $(button + '-loading').hide(); $(button).show(); }); @@ -150,9 +150,9 @@ kimchi.template_add_main = function() { var isoId = volume.os_distro + '*' + volume.name + '*' + volume.os_version; if (!kimchi.isoInfo[isoId]) { volume.isoId = isoId; - volume.capacity = kimchi.changetoProperUnit(volume.capacity, 1); + volume.capacity = wok.changetoProperUnit(volume.capacity, 1); kimchi.isoInfo[isoId] = volume; - html += kimchi.substitute(template, volume); + html += wok.substitute(template, volume); } }); $('#list-local-iso').append(html); @@ -211,7 +211,7 @@ kimchi.template_add_main = function() { $('#btn-template-file-create').click(function() { var isoFile = $('#iso-file').val(); if (!kimchi.template_check_path(isoFile)) { - kimchi.message.error.code('KCHAPI6003E'); + wok.message.error.code('KCHAPI6003E'); return; } var data = { @@ -224,12 +224,12 @@ kimchi.template_add_main = function() { $('#iso-remote').css('opacity', 0.3).css('cursor', 'not-allowed'); var enabledRemoteIso = function() { - if (kimchi.capabilities == undefined) { + if (wok.capabilities == undefined) { setTimeout(enabledRemoteIso, 2000); return; } - if (kimchi.capabilities.qemu_stream != true) { + if (wok.capabilities.qemu_stream != true) { return; } @@ -269,7 +269,7 @@ kimchi.template_add_main = function() { if (!kimchi.isoInfo[isoId]) { volume.isoId = isoId; kimchi.isoInfo[isoId] = volume; - html += kimchi.substitute(template, volume); + html += wok.substitute(template, volume); } }); $('#list-remote-iso').html(html); @@ -279,7 +279,7 @@ kimchi.template_add_main = function() { } else { $('#load-remote-iso').hide() $('#iso-url-field').show(); - kimchi.message.warn(i18n['KCHTMPL6001W']); + wok.message.warn(i18n['KCHTMPL6001W']); } }; @@ -365,7 +365,7 @@ kimchi.template_add_main = function() { $('#btn-template-url-create').click(function() { var isoUrl = $('#iso-url').val(); if (!kimchi.template_check_url(isoUrl)) { - kimchi.message.error.code('KCHAPI6004E'); + wok.message.error.code('KCHAPI6004E'); return; } var data = { @@ -379,11 +379,11 @@ kimchi.template_add_main = function() { kimchi.createTemplate(data, function() { if(callback) callback(); kimchi.doListTemplates(); - kimchi.window.close(); - kimchi.topic('templateCreated').publish(); + wok.window.close(); + wok.topic('templateCreated').publish(); }, function(err) { if(callback) callback(); - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); }; @@ -403,12 +403,12 @@ kimchi.template_add_main = function() { $('input[value="' + isoInfo.isoId + '"]').prop('checked', false); $('.check-all>input').prop('checked', false); kimchi.doListTemplates(); - kimchi.topic('templateCreated').publish(data); + wok.topic('templateCreated').publish(data); if (successNum === length) { - kimchi.window.close(); + wok.window.close(); } }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); }; if (formData.iso instanceof Array) { diff --git a/plugins/kimchi/ui/js/src/kimchi.template_edit_main.js b/plugins/kimchi/ui/js/src/kimchi.template_edit_main.js index 21f5575..d336729 100644 --- a/plugins/kimchi/ui/js/src/kimchi.template_edit_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.template_edit_main.js @@ -49,11 +49,11 @@ kimchi.template_edit_main = function() { $('#template-edit-graphics').append('<option>Spice</option>'); kimchi.select('template-edit-graphics-list', vncOpt); var enableSpice = function() { - if (kimchi.capabilities == undefined) { + if (wok.capabilities == undefined) { setTimeout(enableSpice, 2000); return; } - if (kimchi.capabilities.qemu_spice == true) { + if (wok.capabilities.qemu_spice == true) { spiceOpt = [{label: 'Spice', value: 'spice'}] kimchi.select('template-edit-graphics-list', spiceOpt); } @@ -63,7 +63,7 @@ kimchi.template_edit_main = function() { var scsipools = {}; var addStorageItem = function(storageData) { var thisName = storageData.storageName; - var nodeStorage = $.parseHTML(kimchi.substitute($('#template-storage-pool-tmpl').html(), storageData)); + var nodeStorage = $.parseHTML(wok.substitute($('#template-storage-pool-tmpl').html(), storageData)); $('.template-tab-body', '#form-template-storage').append(nodeStorage); var storageOptions = ''; var scsiOptions = ''; @@ -185,7 +185,7 @@ kimchi.template_edit_main = function() { var networkItemNum = 0; var addInterfaceItem = function(networkData) { var networkName = networkData.networkV; - var nodeInterface = $.parseHTML(kimchi.substitute($('#template-interface-tmpl').html(), networkData)); + var nodeInterface = $.parseHTML(wok.substitute($('#template-interface-tmpl').html(), networkData)); $('.template-tab-body', '#form-template-interface').append(nodeInterface); $('.delete', '#form-template-interface').button({ icons : {primary : 'ui-icon-trash'}, @@ -335,9 +335,9 @@ kimchi.template_edit_main = function() { kimchi.updateTemplate($('#template-name').val(), data, function() { kimchi.doListTemplates(); - kimchi.window.close(); + wok.window.close(); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); }); }; diff --git a/plugins/kimchi/ui/js/src/kimchi.template_main.js b/plugins/kimchi/ui/js/src/kimchi.template_main.js index 775cb0b..5d474bd 100644 --- a/plugins/kimchi/ui/js/src/kimchi.template_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.template_main.js @@ -38,7 +38,7 @@ kimchi.doListTemplates = function() { }else{ value.location = "images/theme-default/icon-remote.png"; } - listHtml += kimchi.substitute(templateHtml, value); + listHtml += wok.substitute(templateHtml, value); }); $('#templateList').html(listHtml); kimchi.templateBindClick(); @@ -48,7 +48,7 @@ kimchi.doListTemplates = function() { } $('html').removeClass('processing'); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); $('html').removeClass('processing'); }); }; @@ -57,7 +57,7 @@ kimchi.templateBindClick = function() { $('.template-edit').on('click', function(event) { var templateName = $(this).data('template'); kimchi.selectedTemplate = templateName; - kimchi.window.open("template-edit.html"); + wok.window.open("template-edit.html"); }); $('.template-clone').on('click', function(event) { kimchi.selectedTemplate = $(this).data('template'); @@ -65,7 +65,7 @@ kimchi.templateBindClick = function() { kimchi.cloneTemplate(kimchi.selectedTemplate, function() { kimchi.doListTemplates(); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); kimchi.doListTemplates(); }); }); @@ -77,12 +77,12 @@ kimchi.templateBindClick = function() { confirm : i18n['KCHAPI6002M'], cancel : i18n['KCHAPI6003M'] }; - kimchi.confirm(settings, function() { + wok.confirm(settings, function() { var templateName = $template.data('template'); kimchi.deleteTemplate(templateName, function() { kimchi.doListTemplates(); }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); }, function() { }); @@ -93,10 +93,10 @@ kimchi.hideTitle = function() { }; kimchi.template_main = function() { - if(kimchi.tabMode['templates'] === 'admin') { + if(wok.tabMode['templates'] === 'admin') { $('.tools').attr('style','display'); $("#template-add").on("click", function(event) { - kimchi.window.open({ + wok.window.open({ url: 'template-add.html', close: function() { if (kimchi.deepScanHandler) { diff --git a/plugins/kimchi/ui/spice-html5/pages/spice_auto.html b/plugins/kimchi/ui/spice-html5/pages/spice_auto.html index 40afea4..c87f5c2 100644 --- a/plugins/kimchi/ui/spice-html5/pages/spice_auto.html +++ b/plugins/kimchi/ui/spice-html5/pages/spice_auto.html @@ -140,7 +140,7 @@ * * 'uri = scheme + host + ":" + port;' * - * to point Kimchi user to a specific console represented by + * to point wok.user to a specific console represented by * token value. */ uri = scheme + host + ":" + port + "/?token=" + token; diff --git a/plugins/sample/API.json b/plugins/sample/API.json index ebc596b..6ee7d91 100644 --- a/plugins/sample/API.json +++ b/plugins/sample/API.json @@ -1,7 +1,7 @@ { "$schema": "http://json-schema.org/draft-03/schema#", "title": "Plugin Sample API", - "description": "Json schema for Kimchi's Sample Plugin API", + "description": "Json schema for Wok's Sample Plugin API", "type": "object", "error": "SPAPI0001E", "properties": { diff --git a/plugins/sample/__init__.py b/plugins/sample/__init__.py index d741ddb..786832f 100644 --- a/plugins/sample/__init__.py +++ b/plugins/sample/__init__.py @@ -48,7 +48,7 @@ class Drawings(Root): @expose def index(self): - return 'This is a sample plugin for Kimchi' + return 'This is a sample plugin for Wok' class Description(Resource): diff --git a/plugins/sample/sample.conf.in b/plugins/sample/sample.conf.in index 28ae891..9da33e1 100644 --- a/plugins/sample/sample.conf.in +++ b/plugins/sample/sample.conf.in @@ -1,4 +1,4 @@ -[kimchi] +[wok] enable = @ENABLE_SAMPLE@ plugin_class = "Drawings" uri = "/plugins/sample" @@ -7,19 +7,19 @@ uri = "/plugins/sample" tools.nocache.on = True tools.trailing_slash.on = False tools.sessions.on = True -tools.sessions.name = 'kimchi' +tools.sessions.name = 'wok' tools.sessions.httponly = True tools.sessions.locking = 'explicit' tools.sessions.storage_type = 'ram' [/description] -tools.kimchiauth.on = True +tools.wokauth.on = True [/rectangles] -tools.kimchiauth.on = True +tools.wokauth.on = True [/circles] -tools.kimchiauth.on = True +tools.wokauth.on = True [/help] tools.staticdir.on = True diff --git a/plugins/sample/ui/js/util.js b/plugins/sample/ui/js/util.js index 157ddde..1e6c4df 100644 --- a/plugins/sample/ui/js/util.js +++ b/plugins/sample/ui/js/util.js @@ -19,7 +19,7 @@ sample = {}; sample.description = function(suc, err){ - kimchi.requestJSON({ + wok.requestJSON({ url : kimchi.url + 'plugins/sample/description', type : 'GET', contentType : 'application/json', @@ -27,7 +27,7 @@ sample.description = function(suc, err){ resend : true, success : suc, error : err || function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); } }); }; diff --git a/plugins/sample/ui/pages/help/en_US/sample-tab1.html b/plugins/sample/ui/pages/help/en_US/sample-tab1.html index 70aa1c0..7122124 100644 --- a/plugins/sample/ui/pages/help/en_US/sample-tab1.html +++ b/plugins/sample/ui/pages/help/en_US/sample-tab1.html @@ -1 +1 @@ -Help page for TAB 1 of Kimchi's Sample plugin. +Help page for TAB 1 of Wok's Sample plugin. diff --git a/plugins/sample/ui/pages/help/en_US/sample-tab2.html b/plugins/sample/ui/pages/help/en_US/sample-tab2.html index 367318f..1bfe448 100644 --- a/plugins/sample/ui/pages/help/en_US/sample-tab2.html +++ b/plugins/sample/ui/pages/help/en_US/sample-tab2.html @@ -1 +1 @@ -Help page for TAB 2 of Kimchi's Sample plugin. +Help page for TAB 2 of Wok's Sample plugin. diff --git a/src/nginx/wok.conf.in b/src/nginx/wok.conf.in index b0faea3..ce99115 100644 --- a/src/nginx/wok.conf.in +++ b/src/nginx/wok.conf.in @@ -18,7 +18,7 @@ # 02110-1301 USA # This is a template file to be used to generate a nginx -# proxy config file at kimchid script. +# proxy config file at wokd script. user ${user}; worker_processes 1; @@ -41,7 +41,7 @@ http { client_max_body_size ${max_body_size}k; # Timeout set to 10 minutes to avoid the 504 Gateway Timeout - # when Kimchi is processing a request. + # when Wok is processing a request. proxy_connect_timeout 600; proxy_send_timeout 600; proxy_read_timeout 600; @@ -63,11 +63,11 @@ http { add_header X-XSS-Protection "1; mode=block"; location / { - proxy_pass http://127.0.0.1:${kimchid_port}; + proxy_pass http://127.0.0.1:${wokd_port}; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_redirect http://127.0.0.1:${kimchid_port}/ https://$host:${proxy_ssl_port}/; + proxy_redirect http://127.0.0.1:${wokd_port}/ https://$host:${proxy_ssl_port}/; } } diff --git a/src/wok.conf.in b/src/wok.conf.in index cd141f5..60d826f 100644 --- a/src/wok.conf.in +++ b/src/wok.conf.in @@ -1,5 +1,5 @@ # -# Configuration file for Kimchi Web Server +# Configuration file for Wok Web Server # [server] @@ -16,17 +16,17 @@ #cherrypy_port = 8010 # The full path to an SSL Certificate in PEM format. If left unspecified, -# Kimchi will generate a self-signed certificate automatically. +# Wok will generate a self-signed certificate automatically. #ssl_cert = # The corresponding private key in PEM format for the SSL Certificate supplied -# above. If left blank, Kimchi will generate a self-signed certificate. +# above. If left blank, Wok will generate a self-signed certificate. #ssl_key = # Running environment of the server #environment = production -# Federation feature: register Kimchi server on openSLP and discover peers +# Federation feature: register Wok server on openSLP and discover peers # in the same network. Check README-federation for more details. #federation = off @@ -38,7 +38,7 @@ [logging] # Log directory -#log_dir = @localstatedir@/log/kimchi +#log_dir = @localstatedir@/log/wok # Logging level: debug, info, warning, error or critical #log_level = debug @@ -56,10 +56,10 @@ # ldap_server = "localhost" # Search tree base in ldap -# ldap_search_base = "ou=People, dc=kimchi, dc=org" +# ldap_search_base = "ou=People, dc=wok, dc=org" # User id filter # ldap_search_filter = "uid=%(username)s" -# User IDs regarded as kimchi admin +# User IDs regarded as Wok admin # ldap_admin_id = "foo@foo.com, bar@bar.com" diff --git a/src/wok/auth.py b/src/wok/auth.py index 6bd1566..cc470b6 100644 --- a/src/wok/auth.py +++ b/src/wok/auth.py @@ -259,8 +259,8 @@ def check_auth_session(): cherrypy.session.release_lock() if session is not None: debug("Session authenticated for user %s" % session) - kimchiRobot = cherrypy.request.headers.get('Kimchi-Robot') - if kimchiRobot == "kimchi-robot": + wokRobot = cherrypy.request.headers.get('Wok-Robot') + if wokRobot == "wok-robot": if (time.time() - cherrypy.session[REFRESH] > cherrypy.session.timeout * 60): cherrypy.session[USER_NAME] = None @@ -327,8 +327,8 @@ def logout(): cherrypy.lib.sessions.close() -def kimchiauth(): - debug("Entering kimchiauth...") +def wokauth(): + debug("Entering wokauth...") session_missing = cherrypy.session.missing if check_auth_session(): return @@ -346,7 +346,7 @@ def kimchiauth(): raise cherrypy.HTTPError(401, "sessionTimeout") if not from_browser(): - cherrypy.response.headers['WWW-Authenticate'] = 'Basic realm=kimchi' + cherrypy.response.headers['WWW-Authenticate'] = 'Basic realm=wok' e = InvalidOperation('KCHAUTH0002E') raise cherrypy.HTTPError(401, e.message.encode('utf-8')) diff --git a/src/wok/config.py.in b/src/wok/config.py.in index 019f42f..4c97840 100644 --- a/src/wok/config.py.in +++ b/src/wok/config.py.in @@ -29,8 +29,8 @@ from ConfigParser import SafeConfigParser from kimchi.xmlutils.utils import xpath_get_text -__version__ = "@kimchiversion@" -__release__ = "@kimchirelease@" +__version__ = "@wokversion@" +__release__ = "@wokrelease@" __with_spice__ = "@withspice@" DEFAULT_LOG_LEVEL = "debug" @@ -113,11 +113,11 @@ class Paths(object): if self.installed: self.nginx_conf_dir = '@sysconfdir@/nginx/conf.d' - self.state_dir = '@localstatedir@/lib/kimchi' - self.log_dir = '@localstatedir@/log/kimchi' - self.conf_dir = '@sysconfdir@/kimchi' - self.src_dir = '@kimchidir@' - self.plugins_dir = '@kimchidir@/plugins' + self.state_dir = '@localstatedir@/lib/wok' + self.log_dir = '@localstatedir@/log/wok' + self.conf_dir = '@sysconfdir@/wok' + self.src_dir = '@wokdir@' + self.plugins_dir = '@wokdir@/plugins' self.mo_dir = '@prefix@/share/locale' self.spice_css_file = os.path.join(self.spice_dir, 'spice.css') else: @@ -125,7 +125,7 @@ class Paths(object): self.state_dir = self.add_prefix('data') self.log_dir = self.add_prefix('log') self.conf_dir = self.add_prefix('src') - self.src_dir = self.add_prefix('src/kimchi') + self.src_dir = self.add_prefix('src/wok') self.plugins_dir = self.add_prefix('plugins') self.mo_dir = self.add_prefix('mo') self.spice_css_file = os.path.join(self.spice_dir, 'css/spice.css') @@ -158,8 +158,8 @@ class PluginPaths(Paths): self.plugin_dir = os.path.join('plugins', name) if self.installed: - self.conf_dir = '@sysconfdir@/kimchi/plugins.d' - self.src_dir = os.path.join('@kimchidir@', self.plugin_dir) + self.conf_dir = '@sysconfdir@/wok/plugins.d' + self.src_dir = os.path.join('@wokdir@', self.plugin_dir) else: self.conf_dir = self.add_prefix(self.plugin_dir) self.src_dir = self.add_prefix(self.plugin_dir) @@ -188,30 +188,30 @@ class UIConfig(dict): self.update(ui_configs) -class KimchiConfig(dict): +class WokConfig(dict): # session time out is 10 minutes SESSIONSTIMEOUT = 10 - kimchi_config = { + wok_config = { '/': { 'tools.trailing_slash.on': False, 'request.methods_with_bodies': ('POST', 'PUT'), 'tools.nocache.on': True, 'tools.proxy.on': True, 'tools.sessions.on': True, - 'tools.sessions.name': 'kimchi', + 'tools.sessions.name': 'wok', 'tools.sessions.secure': True, 'tools.sessions.httponly': True, 'tools.sessions.locking': 'explicit', 'tools.sessions.storage_type': 'ram', 'tools.sessions.timeout': SESSIONSTIMEOUT, - 'tools.kimchiauth.on': False + 'tools.wokauth.on': False }, '/novnc': { 'tools.staticdir.on': True, 'tools.staticdir.dir': paths.novnc_dir, 'tools.nocache.on': True, - 'tools.kimchiauth.on': True + 'tools.wokauth.on': True }, '/spice_auto.html': { 'tools.staticfile.on': True, @@ -229,8 +229,8 @@ class KimchiConfig(dict): 'tools.staticfile.filename': paths.spice_css_file, 'tools.nocache.on': True, }, - '/kimchi-ui.html': { - 'tools.kimchiauth.on': True + '/wok-ui.html': { + 'tools.wokauth.on': True }, '/data/screenshots': { 'tools.staticdir.on': True, @@ -267,8 +267,8 @@ class KimchiConfig(dict): } def __init__(self): - super(KimchiConfig, self).__init__(self) - self.update(self.kimchi_config) + super(WokConfig, self).__init__(self) + self.update(self.wok_config) self.update(UIConfig(paths)) @@ -311,7 +311,7 @@ def _get_config(): config.add_section("display") config.set("display", "display_proxy_port", "64667") - config_file = os.path.join(paths.conf_dir, 'kimchi.conf') + config_file = os.path.join(paths.conf_dir, 'wok.conf') if os.path.exists(config_file): config.read(config_file) return config diff --git a/src/wok/control/base.py b/src/wok/control/base.py index d926a63..8cfa51c 100644 --- a/src/wok/control/base.py +++ b/src/wok/control/base.py @@ -28,7 +28,7 @@ from wok.control.utils import get_class_name, internal_redirect, model_fn from wok.control.utils import parse_request, validate_method from wok.control.utils import validate_params from wok.exception import InvalidOperation, InvalidParameter -from wok.exception import KimchiException, MissingParameter, NotFoundError +from wok.exception import WokException, MissingParameter, NotFoundError from wok.exception import OperationFailed, UnauthorizedError @@ -127,7 +127,7 @@ class Resource(object): raise cherrypy.HTTPError(404, e.message) except OperationFailed, e: raise cherrypy.HTTPError(500, e.message) - except KimchiException, e: + except WokException, e: raise cherrypy.HTTPError(500, e.message) wrapper.__name__ = action_name @@ -178,7 +178,7 @@ class Resource(object): raise cherrypy.HTTPError(404, e.message) except OperationFailed, e: raise cherrypy.HTTPError(500, e.message) - except KimchiException, e: + except WokException, e: raise cherrypy.HTTPError(500, e.message) def is_authorized(self): @@ -338,7 +338,7 @@ class Collection(object): raise cherrypy.HTTPError(404, e.message) except OperationFailed, e: raise cherrypy.HTTPError(500, e.message) - except KimchiException, e: + except WokException, e: raise cherrypy.HTTPError(500, e.message) diff --git a/src/wok/exception.py b/src/wok/exception.py index f41028b..6f5e9d9 100644 --- a/src/wok/exception.py +++ b/src/wok/exception.py @@ -25,7 +25,7 @@ from wok.i18n import messages as _messages from wok.template import get_lang, validate_language -class KimchiException(Exception): +class WokException(Exception): def __init__(self, code='', args={}): self.code = code @@ -38,7 +38,7 @@ class KimchiException(Exception): # In case the value formats itself to an ascii string. args[key] = unicode(str(value), 'utf-8') except UnicodeEncodeError: - # In case the value is a KimchiException or it formats + # In case the value is a WokException or it formats # itself to a unicode string. args[key] = unicode(value) @@ -66,37 +66,37 @@ class KimchiException(Exception): return translation.gettext(text) -class NotFoundError(KimchiException): +class NotFoundError(WokException): pass -class OperationFailed(KimchiException): +class OperationFailed(WokException): pass -class MissingParameter(KimchiException): +class MissingParameter(WokException): pass -class InvalidParameter(KimchiException): +class InvalidParameter(WokException): pass -class InvalidOperation(KimchiException): +class InvalidOperation(WokException): pass -class IsoFormatError(KimchiException): +class IsoFormatError(WokException): pass -class ImageFormatError(KimchiException): +class ImageFormatError(WokException): pass -class TimeoutExpired(KimchiException): +class TimeoutExpired(WokException): pass -class UnauthorizedError(KimchiException): +class UnauthorizedError(WokException): pass diff --git a/src/wok/objectstore.py b/src/wok/objectstore.py index 7c2a5cc..87a30d1 100644 --- a/src/wok/objectstore.py +++ b/src/wok/objectstore.py @@ -30,7 +30,7 @@ except ImportError: from wok import config from wok.exception import NotFoundError -from wok.utils import kimchi_log +from wok.utils import wok_log class ObjectStoreSession(object): @@ -129,5 +129,5 @@ class ObjectStore(object): if type is not None and issubclass(type, sqlite3.DatabaseError): # Logs the error and return False, which makes __exit__ raise # exception again - kimchi_log.error(traceback.format_exc()) + wok_log.error(traceback.format_exc()) return False diff --git a/src/wok/proxy.py b/src/wok/proxy.py index 1c46c11..961f8a7 100644 --- a/src/wok/proxy.py +++ b/src/wok/proxy.py @@ -34,13 +34,13 @@ from wok.config import paths def _create_proxy_config(options): """Create nginx configuration file based on current ports config - To allow flexibility in which port kimchi runs, we need the same + To allow flexibility in which port wok runs, we need the same flexibility with the nginx proxy. This method creates the config file dynamically by using 'nginx.conf.in' as a template, creating - the file 'kimchi.conf' which will be used to launch the proxy. + the file 'wok.conf' which will be used to launch the proxy. Arguments: - options - OptionParser object with Kimchi config options + options - OptionParser object with Wok config options """ # User that will run the worker process of the proxy. Fedora, # RHEL and Suse creates an user called 'nginx' when installing @@ -58,8 +58,8 @@ def _create_proxy_config(options): # No certificates specified by the user if not cert or not key: - cert = '%s/kimchi-cert.pem' % config_dir - key = '%s/kimchi-key.pem' % config_dir + cert = '%s/wok-cert.pem' % config_dir + key = '%s/wok-key.pem' % config_dir # create cert files if they don't exist if not os.path.exists(cert) or not os.path.exists(key): ssl_gen = sslcert.SSLCert() @@ -73,19 +73,19 @@ def _create_proxy_config(options): # Read template file and create a new config file # with the specified parameters. - with open(os.path.join(nginx_config_dir, "kimchi.conf.in")) as template: + with open(os.path.join(nginx_config_dir, "wok.conf.in")) as template: data = template.read() data = Template(data) data = data.safe_substitute(user=user_proxy, proxy_port=options.port, - kimchid_port=options.cherrypy_port, + wokd_port=options.cherrypy_port, proxy_ssl_port=options.ssl_port, cert_pem=cert, cert_key=key, max_body_size=eval(options.max_body_size), dhparams_pem=dhparams_pem) # Write file to be used for nginx. - config_file = open(os.path.join(nginx_config_dir, "kimchi.conf"), "w") + config_file = open(os.path.join(nginx_config_dir, "wok.conf"), "w") config_file.write(data) config_file.close() @@ -94,7 +94,7 @@ def start_proxy(options): """Start nginx reverse proxy.""" _create_proxy_config(options) nginx_config_dir = paths.nginx_conf_dir - config_file = "%s/kimchi.conf" % nginx_config_dir + config_file = "%s/wok.conf" % nginx_config_dir cmd = ['nginx', '-c', config_file] subprocess.call(cmd) diff --git a/src/wok/server.py b/src/wok/server.py index 5394d24..0f99663 100644 --- a/src/wok/server.py +++ b/src/wok/server.py @@ -80,9 +80,9 @@ class Server(object): # thus it is safe to unsubscribe. cherrypy.engine.timeout_monitor.unsubscribe() cherrypy.tools.nocache = cherrypy.Tool('on_end_resource', set_no_cache) - cherrypy.tools.kimchiauth = cherrypy.Tool('before_handler', - auth.kimchiauth) - # Setting host to 127.0.0.1. This makes kimchi runs + cherrypy.tools.wokauth = cherrypy.Tool('before_handler', + auth.wokauth) + # Setting host to 127.0.0.1. This makes wok run # as a localhost app, inaccessible to the outside # directly. You must go through the proxy. cherrypy.server.socket_host = '127.0.0.1' @@ -139,7 +139,7 @@ class Server(object): if node.url_auth: cfg = self.configObj ident = "/%s" % ident - cfg[ident] = {'tools.kimchiauth.on': True} + cfg[ident] = {'tools.wokauth.on': True} self.app = cherrypy.tree.mount(KimchiRoot(model_instance, dev_env), config=self.configObj) @@ -155,9 +155,9 @@ class Server(object): try: plugin_class = ('plugins.%s.%s' % (plugin_name, - plugin_config['kimchi']['plugin_class'])) - script_name = plugin_config['kimchi']['uri'] - del plugin_config['kimchi'] + plugin_config['wok']['plugin_class'])) + script_name = plugin_config['wok']['uri'] + del plugin_config['wok'] plugin_config.update(PluginConfig(plugin_name)) except KeyError: diff --git a/src/wok/template.py b/src/wok/template.py index 46c0f3c..e192ca4 100644 --- a/src/wok/template.py +++ b/src/wok/template.py @@ -29,8 +29,8 @@ from glob import iglob def get_lang(): cookie = cherrypy.request.cookie - if "kimchiLang" in cookie.keys(): - return [cookie["kimchiLang"].value] + if "wokLang" in cookie.keys(): + return [cookie["wokLang"].value] lang = cherrypy.request.headers.get("Accept-Language", "en_US") diff --git a/src/wok/utils.py b/src/wok/utils.py index d8ad25f..f5058d5 100644 --- a/src/wok/utils.py +++ b/src/wok/utils.py @@ -40,7 +40,7 @@ from wok.config import paths, PluginPaths from wok.exception import InvalidParameter, TimeoutExpired -kimchi_log = cherrypy.log.error_log +wok_log = cherrypy.log.error_log task_id = 0 @@ -106,7 +106,7 @@ def get_enabled_plugins(): if os.path.isdir(os.path.join(plugin_dir, name)): plugin_config = _load_plugin_conf(name) try: - if plugin_config['kimchi']['enable']: + if plugin_config['wok']['enable']: yield (name, plugin_config) except (TypeError, KeyError): continue @@ -200,22 +200,22 @@ def run_command(cmd, timeout=None): timer.start() out, error = proc.communicate() - kimchi_log.debug("Run command: '%s'", " ".join(cmd)) + wok_log.debug("Run command: '%s'", " ".join(cmd)) if out: - kimchi_log.debug("out:\n%s", out) + wok_log.debug("out:\n%s", out) if proc.returncode != 0: - kimchi_log.error("rc: %s error: %s returned from cmd: %s", + wok_log.error("rc: %s error: %s returned from cmd: %s", proc.returncode, error, ' '.join(cmd)) elif error: - kimchi_log.debug("error: %s returned from cmd: %s", + wok_log.debug("error: %s returned from cmd: %s", error, ' '.join(cmd)) if timeout_flag[0]: msg = ("subprocess is killed by signal.SIGKILL for " "timeout %s seconds" % timeout) - kimchi_log.error(msg) + wok_log.error(msg) msg_args = {'cmd': " ".join(cmd), 'seconds': str(timeout)} raise TimeoutExpired("KCHUTILS0002E", msg_args) @@ -225,13 +225,13 @@ def run_command(cmd, timeout=None): raise except OSError as e: msg = "Impossible to execute '%s'" % ' '.join(cmd) - kimchi_log.debug("%s", msg) + wok_log.debug("%s", msg) return None, "%s %s" % (msg, e), -1 except Exception as e: msg = "Failed to run command: %s." % " ".join(cmd) msg = msg if proc is None else msg + "\n error code: %s." - kimchi_log.error("%s %s", msg, e) + wok_log.error("%s %s", msg, e) if proc: return out, error, proc.returncode @@ -255,7 +255,7 @@ def patch_find_nfs_target(nfs_server): try: out = run_command(cmd, 10)[0] except TimeoutExpired: - kimchi_log.warning("server %s query timeout, may not have any path " + wok_log.warning("server %s query timeout, may not have any path " "exported", nfs_server) return list() @@ -293,7 +293,7 @@ def probe_file_permission_as_user(file, user): with open(file): q.put((True, None)) except Exception as e: - kimchi_log.debug(traceback.format_exc()) + wok_log.debug(traceback.format_exc()) q.put((False, e)) queue = Queue() diff --git a/src/wok/vnc.py b/src/wok/vnc.py index e50e9f2..3b6a80b 100644 --- a/src/wok/vnc.py +++ b/src/wok/vnc.py @@ -28,7 +28,7 @@ from websockify import WebSocketProxy from wok.config import config, paths -WS_TOKENS_DIR = '/var/lib/kimchi/vnc-tokens' +WS_TOKENS_DIR = '/var/lib/wok/vnc-tokens' def new_ws_proxy(): @@ -41,8 +41,8 @@ def new_ws_proxy(): cert = config.get('server', 'ssl_cert') key = config.get('server', 'ssl_key') if not (cert and key): - cert = '%s/kimchi-cert.pem' % paths.conf_dir - key = '%s/kimchi-key.pem' % paths.conf_dir + cert = '%s/wok-cert.pem' % paths.conf_dir + key = '%s/wok-key.pem' % paths.conf_dir params = {'web': os.path.join(paths.ui_dir, 'pages/websockify'), 'listen_port': config.get('display', 'display_proxy_port'), diff --git a/src/wokd.in b/src/wokd.in index 62a8504..f225361 100644 --- a/src/wokd.in +++ b/src/wokd.in @@ -32,8 +32,8 @@ import wok.config as config if not config.paths.installed: sys.path.append(config.paths.prefix) -ACCESS_LOG = "kimchi-access.log" -ERROR_LOG = "kimchi-error.log" +ACCESS_LOG = "wok-access.log" +ERROR_LOG = "wok-error.log" def main(options): @@ -69,7 +69,7 @@ def main(options): default=os.path.join(logDir, ERROR_LOG), help="Error log file") parser.add_option('--environment', default=runningEnv, - help="Running environment of kimchi server") + help="Running environment of wok server") parser.add_option('--federation', default=federation, help="Register and discover Kimchi peers in the same " "network using openSLP. Check README-federation for" diff --git a/ui/js/src/wok.cookie.js b/ui/js/src/wok.cookie.js index f1b52db..bc0a06d 100644 --- a/ui/js/src/wok.cookie.js +++ b/ui/js/src/wok.cookie.js @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -kimchi.cookie = { +wok.cookie = { set: function(key, value, expireDays) { value = encodeURIComponent(value); value += '; secure' diff --git a/ui/js/src/wok.lang.js b/ui/js/src/wok.lang.js index 1d2de4e..ef8e923 100644 --- a/ui/js/src/wok.lang.js +++ b/ui/js/src/wok.lang.js @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -kimchi.lang = { +wok.lang = { all: function() { return { 'en_US': 'English (US)', @@ -39,12 +39,12 @@ kimchi.lang = { * 3) DEFAULT (en_US). */ get: function() { - return kimchi.cookie.get('kimchiLang') || + return wok.cookie.get('wokLang') || $('html').prop('lang') || 'en_US'; }, set: function(lang) { - kimchi.cookie.set('kimchiLang', lang, 365); + wok.cookie.set('wokLang', lang, 365); } }; diff --git a/ui/js/src/wok.login.js b/ui/js/src/wok.login.js index c737d26..926d80c 100644 --- a/ui/js/src/wok.login.js +++ b/ui/js/src/wok.login.js @@ -15,13 +15,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -kimchi.login_main = function() { +wok.login_main = function() { - var selectedLanguage = kimchi.lang.get(); + var selectedLanguage = wok.lang.get(); $('#userLang').val(selectedLanguage); $('#userLang').on('change', function() { - kimchi.lang.set($(this).val()); + wok.lang.set($(this).val()); location.reload(); }); @@ -40,23 +40,23 @@ kimchi.login_main = function() { $("#logging").show(); var userName = userNameBox.val(); - userName && kimchi.user.setUserName(userName); + userName && wok.user.setUserName(userName); var settings = { username: userName, password: passwordBox.val() }; - kimchi.login(settings, function(data) { + wok.login(settings, function(data) { var query = window.location.search; var next = /.*next=(.*?)(&|$)/g.exec(query); if (next) { var next_url = decodeURIComponent(next[1]); } else { - var lastPage = kimchi.cookie.get('lastPage'); + var lastPage = wok.cookie.get('lastPage'); var next_url = lastPage ? lastPage.replace(/\"/g,'') : "/"; } - kimchi.cookie.set('roles',JSON.stringify(data.roles)); + wok.cookie.set('roles',JSON.stringify(data.roles)); window.location.replace(window.location.pathname.replace(/\/+login.html/, '') + next_url) }, function() { $("#messUserPass").show(); diff --git a/ui/js/src/wok.main.js b/ui/js/src/wok.main.js index 0d4ad43..089b523 100644 --- a/ui/js/src/wok.main.js +++ b/ui/js/src/wok.main.js @@ -15,21 +15,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -kimchi.tabMode = {}; +wok.tabMode = {}; -kimchi.capabilities = undefined; -kimchi.getCapabilities(function(result) { - kimchi.capabilities = result; +wok.capabilities = undefined; +wok.getCapabilities(function(result) { + wok.capabilities = result; - if(kimchi.capabilities.federation=="on") + if(wok.capabilities.federation=="on") $('#peers').removeClass('hide-content'); }, function() { - kimchi.capabilities = {}; + wok.capabilities = {}; }); -kimchi.main = function() { - kimchi.isLoggingOut = false; - kimchi.popable(); +wok.main = function() { + wok.isLoggingOut = false; + wok.popable(); var genTabs = function(tabs) { var tabsHtml = []; @@ -38,7 +38,7 @@ kimchi.main = function() { var path = tab['path']; var mode = tab['mode']; if (mode != 'none') { - var helpPath = kimchi.checkHelpFile(path); + var helpPath = wok.checkHelpFile(path); var disableHelp = (helpPath.length == 0 ? "disableHelp" : helpPath); tabsHtml.push( '<li>', @@ -60,11 +60,11 @@ kimchi.main = function() { var titleKey = $tab.find('title').text(); var title = i18n[titleKey] ? i18n[titleKey] : titleKey; var path = $tab.find('path').text(); - var roles = kimchi.cookie.get('roles'); + var roles = wok.cookie.get('roles'); if (roles) { var role = JSON.parse(roles)[titleKey.toLowerCase()]; var mode = $tab.find('[role="' + role + '"]').attr('mode'); - kimchi.tabMode[titleKey.toLowerCase()] = mode; + wok.tabMode[titleKey.toLowerCase()] = mode; tabs.push({ title: title, path: path, @@ -96,15 +96,15 @@ kimchi.main = function() { var DEFAULT_HASH; var buildTabs = function(callback) { var tabs = retrieveTabs(tabConfigUrl); - kimchi.listPlugins(function(plugins) { + wok.listPlugins(function(plugins) { $(plugins).each(function(i, p) { - var url = kimchi.substitute(pluginConfigUrl, { + var url = wok.substitute(pluginConfigUrl, { plugin: p }); - var i18nUrl = kimchi.substitute(pluginI18nUrl, { + var i18nUrl = wok.substitute(pluginI18nUrl, { plugin: p }); - kimchi.getI18n(function(i18nObj){ $.extend(i18n, i18nObj)}, + wok.getI18n(function(i18nObj){ $.extend(i18n, i18nObj)}, function(i18nObj){ //i18n is not define by plugin }, i18nUrl, true); tabs.push.apply(tabs, retrieveTabs(url)); @@ -121,12 +121,12 @@ kimchi.main = function() { callback && callback(); }, function(data) { - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); }, true); }; var onLanguageChanged = function(lang) { - kimchi.lang.set(lang); + wok.lang.set(lang); location.reload(); }; @@ -140,7 +140,7 @@ kimchi.main = function() { * Move the page tab indicator to the right position; * Load the page content via Ajax. */ - var onKimchiRedirect = function(url) { + var onWokRedirect = function(url) { /* * Find the corresponding tab node and animate the arrow indicator to * point to the tab. If nothing found, inform user the URL is invalid @@ -170,7 +170,7 @@ kimchi.main = function() { } else { $('#btn-help').css('cursor', "pointer"); - $('#btn-help').on("click", kimchi.openHelp); + $('#btn-help').on("click", wok.openHelp); } // Load page content. loadPage(url); @@ -209,13 +209,13 @@ kimchi.main = function() { location.hash = DEFAULT_HASH; } else { - kimchi.topic('redirect').publish(hashString + '.html'); + wok.topic('redirect').publish(hashString + '.html'); } }; /** * Register listeners including: - * 1) Kimchi redirect event + * 1) wok redirect event * 2) hashchange event * 3) Tab list click event * 4) Log-out button click event @@ -225,8 +225,8 @@ kimchi.main = function() { */ var searchingPeers = false; var initListeners = function() { - kimchi.topic('languageChanged').subscribe(onLanguageChanged); - kimchi.topic('redirect').subscribe(onKimchiRedirect); + wok.topic('languageChanged').subscribe(onLanguageChanged); + wok.topic('redirect').subscribe(onWokRedirect); /* * If hash value is changed, then we know the user is intended to load @@ -246,7 +246,7 @@ kimchi.main = function() { * We use the HTML file name for hash, like: guests for guests.html * and templates for templates.html. * Retrieve hash value from the given URL and update location's - * hash part. It has 2 effects: one is to publish Kimchi "redirect" + * hash part. It has 2 effects: one is to publish Wok "redirect" * event to trigger listener, the other is to put an entry into the * browser's address history to make pages be bookmark-able. */ @@ -256,22 +256,22 @@ kimchi.main = function() { // Perform logging out via Ajax request. $('#btn-logout').on('click', function() { - kimchi.logout(function() { - kimchi.isLoggingOut = true; + wok.logout(function() { + wok.isLoggingOut = true; document.location.href = "login.html"; }, function(err) { - kimchi.message.error(err.responseJSON.reason); + wok.message.error(err.responseJSON.reason); }); }); // Set handler for about button $('#btn-about').on('click', function(event) { - kimchi.window.open({"content": $('#about-tmpl').html()}); + wok.window.open({"content": $('#about-tmpl').html()}); event.preventDefault(); }); // Set handler for help button - $('#btn-help').on('click', kimchi.openHelp); + $('#btn-help').on('click', wok.openHelp); // Set handler to peers drop down $('#peers').on('click', function() { @@ -301,46 +301,46 @@ kimchi.main = function() { var initUI = function() { $(document).bind('ajaxError', function(event, jqXHR, ajaxSettings, errorThrown) { - if (!ajaxSettings['kimchi']) { + if (!ajaxSettings['wok']) { return; } if (jqXHR['status'] === 401) { var isSessionTimeout = jqXHR['responseText'].indexOf("sessionTimeout")!=-1; - kimchi.user.showUser(false); - kimchi.previousAjax = ajaxSettings; + wok.user.showUser(false); + wok.previousAjax = ajaxSettings; $(".empty-when-logged-off").empty(); $(".remove-when-logged-off").remove(); document.location.href= isSessionTimeout ? 'login.html?error=sessionTimeout' : 'login.html'; return; } - else if((jqXHR['status'] == 0) && ("error"==jqXHR.statusText) && !kimchi.isLoggingOut) { - kimchi.message.error(i18n['KCHAPI6007E'].replace("%1", jqXHR.state())); + else if((jqXHR['status'] == 0) && ("error"==jqXHR.statusText) && !wok.isLoggingOut) { + wok.message.error(i18n['KCHAPI6007E'].replace("%1", jqXHR.state())); } if(ajaxSettings['originalError']) { ajaxSettings['originalError'](jqXHR, jqXHR.statusText, errorThrown); } }); - kimchi.user.showUser(true); + wok.user.showUser(true); initListeners(); updatePage(); }; // Load i18n translation strings first and then render the page. - kimchi.getI18n( + wok.getI18n( function(i18nStrings){ //success i18n = i18nStrings; buildTabs(initUI); }, function(data){ //error - kimchi.message.error(data.responseJSON.reason); + wok.message.error(data.responseJSON.reason); }); }; -kimchi.checkHelpFile = function(path) { - var lang = kimchi.lang.get(); +wok.checkHelpFile = function(path) { + var lang = wok.lang.get(); var url = "" // Find help page path according to tab name if (/^tabs/.test(path)) @@ -358,9 +358,9 @@ kimchi.checkHelpFile = function(path) { }; -kimchi.openHelp = function(e) { +wok.openHelp = function(e) { var tab = $('#nav-menu a.current'); var url = $(tab).parent().find("input[name='helpPath']").val(); - window.open(url, "Kimchi Help"); + window.open(url, "Wok Help"); e.preventDefault(); }; diff --git a/ui/js/src/wok.message.js b/ui/js/src/wok.message.js index 241626f..db1dc36 100644 --- a/ui/js/src/wok.message.js +++ b/ui/js/src/wok.message.js @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -kimchi.message = function(msg, level, node) { +wok.message = function(msg, level, node) { var container = node || $('#messageField'); if ($(container).size() < 1) { container = $('<div id="messageField"/>').appendTo(document.body); @@ -61,7 +61,7 @@ kimchi.message = function(msg, level, node) { * @param cancelCallback * The callback function of click the cancel and X button. */ -kimchi.confirm = function(settings, confirmCallback, cancelCallback) { +wok.confirm = function(settings, confirmCallback, cancelCallback) { if ($('#confirmbox-container ').size() < 1) { $(document.body).append('<div id="confirmbox-container" class="bgmask"></div>'); } @@ -101,16 +101,16 @@ kimchi.confirm = function(settings, confirmCallback, cancelCallback) { }); }; -kimchi.message.warn = function(msg, node) { - kimchi.message(msg, 'warn', node); +wok.message.warn = function(msg, node) { + wok.message(msg, 'warn', node); }; -kimchi.message.error = function(msg, node) { - kimchi.message(msg, 'error', node); +wok.message.error = function(msg, node) { + wok.message(msg, 'error', node); }; -kimchi.message.error.code = function(code) { +wok.message.error.code = function(code) { msg = code + ": " + i18n[code] - kimchi.message(msg, 'error'); + wok.message(msg, 'error'); }; -kimchi.message.success = function(msg, node) { - kimchi.message(msg, 'success', node); +wok.message.success = function(msg, node) { + wok.message(msg, 'success', node); }; diff --git a/ui/js/src/wok.popable.js b/ui/js/src/wok.popable.js index fb57010..7c01a0e 100644 --- a/ui/js/src/wok.popable.js +++ b/ui/js/src/wok.popable.js @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -kimchi.popable = function() { +wok.popable = function() { $(document).click(function(e) { $('.popable').each(function(i, n) { n === e.target || $.contains(n, e.target) || @@ -28,7 +28,7 @@ kimchi.popable = function() { // Scroll the popup menu into viewport if invisible. !$(popup).is(':visible') || - kimchi.isElementInViewport(popup) || + wok.isElementInViewport(popup) || popup.scrollIntoView(); }); }; diff --git a/ui/js/src/wok.substitute.js b/ui/js/src/wok.substitute.js index 434d9d3..225f967 100644 --- a/ui/js/src/wok.substitute.js +++ b/ui/js/src/wok.substitute.js @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -kimchi.substitute = function(templateStr, data, tag) { +wok.substitute = function(templateStr, data, tag) { tag = tag || /\{([^\}]+)\}/g; var escapeHtml = function(html) { diff --git a/ui/js/src/wok.topic.js b/ui/js/src/wok.topic.js index fd62ffe..0b8b148 100644 --- a/ui/js/src/wok.topic.js +++ b/ui/js/src/wok.topic.js @@ -19,11 +19,11 @@ /** * pub/sub * Usage: - * Publish - kimchi.topic('eventname').publish(params); - * Subscribe - kimchi.topic('eventname').subscribe(listener); - * Unsubscribe - kimchi.topic('eventname').unsubscribe(listener); + * Publish - wok.topic('eventname').publish(params); + * Subscribe - wok.topic('eventname').subscribe(listener); + * Unsubscribe - wok.topic('eventname').unsubscribe(listener); */ -kimchi.topic = (function() { +wok.topic = (function() { var topics = {}; diff --git a/ui/js/src/wok.user.js b/ui/js/src/wok.user.js index c036155..e642801 100644 --- a/ui/js/src/wok.user.js +++ b/ui/js/src/wok.user.js @@ -15,13 +15,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -kimchi.user = (function() { +wok.user = (function() { var getUserName = function() { - return kimchi.cookie.get('username'); + return wok.cookie.get('username'); }; var setUserName = function(userName) { - kimchi.cookie.set('username', userName, 365); + wok.cookie.set('username', userName, 365); }; var showUser = function(toShow) { diff --git a/ui/js/src/wok.utils.js b/ui/js/src/wok.utils.js index f26a560..23aa30c 100644 --- a/ui/js/src/wok.utils.js +++ b/ui/js/src/wok.utils.js @@ -26,7 +26,7 @@ * false if the node is not entirely visible, or * undefined if the given parameter is invalid. */ -kimchi.isElementInViewport = function(el) { +wok.isElementInViewport = function(el) { if (!el || !el.getBoundingClientRect) { return undefined; } @@ -47,7 +47,7 @@ kimchi.isElementInViewport = function(el) { * @param digits after the decimal point. * @returns str with unit. */ -kimchi.changetoProperUnit = function(numOrg, digits, base) { +wok.changetoProperUnit = function(numOrg, digits, base) { if (numOrg === undefined) { return ""; } @@ -65,7 +65,7 @@ kimchi.changetoProperUnit = function(numOrg, digits, base) { }; /** - * kimchi.formatMeasurement util. + * wok.formatMeasurement util. * * Refer to "Units of information" ( * http://en.wikipedia.org/wiki/Units_of_information @@ -158,15 +158,15 @@ kimchi.changetoProperUnit = function(numOrg, digits, base) { return new Formatted(fixed ? number.toFixed(fixed) : number, unit); }; - kimchi.formatMeasurement = format; + wok.formatMeasurement = format; })(); -kimchi.isUnsignedNumeric = function(number) { +wok.isUnsignedNumeric = function(number) { var reg = /^d+(.d+)?$/ return reg.test(number); } -kimchi.isServer = function(server) { +wok.isServer = function(server) { var domain = "([0-9a-z_!~*'()-]+\.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\.[a-z]{2,6}"; var ip = "(\\d{1,3}\.){3}\\d{1,3}"; regex = new RegExp('^' + domain + '|' + ip + '$'); @@ -177,17 +177,17 @@ kimchi.isServer = function(server) { } }; -kimchi.escapeStr = function(str) { +wok.escapeStr = function(str) { if (str) return str.replace(/([ #;?%&,.+*~\\':"!^$[\]()<=>`{|}\/@])/g,'\\$&'); return str; }; -kimchi.urlSafeB64Decode = function(str) { +wok.urlSafeB64Decode = function(str) { return atob(str.replace(/-/g, '+').replace(/_/g, '/')); } -kimchi.urlSafeB64Encode = function(str) { +wok.urlSafeB64Encode = function(str) { return btoa(str).replace(/\+/g, '-').replace(/\//g, '_'); } diff --git a/ui/js/src/wok.window.js b/ui/js/src/wok.window.js index 3ac8699..5542270 100644 --- a/ui/js/src/wok.window.js +++ b/ui/js/src/wok.window.js @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -kimchi.window = (function() { +wok.window = (function() { var _windows = []; var _listeners = {}; var open = function(settings) { @@ -39,7 +39,7 @@ kimchi.window = (function() { $(windowNode).css(settings['style'] || ''); $(windowNode).appendTo('body').on('click', '.window .close', function() { - kimchi.window.close(); + wok.window.close(); }); if (settings['url']) { diff --git a/ui/js/widgets/button-dropDown.js b/ui/js/widgets/button-dropDown.js index 9157dde..ec6bd2a 100644 --- a/ui/js/widgets/button-dropDown.js +++ b/ui/js/widgets/button-dropDown.js @@ -16,7 +16,7 @@ * limitations under the License. */ (function($) { - $.widget('kimchi.dropdownButton', { + $.widget('wok.dropdownButton', { _create : function() { this.actionDiv = this.element; diff --git a/ui/js/widgets/combobox.js b/ui/js/widgets/combobox.js index b0edd88..92244a2 100644 --- a/ui/js/widgets/combobox.js +++ b/ui/js/widgets/combobox.js @@ -16,7 +16,7 @@ * limitations under the License. */ (function($) { - $.widget('kimchi.combobox', { + $.widget('wok.combobox', { _create : function() { this.selectDiv = this.element; this.listControl = this.selectDiv.find('ul').first(); diff --git a/ui/js/widgets/filter-select.js b/ui/js/widgets/filter-select.js index 020c567..db6b4b0 100644 --- a/ui/js/widgets/filter-select.js +++ b/ui/js/widgets/filter-select.js @@ -16,7 +16,7 @@ * limitations under the License. */ (function($) { - $.widget('kimchi.filterselect', { + $.widget('wok.filterselect', { _create : function() { this.selectDiv = this.element; this.listControl = this.selectDiv.find('ul').first(); diff --git a/ui/js/widgets/select-menu.js b/ui/js/widgets/select-menu.js index 4a79605..bd7a207 100644 --- a/ui/js/widgets/select-menu.js +++ b/ui/js/widgets/select-menu.js @@ -16,7 +16,7 @@ * limitations under the License. */ (function($) { - $.widget('kimchi.selectMenu', { + $.widget('wok.selectMenu', { _create : function() { this.selectDiv = this.element; diff --git a/ui/pages/error.html.tmpl b/ui/pages/error.html.tmpl index 068f2a6..dfe7ce3 100644 --- a/ui/pages/error.html.tmpl +++ b/ui/pages/error.html.tmpl @@ -27,7 +27,7 @@ <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> - <title>Kimchi</title> + <title>Wok</title> <link rel="stylesheet" href="$href("/css/theme-default.min.css")"> </head> @@ -35,7 +35,7 @@ <body> <div class="error-background"> <h1 id="logo"> - <img src="/images/theme-default/logo-white.png" alt="Kimchi"> + <img src="/images/theme-default/logo-white.png" alt="Wok"> </h1> </div> <div class="error-msg error-icon"> diff --git a/ui/pages/login.html.tmpl b/ui/pages/login.html.tmpl index e13e03d..92af4e0 100644 --- a/ui/pages/login.html.tmpl +++ b/ui/pages/login.html.tmpl @@ -35,7 +35,7 @@ <script src="$href('libs/jquery-1.10.0.min.js')"></script> <script src="$href('libs/jquery-ui.min.js')"></script> <script src="$href('libs/jquery-ui-i18n.min.js')"></script> -<script src="$href('js/kimchi.min.js')"></script> +<script src="$href('js/wok.min.js')"></script> <style type="text/css"> .topbar select { float: right; @@ -57,7 +57,7 @@ } </style> </head> -<body onload="kimchi.login_main()"> +<body onload="wok.login_main()"> <div class="container topbar"> <span id="logo"><img alt="Project Kimchi" src="images/theme-default/logo-white.png"></span> <select id="userLang"> diff --git a/ui/pages/websockify/console.html b/ui/pages/websockify/console.html index 3be317f..e0a3cd4 100644 --- a/ui/pages/websockify/console.html +++ b/ui/pages/websockify/console.html @@ -2,18 +2,18 @@ <html> <head> <script type="text/javascript"> - redirectToKimchi = function() { + redirectToWok = function() { var query = window.location.search; var path = /.*url=(.*?)(&|$)/g.exec(query)[1]; query = query.replace("url=" + path + "&", "") query = query.replace("url=" + path, "") - var kimchi_port = /.*kimchi=(.*?)(&|$)/g.exec(query)[1]; - query = query.replace("kimchi=" + kimchi_port + "&", "") - query = query.replace("kimchi=" + kimchi_port, "") + var wok_port = /.*wok=(.*?)(&|$)/g.exec(query)[1]; + query = query.replace("wok=" + wok_port + "&", "") + query = query.replace("wok=" + wok_port, "") - var url = "https://" + location.hostname + ":" + kimchi_port + "/"; + var url = "https://" + location.hostname + ":" + wok_port + "/"; url += decodeURIComponent(path) + query window.location.replace(url) @@ -21,5 +21,5 @@ </script> </head> - <body onload="redirectToKimchi()"/> + <body onload="redirectToWok()"/> </html> diff --git a/ui/pages/wok-ui.html.tmpl b/ui/pages/wok-ui.html.tmpl index 23e6875..9a0f258 100644 --- a/ui/pages/wok-ui.html.tmpl +++ b/ui/pages/wok-ui.html.tmpl @@ -36,7 +36,7 @@ <script src="$href('libs/jquery-1.10.0.min.js')"></script> <script src="$href('libs/jquery-ui.min.js')"></script> <script src="$href('libs/jquery-ui-i18n.min.js')"></script> -<script src="$href('js/kimchi.min.js')"></script> +<script src="$href('js/wok.min.js')"></script> <!-- This is used for detecting if the UI needs to be built --> <style type="text/css"> @@ -64,7 +64,7 @@ } </style> </head> -<body onload="kimchi.main()"> +<body onload="wok.main()"> <div class="container"> <header class="topbar"> <h1 id="logo"><img alt="Project Kimchi" src="images/theme-default/logo-white.png"></h1> @@ -110,12 +110,12 @@ <div id="buildme"> <div><p>Oops! It looks like I am running from a source tree and you forgot to build! - Please run the following command from the kimchi directory and reload this page:</p> + Please run the following command from the wok and kimchi directories and reload this page:</p> <p><code>make</code></p> </div> </div> -<script id="about-tmpl" type="kimchi/template"> +<script id="about-tmpl" type="wok/template"> <div class="window about-window"> <header> <h1 class="title"><img alt="Kimchi logo" src="images/logo.ico"/> $_("About")</h1> @@ -129,7 +129,7 @@ <img src="images/theme-default/logo-plain.gif"/> <br/> <br/> - <h2>Kimchi</h2> + <h2>Wok</h2> <p>$_("Version:") $get_version()</p> </div> </center> -- 1.7.1

Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/API.json | 12 +- plugins/kimchi/mockmodel.py | 8 +- plugins/kimchi/model/debugreports.py | 7 +- plugins/kimchi/model/host.py | 4 +- plugins/kimchi/model/networks.py | 4 +- plugins/kimchi/model/storagepools.py | 7 +- plugins/kimchi/model/storagevolumes.py | 4 +- plugins/kimchi/model/vms.py | 11 +- plugins/kimchi/model/vmsnapshots.py | 4 +- plugins/kimchi/osinfo.py | 14 +- plugins/kimchi/screenshot.py | 2 +- plugins/kimchi/tests/test_authorization.py | 56 ++-- plugins/kimchi/tests/test_exception.py | 12 +- plugins/kimchi/tests/test_host.py | 47 ++- plugins/kimchi/tests/test_mock_network.py | 2 +- plugins/kimchi/tests/test_mock_storagepool.py | 10 +- plugins/kimchi/tests/test_mock_storagevolume.py | 8 +- plugins/kimchi/tests/test_mockmodel.py | 21 +- plugins/kimchi/tests/test_model.py | 45 ++- plugins/kimchi/tests/test_model_network.py | 14 +- plugins/kimchi/tests/test_model_storagepool.py | 12 +- plugins/kimchi/tests/test_model_storagevolume.py | 15 +- plugins/kimchi/tests/test_rest.py | 454 ++++++++++---------- plugins/kimchi/tests/test_server.py | 34 +- plugins/kimchi/tests/test_template.py | 76 ++-- plugins/kimchi/ui/css/theme-default/guest-edit.css | 6 +- plugins/kimchi/ui/css/theme-default/host.css | 4 +- plugins/kimchi/ui/css/theme-default/list.css | 2 +- plugins/kimchi/ui/css/theme-default/network.css | 4 +- .../kimchi/ui/css/theme-default/report-rename.css | 2 +- plugins/kimchi/ui/css/theme-default/storage.css | 2 +- .../kimchi/ui/css/theme-default/template_add.css | 6 +- plugins/kimchi/ui/js/src/kimchi.api.js | 193 ++++----- plugins/kimchi/ui/js/src/kimchi.guest_add_main.js | 2 +- plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js | 6 +- plugins/kimchi/ui/js/src/kimchi.guest_main.js | 12 +- .../kimchi/ui/js/src/kimchi.guest_media_main.js | 2 +- plugins/kimchi/ui/js/src/kimchi.host.js | 14 +- plugins/kimchi/ui/js/src/kimchi.storage_main.js | 6 +- .../kimchi/ui/js/src/kimchi.template_edit_main.js | 2 +- plugins/kimchi/ui/js/src/kimchi.template_main.js | 8 +- plugins/kimchi/ui/pages/error.html.tmpl | 4 +- plugins/kimchi/ui/pages/guest-add.html.tmpl | 2 +- plugins/kimchi/ui/pages/guest.html.tmpl | 2 +- plugins/kimchi/ui/pages/storagepool-add.html.tmpl | 2 +- plugins/kimchi/ui/pages/tabs/storage.html.tmpl | 2 +- plugins/kimchi/ui/pages/template-add.html.tmpl | 2 +- plugins/sample/ui/js/util.js | 2 +- ui/pages/error.html.tmpl | 4 +- 49 files changed, 605 insertions(+), 569 deletions(-) diff --git a/plugins/kimchi/API.json b/plugins/kimchi/API.json index e8da7d9..f1f58ff 100644 --- a/plugins/kimchi/API.json +++ b/plugins/kimchi/API.json @@ -257,14 +257,14 @@ "template": { "description": "The URI of a template to use when building a VM", "type": "string", - "pattern": "^/templates/(.*?)/?$", + "pattern": "^/plugins/kimchi/templates/(.*?)/?$", "required": true, "error": "KCHVM0012E" }, "storagepool": { "description": "Assign a specefic Storage Pool to the new VM", "type": "string", - "pattern": "^/storagepools/[^/]+/?$", + "pattern": "^/plugins/kimchi/storagepools/[^/]+/?$", "error": "KCHVM0013E" }, "graphics": { "$ref": "#/kimchitype/graphics" } @@ -428,7 +428,7 @@ "icon": { "description": "The template icon path", "type": "string", - "pattern": "^images/", + "pattern": "^/plugins/kimchi/images/", "error": "KCHTMPL0009E" }, "os_distro": { @@ -493,7 +493,7 @@ "storagepool": { "description": "Location of the storage pool", "type": "string", - "pattern": "^/storagepools/[^/]+/?$", + "pattern": "^/plugins/kimchi/storagepools/[^/]+/?$", "error": "KCHTMPL0015E" }, "networks": { @@ -600,7 +600,7 @@ "icon": { "description": "The template icon path", "type": "string", - "pattern": "^images/", + "pattern": "^/plugins/kimchi/images/", "error": "KCHTMPL0009E" }, "os_distro": { @@ -664,7 +664,7 @@ "storagepool": { "description": "Location of the storage pool", "type": "string", - "pattern": "^/storagepools/[^/]+/?$", + "pattern": "^/plugins/kimchi/storagepools/[^/]+/?$", "error": "KCHTMPL0015E" }, "networks": { diff --git a/plugins/kimchi/mockmodel.py b/plugins/kimchi/mockmodel.py index 88eb033..d51ab9e 100644 --- a/plugins/kimchi/mockmodel.py +++ b/plugins/kimchi/mockmodel.py @@ -49,7 +49,7 @@ from wok.xmlutils.utils import xml_item_update fake_user = {'root': 'letmein!'} -mockmodel_defaults = {'storagepool': '/storagepools/default-pool', +mockmodel_defaults = {'storagepool': '/plugins/kimchi/storagepools/default-pool', 'domain': 'test', 'arch': 'i686'} @@ -246,7 +246,7 @@ class MockModel(Model): return MockModel._libvirt_get_vol_path(pool, vol) def _gen_debugreport_file(self, name): - return add_task('/debugreports/%s' % name, self._create_log, + return add_task('/plugins/kimchi/debugreports/%s' % name, self._create_log, self.objstore, name) def _create_log(self, cb, name): @@ -355,7 +355,7 @@ class MockModel(Model): return self._mock_swupdate.pkgs[pkg_name] def _mock_host_swupdate(self, args=None): - task_id = add_task('/host/swupdate', self._mock_swupdate.doUpdate, + task_id = add_task('/plugins/kimchi/host/swupdate', self._mock_swupdate.doUpdate, self.objstore) return self.task_lookup(task_id) @@ -407,7 +407,7 @@ class MockModel(Model): def _mock_vmsnapshots_create(self, vm_name, params): name = params.get('name', unicode(int(time.time()))) params = {'vm_name': vm_name, 'name': name} - taskid = add_task(u'/vms/%s/snapshots/%s' % (vm_name, name), + taskid = add_task(u'/plugins/kimchi/vms/%s/snapshots/%s' % (vm_name, name), self._vmsnapshots_create_task, self.objstore, params) return self.task_lookup(taskid) diff --git a/plugins/kimchi/model/debugreports.py b/plugins/kimchi/model/debugreports.py index ea5853d..aff2152 100644 --- a/plugins/kimchi/model/debugreports.py +++ b/plugins/kimchi/model/debugreports.py @@ -62,8 +62,8 @@ class DebugReportsModel(object): gen_cmd = self.get_system_report_tool() if gen_cmd is not None: - return add_task('/debugreports/%s' % name, gen_cmd, self.objstore, - name) + return add_task('/plugins/kimchi/debugreports/%s' % name, gen_cmd, + self.objstore, name) raise OperationFailed("KCHDR0002E") @@ -172,7 +172,8 @@ class DebugReportModel(object): ctime = os.stat(file_target).st_mtime ctime = time.strftime("%Y-%m-%d-%H:%M:%S", time.localtime(ctime)) file_target = os.path.split(file_target)[-1] - file_target = os.path.join("/data/debugreports", file_target) + file_target = os.path.join("plugins/kimchi/data/debugreports", + file_target) return {'uri': file_target, 'ctime': ctime} diff --git a/plugins/kimchi/model/host.py b/plugins/kimchi/model/host.py index 2a78a88..09b0a09 100644 --- a/plugins/kimchi/model/host.py +++ b/plugins/kimchi/model/host.py @@ -132,8 +132,8 @@ class HostModel(object): raise OperationFailed('KCHPKGUPD0001E') wok_log.debug('Host is going to be updated.') - taskid = add_task('/host/swupdate', swupdate.doUpdate, self.objstore, - None) + taskid = add_task('/plugins/kimchi/host/swupdate', swupdate.doUpdate, + self.objstore, None) return self.task.lookup(taskid) def shutdown(self, args=None): diff --git a/plugins/kimchi/model/networks.py b/plugins/kimchi/model/networks.py index 594bfca..3723e4c 100644 --- a/plugins/kimchi/model/networks.py +++ b/plugins/kimchi/model/networks.py @@ -27,7 +27,7 @@ from xml.sax.saxutils import escape from wok import netinfo from wok import network as knetwork -from wok.config import paths +from wok.config import PluginPaths from wok.exception import InvalidOperation, InvalidParameter from wok.exception import MissingParameter, NotFoundError, OperationFailed from ..osinfo import defaults as tmpl_defaults @@ -52,7 +52,7 @@ class NetworksModel(object): conn = self.conn.get() error_msg = ("Please, check the configuration in %s/template.conf to " - "ensure it lists only valid networks." % paths.conf_dir) + "ensure it lists only valid networks." % PluginPaths('kimchi').conf_dir) for net_name in networks: try: diff --git a/plugins/kimchi/model/storagepools.py b/plugins/kimchi/model/storagepools.py index 2514ce4..51269da 100644 --- a/plugins/kimchi/model/storagepools.py +++ b/plugins/kimchi/model/storagepools.py @@ -23,7 +23,7 @@ import sys from lxml.builder import E -from wok.config import config, paths +from wok.config import config, PluginPaths from ..scan import Scanner from wok.exception import InvalidOperation, MissingParameter from wok.exception import NotFoundError, OperationFailed @@ -82,7 +82,8 @@ class StoragePoolsModel(object): pools['ISO'] = {'path': '/var/lib/kimchi/isos'} error_msg = ("Please, check the configuration in %s/template.conf to " - "ensure it has a valid storage pool." % paths.conf_dir) + "ensure it has a valid storage pool." % + PluginPaths('kimchi').conf_dir) conn = self.conn.get() for pool_name in pools: @@ -232,7 +233,7 @@ class StoragePoolsModel(object): params['path'] = self.scanner.scan_dir_prepare(params['name']) scan_params['pool_path'] = params['path'] - task_id = add_task('/storagepools/%s' % ISO_POOL_NAME, + task_id = add_task('/plugins/kimchi/storagepools/%s' % ISO_POOL_NAME, self.scanner.start_scan, self.objstore, scan_params) # Record scanning-task/storagepool mapping for future querying try: diff --git a/plugins/kimchi/model/storagevolumes.py b/plugins/kimchi/model/storagevolumes.py index 908fbc4..6bc203a 100644 --- a/plugins/kimchi/model/storagevolumes.py +++ b/plugins/kimchi/model/storagevolumes.py @@ -114,7 +114,7 @@ class StorageVolumesModel(object): raise InvalidParameter('KCHVOL0001E', {'name': name}) params['pool'] = pool_name - targeturi = '/storagepools/%s/storagevolumes/%s' % (pool_name, name) + targeturi = '/plugins/kimchi/storagepools/%s/storagevolumes/%s' % (pool_name, name) taskid = add_task(targeturi, create_func, self.objstore, params) return self.task.lookup(taskid) @@ -403,7 +403,7 @@ class StorageVolumeModel(object): 'name': name, 'new_pool': new_pool, 'new_name': new_name} - taskid = add_task(u'/storagepools/%s/storagevolumes/%s' % + taskid = add_task(u'/plugins/kimchi/storagepools/%s/storagevolumes/%s' % (pool, new_name), self._clone_task, self.objstore, params) return self.task.lookup(taskid) diff --git a/plugins/kimchi/model/vms.py b/plugins/kimchi/model/vms.py index 2e9721d..96e5084 100644 --- a/plugins/kimchi/model/vms.py +++ b/plugins/kimchi/model/vms.py @@ -107,7 +107,7 @@ class VMsModel(object): t.validate() data = {'name': name, 'template': t, 'graphics': params.get('graphics', {})} - taskid = add_task(u'/vms/%s' % name, self._create_task, + taskid = add_task(u'/plugins/kimchi/vms/%s' % name, self._create_task, self.objstore, data) return self.task.lookup(taskid) @@ -245,16 +245,17 @@ class VMModel(object): task_names = session.get_list('task') for tn in task_names: t = session.get('task', tn) - if t['target_uri'].startswith('/vms/'): - uri_name = t['target_uri'][5:] # 5 = len('/vms/') + if t['target_uri'].startswith('/plugins/kimchi/vms/'): + uri_name = t['target_uri'].lstrip('/plugins/kimchi/vms/') vms_being_created.append(uri_name) current_vm_names = self.vms.get_list() + vms_being_created new_name = get_next_clone_name(current_vm_names, name) # create a task with the actual clone function - taskid = add_task(u'/vms/%s/clone' % new_name, self._clone_task, - self.objstore, {'name': name, 'new_name': new_name}) + taskid = add_task(u'/plugins/kimchi/vms/%s/clone' % new_name, + self._clone_task, self.objstore, + {'name': name, 'new_name': new_name}) return self.task.lookup(taskid) diff --git a/plugins/kimchi/model/vmsnapshots.py b/plugins/kimchi/model/vmsnapshots.py index 60de253..0724adc 100644 --- a/plugins/kimchi/model/vmsnapshots.py +++ b/plugins/kimchi/model/vmsnapshots.py @@ -72,8 +72,8 @@ class VMSnapshotsModel(object): name = params.get('name', unicode(int(time.time()))) task_params = {'vm_name': vm_name, 'name': name} - taskid = add_task(u'/vms/%s/snapshots/%s' % (vm_name, name), - self._create_task, self.objstore, task_params) + taskid = add_task(u'/plugins/kimchi/vms/%s/snapshots/%s' % (vm_name, + name), self._create_task, self.objstore, task_params) return self.task.lookup(taskid) def _create_task(self, cb, params): diff --git a/plugins/kimchi/osinfo.py b/plugins/kimchi/osinfo.py index d2aab71..5fe1e07 100644 --- a/plugins/kimchi/osinfo.py +++ b/plugins/kimchi/osinfo.py @@ -26,7 +26,7 @@ from collections import defaultdict from configobj import ConfigObj from distutils.version import LooseVersion -from wok.config import paths +from wok.config import PluginPaths SUPPORTED_ARCHS = {'x86': ('i386', 'i686', 'x86_64'), @@ -86,7 +86,7 @@ modern_version_bases = {'x86': {'debian': '6.0', 'ubuntu': '7.10', icon_available_distros = [icon[5:-4] for icon in glob.glob1('%s/images/' - % paths.ui_dir, 'icon-*.png')] + % PluginPaths('kimchi').ui_dir, 'icon-*.png')] def _get_tmpl_defaults(): @@ -116,7 +116,7 @@ def _get_tmpl_defaults(): default_config = ConfigObj(tmpl_defaults) # Load template configuration file - config_file = os.path.join(paths.conf_dir, 'template.conf') + config_file = os.path.join(PluginPaths('kimchi').conf_dir, 'template.conf') config = ConfigObj(config_file) # Merge default configuration with file configuration @@ -133,7 +133,8 @@ def _get_tmpl_defaults(): # Parse storage section to get storage pool and disks values storage_section = default_config.pop('storage') - defaults['storagepool'] = '/storagepools/' + storage_section.pop('pool') + defaults['storagepool'] = '/plugins/kimchi/storagepools/' + \ + storage_section.pop('pool') defaults['disks'] = [] for disk in storage_section.keys(): data = storage_section[disk] @@ -206,8 +207,9 @@ def lookup(distro, version): params.update(custom_specs.get(distro, {}).get(version, {})) if distro in icon_available_distros: - params['icon'] = 'images/icon-%s.png' % distro + params['icon'] = 'plugins/kimchi/images/icon-%s.png' % distro else: - params['icon'] = 'images/icon-vm.png' + params['icon'] = 'plugins/kimchi/images/icon-vm.png' + return params diff --git a/plugins/kimchi/screenshot.py b/plugins/kimchi/screenshot.py index 05701dd..1cac964 100644 --- a/plugins/kimchi/screenshot.py +++ b/plugins/kimchi/screenshot.py @@ -68,7 +68,7 @@ class VMScreenshot(object): if now - last_update > self.OUTDATED_SECS: self._clean_extra(self.LIVE_WINDOW) self._generate_thumbnail() - return '/data/screenshots/%s' %\ + return 'plugins/kimchi/data/screenshots/%s' %\ os.path.basename(self.info['thumbnail']) def _clean_extra(self, window=-1): diff --git a/plugins/kimchi/tests/test_authorization.py b/plugins/kimchi/tests/test_authorization.py index 6513b67..695b512 100644 --- a/plugins/kimchi/tests/test_authorization.py +++ b/plugins/kimchi/tests/test_authorization.py @@ -64,62 +64,62 @@ class AuthorizationTests(unittest.TestCase): def test_nonroot_access(self): # Non-root users can access static host information - resp = self.request('/host', '{}', 'GET') + resp = self.request('/plugins/kimchi/host', '{}', 'GET') self.assertEquals(403, resp.status) # Non-root users can access host stats - resp = self.request('/host/stats', '{}', 'GET') + resp = self.request('/plugins/kimchi/host/stats', '{}', 'GET') self.assertEquals(403, resp.status) # Non-root users can not reboot/shutdown host system - resp = self.request('/host/reboot', '{}', 'POST') + resp = self.request('/plugins/kimchi/host/reboot', '{}', 'POST') self.assertEquals(403, resp.status) - resp = self.request('/host/shutdown', '{}', 'POST') + resp = self.request('/plugins/kimchi/host/shutdown', '{}', 'POST') self.assertEquals(403, resp.status) # Non-root users can not get or debug reports - resp = self.request('/debugreports', '{}', 'GET') + resp = self.request('/plugins/kimchi/debugreports', '{}', 'GET') self.assertEquals(403, resp.status) - resp = self.request('/debugreports', '{}', 'POST') + resp = self.request('/plugins/kimchi/debugreports', '{}', 'POST') self.assertEquals(403, resp.status) # Non-root users can not create or delete network (only get) - resp = self.request('/networks', '{}', 'GET') + resp = self.request('/plugins/kimchi/networks', '{}', 'GET') self.assertEquals(200, resp.status) - resp = self.request('/networks', '{}', 'POST') + resp = self.request('/plugins/kimchi/networks', '{}', 'POST') self.assertEquals(403, resp.status) - resp = self.request('/networks/default/activate', '{}', 'POST') + resp = self.request('/plugins/kimchi/networks/default/activate', '{}', 'POST') self.assertEquals(403, resp.status) - resp = self.request('/networks/default', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/networks/default', '{}', 'DELETE') self.assertEquals(403, resp.status) # Non-root users can not create or delete storage pool (only get) - resp = self.request('/storagepools', '{}', 'GET') + resp = self.request('/plugins/kimchi/storagepools', '{}', 'GET') self.assertEquals(200, resp.status) - resp = self.request('/storagepools', '{}', 'POST') + resp = self.request('/plugins/kimchi/storagepools', '{}', 'POST') self.assertEquals(403, resp.status) - resp = self.request('/storagepools/default/activate', '{}', 'POST') + resp = self.request('/plugins/kimchi/storagepools/default/activate', '{}', 'POST') self.assertEquals(403, resp.status) - resp = self.request('/storagepools/default', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/storagepools/default', '{}', 'DELETE') self.assertEquals(403, resp.status) # Non-root users can not update or delete a template # but he can get and create a new one - resp = self.request('/templates', '{}', 'GET') + resp = self.request('/plugins/kimchi/templates', '{}', 'GET') self.assertEquals(403, resp.status) req = json.dumps({'name': 'test', 'cdrom': fake_iso}) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(403, resp.status) - resp = self.request('/templates/test', '{}', 'PUT') + resp = self.request('/plugins/kimchi/templates/test', '{}', 'PUT') self.assertEquals(403, resp.status) - resp = self.request('/templates/test', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/templates/test', '{}', 'DELETE') self.assertEquals(403, resp.status) # Non-root users can only get vms authorized to them model.templates_create({'name': u'test', 'cdrom': fake_iso}) task_info = model.vms_create({'name': u'test-me', - 'template': '/templates/test'}) + 'template': '/plugins/kimchi/templates/test'}) wait_task(model.task_lookup, task_info['id']) model.vm_update(u'test-me', @@ -127,39 +127,39 @@ class AuthorizationTests(unittest.TestCase): 'groups': []}) task_info = model.vms_create({'name': u'test-usera', - 'template': '/templates/test'}) + 'template': '/plugins/kimchi/templates/test'}) wait_task(model.task_lookup, task_info['id']) non_root = list(set(model.users_get_list()) - set(['root']))[0] model.vm_update(u'test-usera', {'users': [non_root], 'groups': []}) task_info = model.vms_create({'name': u'test-groupa', - 'template': '/templates/test'}) + 'template': '/plugins/kimchi/templates/test'}) wait_task(model.task_lookup, task_info['id']) a_group = model.groups_get_list()[0] model.vm_update(u'test-groupa', {'groups': [a_group]}) - resp = self.request('/vms', '{}', 'GET') + resp = self.request('/plugins/kimchi/vms', '{}', 'GET') self.assertEquals(200, resp.status) vms_data = json.loads(resp.read()) self.assertEquals([u'test-groupa', u'test-me'], sorted([v['name'] for v in vms_data])) - resp = self.request('/vms', req, 'POST') + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(403, resp.status) # Create a vm using mockmodel directly to test Resource access task_info = model.vms_create({'name': 'kimchi-test', - 'template': '/templates/test'}) + 'template': '/plugins/kimchi/templates/test'}) wait_task(model.task_lookup, task_info['id']) - resp = self.request('/vms/kimchi-test', '{}', 'PUT') + resp = self.request('/plugins/kimchi/vms/kimchi-test', '{}', 'PUT') self.assertEquals(403, resp.status) - resp = self.request('/vms/kimchi-test', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/vms/kimchi-test', '{}', 'DELETE') self.assertEquals(403, resp.status) # Non-root users can only update VMs authorized by them - resp = self.request('/vms/test-me/start', '{}', 'POST') + resp = self.request('/plugins/kimchi/vms/test-me/start', '{}', 'POST') self.assertEquals(200, resp.status) - resp = self.request('/vms/test-usera/start', '{}', 'POST') + resp = self.request('/plugins/kimchi/vms/test-usera/start', '{}', 'POST') self.assertEquals(403, resp.status) model.template_delete('test') diff --git a/plugins/kimchi/tests/test_exception.py b/plugins/kimchi/tests/test_exception.py index 834a275..32b6baf 100644 --- a/plugins/kimchi/tests/test_exception.py +++ b/plugins/kimchi/tests/test_exception.py @@ -57,7 +57,7 @@ class ExceptionTests(unittest.TestCase): """ setup_server('production') # test 404 - resp = json.loads(request(host, ssl_port, '/vms/blah').read()) + resp = json.loads(request(host, ssl_port, '/plugins/kimchi/vms/blah').read()) self.assertEquals('404 Not Found', resp.get('code')) # test 405 wrong method @@ -67,7 +67,7 @@ class ExceptionTests(unittest.TestCase): self.assertEquals(msg, resp.get('reason')) # test 400 parse error - resp = json.loads(request(host, ssl_port, '/vms', '{', 'POST').read()) + resp = json.loads(request(host, ssl_port, '/plugins/kimchi/vms', '{', 'POST').read()) msg = u'KCHAPI0006E: Unable to parse JSON request' self.assertEquals('400 Bad Request', resp.get('code')) self.assertEquals(msg, resp.get('reason')) @@ -75,7 +75,7 @@ class ExceptionTests(unittest.TestCase): # test 400 missing required parameter req = json.dumps({}) - resp = json.loads(request(host, ssl_port, '/vms', req, 'POST').read()) + resp = json.loads(request(host, ssl_port, '/plugins/kimchi/vms', req, 'POST').read()) self.assertEquals('400 Bad Request', resp.get('code')) m = u"KCHVM0016E: Specify a template to create a virtual machine from" self.assertEquals(m, resp.get('reason')) @@ -87,7 +87,7 @@ class ExceptionTests(unittest.TestCase): """ setup_server() # test 404 - resp = json.loads(request(host, ssl_port, '/vms/blah').read()) + resp = json.loads(request(host, ssl_port, '/plugins/kimchi/vms/blah').read()) self.assertEquals('404 Not Found', resp.get('code')) # test 405 wrong method @@ -97,7 +97,7 @@ class ExceptionTests(unittest.TestCase): self.assertEquals(msg, resp.get('reason')) # test 400 parse error - resp = json.loads(request(host, ssl_port, '/vms', '{', 'POST').read()) + resp = json.loads(request(host, ssl_port, '/plugins/kimchi/vms', '{', 'POST').read()) msg = u'KCHAPI0006E: Unable to parse JSON request' self.assertEquals('400 Bad Request', resp.get('code')) self.assertEquals(msg, resp.get('reason')) @@ -105,7 +105,7 @@ class ExceptionTests(unittest.TestCase): # test 400 missing required parameter req = json.dumps({}) - resp = json.loads(request(host, ssl_port, '/vms', req, 'POST').read()) + resp = json.loads(request(host, ssl_port, '/plugins/kimchi/vms', req, 'POST').read()) m = u"KCHVM0016E: Specify a template to create a virtual machine from" self.assertEquals('400 Bad Request', resp.get('code')) self.assertEquals(m, resp.get('reason')) diff --git a/plugins/kimchi/tests/test_host.py b/plugins/kimchi/tests/test_host.py index 7770148..5a18490 100644 --- a/plugins/kimchi/tests/test_host.py +++ b/plugins/kimchi/tests/test_host.py @@ -62,7 +62,7 @@ class HostTests(unittest.TestCase): self.request = partial(request, host, ssl_port) def test_hostinfo(self): - resp = self.request('/host').read() + resp = self.request('/plugins/kimchi/host').read() info = json.loads(resp) keys = ['os_distro', 'os_version', 'os_codename', 'cpu_model', 'memory', 'cpus'] @@ -78,7 +78,7 @@ class HostTests(unittest.TestCase): time.sleep(1) stats_keys = ['cpu_utilization', 'memory', 'disk_read_rate', 'disk_write_rate', 'net_recv_rate', 'net_sent_rate'] - resp = self.request('/host/stats').read() + resp = self.request('/plugins/kimchi/host/stats').read() stats = json.loads(resp) self.assertEquals(sorted(stats_keys), sorted(stats.keys())) @@ -94,41 +94,43 @@ class HostTests(unittest.TestCase): self.assertIn('buffers', memory_stats) self.assertIn('avail', memory_stats) - resp = self.request('/host/stats/history').read() + resp = self.request('/plugins/kimchi/host/stats/history').read() history = json.loads(resp) self.assertEquals(sorted(stats_keys), sorted(history.keys())) def test_host_actions(self): def _task_lookup(taskid): - return json.loads(self.request('/tasks/%s' % taskid).read()) + return json.loads(self.request('/plugins/kimchi/tasks/%s' % + taskid).read()) - resp = self.request('/host/shutdown', '{}', 'POST') + resp = self.request('/plugins/kimchi/host/shutdown', '{}', 'POST') self.assertEquals(200, resp.status) - resp = self.request('/host/reboot', '{}', 'POST') + resp = self.request('/plugins/kimchi/host/reboot', '{}', 'POST') self.assertEquals(200, resp.status) # Test system update - resp = self.request('/host/packagesupdate', None, 'GET') + resp = self.request('/plugins/kimchi/host/packagesupdate', None, 'GET') pkgs = json.loads(resp.read()) self.assertEquals(3, len(pkgs)) pkg_keys = ['package_name', 'repository', 'arch', 'version'] for p in pkgs: name = p['package_name'] - resp = self.request('/host/packagesupdate/' + name, None, 'GET') + resp = self.request('/plugins/kimchi/host/packagesupdate/' + name, + None, 'GET') info = json.loads(resp.read()) self.assertEquals(sorted(pkg_keys), sorted(info.keys())) - resp = self.request('/host/swupdate', '{}', 'POST') + resp = self.request('/plugins/kimchi/host/swupdate', '{}', 'POST') task = json.loads(resp.read()) task_params = [u'id', u'message', u'status', u'target_uri'] self.assertEquals(sorted(task_params), sorted(task.keys())) - resp = self.request('/tasks/' + task[u'id'], None, 'GET') + resp = self.request('/plugins/kimchi/tasks/' + task[u'id'], None, 'GET') task_info = json.loads(resp.read()) self.assertEquals(task_info['status'], 'running') wait_task(_task_lookup, task_info['id']) - resp = self.request('/tasks/' + task[u'id'], None, 'GET') + resp = self.request('/plugins/kimchi/tasks/' + task[u'id'], None, 'GET') task_info = json.loads(resp.read()) self.assertEquals(task_info['status'], 'finished') self.assertIn(u'All packages updated', task_info['message']) @@ -136,14 +138,15 @@ class HostTests(unittest.TestCase): self.assertEquals(0, len(pkgs)) def test_host_partitions(self): - resp = self.request('/host/partitions') + resp = self.request('/plugins/kimchi/host/partitions') self.assertEquals(200, resp.status) partitions = json.loads(resp.read()) keys = ['name', 'path', 'type', 'fstype', 'size', 'mountpoint', 'available'] for item in partitions: - resp = self.request('/host/partitions/%s' % item['name']) + resp = self.request('/plugins/kimchi/host/partitions/%s' % + item['name']) info = json.loads(resp.read()) self.assertEquals(sorted(info.keys()), sorted(keys)) @@ -152,33 +155,36 @@ class HostTests(unittest.TestCase): for dev in devices: self.assertEquals(dev['device_type'], dev_type) - resp = self.request('/host/devices?_cap=scsi_host') + resp = self.request('/plugins/kimchi/host/devices?_cap=scsi_host') nodedevs = json.loads(resp.read()) # Mockmodel brings 3 preconfigured scsi fc_host self.assertEquals(3, len(nodedevs)) - nodedev = json.loads(self.request('/host/devices/scsi_host2').read()) + nodedev = json.loads(self.request( + '/plugins/kimchi/host/devices/scsi_host2').read()) # Mockmodel generates random wwpn and wwnn self.assertEquals('scsi_host2', nodedev['name']) self.assertEquals('fc_host', nodedev['adapter']['type']) self.assertEquals(16, len(nodedev['adapter']['wwpn'])) self.assertEquals(16, len(nodedev['adapter']['wwnn'])) - devs = json.loads(self.request('/host/devices').read()) + devs = json.loads(self.request('/plugins/kimchi/host/devices').read()) dev_names = [dev['name'] for dev in devs] for dev_type in ('pci', 'usb_device', 'scsi'): - resp = self.request('/host/devices?_cap=%s' % dev_type) + resp = self.request('/plugins/kimchi/host/devices?_cap=%s' % + dev_type) devsByType = json.loads(resp.read()) names = [dev['name'] for dev in devsByType] self.assertTrue(set(names) <= set(dev_names)) asset_devices_type(devsByType, dev_type) - resp = self.request('/host/devices?_passthrough=true') + resp = self.request('/plugins/kimchi/host/devices?_passthrough=true') passthru_devs = [dev['name'] for dev in json.loads(resp.read())] self.assertTrue(set(passthru_devs) <= set(dev_names)) for dev_type in ('pci', 'usb_device', 'scsi'): - resp = self.request('/host/devices?_cap=%s&_passthrough=true' % + resp = self.request( + '/plugins/kimchi/host/devices?_cap=%s&_passthrough=true' % dev_type) filteredDevs = json.loads(resp.read()) filteredNames = [dev['name'] for dev in filteredDevs] @@ -186,7 +192,8 @@ class HostTests(unittest.TestCase): asset_devices_type(filteredDevs, dev_type) for dev in passthru_devs: - resp = self.request('/host/devices?_passthrough_affected_by=%s' % + resp = self.request( + '/plugins/kimchi/host/devices?_passthrough_affected_by=%s' % dev) affected_devs = [dev['name'] for dev in json.loads(resp.read())] self.assertTrue(set(affected_devs) <= set(dev_names)) diff --git a/plugins/kimchi/tests/test_mock_network.py b/plugins/kimchi/tests/test_mock_network.py index 4e390b1..749b9c3 100644 --- a/plugins/kimchi/tests/test_mock_network.py +++ b/plugins/kimchi/tests/test_mock_network.py @@ -63,7 +63,7 @@ class MockNetworkTests(unittest.TestCase): def test_vlan_tag_bridge(self): # Verify the current system has at least one interface to create a # bridged network - interfaces = json.loads(self.request('/interfaces?type=nic').read()) + interfaces = json.loads(self.request('/plugins/kimchi/interfaces?type=nic').read()) if len(interfaces) > 0: iface = interfaces[0]['name'] _do_network_test(self, model, {'name': u'bridge-network', diff --git a/plugins/kimchi/tests/test_mock_storagepool.py b/plugins/kimchi/tests/test_mock_storagepool.py index c72708b..b96d72d 100644 --- a/plugins/kimchi/tests/test_mock_storagepool.py +++ b/plugins/kimchi/tests/test_mock_storagepool.py @@ -60,15 +60,15 @@ class MockStoragepoolTests(unittest.TestCase): model.reset() def _task_lookup(self, taskid): - return json.loads(self.request('/tasks/%s' % taskid).read()) + return json.loads(self.request('/plugins/kimchi/tasks/%s' % taskid).read()) def test_storagepool(self): # MockModel always returns 2 partitions (vdx, vdz) - partitions = json.loads(self.request('/host/partitions').read()) + partitions = json.loads(self.request('/plugins/kimchi/host/partitions').read()) devs = [dev['path'] for dev in partitions] # MockModel always returns 3 FC devices - fc_devs = json.loads(self.request('/host/devices?_cap=fc_host').read()) + fc_devs = json.loads(self.request('/plugins/kimchi/host/devices?_cap=fc_host').read()) fc_devs = [dev['name'] for dev in fc_devs] poolDefs = [ @@ -87,10 +87,10 @@ class MockStoragepoolTests(unittest.TestCase): def _do_test(params): name = params['name'] - uri = '/storagepools/%s' % name.encode('utf-8') + uri = '/plugins/kimchi/storagepools/%s' % name.encode('utf-8') req = json.dumps(params) - resp = self.request('/storagepools', req, 'POST') + resp = self.request('/plugins/kimchi/storagepools', req, 'POST') self.assertEquals(201, resp.status) # activate the storage pool diff --git a/plugins/kimchi/tests/test_mock_storagevolume.py b/plugins/kimchi/tests/test_mock_storagevolume.py index 3dd16b7..0065305 100644 --- a/plugins/kimchi/tests/test_mock_storagevolume.py +++ b/plugins/kimchi/tests/test_mock_storagevolume.py @@ -61,11 +61,11 @@ class MockStorageVolumeTests(unittest.TestCase): def test_storagevolume(self): # MockModel always returns 2 partitions (vdx, vdz) - partitions = json.loads(self.request('/host/partitions').read()) + partitions = json.loads(self.request('/plugins/kimchi/host/partitions').read()) devs = [dev['path'] for dev in partitions] # MockModel always returns 3 FC devices - fc_devs = json.loads(self.request('/host/devices?_cap=fc_host').read()) + fc_devs = json.loads(self.request('/plugins/kimchi/host/devices?_cap=fc_host').read()) fc_devs = [dev['name'] for dev in fc_devs] poolDefs = [ @@ -84,9 +84,9 @@ class MockStorageVolumeTests(unittest.TestCase): for pool in poolDefs: pool_name = pool['name'] - uri = '/storagepools/%s' % pool_name.encode('utf-8') + uri = '/plugins/kimchi/storagepools/%s' % pool_name.encode('utf-8') req = json.dumps(pool) - resp = self.request('/storagepools', req, 'POST') + resp = self.request('/plugins/kimchi/storagepools', req, 'POST') self.assertEquals(201, resp.status) # activate the storage pool resp = self.request(uri + '/activate', '{}', 'POST') diff --git a/plugins/kimchi/tests/test_mockmodel.py b/plugins/kimchi/tests/test_mockmodel.py index 03ad445..133a61e 100644 --- a/plugins/kimchi/tests/test_mockmodel.py +++ b/plugins/kimchi/tests/test_mockmodel.py @@ -64,18 +64,18 @@ class MockModelTests(unittest.TestCase): def test_screenshot_refresh(self): # Create a VM req = json.dumps({'name': 'test', 'cdrom': fake_iso}) - request(host, ssl_port, '/templates', req, 'POST') + request(host, ssl_port, '/plugins/kimchi/templates', req, 'POST') req = json.dumps({'name': 'test-vm', 'template': '/templates/test'}) - resp = request(host, ssl_port, '/vms', req, 'POST') + resp = request(host, ssl_port, '/plugins/kimchi/vms', req, 'POST') task = json.loads(resp.read()) wait_task(model.task_lookup, task['id']) # Test screenshot refresh for running vm - request(host, ssl_port, '/vms/test-vm/start', '{}', 'POST') - resp = request(host, ssl_port, '/vms/test-vm/screenshot') + request(host, ssl_port, '/plugins/kimchi/vms/test-vm/start', '{}', 'POST') + resp = request(host, ssl_port, '/plugins/kimchi/vms/test-vm/screenshot') self.assertEquals(200, resp.status) self.assertEquals('image/png', resp.getheader('content-type')) - resp1 = request(host, ssl_port, '/vms/test-vm') + resp1 = request(host, ssl_port, '/plugins/kimchi/vms/test-vm') rspBody = resp1.read() testvm_Data = json.loads(rspBody) screenshotURL = testvm_Data['screenshot'] @@ -91,13 +91,14 @@ class MockModelTests(unittest.TestCase): def test_vm_list_sorted(self): req = json.dumps({'name': 'test', 'cdrom': fake_iso}) - request(host, ssl_port, '/templates', req, 'POST') + request(host, ssl_port, '/plugins/kimchi/templates', req, 'POST') def add_vm(name): # Create a VM - req = json.dumps({'name': name, 'template': '/templates/test'}) - task = json.loads(request(host, ssl_port, '/vms', req, - 'POST').read()) + req = json.dumps({'name': name, + 'template': '/plugins/kimchi/templates/test'}) + task = json.loads(request(host, ssl_port, '/plugins/kimchi/vms', + req, 'POST').read()) wait_task(model.task_lookup, task['id']) vms = [u'abc', u'bca', u'cab', u'xba'] @@ -111,7 +112,7 @@ class MockModelTests(unittest.TestCase): model.templates_create({'name': u'test', 'cdrom': fake_iso}) task = model.vms_create({'name': u'test-vm', - 'template': '/templates/test'}) + 'template': '/plugins/kimchi/templates/test'}) wait_task(model.task_lookup, task['id']) vms = model.vms_get_list() self.assertEquals(2, len(vms)) diff --git a/plugins/kimchi/tests/test_model.py b/plugins/kimchi/tests/test_model.py index 7f90274..157ba62 100644 --- a/plugins/kimchi/tests/test_model.py +++ b/plugins/kimchi/tests/test_model.py @@ -128,7 +128,7 @@ class ModelTests(unittest.TestCase): inst.templates_create(params) rollback.prependDefer(inst.template_delete, 'test') - params = {'name': 'kimchi-vm', 'template': '/templates/test'} + params = {'name': 'kimchi-vm', 'template': '/plugins/kimchi/templates/test'} task = inst.vms_create(params) rollback.prependDefer(inst.vm_delete, 'kimchi-vm') inst.task_wait(task['id'], 10) @@ -264,12 +264,13 @@ class ModelTests(unittest.TestCase): "icon": "images/icon-vm.png", "os_distro": "unknown", "os_version": "unknown", "disks": [{"base": vol_path, "size": 10}], - "storagepool": "/storagepools/default"} + "storagepool": "/plugins/kimchi/storagepools/default"} with inst.objstore as session: session.store('template', tmpl_name, tmpl_info) - params = {'name': 'kimchi-vm', 'template': '/templates/img-tmpl'} + params = {'name': 'kimchi-vm', + 'template': '/plugins/kimchi/templates/img-tmpl'} task = inst.vms_create(params) inst.task_wait(task['id']) rollback.prependDefer(inst.vm_delete, 'kimchi-vm') @@ -289,7 +290,8 @@ class ModelTests(unittest.TestCase): params = {'name': 'test', 'disks': [], 'cdrom': UBUNTU_ISO} inst.templates_create(params) with RollbackContext() as rollback: - params = {'name': 'kimchi-vnc', 'template': '/templates/test'} + params = {'name': 'kimchi-vnc', + 'template': '/plugins/kimchi/templates/test'} task1 = inst.vms_create(params) inst.task_wait(task1['id']) rollback.prependDefer(inst.vm_delete, 'kimchi-vnc') @@ -299,7 +301,7 @@ class ModelTests(unittest.TestCase): self.assertEquals('127.0.0.1', info['graphics']['listen']) graphics = {'type': 'spice', 'listen': '127.0.0.1'} - params = {'name': 'kimchi-spice', 'template': '/templates/test', + params = {'name': 'kimchi-spice', 'template': '/plugins/kimchi/templates/test', 'graphics': graphics} task2 = inst.vms_create(params) inst.task_wait(task2['id']) @@ -330,7 +332,8 @@ class ModelTests(unittest.TestCase): rollback.prependDefer(inst.network_deactivate, net_name) for vm_name in ['kimchi-ifaces', 'kimchi-ifaces-running']: - params = {'name': vm_name, 'template': '/templates/test'} + params = {'name': vm_name, + 'template': '/plugins/kimchi/templates/test'} task = inst.vms_create(params) inst.task_wait(task['id']) rollback.prependDefer(inst.vm_delete, vm_name) @@ -433,7 +436,8 @@ class ModelTests(unittest.TestCase): params = {'name': 'test', 'disks': [], 'cdrom': UBUNTU_ISO} inst.templates_create(params) rollback.prependDefer(inst.template_delete, 'test') - params = {'name': vm_name, 'template': '/templates/test'} + params = {'name': vm_name, + 'template': '/plugins/kimchi/templates/test'} task1 = inst.vms_create(params) inst.task_wait(task1['id']) rollback.prependDefer(inst.vm_delete, vm_name) @@ -477,7 +481,7 @@ class ModelTests(unittest.TestCase): inst.templates_create(params) rollback.prependDefer(inst.template_delete, 'old_distro_template') params = {'name': vm_name, - 'template': '/templates/old_distro_template'} + 'template': '/plugins/kimchi/templates/old_distro_template'} task2 = inst.vms_create(params) inst.task_wait(task2['id']) rollback.prependDefer(inst.vm_delete, vm_name) @@ -499,7 +503,8 @@ class ModelTests(unittest.TestCase): params = {'name': 'test', 'disks': [], 'cdrom': UBUNTU_ISO} inst.templates_create(params) rollback.prependDefer(inst.template_delete, 'test') - params = {'name': vm_name, 'template': '/templates/test'} + params = {'name': vm_name, + 'template': '/plugins/kimchi/templates/test'} task = inst.vms_create(params) inst.task_wait(task['id']) rollback.prependDefer(inst.vm_delete, vm_name) @@ -589,7 +594,8 @@ class ModelTests(unittest.TestCase): inst.templates_create(params) rollback.prependDefer(inst.template_delete, 'test') - params = {'name': 'test-vm-1', 'template': '/templates/test'} + params = {'name': 'test-vm-1', + 'template': '/plugins/kimchi/templates/test'} task = inst.vms_create(params) inst.task_wait(task['id']) rollback.prependDefer(inst.vm_delete, 'test-vm-1') @@ -607,7 +613,8 @@ class ModelTests(unittest.TestCase): inst.templates_create(orig_params) with RollbackContext() as rollback: - params = {'name': 'kimchi-vm1', 'template': '/templates/test'} + params = {'name': 'kimchi-vm1', + 'template': '/plugins/kimchi/templates/test'} task1 = inst.vms_create(params) inst.task_wait(task1['id']) rollback.prependDefer(utils.rollback_wrapper, inst.vm_delete, @@ -639,8 +646,10 @@ class ModelTests(unittest.TestCase): inst.templates_create(orig_params) with RollbackContext() as rollback: - params_1 = {'name': 'kimchi-vm1', 'template': '/templates/test'} - params_2 = {'name': 'kimchi-vm2', 'template': '/templates/test'} + params_1 = {'name': 'kimchi-vm1', + 'template': '/plugins/kimchi/templates/test'} + params_2 = {'name': 'kimchi-vm2', + 'template': '/plugins/kimchi/templates/test'} task1 = inst.vms_create(params_1) inst.task_wait(task1['id']) rollback.prependDefer(utils.rollback_wrapper, inst.vm_delete, @@ -824,7 +833,8 @@ class ModelTests(unittest.TestCase): inst.templates_create(params) rollback.prependDefer(inst.template_delete, 'test') - params = {'name': u'kīмсhī-∨м', 'template': u'/templates/test'} + params = {'name': u'kīмсhī-∨м', + 'template': u'/plugins/kimchi/templates/test'} task = inst.vms_create(params) inst.task_wait(task['id']) rollback.prependDefer(utils.rollback_wrapper, inst.vm_delete, @@ -849,7 +859,8 @@ class ModelTests(unittest.TestCase): inst.templates_create(params) rollback.prependDefer(inst.template_delete, 'test') - params = {'name': 'kimchi-vm', 'template': '/templates/test'} + params = {'name': 'kimchi-vm', + 'template': '/plugins/kimchi/templates/test'} task = inst.vms_create(params) inst.task_wait(task['id']) rollback.prependDefer(inst.vm_delete, 'kimchi-vm') @@ -914,7 +925,7 @@ class ModelTests(unittest.TestCase): with RollbackContext() as rollback: params = {'name': 'test', 'disks': [], 'cdrom': UBUNTU_ISO, - 'storagepool': '/storagepools/default-pool', + 'storagepool': '/plugins/kimchi/storagepools/default-pool', 'domain': 'test', 'arch': 'i686'} @@ -922,7 +933,7 @@ class ModelTests(unittest.TestCase): rollback.prependDefer(inst.template_delete, 'test') params = {'name': 'kimchi-vm', - 'template': '/templates/test'} + 'template': '/plugins/kimchi/templates/test'} task = inst.vms_create(params) inst.task_wait(task['id']) rollback.prependDefer(inst.vm_delete, 'kimchi-vm') diff --git a/plugins/kimchi/tests/test_model_network.py b/plugins/kimchi/tests/test_model_network.py index d557b3c..37f5652 100644 --- a/plugins/kimchi/tests/test_model_network.py +++ b/plugins/kimchi/tests/test_model_network.py @@ -59,11 +59,11 @@ def tearDownModule(): def _do_network_test(self, model, params): with RollbackContext() as rollback: net_name = params['name'] - uri = '/networks/%s' % net_name.encode('utf-8') + uri = '/plugins/kimchi/networks/%s' % net_name.encode('utf-8') # Create a network req = json.dumps(params) - resp = self.request('/networks', req, 'POST') + resp = self.request('/plugins/kimchi/networks', req, 'POST') rollback.prependDefer(rollback_wrapper, model.network_delete, net_name) self.assertEquals(201, resp.status) @@ -100,7 +100,7 @@ class NetworkTests(unittest.TestCase): self.request = partial(request, host, ssl_port) def test_get_networks(self): - networks = json.loads(self.request('/networks').read()) + networks = json.loads(self.request('/plugins/kimchi/networks').read()) self.assertIn('default', [net['name'] for net in networks]) with RollbackContext() as rollback: @@ -111,16 +111,16 @@ class NetworkTests(unittest.TestCase): 'connection': 'nat', 'subnet': '127.0.10%i.0/24' % i}) - resp = self.request('/networks', req, 'POST') + resp = self.request('/plugins/kimchi/networks', req, 'POST') rollback.prependDefer(model.network_delete, name) self.assertEquals(201, resp.status) network = json.loads(resp.read()) self.assertEquals([], network["vms"]) - nets = json.loads(self.request('/networks').read()) + nets = json.loads(self.request('/plugins/kimchi/networks').read()) self.assertEquals(len(networks) + 5, len(nets)) - network = json.loads(self.request('/networks/network-1').read()) + network = json.loads(self.request('/plugins/kimchi/networks/network-1').read()) keys = [u'name', u'connection', u'interface', u'subnet', u'dhcp', u'vms', u'in_use', u'autostart', u'state', u'persistent'] self.assertEquals(sorted(keys), sorted(network.keys())) @@ -134,7 +134,7 @@ class NetworkTests(unittest.TestCase): # Verify the current system has at least one interface to create a # bridged network - interfaces = json.loads(self.request('/interfaces?type=nic').read()) + interfaces = json.loads(self.request('/plugins/kimchi/interfaces?type=nic').read()) if len(interfaces) > 0: iface = interfaces[0]['name'] networks.append({'name': u'bridge-network', 'connection': 'bridge', diff --git a/plugins/kimchi/tests/test_model_storagepool.py b/plugins/kimchi/tests/test_model_storagepool.py index a01adc0..1326731 100644 --- a/plugins/kimchi/tests/test_model_storagepool.py +++ b/plugins/kimchi/tests/test_model_storagepool.py @@ -61,7 +61,7 @@ class StoragepoolTests(unittest.TestCase): self.request = partial(request, host, ssl_port) def test_get_storagepools(self): - storagepools = json.loads(self.request('/storagepools').read()) + storagepools = json.loads(self.request('/plugins/kimchi/storagepools').read()) self.assertIn('default', [pool['name'] for pool in storagepools]) with RollbackContext() as rollback: @@ -70,7 +70,7 @@ class StoragepoolTests(unittest.TestCase): name = u'kīмсhī-storagepool-%i' % i req = json.dumps({'name': name, 'type': 'dir', 'path': '/var/lib/libvirt/images/%i' % i}) - resp = self.request('/storagepools', req, 'POST') + resp = self.request('/plugins/kimchi/storagepools', req, 'POST') rollback.prependDefer(model.storagepool_delete, name) self.assertEquals(201, resp.status) @@ -78,11 +78,11 @@ class StoragepoolTests(unittest.TestCase): # Pool name must be unique req = json.dumps({'name': name, 'type': 'dir', 'path': '/var/lib/libvirt/images/%i' % i}) - resp = self.request('/storagepools', req, 'POST') + resp = self.request('/plugins/kimchi/storagepools', req, 'POST') self.assertEquals(400, resp.status) # Verify pool information - resp = self.request('/storagepools/%s' % name.encode("utf-8")) + resp = self.request('/plugins/kimchi/storagepools/%s' % name.encode("utf-8")) p = json.loads(resp.read()) keys = [u'name', u'state', u'capacity', u'allocated', u'available', u'path', u'source', u'type', @@ -94,11 +94,11 @@ class StoragepoolTests(unittest.TestCase): self.assertEquals(True, p['autostart']) self.assertEquals(0, p['nr_volumes']) - pools = json.loads(self.request('/storagepools').read()) + pools = json.loads(self.request('/plugins/kimchi/storagepools').read()) self.assertEquals(len(storagepools) + 3, len(pools)) # Reserved pool return 400 req = json.dumps({'name': 'kimchi_isos', 'type': 'dir', 'path': '/var/lib/libvirt/images/%i' % i}) - resp = request(host, ssl_port, '/storagepools', req, 'POST') + resp = request(host, ssl_port, '/plugins/kimchi/storagepools', req, 'POST') self.assertEquals(400, resp.status) diff --git a/plugins/kimchi/tests/test_model_storagevolume.py b/plugins/kimchi/tests/test_model_storagevolume.py index d47b4e3..103948e 100644 --- a/plugins/kimchi/tests/test_model_storagevolume.py +++ b/plugins/kimchi/tests/test_model_storagevolume.py @@ -62,13 +62,13 @@ def tearDownModule(): def _do_volume_test(self, model, host, ssl_port, pool_name): def _task_lookup(taskid): - return json.loads(self.request('/tasks/%s' % taskid).read()) + return json.loads(self.request('/plugins/kimchi/tasks/%s' % taskid).read()) - uri = '/storagepools/%s/storagevolumes' % pool_name.encode('utf-8') + uri = '/plugins/kimchi/storagepools/%s/storagevolumes' % pool_name.encode('utf-8') resp = self.request(uri) self.assertEquals(200, resp.status) - resp = self.request('/storagepools/%s' % pool_name.encode('utf-8')) + resp = self.request('/plugins/kimchi/storagepools/%s' % pool_name.encode('utf-8')) pool_info = json.loads(resp.read()) with RollbackContext() as rollback: # Create storage volume with 'capacity' @@ -85,7 +85,7 @@ def _do_volume_test(self, model, host, ssl_port, pool_name): self.assertEquals(202, resp.status) task_id = json.loads(resp.read())['id'] wait_task(_task_lookup, task_id) - status = json.loads(self.request('/tasks/%s' % task_id).read()) + status = json.loads(self.request('/plugins/kimchi/tasks/%s' % task_id).read()) self.assertEquals('finished', status['status']) vol_info = json.loads(self.request(vol_uri).read()) vol_info['name'] = vol @@ -129,7 +129,7 @@ def _do_volume_test(self, model, host, ssl_port, pool_name): rollback.prependDefer(model.storagevolume_delete, pool_name, cloned_vol_name) wait_task(_task_lookup, task['id']) - task = json.loads(self.request('/tasks/%s' % task['id']).read()) + task = json.loads(self.request('/plugins/kimchi/tasks/%s' % task['id']).read()) self.assertEquals('finished', task['status']) resp = self.request(uri + '/' + cloned_vol_name.encode('utf-8')) @@ -168,7 +168,8 @@ def _do_volume_test(self, model, host, ssl_port, pool_name): self.assertEquals(202, resp.status) task_id = json.loads(resp.read())['id'] wait_task(_task_lookup, task_id) - status = json.loads(self.request('/tasks/%s' % task_id).read()) + status = json.loads(self.request('/plugins/kimchi/tasks/%s' % + task_id).read()) self.assertEquals('ready for upload', status['message']) # Upload volume content @@ -249,7 +250,7 @@ class StorageVolumeTests(unittest.TestCase): self.request = partial(request, host, ssl_port) def test_get_storagevolume(self): - uri = '/storagepools/default/storagevolumes' + uri = '/plugins/kimchi/storagepools/default/storagevolumes' resp = self.request(uri) self.assertEquals(200, resp.status) diff --git a/plugins/kimchi/tests/test_rest.py b/plugins/kimchi/tests/test_rest.py index f390abb..69db7a7 100644 --- a/plugins/kimchi/tests/test_rest.py +++ b/plugins/kimchi/tests/test_rest.py @@ -96,14 +96,14 @@ class RestTests(unittest.TestCase): self.assertEquals(code, resp.status) def test_get_vms(self): - vms = json.loads(self.request('/vms').read()) + vms = json.loads(self.request('/plugins/kimchi/vms').read()) # test_rest.py uses MockModel() which connects to libvirt URI # test:///default. By default this driver already has one VM created self.assertEquals(1, len(vms)) # Create a template as a base for our VMs req = json.dumps({'name': 'test', 'cdrom': fake_iso}) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) test_users = ['root'] @@ -111,17 +111,17 @@ class RestTests(unittest.TestCase): # Now add a couple of VMs to the mock model for i in xrange(10): name = 'vm-%i' % i - req = json.dumps({'name': name, 'template': '/templates/test', + req = json.dumps({'name': name, 'template': '/plugins/kimchi/templates/test', 'users': test_users, 'groups': test_groups}) - resp = self.request('/vms', req, 'POST') + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) wait_task(self._task_lookup, task['id']) - vms = json.loads(self.request('/vms').read()) + vms = json.loads(self.request('/plugins/kimchi/vms').read()) self.assertEquals(11, len(vms)) - vm = json.loads(self.request('/vms/vm-1').read()) + vm = json.loads(self.request('/plugins/kimchi/vms/vm-1').read()) self.assertEquals('vm-1', vm['name']) self.assertEquals('shutoff', vm['state']) self.assertEquals([], vm['users']) @@ -129,123 +129,124 @@ class RestTests(unittest.TestCase): def test_edit_vm(self): req = json.dumps({'name': 'test', 'cdrom': fake_iso}) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) - req = json.dumps({'name': 'vm-1', 'template': '/templates/test'}) - resp = self.request('/vms', req, 'POST') + req = json.dumps({'name': 'vm-1', + 'template': '/plugins/kimchi/templates/test'}) + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) wait_task(self._task_lookup, task['id']) - vm = json.loads(self.request('/vms/vm-1').read()) + vm = json.loads(self.request('/plugins/kimchi/vms/vm-1').read()) self.assertEquals('vm-1', vm['name']) - resp = self.request('/vms/vm-1/start', '{}', 'POST') + resp = self.request('/plugins/kimchi/vms/vm-1/start', '{}', 'POST') self.assertEquals(200, resp.status) req = json.dumps({'unsupported-attr': 'attr'}) - resp = self.request('/vms/vm-1', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/vm-1', req, 'PUT') self.assertEquals(400, resp.status) req = json.dumps({'name': 'new-vm'}) - resp = self.request('/vms/vm-1', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/vm-1', req, 'PUT') self.assertEquals(400, resp.status) req = json.dumps({'cpus': 3}) - resp = self.request('/vms/vm-1', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/vm-1', req, 'PUT') self.assertEquals(200, resp.status) # Check if there is support to memory hotplug, once vm is running - resp = self.request('/config/capabilities').read() + resp = self.request('/plugins/kimchi/config/capabilities').read() conf = json.loads(resp) req = json.dumps({'memory': 2048}) - resp = self.request('/vms/vm-1', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/vm-1', req, 'PUT') if conf['mem_hotplug_support']: self.assertEquals(200, resp.status) else: self.assertEquals(400, resp.status) req = json.dumps({"graphics": {'passwd': "abcdef"}}) - resp = self.request('/vms/vm-1', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/vm-1', req, 'PUT') info = json.loads(resp.read()) self.assertEquals('abcdef', info["graphics"]["passwd"]) self.assertEquals(None, info["graphics"]["passwdValidTo"]) - resp = self.request('/vms/vm-1/poweroff', '{}', 'POST') + resp = self.request('/plugins/kimchi/vms/vm-1/poweroff', '{}', 'POST') self.assertEquals(200, resp.status) req = json.dumps({"graphics": {'passwd': "123456", 'passwdValidTo': 20}}) - resp = self.request('/vms/vm-1', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/vm-1', req, 'PUT') info = json.loads(resp.read()) self.assertEquals('123456', info["graphics"]["passwd"]) self.assertGreaterEqual(20, info["graphics"]["passwdValidTo"]) req = json.dumps({'name': 12}) - resp = self.request('/vms/vm-1', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/vm-1', req, 'PUT') self.assertEquals(400, resp.status) req = json.dumps({'name': ''}) - resp = self.request('/vms/vm-1', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/vm-1', req, 'PUT') self.assertEquals(400, resp.status) req = json.dumps({'cpus': -2}) - resp = self.request('/vms/vm-1', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/vm-1', req, 'PUT') self.assertEquals(400, resp.status) req = json.dumps({'cpus': 'four'}) - resp = self.request('/vms/vm-1', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/vm-1', req, 'PUT') self.assertEquals(400, resp.status) req = json.dumps({'memory': 100}) - resp = self.request('/vms/vm-1', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/vm-1', req, 'PUT') self.assertEquals(400, resp.status) req = json.dumps({'memory': 'ten gigas'}) - resp = self.request('/vms/vm-1', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/vm-1', req, 'PUT') self.assertEquals(400, resp.status) req = json.dumps({'name': 'new-name', 'cpus': 5, 'UUID': 'notallowed'}) - resp = self.request('/vms/vm-1', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/vm-1', req, 'PUT') self.assertEquals(400, resp.status) params = {'name': u'∨м-црdαtеd', 'cpus': 5, 'memory': 3072} req = json.dumps(params) - resp = self.request('/vms/vm-1', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/vm-1', req, 'PUT') self.assertEquals(303, resp.status) - vm = json.loads(self.request('/vms/∨м-црdαtеd', req).read()) + vm = json.loads(self.request('/plugins/kimchi/vms/∨м-црdαtеd', req).read()) for key in params.keys(): self.assertEquals(params[key], vm[key]) # change only VM users - groups are not changed (default is empty) - resp = self.request('/users', '{}', 'GET') + resp = self.request('/plugins/kimchi/users', '{}', 'GET') users = json.loads(resp.read()) req = json.dumps({'users': users}) - resp = self.request('/vms/∨м-црdαtеd', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/∨м-црdαtеd', req, 'PUT') self.assertEquals(200, resp.status) - info = json.loads(self.request('/vms/∨м-црdαtеd', '{}').read()) + info = json.loads(self.request('/plugins/kimchi/vms/∨м-црdαtеd', '{}').read()) self.assertEquals(users, info['users']) # change only VM groups - users are not changed (default is empty) - resp = self.request('/groups', '{}', 'GET') + resp = self.request('/plugins/kimchi/groups', '{}', 'GET') groups = json.loads(resp.read()) req = json.dumps({'groups': groups}) - resp = self.request('/vms/∨м-црdαtеd', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/∨м-црdαtеd', req, 'PUT') self.assertEquals(200, resp.status) - info = json.loads(self.request('/vms/∨м-црdαtеd', '{}').read()) + info = json.loads(self.request('/plugins/kimchi/vms/∨м-црdαtеd', '{}').read()) self.assertEquals(groups, info['groups']) # change VM users (wrong value) and groups # when an error occurs, everything fails and nothing is changed req = json.dumps({'users': ['userdoesnotexist'], 'groups': []}) - resp = self.request('/vms/∨м-црdαtеd', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/∨м-црdαtеd', req, 'PUT') self.assertEquals(400, resp.status) # change VM users and groups (wrong value) # when an error occurs, everything fails and nothing is changed req = json.dumps({'users': [], 'groups': ['groupdoesnotexist']}) - resp = self.request('/vms/∨м-црdαtеd', req, 'PUT') + resp = self.request('/plugins/kimchi/vms/∨м-црdαtеd', req, 'PUT') self.assertEquals(400, resp.status) def test_vm_lifecycle(self): @@ -253,31 +254,32 @@ class RestTests(unittest.TestCase): req = json.dumps({'name': 'test', 'disks': [{'size': 1}], 'icon': 'images/icon-debian.png', 'cdrom': fake_iso}) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) # Create a VM - req = json.dumps({'name': 'test-vm', 'template': '/templates/test'}) - resp = self.request('/vms', req, 'POST') + req = json.dumps({'name': 'test-vm', + 'template': '/plugins/kimchi/templates/test'}) + resp = self.request('/plugins/kimchi/vms', req, 'POST') task = json.loads(resp.read()) wait_task(self._task_lookup, task['id']) self.assertEquals(202, resp.status) # Verify the VM - vm = json.loads(self.request('/vms/test-vm').read()) + vm = json.loads(self.request('/plugins/kimchi/vms/test-vm').read()) self.assertEquals('shutoff', vm['state']) self.assertEquals('images/icon-debian.png', vm['icon']) # Verify the volume was created - vol_uri = '/storagepools/default-pool/storagevolumes/%s-0.img' + vol_uri = '/plugins/kimchi/storagepools/default-pool/storagevolumes/%s-0.img' resp = self.request(vol_uri % vm['uuid']) vol = json.loads(resp.read()) self.assertEquals(1 << 30, vol['capacity']) self.assertEquals(['test-vm'], vol['used_by']) # Start the VM - resp = self.request('/vms/test-vm/start', '{}', 'POST') - vm = json.loads(self.request('/vms/test-vm').read()) + resp = self.request('/plugins/kimchi/vms/test-vm/start', '{}', 'POST') + vm = json.loads(self.request('/plugins/kimchi/vms/test-vm').read()) self.assertEquals('running', vm['state']) # Test screenshot @@ -286,32 +288,32 @@ class RestTests(unittest.TestCase): self.assertTrue(resp.getheader('Content-type').startswith('image')) # Clone a running VM - resp = self.request('/vms/test-vm/clone', '{}', 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/clone', '{}', 'POST') self.assertEquals(400, resp.status) # Force poweroff the VM - resp = self.request('/vms/test-vm/poweroff', '{}', 'POST') - vm = json.loads(self.request('/vms/test-vm').read()) + resp = self.request('/plugins/kimchi/vms/test-vm/poweroff', '{}', 'POST') + vm = json.loads(self.request('/plugins/kimchi/vms/test-vm').read()) self.assertEquals('shutoff', vm['state']) # Test create VM with same name fails with 400 - req = json.dumps({'name': 'test-vm', 'template': '/templates/test'}) - resp = self.request('/vms', req, 'POST') + req = json.dumps({'name': 'test-vm', 'template': '/plugins/kimchi/templates/test'}) + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(400, resp.status) # Clone a VM - resp = self.request('/vms/test-vm/clone', '{}', 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/clone', '{}', 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) wait_task(self._task_lookup, task['id']) - task = json.loads(self.request('/tasks/%s' % task['id'], '{}').read()) + task = json.loads(self.request('/plugins/kimchi/tasks/%s' % task['id'], '{}').read()) self.assertEquals('finished', task['status']) clone_vm_name = task['target_uri'].split('/')[-2] self.assertTrue(re.match(u'test-vm-clone-\d+', clone_vm_name)) - resp = self.request('/vms/test-vm', '{}') + resp = self.request('/plugins/kimchi/vms/test-vm', '{}') original_vm_info = json.loads(resp.read()) - resp = self.request('/vms/%s' % clone_vm_name, '{}') + resp = self.request('/plugins/kimchi/vms/%s' % clone_vm_name, '{}') self.assertEquals(200, resp.status) clone_vm_info = json.loads(resp.read()) @@ -327,20 +329,21 @@ class RestTests(unittest.TestCase): # Create a snapshot on a stopped VM params = {'name': 'test-snap'} - resp = self.request('/vms/test-vm/snapshots', json.dumps(params), + resp = self.request('/plugins/kimchi/vms/test-vm/snapshots', json.dumps(params), 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) wait_task(self._task_lookup, task['id']) - task = json.loads(self.request('/tasks/%s' % task['id']).read()) + task = json.loads(self.request('/plugins/kimchi/tasks/%s' % task['id']).read()) self.assertEquals('finished', task['status']) # Look up a non-existing snapshot - resp = self.request('/vms/test-vm/snapshots/snap404', '{}', 'GET') + resp = self.request('/plugins/kimchi/vms/test-vm/snapshots/snap404', + '{}', 'GET') self.assertEquals(404, resp.status) # Look up a snapshot - resp = self.request('/vms/test-vm/snapshots/%s' % params['name'], '{}', + resp = self.request('/plugins/kimchi/vms/test-vm/snapshots/%s' % params['name'], '{}', 'GET') self.assertEquals(200, resp.status) snap = json.loads(resp.read()) @@ -349,90 +352,90 @@ class RestTests(unittest.TestCase): self.assertEquals(u'', snap['parent']) self.assertEquals(u'shutoff', snap['state']) - resp = self.request('/vms/test-vm/snapshots', '{}', 'GET') + resp = self.request('/plugins/kimchi/vms/test-vm/snapshots', '{}', 'GET') self.assertEquals(200, resp.status) snaps = json.loads(resp.read()) self.assertEquals(1, len(snaps)) # Look up current snapshot (the one created above) - resp = self.request('/vms/test-vm/snapshots/current', '{}', 'GET') + resp = self.request('/plugins/kimchi/vms/test-vm/snapshots/current', '{}', 'GET') self.assertEquals(200, resp.status) snap = json.loads(resp.read()) self.assertEquals(params['name'], snap['name']) - resp = self.request('/vms/test-vm/snapshots', '{}', 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/snapshots', '{}', 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) snap_name = task['target_uri'].split('/')[-1] wait_task(self._task_lookup, task['id']) - resp = self.request('/tasks/%s' % task['id'], '{}', 'GET') + resp = self.request('/plugins/kimchi/tasks/%s' % task['id'], '{}', 'GET') task = json.loads(resp.read()) self.assertEquals('finished', task['status']) - resp = self.request('/vms/test-vm/snapshots', '{}', 'GET') + resp = self.request('/plugins/kimchi/vms/test-vm/snapshots', '{}', 'GET') self.assertEquals(200, resp.status) snaps = json.loads(resp.read()) self.assertEquals(2, len(snaps)) # Look up current snapshot (the one created above) - resp = self.request('/vms/test-vm/snapshots/current', '{}', 'GET') + resp = self.request('/plugins/kimchi/vms/test-vm/snapshots/current', '{}', 'GET') self.assertEquals(200, resp.status) snap = json.loads(resp.read()) self.assertEquals(snap_name, snap['name']) # Revert to snapshot - resp = self.request('/vms/test-vm/snapshots/%s/revert' % + resp = self.request('/plugins/kimchi/vms/test-vm/snapshots/%s/revert' % params['name'], '{}', 'POST') self.assertEquals(200, resp.status) snap = json.loads(resp.read()) - resp = self.request('/vms/test-vm', '{}', 'GET') + resp = self.request('/plugins/kimchi/vms/test-vm', '{}', 'GET') self.assertEquals(200, resp.status) vm = json.loads(resp.read()) self.assertEquals(vm['state'], snap['state']) - resp = self.request('/vms/test-vm/snapshots/current', '{}', 'GET') + resp = self.request('/plugins/kimchi/vms/test-vm/snapshots/current', '{}', 'GET') self.assertEquals(200, resp.status) current_snap = json.loads(resp.read()) self.assertEquals(snap, current_snap) # Delete a snapshot - resp = self.request('/vms/test-vm/snapshots/%s' % params['name'], + resp = self.request('/plugins/kimchi/vms/test-vm/snapshots/%s' % params['name'], '{}', 'DELETE') self.assertEquals(204, resp.status) # Suspend the VM - resp = self.request('/vms/test-vm', '{}', 'GET') + resp = self.request('/plugins/kimchi/vms/test-vm', '{}', 'GET') self.assertEquals(200, resp.status) vm = json.loads(resp.read()) self.assertEquals(vm['state'], 'shutoff') - resp = self.request('/vms/test-vm/suspend', '{}', 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/suspend', '{}', 'POST') self.assertEquals(400, resp.status) - resp = self.request('/vms/test-vm/start', '{}', 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/start', '{}', 'POST') self.assertEquals(200, resp.status) - resp = self.request('/vms/test-vm', '{}', 'GET') + resp = self.request('/plugins/kimchi/vms/test-vm', '{}', 'GET') self.assertEquals(200, resp.status) vm = json.loads(resp.read()) self.assertEquals(vm['state'], 'running') - resp = self.request('/vms/test-vm/suspend', '{}', 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/suspend', '{}', 'POST') self.assertEquals(200, resp.status) - resp = self.request('/vms/test-vm', '{}', 'GET') + resp = self.request('/plugins/kimchi/vms/test-vm', '{}', 'GET') self.assertEquals(200, resp.status) vm = json.loads(resp.read()) self.assertEquals(vm['state'], 'paused') # Resume the VM - resp = self.request('/vms/test-vm/resume', '{}', 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/resume', '{}', 'POST') self.assertEquals(200, resp.status) - resp = self.request('/vms/test-vm', '{}', 'GET') + resp = self.request('/plugins/kimchi/vms/test-vm', '{}', 'GET') self.assertEquals(200, resp.status) vm = json.loads(resp.read()) self.assertEquals(vm['state'], 'running') # Delete the VM - resp = self.request('/vms/test-vm', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/vms/test-vm', '{}', 'DELETE') self.assertEquals(204, resp.status) # Delete the Template - resp = self.request('/templates/test', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/templates/test', '{}', 'DELETE') self.assertEquals(204, resp.status) # Verify the volume was deleted @@ -441,87 +444,88 @@ class RestTests(unittest.TestCase): def test_vm_graphics(self): # Create a Template req = json.dumps({'name': 'test', 'cdrom': fake_iso}) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) # Create a VM with default args - req = json.dumps({'name': 'test-vm', 'template': '/templates/test'}) - resp = self.request('/vms', req, 'POST') + req = json.dumps({'name': 'test-vm', + 'template': '/plugins/kimchi/templates/test'}) + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) wait_task(self._task_lookup, task['id']) # Verify the VM - vm = json.loads(self.request('/vms/test-vm').read()) + vm = json.loads(self.request('/plugins/kimchi/vms/test-vm').read()) self.assertEquals('127.0.0.1', vm['graphics']['listen']) self.assertEquals('vnc', vm['graphics']['type']) # Delete the VM - resp = self.request('/vms/test-vm', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/vms/test-vm', '{}', 'DELETE') self.assertEquals(204, resp.status) # Create a VM with specified graphics type and listen graphics = {'type': 'vnc', 'listen': '127.0.0.1'} - req = json.dumps({'name': 'test-vm', 'template': '/templates/test', + req = json.dumps({'name': 'test-vm', 'template': '/plugins/kimchi/templates/test', 'graphics': graphics}) - resp = self.request('/vms', req, 'POST') + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) wait_task(self._task_lookup, task['id']) # Verify the VM - vm = json.loads(self.request('/vms/test-vm').read()) + vm = json.loads(self.request('/plugins/kimchi/vms/test-vm').read()) self.assertEquals('127.0.0.1', vm['graphics']['listen']) self.assertEquals('vnc', vm['graphics']['type']) # Delete the VM - resp = self.request('/vms/test-vm', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/vms/test-vm', '{}', 'DELETE') self.assertEquals(204, resp.status) # Create a VM with listen as ipv6 address graphics = {'type': 'spice', 'listen': 'fe00::0'} - req = json.dumps({'name': 'test-vm', 'template': '/templates/test', + req = json.dumps({'name': 'test-vm', 'template': '/plugins/kimchi/templates/test', 'graphics': graphics}) - resp = self.request('/vms', req, 'POST') + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) wait_task(self._task_lookup, task['id']) # Verify the VM - vm = json.loads(self.request('/vms/test-vm').read()) + vm = json.loads(self.request('/plugins/kimchi/vms/test-vm').read()) self.assertEquals('fe00::0', vm['graphics']['listen']) self.assertEquals('spice', vm['graphics']['type']) # Delete the VM - resp = self.request('/vms/test-vm', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/vms/test-vm', '{}', 'DELETE') self.assertEquals(204, resp.status) # Create a VM with specified graphics type and default listen graphics = {'type': 'spice'} - req = json.dumps({'name': 'test-vm', 'template': '/templates/test', + req = json.dumps({'name': 'test-vm', 'template': '/plugins/kimchi/templates/test', 'graphics': graphics}) - resp = self.request('/vms', req, 'POST') + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) wait_task(self._task_lookup, task['id']) # Verify the VM - vm = json.loads(self.request('/vms/test-vm').read()) + vm = json.loads(self.request('/plugins/kimchi/vms/test-vm').read()) self.assertEquals('127.0.0.1', vm['graphics']['listen']) self.assertEquals('spice', vm['graphics']['type']) # Delete the VM - resp = self.request('/vms/test-vm', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/vms/test-vm', '{}', 'DELETE') self.assertEquals(204, resp.status) # Try to create a VM with invalid graphics type graphics = {'type': 'invalid'} - req = json.dumps({'name': 'test-vm', 'template': '/templates/test', + req = json.dumps({'name': 'test-vm', 'template': '/plugins/kimchi/templates/test', 'graphics': graphics}) - resp = self.request('/vms', req, 'POST') + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(400, resp.status) # Try to create a VM with invalid graphics listen graphics = {'type': 'spice', 'listen': 'invalid'} - req = json.dumps({'name': 'test-vm', 'template': '/templates/test', + req = json.dumps({'name': 'test-vm', 'template': '/plugins/kimchi/templates/test', 'graphics': graphics}) - resp = self.request('/vms', req, 'POST') + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(400, resp.status) # Delete the Template - resp = self.request('/templates/test', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/templates/test', '{}', 'DELETE') self.assertEquals(204, resp.status) def test_vm_storage_devices(self): @@ -529,25 +533,25 @@ class RestTests(unittest.TestCase): with RollbackContext() as rollback: # Create a template as a base for our VMs req = json.dumps({'name': 'test', 'cdrom': fake_iso}) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) # Delete the template rollback.prependDefer(self.request, - '/templates/test', '{}', 'DELETE') + '/plugins/kimchi/templates/test', '{}', 'DELETE') # Create a VM with default args req = json.dumps({'name': 'test-vm', - 'template': '/templates/test'}) - resp = self.request('/vms', req, 'POST') + 'template': '/plugins/kimchi/templates/test'}) + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) wait_task(self._task_lookup, task['id']) # Delete the VM rollback.prependDefer(self.request, - '/vms/test-vm', '{}', 'DELETE') + '/plugins/kimchi/vms/test-vm', '{}', 'DELETE') # Check storage devices - resp = self.request('/vms/test-vm/storages', '{}', 'GET') + resp = self.request('/plugins/kimchi/vms/test-vm/storages', '{}', 'GET') devices = json.loads(resp.read()) self.assertEquals(2, len(devices)) dev_types = [] @@ -563,7 +567,7 @@ class RestTests(unittest.TestCase): req = json.dumps({'dev': 'hdx', 'type': 'cdrom', 'path': '/tmp/nonexistent.iso'}) - resp = self.request('/vms/test-vm/storages', req, 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/storages', req, 'POST') self.assertEquals(400, resp.status) # Create temp storage pool @@ -572,9 +576,9 @@ class RestTests(unittest.TestCase): 'allocated': 512, 'path': '/tmp', 'type': 'dir'}) - resp = self.request('/storagepools', req, 'POST') + resp = self.request('/plugins/kimchi/storagepools', req, 'POST') self.assertEquals(201, resp.status) - resp = self.request('/storagepools/tmp/activate', req, 'POST') + resp = self.request('/plugins/kimchi/storagepools/tmp/activate', req, 'POST') self.assertEquals(200, resp.status) # 'name' is required for this type of volume @@ -582,7 +586,7 @@ class RestTests(unittest.TestCase): 'allocation': 512, 'type': 'disk', 'format': 'raw'}) - resp = self.request('/storagepools/tmp/storagevolumes', + resp = self.request('/plugins/kimchi/storagepools/tmp/storagevolumes', req, 'POST') self.assertEquals(400, resp.status) req = json.dumps({'name': "attach-volume", @@ -590,7 +594,7 @@ class RestTests(unittest.TestCase): 'allocation': 512, 'type': 'disk', 'format': 'raw'}) - resp = self.request('/storagepools/tmp/storagevolumes', + resp = self.request('/plugins/kimchi/storagepools/tmp/storagevolumes', req, 'POST') self.assertEquals(202, resp.status) time.sleep(1) @@ -602,7 +606,7 @@ class RestTests(unittest.TestCase): 'pool': 'tmp', 'vol': 'attach-volume', 'path': '/tmp/existent.iso'}) - resp = self.request('/vms/test-vm/storages', req, 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/storages', req, 'POST') self.assertEquals(400, resp.status) # Attach disk with both path and volume specified @@ -611,21 +615,21 @@ class RestTests(unittest.TestCase): 'pool': 'tmp', 'vol': 'attach-volume', 'path': '/tmp/existent.iso'}) - resp = self.request('/vms/test-vm/storages', req, 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/storages', req, 'POST') self.assertEquals(400, resp.status) # Attach disk with only pool specified req = json.dumps({'dev': 'hdx', 'type': 'cdrom', 'pool': 'tmp'}) - resp = self.request('/vms/test-vm/storages', req, 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/storages', req, 'POST') self.assertEquals(400, resp.status) # Attach disk with pool and vol specified req = json.dumps({'type': 'disk', 'pool': 'tmp', 'vol': 'attach-volume'}) - resp = self.request('/vms/test-vm/storages', req, 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/storages', req, 'POST') self.assertEquals(201, resp.status) cd_info = json.loads(resp.read()) self.assertEquals('disk', cd_info['type']) @@ -633,7 +637,7 @@ class RestTests(unittest.TestCase): # Attach a cdrom with existent dev name req = json.dumps({'type': 'cdrom', 'path': '/tmp/existent.iso'}) - resp = self.request('/vms/test-vm/storages', req, 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/storages', req, 'POST') self.assertEquals(201, resp.status) cd_info = json.loads(resp.read()) cd_dev = cd_info['dev'] @@ -641,34 +645,34 @@ class RestTests(unittest.TestCase): self.assertEquals('/tmp/existent.iso', cd_info['path']) # Delete the file and cdrom rollback.prependDefer(self.request, - '/vms/test-vm/storages/hdx', '{}', 'DELETE') + '/plugins/kimchi/vms/test-vm/storages/hdx', '{}', 'DELETE') os.remove('/tmp/existent.iso') # Change path of storage cdrom cdrom = u'http://fedora.mirrors.tds.net/pub/fedora/releases/20/'\ 'Live/x86_64/Fedora-Live-Desktop-x86_64-20-1.iso' req = json.dumps({'path': cdrom}) - resp = self.request('/vms/test-vm/storages/' + cd_dev, req, 'PUT') + resp = self.request('/plugins/kimchi/vms/test-vm/storages/' + cd_dev, req, 'PUT') self.assertEquals(200, resp.status) cd_info = json.loads(resp.read()) self.assertEquals(urlparse.urlparse(cdrom).path, urlparse.urlparse(cd_info['path']).path) # Test GET - devs = json.loads(self.request('/vms/test-vm/storages').read()) + devs = json.loads(self.request('/plugins/kimchi/vms/test-vm/storages').read()) self.assertEquals(4, len(devs)) # Detach storage cdrom - resp = self.request('/vms/test-vm/storages/' + cd_dev, + resp = self.request('/plugins/kimchi/vms/test-vm/storages/' + cd_dev, '{}', 'DELETE') self.assertEquals(204, resp.status) # Test GET - devs = json.loads(self.request('/vms/test-vm/storages').read()) + devs = json.loads(self.request('/plugins/kimchi/vms/test-vm/storages').read()) self.assertEquals(3, len(devs)) - resp = self.request('/storagepools/tmp/deactivate', {}, 'POST') + resp = self.request('/plugins/kimchi/storagepools/tmp/deactivate', {}, 'POST') self.assertEquals(200, resp.status) - resp = self.request('/storagepools/tmp', {}, 'DELETE') + resp = self.request('/plugins/kimchi/storagepools/tmp', {}, 'DELETE') self.assertEquals(204, resp.status) def test_vm_iface(self): @@ -676,38 +680,38 @@ class RestTests(unittest.TestCase): with RollbackContext() as rollback: # Create a template as a base for our VMs req = json.dumps({'name': 'test', 'cdrom': fake_iso}) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) # Delete the template rollback.prependDefer(self.request, - '/templates/test', '{}', 'DELETE') + '/plugins/kimchi/templates/test', '{}', 'DELETE') # Create a VM with default args req = json.dumps({'name': 'test-vm', - 'template': '/templates/test'}) - resp = self.request('/vms', req, 'POST') + 'template': '/plugins/kimchi/templates/test'}) + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) wait_task(self._task_lookup, task['id']) # Delete the VM rollback.prependDefer(self.request, - '/vms/test-vm', '{}', 'DELETE') + '/plugins/kimchi/vms/test-vm', '{}', 'DELETE') # Create a network req = json.dumps({'name': 'test-network', 'connection': 'nat', 'net': '127.0.1.0/24'}) - resp = self.request('/networks', req, 'POST') + resp = self.request('/plugins/kimchi/networks', req, 'POST') self.assertEquals(201, resp.status) # Delete the network rollback.prependDefer(self.request, - '/networks/test-network', '{}', 'DELETE') + '/plugins/kimchi/networks/test-network', '{}', 'DELETE') - ifaces = json.loads(self.request('/vms/test-vm/ifaces').read()) + ifaces = json.loads(self.request('/plugins/kimchi/vms/test-vm/ifaces').read()) self.assertEquals(1, len(ifaces)) for iface in ifaces: - res = json.loads(self.request('/vms/test-vm/ifaces/%s' % + res = json.loads(self.request('/plugins/kimchi/vms/test-vm/ifaces/%s' % iface['mac']).read()) self.assertEquals('default', res['network']) self.assertEquals(17, len(res['mac'])) @@ -716,14 +720,15 @@ class RestTests(unittest.TestCase): # try to attach an interface without specifying 'model' req = json.dumps({'type': 'network'}) - resp = self.request('/vms/test-vm/ifaces', req, 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/ifaces', req, + 'POST') self.assertEquals(400, resp.status) # attach network interface to vm req = json.dumps({"type": "network", "network": "test-network", "model": "virtio"}) - resp = self.request('/vms/test-vm/ifaces', req, 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/ifaces', req, 'POST') self.assertEquals(201, resp.status) iface = json.loads(resp.read()) @@ -736,15 +741,15 @@ class RestTests(unittest.TestCase): newMacAddr = '54:50:e3:44:8a:af' req = json.dumps({"network": "default", "model": "virtio", "type": "network", "mac": newMacAddr}) - resp = self.request('/vms/test-vm/ifaces/%s' % iface['mac'], - req, 'PUT') + resp = self.request('/plugins/kimchi/vms/test-vm/ifaces/%s' % + iface['mac'], req, 'PUT') self.assertEquals(303, resp.status) - iface = json.loads(self.request('/vms/test-vm/ifaces/%s' % + iface = json.loads(self.request('/plugins/kimchi/vms/test-vm/ifaces/%s' % newMacAddr).read()) self.assertEquals(newMacAddr, iface['mac']) # detach network interface from vm - resp = self.request('/vms/test-vm/ifaces/%s' % iface['mac'], + resp = self.request('/plugins/kimchi/vms/test-vm/ifaces/%s' % iface['mac'], '{}', 'DELETE') self.assertEquals(204, resp.status) @@ -752,7 +757,7 @@ class RestTests(unittest.TestCase): # Create a Template req = json.dumps({'name': 'test', 'cdrom': fake_iso, 'disks': [{'size': 1}]}) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) # Create alternate storage @@ -761,33 +766,34 @@ class RestTests(unittest.TestCase): 'allocated': 512, 'path': '/tmp', 'type': 'dir'}) - resp = self.request('/storagepools', req, 'POST') + resp = self.request('/plugins/kimchi/storagepools', req, 'POST') self.assertEquals(201, resp.status) - resp = self.request('/storagepools/alt/activate', req, 'POST') + resp = self.request('/plugins/kimchi/storagepools/alt/activate', req, 'POST') self.assertEquals(200, resp.status) # Create a VM - req = json.dumps({'name': 'test-vm', 'template': '/templates/test', - 'storagepool': '/storagepools/alt'}) - resp = self.request('/vms', req, 'POST') + req = json.dumps({'name': 'test-vm', + 'template': '/plugins/kimchi/templates/test', + 'storagepool': '/plugins/kimchi/storagepools/alt'}) + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) wait_task(self._task_lookup, task['id']) - resp = self.request('/vms/test-vm', {}, 'GET') + resp = self.request('/plugins/kimchi/vms/test-vm', {}, 'GET') vm_info = json.loads(resp.read()) # Test template not changed after vm customise its pool - t = json.loads(self.request('/templates/test').read()) - self.assertEquals(t['storagepool'], '/storagepools/default-pool') + t = json.loads(self.request('/plugins/kimchi/templates/test').read()) + self.assertEquals(t['storagepool'], '/plugins/kimchi/storagepools/default-pool') # Verify the volume was created - vol_uri = '/storagepools/alt/storagevolumes/%s-0.img' % vm_info['uuid'] + vol_uri = '/plugins/kimchi/storagepools/alt/storagevolumes/%s-0.img' % vm_info['uuid'] resp = self.request(vol_uri) vol = json.loads(resp.read()) self.assertEquals(1 << 30, vol['capacity']) # Delete the VM - resp = self.request('/vms/test-vm', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/vms/test-vm', '{}', 'DELETE') self.assertEquals(204, resp.status) # Verify the volume was deleted @@ -798,71 +804,72 @@ class RestTests(unittest.TestCase): req = json.dumps({'name': 'scsi_fc_pool', 'type': 'scsi', 'source': {'adapter_name': 'scsi_host2'}}) - resp = self.request('/storagepools', req, 'POST') + resp = self.request('/plugins/kimchi/storagepools', req, 'POST') self.assertEquals(201, resp.status) # Test create vms using lun of this pool # activate the storage pool - resp = self.request('/storagepools/scsi_fc_pool/activate', '{}', + resp = self.request('/plugins/kimchi/storagepools/scsi_fc_pool/activate', '{}', 'POST') # Create template fails because SCSI volume is missing tmpl_params = {'name': 'test_fc_pool', 'cdrom': fake_iso, - 'storagepool': '/storagepools/scsi_fc_pool'} + 'storagepool': '/plugins/kimchi/storagepools/scsi_fc_pool'} req = json.dumps(tmpl_params) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(400, resp.status) # Choose SCSI volume to create template - resp = self.request('/storagepools/scsi_fc_pool/storagevolumes') + resp = self.request('/plugins/kimchi/storagepools/scsi_fc_pool/storagevolumes') lun_name = json.loads(resp.read())[0]['name'] tmpl_params['disks'] = [{'index': 0, 'volume': lun_name}] req = json.dumps(tmpl_params) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) # Create vm in scsi pool req = json.dumps({'name': 'test-vm', - 'template': '/templates/test_fc_pool'}) - resp = self.request('/vms', req, 'POST') + 'template': '/plugins/kimchi/templates/test_fc_pool'}) + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) wait_task(self._task_lookup, task['id']) # Start the VM - resp = self.request('/vms/test-vm/start', '{}', 'POST') - vm = json.loads(self.request('/vms/test-vm').read()) + resp = self.request('/plugins/kimchi/vms/test-vm/start', '{}', 'POST') + vm = json.loads(self.request('/plugins/kimchi/vms/test-vm').read()) self.assertEquals('running', vm['state']) # Force poweroff the VM - resp = self.request('/vms/test-vm/poweroff', '{}', 'POST') - vm = json.loads(self.request('/vms/test-vm').read()) + resp = self.request('/plugins/kimchi/vms/test-vm/poweroff', '{}', 'POST') + vm = json.loads(self.request('/plugins/kimchi/vms/test-vm').read()) self.assertEquals('shutoff', vm['state']) # Delete the VM - resp = self.request('/vms/test-vm', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/vms/test-vm', '{}', 'DELETE') self.assertEquals(204, resp.status) def test_unnamed_vms(self): # Create a Template req = json.dumps({'name': 'test', 'cdrom': fake_iso}) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) # Create 5 unnamed vms from this template for i in xrange(1, 6): - req = json.dumps({'template': '/templates/test'}) - task = json.loads(self.request('/vms', req, 'POST').read()) + req = json.dumps({'template': '/plugins/kimchi/templates/test'}) + task = json.loads(self.request('/plugins/kimchi/vms', + req, 'POST').read()) wait_task(self._task_lookup, task['id']) - resp = self.request('/vms/test-vm-%i' % i, {}, 'GET') + resp = self.request('/plugins/kimchi/vms/test-vm-%i' % i, {}, 'GET') self.assertEquals(resp.status, 200) - count = len(json.loads(self.request('/vms').read())) + count = len(json.loads(self.request('/plugins/kimchi/vms').read())) self.assertEquals(6, count) def test_create_vm_without_template(self): req = json.dumps({'name': 'vm-without-template'}) - resp = self.request('/vms', req, 'POST') + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(400, resp.status) resp = json.loads(resp.read()) self.assertIn(u"KCHVM0016E:", resp['reason']) @@ -870,32 +877,32 @@ class RestTests(unittest.TestCase): def test_create_vm_with_bad_template_uri(self): req = json.dumps({'name': 'vm-bad-template', 'template': '/mytemplate'}) - resp = self.request('/vms', req, 'POST') + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(400, resp.status) resp = json.loads(resp.read()) self.assertIn(u"KCHVM0012E", resp['reason']) def test_create_vm_with_img_based_template(self): resp = json.loads( - self.request('/storagepools/default-pool/storagevolumes').read()) + self.request('/plugins/kimchi/storagepools/default-pool/storagevolumes').read()) self.assertEquals(0, len(resp)) # Create a Template mock_base = '/tmp/mock.img' open(mock_base, 'w').close() req = json.dumps({'name': 'test', 'disks': [{'base': mock_base}]}) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) - req = json.dumps({'template': '/templates/test'}) - resp = self.request('/vms', req, 'POST') + req = json.dumps({'template': '/plugins/kimchi/templates/test'}) + resp = self.request('/plugins/kimchi/vms', req, 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) wait_task(self._task_lookup, task['id']) # Test storage volume created with backing store of base file resp = json.loads( - self.request('/storagepools/default-pool/storagevolumes').read()) + self.request('/plugins/kimchi/storagepools/default-pool/storagevolumes').read()) self.assertEquals(1, len(resp)) def _create_pool(self, name): @@ -904,24 +911,24 @@ class RestTests(unittest.TestCase): 'allocated': 5120, 'path': '/var/lib/libvirt/images/', 'type': 'dir'}) - resp = self.request('/storagepools', req, 'POST') + resp = self.request('/plugins/kimchi/storagepools', req, 'POST') self.assertEquals(201, resp.status) # Verify the storage pool - storagepool = json.loads(self.request('/storagepools/%s' + storagepool = json.loads(self.request('/plugins/kimchi/storagepools/%s' % name).read()) self.assertEquals('inactive', storagepool['state']) return name def _delete_pool(self, name): # Delete the storage pool - resp = self.request('/storagepools/%s' % name, '{}', 'DELETE') + resp = self.request('/plugins/kimchi/storagepools/%s' % name, '{}', 'DELETE') self.assertEquals(204, resp.status) def test_iso_scan_shallow(self): # fake environment preparation self._create_pool('pool-3') - self.request('/storagepools/pool-3/activate', '{}', 'POST') + self.request('/plugins/kimchi/storagepools/pool-3/activate', '{}', 'POST') params = {'name': 'fedora.iso', 'capacity': 1073741824, # 1 GiB 'type': 'file', @@ -930,7 +937,7 @@ class RestTests(unittest.TestCase): wait_task(self._task_lookup, task_info['id']) storagevolume = json.loads(self.request( - '/storagepools/kimchi_isos/storagevolumes/').read())[0] + '/plugins/kimchi/storagepools/kimchi_isos/storagevolumes/').read())[0] self.assertEquals('fedora.iso', storagevolume['name']) self.assertEquals('iso', storagevolume['format']) self.assertEquals('/var/lib/libvirt/images/fedora.iso', @@ -948,83 +955,84 @@ class RestTests(unittest.TestCase): 'cdrom': storagevolume['path'], 'os_distro': storagevolume['os_distro'], 'os_version': storagevolume['os_version']}) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) # Verify the template - t = json.loads(self.request('/templates/test').read()) + t = json.loads(self.request('/plugins/kimchi/templates/test').read()) self.assertEquals('test', t['name']) self.assertEquals('fedora', t['os_distro']) self.assertEquals('17', t['os_version']) self.assertEquals(get_template_default('old', 'memory'), t['memory']) # Deactivate or destroy scan pool return 405 - resp = self.request('/storagepools/kimchi_isos/storagevolumes' + resp = self.request('/plugins/kimchi/storagepools/kimchi_isos/storagevolumes' '/deactivate', '{}', 'POST') self.assertEquals(405, resp.status) - resp = self.request('/storagepools/kimchi_isos/storagevolumes', + resp = self.request('/plugins/kimchi/storagepools/kimchi_isos/storagevolumes', '{}', 'DELETE') self.assertEquals(405, resp.status) # Delete the template - resp = self.request('/templates/%s' % t['name'], '{}', 'DELETE') + resp = self.request('/plugins/kimchi/templates/%s' % t['name'], '{}', 'DELETE') self.assertEquals(204, resp.status) - resp = self.request('/storagepools/pool-3/deactivate', '{}', 'POST') + resp = self.request('/plugins/kimchi/storagepools/pool-3/deactivate', '{}', 'POST') self.assertEquals(200, resp.status) self._delete_pool('pool-3') def test_screenshot_refresh(self): # Create a VM req = json.dumps({'name': 'test', 'cdrom': fake_iso}) - resp = self.request('/templates', req, 'POST') - req = json.dumps({'name': 'test-vm', 'template': '/templates/test'}) - resp = self.request('/vms', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') + req = json.dumps({'name': 'test-vm', + 'template': '/plugins/kimchi/templates/test'}) + resp = self.request('/plugins/kimchi/vms', req, 'POST') task = json.loads(resp.read()) wait_task(self._task_lookup, task['id']) # Test screenshot for shut-off state vm - resp = self.request('/vms/test-vm/screenshot') + resp = self.request('/plugins/kimchi/vms/test-vm/screenshot') self.assertEquals(404, resp.status) # Test screenshot for running vm - resp = self.request('/vms/test-vm/start', '{}', 'POST') - vm = json.loads(self.request('/vms/test-vm').read()) + resp = self.request('/plugins/kimchi/vms/test-vm/start', '{}', 'POST') + vm = json.loads(self.request('/plugins/kimchi/vms/test-vm').read()) resp = self.request(vm['screenshot'], method='HEAD') self.assertEquals(200, resp.status) self.assertTrue(resp.getheader('Content-type').startswith('image')) # Test screenshot sub-resource redirect - resp = self.request('/vms/test-vm/screenshot') + resp = self.request('/plugins/kimchi/vms/test-vm/screenshot') self.assertEquals(200, resp.status) self.assertEquals('image/png', resp.getheader('content-type')) lastMod1 = resp.getheader('last-modified') # Take another screenshot instantly and compare the last Modified date - resp = self.request('/vms/test-vm/screenshot') + resp = self.request('/plugins/kimchi/vms/test-vm/screenshot') lastMod2 = resp.getheader('last-modified') self.assertEquals(lastMod2, lastMod1) - resp = self.request('/vms/test-vm/screenshot', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/vms/test-vm/screenshot', '{}', 'DELETE') self.assertEquals(405, resp.status) # No screenshot after stopped the VM - self.request('/vms/test-vm/poweroff', '{}', 'POST') - resp = self.request('/vms/test-vm/screenshot') + self.request('/plugins/kimchi/vms/test-vm/poweroff', '{}', 'POST') + resp = self.request('/plugins/kimchi/vms/test-vm/screenshot') self.assertEquals(404, resp.status) # Picture link not available after VM deleted - self.request('/vms/test-vm/start', '{}', 'POST') - vm = json.loads(self.request('/vms/test-vm').read()) + self.request('/plugins/kimchi/vms/test-vm/start', '{}', 'POST') + vm = json.loads(self.request('/plugins/kimchi/vms/test-vm').read()) img_lnk = vm['screenshot'] - self.request('/vms/test-vm', '{}', 'DELETE') + self.request('/plugins/kimchi/vms/test-vm', '{}', 'DELETE') resp = self.request(img_lnk) self.assertEquals(404, resp.status) def test_interfaces(self): - resp = self.request('/interfaces').read() + resp = self.request('/plugins/kimchi/interfaces').read() self.assertIn('name', resp) interfaces = json.loads(resp) keys = ['name', 'type', 'ipaddr', 'netmask', 'status'] @@ -1032,39 +1040,39 @@ class RestTests(unittest.TestCase): self.assertEquals(sorted(keys), sorted(interface.keys())) def _task_lookup(self, taskid): - return json.loads(self.request('/tasks/%s' % taskid).read()) + return json.loads(self.request('/plugins/kimchi/tasks/%s' % taskid).read()) def test_tasks(self): - id1 = add_task('/tasks/1', self._async_op, model.objstore) - id2 = add_task('/tasks/2', self._except_op, model.objstore) - id3 = add_task('/tasks/3', self._intermid_op, model.objstore) + id1 = add_task('/plugins/kimchi/tasks/1', self._async_op, model.objstore) + id2 = add_task('/plugins/kimchi/tasks/2', self._except_op, model.objstore) + id3 = add_task('/plugins/kimchi/tasks/3', self._intermid_op, model.objstore) target_uri = urllib2.quote('^/tasks/*', safe="") filter_data = 'status=running&target_uri=%s' % target_uri - tasks = json.loads(self.request('/tasks?%s' % filter_data).read()) + tasks = json.loads(self.request('/plugins/kimchi/tasks?%s' % filter_data).read()) self.assertEquals(3, len(tasks)) - tasks = json.loads(self.request('/tasks').read()) + tasks = json.loads(self.request('/plugins/kimchi/tasks').read()) tasks_ids = [int(t['id']) for t in tasks] self.assertEquals(set([id1, id2, id3]) - set(tasks_ids), set([])) wait_task(self._task_lookup, id2) - foo2 = json.loads(self.request('/tasks/%s' % id2).read()) + foo2 = json.loads(self.request('/plugins/kimchi/tasks/%s' % id2).read()) keys = ['id', 'status', 'message', 'target_uri'] self.assertEquals(sorted(keys), sorted(foo2.keys())) self.assertEquals('failed', foo2['status']) wait_task(self._task_lookup, id3) - foo3 = json.loads(self.request('/tasks/%s' % id3).read()) + foo3 = json.loads(self.request('/plugins/kimchi/tasks/%s' % id3).read()) self.assertEquals('in progress', foo3['message']) self.assertEquals('running', foo3['status']) def test_config(self): - resp = self.request('/config').read() + resp = self.request('/plugins/kimchi/config').read() conf = json.loads(resp) keys = ["display_proxy_port", "version"] self.assertEquals(keys, sorted(conf.keys())) def test_capabilities(self): - resp = self.request('/config/capabilities').read() + resp = self.request('/plugins/kimchi/config/capabilities').read() conf = json.loads(resp) keys = [u'libvirt_stream_protocols', u'qemu_stream', u'qemu_spice', @@ -1074,11 +1082,11 @@ class RestTests(unittest.TestCase): self.assertEquals(sorted(keys), sorted(conf.keys())) def test_peers(self): - resp = self.request('/peers').read() + resp = self.request('/plugins/kimchi/peers').read() self.assertEquals([], json.loads(resp)) def test_distros(self): - resp = self.request('/config/distros').read() + resp = self.request('/plugins/kimchi/config/distros').read() distros = json.loads(resp) for distro in distros: self.assertIn('name', distro) @@ -1088,7 +1096,8 @@ class RestTests(unittest.TestCase): # Test in X86 ident = "Fedora 20" - resp = self.request('/config/distros/%s' % urllib2.quote(ident)).read() + resp = self.request('/plugins/kimchi/config/distros/%s' % + urllib2.quote(ident)).read() distro = json.loads(resp) if os.uname()[4] in ['x86_64', 'amd64']: self.assertEquals(distro['name'], ident) @@ -1102,7 +1111,8 @@ class RestTests(unittest.TestCase): # Test in PPC ident = "Fedora 20 (PPC64)" - resp = self.request('/config/distros/%s' % urllib2.quote(ident)).read() + resp = self.request('/plugins/kimchi/config/distros/%s' % + urllib2.quote(ident)).read() distro = json.loads(resp) if os.uname()[4] == 'ppc64': self.assertEquals(distro['name'], ident) @@ -1115,48 +1125,48 @@ class RestTests(unittest.TestCase): self.assertIn('KCHDISTRO0001E', distro.get('reason')) def test_debugreports(self): - resp = request(host, ssl_port, '/debugreports') + resp = request(host, ssl_port, '/plugins/kimchi/debugreports') self.assertEquals(200, resp.status) def _report_delete(self, name): - request(host, ssl_port, '/debugreports/%s' % name, '{}', 'DELETE') + request(host, ssl_port, '/plugins/kimchi/debugreports/%s' % name, '{}', 'DELETE') def test_create_debugreport(self): req = json.dumps({'name': 'report1'}) with RollbackContext() as rollback: - resp = request(host, ssl_port, '/debugreports', req, 'POST') + resp = request(host, ssl_port, '/plugins/kimchi/debugreports', req, 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) # make sure the debugreport doesn't exist until the # the task is finished wait_task(self._task_lookup, task['id']) rollback.prependDefer(self._report_delete, 'report2') - resp = request(host, ssl_port, '/debugreports/report1') + resp = request(host, ssl_port, '/plugins/kimchi/debugreports/report1') debugreport = json.loads(resp.read()) self.assertEquals("report1", debugreport['name']) self.assertEquals(200, resp.status) req = json.dumps({'name': 'report2'}) - resp = request(host, ssl_port, '/debugreports/report1', + resp = request(host, ssl_port, '/plugins/kimchi/debugreports/report1', req, 'PUT') self.assertEquals(303, resp.status) def test_debugreport_download(self): req = json.dumps({'name': 'report1'}) with RollbackContext() as rollback: - resp = request(host, ssl_port, '/debugreports', req, 'POST') + resp = request(host, ssl_port, '/plugins/kimchi/debugreports', req, 'POST') self.assertEquals(202, resp.status) task = json.loads(resp.read()) # make sure the debugreport doesn't exist until the # the task is finished wait_task(self._task_lookup, task['id'], 20) rollback.prependDefer(self._report_delete, 'report1') - resp = request(host, ssl_port, '/debugreports/report1') + resp = request(host, ssl_port, '/plugins/kimchi/debugreports/report1') debugreport = json.loads(resp.read()) self.assertEquals("report1", debugreport['name']) self.assertEquals(200, resp.status) - resp = request(host, ssl_port, '/debugreports/report1/content') + resp = request(host, ssl_port, '/plugins/kimchi/debugreports/report1/content') self.assertEquals(200, resp.status) - resp = request(host, ssl_port, '/debugreports/report1') + resp = request(host, ssl_port, '/plugins/kimchi/debugreports/report1') debugre = json.loads(resp.read()) resp = request(host, ssl_port, debugre['uri']) self.assertEquals(200, resp.status) @@ -1167,7 +1177,7 @@ class RestTests(unittest.TestCase): if field in t.keys(): self.assertEquals(t[field], res[field]) - base_uri = '/host/repositories' + base_uri = '/plugins/kimchi/host/repositories' resp = self.request(base_uri) self.assertEquals(200, resp.status) # Already have one repo in Kimchi's system diff --git a/plugins/kimchi/tests/test_server.py b/plugins/kimchi/tests/test_server.py index 228a9b5..48a8589 100644 --- a/plugins/kimchi/tests/test_server.py +++ b/plugins/kimchi/tests/test_server.py @@ -132,13 +132,13 @@ class ServerTests(unittest.TestCase): """ A non-existent path should return HTTP:404 """ - url_list = ['/doesnotexist', '/vms/blah'] + url_list = ['/plugins/kimchi/doesnotexist', '/plugins/kimchi/vms/blah'] for url in url_list: resp = self.request(url) self.assertEquals(404, resp.status) # Verify it works for DELETE too - resp = self.request('/templates/blah', '', 'DELETE') + resp = self.request('/plugins/kimchi/templates/blah', '', 'DELETE') self.assertEquals(404, resp.status) def test_accepts(self): @@ -177,10 +177,10 @@ class ServerTests(unittest.TestCase): def test_auth_unprotected(self): hdrs = {'AUTHORIZATION': ''} - uris = ['/js/kimchi.min.js', - '/css/theme-default.min.css', + uris = ['/plugins/kimchi/js/kimchi.min.js', + '/plugins/kimchi/css/theme-default.min.css', + '/plugins/kimchi/images/icon-vm.png', '/libs/jquery-1.10.0.min.js', - '/images/icon-vm.png', '/login.html', '/logout'] @@ -190,9 +190,9 @@ class ServerTests(unittest.TestCase): def test_auth_protected(self): hdrs = {'AUTHORIZATION': ''} - uris = ['/vms', - '/vms/doesnotexist', - '/tasks'] + uris = ['/plugins/kimchi/vms', + '/plugins/kimchi/vms/doesnotexist', + '/plugins/kimchi/tasks'] for uri in uris: resp = self.request(uri, None, 'GET', hdrs) @@ -201,7 +201,7 @@ class ServerTests(unittest.TestCase): def test_auth_bad_creds(self): # Test HTTPBA hdrs = {'AUTHORIZATION': "Basic " + base64.b64encode("nouser:badpass")} - resp = self.request('/vms', None, 'GET', hdrs) + resp = self.request('/plugins/kimchi/vms', None, 'GET', hdrs) self.assertEquals(401, resp.status) # Test REST API @@ -216,7 +216,7 @@ class ServerTests(unittest.TestCase): hdrs = {"X-Requested-With": "XMLHttpRequest"} # Try our request (Note that request() will add a valid HTTPBA header) - resp = self.request('/vms', None, 'GET', hdrs) + resp = self.request('/plugins/kimchi/vms', None, 'GET', hdrs) self.assertEquals(401, resp.status) self.assertEquals(None, resp.getheader('WWW-Authenticate')) @@ -226,7 +226,7 @@ class ServerTests(unittest.TestCase): 'Accept': 'application/json'} # Test we are logged out - resp = self.request('/tasks', None, 'GET', hdrs) + resp = self.request('/plugins/kimchi/tasks', None, 'GET', hdrs) self.assertEquals(401, resp.status) # Execute a login call @@ -246,7 +246,7 @@ class ServerTests(unittest.TestCase): hdrs['Cookie'] = cookie # Test we are logged in with the cookie - resp = self.request('/tasks', None, 'GET', hdrs) + resp = self.request('/plugins/kimchi/tasks', None, 'GET', hdrs) self.assertEquals(200, resp.status) # Execute a logout call @@ -255,7 +255,7 @@ class ServerTests(unittest.TestCase): del hdrs['Cookie'] # Test we are logged out - resp = self.request('/tasks', None, 'GET', hdrs) + resp = self.request('/plugins/kimchi/tasks', None, 'GET', hdrs) self.assertEquals(401, resp.status) def test_get_param(self): @@ -265,22 +265,22 @@ class ServerTests(unittest.TestCase): # Create 2 different templates req = json.dumps({'name': 'test-tmpl1', 'cdrom': mockiso}) - self.request('/templates', req, 'POST') + self.request('/plugins/kimchi/templates', req, 'POST') req = json.dumps({'name': 'test-tmpl2', 'cdrom': mockiso}) - self.request('/templates', req, 'POST') + self.request('/plugins/kimchi/templates', req, 'POST') # Remove mock iso os.unlink(mockiso) # Get the templates - resp = self.request('/templates') + resp = self.request('/plugins/kimchi/templates') self.assertEquals(200, resp.status) res = json.loads(resp.read()) self.assertEquals(2, len(res)) # Get a specific template - resp = self.request('/templates?name=test-tmpl1') + resp = self.request('/plugins/kimchi/templates?name=test-tmpl1') self.assertEquals(200, resp.status) res = json.loads(resp.read()) self.assertEquals(1, len(res)) diff --git a/plugins/kimchi/tests/test_template.py b/plugins/kimchi/tests/test_template.py index b263b63..a1a828b 100644 --- a/plugins/kimchi/tests/test_template.py +++ b/plugins/kimchi/tests/test_template.py @@ -61,58 +61,58 @@ class TemplateTests(unittest.TestCase): model.reset() def test_tmpl_lifecycle(self): - resp = self.request('/templates') + resp = self.request('/plugins/kimchi/templates') self.assertEquals(200, resp.status) self.assertEquals(0, len(json.loads(resp.read()))) # Create a template without cdrom and disk specified fails with 400 t = {'name': 'test', 'os_distro': 'ImagineOS', 'os_version': '1.0', 'memory': 1024, 'cpus': 1, - 'storagepool': '/storagepools/alt'} + 'storagepool': '/plugins/kimchi/storagepools/alt'} req = json.dumps(t) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(400, resp.status) # Create a template t = {'name': 'test', 'cdrom': '/tmp/mock.iso'} req = json.dumps(t) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) # Verify the template keys = ['name', 'icon', 'invalid', 'os_distro', 'os_version', 'cpus', 'memory', 'cdrom', 'disks', 'storagepool', 'networks', 'folder', 'graphics', 'cpu_info'] - tmpl = json.loads(self.request('/templates/test').read()) + tmpl = json.loads(self.request('/plugins/kimchi/templates/test').read()) self.assertEquals(sorted(tmpl.keys()), sorted(keys)) # Verify if default disk format was configured self.assertEquals(tmpl['disks'][0]['format'], 'qcow2') # Clone a template - resp = self.request('/templates/test/clone', '{}', 'POST') + resp = self.request('/plugins/kimchi/templates/test/clone', '{}', 'POST') self.assertEquals(303, resp.status) # Verify the cloned template - tmpl_cloned = json.loads(self.request('/templates/test-clone1').read()) + tmpl_cloned = json.loads(self.request('/plugins/kimchi/templates/test-clone1').read()) del tmpl['name'] del tmpl_cloned['name'] self.assertEquals(tmpl, tmpl_cloned) # Delete the cloned template - resp = self.request('/templates/test-clone1', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/templates/test-clone1', '{}', 'DELETE') self.assertEquals(204, resp.status) # Create a template with same name fails with 400 req = json.dumps({'name': 'test', 'cdrom': '/tmp/mock.iso'}) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(400, resp.status) # Create an image based template open('/tmp/mock.img', 'w').close() t = {'name': 'test_img_template', 'disks': [{'base': '/tmp/mock.img'}]} req = json.dumps(t) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) os.remove('/tmp/mock.img') @@ -120,24 +120,24 @@ class TemplateTests(unittest.TestCase): t = {'name': 'test-format', 'cdrom': '/tmp/mock.iso', 'disks': [{'index': 0, 'size': 10, 'format': 'vmdk'}]} req = json.dumps(t) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) - tmpl = json.loads(self.request('/templates/test-format').read()) + tmpl = json.loads(self.request('/plugins/kimchi/templates/test-format').read()) self.assertEquals(tmpl['disks'][0]['format'], 'vmdk') def test_customized_tmpl(self): # Create a template t = {'name': 'test', 'cdrom': '/tmp/mock.iso'} req = json.dumps(t) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) - tmpl = json.loads(self.request('/templates/test').read()) + tmpl = json.loads(self.request('/plugins/kimchi/templates/test').read()) # Update name new_name = u'kīмсhīTmpl' - new_tmpl_uri = '/templates/%s' % new_name.encode('utf-8') + new_tmpl_uri = '/plugins/kimchi/templates/%s' % new_name.encode('utf-8') req = json.dumps({'name': new_name}) - resp = self.request('/templates/test', req, 'PUT') + resp = self.request('/plugins/kimchi/templates/test', req, 'PUT') self.assertEquals(303, resp.status) resp = self.request(new_tmpl_uri) update_tmpl = json.loads(resp.read()) @@ -147,11 +147,11 @@ class TemplateTests(unittest.TestCase): self.assertEquals(tmpl, update_tmpl) # Update icon - req = json.dumps({'icon': 'images/icon-fedora.png'}) + req = json.dumps({'icon': 'kimchi/images/icon-fedora.png'}) resp = self.request(new_tmpl_uri, req, 'PUT') self.assertEquals(200, resp.status) update_tmpl = json.loads(resp.read()) - self.assertEquals('images/icon-fedora.png', update_tmpl['icon']) + self.assertEquals('kimchi/images/icon-fedora.png', update_tmpl['icon']) # Update os_distro and os_version req = json.dumps({'os_distro': 'fedora', 'os_version': '21'}) @@ -246,7 +246,7 @@ class TemplateTests(unittest.TestCase): # Create a template t = {'name': 'test', 'cdrom': '/tmp/mock.iso'} req = json.dumps(t) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) # Create networks to be used for testing @@ -257,7 +257,7 @@ class TemplateTests(unittest.TestCase): # Verify the current system has at least one interface to create a # bridged network - interfaces = json.loads(self.request('/interfaces?type=nic').read()) + interfaces = json.loads(self.request('/plugins/kimchi/interfaces?type=nic').read()) if len(interfaces) > 0: iface = interfaces[0]['name'] networks.append({'name': u'bridge-network', 'connection': 'bridge', @@ -267,25 +267,25 @@ class TemplateTests(unittest.TestCase): tmpl_nets = [] for net in networks: - self.request('/networks', json.dumps(net), 'POST') + self.request('/plugins/kimchi/networks', json.dumps(net), 'POST') tmpl_nets.append(net['name']) req = json.dumps({'networks': tmpl_nets}) - resp = self.request('/templates/test', req, 'PUT') + resp = self.request('/plugins/kimchi/templates/test', req, 'PUT') self.assertEquals(200, resp.status) def test_customized_storagepool(self): # Create a template t = {'name': 'test', 'cdrom': '/tmp/mock.iso'} req = json.dumps(t) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) # MockModel always returns 2 partitions (vdx, vdz) - partitions = json.loads(self.request('/host/partitions').read()) + partitions = json.loads(self.request('/plugins/kimchi/host/partitions').read()) devs = [dev['path'] for dev in partitions] # MockModel always returns 3 FC devices - fc_devs = json.loads(self.request('/host/devices?_cap=fc_host').read()) + fc_devs = json.loads(self.request('/plugins/kimchi/host/devices?_cap=fc_host').read()) fc_devs = [dev['name'] for dev in fc_devs] poolDefs = [ @@ -303,8 +303,8 @@ class TemplateTests(unittest.TestCase): 'source': {'devices': [devs[0]]}}] for pool in poolDefs: - self.request('/storagepools', json.dumps(pool), 'POST') - pool_uri = '/storagepools/%s' % pool['name'].encode('utf-8') + self.request('/plugins/kimchi/storagepools', json.dumps(pool), 'POST') + pool_uri = '/plugins/kimchi/storagepools/%s' % pool['name'].encode('utf-8') self.request(pool_uri + '/activate', '{}', 'POST') req = None @@ -319,44 +319,44 @@ class TemplateTests(unittest.TestCase): req = json.dumps({'storagepool': pool_uri}) if req is not None: - resp = self.request('/templates/test', req, 'PUT') + resp = self.request('/plugins/kimchi/templates/test', req, 'PUT') self.assertEquals(200, resp.status) def test_tmpl_integrity(self): # Create a network and a pool for testing template integrity net = {'name': u'nat-network', 'connection': 'nat'} - self.request('/networks', json.dumps(net), 'POST') + self.request('/plugins/kimchi/networks', json.dumps(net), 'POST') pool = {'type': 'dir', 'name': 'dir-pool', 'path': '/tmp/dir-pool'} - self.request('/storagepools', json.dumps(pool), 'POST') - pool_uri = '/storagepools/%s' % pool['name'].encode('utf-8') + self.request('/plugins/kimchi/storagepools', json.dumps(pool), 'POST') + pool_uri = '/plugins/kimchi/storagepools/%s' % pool['name'].encode('utf-8') self.request(pool_uri + '/activate', '{}', 'POST') # Create a template using the custom network and pool t = {'name': 'test', 'cdrom': '/tmp/mock.iso', 'networks': ['nat-network'], - 'storagepool': '/storagepools/dir-pool'} + 'storagepool': '/plugins/kimchi/storagepools/dir-pool'} req = json.dumps(t) - resp = self.request('/templates', req, 'POST') + resp = self.request('/plugins/kimchi/templates', req, 'POST') self.assertEquals(201, resp.status) # Try to delete network # It should fail as it is associated to a template - resp = self.request('/networks/nat-network', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/networks/nat-network', '{}', 'DELETE') self.assertIn("KCHNET0017E", json.loads(resp.read())["reason"]) # Update template to release network and then delete it params = {'networks': []} req = json.dumps(params) - self.request('/templates/test', req, 'PUT') - resp = self.request('/networks/nat-network', '{}', 'DELETE') + self.request('/plugins/kimchi/templates/test', req, 'PUT') + resp = self.request('/plugins/kimchi/networks/nat-network', '{}', 'DELETE') self.assertEquals(204, resp.status) # Try to delete the storagepool # It should fail as it is associated to a template - resp = self.request('/storagepools/dir-pool', '{}', 'DELETE') + resp = self.request('/plugins/kimchi/storagepools/dir-pool', '{}', 'DELETE') self.assertEquals(400, resp.status) # Verify the template - res = json.loads(self.request('/templates/test').read()) + res = json.loads(self.request('/plugins/kimchi/templates/test').read()) self.assertEquals(res['invalid']['cdrom'], ['/tmp/mock.iso']) diff --git a/plugins/kimchi/ui/css/theme-default/guest-edit.css b/plugins/kimchi/ui/css/theme-default/guest-edit.css index 1cb5ff8..93e0201 100644 --- a/plugins/kimchi/ui/css/theme-default/guest-edit.css +++ b/plugins/kimchi/ui/css/theme-default/guest-edit.css @@ -128,7 +128,7 @@ } .guest-edit-snapshot .icon { - background: url('../../images/theme-default/kimchi-loading15x15.gif') no-repeat; + background: url('../images/theme-default/kimchi-loading15x15.gif') no-repeat; display: block; width: 16px; height: 16px; @@ -250,12 +250,12 @@ } .guest-edit-permission .pam .body .item .user-icon { - background: url('/images/theme-default/user.png') no-repeat scroll; + background: url('../images/theme-default/user.png') no-repeat scroll; background-size: 15px 15px; } .guest-edit-permission .pam .body .item .group-icon { - background: url('/images/theme-default/group.png') no-repeat scroll; + background: url('../images/theme-default/group.png') no-repeat scroll; background-size: 15px 15px; } diff --git a/plugins/kimchi/ui/css/theme-default/host.css b/plugins/kimchi/ui/css/theme-default/host.css index 9e9cb01..a0cccb1 100644 --- a/plugins/kimchi/ui/css/theme-default/host.css +++ b/plugins/kimchi/ui/css/theme-default/host.css @@ -33,7 +33,7 @@ } .host-panel .logo { - background: url("../images/icon-vm.png") no-repeat left top; + background: url("plugins/kimchi/images/icon-vm.png") no-repeat left top; height: 128px; width: 128px; } @@ -220,7 +220,7 @@ } #id-debug-img { - background: url(../../images/theme-default/kimchi-loading15x15.gif) 12px + background: url(../images/theme-default/kimchi-loading15x15.gif) 12px center no-repeat; padding-left: 23px; } diff --git a/plugins/kimchi/ui/css/theme-default/list.css b/plugins/kimchi/ui/css/theme-default/list.css index 718c855..8c78623 100644 --- a/plugins/kimchi/ui/css/theme-default/list.css +++ b/plugins/kimchi/ui/css/theme-default/list.css @@ -312,7 +312,7 @@ } .guest-pending .icon { - background: url('../../images/theme-default/kimchi-loading15x15.gif') no-repeat; + background: url('../images/theme-default/kimchi-loading15x15.gif') no-repeat; display: inline-block; width: 20px; height: 20px; diff --git a/plugins/kimchi/ui/css/theme-default/network.css b/plugins/kimchi/ui/css/theme-default/network.css index 5d07468..30d310e 100644 --- a/plugins/kimchi/ui/css/theme-default/network.css +++ b/plugins/kimchi/ui/css/theme-default/network.css @@ -137,7 +137,7 @@ } .network .list .nw-loading { - background: #c0c0c0 url(../../images/theme-default/loading.gif) + background: #c0c0c0 url(../images/theme-default/loading.gif) center no-repeat; } @@ -316,4 +316,4 @@ .ui-state-default a { color: #212121; -} \ No newline at end of file +} diff --git a/plugins/kimchi/ui/css/theme-default/report-rename.css b/plugins/kimchi/ui/css/theme-default/report-rename.css index 1722005..3d70dab 100644 --- a/plugins/kimchi/ui/css/theme-default/report-rename.css +++ b/plugins/kimchi/ui/css/theme-default/report-rename.css @@ -32,7 +32,7 @@ } #button-report-rename[disabled] { - background: #c0c0c0 url(../../images/theme-default/loading.gif) 7px + background: #c0c0c0 url(../images/theme-default/loading.gif) 7px center no-repeat; color: #DDD; prenameing-left: 26px; diff --git a/plugins/kimchi/ui/css/theme-default/storage.css b/plugins/kimchi/ui/css/theme-default/storage.css index 0610278..519a28b 100644 --- a/plugins/kimchi/ui/css/theme-default/storage.css +++ b/plugins/kimchi/ui/css/theme-default/storage.css @@ -593,7 +593,7 @@ #pool-loading { margin: 10px 15px; - background: #C0C0C0 url(../../images/theme-default/loading.gif) 7px + background: #C0C0C0 url(../images/theme-default/loading.gif) 7px center no-repeat; padding: 0 20px 0 26px; } diff --git a/plugins/kimchi/ui/css/theme-default/template_add.css b/plugins/kimchi/ui/css/theme-default/template_add.css index a9bafa4..de5491f 100644 --- a/plugins/kimchi/ui/css/theme-default/template_add.css +++ b/plugins/kimchi/ui/css/theme-default/template_add.css @@ -171,7 +171,7 @@ margin: 0 5px 0 0; border: 1px solid #CCCCCC; border-radius: 8px; - background: url(../../images/icon-vm.png) center center no-repeat; + background: url(../images/icon-vm.png) center center no-repeat; background-size: 58px; } @@ -280,13 +280,13 @@ #iso-search-loading { margin: 10px 15px; - background: #C0C0C0 url(../../images/theme-default/loading.gif) 7px + background: #C0C0C0 url(../images/theme-default/loading.gif) 7px center no-repeat; padding: 0 20px 0 26px; } #iso-more-loading { - background: #C0C0C0 url(../../images/theme-default/loading.gif) 7px + background: #C0C0C0 url(../images/theme-default/loading.gif) 7px center no-repeat; padding: 0 20px 0 26px; } diff --git a/plugins/kimchi/ui/js/src/kimchi.api.js b/plugins/kimchi/ui/js/src/kimchi.api.js index 81e44fd..d4d0c83 100644 --- a/plugins/kimchi/ui/js/src/kimchi.api.js +++ b/plugins/kimchi/ui/js/src/kimchi.api.js @@ -17,8 +17,6 @@ */ var kimchi = { - url : "../../../", - widget: {}, trackingTasks: [], @@ -54,7 +52,7 @@ var kimchi = { getCapabilities : function(suc, err, done) { done = typeof done !== 'undefined' ? done: function(){}; wok.requestJSON({ - url : "config/capabilities", + url : "plugins/kimchi/config/capabilities", type : "GET", contentType : "application/json", dataType : "json", @@ -69,7 +67,7 @@ var kimchi = { */ getI18n: function(suc, err, url, sync) { wok.requestJSON({ - url : url ? url : 'i18n.json', + url : url ? url : 'plugins/kimchi/i18n.json', type : 'GET', resend: true, dataType : 'json', @@ -84,7 +82,7 @@ var kimchi = { */ getHost: function(suc, err) { wok.requestJSON({ - url : 'host', + url : 'plugins/kimchi/host', type : 'GET', resend: true, contentType : 'application/json', @@ -99,7 +97,7 @@ var kimchi = { */ getHostStats : function(suc, err) { wok.requestJSON({ - url : 'host/stats', + url : 'plugins/kimchi/host/stats', type : 'GET', contentType : 'application/json', headers: {'Wok-Robot': 'wok-robot'}, @@ -114,7 +112,7 @@ var kimchi = { */ getHostStatsHistory : function(suc, err) { wok.requestJSON({ - url : 'host/stats/history', + url : 'plugins/kimchi/host/stats/history', type : 'GET', resend: true, contentType : 'application/json', @@ -138,7 +136,7 @@ var kimchi = { */ createVM : function(settings, suc, err) { wok.requestJSON({ - url : "vms", + url : "plugins/kimchi/vms", type : "POST", contentType : "application/json", data : JSON.stringify(settings), @@ -154,7 +152,7 @@ var kimchi = { */ createTemplate : function(settings, suc, err) { wok.requestJSON({ - url : "templates", + url : "plugins/kimchi/templates", type : "POST", contentType : "application/json", data : JSON.stringify(settings), @@ -166,7 +164,7 @@ var kimchi = { deleteTemplate : function(tem, suc, err) { wok.requestJSON({ - url : 'templates/' + encodeURIComponent(tem), + url : 'plugins/kimchi/templates/' + encodeURIComponent(tem), type : 'DELETE', contentType : 'application/json', dataType : 'json', @@ -177,7 +175,7 @@ var kimchi = { cloneTemplate : function(tem, suc, err) { wok.requestJSON({ - url : 'templates/' + encodeURIComponent(tem) + "/clone", + url : 'plugins/kimchi/templates/' + encodeURIComponent(tem) + "/clone", type : 'POST', contentType : 'application/json', dataType : 'json', @@ -188,7 +186,7 @@ var kimchi = { listTemplates : function(suc, err) { wok.requestJSON({ - url : 'templates', + url : 'plugins/kimchi/templates', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -202,7 +200,7 @@ var kimchi = { */ retrieveTemplate : function(templateName, suc, err) { wok.requestJSON({ - url : "templates/" + encodeURIComponent(templateName), + url : 'plugins/kimchi/templates/' + encodeURIComponent(templateName), type : 'GET', contentType : 'application/json', dataType : 'json' @@ -216,7 +214,7 @@ var kimchi = { */ updateTemplate : function(name, settings, suc, err) { $.ajax({ - url : "templates/" + encodeURIComponent(name), + url : 'plugins/kimchi/templates/' + encodeURIComponent(name), type : 'PUT', contentType : 'application/json', data : JSON.stringify(settings), @@ -232,7 +230,7 @@ var kimchi = { */ createStoragePool : function(settings, suc, err) { wok.requestJSON({ - url : 'storagepools', + url : 'plugins/kimchi/storagepools', type : 'POST', contentType : 'application/json', data : JSON.stringify(settings), @@ -242,7 +240,7 @@ var kimchi = { updateStoragePool : function(name, content, suc, err) { $.ajax({ - url : "storagepools/" + encodeURIComponent(name), + url : "plugins/kimchi/storagepools/" + encodeURIComponent(name), type : 'PUT', contentType : 'application/json', dataType : 'json', @@ -254,7 +252,7 @@ var kimchi = { startVM : function(vm, suc, err) { wok.requestJSON({ - url : 'vms/' + encodeURIComponent(vm) + '/start', + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm) + '/start', type : 'POST', contentType : 'application/json', dataType : 'json', @@ -265,7 +263,7 @@ var kimchi = { poweroffVM : function(vm, suc, err) { wok.requestJSON({ - url : 'vms/' + encodeURIComponent(vm) + '/poweroff', + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm) + '/poweroff', type : 'POST', contentType : 'application/json', dataType : 'json', @@ -276,7 +274,7 @@ var kimchi = { shutdownVM : function(vm, suc, err) { wok.requestJSON({ - url : 'vms/' + encodeURIComponent(vm) + '/shutdown', + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm) + '/shutdown', type : 'POST', contentType : 'application/json', dataType : 'json', @@ -287,7 +285,7 @@ var kimchi = { resetVM : function(vm, suc, err) { wok.requestJSON({ - url : 'vms/' + encodeURIComponent(vm) + '/reset', + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm) + '/reset', type : 'POST', contentType : 'application/json', dataType : 'json', @@ -298,7 +296,7 @@ var kimchi = { suspendVM : function(vm, suc, err) { wok.requestJSON({ - url : 'vms/' + encodeURIComponent(vm) + '/suspend', + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm) + '/suspend', type : 'POST', contentType : 'application/json', dataType : 'json', @@ -309,7 +307,7 @@ var kimchi = { resumeVM : function(vm, suc, err) { wok.requestJSON({ - url : 'vms/' + encodeURIComponent(vm) + '/resume', + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm) + '/resume', type : 'POST', contentType : 'application/json', dataType : 'json', @@ -327,7 +325,7 @@ var kimchi = { */ retrieveVM : function(vm, suc, err) { $.ajax({ - url : 'vms/' + encodeURIComponent(vm), + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm), type : 'GET', contentType : 'application/json', dataType : 'json', @@ -341,7 +339,7 @@ var kimchi = { */ updateVM : function(name, settings, suc, err) { $.ajax({ - url : "vms/" + encodeURIComponent(name), + url : "plugins/kimchi/vms/" + encodeURIComponent(name), type : 'PUT', contentType : 'application/json', data : JSON.stringify(settings), @@ -353,7 +351,7 @@ var kimchi = { deleteVM : function(vm, suc, err) { wok.requestJSON({ - url : 'vms/' + encodeURIComponent(vm), + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm), type : 'DELETE', contentType : 'application/json', dataType : 'json', @@ -364,18 +362,19 @@ var kimchi = { vncToVM : function(vm) { wok.requestJSON({ - url : 'config', + url : 'plugins/kimchi/config', type : 'GET', dataType : 'json' }).done(function(data, textStatus, xhr) { proxy_port = data['display_proxy_port']; wok.requestJSON({ - url : "vms/" + encodeURIComponent(vm) + "/connect", + url : "plugins/kimchi/vms/" + encodeURIComponent(vm) + "/connect", type : "POST", dataType : "json" }).done(function() { url = 'https://' + location.hostname + ':' + proxy_port; - url += "/console.html?url=" + encodeURIComponent("novnc/vnc_auto.html"); + url += "/console.html?url="; + url += encodeURIComponent("plugins/kimchi/novnc/vnc_auto.html"); url += "&port=" + proxy_port; /* * From python documentation base64.urlsafe_b64encode(s) @@ -396,19 +395,19 @@ var kimchi = { spiceToVM : function(vm) { wok.requestJSON({ - url : 'config', + url : 'plugins/kimchi/config', type : 'GET', dataType : 'json' }).done(function(data, textStatus, xhr) { proxy_port = data['display_proxy_port']; wok.requestJSON({ - url : "vms/" + encodeURIComponent(vm) + "/connect", + url : "plugins/kimchi/vms/" + encodeURIComponent(vm) + "/connect", type : "POST", dataType : "json" }).done(function(data, textStatus, xhr) { url = 'https://' + location.hostname + ':' + proxy_port; - url += "/console.html?url=spice_auto.html&port=" + proxy_port; - url += "&listen=" + location.hostname; + url += "/console.html?url=plugins/kimchi/spice_auto.html"; + url += "&port=" + proxy_port + "&listen=" + location.hostname; /* * From python documentation base64.urlsafe_b64encode(s) * substitutes - instead of + and _ instead of / in the @@ -428,7 +427,7 @@ var kimchi = { listVMs : function(suc, err) { wok.requestJSON({ - url : 'vms', + url : 'plugins/kimchi/vms', type : 'GET', contentType : 'application/json', headers: {'Wok-Robot': 'wok-robot'}, @@ -441,7 +440,7 @@ var kimchi = { listTemplates : function(suc, err) { wok.requestJSON({ - url : 'templates', + url : 'plugins/kimchi/templates', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -453,7 +452,7 @@ var kimchi = { listStoragePools : function(suc, err) { wok.requestJSON({ - url : 'storagepools', + url : 'plugins/kimchi/storagepools', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -465,7 +464,7 @@ var kimchi = { listStorageVolumes : function(poolName, suc, err) { $.ajax({ - url : 'storagepools/' + encodeURIComponent(poolName) + '/storagevolumes', + url : 'plugins/kimchi/storagepools/' + encodeURIComponent(poolName) + '/storagevolumes', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -476,7 +475,7 @@ var kimchi = { listIsos : function(suc, err) { wok.requestJSON({ - url : 'storagepools/kimchi_isos/storagevolumes', + url : 'plugins/kimchi/storagepools/kimchi_isos/storagevolumes', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -487,7 +486,7 @@ var kimchi = { listDistros : function(suc, err) { wok.requestJSON({ - url : 'config/distros', + url : 'plugins/kimchi/config/distros', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -549,7 +548,7 @@ var kimchi = { getTask : function(taskId, suc, err) { wok.requestJSON({ - url : 'tasks/' + encodeURIComponent(taskId), + url : 'plugins/kimchi/tasks/' + encodeURIComponent(taskId), type : 'GET', contentType : 'application/json', dataType : 'json', @@ -560,7 +559,7 @@ var kimchi = { getTasksByFilter : function(filter, suc, err, sync) { wok.requestJSON({ - url : 'tasks?' + filter, + url : 'plugins/kimchi/tasks?' + filter, type : 'GET', contentType : 'application/json', dataType : 'json', @@ -591,7 +590,7 @@ var kimchi = { deleteStoragePool : function(poolName, suc, err) { $.ajax({ - url : 'storagepools/' + encodeURIComponent(poolName), + url : 'plugins/kimchi/storagepools/' + encodeURIComponent(poolName), type : 'DELETE', contentType : 'application/json', dataType : 'json', @@ -603,7 +602,7 @@ var kimchi = { changePoolState : function(poolName, state, suc, err) { if (state === 'activate' || state === 'deactivate') $.ajax({ - url : 'storagepools/' + encodeURIComponent(poolName) + '/' + state, + url : 'plugins/kimchi/storagepools/' + encodeURIComponent(poolName) + '/' + state, type : 'POST', contentType : 'application/json', dataType : 'json', @@ -627,7 +626,7 @@ var kimchi = { listNetworks : function(suc, err) { wok.requestJSON({ - url : 'networks', + url : 'plugins/kimchi/networks', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -642,7 +641,7 @@ var kimchi = { toggleNetwork : function(name, on, suc, err) { var action = on ? "activate" : "deactivate"; wok.requestJSON({ - url : 'networks/' + encodeURIComponent(name) + '/' + action, + url : 'plugins/kimchi/networks/' + encodeURIComponent(name) + '/' + action, type : 'POST', contentType : 'application/json', dataType : 'json', @@ -655,7 +654,7 @@ var kimchi = { createNetwork : function(network, suc, err) { wok.requestJSON({ - url : 'networks', + url : 'plugins/kimchi/networks', type : 'POST', contentType : 'application/json', dataType : 'json', @@ -669,7 +668,7 @@ var kimchi = { getInterfaces : function(suc, err) { wok.requestJSON({ - url : 'interfaces', + url : 'plugins/kimchi/interfaces', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -683,7 +682,7 @@ var kimchi = { deleteNetwork : function(name, suc, err) { wok.requestJSON({ - url : 'networks/' + encodeURIComponent(name), + url : 'plugins/kimchi/networks/' + encodeURIComponent(name), type : 'DELETE', contentType : 'application/json', dataType : 'json', @@ -696,7 +695,7 @@ var kimchi = { listReports : function(suc, err) { wok.requestJSON({ - url : 'debugreports', + url : 'plugins/kimchi/debugreports', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -739,7 +738,7 @@ var kimchi = { }; wok.requestJSON({ - url : 'debugreports', + url : 'plugins/kimchi/debugreports', type : "POST", contentType : "application/json", data : JSON.stringify(settings), @@ -751,7 +750,7 @@ var kimchi = { renameReport : function(name, settings, suc, err) { $.ajax({ - url : "debugreports/" + encodeURIComponent(name), + url : "plugins/kimchi/debugreports/" + encodeURIComponent(name), type : 'PUT', contentType : 'application/json', data : JSON.stringify(settings), @@ -764,7 +763,7 @@ var kimchi = { deleteReport: function(settings, suc, err) { var reportName = encodeURIComponent(settings['name']); wok.requestJSON({ - url : 'debugreports/' + reportName, + url : 'plugins/kimchi/debugreports/' + reportName, type : 'DELETE', contentType : 'application/json', dataType : 'json', @@ -779,7 +778,7 @@ var kimchi = { shutdown: function(settings, suc, err) { var reboot = settings && settings['reboot'] === true; - var url = 'host/' + (reboot ? 'reboot' : 'shutdown'); + var url = 'plugins/kimchi/host/' + (reboot ? 'reboot' : 'shutdown'); wok.requestJSON({ url : url, type : 'POST', @@ -792,7 +791,7 @@ var kimchi = { listHostPartitions : function(suc, err) { wok.requestJSON({ - url : 'host/partitions', + url : 'plugins/kimchi/host/partitions', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -802,7 +801,7 @@ var kimchi = { }, getStorageServers: function(type, suc, err) { - var url = 'storageservers?_target_type=' + type; + var url = 'plugins/kimchi/storageservers?_target_type=' + type; wok.requestJSON({ url : url, type : 'GET', @@ -816,7 +815,7 @@ var kimchi = { }, getStorageTargets: function(server,type, suc, err) { - var url = 'storageservers/' + server + '/storagetargets?_target_type=' + type; + var url = 'plugins/kimchi/storageservers/' + server + '/storagetargets?_target_type=' + type; wok.requestJSON({ url : url, type : 'GET', @@ -829,7 +828,7 @@ var kimchi = { }, getStoragePool: function(poolName, suc, err) { - var url = kimchi.url + 'storagepools/' + encodeURIComponent(poolName); + var url = 'plugins/kimchi/storagepools/' + encodeURIComponent(poolName); wok.requestJSON({ url : url, type : 'GET', @@ -842,7 +841,7 @@ var kimchi = { }, getStoragePoolVolume: function(poolName, volumeName, suc, err) { - var url = 'storagepools/' + encodeURIComponent(poolName) + '/storagevolumes/' + encodeURIComponent(volumeName); + var url = 'plugins/kimchi/storagepools/' + encodeURIComponent(poolName) + '/storagevolumes/' + encodeURIComponent(volumeName); wok.requestJSON({ url : url, type : 'GET', @@ -858,7 +857,7 @@ var kimchi = { var vm = encodeURIComponent(settings['vm']); delete settings['vm']; wok.requestJSON({ - url : 'vms/' + vm + '/storages', + url : 'plugins/kimchi/vms/' + vm + '/storages', type : 'POST', contentType : 'application/json', data : JSON.stringify(settings), @@ -872,7 +871,7 @@ var kimchi = { var vm = encodeURIComponent(settings['vm']); var dev = encodeURIComponent(settings['dev']); wok.requestJSON({ - url : "vms/" + vm + '/storages/' + dev, + url : "plugins/kimchi/vms/" + vm + '/storages/' + dev, type : 'GET', contentType : 'application/json', dataType : 'json', @@ -885,7 +884,7 @@ var kimchi = { var vm = encodeURIComponent(settings['vm']); var dev = encodeURIComponent(settings['dev']); wok.requestJSON({ - url : 'vms/' + vm + '/storages/' + dev, + url : 'plugins/kimchi/vms/' + vm + '/storages/' + dev, type : 'PUT', contentType : 'application/json', data : JSON.stringify({ @@ -901,8 +900,8 @@ var kimchi = { var vm = settings['vm']; var dev = settings['dev']; wok.requestJSON({ - url : 'vms/' + encodeURIComponent(vm) + - '/storages/' + encodeURIComponent(dev), + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm) + + '/storages/' + encodeURIComponent(dev), type : 'DELETE', contentType : 'application/json', dataType : 'json', @@ -914,7 +913,7 @@ var kimchi = { listVMStorages : function(params, suc, err) { var vm = encodeURIComponent(params['vm']); var type = params['storageType']; - var url = 'vms/' + vm + '/storages'; + var url = 'plugins/kimchi/vms/' + vm + '/storages'; if(type) { url += '?type=' + type; } @@ -930,7 +929,7 @@ var kimchi = { listSoftwareUpdates : function(suc, err) { wok.requestJSON({ - url : 'host/packagesupdate', + url : 'plugins/kimchi/host/packagesupdate', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -970,7 +969,7 @@ var kimchi = { }; wok.requestJSON({ - url : 'host/swupdate', + url : 'plugins/kimchi/host/swupdate', type : "POST", contentType : "application/json", dataType : "json", @@ -981,7 +980,7 @@ var kimchi = { createRepository : function(settings, suc, err) { wok.requestJSON({ - url : "host/repositories", + url : "plugins/kimchi/host/repositories", type : "POST", contentType : "application/json", data : JSON.stringify(settings), @@ -994,7 +993,7 @@ var kimchi = { retrieveRepository : function(repository, suc, err) { var reposID = encodeURIComponent(repository); wok.requestJSON({ - url : "host/repositories/" + reposID, + url : "plugins/kimchi/host/repositories/" + reposID, type : 'GET', contentType : 'application/json', dataType : 'json', @@ -1006,7 +1005,7 @@ var kimchi = { updateRepository : function(name, settings, suc, err) { var reposID = encodeURIComponent(name); $.ajax({ - url : "host/repositories/" + reposID, + url : "plugins/kimchi/host/repositories/" + reposID, type : 'PUT', contentType : 'application/json', data : JSON.stringify(settings), @@ -1019,8 +1018,8 @@ var kimchi = { enableRepository : function(name, enable, suc, err) { var reposID = encodeURIComponent(name); $.ajax({ - url : "host/repositories/" + reposID + - '/' + (enable === true ? 'enable' : 'disable'), + url : "plugins/kimchi/host/repositories/" + reposID + + '/' + (enable === true ? 'enable' : 'disable'), type : 'POST', contentType : 'application/json', dataType : 'json', @@ -1032,7 +1031,7 @@ var kimchi = { deleteRepository : function(repository, suc, err) { var reposID = encodeURIComponent(repository); wok.requestJSON({ - url : 'host/repositories/' + reposID, + url : 'plugins/kimchi/host/repositories/' + reposID, type : 'DELETE', contentType : 'application/json', dataType : 'json', @@ -1043,7 +1042,7 @@ var kimchi = { listRepositories : function(suc, err) { wok.requestJSON({ - url : 'host/repositories', + url : 'plugins/kimchi/host/repositories', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -1054,7 +1053,7 @@ var kimchi = { }, getHostFCDevices: function(suc, err) { - var url = 'host/devices?_cap=fc_host'; + var url = 'plugins/kimchi/host/devices?_cap=fc_host'; wok.requestJSON({ url : url, type : 'GET', @@ -1068,7 +1067,7 @@ var kimchi = { }, getGuestInterfaces: function(name, suc, err) { - var url = 'vms/'+encodeURIComponent(name)+'/ifaces'; + var url = 'plugins/kimchi/vms/' + encodeURIComponent(name) + '/ifaces'; wok.requestJSON({ url : url, type : 'GET', @@ -1083,7 +1082,7 @@ var kimchi = { createGuestInterface : function(name, interface, suc, err) { wok.requestJSON({ - url : 'vms/'+encodeURIComponent(name)+'/ifaces', + url : 'plugins/kimchi/vms/' + encodeURIComponent(name) + '/ifaces', type : 'POST', contentType : 'application/json', dataType : 'json', @@ -1097,7 +1096,7 @@ var kimchi = { deleteGuestInterface : function(vm, mac, suc, err) { wok.requestJSON({ - url : 'vms/'+encodeURIComponent(vm)+'/ifaces/'+encodeURIComponent(mac), + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm) + '/ifaces/' + encodeURIComponent(mac), type : 'DELETE', contentType : 'application/json', dataType : 'json', @@ -1110,7 +1109,7 @@ var kimchi = { updateGuestInterface : function(vm, mac, interface, suc, err) { $.ajax({ - url : 'vms/'+encodeURIComponent(vm)+'/ifaces/'+encodeURIComponent(mac), + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm) + '/ifaces/' + encodeURIComponent(mac), type : 'PUT', contentType : 'application/json', data : JSON.stringify(interface), @@ -1124,7 +1123,7 @@ var kimchi = { getUserById : function(data, suc, err) { wok.requestJSON({ - url : 'users?_user_id=' + data.user_id, + url : 'plugins/kimchi/users?_user_id=' + data.user_id, type : 'GET', contentType : 'application/json', dataType : 'json', @@ -1139,7 +1138,7 @@ var kimchi = { getUsers : function(suc, err) { wok.requestJSON({ - url : 'users', + url : 'plugins/kimchi/users', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -1153,7 +1152,7 @@ var kimchi = { getGroups : function(suc, err) { wok.requestJSON({ - url : 'groups', + url : 'plugins/kimchi/groups', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -1167,7 +1166,7 @@ var kimchi = { getHostPCIDevices : function(suc, err) { wok.requestJSON({ - url : 'host/devices?_passthrough=true&_cap=pci', + url : 'plugins/kimchi/host/devices?_passthrough=true&_cap=pci', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -1181,7 +1180,7 @@ var kimchi = { getPCIDeviceCompanions : function(pcidev, suc, err) { wok.requestJSON({ - url : 'host/devices?_passthrough_affected_by=' + pcidev, + url : 'plugins/kimchi/host/devices?_passthrough_affected_by=' + pcidev, type : 'GET', contentType : 'application/json', dataType : 'json', @@ -1197,7 +1196,7 @@ var kimchi = { server = encodeURIComponent(server); port = port ? '&_server_port='+encodeURIComponent(port) : ''; wok.requestJSON({ - url : 'storageservers/'+server+'/storagetargets?_target_type=iscsi'+port, + url : 'plugins/kimchi/storageservers/' + server + '/storagetargets?_target_type=iscsi' + port, type : 'GET', contentType : 'application/json', dataType : 'json', @@ -1211,7 +1210,7 @@ var kimchi = { getPeers : function(suc, err) { wok.requestJSON({ - url : 'peers', + url : 'plugins/kimchi/peers', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -1225,7 +1224,7 @@ var kimchi = { getVMPCIDevices : function(id, suc, err) { wok.requestJSON({ - url : 'vms/'+encodeURIComponent(id)+'/hostdevs', + url : 'plugins/kimchi/vms/' + encodeURIComponent(id) + '/hostdevs', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -1239,7 +1238,7 @@ var kimchi = { addVMPCIDevice : function(vm, device, suc, err) { wok.requestJSON({ - url : 'vms/'+ encodeURIComponent(vm) +'/hostdevs', + url : 'plugins/kimchi/vms/'+ encodeURIComponent(vm) +'/hostdevs', type : 'POST', contentType : 'application/json', dataType : 'json', @@ -1253,7 +1252,7 @@ var kimchi = { removeVMPCIDevice : function(vm, device, suc, err) { wok.requestJSON({ - url : 'vms/'+ encodeURIComponent(vm) +'/hostdevs/' + encodeURIComponent(device), + url : 'plugins/kimchi/vms/'+ encodeURIComponent(vm) +'/hostdevs/' + encodeURIComponent(device), type : 'DELETE', contentType : 'application/json', dataType : 'json', @@ -1269,7 +1268,7 @@ var kimchi = { */ createVolumeWithCapacity: function(poolName, settings, suc, err) { wok.requestJSON({ - url : 'storagepools/' + encodeURIComponent(poolName) + '/storagevolumes', + url : 'plugins/kimchi/storagepools/' + encodeURIComponent(poolName) + '/storagevolumes', type : 'POST', contentType : "application/json", data : JSON.stringify(settings), @@ -1283,7 +1282,7 @@ var kimchi = { * Upload volume content */ uploadVolumeToSP: function(poolName, volumeName, settings, suc, err) { - var url = 'storagepools/' + encodeURIComponent(poolName) + '/storagevolumes/' + encodeURIComponent(volumeName); + var url = 'plugins/kimchi/storagepools/' + encodeURIComponent(poolName) + '/storagevolumes/' + encodeURIComponent(volumeName); var fd = settings['formData']; wok.requestJSON({ url : url, @@ -1304,7 +1303,7 @@ var kimchi = { var sp = encodeURIComponent(settings['sp']); delete settings['sp']; wok.requestJSON({ - url : 'storagepools/' + sp + '/storagevolumes', + url : 'plugins/kimchi/storagepools/' + sp + '/storagevolumes', type : 'POST', data : JSON.stringify(settings), contentType : 'application/json', @@ -1316,7 +1315,7 @@ var kimchi = { cloneGuest: function(vm, suc, err) { wok.requestJSON({ - url : 'vms/'+encodeURIComponent(vm)+"/clone", + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm) + "/clone", type : 'POST', contentType : 'application/json', dataType : 'json', @@ -1329,7 +1328,7 @@ var kimchi = { listSnapshots : function(vm, suc, err) { wok.requestJSON({ - url : 'vms/'+encodeURIComponent(vm)+'/snapshots', + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm) + '/snapshots', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -1343,7 +1342,7 @@ var kimchi = { getCurrentSnapshot : function(vm, suc, err, sync) { wok.requestJSON({ - url : 'vms/'+encodeURIComponent(vm)+'/snapshots/current', + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm) + '/snapshots/current', type : 'GET', contentType : 'application/json', dataType : 'json', @@ -1358,7 +1357,7 @@ var kimchi = { revertSnapshot : function(vm, snapshot, suc, err) { wok.requestJSON({ - url : 'vms/'+encodeURIComponent(vm)+'/snapshots/'+encodeURIComponent(snapshot)+'/revert', + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm) + '/snapshots/' + encodeURIComponent(snapshot) + '/revert', type : 'POST', contentType : 'application/json', dataType : 'json', @@ -1371,7 +1370,7 @@ var kimchi = { createSnapshot : function(vm, suc, err) { wok.requestJSON({ - url : 'vms/'+encodeURIComponent(vm)+'/snapshots', + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm) + '/snapshots', type : 'POST', contentType : 'application/json', dataType : 'json', @@ -1384,7 +1383,7 @@ var kimchi = { deleteSnapshot : function(vm, snapshot, suc, err) { wok.requestJSON({ - url : 'vms/'+encodeURIComponent(vm)+'/snapshots/'+encodeURIComponent(snapshot), + url : 'plugins/kimchi/vms/' + encodeURIComponent(vm) + '/snapshots/' + encodeURIComponent(snapshot), type : 'DELETE', contentType : 'application/json', dataType : 'json', @@ -1397,7 +1396,7 @@ var kimchi = { getCPUInfo : function(suc, err) { wok.requestJSON({ - url : 'host/cpuinfo', + url : 'plugins/kimchi/host/cpuinfo', type : 'GET', contentType : 'application/json', dataType : 'json', diff --git a/plugins/kimchi/ui/js/src/kimchi.guest_add_main.js b/plugins/kimchi/ui/js/src/kimchi.guest_add_main.js index 1008d85..6be6f9a 100644 --- a/plugins/kimchi/ui/js/src/kimchi.guest_add_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.guest_add_main.js @@ -34,7 +34,7 @@ kimchi.guest_add_main = function() { $('#btn-create-template').on('click', function(event) { wok.topic('templateCreated').subscribe(showTemplates); - wok.window.open('template-add.html'); + wok.window.open('plugins/kimchi/template-add.html'); event.preventDefault(); }); diff --git a/plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js b/plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js index 28c2163..25e3703 100644 --- a/plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js @@ -604,7 +604,7 @@ kimchi.guest_edit_main = function() { }); }; var listGeneratingSnapshots = function(){ - kimchi.getTasksByFilter('status=running&target_uri='+encodeURIComponent('^/snapshots/*'), function(tasks) { + kimchi.getTasksByFilter('status=running&target_uri='+encodeURIComponent('^/plugins/kimchi/snapshots/*'), function(tasks) { $(".task", "#form-guest-edit-snapshot").empty(); for(var i=0;i<tasks.length;i++){ addOngoingItem(tasks[i]); @@ -639,7 +639,7 @@ kimchi.guest_edit_main = function() { }; var initContent = function(guest) { - guest['icon'] = guest['icon'] || 'images/icon-vm.png'; + guest['icon'] = guest['icon'] || 'plugins/kimchi/images/icon-vm.png'; $('#form-guest-edit-general').fillWithObject(guest); kimchi.thisVMState = guest['state']; refreshCDROMs(); @@ -650,7 +650,7 @@ kimchi.guest_edit_main = function() { text: false }).click(function(event) { event.preventDefault(); - wok.window.open("guest-storage-add.html"); + wok.window.open("plugins/kimchi/guest-storage-add.html"); }); if(kimchi.thisVMState === "running") { $("#form-guest-edit-general input").prop("disabled", true); diff --git a/plugins/kimchi/ui/js/src/kimchi.guest_main.js b/plugins/kimchi/ui/js/src/kimchi.guest_main.js index a0f927b..7dd5d84 100644 --- a/plugins/kimchi/ui/js/src/kimchi.guest_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.guest_main.js @@ -202,7 +202,7 @@ kimchi.vmedit = function(event) { var vm_id=vm.attr("id"); kimchi.selectedGuest = vm_id; wok.window.open({ - url: 'guest-edit.html', + url: 'plugins/kimchi/guest-edit.html', close: function() { kimchi.clearGuestEdit(); } @@ -245,7 +245,7 @@ kimchi.listVmsAuto = function() { } var getCreatingGuests = function(){ var guests = []; - kimchi.getTasksByFilter('status=running&target_uri='+encodeURIComponent('^/vms/[^/]+$'), function(tasks) { + kimchi.getTasksByFilter('status=running&target_uri='+encodeURIComponent('^/plugins/kimchi/vms/[^/]+$'), function(tasks) { for(var i=0;i<tasks.length;i++){ var guestUri = tasks[i].target_uri; var guestName = guestUri.split('/')[2] @@ -260,7 +260,7 @@ kimchi.listVmsAuto = function() { }; var getCloningGuests = function(){ var guests = []; - kimchi.getTasksByFilter('status=running&target_uri='+encodeURIComponent('^/vms/.+/clone'), function(tasks) { + kimchi.getTasksByFilter('status=running&target_uri='+encodeURIComponent('^/plugins/kimchi/vms/.+/clone'), function(tasks) { for(var i=0;i<tasks.length;i++){ var guestUri = tasks[i].target_uri; var guestName = guestUri.split('/')[2] @@ -325,7 +325,7 @@ kimchi.createGuestLi = function(vmObject, prevScreenImage, openMenu) { if (vmObject.screenshot) { curImg = vmObject.screenshot.replace(/^\//,''); } - var load_src = curImg || 'images/icon-vm.png'; + var load_src = curImg || 'plugins/kimchi/images/icon-vm.png'; var tile_src = prevScreenImage || vmObject['load-src']; var liveTile=result.find('div[name=guest-tile] > .tile'); liveTile.addClass(vmObject.state); @@ -352,7 +352,7 @@ kimchi.createGuestLi = function(vmObject, prevScreenImage, openMenu) { liveTile.off("click", kimchi.openVmConsole); liveTile.on("click", kimchi.vmresume); if(vmObject.state="paused") { - liveTile.find('.overlay').attr('src',"/images/theme-default/ac24_resume.png"); + liveTile.find('.overlay').attr('src',"plugins/kimchi/images/theme-default/ac24_resume.png"); liveTile.find('.overlay').attr('alt',"Resume"); } liveTile.hover(function(event){$(this).find('.overlay').show()}, function(event){$(this).find('.overlay').hide()}); @@ -492,7 +492,7 @@ kimchi.guest_main = function() { if(wok.tabMode['guests'] === 'admin') { $('.tools').attr('style','display'); $("#vm-add").on("click", function(event) { - wok.window.open('guest-add.html'); + wok.window.open('plugins/kimchi/guest-add.html'); }); } kimchi.guestTemplate = $('#guest-tmpl').html(); diff --git a/plugins/kimchi/ui/js/src/kimchi.guest_media_main.js b/plugins/kimchi/ui/js/src/kimchi.guest_media_main.js index 2e4e7e8..b920527 100644 --- a/plugins/kimchi/ui/js/src/kimchi.guest_media_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.guest_media_main.js @@ -35,7 +35,7 @@ kimchi.guest_media_main = function() { var replaceCDROM = function(event) { event.preventDefault(); kimchi.selectedGuestStorage = $(this).data('dev'); - wok.window.open("guest-cdrom-edit.html"); + wok.window.open("plugins/kimchi/guest-cdrom-edit.html"); }; $('input[type="text"][name="cdrom"]', container).on('click', replaceCDROM); diff --git a/plugins/kimchi/ui/js/src/kimchi.host.js b/plugins/kimchi/ui/js/src/kimchi.host.js index 7834024..4218d97 100644 --- a/plugins/kimchi/ui/js/src/kimchi.host.js +++ b/plugins/kimchi/ui/js/src/kimchi.host.js @@ -86,7 +86,8 @@ kimchi.host_main = function() { id: 'repositories-grid-add-button', label: i18n['KCHREPO6012M'], onClick: function(event) { - wok.window.open({url:'repository-add.html', class: repo_type}); + wok.window.open({url:'plugins/kimchi/repository-add.html', + class: repo_type}); } }, { id: 'repositories-grid-enable-button', @@ -114,7 +115,8 @@ kimchi.host_main = function() { return; } kimchi.selectedRepository = repository['repo_id']; - wok.window.open({url:'repository-edit.html', class: repo_type}); + wok.window.open({url:'plugins/kimchi/repository-edit.html', + class: repo_type}); } }, { id: 'repositories-grid-remove-button', @@ -302,7 +304,7 @@ kimchi.host_main = function() { id: reportGridID + '-generate-button', label: i18n['KCHDR6006M'], onClick: function(event) { - wok.window.open('report-add.html'); + wok.window.open('plugins/kimchi/report-add.html'); } }, { id: reportGridID + '-rename-button', @@ -315,7 +317,7 @@ kimchi.host_main = function() { } kimchi.selectedReport = report['name']; - wok.window.open('report-rename.html'); + wok.window.open('plugins/kimchi/report-rename.html'); } }, { id: reportGridID + '-remove-button', @@ -389,11 +391,11 @@ kimchi.host_main = function() { var getPendingReports = function() { var reports = [] - var filter = 'status=running&target_uri=' + encodeURIComponent('^/debugreports/*') + var filter = 'status=running&target_uri=' + encodeURIComponent('^/plugins/kimchi/debugreports/*') kimchi.getTasksByFilter(filter, function(tasks) { for(var i = 0; i < tasks.length; i++) { - reportName = tasks[i].target_uri.replace(/^\/debugreports\//, '') || i18n['KCHDR6012M']; + reportName = tasks[i].target_uri.replace(/^\/plugins\/kimchi\/debugreports\//, '') || i18n['KCHDR6012M']; reports.push({'name': reportName, 'time': i18n['KCHDR6007M']}) if(kimchi.trackingTasks.indexOf(tasks[i].id) >= 0) { diff --git a/plugins/kimchi/ui/js/src/kimchi.storage_main.js b/plugins/kimchi/ui/js/src/kimchi.storage_main.js index 1238c5f..4b2e928 100644 --- a/plugins/kimchi/ui/js/src/kimchi.storage_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.storage_main.js @@ -150,7 +150,7 @@ kimchi.storageBindClick = function() { $('.pool-add-volume').on('click', function(event) { var poolName = $(this).data('name'); kimchi.selectedSP = poolName; - wok.window.open('storagepool-add-volume.html'); + wok.window.open('plugins/kimchi/storagepool-add-volume.html'); }); $('.storage-action').on('click', function() { @@ -202,7 +202,7 @@ kimchi.doListVolumes = function(poolObj) { var getOngoingVolumes = function() { var result = {} - var filter = 'status=running&target_uri=' + encodeURIComponent('^/storagepools/' + poolName + '/*') + var filter = 'status=running&target_uri=' + encodeURIComponent('^/plugins/kimchi/storagepools/' + poolName + '/*') kimchi.getTasksByFilter(filter, function(tasks) { for(var i = 0; i < tasks.length; i++) { var volumeName = tasks[i].target_uri.split('/').pop(); @@ -329,7 +329,7 @@ kimchi.storage_main = function() { if(wok.tabMode['storage'] === 'admin') { $('.tools').attr('style','display'); $('#storage-pool-add').on('click', function() { - wok.window.open('storagepool-add.html'); + wok.window.open('plugins/kimchi/storagepool-add.html'); }); $('.list-title .title-actions').attr('style','display'); } diff --git a/plugins/kimchi/ui/js/src/kimchi.template_edit_main.js b/plugins/kimchi/ui/js/src/kimchi.template_edit_main.js index d336729..6df1328 100644 --- a/plugins/kimchi/ui/js/src/kimchi.template_edit_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.template_edit_main.js @@ -283,7 +283,7 @@ kimchi.template_edit_main = function() { if($('.template-storage-type', tmpItem).val() === 'iscsi' || $('.template-storage-type', tmpItem).val() == 'scsi') { tempNameTail = tempName[tempName.length-1]; } - tempName = '/storagepools/' + tempNameHead; + tempName = '/plugins/kimchi/storagepools/' + tempNameHead; data['storagepool'] = tempName; $.each(editableFields, function(i, field) { /* Support only 1 disk at this moment */ diff --git a/plugins/kimchi/ui/js/src/kimchi.template_main.js b/plugins/kimchi/ui/js/src/kimchi.template_main.js index 5d474bd..b09fe12 100644 --- a/plugins/kimchi/ui/js/src/kimchi.template_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.template_main.js @@ -34,9 +34,9 @@ kimchi.doListTemplates = function() { } } if(isLocal){ - value.location = "images/theme-default/icon-local.png"; + value.location = "plugins/kimchi/images/theme-default/icon-local.png"; }else{ - value.location = "images/theme-default/icon-remote.png"; + value.location = "plugins/kimchi/images/theme-default/icon-remote.png"; } listHtml += wok.substitute(templateHtml, value); }); @@ -57,7 +57,7 @@ kimchi.templateBindClick = function() { $('.template-edit').on('click', function(event) { var templateName = $(this).data('template'); kimchi.selectedTemplate = templateName; - wok.window.open("template-edit.html"); + wok.window.open("plugins/kimchi/template-edit.html"); }); $('.template-clone').on('click', function(event) { kimchi.selectedTemplate = $(this).data('template'); @@ -97,7 +97,7 @@ kimchi.template_main = function() { $('.tools').attr('style','display'); $("#template-add").on("click", function(event) { wok.window.open({ - url: 'template-add.html', + url: 'plugins/kimchi/template-add.html', close: function() { if (kimchi.deepScanHandler) { kimchi.deepScanHandler.stop = true; diff --git a/plugins/kimchi/ui/pages/error.html.tmpl b/plugins/kimchi/ui/pages/error.html.tmpl index 068f2a6..13af1e1 100644 --- a/plugins/kimchi/ui/pages/error.html.tmpl +++ b/plugins/kimchi/ui/pages/error.html.tmpl @@ -28,14 +28,14 @@ <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Kimchi</title> - <link rel="stylesheet" href="$href("/css/theme-default.min.css")"> + <link rel="stylesheet" href="$href("css/theme-default.min.css")"> </head> <body> <div class="error-background"> <h1 id="logo"> - <img src="/images/theme-default/logo-white.png" alt="Kimchi"> + <img src="plugins/kimchi/images/theme-default/logo-white.png" alt="Kimchi"> </h1> </div> <div class="error-msg error-icon"> diff --git a/plugins/kimchi/ui/pages/guest-add.html.tmpl b/plugins/kimchi/ui/pages/guest-add.html.tmpl index 8466bae..340b131 100644 --- a/plugins/kimchi/ui/pages/guest-add.html.tmpl +++ b/plugins/kimchi/ui/pages/guest-add.html.tmpl @@ -59,7 +59,7 @@ <script type="html/text" id="tmpl-template" class="tmpl-html"> <li> <label> - <input type="radio" name="template" value="/templates/{name}"> + <input type="radio" name="template" value="/plugins/kimchi/templates/{name}"> <div class="info"> <div class="summary os-icon"> <img src="{icon}"> diff --git a/plugins/kimchi/ui/pages/guest.html.tmpl b/plugins/kimchi/ui/pages/guest.html.tmpl index a876f38..78e9161 100644 --- a/plugins/kimchi/ui/pages/guest.html.tmpl +++ b/plugins/kimchi/ui/pages/guest.html.tmpl @@ -45,7 +45,7 @@ <div class="tile "> <img class="imgactive" alt="" src=""> <img class="imgload" alt="" src=""> - <img class="overlay shutoff-hidden" alt="$_("Start")" src="images/theme-default/icon-power-down.png" > + <img class="overlay shutoff-hidden" alt="$_("Start")" src="plugins/kimchi/images/theme-default/icon-power-down.png" > </div> </div> <div class="sortable guest-actions" name="guest-actions"> diff --git a/plugins/kimchi/ui/pages/storagepool-add.html.tmpl b/plugins/kimchi/ui/pages/storagepool-add.html.tmpl index a81207b..8ba4cfe 100644 --- a/plugins/kimchi/ui/pages/storagepool-add.html.tmpl +++ b/plugins/kimchi/ui/pages/storagepool-add.html.tmpl @@ -100,7 +100,7 @@ <div class="host-partition"> <p class="text-help"> $_("Looking for available partitions ...") - <img src = "images/theme-default/loading.gif" /> + <img src = "plugins/kimchi/images/theme-default/loading.gif" /> </p> </div> </section> diff --git a/plugins/kimchi/ui/pages/tabs/storage.html.tmpl b/plugins/kimchi/ui/pages/tabs/storage.html.tmpl index c5171a7..c9ba895 100644 --- a/plugins/kimchi/ui/pages/tabs/storage.html.tmpl +++ b/plugins/kimchi/ui/pages/tabs/storage.html.tmpl @@ -46,7 +46,7 @@ </div> <div id="logicalPoolExtend" title="$_("Device path")"> <p id="loading-info" class="text-help"> - <img src = "images/theme-default/loading.gif" /> + <img src = "plugins/kimchi/images/theme-default/loading.gif" /> $_("Looking for available partitions ...") </p> <div class="host-partition"> diff --git a/plugins/kimchi/ui/pages/template-add.html.tmpl b/plugins/kimchi/ui/pages/template-add.html.tmpl index fe63283..bac8e98 100644 --- a/plugins/kimchi/ui/pages/template-add.html.tmpl +++ b/plugins/kimchi/ui/pages/template-add.html.tmpl @@ -147,7 +147,7 @@ <div id="load-remote-iso"> <h3 class="step-subtitle"> <label> - <img src = "images/theme-default/loading.gif" /> + <img src = "plugins/kimchi/images/theme-default/loading.gif" /> $_("Loading default remote ISOs ...") </label> </h3> diff --git a/plugins/sample/ui/js/util.js b/plugins/sample/ui/js/util.js index 1e6c4df..7689a81 100644 --- a/plugins/sample/ui/js/util.js +++ b/plugins/sample/ui/js/util.js @@ -20,7 +20,7 @@ sample = {}; sample.description = function(suc, err){ wok.requestJSON({ - url : kimchi.url + 'plugins/sample/description', + url : 'plugins/sample/description', type : 'GET', contentType : 'application/json', dataType : 'json', diff --git a/ui/pages/error.html.tmpl b/ui/pages/error.html.tmpl index dfe7ce3..eea1179 100644 --- a/ui/pages/error.html.tmpl +++ b/ui/pages/error.html.tmpl @@ -28,14 +28,14 @@ <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Wok</title> - <link rel="stylesheet" href="$href("/css/theme-default.min.css")"> + <link rel="stylesheet" href="$href("css/theme-default.min.css")"> </head> <body> <div class="error-background"> <h1 id="logo"> - <img src="/images/theme-default/logo-white.png" alt="Wok"> + <img src="images/theme-default/logo-white.png" alt="Wok"> </h1> </div> <div class="error-msg error-icon"> -- 1.7.1

- Add model.py for wok - Add an empty json API to wok - Move some basic Javascript APIs from kimchi - Do not load tabs.xml anymore - Disable wok authentication by default - Rename KimchiRoot to WokRoot - Update default_page to wok-ui.html - Adapt 'sample' plugin - Move hide-content css to wok Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/ui/css/theme-default/storage.css | 4 - plugins/sample/__init__.py | 4 +- src/wok/API.json | 6 ++ src/wok/config.py.in | 1 + src/wok/model/model.py | 49 ++++++++++++ src/wok/root.py | 10 +- src/wok/server.py | 8 +- src/wok/utils.py | 2 +- ui/css/theme-default/topbar.css | 4 + ui/js/src/wok.api.js | 91 +++++++++++++++++++++++ ui/js/src/wok.main.js | 3 +- 11 files changed, 164 insertions(+), 18 deletions(-) create mode 100644 src/wok/API.json create mode 100644 src/wok/model/model.py create mode 100644 ui/js/src/wok.api.js diff --git a/plugins/kimchi/ui/css/theme-default/storage.css b/plugins/kimchi/ui/css/theme-default/storage.css index 519a28b..d30a5a7 100644 --- a/plugins/kimchi/ui/css/theme-default/storage.css +++ b/plugins/kimchi/ui/css/theme-default/storage.css @@ -319,10 +319,6 @@ border: 1px solid rgb(204, 204, 204); } -.hide-content { - display: none!important; -} - .volumeslist { padding: 7px; max-height: 272px; diff --git a/plugins/sample/__init__.py b/plugins/sample/__init__.py index 786832f..3a309a5 100644 --- a/plugins/sample/__init__.py +++ b/plugins/sample/__init__.py @@ -26,7 +26,7 @@ from cherrypy import expose from wok.config import PluginPaths from wok.control.base import Collection, Resource -from wok.root import Root +from wok.root import WokRoot from plugins.sample.i18n import messages from plugins.sample.model import Model @@ -34,7 +34,7 @@ from plugins.sample.model import Model model = Model() -class Drawings(Root): +class Drawings(WokRoot): def __init__(self): Resource.__init__(self, model) self.description = Description(model) diff --git a/src/wok/API.json b/src/wok/API.json new file mode 100644 index 0000000..8965db9 --- /dev/null +++ b/src/wok/API.json @@ -0,0 +1,6 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema#", + "title": "Wok API", + "description": "Json schema for Wok API", + "type": "object" +} diff --git a/src/wok/config.py.in b/src/wok/config.py.in index 4c97840..390ba3b 100644 --- a/src/wok/config.py.in +++ b/src/wok/config.py.in @@ -180,6 +180,7 @@ class UIConfig(dict): ui_configs['/' + sub_dir] = { 'tools.staticdir.on': True, 'tools.staticdir.dir': os.path.join(paths.ui_dir, sub_dir), + 'tools.wokauth.on': False, 'tools.nocache.on': False} if sub_dir != 'images': ui_configs['/' + sub_dir].update({ diff --git a/src/wok/model/model.py b/src/wok/model/model.py new file mode 100644 index 0000000..09c4c1e --- /dev/null +++ b/src/wok/model/model.py @@ -0,0 +1,49 @@ +# +# Project Kimchi +# +# Copyright IBM, Corp. 2014-2015 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +import inspect +import os + +from wok.basemodel import BaseModel +from wok.objectstore import ObjectStore +from wok.utils import import_module, listPathModules + + +class Model(BaseModel): + def __init__(self, objstore_loc=None): + + self.objstore = ObjectStore(objstore_loc) + kargs = {'objstore': self.objstore} + + this = os.path.basename(__file__) + this_mod = os.path.splitext(this)[0] + + models = [] + for mod_name in listPathModules(os.path.dirname(__file__)): + if mod_name.startswith("_") or mod_name == this_mod: + continue + + module = import_module('wok.model.' + mod_name) + members = inspect.getmembers(module, inspect.isclass) + for cls_name, instance in members: + if inspect.getmodule(instance) == module: + if cls_name.endswith('Model'): + models.append(instance(**kargs)) + + return super(Model, self).__init__(models) diff --git a/src/wok/root.py b/src/wok/root.py index a3b8be1..35620c7 100644 --- a/src/wok/root.py +++ b/src/wok/root.py @@ -114,16 +114,16 @@ class Root(Resource): raise cherrypy.HTTPError(404) -class KimchiRoot(Root): - def __init__(self, model, dev_env): - super(KimchiRoot, self).__init__(model, dev_env) - self.default_page = 'kimchi-ui.html' +class WokRoot(Root): + def __init__(self, model, dev_env=False): + super(WokRoot, self).__init__(model, dev_env) + self.default_page = 'wok-ui.html' for ident, node in sub_nodes.items(): setattr(self, ident, node(model)) with open(os.path.join(paths.src_dir, 'API.json')) as f: self.api_schema = json.load(f) self.paths = paths - self.domain = 'kimchi' + self.domain = 'wok' self.messages = messages @cherrypy.expose diff --git a/src/wok/server.py b/src/wok/server.py index 0f99663..ab941e7 100644 --- a/src/wok/server.py +++ b/src/wok/server.py @@ -28,10 +28,10 @@ from wok import config from wok.model import model from wok import mockmodel from wok import vnc -from wok.config import KimchiConfig, PluginConfig +from wok.config import WokConfig, PluginConfig from wok.control import sub_nodes from wok.proxy import start_proxy, terminate_proxy -from wok.root import KimchiRoot +from wok.root import WokRoot from wok.utils import get_enabled_plugins, import_class @@ -73,7 +73,7 @@ class Server(object): if not os.path.isdir(directory): os.makedirs(directory) - self.configObj = KimchiConfig() + self.configObj = WokConfig() # We'll use the session timeout (= 10 minutes) and the # nginx timeout (= 10 minutes). This monitor isn't involved # in anything other than monitor the timeout of the connection, @@ -141,7 +141,7 @@ class Server(object): ident = "/%s" % ident cfg[ident] = {'tools.wokauth.on': True} - self.app = cherrypy.tree.mount(KimchiRoot(model_instance, dev_env), + self.app = cherrypy.tree.mount(WokRoot(model_instance, dev_env), config=self.configObj) self._load_plugins() diff --git a/src/wok/utils.py b/src/wok/utils.py index f5058d5..fc76620 100644 --- a/src/wok/utils.py +++ b/src/wok/utils.py @@ -113,7 +113,7 @@ def get_enabled_plugins(): def get_all_tabs(): - files = [os.path.join(paths.prefix, 'config/ui/tabs.xml')] + files = [] for plugin, _ in get_enabled_plugins(): files.append(os.path.join(PluginPaths(plugin).ui_dir, diff --git a/ui/css/theme-default/topbar.css b/ui/css/theme-default/topbar.css index 9dd5ec1..4fce02c 100644 --- a/ui/css/theme-default/topbar.css +++ b/ui/css/theme-default/topbar.css @@ -208,3 +208,7 @@ a#btn-logout:hover { display: block; padding: 10px; } + +.hide-content { + display: none!important; +} diff --git a/ui/js/src/wok.api.js b/ui/js/src/wok.api.js new file mode 100644 index 0000000..93a07ad --- /dev/null +++ b/ui/js/src/wok.api.js @@ -0,0 +1,91 @@ +/* + * Project Kimchi + * + * Copyright IBM, Corp. 2013-2015 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +var wok = { + + widget: {}, + + /** + * A wrapper of jQuery.ajax function to allow custom bindings. + * + * @param settings an extended object to jQuery Ajax settings object + * with some extra properties (see below) + * + * resend: if the XHR has failed due to 401, the XHR can be resent + * after user being authenticated successfully by setting resend + * to true: settings = {resend: true}. It's useful for switching + * pages (Guests, Templates, etc.). + * e.g., the user wants to list guests by clicking Guests tab, + * but he is told not authorized and a login window will pop up. + * After login, the Ajax request for /vms will be resent without + * user clicking the tab again. + * Default to false. + */ + requestJSON : function(settings) { + settings['originalError'] = settings['error']; + settings['error'] = null; + settings['wok'] = true; + return $.ajax(settings); + }, + + /** + * Get the i18 strings. + */ + getI18n: function(suc, err, url, sync) { + wok.requestJSON({ + url : url ? url : 'i18n.json', + type : 'GET', + resend: true, + dataType : 'json', + async : !sync, + success : suc, + error: err + }); + }, + + login : function(settings, suc, err) { + $.ajax({ + url : "login", + type : "POST", + contentType : "application/json", + data : JSON.stringify(settings), + dataType : "json" + }).done(suc).fail(err); + }, + + logout : function(suc, err) { + wok.requestJSON({ + url : 'logout', + type : 'POST', + contentType : "application/json", + dataType : "json" + }).done(suc).fail(err); + }, + + listPlugins : function(suc, err, sync) { + wok.requestJSON({ + url : 'plugins', + type : 'GET', + contentType : 'application/json', + dataType : 'json', + resend: true, + async : !sync, + success : suc, + error : err + }); + }, +}; diff --git a/ui/js/src/wok.main.js b/ui/js/src/wok.main.js index 089b523..5b1f1bc 100644 --- a/ui/js/src/wok.main.js +++ b/ui/js/src/wok.main.js @@ -90,12 +90,11 @@ wok.main = function() { return tabs; }; - var tabConfigUrl = 'config/ui/tabs.xml'; var pluginConfigUrl = 'plugins/{plugin}/ui/config/tab-ext.xml'; var pluginI18nUrl = 'plugins/{plugin}/i18n.json'; var DEFAULT_HASH; var buildTabs = function(callback) { - var tabs = retrieveTabs(tabConfigUrl); + var tabs = []; wok.listPlugins(function(plugins) { $(plugins).each(function(i, p) { var url = wok.substitute(pluginConfigUrl, { -- 1.7.1

- Create root.py, kimchi.conf and config.py.in in plugin - Adjust tabs-ext.xml - Move kimchi specific config/API from wok to plugin - Move mockmodel stuff to plugin - Create mechanism to load plugin-specific config through get_custom_conf() method in plugin root and use it for novnc/spice config moved to new classes KimchiPaths and KimchiConfig - Pass all server options in plugins initalization - Adapt sample plugin to receive server options - Drop server-specific functions from kimchi plugin - Move kimchi-specific URI functions to plugin - Move capabilities to kimchi plugin Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/__init__.py | 21 +++ plugins/kimchi/config.py.in | 139 ++++++++++++++++++++ plugins/kimchi/kimchi.conf | 45 +++++++ plugins/kimchi/root.py | 70 ++++++++++ plugins/kimchi/ui/config/tab-ext.xml | 14 +- plugins/kimchi/ui/js/src/kimchi.api.js | 55 -------- plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js | 6 +- plugins/kimchi/ui/js/src/kimchi.host.js | 12 +- plugins/kimchi/ui/js/src/kimchi.main.js | 26 ++++ .../ui/js/src/kimchi.repository_edit_main.js | 4 +- .../kimchi/ui/js/src/kimchi.template_add_main.js | 4 +- .../kimchi/ui/js/src/kimchi.template_edit_main.js | 4 +- plugins/kimchi/utils.py | 40 ++++++ plugins/sample/__init__.py | 2 +- src/wok/config.py.in | 122 ----------------- src/wok/server.py | 25 ++-- src/wok/utils.py | 16 --- ui/js/src/wok.main.js | 10 -- 18 files changed, 374 insertions(+), 241 deletions(-) create mode 100644 plugins/kimchi/__init__.py create mode 100644 plugins/kimchi/config.py.in create mode 100644 plugins/kimchi/kimchi.conf create mode 100644 plugins/kimchi/root.py create mode 100644 plugins/kimchi/ui/js/src/kimchi.main.js create mode 100644 plugins/kimchi/utils.py diff --git a/plugins/kimchi/__init__.py b/plugins/kimchi/__init__.py new file mode 100644 index 0000000..9330044 --- /dev/null +++ b/plugins/kimchi/__init__.py @@ -0,0 +1,21 @@ +# +# Project Kimchi +# +# Copyright IBM, Corp. 2013-2014 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +from root import KimchiRoot +__all__ = [KimchiRoot] diff --git a/plugins/kimchi/config.py.in b/plugins/kimchi/config.py.in new file mode 100644 index 0000000..80b72bd --- /dev/null +++ b/plugins/kimchi/config.py.in @@ -0,0 +1,139 @@ +# +# Project Kimchi +# +# Copyright IBM, Corp. 2013-2015 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# + +import libvirt +import os +import platform +import threading + +from wok.config import PluginPaths +from wok.xmlutils.utils import xpath_get_text + +kimchiLock = threading.Lock() + +__with_spice__ = "@withspice@" + +# Storage pool constant for read-only pool types +READONLY_POOL_TYPE = ['iscsi', 'scsi', 'mpath'] + + +def get_distros_store(): + return os.path.join(PluginPaths('kimchi').conf_dir, 'distros.d') + + +def get_debugreports_path(): + return os.path.join(PluginPaths('kimchi').state_dir, 'debugreports') + + +def get_screenshot_path(): + return os.path.join(PluginPaths('kimchi').state_dir, 'screenshots') + + +def find_qemu_binary(find_emulator=False): + try: + connect = libvirt.open(None) + except Exception, e: + raise Exception("Unable to get qemu binary location: %s" % e) + try: + xml = connect.getCapabilities() + + # On Little Endian system, the qemu binary is + # qemu-system-ppc64, not qemu-system-ppc64le as expected + arch = platform.machine() + if arch == "ppc64le": + arch = "ppc64" + + if find_emulator: + expr = "/capabilities/guest/arch[@name='%s']\ + /emulator" % arch + else: + expr = "/capabilities/guest/arch[@name='%s']\ + /domain[@type='kvm']/emulator" % arch + res = xpath_get_text(xml, expr) + location = res[0] + except Exception, e: + raise Exception("Unable to get qemu binary location: %s" % e) + finally: + connect.close() + return location + + +class KimchiPaths(PluginPaths): + + def __init__(self): + super(KimchiPaths, self).__init__('kimchi') + self.spice_file = os.path.join(self.ui_dir, + 'spice-html5/pages/spice_auto.html') + + if __with_spice__ == 'yes': + self.spice_dir = self.add_prefix('ui/spice-html5') + elif os.path.exists('@datadir@/spice-html5'): + self.spice_dir = '@datadir@/spice-html5' + else: + self.spice_dir = '/usr/share/spice-html5' + + if os.path.exists('@datadir@/novnc'): + self.novnc_dir = '@datadir@/novnc' + else: + self.novnc_dir = '/usr/share/novnc' + + if self.installed: + self.spice_css_file = os.path.join(self.spice_dir, 'spice.css') + else: + self.spice_css_file = os.path.join(self.spice_dir, 'css/spice.css') + + +kimchiPaths = KimchiPaths() + + +class KimchiConfig(dict): + def __init__(self): + super(KimchiConfig, self).__init__(self) + + custom_config = { + '/novnc': { + 'tools.staticdir.on': True, + 'tools.staticdir.dir': kimchiPaths.novnc_dir, + 'tools.nocache.on': True, + 'tools.wokauth.on': True, + }, + + '/spice_auto.html': { + 'tools.staticfile.on': True, + 'tools.staticfile.filename': kimchiPaths.spice_file, + 'tools.nocache.on': True, + 'tools.wokauth.on': True, + }, + + '/spice-html5': { + 'tools.staticdir.on': True, + 'tools.staticdir.dir': kimchiPaths.spice_dir, + 'tools.nocache.on': True, + }, + + '/spice-html5/spice.css': { + 'tools.staticfile.on': True, + 'tools.staticfile.filename': kimchiPaths.spice_css_file, + 'tools.nocache.on': True, + }, + } + + self.update(custom_config) + diff --git a/plugins/kimchi/kimchi.conf b/plugins/kimchi/kimchi.conf new file mode 100644 index 0000000..1e0ee6b --- /dev/null +++ b/plugins/kimchi/kimchi.conf @@ -0,0 +1,45 @@ +[wok] +enable = True +plugin_class = "KimchiRoot" +uri = "/plugins/kimchi" + +[/] +tools.trailing_slash.on = False +request.methods_with_bodies = ('POST', 'PUT') +tools.nocache.on = True +tools.proxy.on = True +tools.sessions.on = True +tools.sessions.name = 'wok' +tools.sessions.secure = True +tools.sessions.httponly = True +tools.sessions.locking = 'explicit' +tools.sessions.storage_type = 'ram' +tools.sessions.timeout = 10 +tools.wokauth.on = True + +[/data/screenshots] +tools.staticdir.on = True +tools.staticdir.dir = wok.config.PluginPaths('kimchi').state_dir + '/screenshots' +tools.nocache.on = False + +[/data/debugreports] +tools.staticdir.on = True +tools.staticdir.dir = wok.config.PluginPaths('kimchi').state_dir + '/debugreports' +tools.nocache.on = False +tools.wokauth.on = True +tools.staticdir.content_types = {'xz': 'application/x-xz'} + +[/favicon.ico] +tools.staticfile.on = True +tools.staticfile.filename = wok.config.PluginPaths('kimchi').ui_dir + '/images/logo.ico' + +[/robots.txt] +tools.staticfile.on = True +tools.staticfile.filename = wok.config.PluginPaths('kimchi').ui_dir + '/robots.txt' + +[/help] +tools.staticdir.on = True +tools.staticdir.dir = wok.config.PluginPaths('kimchi').ui_dir + '/pages/help' +tools.nocache.on = True +tools.staticdir.index = 'en_US/index.html' + diff --git a/plugins/kimchi/root.py b/plugins/kimchi/root.py new file mode 100644 index 0000000..9889926 --- /dev/null +++ b/plugins/kimchi/root.py @@ -0,0 +1,70 @@ +# +# Project Kimchi +# +# Copyright IBM, Corp. 2013-2015 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +import json +import os +import cherrypy + + +import config +import mockmodel +from control import sub_nodes +from wok.i18n import messages +from model import model as kimchiModel +from wok.root import WokRoot +from wok import vnc + + +class KimchiRoot(WokRoot): + def __init__(self, wok_options): + if hasattr(wok_options, "model"): + self.model = wok_options.model + elif wok_options.test: + self.model = mockmodel.MockModel() + else: + self.model = kimchiModel.Model() + + dev_env = wok_options.environment != 'production' + super(KimchiRoot, self).__init__(self.model, dev_env) + + for ident, node in sub_nodes.items(): + setattr(self, ident, node(self.model)) + + if isinstance(self.model, kimchiModel.Model): + vnc_ws_proxy = vnc.new_ws_proxy() + cherrypy.engine.subscribe('exit', vnc_ws_proxy.terminate) + + self.api_schema = json.load(open(os.path.join(os.path.dirname( + os.path.abspath(__file__)), 'API.json'))) + self.paths = config.kimchiPaths + self.domain = 'kimchi' + self.messages = messages + + make_dirs = [ + os.path.abspath(config.get_distros_store()), + os.path.abspath(config.get_debugreports_path()), + os.path.abspath(config.get_screenshot_path()) + ] + for directory in make_dirs: + if not os.path.isdir(directory): + os.makedirs(directory) + + def get_custom_conf(self): + return config.KimchiConfig() + diff --git a/plugins/kimchi/ui/config/tab-ext.xml b/plugins/kimchi/ui/config/tab-ext.xml index f79684c..ee88c88 100644 --- a/plugins/kimchi/ui/config/tab-ext.xml +++ b/plugins/kimchi/ui/config/tab-ext.xml @@ -1,38 +1,38 @@ <?xml version="1.0" encoding="utf-8"?> -<tabs> +<tabs-ext> <tab> <access role="admin" mode="admin"/> <access role="user" mode="none"/> <title>Host</title> - <path>tabs/host.html</path> + <path>plugins/kimchi/host.html</path> </tab> <tab> <access role="admin" mode="admin"/> <access role="user" mode="byInstance"/> <title>Guests</title> - <path>tabs/guests.html</path> + <path>plugins/kimchi/guests.html</path> </tab> <tab> <access role="admin" mode="admin"/> <access role="user" mode="none"/> <title>Templates</title> - <path>tabs/templates.html</path> + <path>plugins/kimchi/templates.html</path> </tab> <tab> <access role="admin" mode="admin"/> <access role="user" mode="read-only"/> <title>Storage</title> - <path>tabs/storage.html</path> + <path>plugins/kimchi/storage.html</path> </tab> <tab> <access role="admin" mode="admin"/> <access role="user" mode="read-only"/> <title>Network</title> - <path>tabs/network.html</path> + <path>plugins/kimchi/network.html</path> </tab> -</tabs> +</tabs-ext> diff --git a/plugins/kimchi/ui/js/src/kimchi.api.js b/plugins/kimchi/ui/js/src/kimchi.api.js index d4d0c83..0ec3747 100644 --- a/plugins/kimchi/ui/js/src/kimchi.api.js +++ b/plugins/kimchi/ui/js/src/kimchi.api.js @@ -22,29 +22,6 @@ var kimchi = { trackingTasks: [], /** - * A wrapper of jQuery.ajax function to allow custom bindings. - * - * @param settings an extended object to jQuery Ajax settings object - * with some extra properties (see below) - * - * resend: if the XHR has failed due to 401, the XHR can be resent - * after user being authenticated successfully by setting resend - * to true: settings = {resend: true}. It's useful for switching - * pages (Guests, Templates, etc.). - * e.g., the user wants to list guests by clicking Guests tab, - * but he is told not authorized and a login window will pop up. - * After login, the Ajax request for /vms will be resent without - * user clicking the tab again. - * Default to false. - */ - requestJSON : function(settings) { - settings['originalError'] = settings['error']; - settings['error'] = null; - settings['kimchi'] = true; - return $.ajax(settings); - }, - - /** * * Get host capabilities * suc: callback if succeed err: callback if failed @@ -569,25 +546,6 @@ var kimchi = { }); }, - login : function(settings, suc, err) { - $.ajax({ - url : "login", - type : "POST", - contentType : "application/json", - data : JSON.stringify(settings), - dataType : "json" - }).done(suc).fail(err); - }, - - logout : function(suc, err) { - kimchi.requestJSON({ - url : 'logout', - type : 'POST', - contentType : "application/json", - dataType : "json" - }).done(suc).fail(err); - }, - deleteStoragePool : function(poolName, suc, err) { $.ajax({ url : 'plugins/kimchi/storagepools/' + encodeURIComponent(poolName), @@ -611,19 +569,6 @@ var kimchi = { }); }, - listPlugins : function(suc, err, sync) { - kimchi.requestJSON({ - url : 'plugins', - type : 'GET', - contentType : 'application/json', - dataType : 'json', - resend: true, - async : !sync, - success : suc, - error : err - }); - }, - listNetworks : function(suc, err) { wok.requestJSON({ url : 'plugins/kimchi/networks', diff --git a/plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js b/plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js index 25e3703..7105c88 100644 --- a/plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.guest_edit_main.js @@ -314,7 +314,7 @@ kimchi.guest_edit_main = function() { }; //set up for PAM var userNodes = {}, groupNodes = {}; - authType = wok.capabilities['auth'] + authType = kimchi.capabilities['auth'] if (authType == 'pam') { $("#form-guest-edit-permission .ldap").hide(); kimchi.retrieveVM(kimchi.selectedGuest, function(vm){ @@ -432,7 +432,7 @@ kimchi.guest_edit_main = function() { var setupPCIDevice = function(){ kimchi.getHostPCIDevices(function(hostPCIs){ kimchi.getVMPCIDevices(kimchi.selectedGuest, function(vmPCIs){ - var pciEnabled = wok.capabilities.kernel_vfio; + var pciEnabled = kimchi.capabilities.kernel_vfio; for(var i=0; i<hostPCIs.length; i++){ var itemNode = $.parseHTML(wok.substitute($('#pci-tmpl').html(),{ name: hostPCIs[i].name, @@ -708,7 +708,7 @@ kimchi.guest_edit_main = function() { var permissionSubmit = function(event) { var content = { users: [], groups: [] }; - authType = wok.capabilities['auth'] + authType = kimchi.capabilities['auth'] if (authType == 'pam') { $("#permission-sel-users").children().each(function(){ content.users.push($("label", this).text()); diff --git a/plugins/kimchi/ui/js/src/kimchi.host.js b/plugins/kimchi/ui/js/src/kimchi.host.js index 4218d97..ab02333 100644 --- a/plugins/kimchi/ui/js/src/kimchi.host.js +++ b/plugins/kimchi/ui/js/src/kimchi.host.js @@ -507,14 +507,14 @@ kimchi.host_main = function() { }); var setupUI = function() { - if (wok.capabilities == undefined) { + if (kimchi.capabilities == undefined) { setTimeout(setupUI, 2000); return; } - if((wok.capabilities['repo_mngt_tool']) && (wok.capabilities['repo_mngt_tool']!="None")) { - initRepositoriesGrid(wok.capabilities['repo_mngt_tool']); - $('#repositories-section').switchClass('hidden', wok.capabilities['repo_mngt_tool']); + if((kimchi.capabilities['repo_mngt_tool']) && (kimchi.capabilities['repo_mngt_tool']!="None")) { + initRepositoriesGrid(kimchi.capabilities['repo_mngt_tool']); + $('#repositories-section').switchClass('hidden', kimchi.capabilities['repo_mngt_tool']); wok.topic('kimchi/repositoryAdded') .subscribe(listRepositories); wok.topic('kimchi/repositoryUpdated') @@ -523,7 +523,7 @@ kimchi.host_main = function() { .subscribe(listRepositories); } - if(wok.capabilities['update_tool']) { + if(kimchi.capabilities['update_tool']) { $('#software-update-section').removeClass('hidden'); initSoftwareUpdatesGrid(); wok.topic('kimchi/softwareUpdated') @@ -533,7 +533,7 @@ kimchi.host_main = function() { }); } - if(wok.capabilities['system_report_tool']) { + if(kimchi.capabilities['system_report_tool']) { listDebugReports(); wok.topic('kimchi/debugReportAdded') .subscribe(listDebugReports); diff --git a/plugins/kimchi/ui/js/src/kimchi.main.js b/plugins/kimchi/ui/js/src/kimchi.main.js new file mode 100644 index 0000000..2fdeb85 --- /dev/null +++ b/plugins/kimchi/ui/js/src/kimchi.main.js @@ -0,0 +1,26 @@ +/* + * Project Kimchi + * + * Copyright IBM, Corp. 2013-2014 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +kimchi.capabilities = undefined; +kimchi.getCapabilities(function(result) { + kimchi.capabilities = result; + + if(kimchi.capabilities.federation=="on") + $('#peers').removeClass('hide-content'); +}, function() { + kimchi.capabilities = {}; +}); diff --git a/plugins/kimchi/ui/js/src/kimchi.repository_edit_main.js b/plugins/kimchi/ui/js/src/kimchi.repository_edit_main.js index 85e24d4..5bfc51e 100644 --- a/plugins/kimchi/ui/js/src/kimchi.repository_edit_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.repository_edit_main.js @@ -21,10 +21,10 @@ kimchi.repository_edit_main = function() { var saveButton = $('#repository-edit-button-save'); - if(wok.capabilities['repo_mngt_tool']=="yum") { + if(kimchi.capabilities['repo_mngt_tool']=="yum") { editForm.find('input.deb').prop('disabled', true); } - else if(wok.capabilities['repo_mngt_tool']=="deb") { + else if(kimchi.capabilities['repo_mngt_tool']=="deb") { editForm.find('input.yum').prop('disabled', true); } diff --git a/plugins/kimchi/ui/js/src/kimchi.template_add_main.js b/plugins/kimchi/ui/js/src/kimchi.template_add_main.js index 5528eb2..01a47c2 100644 --- a/plugins/kimchi/ui/js/src/kimchi.template_add_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.template_add_main.js @@ -224,12 +224,12 @@ kimchi.template_add_main = function() { $('#iso-remote').css('opacity', 0.3).css('cursor', 'not-allowed'); var enabledRemoteIso = function() { - if (wok.capabilities == undefined) { + if (kimchi.capabilities == undefined) { setTimeout(enabledRemoteIso, 2000); return; } - if (wok.capabilities.qemu_stream != true) { + if (kimchi.capabilities.qemu_stream != true) { return; } diff --git a/plugins/kimchi/ui/js/src/kimchi.template_edit_main.js b/plugins/kimchi/ui/js/src/kimchi.template_edit_main.js index 6df1328..b00d596 100644 --- a/plugins/kimchi/ui/js/src/kimchi.template_edit_main.js +++ b/plugins/kimchi/ui/js/src/kimchi.template_edit_main.js @@ -49,11 +49,11 @@ kimchi.template_edit_main = function() { $('#template-edit-graphics').append('<option>Spice</option>'); kimchi.select('template-edit-graphics-list', vncOpt); var enableSpice = function() { - if (wok.capabilities == undefined) { + if (kimchi.capabilities == undefined) { setTimeout(enableSpice, 2000); return; } - if (wok.capabilities.qemu_spice == true) { + if (kimchi.capabilities.qemu_spice == true) { spiceOpt = [{label: 'Spice', value: 'spice'}] kimchi.select('template-edit-graphics-list', spiceOpt); } diff --git a/plugins/kimchi/utils.py b/plugins/kimchi/utils.py new file mode 100644 index 0000000..dc00481 --- /dev/null +++ b/plugins/kimchi/utils.py @@ -0,0 +1,40 @@ +# +# Project Kimchi +# +# Copyright IBM, Corp. 2013-2015 +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# + +import re + +from wok.exception import InvalidParameter + + +def _uri_to_name(collection, uri): + expr = '/plugins/kimchi/%s/(.*?)$' % collection + m = re.match(expr, uri) + if not m: + raise InvalidParameter("KCHUTILS0001E", {'uri': uri}) + return m.group(1) + + +def template_name_from_uri(uri): + return _uri_to_name('templates', uri) + + +def pool_name_from_uri(uri): + return _uri_to_name('storagepools', uri) + diff --git a/plugins/sample/__init__.py b/plugins/sample/__init__.py index 3a309a5..a2cfbf2 100644 --- a/plugins/sample/__init__.py +++ b/plugins/sample/__init__.py @@ -35,7 +35,7 @@ model = Model() class Drawings(WokRoot): - def __init__(self): + def __init__(self, wok_options): Resource.__init__(self, model) self.description = Description(model) self.rectangles = Rectangles(model) diff --git a/src/wok/config.py.in b/src/wok/config.py.in index 390ba3b..c676f89 100644 --- a/src/wok/config.py.in +++ b/src/wok/config.py.in @@ -18,98 +18,32 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # -import libvirt import os -import platform -import threading from ConfigParser import SafeConfigParser -from kimchi.xmlutils.utils import xpath_get_text - __version__ = "@wokversion@" __release__ = "@wokrelease@" -__with_spice__ = "@withspice@" DEFAULT_LOG_LEVEL = "debug" -kimchiLock = threading.Lock() - -# Storage pool constant for read-only pool types -READONLY_POOL_TYPE = ['iscsi', 'scsi', 'mpath'] - def get_object_store(): return os.path.join(paths.state_dir, 'objectstore') -def get_distros_store(): - return os.path.join(paths.conf_dir, 'distros.d') - - -def get_screenshot_path(): - return os.path.join(paths.state_dir, 'screenshots') - - -def get_debugreports_path(): - return os.path.join(paths.state_dir, 'debugreports') - - def get_version(): return "-".join([__version__, __release__]) -def find_qemu_binary(find_emulator=False): - try: - connect = libvirt.open(None) - except Exception, e: - raise Exception("Unable to get qemu binary location: %s" % e) - try: - xml = connect.getCapabilities() - - # On Little Endian system, the qemu binary is - # qemu-system-ppc64, not qemu-system-ppc64le as expected - arch = platform.machine() - if arch == "ppc64le": - arch = "ppc64" - - if find_emulator: - expr = "/capabilities/guest/arch[@name='%s']\ - /emulator" % arch - else: - expr = "/capabilities/guest/arch[@name='%s']\ - /domain[@type='kvm']/emulator" % arch - res = xpath_get_text(xml, expr) - location = res[0] - except Exception, e: - raise Exception("Unable to get qemu binary location: %s" % e) - finally: - connect.close() - return location - - class Paths(object): def __init__(self): self.prefix = self.get_prefix() self.installed = (self.prefix == '@pkgdatadir@') self.ui_dir = self.add_prefix('ui') - self.spice_file = os.path.join(self.ui_dir, - 'spice-html5/pages/spice_auto.html') - - if __with_spice__ == 'yes': - self.spice_dir = self.add_prefix('ui/spice-html5') - elif os.path.exists('@datadir@/spice-html5'): - self.spice_dir = '@datadir@/spice-html5' - else: - self.spice_dir = '/usr/share/spice-html5' - - if os.path.exists('@datadir@/novnc'): - self.novnc_dir = '@datadir@/novnc' - else: - self.novnc_dir = '/usr/share/novnc' if self.installed: self.nginx_conf_dir = '@sysconfdir@/nginx/conf.d' @@ -119,7 +53,6 @@ class Paths(object): self.src_dir = '@wokdir@' self.plugins_dir = '@wokdir@/plugins' self.mo_dir = '@prefix@/share/locale' - self.spice_css_file = os.path.join(self.spice_dir, 'spice.css') else: self.nginx_conf_dir = self.add_prefix('src/nginx') self.state_dir = self.add_prefix('data') @@ -128,7 +61,6 @@ class Paths(object): self.src_dir = self.add_prefix('src/wok') self.plugins_dir = self.add_prefix('plugins') self.mo_dir = self.add_prefix('mo') - self.spice_css_file = os.path.join(self.spice_dir, 'css/spice.css') def get_prefix(self): if __file__.startswith("/"): @@ -208,63 +140,9 @@ class WokConfig(dict): 'tools.sessions.timeout': SESSIONSTIMEOUT, 'tools.wokauth.on': False }, - '/novnc': { - 'tools.staticdir.on': True, - 'tools.staticdir.dir': paths.novnc_dir, - 'tools.nocache.on': True, - 'tools.wokauth.on': True - }, - '/spice_auto.html': { - 'tools.staticfile.on': True, - 'tools.staticfile.filename': paths.spice_file, - 'tools.nocache.on': True, - 'tools.kimchiauth.on': True - }, - '/spice-html5': { - 'tools.staticdir.on': True, - 'tools.staticdir.dir': paths.spice_dir, - 'tools.nocache.on': True - }, - '/spice-html5/spice.css': { - 'tools.staticfile.on': True, - 'tools.staticfile.filename': paths.spice_css_file, - 'tools.nocache.on': True, - }, '/wok-ui.html': { 'tools.wokauth.on': True }, - '/data/screenshots': { - 'tools.staticdir.on': True, - 'tools.staticdir.dir': get_screenshot_path(), - 'tools.nocache.on': False - }, - '/data/debugreports': { - 'tools.staticdir.on': True, - 'tools.staticdir.dir': get_debugreports_path(), - 'tools.nocache.on': False, - 'tools.kimchiauth.on': True, - 'tools.staticdir.content_types': {'xz': 'application/x-xz'} - }, - '/config/ui/tabs.xml': { - 'tools.staticfile.on': True, - 'tools.staticfile.filename': '%s/config/ui/tabs.xml' % - paths.prefix, - 'tools.nocache.on': True - }, - '/favicon.ico': { - 'tools.staticfile.on': True, - 'tools.staticfile.filename': '%s/images/logo.ico' % paths.ui_dir - }, - '/robots.txt': { - 'tools.staticfile.on': True, - 'tools.staticfile.filename': '%s/robots.txt' % paths.ui_dir - }, - '/help': { - 'tools.staticdir.on': True, - 'tools.staticdir.dir': '%s/ui/pages/help' % paths.prefix, - 'tools.staticdir.index': 'en_US/index.html', - 'tools.nocache.on': True - } } def __init__(self): diff --git a/src/wok/server.py b/src/wok/server.py index ab941e7..ba81308 100644 --- a/src/wok/server.py +++ b/src/wok/server.py @@ -26,8 +26,6 @@ import os from wok import auth from wok import config from wok.model import model -from wok import mockmodel -from wok import vnc from wok.config import WokConfig, PluginConfig from wok.control import sub_nodes from wok.proxy import start_proxy, terminate_proxy @@ -64,10 +62,7 @@ class Server(object): make_dirs = [ os.path.dirname(os.path.abspath(options.access_log)), os.path.dirname(os.path.abspath(options.error_log)), - os.path.dirname(os.path.abspath(config.get_object_store())), - os.path.abspath(config.get_screenshot_path()), - os.path.abspath(config.get_debugreports_path()), - os.path.abspath(config.get_distros_store()) + os.path.dirname(os.path.abspath(config.get_object_store())) ] for directory in make_dirs: if not os.path.isdir(directory): @@ -126,15 +121,9 @@ class Server(object): if hasattr(options, 'model'): model_instance = options.model - elif options.test: - model_instance = mockmodel.MockModel() else: model_instance = model.Model() - if isinstance(model_instance, model.Model): - vnc_ws_proxy = vnc.new_ws_proxy() - cherrypy.engine.subscribe('exit', vnc_ws_proxy.terminate) - for ident, node in sub_nodes.items(): if node.url_auth: cfg = self.configObj @@ -143,14 +132,14 @@ class Server(object): self.app = cherrypy.tree.mount(WokRoot(model_instance, dev_env), config=self.configObj) - self._load_plugins() + self._load_plugins(options) # Terminate proxy when cherrypy server is terminated cherrypy.engine.subscribe('exit', terminate_proxy) cherrypy.lib.sessions.init() - def _load_plugins(self): + def _load_plugins(self, options): for plugin_name, plugin_config in get_enabled_plugins(): try: plugin_class = ('plugins.%s.%s' % @@ -164,11 +153,17 @@ class Server(object): continue try: - plugin_app = import_class(plugin_class)() + plugin_app = import_class(plugin_class)(options) except ImportError: cherrypy.log.error_log.error("Failed to import plugin %s" % plugin_class) continue + + # dynamically extend plugin config with custom data, if provided + get_custom_conf = getattr(plugin_app, "get_custom_conf", None) + if get_custom_conf is not None: + plugin_config.update(get_custom_conf()) + cherrypy.tree.mount(plugin_app, script_name, plugin_config) def start(self): diff --git a/src/wok/utils.py b/src/wok/utils.py index fc76620..af0d200 100644 --- a/src/wok/utils.py +++ b/src/wok/utils.py @@ -44,22 +44,6 @@ wok_log = cherrypy.log.error_log task_id = 0 -def _uri_to_name(collection, uri): - expr = '/%s/(.*?)$' % collection - m = re.match(expr, uri) - if not m: - raise InvalidParameter("KCHUTILS0001E", {'uri': uri}) - return m.group(1) - - -def template_name_from_uri(uri): - return _uri_to_name('templates', uri) - - -def pool_name_from_uri(uri): - return _uri_to_name('storagepools', uri) - - def get_next_task_id(): global task_id task_id += 1 diff --git a/ui/js/src/wok.main.js b/ui/js/src/wok.main.js index 5b1f1bc..b7797dd 100644 --- a/ui/js/src/wok.main.js +++ b/ui/js/src/wok.main.js @@ -17,16 +17,6 @@ */ wok.tabMode = {}; -wok.capabilities = undefined; -wok.getCapabilities(function(result) { - wok.capabilities = result; - - if(wok.capabilities.federation=="on") - $('#peers').removeClass('hide-content'); -}, function() { - wok.capabilities = {}; -}); - wok.main = function() { wok.isLoggingOut = false; wok.popable(); -- 1.7.1

The attribute self.uri_fmt is used both with HTTPRedirect and InternalRedirect calls. In the new plugin structure, it is necessary to make all redirects uniform, since InternalRedirect is relative to current path (i.e. /plugins/kimchi) and HTTPRedirect is not. This patch converts all plugin redirects to use InternalRedirect, since it is less costly. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- src/wok/control/base.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wok/control/base.py b/src/wok/control/base.py index 8cfa51c..65a6fee 100644 --- a/src/wok/control/base.py +++ b/src/wok/control/base.py @@ -64,12 +64,12 @@ class Resource(object): if arg is None: arg = '' uri_params.append(urllib2.quote(arg.encode('utf-8'), safe="")) - raise cherrypy.HTTPRedirect(self.uri_fmt % tuple(uri_params), code) + raise internal_redirect(self.uri_fmt % tuple(uri_params)) elif action_result is not None and action_result != self.ident: uri_params = list(self.model_args[:-1]) uri_params += [urllib2.quote(action_result.encode('utf-8'), safe="")] - raise cherrypy.HTTPRedirect(self.uri_fmt % tuple(uri_params), code) + raise internal_redirect(self.uri_fmt % tuple(uri_params)) def generate_action_handler(self, action_name, action_args=None, destructive=False): -- 1.7.1

This patch implements the loading of URL subnodes in Kimchi plugin and makes it available to any plugin that wants to use it, through the extra_auth_api_class conf attribute. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/kimchi.conf | 1 + src/wok/server.py | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/plugins/kimchi/kimchi.conf b/plugins/kimchi/kimchi.conf index 1e0ee6b..bf5efc5 100644 --- a/plugins/kimchi/kimchi.conf +++ b/plugins/kimchi/kimchi.conf @@ -2,6 +2,7 @@ enable = True plugin_class = "KimchiRoot" uri = "/plugins/kimchi" +extra_auth_api_class = "control.sub_nodes" [/] tools.trailing_slash.on = False diff --git a/src/wok/server.py b/src/wok/server.py index ba81308..0a836a2 100644 --- a/src/wok/server.py +++ b/src/wok/server.py @@ -145,6 +145,8 @@ class Server(object): plugin_class = ('plugins.%s.%s' % (plugin_name, plugin_config['wok']['plugin_class'])) + extra_auth = plugin_config['wok'].get('extra_auth_api_class', + None) script_name = plugin_config['wok']['uri'] del plugin_config['wok'] @@ -164,6 +166,24 @@ class Server(object): if get_custom_conf is not None: plugin_config.update(get_custom_conf()) + # dynamically add tools.wokauth.on = True to extra plugin APIs + if extra_auth: + try: + authed_apis = import_class(('plugins.%s.%s' % (plugin_name, + extra_auth))) + except ImportError: + cherrypy.log.error_log.error("Failed to import subnodes " + "for plugin %s" % plugin_class) + continue + + urlSubNodes = {} + for ident, node in authed_apis.items(): + if node.url_auth: + ident = "/%s" % ident + urlSubNodes[ident] = {'tools.wokauth.on': True} + + plugin_config.update(urlSubNodes) + cherrypy.tree.mount(plugin_app, script_name, plugin_config) def start(self): -- 1.7.1

This patch standardizes kimchi plugin tmpl files location to be similar of other plugins. It only moves tmpl files from plugins/kimchi/ui/pages/tabs to plugins/kimchi/ui/pages and updates respective Makefiles. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/ui/pages/Makefile.am | 2 +- .../kimchi/ui/pages/{tabs => }/guests.html.tmpl | 0 plugins/kimchi/ui/pages/{tabs => }/host.html.tmpl | 0 .../kimchi/ui/pages/{tabs => }/network.html.tmpl | 0 .../kimchi/ui/pages/{tabs => }/storage.html.tmpl | 0 plugins/kimchi/ui/pages/tabs/Makefile.am | 20 -------------------- .../kimchi/ui/pages/{tabs => }/templates.html.tmpl | 0 7 files changed, 1 insertions(+), 21 deletions(-) rename plugins/kimchi/ui/pages/{tabs => }/guests.html.tmpl (100%) rename plugins/kimchi/ui/pages/{tabs => }/host.html.tmpl (100%) rename plugins/kimchi/ui/pages/{tabs => }/network.html.tmpl (100%) rename plugins/kimchi/ui/pages/{tabs => }/storage.html.tmpl (100%) delete mode 100644 plugins/kimchi/ui/pages/tabs/Makefile.am rename plugins/kimchi/ui/pages/{tabs => }/templates.html.tmpl (100%) diff --git a/plugins/kimchi/ui/pages/Makefile.am b/plugins/kimchi/ui/pages/Makefile.am index 076b814..56288e3 100644 --- a/plugins/kimchi/ui/pages/Makefile.am +++ b/plugins/kimchi/ui/pages/Makefile.am @@ -15,7 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -SUBDIRS = help tabs +SUBDIRS = help htmldir = $(datadir)/wok/plugins/kimchi/ui/pages diff --git a/plugins/kimchi/ui/pages/tabs/guests.html.tmpl b/plugins/kimchi/ui/pages/guests.html.tmpl similarity index 100% rename from plugins/kimchi/ui/pages/tabs/guests.html.tmpl rename to plugins/kimchi/ui/pages/guests.html.tmpl diff --git a/plugins/kimchi/ui/pages/tabs/host.html.tmpl b/plugins/kimchi/ui/pages/host.html.tmpl similarity index 100% rename from plugins/kimchi/ui/pages/tabs/host.html.tmpl rename to plugins/kimchi/ui/pages/host.html.tmpl diff --git a/plugins/kimchi/ui/pages/tabs/network.html.tmpl b/plugins/kimchi/ui/pages/network.html.tmpl similarity index 100% rename from plugins/kimchi/ui/pages/tabs/network.html.tmpl rename to plugins/kimchi/ui/pages/network.html.tmpl diff --git a/plugins/kimchi/ui/pages/tabs/storage.html.tmpl b/plugins/kimchi/ui/pages/storage.html.tmpl similarity index 100% rename from plugins/kimchi/ui/pages/tabs/storage.html.tmpl rename to plugins/kimchi/ui/pages/storage.html.tmpl diff --git a/plugins/kimchi/ui/pages/tabs/Makefile.am b/plugins/kimchi/ui/pages/tabs/Makefile.am deleted file mode 100644 index 4d5d33e..0000000 --- a/plugins/kimchi/ui/pages/tabs/Makefile.am +++ /dev/null @@ -1,20 +0,0 @@ -# -# Kimchi -# -# Copyright IBM, Corp. 2013 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -tabshtmldir = $(datadir)/wok/plugins/kimchi/ui/pages/tabs - -dist_tabshtml_DATA = $(wildcard *.html.tmpl) $(NULL) diff --git a/plugins/kimchi/ui/pages/tabs/templates.html.tmpl b/plugins/kimchi/ui/pages/templates.html.tmpl similarity index 100% rename from plugins/kimchi/ui/pages/tabs/templates.html.tmpl rename to plugins/kimchi/ui/pages/templates.html.tmpl -- 1.7.1

Since wok-ui.html now uses only wok-specific JavaScript and CSS, it is necessary to include kimchi-specific code into kimchi htmls. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/ui/pages/guests.html.tmpl | 9 +++++++++ plugins/kimchi/ui/pages/host.html.tmpl | 9 +++++++++ plugins/kimchi/ui/pages/network.html.tmpl | 4 ++++ plugins/kimchi/ui/pages/storage.html.tmpl | 4 ++++ plugins/kimchi/ui/pages/templates.html.tmpl | 4 ++++ 5 files changed, 30 insertions(+), 0 deletions(-) diff --git a/plugins/kimchi/ui/pages/guests.html.tmpl b/plugins/kimchi/ui/pages/guests.html.tmpl index b96dd21..b8a1259 100644 --- a/plugins/kimchi/ui/pages/guests.html.tmpl +++ b/plugins/kimchi/ui/pages/guests.html.tmpl @@ -26,6 +26,13 @@ #silent ht = Template +<!DOCTYPE html> +<html> +<head> +<link rel="stylesheet" href="plugins/kimchi/css/theme-default.min.css"> +<script src="plugins/kimchi/js/kimchi.min.js"></script> +</head> +<body> <div id="guests-root-container"> <div class="toolbar"> <div class="tools" style="display:none"> @@ -54,3 +61,5 @@ kimchi.guest_main(); </script> </div> +</body> +</html> diff --git a/plugins/kimchi/ui/pages/host.html.tmpl b/plugins/kimchi/ui/pages/host.html.tmpl index 921b45f..300c25f 100644 --- a/plugins/kimchi/ui/pages/host.html.tmpl +++ b/plugins/kimchi/ui/pages/host.html.tmpl @@ -22,6 +22,13 @@ #silent t = gettext.translation($lang.domain, $lang.localedir, languages=$lang.lang, fallback=True) #silent _ = t.gettext #silent _t = t.gettext +<!DOCTYPE html> +<html> +<head> +<link rel="stylesheet" href="plugins/kimchi/css/theme-default.min.css"> +<script src="plugins/kimchi/js/kimchi.min.js"></script> +</head> +<body> <div id="host-root-container"> <div class="toolbar"> <div class="tools"> @@ -166,3 +173,5 @@ <script type="text/javascript"> kimchi.host_main(); </script> +</body> +</html> diff --git a/plugins/kimchi/ui/pages/network.html.tmpl b/plugins/kimchi/ui/pages/network.html.tmpl index 421f6bc..66613a6 100644 --- a/plugins/kimchi/ui/pages/network.html.tmpl +++ b/plugins/kimchi/ui/pages/network.html.tmpl @@ -24,6 +24,10 @@ #silent _t = t.gettext <!DOCTYPE html> <html> +<head> +<link rel="stylesheet" href="plugins/kimchi/css/theme-default.min.css"> +<script src="plugins/kimchi/js/kimchi.min.js"></script> +</head> <body> <div class="toolbar"> <div class="tools" style="display:none"> diff --git a/plugins/kimchi/ui/pages/storage.html.tmpl b/plugins/kimchi/ui/pages/storage.html.tmpl index c9ba895..876c8a1 100644 --- a/plugins/kimchi/ui/pages/storage.html.tmpl +++ b/plugins/kimchi/ui/pages/storage.html.tmpl @@ -23,6 +23,10 @@ #silent _t = t.gettext <!DOCTYPE html> <html> +<head> +<link rel="stylesheet" href="plugins/kimchi/css/theme-default.min.css"> +<script src="plugins/kimchi/js/kimchi.min.js"></script> +</head> <body> <div class="toolbar"> <div class="tools" style="display:none"> diff --git a/plugins/kimchi/ui/pages/templates.html.tmpl b/plugins/kimchi/ui/pages/templates.html.tmpl index cd9b8e5..af1cf3f 100644 --- a/plugins/kimchi/ui/pages/templates.html.tmpl +++ b/plugins/kimchi/ui/pages/templates.html.tmpl @@ -23,6 +23,10 @@ #silent _t = t.gettext <!DOCTYPE html> <html> +<head> +<link rel="stylesheet" href="plugins/kimchi/css/theme-default.min.css"> +<script src="plugins/kimchi/js/kimchi.min.js"></script> +</head> <body> <div class="toolbar"> <div class="tools" style="display:none"> -- 1.7.1

Now that kimchi is not the main functionality, an index for its help files is not necessary anymore. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/kimchi.conf | 1 - plugins/kimchi/ui/pages/help/Makefile.am | 5 +- plugins/kimchi/ui/pages/help/gen-index.py | 63 ----------------------------- 3 files changed, 2 insertions(+), 67 deletions(-) delete mode 100755 plugins/kimchi/ui/pages/help/gen-index.py diff --git a/plugins/kimchi/kimchi.conf b/plugins/kimchi/kimchi.conf index bf5efc5..78f4f3f 100644 --- a/plugins/kimchi/kimchi.conf +++ b/plugins/kimchi/kimchi.conf @@ -42,5 +42,4 @@ tools.staticfile.filename = wok.config.PluginPaths('kimchi').ui_dir + '/robots.t tools.staticdir.on = True tools.staticdir.dir = wok.config.PluginPaths('kimchi').ui_dir + '/pages/help' tools.nocache.on = True -tools.staticdir.index = 'en_US/index.html' diff --git a/plugins/kimchi/ui/pages/help/Makefile.am b/plugins/kimchi/ui/pages/help/Makefile.am index 0fbe47b..a4ee361 100644 --- a/plugins/kimchi/ui/pages/help/Makefile.am +++ b/plugins/kimchi/ui/pages/help/Makefile.am @@ -20,14 +20,13 @@ DITA_HTML_FILES = $(patsubst %.dita,%.html,$(wildcard */*.dita)) HTML_FILES = $(if $(DITA_HTML_FILES), $(DITA_HTML_FILES), $(wildcard */*.html)) DITA_XSL_FILE = dita-help.xsl -EXTRA_DIST = gen-index.py\ - $(DITA_XSL_FILE) +EXTRA_DIST = $(DITA_XSL_FILE) + helpdir = $(datadir)/wok/plugins/kimchi/ui/pages/help dist_help_DATA = kimchi.css all: $(HTML_FILES) $(wildcard */*.dita) - @$(foreach dir, $(dir $(wildcard */)), $(shell pwd)/gen-index.py $(wildcard $(dir)*.dita) > $(dir)/index.html;) %.html: %.dita $(DITA_XSL_FILE) xsltproc -o $@ $(DITA_XSL_FILE) $< diff --git a/plugins/kimchi/ui/pages/help/gen-index.py b/plugins/kimchi/ui/pages/help/gen-index.py deleted file mode 100755 index d81e722..0000000 --- a/plugins/kimchi/ui/pages/help/gen-index.py +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env python2 -# -# Project Kimchi -# -# Copyright IBM, Corp. 2014-2015 -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -import lxml.etree as ET -import sys - - -HTML_HEAD = """ -<html> -<head> - <title>Kimchi Help</title> -</head> -<body> -<h1>Kimchi Help</h1> -""" - -HTML_TAIL = """ -</body> -</html> -""" - - -def main(): - if len(sys.argv) < 2: - sys.exit("Missing input files") - - input_files = sys.argv[1:] - - pages = {} - - for f in sorted(input_files): - with open(f) as fd: - xml = fd.read() - doc = ET.fromstring(xml) - name = doc.xpath('./title')[0].text - pages[f.replace('.dita', '.html')] = name.encode('utf-8') - - print HTML_HEAD - for page, name in pages.iteritems(): - html = ' <a href="/help/%s">%s</a><br />\n' - print html % (page, name) - print HTML_TAIL - - -if __name__ == '__main__': - main() -- 1.7.1

This was necessary to make load_url_sub_nodes work with new kimchi plugin structure. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- src/wok/utils.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wok/utils.py b/src/wok/utils.py index af0d200..fa379d4 100644 --- a/src/wok/utils.py +++ b/src/wok/utils.py @@ -114,14 +114,14 @@ def get_all_tabs(): def import_class(class_path): module_name, class_name = class_path.rsplit('.', 1) try: - mod = import_module(module_name) + mod = import_module(module_name, class_name) return getattr(mod, class_name) except (ImportError, AttributeError): raise ImportError('Class %s can not be imported' % class_path) -def import_module(module_name): - return __import__(module_name, globals(), locals(), ['']) +def import_module(module_name, class_name=''): + return __import__(module_name, globals(), locals(), [class_name]) def check_url_path(path): -- 1.7.1

The key ui_dir must come from either Paths or PluginPaths, depending on who is calling render_cheetah_file(), otherwise wrong paths would be used. This patch fixes that. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- src/wok/template.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/wok/template.py b/src/wok/template.py index e192ca4..323bf55 100644 --- a/src/wok/template.py +++ b/src/wok/template.py @@ -86,12 +86,13 @@ def render_cheetah_file(resource, data): paths = cherrypy.request.app.root.paths filename = paths.get_template_path(resource) try: - params = {'data': data} + params = {} lang = validate_language(get_lang()) gettext_conf = {'domain': cherrypy.request.app.root.domain, 'localedir': paths.mo_dir, 'lang': [lang]} params['lang'] = gettext_conf + params['data'] = {'ui_dir': paths.ui_dir} return Template(file=filename, searchList=params).respond() except OSError, e: if e.errno == errno.ENOENT: -- 1.7.1

Fixes cachebust's href() method to take the correct path depending on if it is called by a plugin or wok main page. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/ui/pages/error.html.tmpl | 2 +- src/wok/cachebust.py | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/plugins/kimchi/ui/pages/error.html.tmpl b/plugins/kimchi/ui/pages/error.html.tmpl index 13af1e1..0268200 100644 --- a/plugins/kimchi/ui/pages/error.html.tmpl +++ b/plugins/kimchi/ui/pages/error.html.tmpl @@ -28,7 +28,7 @@ <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Kimchi</title> - <link rel="stylesheet" href="$href("css/theme-default.min.css")"> + <link rel="stylesheet" href="$href('css/theme-default.min.css', 'kimchi')"> </head> diff --git a/src/wok/cachebust.py b/src/wok/cachebust.py index d7cf111..d04b2c6 100644 --- a/src/wok/cachebust.py +++ b/src/wok/cachebust.py @@ -20,11 +20,16 @@ import os -from wok.config import paths +from wok.config import paths, PluginPaths -def href(url): +def href(url, plugin = None): + if plugin is None: + basePath = paths.ui_dir + else: + basePath = PluginPaths(plugin).ui_dir + # for error.html, url is absolute path - f = os.path.join(paths.ui_dir, url.lstrip("/")) + f = os.path.join(basePath, url.lstrip("/")) mtime = os.path.getmtime(f) return "%s?cacheBust=%s" % (url, mtime) -- 1.7.1

It is now possible that wok is part of a product with only one plugin containing a single tab. Thus it is necessary to show the first tab of first plugin loaded as a default upon login. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- ui/js/src/wok.main.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ui/js/src/wok.main.js b/ui/js/src/wok.main.js index b7797dd..f046466 100644 --- a/ui/js/src/wok.main.js +++ b/ui/js/src/wok.main.js @@ -99,7 +99,7 @@ wok.main = function() { tabs.push.apply(tabs, retrieveTabs(url)); }); - var defaultTab = tabs[1] + var defaultTab = tabs[0] var defaultTabPath = defaultTab && defaultTab['path'] // Remove file extension from 'defaultTabPath' -- 1.7.1

We want here the last piece of URI (storage pool name), not the second one. This was breaking kimchi initialization in the new plugin structure. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/model/storagepools.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/plugins/kimchi/model/storagepools.py b/plugins/kimchi/model/storagepools.py index 51269da..a0d10d9 100644 --- a/plugins/kimchi/model/storagepools.py +++ b/plugins/kimchi/model/storagepools.py @@ -72,7 +72,7 @@ class StoragePoolsModel(object): pools = {} default_pool = tmpl_defaults['storagepool'] - default_pool = default_pool.split('/')[2] + default_pool = default_pool.split('/')[-1] pools[default_pool] = {} if default_pool == 'default': -- 1.7.1

When generating the help path for a plugin, a slash was missing in the string. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- ui/js/src/wok.main.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ui/js/src/wok.main.js b/ui/js/src/wok.main.js index f046466..f4c9940 100644 --- a/ui/js/src/wok.main.js +++ b/ui/js/src/wok.main.js @@ -335,7 +335,7 @@ wok.checkHelpFile = function(path) { if (/^tabs/.test(path)) url = path.replace("tabs", "help/" + lang); else if (/^plugins/.test(path)) - url = path.slice(0, path.lastIndexOf('/')) + "help/" + lang + path.slice(path.lastIndexOf('/')); + url = path.slice(0, path.lastIndexOf('/')) + "/help/" + lang + path.slice(path.lastIndexOf('/')); // Checking if help page exist. $.ajax({ url: url, -- 1.7.1

This implements for plugins the changes done by commit 2e90908b8e79ff293298dfcd83b166dd06d361c3. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- src/wok/config.py.in | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/wok/config.py.in b/src/wok/config.py.in index c676f89..2935c40 100644 --- a/src/wok/config.py.in +++ b/src/wok/config.py.in @@ -92,12 +92,13 @@ class PluginPaths(Paths): if self.installed: self.conf_dir = '@sysconfdir@/wok/plugins.d' self.src_dir = os.path.join('@wokdir@', self.plugin_dir) + self.mo_dir = '@prefix@/share/locale' else: self.conf_dir = self.add_prefix(self.plugin_dir) self.src_dir = self.add_prefix(self.plugin_dir) + self.mo_dir = self.add_prefix(os.path.join(self.plugin_dir, 'mo')) self.ui_dir = self.add_prefix(os.path.join(self.plugin_dir, 'ui')) - self.mo_dir = self.add_prefix(os.path.join(self.plugin_dir, 'mo')) self.conf_file = os.path.join(self.conf_dir, '%s.conf' % name) -- 1.7.1

Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/tests/test_config.py.in | 109 +++++++++++++++----------------- plugins/kimchi/tests/utils.py | 4 +- 2 files changed, 54 insertions(+), 59 deletions(-) diff --git a/plugins/kimchi/tests/test_config.py.in b/plugins/kimchi/tests/test_config.py.in index 337218e..930d6d3 100644 --- a/plugins/kimchi/tests/test_config.py.in +++ b/plugins/kimchi/tests/test_config.py.in @@ -18,9 +18,10 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA import unittest +from cherrypy.lib.reprconf import Parser -from wok import config -from wok.config import Paths, PluginPaths, KimchiConfig +from wok.plugins.kimchi import config as kconfig +from wok.config import Paths, PluginPaths get_prefix = None @@ -43,48 +44,48 @@ class ConfigTests(unittest.TestCase): self.assertEquals(actual, expected) def test_installed_paths(self): - Paths.get_prefix = lambda self: '@pkgdatadir@' + Paths.get_prefix = lambda self: '@datadir@/wok' paths = Paths() - self.assertInstalledPath(paths.state_dir, '/var/lib/kimchi') - self.assertInstalledPath(paths.log_dir, '/var/log/kimchi') - self.assertInstalledPath(paths.conf_dir, '/etc/kimchi') - self.assertInstalledPath(paths.src_dir, '@kimchidir@') - self.assertInstalledPath(paths.plugins_dir, '@kimchidir@/plugins') - self.assertInstalledPath(paths.ui_dir, '@pkgdatadir@/ui') + self.assertInstalledPath(paths.state_dir, '/var/lib/wok') + self.assertInstalledPath(paths.log_dir, '/var/log/wok') + self.assertInstalledPath(paths.conf_dir, '/etc/wok') + self.assertInstalledPath(paths.src_dir, '@wokdir@') + self.assertInstalledPath(paths.plugins_dir, '@wokdir@/plugins') + self.assertInstalledPath(paths.ui_dir, '@datadir@/wok/ui') self.assertInstalledPath(paths.mo_dir, '@prefix@/share/locale') def test_uninstalled_paths(self): - Paths.get_prefix = lambda self: '/home/user/kimchi' + Paths.get_prefix = lambda self: '/home/user/wok' paths = Paths() - self.assertEquals(paths.state_dir, '/home/user/kimchi/data') - self.assertEquals(paths.log_dir, '/home/user/kimchi/log') - self.assertEquals(paths.conf_dir, '/home/user/kimchi/src') - self.assertEquals(paths.src_dir, '/home/user/kimchi/src/kimchi') - self.assertEquals(paths.plugins_dir, '/home/user/kimchi/plugins') - self.assertEquals(paths.ui_dir, '/home/user/kimchi/ui') - self.assertEquals(paths.mo_dir, '/home/user/kimchi/mo') + self.assertEquals(paths.state_dir, '/home/user/wok/data') + self.assertEquals(paths.log_dir, '/home/user/wok/log') + self.assertEquals(paths.conf_dir, '/home/user/wok/src') + self.assertEquals(paths.src_dir, '/home/user/wok/src/wok') + self.assertEquals(paths.plugins_dir, '/home/user/wok/plugins') + self.assertEquals(paths.ui_dir, '/home/user/wok/ui') + self.assertEquals(paths.mo_dir, '/home/user/wok/mo') def test_installed_plugin_paths(self): - PluginPaths.get_prefix = lambda self: '@pkgdatadir@' - paths = PluginPaths('sample') - self.assertInstalledPath(paths.conf_dir, '/etc/kimchi/plugins.d') + PluginPaths.get_prefix = lambda self: '@datadir@/wok' + paths = PluginPaths('kimchi') + self.assertInstalledPath(paths.conf_dir, '/etc/wok/plugins.d') self.assertInstalledPath(paths.conf_file, - '/etc/kimchi/plugins.d/sample.conf') - self.assertInstalledPath(paths.src_dir, '@kimchidir@/plugins/sample') + '/etc/wok/plugins.d/kimchi.conf') + self.assertInstalledPath(paths.src_dir, '@wokdir@/plugins/kimchi') self.assertInstalledPath(paths.ui_dir, - '@pkgdatadir@/plugins/sample/ui') + '@datadir@/wok/plugins/kimchi/ui') self.assertInstalledPath(paths.mo_dir, - '@pkgdatadir@/plugins/sample/mo') + '@datadir@/wok/plugins/kimchi/mo') def test_uninstalled_plugin_paths(self): - PluginPaths.get_prefix = lambda self: '/home/user/kimchi' - paths = PluginPaths('sample') - self.assertEquals(paths.conf_dir, '/home/user/kimchi/plugins/sample') + PluginPaths.get_prefix = lambda self: '/home/user/wok' + paths = PluginPaths('kimchi') + self.assertEquals(paths.conf_dir, '/home/user/wok/plugins/kimchi') self.assertEquals( - paths.conf_file, '/home/user/kimchi/plugins/sample/sample.conf') - self.assertEquals(paths.src_dir, '/home/user/kimchi/plugins/sample') - self.assertEquals(paths.ui_dir, '/home/user/kimchi/plugins/sample/ui') - self.assertEquals(paths.mo_dir, '/home/user/kimchi/plugins/sample/mo') + paths.conf_file, '/home/user/wok/plugins/kimchi/kimchi.conf') + self.assertEquals(paths.src_dir, '/home/user/wok/plugins/kimchi') + self.assertEquals(paths.ui_dir, '/home/user/wok/plugins/kimchi/ui') + self.assertEquals(paths.mo_dir, '/home/user/wok/plugins/kimchi/mo') def test_kimchi_config(self): Paths.get_prefix = PluginPaths.get_prefix = get_prefix @@ -98,99 +99,93 @@ class ConfigTests(unittest.TestCase): 'tools.nocache.on': True, 'tools.proxy.on': True, 'tools.sessions.on': True, - 'tools.sessions.name': 'kimchi', + 'tools.sessions.name': 'wok', 'tools.sessions.secure': True, 'tools.sessions.httponly': True, 'tools.sessions.locking': 'explicit', 'tools.sessions.storage_type': 'ram', 'tools.sessions.timeout': SESSIONSTIMEOUT, - 'tools.kimchiauth.on': False + 'tools.wokauth.on': False }, '/novnc': { 'tools.staticdir.on': True, - 'tools.staticdir.dir': paths.novnc_dir, + 'tools.staticdir.dir': PluginPaths('kimchi').novnc_dir, 'tools.nocache.on': True, - 'tools.kimchiauth.on': True + 'tools.wokauth.on': True }, '/spice_auto.html': { 'tools.staticfile.on': True, - 'tools.staticfile.filename': paths.spice_file, + 'tools.staticfile.filename': PluginPaths('kimchi').spice_file, 'tools.nocache.on': True, - 'tools.kimchiauth.on': True + 'tools.wokauth.on': True }, '/spice-html5': { 'tools.staticdir.on': True, - 'tools.staticdir.dir': paths.spice_dir, + 'tools.staticdir.dir': PluginPaths('kimchi').spice_dir, 'tools.nocache.on': True }, '/spice-html5/spice.css': { 'tools.staticfile.on': True, - 'tools.staticfile.filename': paths.spice_css_file, + 'tools.staticfile.filename': PluginPaths('kimchi').spice_css_file, 'tools.nocache.on': True, }, '/kimchi-ui.html': { - 'tools.kimchiauth.on': True + 'tools.wokauth.on': True }, '/css': { 'tools.staticdir.on': True, - 'tools.staticdir.dir': '%s/ui/css' % paths.prefix, + 'tools.staticdir.dir': '%s/ui/css' % PluginPaths('kimchi').prefix, 'tools.expires.on': True, 'tools.expires.secs': CACHEEXPIRES, 'tools.nocache.on': False }, '/js': { 'tools.staticdir.on': True, - 'tools.staticdir.dir': '%s/ui/js' % paths.prefix, + 'tools.staticdir.dir': '%s/ui/js' % PluginPaths('kimchi').prefix, 'tools.expires.on': True, 'tools.expires.secs': CACHEEXPIRES, 'tools.nocache.on': False }, '/libs': { 'tools.staticdir.on': True, - 'tools.staticdir.dir': '%s/ui/libs' % paths.prefix, + 'tools.staticdir.dir': '%s/ui/libs' % PluginPaths('kimchi').prefix, 'tools.expires.on': True, 'tools.expires.secs': CACHEEXPIRES, 'tools.nocache.on': False, }, '/images': { 'tools.staticdir.on': True, - 'tools.staticdir.dir': '%s/ui/images' % paths.prefix, + 'tools.staticdir.dir': '%s/ui/images' % PluginPaths('kimchi').prefix, 'tools.nocache.on': False }, '/data/screenshots': { 'tools.staticdir.on': True, - 'tools.staticdir.dir': config.get_screenshot_path(), + 'tools.staticdir.dir': kconfig.get_screenshot_path(), 'tools.nocache.on': False }, '/data/debugreports': { 'tools.staticdir.on': True, - 'tools.staticdir.dir': config.get_debugreports_path(), + 'tools.staticdir.dir': kconfig.get_debugreports_path(), 'tools.nocache.on': False, - 'tools.kimchiauth.on': True, + 'tools.wokauth.on': True, 'tools.staticdir.content_types': {'xz': 'application/x-xz'} }, - '/config/ui/tabs.xml': { - 'tools.staticfile.on': True, - 'tools.staticfile.filename': '%s/config/ui/tabs.xml' % - paths.prefix, - 'tools.nocache.on': True - }, '/favicon.ico': { 'tools.staticfile.on': True, 'tools.staticfile.filename': - '%s/images/logo.ico' % paths.ui_dir + '%s/images/logo.ico' % PluginPaths('kimchi').ui_dir }, '/robots.txt': { 'tools.staticfile.on': True, - 'tools.staticfile.filename': '%s/robots.txt' % paths.ui_dir + 'tools.staticfile.filename': '%s/robots.txt' % PluginPaths('kimchi').ui_dir }, '/help': { 'tools.staticdir.on': True, - 'tools.staticdir.dir': '%s/ui/pages/help' % paths.prefix, + 'tools.staticdir.dir': '%s/ui/pages/help' % PluginPaths('kimchi').prefix, 'tools.staticdir.index': 'en_US/index.html', 'tools.nocache.on': True } } - kimchi_config = KimchiConfig() + kimchi_config = Parser().dict_from_file(PluginPaths('kimchi').conf_file) self.assertEquals(kimchi_config, configObj) diff --git a/plugins/kimchi/tests/utils.py b/plugins/kimchi/tests/utils.py index e22bffa..e224062 100644 --- a/plugins/kimchi/tests/utils.py +++ b/plugins/kimchi/tests/utils.py @@ -38,7 +38,7 @@ from lxml import etree from wok.plugins.kimchi import mockmodel import wok.server -from wok.config import config, paths +from wok.config import config, paths, PluginPaths from wok.auth import User, USER_NAME, USER_GROUPS, USER_ROLES, tabs from wok.exception import NotFoundError, OperationFailed from wok.utils import wok_log @@ -167,7 +167,7 @@ def get_remote_iso_path(): """ host_arch = os.uname()[4] remote_path = '' - with open(os.path.join(paths.conf_dir, 'distros.d', 'fedora.json')) \ + with open(os.path.join(PluginPaths('kimchi').conf_dir, 'distros.d', 'fedora.json')) \ as fedora_isos: # Get a list of dicts json_isos_list = json.load(fedora_isos) -- 1.7.1

If exception is raised when setting pool_uri, a new exception will be raised trying to print pool_uri value, which will be undefined. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/model/templates.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/kimchi/model/templates.py b/plugins/kimchi/model/templates.py index 0f1f6be..a7a74fc 100644 --- a/plugins/kimchi/model/templates.py +++ b/plugins/kimchi/model/templates.py @@ -76,7 +76,7 @@ class TemplatesModel(object): pool_name = pool_name_from_uri(pool_uri) pool = conn.storagePoolLookupByName(pool_name.encode("utf-8")) except Exception: - raise InvalidParameter("KCHTMPL0004E", {'pool': pool_name, + raise InvalidParameter("KCHTMPL0004E", {'pool': pool_uri, 'template': name}) tmp_volumes = [disk['volume'] for disk in params.get('disks', []) @@ -194,7 +194,7 @@ class TemplateModel(object): pool_name = pool_name_from_uri(pool_uri) pool = conn.storagePoolLookupByName(pool_name.encode("utf-8")) except Exception: - raise InvalidParameter("KCHTMPL0004E", {'pool': pool_name, + raise InvalidParameter("KCHTMPL0004E", {'pool': pool_uri, 'template': name}) tmp_volumes = [disk['volume'] for disk in new_t.get('disks', []) if 'volume' in disk] @@ -239,7 +239,7 @@ class LibvirtVMTemplate(VMTemplate): conn = self.conn.get() pool = conn.storagePoolLookupByName(pool_name.encode("utf-8")) except libvirt.libvirtError: - raise InvalidParameter("KCHTMPL0004E", {'pool': pool_name, + raise InvalidParameter("KCHTMPL0004E", {'pool': pool_uri, 'template': self.name}) if not pool.isActive(): -- 1.7.1

Some dirs/files are always listed in %files section, but they are only created if with_systemd is true, which breaks RPM build. This patch fixes it by only listing those directories when with_systemd is true. Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- contrib/wok.spec.fedora.in | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/wok.spec.fedora.in b/contrib/wok.spec.fedora.in index edbe385..30319a9 100644 --- a/contrib/wok.spec.fedora.in +++ b/contrib/wok.spec.fedora.in @@ -121,16 +121,16 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/wok/ui/ %{_datadir}/wok %{_sysconfdir}/nginx/conf.d/wok.conf.in -%{_sysconfdir}/nginx/conf.d/wok.conf %{_sysconfdir}/wok/wok.conf %{_sysconfdir}/wok/ +%{_mandir}/man8/wokd.8.gz + +%if 0%{?with_systemd} +%{_sysconfdir}/nginx/conf.d/wok.conf %{_sharedstatedir}/wok/vnc-tokens/ %{_sharedstatedir}/wok/ %{_localstatedir}/log/wok/* %{_localstatedir}/log/wok/ -%{_mandir}/man8/wokd.8.gz - -%if 0%{?with_systemd} %{_unitdir}/wokd.service %{_prefix}/lib/firewalld/services/wokd.xml %endif -- 1.7.1

Separate imports into following sections: 1) Import common modules import ... import ... from ... import ... from ... import ... 2) Import wok modules import wok.<mod> import wok.<mod> from wok import ... from wok import ... 3) Import plugin modules import ..<mod> import <mod> from ..<mod> import ... from <mod> import ... Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> Signed-off-by: Gustavo Y. Ribeiro <gyr@linux.vnet.ibm.com> --- plugins/kimchi/control/host.py | 3 +- plugins/kimchi/control/storagepools.py | 5 ++- plugins/kimchi/control/vms.py | 1 + plugins/kimchi/disks.py | 1 - plugins/kimchi/distroloader.py | 3 +- plugins/kimchi/imageinfo.py | 2 +- plugins/kimchi/isoinfo.py | 2 +- plugins/kimchi/kvmusertests.py | 2 +- plugins/kimchi/mockmodel.py | 13 ++++----- plugins/kimchi/model/config.py | 14 +++++----- plugins/kimchi/model/cpuinfo.py | 4 +- plugins/kimchi/model/debugreports.py | 9 ++++--- plugins/kimchi/model/diskutils.py | 4 +- plugins/kimchi/model/featuretests.py | 4 +- plugins/kimchi/model/host.py | 18 +++++++------- plugins/kimchi/model/hostdev.py | 3 +- plugins/kimchi/model/interfaces.py | 1 + plugins/kimchi/model/libvirtconnection.py | 5 +-- plugins/kimchi/model/libvirtstoragepool.py | 10 ++++---- plugins/kimchi/model/model.py | 3 +- plugins/kimchi/model/networks.py | 13 ++++----- plugins/kimchi/model/peers.py | 2 +- plugins/kimchi/model/storagepools.py | 12 ++++---- plugins/kimchi/model/storageservers.py | 1 + plugins/kimchi/model/storagetargets.py | 3 +- plugins/kimchi/model/storagevolumes.py | 12 ++++---- plugins/kimchi/model/templates.py | 10 ++++---- plugins/kimchi/model/utils.py | 1 + plugins/kimchi/model/vmhostdevs.py | 10 ++++---- plugins/kimchi/model/vmifaces.py | 6 ++-- plugins/kimchi/model/vms.py | 28 +++++++++++----------- plugins/kimchi/model/vmsnapshots.py | 8 +++--- plugins/kimchi/model/vmstorages.py | 15 ++++++----- plugins/kimchi/osinfo.py | 1 - plugins/kimchi/repositories.py | 4 +- plugins/kimchi/root.py | 6 ++-- plugins/kimchi/scan.py | 2 +- plugins/kimchi/screenshot.py | 4 +- plugins/kimchi/swupdate.py | 5 ++- plugins/kimchi/tests/iso_gen.py | 1 + plugins/kimchi/tests/test_authorization.py | 2 +- plugins/kimchi/tests/test_config.py.in | 4 ++- plugins/kimchi/tests/test_exception.py | 3 +- plugins/kimchi/tests/test_host.py | 3 +- plugins/kimchi/tests/test_mock_network.py | 2 +- plugins/kimchi/tests/test_mock_storagepool.py | 2 +- plugins/kimchi/tests/test_mock_storagevolume.py | 2 +- plugins/kimchi/tests/test_mockmodel.py | 4 +- plugins/kimchi/tests/test_model.py | 11 ++++---- plugins/kimchi/tests/test_model_network.py | 5 ++- plugins/kimchi/tests/test_model_storagepool.py | 5 ++- plugins/kimchi/tests/test_model_storagevolume.py | 7 +++-- plugins/kimchi/tests/test_networkxml.py | 7 +++-- plugins/kimchi/tests/test_objectstore.py | 3 +- plugins/kimchi/tests/test_osinfo.py | 1 - plugins/kimchi/tests/test_plugin.py | 7 ++--- plugins/kimchi/tests/test_rest.py | 9 ++++--- plugins/kimchi/tests/test_server.py | 8 ++++-- plugins/kimchi/tests/test_template.py | 2 +- plugins/kimchi/tests/test_vmtemplate.py | 2 +- plugins/kimchi/tests/test_yumparser.py | 7 +++-- plugins/kimchi/tests/utils.py | 8 +++--- plugins/kimchi/vmtemplate.py | 8 +++--- plugins/kimchi/xmlutils/disk.py | 2 +- plugins/kimchi/xmlutils/graphics.py | 1 - plugins/kimchi/xmlutils/interface.py | 1 - plugins/kimchi/xmlutils/network.py | 1 - plugins/kimchi/yumparser.py | 2 +- plugins/sample/__init__.py | 4 +- plugins/sample/model.py | 2 +- src/wok/config.py.in | 2 - src/wok/control/base.py | 4 +- src/wok/control/utils.py | 2 - src/wok/objectstore.py | 1 - src/wok/root.py | 3 +- src/wok/server.py | 2 +- src/wok/sslcert.py | 2 - src/wok/template.py | 4 +- src/wok/utils.py | 2 +- src/wok/vnc.py | 1 - 80 files changed, 204 insertions(+), 195 deletions(-) diff --git a/plugins/kimchi/control/host.py b/plugins/kimchi/control/host.py index 6634d8f..0a40f1b 100644 --- a/plugins/kimchi/control/host.py +++ b/plugins/kimchi/control/host.py @@ -17,11 +17,12 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from cpuinfo import CPUInfo from wok.control.base import Collection, Resource, SimpleCollection from wok.control.utils import UrlSubNode from wok.exception import NotFoundError +from cpuinfo import CPUInfo + @UrlSubNode('host', True) class Host(Resource): diff --git a/plugins/kimchi/control/storagepools.py b/plugins/kimchi/control/storagepools.py index 4a83c20..e5f264e 100644 --- a/plugins/kimchi/control/storagepools.py +++ b/plugins/kimchi/control/storagepools.py @@ -20,12 +20,13 @@ import cherrypy from wok.control.base import Collection, Resource -from storagevolumes import IsoVolumes, StorageVolumes from wok.control.utils import get_class_name, model_fn from wok.control.utils import validate_params -from ..model.storagepools import ISO_POOL_NAME from wok.control.utils import UrlSubNode +from ..model.storagepools import ISO_POOL_NAME +from storagevolumes import IsoVolumes, StorageVolumes + @UrlSubNode('storagepools', True) class StoragePools(Collection): diff --git a/plugins/kimchi/control/vms.py b/plugins/kimchi/control/vms.py index c8105bc..858b23c 100644 --- a/plugins/kimchi/control/vms.py +++ b/plugins/kimchi/control/vms.py @@ -19,6 +19,7 @@ from wok.control.base import AsyncCollection, Resource from wok.control.utils import internal_redirect, UrlSubNode + from vm import sub_nodes diff --git a/plugins/kimchi/disks.py b/plugins/kimchi/disks.py index 88a69f4..eb40e3a 100644 --- a/plugins/kimchi/disks.py +++ b/plugins/kimchi/disks.py @@ -20,7 +20,6 @@ import os.path import re import subprocess - from parted import Device as PDevice from parted import Disk as PDisk diff --git a/plugins/kimchi/distroloader.py b/plugins/kimchi/distroloader.py index a593246..0032737 100644 --- a/plugins/kimchi/distroloader.py +++ b/plugins/kimchi/distroloader.py @@ -23,10 +23,11 @@ import json import os -import config from wok.exception import NotFoundError, OperationFailed from wok.utils import wok_log +import config + ARCHS = {'x86_64': ['x86_64', 'amd64', 'i686', 'x86', 'i386'], 'amd64': ['x86_64', 'amd64', 'i686', 'x86', 'i386'], diff --git a/plugins/kimchi/imageinfo.py b/plugins/kimchi/imageinfo.py index 7d92f54..8a22495 100644 --- a/plugins/kimchi/imageinfo.py +++ b/plugins/kimchi/imageinfo.py @@ -17,10 +17,10 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +import guestfs import json import os import sys -import guestfs from wok.exception import ImageFormatError, InvalidParameter, TimeoutExpired from wok.utils import run_command, wok_log diff --git a/plugins/kimchi/isoinfo.py b/plugins/kimchi/isoinfo.py index cec20b1..8de6885 100644 --- a/plugins/kimchi/isoinfo.py +++ b/plugins/kimchi/isoinfo.py @@ -19,8 +19,8 @@ import contextlib import glob -import platform import os +import platform import re import stat import struct diff --git a/plugins/kimchi/kvmusertests.py b/plugins/kimchi/kvmusertests.py index ace157e..35350d8 100644 --- a/plugins/kimchi/kvmusertests.py +++ b/plugins/kimchi/kvmusertests.py @@ -16,11 +16,11 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +import libvirt import platform import psutil import threading -import libvirt from wok.rollbackcontext import RollbackContext diff --git a/plugins/kimchi/mockmodel.py b/plugins/kimchi/mockmodel.py index d51ab9e..e316c21 100644 --- a/plugins/kimchi/mockmodel.py +++ b/plugins/kimchi/mockmodel.py @@ -22,16 +22,18 @@ import lxml.etree as ET import os import random import time - -from model import cpuinfo - from lxml import objectify from lxml.builder import E +from wok.exception import NotFoundError, OperationFailed +from wok.objectstore import ObjectStore +from wok.utils import add_task, get_next_clone_name, wok_log +from wok.xmlutils.utils import xml_item_update + import config import imageinfo import osinfo -from wok.exception import NotFoundError, OperationFailed +from model import cpuinfo from model.debugreports import DebugReportsModel from model.host import DeviceModel from model.libvirtstoragepool import IscsiPoolDef, NetfsPoolDef @@ -42,10 +44,7 @@ from model.storagevolumes import StorageVolumeModel, StorageVolumesModel from model.templates import LibvirtVMTemplate from model.users import PAMUsersModel from model.groups import PAMGroupsModel -from wok.objectstore import ObjectStore -from wok.utils import add_task, get_next_clone_name, wok_log from vmtemplate import VMTemplate -from wok.xmlutils.utils import xml_item_update fake_user = {'root': 'letmein!'} diff --git a/plugins/kimchi/model/config.py b/plugins/kimchi/model/config.py index d0799fe..371e382 100644 --- a/plugins/kimchi/model/config.py +++ b/plugins/kimchi/model/config.py @@ -17,23 +17,23 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from multiprocessing.pool import ThreadPool - import cherrypy +from multiprocessing.pool import ThreadPool from wok.basemodel import Singleton from wok.config import config as kconfig from wok.config import get_version +from wok.exception import NotFoundError +from wok.utils import check_url_path, run_command, wok_log + from ..config import find_qemu_binary from ..distroloader import DistroLoader -from wok.exception import NotFoundError -from debugreports import DebugReportsModel -from featuretests import FeatureTests, FEATURETEST_POOL_NAME -from featuretests import FEATURETEST_VM_NAME from ..repositories import Repositories from ..screenshot import VMScreenshot from ..swupdate import SoftwareUpdate -from wok.utils import check_url_path, wok_log, run_command +from debugreports import DebugReportsModel +from featuretests import FeatureTests, FEATURETEST_POOL_NAME +from featuretests import FEATURETEST_VM_NAME class ConfigModel(object): diff --git a/plugins/kimchi/model/cpuinfo.py b/plugins/kimchi/model/cpuinfo.py index 61d1ec6..5f4bbca 100644 --- a/plugins/kimchi/model/cpuinfo.py +++ b/plugins/kimchi/model/cpuinfo.py @@ -18,11 +18,11 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA import platform - from xml.etree import ElementTree as ET from wok.exception import InvalidParameter, InvalidOperation -from wok.utils import wok_log, run_command +from wok.utils import run_command, wok_log + ARCH = 'power' if platform.machine().startswith('ppc') else 'x86' diff --git a/plugins/kimchi/model/debugreports.py b/plugins/kimchi/model/debugreports.py index aff2152..d20eb12 100644 --- a/plugins/kimchi/model/debugreports.py +++ b/plugins/kimchi/model/debugreports.py @@ -25,13 +25,14 @@ import shutil import subprocess import time -from .. import config -from wok.exception import InvalidParameter, WokException, NotFoundError -from wok.exception import OperationFailed -from tasks import TaskModel +from wok.exception import InvalidParameter, NotFoundError, OperationFailed +from wok.exception import WokException from wok.utils import add_task, wok_log from wok.utils import run_command +from .. import config +from tasks import TaskModel + class DebugReportsModel(object): def __init__(self, **kargs): diff --git a/plugins/kimchi/model/diskutils.py b/plugins/kimchi/model/diskutils.py index 49bf17d..2f0c903 100644 --- a/plugins/kimchi/model/diskutils.py +++ b/plugins/kimchi/model/diskutils.py @@ -17,11 +17,11 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - from wok.exception import OperationFailed, NotFoundError -from vms import VMModel, VMsModel from wok.utils import wok_log + from ..xmlutils.disk import get_vm_disk_info, get_vm_disks +from vms import VMModel, VMsModel """ Functions that multiple storage-related models (e.g. VMStoragesModel, diff --git a/plugins/kimchi/model/featuretests.py b/plugins/kimchi/model/featuretests.py index eb41edb..c53d1aa 100644 --- a/plugins/kimchi/model/featuretests.py +++ b/plugins/kimchi/model/featuretests.py @@ -22,11 +22,11 @@ import libvirt import lxml.etree as ET import platform import subprocess - from lxml.builder import E from wok.rollbackcontext import RollbackContext -from wok.utils import wok_log, run_command, servermethod +from wok.utils import run_command, servermethod, wok_log + FEATURETEST_VM_NAME = "FEATURETEST_VM" FEATURETEST_POOL_NAME = "FEATURETEST_POOL" diff --git a/plugins/kimchi/model/host.py b/plugins/kimchi/model/host.py index 09b0a09..3ff034c 100644 --- a/plugins/kimchi/model/host.py +++ b/plugins/kimchi/model/host.py @@ -19,26 +19,26 @@ import libvirt import os -import time import platform -from collections import defaultdict - import psutil +import time from cherrypy.process.plugins import BackgroundTask +from collections import defaultdict -from .. import disks from wok import netinfo from wok.basemodel import Singleton -import hostdev from wok.exception import InvalidOperation, InvalidParameter from wok.exception import NotFoundError, OperationFailed +from wok.utils import add_task, wok_log +from wok.xmlutils.utils import xpath_get_text + +import hostdev +from .. import disks +from ..repositories import Repositories +from ..swupdate import SoftwareUpdate from config import CapabilitiesModel from tasks import TaskModel from vms import DOM_STATE_MAP -from ..repositories import Repositories -from ..swupdate import SoftwareUpdate -from wok.utils import add_task, wok_log -from wok.xmlutils.utils import xpath_get_text HOST_STATS_INTERVAL = 1 diff --git a/plugins/kimchi/model/hostdev.py b/plugins/kimchi/model/hostdev.py index 9ebc3c3..c411d0b 100644 --- a/plugins/kimchi/model/hostdev.py +++ b/plugins/kimchi/model/hostdev.py @@ -21,10 +21,11 @@ import os from pprint import pformat from pprint import pprint -from libvirtconnection import LibvirtConnection from wok.utils import wok_log from wok.xmlutils.utils import dictize +from libvirtconnection import LibvirtConnection + def _get_all_host_dev_infos(libvirt_conn): node_devs = libvirt_conn.listAllDevices(0) diff --git a/plugins/kimchi/model/interfaces.py b/plugins/kimchi/model/interfaces.py index 5ccadc7..81b379a 100644 --- a/plugins/kimchi/model/interfaces.py +++ b/plugins/kimchi/model/interfaces.py @@ -19,6 +19,7 @@ from wok import netinfo from wok.exception import NotFoundError + from networks import NetworksModel diff --git a/plugins/kimchi/model/libvirtconnection.py b/plugins/kimchi/model/libvirtconnection.py index d2ce031..ef4a4ce 100644 --- a/plugins/kimchi/model/libvirtconnection.py +++ b/plugins/kimchi/model/libvirtconnection.py @@ -17,11 +17,10 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -import threading -import time - import cherrypy import libvirt +import threading +import time from wok.utils import wok_log diff --git a/plugins/kimchi/model/libvirtstoragepool.py b/plugins/kimchi/model/libvirtstoragepool.py index 6c1f031..b22856b 100644 --- a/plugins/kimchi/model/libvirtstoragepool.py +++ b/plugins/kimchi/model/libvirtstoragepool.py @@ -17,17 +17,17 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +import libvirt +import lxml.etree as ET import os import tempfile -import lxml.etree as ET from lxml.builder import E -import libvirt - from wok.exception import InvalidParameter, OperationFailed, TimeoutExpired -from ..iscsi import TargetClient from wok.rollbackcontext import RollbackContext -from wok.utils import wok_log, parse_cmd_output, run_command +from wok.utils import parse_cmd_output, run_command, wok_log + +from ..iscsi import TargetClient class StoragePoolDef(object): diff --git a/plugins/kimchi/model/model.py b/plugins/kimchi/model/model.py index 33dea12..0c94f63 100644 --- a/plugins/kimchi/model/model.py +++ b/plugins/kimchi/model/model.py @@ -21,10 +21,11 @@ import inspect import os from wok.basemodel import BaseModel -from libvirtconnection import LibvirtConnection from wok.objectstore import ObjectStore from wok.utils import import_module, listPathModules +from libvirtconnection import LibvirtConnection + class Model(BaseModel): def __init__(self, libvirt_uri=None, objstore_loc=None): diff --git a/plugins/kimchi/model/networks.py b/plugins/kimchi/model/networks.py index 3723e4c..57af9e7 100644 --- a/plugins/kimchi/model/networks.py +++ b/plugins/kimchi/model/networks.py @@ -17,12 +17,10 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -import sys -import time - import ipaddr import libvirt - +import sys +import time from xml.sax.saxutils import escape from wok import netinfo @@ -30,12 +28,13 @@ from wok import network as knetwork from wok.config import PluginPaths from wok.exception import InvalidOperation, InvalidParameter from wok.exception import MissingParameter, NotFoundError, OperationFailed -from ..osinfo import defaults as tmpl_defaults from wok.rollbackcontext import RollbackContext -from wok.utils import wok_log, run_command +from wok.utils import run_command, wok_log +from wok.xmlutils.utils import xpath_get_text + +from ..osinfo import defaults as tmpl_defaults from ..xmlutils.network import create_vlan_tagged_bridge_xml from ..xmlutils.network import to_network_xml -from wok.xmlutils.utils import xpath_get_text KIMCHI_BRIDGE_PREFIX = 'kb' diff --git a/plugins/kimchi/model/peers.py b/plugins/kimchi/model/peers.py index a9cf3b7..91e4a32 100644 --- a/plugins/kimchi/model/peers.py +++ b/plugins/kimchi/model/peers.py @@ -22,7 +22,7 @@ import re import socket from wok.config import config -from wok.utils import wok_log, run_command +from wok.utils import run_command, wok_log class PeersModel(object): diff --git a/plugins/kimchi/model/storagepools.py b/plugins/kimchi/model/storagepools.py index a0d10d9..b5b8d01 100644 --- a/plugins/kimchi/model/storagepools.py +++ b/plugins/kimchi/model/storagepools.py @@ -20,20 +20,20 @@ import libvirt import lxml.etree as ET import sys - from lxml.builder import E from wok.config import config, PluginPaths -from ..scan import Scanner from wok.exception import InvalidOperation, MissingParameter from wok.exception import NotFoundError, OperationFailed +from wok.utils import add_task, run_command, wok_log +from wok.xmlutils.utils import xpath_get_text + +from ..osinfo import defaults as tmpl_defaults +from ..scan import Scanner +from ..utils import pool_name_from_uri from config import CapabilitiesModel from host import DeviceModel from libvirtstoragepool import StoragePoolDef -from ..osinfo import defaults as tmpl_defaults -from wok.utils import add_task, wok_log, run_command -from ..utils import pool_name_from_uri -from wok.xmlutils.utils import xpath_get_text ISO_POOL_NAME = u'kimchi_isos' diff --git a/plugins/kimchi/model/storageservers.py b/plugins/kimchi/model/storageservers.py index 17e1289..accc5f5 100644 --- a/plugins/kimchi/model/storageservers.py +++ b/plugins/kimchi/model/storageservers.py @@ -18,6 +18,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA from wok.exception import NotFoundError + from storagepools import StoragePoolModel, StoragePoolsModel # Types of remote storage servers supported diff --git a/plugins/kimchi/model/storagetargets.py b/plugins/kimchi/model/storagetargets.py index bbcfb0d..4090b45 100644 --- a/plugins/kimchi/model/storagetargets.py +++ b/plugins/kimchi/model/storagetargets.py @@ -22,9 +22,10 @@ import lxml.etree as ET from lxml import objectify from lxml.builder import E +from wok.utils import patch_find_nfs_target, wok_log + from config import CapabilitiesModel from storageservers import STORAGE_SERVERS -from wok.utils import wok_log, patch_find_nfs_target class StorageTargetsModel(object): diff --git a/plugins/kimchi/model/storagevolumes.py b/plugins/kimchi/model/storagevolumes.py index 6bc203a..7fc0837 100644 --- a/plugins/kimchi/model/storagevolumes.py +++ b/plugins/kimchi/model/storagevolumes.py @@ -18,6 +18,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA import contextlib +import libvirt import lxml.etree as ET import os import tempfile @@ -26,18 +27,17 @@ import time import urllib2 from lxml.builder import E -import libvirt - -from ..config import READONLY_POOL_TYPE from wok.exception import InvalidOperation, InvalidParameter, IsoFormatError from wok.exception import MissingParameter, NotFoundError, OperationFailed +from wok.utils import add_task, get_next_clone_name, get_unique_file_name +from wok.utils import wok_log +from wok.xmlutils.utils import xpath_get_text + +from ..config import READONLY_POOL_TYPE from ..isoinfo import IsoImage from diskutils import get_disk_used_by, set_disk_used_by from storagepools import StoragePoolModel from tasks import TaskModel -from wok.utils import add_task, get_next_clone_name, get_unique_file_name -from wok.utils import wok_log -from wok.xmlutils.utils import xpath_get_text VOLUME_TYPE_MAP = {0: 'file', diff --git a/plugins/kimchi/model/templates.py b/plugins/kimchi/model/templates.py index a7a74fc..4f0b204 100644 --- a/plugins/kimchi/model/templates.py +++ b/plugins/kimchi/model/templates.py @@ -18,19 +18,19 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA import copy +import libvirt import os import stat -import libvirt - from wok.exception import InvalidOperation, InvalidParameter from wok.exception import NotFoundError, OperationFailed +from wok.utils import probe_file_permission_as_user, run_setfacl_set_attr +from wok.xmlutils.utils import xpath_get_text + from ..kvmusertests import UserTests -from cpuinfo import CPUInfoModel from ..utils import pool_name_from_uri -from wok.utils import probe_file_permission_as_user, run_setfacl_set_attr from ..vmtemplate import VMTemplate -from wok.xmlutils.utils import xpath_get_text +from cpuinfo import CPUInfoModel class TemplatesModel(object): diff --git a/plugins/kimchi/model/utils.py b/plugins/kimchi/model/utils.py index 878390f..53d719d 100644 --- a/plugins/kimchi/model/utils.py +++ b/plugins/kimchi/model/utils.py @@ -23,6 +23,7 @@ from lxml.builder import E, ElementMaker from wok.exception import OperationFailed + KIMCHI_META_URL = "https://github.com/kimchi-project/kimchi" KIMCHI_NAMESPACE = "kimchi" diff --git a/plugins/kimchi/model/vmhostdevs.py b/plugins/kimchi/model/vmhostdevs.py index 18f4e1f..0cc6bd3 100644 --- a/plugins/kimchi/model/vmhostdevs.py +++ b/plugins/kimchi/model/vmhostdevs.py @@ -18,21 +18,21 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA import glob -import os - import libvirt +import os +import platform from lxml import etree, objectify from lxml.builder import E from wok.exception import InvalidOperation, InvalidParameter, NotFoundError from wok.exception import OperationFailed +from wok.rollbackcontext import RollbackContext +from wok.utils import run_command, wok_log + from config import CapabilitiesModel from host import DeviceModel, DevicesModel from utils import get_vm_config_flag from vms import DOM_STATE_MAP, VMModel -from wok.rollbackcontext import RollbackContext -from wok.utils import wok_log, run_command -import platform class VMHostDevsModel(object): diff --git a/plugins/kimchi/model/vmifaces.py b/plugins/kimchi/model/vmifaces.py index fe136e3..d51eb0f 100644 --- a/plugins/kimchi/model/vmifaces.py +++ b/plugins/kimchi/model/vmifaces.py @@ -17,16 +17,16 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -import random - import libvirt +import random from lxml import etree, objectify from wok.exception import InvalidOperation, MissingParameter from wok.exception import NotFoundError, InvalidOperation + +from ..xmlutils.interface import get_iface_xml from config import CapabilitiesModel from vms import DOM_STATE_MAP, VMModel -from ..xmlutils.interface import get_iface_xml class VMIfacesModel(object): diff --git a/plugins/kimchi/model/vms.py b/plugins/kimchi/model/vms.py index 96e5084..561e7d8 100644 --- a/plugins/kimchi/model/vms.py +++ b/plugins/kimchi/model/vms.py @@ -17,39 +17,39 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from lxml.builder import E +import libvirt import lxml.etree as ET -from lxml import etree, objectify import os import random import string import time import uuid +from lxml import etree, objectify +from lxml.builder import E from xml.etree import ElementTree -import libvirt - from wok import vnc -from .. import model from wok.config import config -from ..config import READONLY_POOL_TYPE from wok.exception import InvalidOperation, InvalidParameter from wok.exception import NotFoundError, OperationFailed +from wok.rollbackcontext import RollbackContext +from wok.utils import add_task, convert_data_size, get_next_clone_name +from wok.utils import import_class, run_setfacl_set_attr, wok_log +from wok.xmlutils.utils import xpath_get_text, xml_item_update +from wok.xmlutils.utils import dictize + +from .. import model +from ..config import READONLY_POOL_TYPE from ..kvmusertests import UserTests +from ..screenshot import VMScreenshot +from ..utils import template_name_from_uri +from ..xmlutils.cpu import get_cpu_xml, get_numa_xml from config import CapabilitiesModel from tasks import TaskModel from templates import TemplateModel from utils import get_vm_name from utils import get_metadata_node from utils import set_metadata_node -from wok.rollbackcontext import RollbackContext -from ..screenshot import VMScreenshot -from wok.utils import add_task, convert_data_size, get_next_clone_name -from wok.utils import import_class, wok_log, run_setfacl_set_attr -from ..utils import template_name_from_uri -from ..xmlutils.cpu import get_cpu_xml, get_numa_xml -from wok.xmlutils.utils import xpath_get_text, xml_item_update -from wok.xmlutils.utils import dictize DOM_STATE_MAP = {0: 'nostate', diff --git a/plugins/kimchi/model/vmsnapshots.py b/plugins/kimchi/model/vmsnapshots.py index 0724adc..6abf726 100644 --- a/plugins/kimchi/model/vmsnapshots.py +++ b/plugins/kimchi/model/vmsnapshots.py @@ -17,19 +17,19 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -import time - import libvirt import lxml.etree as ET +import time from lxml import objectify from lxml.builder import E from wok.exception import InvalidOperation, NotFoundError, OperationFailed +from wok.utils import add_task +from wok.xmlutils.utils import xpath_get_text + from tasks import TaskModel from vms import DOM_STATE_MAP, VMModel from vmstorages import VMStorageModel, VMStoragesModel -from wok.utils import add_task -from wok.xmlutils.utils import xpath_get_text class VMSnapshotsModel(object): diff --git a/plugins/kimchi/model/vmstorages.py b/plugins/kimchi/model/vmstorages.py index f7cef52..d6987e3 100644 --- a/plugins/kimchi/model/vmstorages.py +++ b/plugins/kimchi/model/vmstorages.py @@ -18,20 +18,21 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA import string - from lxml import etree from wok.exception import InvalidOperation, InvalidParameter, NotFoundError from wok.exception import OperationFailed -from config import CapabilitiesModel -from vms import DOM_STATE_MAP, VMModel -from storagevolumes import StorageVolumeModel -from utils import get_vm_config_flag -from ..osinfo import lookup -from diskutils import get_disk_used_by, set_disk_used_by from wok.utils import wok_log + +from ..osinfo import lookup from ..xmlutils.disk import get_device_node, get_disk_xml from ..xmlutils.disk import get_vm_disk_info, get_vm_disks +from config import CapabilitiesModel +from diskutils import get_disk_used_by, set_disk_used_by +from storagevolumes import StorageVolumeModel +from utils import get_vm_config_flag +from vms import DOM_STATE_MAP, VMModel + HOTPLUG_TYPE = ['scsi', 'virtio'] diff --git a/plugins/kimchi/osinfo.py b/plugins/kimchi/osinfo.py index 5fe1e07..1164946 100644 --- a/plugins/kimchi/osinfo.py +++ b/plugins/kimchi/osinfo.py @@ -21,7 +21,6 @@ import copy import glob import os import psutil - from collections import defaultdict from configobj import ConfigObj from distutils.version import LooseVersion diff --git a/plugins/kimchi/repositories.py b/plugins/kimchi/repositories.py index 926bd45..9caabc4 100644 --- a/plugins/kimchi/repositories.py +++ b/plugins/kimchi/repositories.py @@ -21,14 +21,14 @@ import copy import os import time import urlparse - from ConfigParser import ConfigParser from wok.basemodel import Singleton -from config import kimchiLock from wok.exception import InvalidOperation, InvalidParameter from wok.exception import OperationFailed, NotFoundError, MissingParameter from wok.utils import validate_repo_url + +from config import kimchiLock from yumparser import get_yum_repositories, write_repo_to_file diff --git a/plugins/kimchi/root.py b/plugins/kimchi/root.py index 9889926..20c41ca 100644 --- a/plugins/kimchi/root.py +++ b/plugins/kimchi/root.py @@ -21,14 +21,14 @@ import json import os import cherrypy +from wok import vnc +from wok.i18n import messages +from wok.root import WokRoot import config import mockmodel from control import sub_nodes -from wok.i18n import messages from model import model as kimchiModel -from wok.root import WokRoot -from wok import vnc class KimchiRoot(WokRoot): diff --git a/plugins/kimchi/scan.py b/plugins/kimchi/scan.py index 663b838..b475c46 100644 --- a/plugins/kimchi/scan.py +++ b/plugins/kimchi/scan.py @@ -25,9 +25,9 @@ import shutil import tempfile import time +from wok.utils import wok_log from isoinfo import IsoImage, probe_iso -from wok.utils import wok_log SCAN_IGNORE = ['/tmp/kimchi-scan-*'] diff --git a/plugins/kimchi/screenshot.py b/plugins/kimchi/screenshot.py index 1cac964..7c2347c 100644 --- a/plugins/kimchi/screenshot.py +++ b/plugins/kimchi/screenshot.py @@ -25,16 +25,16 @@ import tempfile import time import uuid - try: from PIL import Image except ImportError: import Image -import config from wok.utils import wok_log +import config + (fd, pipe) = tempfile.mkstemp() stream_test_result = None diff --git a/plugins/kimchi/swupdate.py b/plugins/kimchi/swupdate.py index cd56707..84b927f 100644 --- a/plugins/kimchi/swupdate.py +++ b/plugins/kimchi/swupdate.py @@ -21,9 +21,10 @@ import subprocess import time from wok.basemodel import Singleton -from config import kimchiLock from wok.exception import NotFoundError, OperationFailed -from wok.utils import wok_log, run_command +from wok.utils import run_command, wok_log + +from config import kimchiLock from yumparser import get_yum_packages_list_update diff --git a/plugins/kimchi/tests/iso_gen.py b/plugins/kimchi/tests/iso_gen.py index 7e92622..736c660 100644 --- a/plugins/kimchi/tests/iso_gen.py +++ b/plugins/kimchi/tests/iso_gen.py @@ -22,6 +22,7 @@ import struct from wok.plugins.kimchi.isoinfo import IsoImage + iso_des = [ ('openbsd', lambda v: True, lambda v: 'OpenBSD/i386 %s Install CD' % v), diff --git a/plugins/kimchi/tests/test_authorization.py b/plugins/kimchi/tests/test_authorization.py index 695b512..53aa847 100644 --- a/plugins/kimchi/tests/test_authorization.py +++ b/plugins/kimchi/tests/test_authorization.py @@ -20,10 +20,10 @@ import json import os import unittest - from functools import partial from wok.plugins.kimchi import mockmodel + from iso_gen import construct_fake_iso from utils import get_free_port, patch_auth, request from utils import run_server, wait_task diff --git a/plugins/kimchi/tests/test_config.py.in b/plugins/kimchi/tests/test_config.py.in index 930d6d3..0b9cc2a 100644 --- a/plugins/kimchi/tests/test_config.py.in +++ b/plugins/kimchi/tests/test_config.py.in @@ -20,9 +20,11 @@ import unittest from cherrypy.lib.reprconf import Parser -from wok.plugins.kimchi import config as kconfig from wok.config import Paths, PluginPaths +from wok.plugins.kimchi import config as kconfig + + get_prefix = None diff --git a/plugins/kimchi/tests/test_exception.py b/plugins/kimchi/tests/test_exception.py index 32b6baf..d33b27f 100644 --- a/plugins/kimchi/tests/test_exception.py +++ b/plugins/kimchi/tests/test_exception.py @@ -21,9 +21,10 @@ import json import os import unittest +import wok.server from wok.plugins.kimchi import mockmodel -import wok.server + from utils import get_free_port, patch_auth, request, run_server diff --git a/plugins/kimchi/tests/test_host.py b/plugins/kimchi/tests/test_host.py index 5a18490..e2aa196 100644 --- a/plugins/kimchi/tests/test_host.py +++ b/plugins/kimchi/tests/test_host.py @@ -25,12 +25,13 @@ import psutil import tempfile import time import unittest - from functools import partial from wok.plugins.kimchi.mockmodel import MockModel + from utils import get_free_port, patch_auth, request, run_server, wait_task + test_server = None model = None host = None diff --git a/plugins/kimchi/tests/test_mock_network.py b/plugins/kimchi/tests/test_mock_network.py index 749b9c3..9f38869 100644 --- a/plugins/kimchi/tests/test_mock_network.py +++ b/plugins/kimchi/tests/test_mock_network.py @@ -21,10 +21,10 @@ import json import os import unittest - from functools import partial from wok.plugins.kimchi.mockmodel import MockModel + from test_model_network import _do_network_test from utils import get_free_port, patch_auth, request, run_server diff --git a/plugins/kimchi/tests/test_mock_storagepool.py b/plugins/kimchi/tests/test_mock_storagepool.py index b96d72d..6fe0981 100644 --- a/plugins/kimchi/tests/test_mock_storagepool.py +++ b/plugins/kimchi/tests/test_mock_storagepool.py @@ -21,10 +21,10 @@ import json import os import unittest - from functools import partial from wok.plugins.kimchi.mockmodel import MockModel + from utils import get_free_port, patch_auth, request, run_server diff --git a/plugins/kimchi/tests/test_mock_storagevolume.py b/plugins/kimchi/tests/test_mock_storagevolume.py index 0065305..22fcce1 100644 --- a/plugins/kimchi/tests/test_mock_storagevolume.py +++ b/plugins/kimchi/tests/test_mock_storagevolume.py @@ -21,10 +21,10 @@ import json import os import unittest - from functools import partial from wok.plugins.kimchi.mockmodel import MockModel + from test_model_storagevolume import _do_volume_test from utils import get_free_port, patch_auth, request, run_server diff --git a/plugins/kimchi/tests/test_mockmodel.py b/plugins/kimchi/tests/test_mockmodel.py index 133a61e..2fae0e2 100644 --- a/plugins/kimchi/tests/test_mockmodel.py +++ b/plugins/kimchi/tests/test_mockmodel.py @@ -23,11 +23,11 @@ import os import time import unittest - from wok.plugins.kimchi import mockmodel -from utils import get_free_port, patch_auth, request, run_server, wait_task from wok.plugins.kimchi.osinfo import get_template_default +from utils import get_free_port, patch_auth, request, run_server, wait_task + test_server = None model = None diff --git a/plugins/kimchi/tests/test_model.py b/plugins/kimchi/tests/test_model.py index 157ba62..c70e4fb 100644 --- a/plugins/kimchi/tests/test_model.py +++ b/plugins/kimchi/tests/test_model.py @@ -27,20 +27,21 @@ import time import unittest import uuid - -import iso_gen import wok.objectstore -import utils from wok import netinfo from wok.basemodel import Singleton from wok.config import config from wok.exception import InvalidOperation from wok.exception import InvalidParameter, NotFoundError, OperationFailed +from wok.rollbackcontext import RollbackContext +from wok.utils import add_task + from wok.plugins.kimchi.osinfo import get_template_default from wok.plugins.kimchi.model import model from wok.plugins.kimchi.model.libvirtconnection import LibvirtConnection -from wok.rollbackcontext import RollbackContext -from wok.utils import add_task + +import iso_gen +import utils invalid_repository_urls = ['www.fedora.org', # missing protocol diff --git a/plugins/kimchi/tests/test_model_network.py b/plugins/kimchi/tests/test_model_network.py index 37f5652..8874ed9 100644 --- a/plugins/kimchi/tests/test_model_network.py +++ b/plugins/kimchi/tests/test_model_network.py @@ -21,11 +21,12 @@ import json import os import unittest - from functools import partial -from wok.plugins.kimchi.model.model import Model from wok.rollbackcontext import RollbackContext + +from wok.plugins.kimchi.model.model import Model + from utils import get_free_port, patch_auth, request, rollback_wrapper from utils import run_server diff --git a/plugins/kimchi/tests/test_model_storagepool.py b/plugins/kimchi/tests/test_model_storagepool.py index 1326731..297b0b7 100644 --- a/plugins/kimchi/tests/test_model_storagepool.py +++ b/plugins/kimchi/tests/test_model_storagepool.py @@ -21,11 +21,12 @@ import json import os import unittest - from functools import partial -from wok.plugins.kimchi.model.model import Model from wok.rollbackcontext import RollbackContext + +from wok.plugins.kimchi.model.model import Model + from utils import get_free_port, patch_auth, request from utils import run_server diff --git a/plugins/kimchi/tests/test_model_storagevolume.py b/plugins/kimchi/tests/test_model_storagevolume.py index 103948e..a05e479 100644 --- a/plugins/kimchi/tests/test_model_storagevolume.py +++ b/plugins/kimchi/tests/test_model_storagevolume.py @@ -22,14 +22,15 @@ import json import os import requests import unittest - from functools import partial from wok.config import paths +from wok.rollbackcontext import RollbackContext + from wok.plugins.kimchi.config import READONLY_POOL_TYPE -from wok.plugins.kimchi.model.model import Model from wok.plugins.kimchi.mockmodel import MockModel -from wok.rollbackcontext import RollbackContext +from wok.plugins.kimchi.model.model import Model + from utils import fake_auth_header, get_free_port, patch_auth, request from utils import rollback_wrapper, run_server, wait_task diff --git a/plugins/kimchi/tests/test_networkxml.py b/plugins/kimchi/tests/test_networkxml.py index 139f051..a64b6c2 100644 --- a/plugins/kimchi/tests/test_networkxml.py +++ b/plugins/kimchi/tests/test_networkxml.py @@ -18,13 +18,14 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA import ipaddr -import unittest import lxml.etree as ET +import unittest -import utils +from wok.xmlutils.utils import xpath_get_text from wok.plugins.kimchi.xmlutils import network as nxml -from wok.xmlutils.utils import xpath_get_text + +import utils class NetworkXmlTests(unittest.TestCase): diff --git a/plugins/kimchi/tests/test_objectstore.py b/plugins/kimchi/tests/test_objectstore.py index 412a7f2..632786f 100644 --- a/plugins/kimchi/tests/test_objectstore.py +++ b/plugins/kimchi/tests/test_objectstore.py @@ -23,8 +23,9 @@ import tempfile import threading import unittest -from wok.exception import NotFoundError from wok import objectstore +from wok.exception import NotFoundError + tmpfile = None diff --git a/plugins/kimchi/tests/test_osinfo.py b/plugins/kimchi/tests/test_osinfo.py index 1712ded..bd2af58 100644 --- a/plugins/kimchi/tests/test_osinfo.py +++ b/plugins/kimchi/tests/test_osinfo.py @@ -19,7 +19,6 @@ import unittest - from wok.plugins.kimchi.osinfo import _get_arch, get_template_default, lookup from wok.plugins.kimchi.osinfo import modern_version_bases diff --git a/plugins/kimchi/tests/test_plugin.py b/plugins/kimchi/tests/test_plugin.py index 2f2475a..ebc4a39 100644 --- a/plugins/kimchi/tests/test_plugin.py +++ b/plugins/kimchi/tests/test_plugin.py @@ -20,14 +20,13 @@ import json import os import unittest - - from functools import partial - -from wok.plugins.kimchi import mockmodel import wok.server from wok.utils import get_enabled_plugins + +from wok.plugins.kimchi import mockmodel + import utils diff --git a/plugins/kimchi/tests/test_rest.py b/plugins/kimchi/tests/test_rest.py index 69db7a7..3b15dee 100644 --- a/plugins/kimchi/tests/test_rest.py +++ b/plugins/kimchi/tests/test_rest.py @@ -25,15 +25,16 @@ import time import unittest import urllib2 import urlparse - from functools import partial -import iso_gen -from wok.plugins.kimchi import mockmodel import wok.server -from wok.plugins.kimchi.osinfo import get_template_default from wok.rollbackcontext import RollbackContext from wok.utils import add_task + +from wok.plugins.kimchi import mockmodel +from wok.plugins.kimchi.osinfo import get_template_default + +import iso_gen from utils import get_free_port, patch_auth, request from utils import run_server, wait_task diff --git a/plugins/kimchi/tests/test_server.py b/plugins/kimchi/tests/test_server.py index 48a8589..d7f1af0 100644 --- a/plugins/kimchi/tests/test_server.py +++ b/plugins/kimchi/tests/test_server.py @@ -24,13 +24,15 @@ import os import tempfile import threading import unittest - from functools import partial -import utils -from wok.plugins.kimchi import mockmodel from wok.control.base import Collection, Resource +from wok.plugins.kimchi import mockmodel + +import utils + + test_server = None model = None host = None diff --git a/plugins/kimchi/tests/test_template.py b/plugins/kimchi/tests/test_template.py index a1a828b..39adeb1 100644 --- a/plugins/kimchi/tests/test_template.py +++ b/plugins/kimchi/tests/test_template.py @@ -21,11 +21,11 @@ import json import os import unittest - from functools import partial from wok.plugins.kimchi.config import READONLY_POOL_TYPE from wok.plugins.kimchi.mockmodel import MockModel + from utils import get_free_port, patch_auth, request, run_server diff --git a/plugins/kimchi/tests/test_vmtemplate.py b/plugins/kimchi/tests/test_vmtemplate.py index 6213900..0bca215 100644 --- a/plugins/kimchi/tests/test_vmtemplate.py +++ b/plugins/kimchi/tests/test_vmtemplate.py @@ -21,10 +21,10 @@ import os import unittest import uuid +from wok.xmlutils.utils import xpath_get_text from wok.plugins.kimchi.osinfo import get_template_default from wok.plugins.kimchi.vmtemplate import VMTemplate -from wok.xmlutils.utils import xpath_get_text class VMTemplateTests(unittest.TestCase): diff --git a/plugins/kimchi/tests/test_yumparser.py b/plugins/kimchi/tests/test_yumparser.py index 8dd16b0..b7d7d89 100644 --- a/plugins/kimchi/tests/test_yumparser.py +++ b/plugins/kimchi/tests/test_yumparser.py @@ -21,12 +21,13 @@ import os import tempfile import unittest -from wok.plugins.kimchi.model import model from wok.rollbackcontext import RollbackContext + +from wok.plugins.kimchi.model import model from wok.plugins.kimchi.yumparser import delete_repo_from_file, get_repo_files from wok.plugins.kimchi.yumparser import get_yum_packages_list_update -from wok.plugins.kimchi.yumparser import get_yum_repositories, write_repo_to_file -from wok.plugins.kimchi.yumparser import YumRepoObject +from wok.plugins.kimchi.yumparser import get_yum_repositories +from wok.plugins.kimchi.yumparser import write_repo_to_file, YumRepoObject TEMP_REPO_FILE = '' diff --git a/plugins/kimchi/tests/utils.py b/plugins/kimchi/tests/utils.py index e224062..aef2c04 100644 --- a/plugins/kimchi/tests/utils.py +++ b/plugins/kimchi/tests/utils.py @@ -28,21 +28,21 @@ import os import socket import ssl import sys -import time import threading +import time import unittest - from contextlib import closing from lxml import etree - -from wok.plugins.kimchi import mockmodel import wok.server from wok.config import config, paths, PluginPaths from wok.auth import User, USER_NAME, USER_GROUPS, USER_ROLES, tabs from wok.exception import NotFoundError, OperationFailed from wok.utils import wok_log +from wok.plugins.kimchi import mockmodel + + _ports = {} # provide missing unittest decorators and API for python 2.6; these decorators diff --git a/plugins/kimchi/vmtemplate.py b/plugins/kimchi/vmtemplate.py index f45f80d..07e70ba 100644 --- a/plugins/kimchi/vmtemplate.py +++ b/plugins/kimchi/vmtemplate.py @@ -22,16 +22,16 @@ import stat import time import urlparse import uuid - from lxml import etree from lxml.builder import E +from wok.exception import InvalidParameter, ImageFormatError, IsoFormatError +from wok.exception import MissingParameter, OperationFailed +from wok.utils import check_url_path + import imageinfo import osinfo -from wok.exception import InvalidParameter, IsoFormatError, MissingParameter -from wok.exception import ImageFormatError, OperationFailed from isoinfo import IsoImage -from wok.utils import check_url_path from utils import pool_name_from_uri from xmlutils.cpu import get_cpu_xml from xmlutils.disk import get_disk_xml diff --git a/plugins/kimchi/xmlutils/disk.py b/plugins/kimchi/xmlutils/disk.py index a451c43..126ce77 100644 --- a/plugins/kimchi/xmlutils/disk.py +++ b/plugins/kimchi/xmlutils/disk.py @@ -23,13 +23,13 @@ import socket import stat import string import urlparse - from lxml import objectify from lxml.builder import E from wok.exception import InvalidParameter, NotFoundError from wok.utils import check_url_path + BUS_TO_DEV_MAP = {'ide': 'hd', 'virtio': 'vd', 'scsi': 'sd'} DEV_TYPE_SRC_ATTR_MAP = {'file': 'file', 'block': 'dev'} diff --git a/plugins/kimchi/xmlutils/graphics.py b/plugins/kimchi/xmlutils/graphics.py index 53cba09..2b4346a 100644 --- a/plugins/kimchi/xmlutils/graphics.py +++ b/plugins/kimchi/xmlutils/graphics.py @@ -18,7 +18,6 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA import lxml.etree as ET - from lxml.builder import E diff --git a/plugins/kimchi/xmlutils/interface.py b/plugins/kimchi/xmlutils/interface.py index 70b63bd..0f3e848 100644 --- a/plugins/kimchi/xmlutils/interface.py +++ b/plugins/kimchi/xmlutils/interface.py @@ -18,7 +18,6 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA import lxml.etree as ET - from distutils.version import LooseVersion from lxml.builder import E diff --git a/plugins/kimchi/xmlutils/network.py b/plugins/kimchi/xmlutils/network.py index e78779c..c73aad9 100644 --- a/plugins/kimchi/xmlutils/network.py +++ b/plugins/kimchi/xmlutils/network.py @@ -19,7 +19,6 @@ import ipaddr import lxml.etree as ET - from lxml.builder import E diff --git a/plugins/kimchi/yumparser.py b/plugins/kimchi/yumparser.py index 8151f86..654b4b2 100644 --- a/plugins/kimchi/yumparser.py +++ b/plugins/kimchi/yumparser.py @@ -16,8 +16,8 @@ # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -import subprocess +import subprocess from os import listdir from os.path import isfile, splitext diff --git a/plugins/sample/__init__.py b/plugins/sample/__init__.py index a2cfbf2..a3a8f05 100644 --- a/plugins/sample/__init__.py +++ b/plugins/sample/__init__.py @@ -19,14 +19,14 @@ import json import os - - from cherrypy import expose from wok.config import PluginPaths from wok.control.base import Collection, Resource from wok.root import WokRoot + + from plugins.sample.i18n import messages from plugins.sample.model import Model diff --git a/plugins/sample/model.py b/plugins/sample/model.py index 8edcc85..4ada648 100644 --- a/plugins/sample/model.py +++ b/plugins/sample/model.py @@ -17,8 +17,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -from wok.exception import InvalidOperation, NotFoundError from wok.basemodel import BaseModel +from wok.exception import InvalidOperation, NotFoundError class CirclesModel(object): diff --git a/src/wok/config.py.in b/src/wok/config.py.in index 2935c40..ab0f83b 100644 --- a/src/wok/config.py.in +++ b/src/wok/config.py.in @@ -19,8 +19,6 @@ # import os - - from ConfigParser import SafeConfigParser diff --git a/src/wok/control/base.py b/src/wok/control/base.py index 65a6fee..5242f51 100644 --- a/src/wok/control/base.py +++ b/src/wok/control/base.py @@ -28,8 +28,8 @@ from wok.control.utils import get_class_name, internal_redirect, model_fn from wok.control.utils import parse_request, validate_method from wok.control.utils import validate_params from wok.exception import InvalidOperation, InvalidParameter -from wok.exception import WokException, MissingParameter, NotFoundError -from wok.exception import OperationFailed, UnauthorizedError +from wok.exception import MissingParameter, NotFoundError +from wok.exception import OperationFailed, UnauthorizedError, WokException class Resource(object): diff --git a/src/wok/control/utils.py b/src/wok/control/utils.py index d617dcd..496320c 100644 --- a/src/wok/control/utils.py +++ b/src/wok/control/utils.py @@ -20,8 +20,6 @@ import cherrypy import json - - from jsonschema import Draft3Validator, ValidationError, FormatChecker diff --git a/src/wok/objectstore.py b/src/wok/objectstore.py index 87a30d1..107b568 100644 --- a/src/wok/objectstore.py +++ b/src/wok/objectstore.py @@ -21,7 +21,6 @@ import sqlite3 import threading import traceback - try: from collections import OrderedDict except ImportError: diff --git a/src/wok/root.py b/src/wok/root.py index 35620c7..3a86a74 100644 --- a/src/wok/root.py +++ b/src/wok/root.py @@ -20,9 +20,8 @@ import cherrypy import json import os - - from distutils.version import LooseVersion + from wok import auth from wok import template from wok.i18n import messages diff --git a/src/wok/server.py b/src/wok/server.py index 0a836a2..5b48049 100644 --- a/src/wok/server.py +++ b/src/wok/server.py @@ -25,9 +25,9 @@ import os from wok import auth from wok import config -from wok.model import model from wok.config import WokConfig, PluginConfig from wok.control import sub_nodes +from wok.model import model from wok.proxy import start_proxy, terminate_proxy from wok.root import WokRoot from wok.utils import get_enabled_plugins, import_class diff --git a/src/wok/sslcert.py b/src/wok/sslcert.py index e772dc8..6b64796 100644 --- a/src/wok/sslcert.py +++ b/src/wok/sslcert.py @@ -22,8 +22,6 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA import time - - from M2Crypto import ASN1, EVP, RSA, X509 diff --git a/src/wok/template.py b/src/wok/template.py index 323bf55..c743f73 100644 --- a/src/wok/template.py +++ b/src/wok/template.py @@ -20,11 +20,11 @@ import cherrypy import errno import json +from Cheetah.Template import Template +from glob import iglob from wok.config import paths -from Cheetah.Template import Template -from glob import iglob def get_lang(): diff --git a/src/wok/utils.py b/src/wok/utils.py index fa379d4..a5083af 100644 --- a/src/wok/utils.py +++ b/src/wok/utils.py @@ -29,11 +29,11 @@ import subprocess import traceback import urllib2 import xml.etree.ElementTree as ET +from cherrypy.lib.reprconf import Parser from httplib import HTTPConnection, HTTPException from multiprocessing import Process, Queue from threading import Timer from urlparse import urlparse -from cherrypy.lib.reprconf import Parser from wok.asynctask import AsyncTask from wok.config import paths, PluginPaths diff --git a/src/wok/vnc.py b/src/wok/vnc.py index 3b6a80b..2532449 100644 --- a/src/wok/vnc.py +++ b/src/wok/vnc.py @@ -21,7 +21,6 @@ import base64 import errno import os - from multiprocessing import Process from websockify import WebSocketProxy -- 1.7.1
participants (1)
-
Lucio Correia