]>
git.proxmox.com Git - pve-esxi-import-tools.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Wolfgang Bumiller [Tue, 19 Mar 2024 14:11:37 +0000 (15:11 +0100)]
make datastores discoverable
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Thomas Lamprecht [Tue, 12 Mar 2024 15:00:57 +0000 (16:00 +0100)]
bump version to 0.2.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 12 Mar 2024 15:14:31 +0000 (16:14 +0100)]
Revert "buildsys: add d/rustup_home, register force system toolchain"
This reverts commit
826e60c5c59f05cc3a0ac033a66f16d0f46ef89a , it's
introduction of an absolute link to /usr breaks source directory
boundary, failing dpkg-source.
Devs that need to have rustup and related binaries earlier in $PATH
than the system ones can just create a system toolchain via something
like `rustup toolchain link system /usr` and be done, it's their
custom setup/environment that breaks build, so default packaging
should not have to care, at least not in a way that breaks default
build in clean environments (like sbuild).
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 12 Mar 2024 14:59:23 +0000 (15:59 +0100)]
rename --insecure option to --skip-cert-verification
a bit more telling about what it actually does.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 12 Mar 2024 15:05:00 +0000 (16:05 +0100)]
buildsys: clean-up more
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Wolfgang Bumiller [Tue, 12 Mar 2024 12:46:53 +0000 (13:46 +0100)]
bump version to 0.1.2
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 12 Mar 2024 12:45:38 +0000 (13:45 +0100)]
esxi-folder-fuse: add --insecure option
to disable certificate verification, and verify certificates by
default
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 12 Mar 2024 12:29:58 +0000 (13:29 +0100)]
listvms.py: add --insecure parameter, verify cert by default
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 12 Mar 2024 08:17:12 +0000 (09:17 +0100)]
bump version to 0.1.1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 11 Mar 2024 12:46:08 +0000 (13:46 +0100)]
listvms.py: include power status in vm info
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 11 Mar 2024 10:12:11 +0000 (11:12 +0100)]
listvms.py: don't iterate through vms twice, add disk info
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 11 Mar 2024 10:11:44 +0000 (11:11 +0100)]
listvms.py: add function to query disk info for vms
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 11 Mar 2024 10:11:11 +0000 (11:11 +0100)]
listvms.py: factor out datastore/path file name parsing
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 11 Mar 2024 12:22:15 +0000 (13:22 +0100)]
buildsys: add d/rustup_home, register force system toolchain
and set RUSTUP_HOME in d/rules, so building also actually works when
rustup is in $PATH
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Thomas Lamprecht [Fri, 8 Mar 2024 14:17:10 +0000 (15:17 +0100)]
bump version to 0.1.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sun, 10 Mar 2024 15:10:19 +0000 (16:10 +0100)]
buildsys: drop odd cargo/rustc overrides
those should not be required for a functioning build..
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sun, 10 Mar 2024 14:45:04 +0000 (15:45 +0100)]
buildsys: allow to generate packages artefacts at the top-level
Allow building packages with their output being written at the
top-level, just like basically all our other repos (that contain a
hand-full of source packages at max), and make that the default.
If one want to have a double directory hierarchy for the build they
can just call:
make OUTPUT_DIR=build/ deb
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sun, 10 Mar 2024 14:39:55 +0000 (15:39 +0100)]
packagin: ship script and tool in arch-agnostic /usr/libexec
no need to use the architecture triple, not like we plan to support
co-installable multi-arch anyway.
Rather just use the arch-agnostic /usr/libexec dir, which the FHS
specifies for:
> Directory contains binaries for internal use only and they are not
> meant to be executed directly by users shell or scripts.
Which pretty much is what this tools are made for, in our use case
anyway.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 8 Mar 2024 14:57:38 +0000 (15:57 +0100)]
d/control: avoid rust- prefix for source package name
not using debcargo so we do not need to adhere to it's quirks
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 8 Mar 2024 14:56:06 +0000 (15:56 +0100)]
buildsys: avoid dcmd, just use already defined variables
makes it easier to copy this from a build host to an upload host by
allowing to see the full command when running `make -n upload`
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 8 Mar 2024 14:54:36 +0000 (15:54 +0100)]
buildsys: add convenience sbuild target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 8 Mar 2024 14:54:14 +0000 (15:54 +0100)]
buildsys: track dbgsym package
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 8 Mar 2024 14:53:11 +0000 (15:53 +0100)]
buildsys: use variables for output and build directory
the target directories are still named in a slightly confusing way,
but don't care about that for now.
If it's really a problem we could use output/ for the, well, output
directory variable.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 8 Mar 2024 14:51:35 +0000 (15:51 +0100)]
buildsys: DSC has no arch
it's the source package which normally is arch agnostic
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 8 Mar 2024 14:49:29 +0000 (15:49 +0100)]
d/source: mark as native package
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Wolfgang Bumiller [Tue, 5 Mar 2024 14:08:11 +0000 (15:08 +0100)]
add upload target
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 5 Mar 2024 13:56:58 +0000 (14:56 +0100)]
packaging updates
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 29 Feb 2024 11:01:11 +0000 (12:01 +0100)]
more eof handling fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 26 Feb 2024 14:39:39 +0000 (15:39 +0100)]
lru rotation fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 21 Feb 2024 14:44:12 +0000 (15:44 +0100)]
deal with file size changes during reading
We cache file sizes, but if the vmx config files change they can of
course very well also change their size, in which case we might get an
http 416 Range Not Satisfiable response. Let's consider the File
handle to be at EOF at that point.
additionally, partial reads return a `content-range` header which
includes the file's size, so use this to keep track of it
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 21 Feb 2024 12:54:22 +0000 (13:54 +0100)]
drop file caches on close
makes reading updated vmx files easier
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 15 Feb 2024 13:02:45 +0000 (14:02 +0100)]
bump d/control
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 15 Feb 2024 13:02:17 +0000 (14:02 +0100)]
switch from env_logger to syslog
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 15 Feb 2024 12:41:10 +0000 (13:41 +0100)]
add --ready-fd parameter
a simple way to signal readiness - we just close the file descriptor
when we start serving fuse requests
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 15 Feb 2024 12:06:30 +0000 (13:06 +0100)]
add options to drop privileges
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 15 Feb 2024 09:34:53 +0000 (10:34 +0100)]
listvms.py: make connection errors less noisy
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 15 Feb 2024 09:16:23 +0000 (10:16 +0100)]
d/control: fixup python3 deps
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 15 Feb 2024 09:11:20 +0000 (10:11 +0100)]
buildsys improvements
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 15 Feb 2024 09:07:49 +0000 (10:07 +0100)]
create build/rust-toolchain file when packaging
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 15 Feb 2024 09:06:54 +0000 (10:06 +0100)]
install python code outside the multiarch dir
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 15 Feb 2024 09:05:05 +0000 (10:05 +0100)]
add shebang to listvms.py, set mode to 0755
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 15:31:42 +0000 (16:31 +0100)]
add basic packaging
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 15:35:45 +0000 (16:35 +0100)]
remove example manifest.json
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 15:22:35 +0000 (16:22 +0100)]
cleanup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 15:22:00 +0000 (16:22 +0100)]
change base-url parameter to a hostname parameter
for better compatibility with the python thing
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 15:20:57 +0000 (16:20 +0100)]
lsitvms.py: read password from a file instead of env var
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 15:08:25 +0000 (16:08 +0100)]
import listvms.py
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Originally-by: Hannes Laimer <h.laimer@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 15:06:12 +0000 (16:06 +0100)]
improve usage message
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 15:05:16 +0000 (16:05 +0100)]
clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 15:04:14 +0000 (16:04 +0100)]
drop all the unused code
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 15:04:09 +0000 (16:04 +0100)]
add --password-file parameter
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 14:57:07 +0000 (15:57 +0100)]
minor cleanups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 14:56:13 +0000 (15:56 +0100)]
delete example Test.vmx file
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 11:47:25 +0000 (12:47 +0100)]
require proxmox-fuse 0.1.6
otherwise there's some UB as the bitfields were padded wrong in
rust...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 11:46:50 +0000 (12:46 +0100)]
turn cache into an LRU cache
so it has a useful performance
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 08:44:44 +0000 (09:44 +0100)]
allow passing mount options
so we can use `-o allow_root`
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 14 Feb 2024 08:00:54 +0000 (09:00 +0100)]
parameter cleanup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 13 Feb 2024 13:53:33 +0000 (14:53 +0100)]
doc comments
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 13 Feb 2024 13:47:22 +0000 (14:47 +0100)]
default to 32*8M cache
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 13 Feb 2024 13:47:14 +0000 (14:47 +0100)]
use proxmox-fuse 0.1.5
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 13 Feb 2024 11:13:45 +0000 (12:13 +0100)]
dc parameter is dcPath, not dcName
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 13 Feb 2024 10:58:44 +0000 (11:58 +0100)]
update manifest format
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 13 Feb 2024 10:44:12 +0000 (11:44 +0100)]
more file discovery fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 13 Feb 2024 10:36:13 +0000 (11:36 +0100)]
fixup some messaging
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 13 Feb 2024 10:06:29 +0000 (11:06 +0100)]
switch to discovering files via a json manifest
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 13 Feb 2024 09:28:38 +0000 (10:28 +0100)]
declare manifest file format
this will be used to map paths to their datastores within a datacenter
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 12 Feb 2024 13:37:30 +0000 (14:37 +0100)]
overlapping reads: deal with eof
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 12 Feb 2024 13:14:18 +0000 (14:14 +0100)]
cache: don't drop current block...
that would be quite pointless :-)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 12 Feb 2024 13:13:26 +0000 (14:13 +0100)]
implement vectored reads for non-direct i/o tests
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 12 Feb 2024 12:51:14 +0000 (13:51 +0100)]
downgrade cache drop message to debug level
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 12 Feb 2024 12:43:43 +0000 (13:43 +0100)]
argument parsing
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 12 Feb 2024 12:21:08 +0000 (13:21 +0100)]
cleanup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 12 Feb 2024 10:58:53 +0000 (11:58 +0100)]
handle open/release
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 12 Feb 2024 10:17:07 +0000 (11:17 +0100)]
work on readahead caching
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 12 Feb 2024 09:08:30 +0000 (10:08 +0100)]
simply retry requests when rate limited
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 12 Feb 2024 09:06:28 +0000 (10:06 +0100)]
refactor http request creation for retries
Request and its Builder don't implement Clone currently, so we need to
rebuild them completely...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 9 Feb 2024 15:13:24 +0000 (16:13 +0100)]
okay, we do need to deal with rate limiting...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 9 Feb 2024 15:03:28 +0000 (16:03 +0100)]
fix dir reading, switch to readdirplus
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 9 Feb 2024 14:53:06 +0000 (15:53 +0100)]
general fs wip
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 9 Feb 2024 13:27:04 +0000 (14:27 +0100)]
restructuring
Let's have the datacenter and datastore be the first 2 directories
with the files nested under them, we then also need directory
handling, since we can create arbitrary directories on those
datastores and put vm disks anywhere.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 9 Feb 2024 12:59:57 +0000 (13:59 +0100)]
update to a more complex Test.vmx file
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 9 Feb 2024 10:07:38 +0000 (11:07 +0100)]
logging
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 9 Feb 2024 09:52:51 +0000 (10:52 +0100)]
work on file system
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 9 Feb 2024 09:31:55 +0000 (10:31 +0100)]
refactoring
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 9 Feb 2024 08:52:30 +0000 (09:52 +0100)]
add EsxiFile implementing AsyncRead
The file handle will be used to as "inodes" when the kernel does a
"lookup". The AsyncRead impl is so that we can use a BufReader with it
without accidentally downloading a GB-sized vmdk when scanning them
for whether they're a descriptive text or a blob.
Although we might not even need to scan them if qemu/pve don't need to
actually list the directory contents but rather just go from whatever
the vmdks contain anyway?
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 8 Feb 2024 16:07:31 +0000 (17:07 +0100)]
prepare fs module
this will parse the vmdks and collect all files to serve
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 8 Feb 2024 16:00:42 +0000 (17:00 +0100)]
implement downloading by range
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 8 Feb 2024 15:48:16 +0000 (16:48 +0100)]
vmx: use correct disk kind match group
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 8 Feb 2024 15:46:38 +0000 (16:46 +0100)]
get parameters from command line
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 8 Feb 2024 15:20:24 +0000 (16:20 +0100)]
import Test.vmx for reference when working on config parser
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 8 Feb 2024 13:24:10 +0000 (14:24 +0100)]
import
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>