Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
c1f67fe1
Commit
c1f67fe1
authored
Jan 29, 2013
by
Ilias Tsitsimpis
Browse files
Remove guestfs
parent
a0d9eff7
Changes
2
Hide whitespace changes
Inline
Side-by-side
snf-tools/setup.py
View file @
c1f67fe1
...
...
@@ -73,7 +73,6 @@ INSTALL_REQUIRES = [
"python-prctl"
,
"paramiko"
,
"vncauthproxy"
,
"guestfs"
,
"kamaki >= 0.6.2"
]
setup
(
...
...
snf-tools/synnefo_tools/burnin.py
View file @
c1f67fe1
...
...
@@ -49,7 +49,6 @@ import socket
import
sys
import
time
import
tempfile
import
guestfs
from
base64
import
b64encode
from
IPy
import
IP
from
multiprocessing
import
Process
,
Queue
...
...
@@ -279,20 +278,6 @@ class ImagesTestCase(unittest.TestCase):
with
open
(
temp_file
,
"wb+"
)
as
f
:
pithos_client
.
download_object
(
image_location
[
3
],
f
)
log
.
info
(
"Mount downloaded image and inject personality file"
)
# XXX: The image is shrinked to the size of the
# underlying device. To avoid increasing it's size
# delete the `.aptitude' directory.
g
=
guestfs
.
GuestFS
()
g
.
add_drive_opts
(
temp_file
,
format
=
"raw"
,
readonly
=
0
)
g
.
launch
()
partitions
=
g
.
list_partitions
()
g
.
mount
(
partitions
[
0
],
"/"
)
g
.
rm_rf
(
"/root/.aptitude"
)
g
.
write
(
"/root/temp.txt"
,
"This is a personality file."
)
g
.
umount_all
()
g
.
close
()
def
test_007_upload_image
(
self
):
"""Upload and register image"""
temp_file
=
os
.
path
.
join
(
self
.
temp_dir
,
self
.
temp_image_name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment