summaryrefslogtreecommitdiff
path: root/kpov_judge/create_disk_images.py
AgeCommit message (Collapse)Author
2019-02-21create_disk_images: create standalone VMDK imagesTimotej Lazar
They are useful in both VirtualBox and VMware. VDI is horrible and should die and also it is fat.
2019-02-21create_disk_images: modify image filenamesTimotej Lazar
Include computer name in filename for each disk and use a shorter hash placed immediately after task name. The hash is now based only on student ID and class_name, so it is always the same for each student. This should make images easier to locate in a large directory.
2019-02-19Support qcow2 formatTimotej Lazar
Exactly the same as vmdk.
2019-02-16Create disk images in multiple formatsTimotej Lazar
Refactor some code in create_disk_images.oy into a »prepare_disks« function that creates disk images in the given format for one task. Store paths to images in multiple formats in the database and update the front-end.
2019-02-12create_disk_images: add diskless computers to db.student_computersTimotej Lazar
Using defaultdict for all_disks resulted in diskless computers missing from DB. By iterating over keys in computers instead of all_disks computers with no disk are also added (and later shown on task page).
2018-10-11Use backing files in created disk imagesTimotej Lazar
2018-10-10Use a single parameter for DB connectionTimotej Lazar
Could not get pymongo to work otherwise.
2018-10-07Remove coding: linesTimotej Lazar
Python 3 source is utf-8 by default.
2018-10-07Rename kpov_random_helpers to kpov_utilTimotej Lazar
2018-10-05Pass globals() to exec callsTimotej Lazar
2018-09-27Fix exec() for Python 3Timotej Lazar
2018-09-26Run 2to3Timotej Lazar
Some stuff is broken now.
2018-03-29Fix some more instances of missing class_idgasperfele@fri1.uni-lj.si
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@424 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
2017-10-23Pripravljen pristopni 2017gasperfele@fri1.uni-lj.si
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@423 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
2016-12-18commit before fixing the snmp_agent_uptime taskgasperfele@fri1.uni-lj.si
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@369 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
2016-10-01added a global_params parameter to prepare_disks so that the task_name, ↵gasperfele@fri1.uni-lj.si
username and task_url are pre-entered on the arbiters git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@351 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
2016-10-01Update create_disk_image so it works with the current pymongogasperfele@fri1.uni-lj.si
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@350 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
2015-03-31Fixed generation of disk imagesgasperfele@fri1.uni-lj.si
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@294 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
2015-01-29Started writing script for testing prepare_disks.pygasperfele@fri1.uni-lj.si
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@251 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
2015-01-29Added most of the required functions for faking guestfs over sshgasperfele@fri1.uni-lj.si
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@250 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
2015-01-13Fixed add_task, started work on create_disk_imagegasperfele@fri1.uni-lj.si
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@182 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
2014-10-20Initial commitgasperfele@fri1.uni-lj.si
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@1 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414