Ben Steffen [Sat, 21 Dec 2019 01:29:20 +0000 (20:29 -0500)]
Refactor authz
Ben Steffen [Mon, 9 Dec 2019 21:24:25 +0000 (16:24 -0500)]
Remove now unused dir
Ben Steffen [Mon, 9 Dec 2019 21:22:25 +0000 (16:22 -0500)]
Remove postinst and triggers
Packages should declare interest in invirt-reload and do whatever they need
to do in their own postinst scripts
Ben Steffen [Mon, 9 Dec 2019 04:08:25 +0000 (23:08 -0500)]
Remove helper scripts for init files which will no longer exist
Ben Steffen [Sat, 7 Dec 2019 21:52:07 +0000 (16:52 -0500)]
Normalize setup.py
Ben Steffen [Sat, 7 Dec 2019 21:17:05 +0000 (16:17 -0500)]
Clean up debian files
Ben Steffen [Sat, 7 Dec 2019 20:25:46 +0000 (15:25 -0500)]
Update setup.py
Ben Steffen [Sat, 7 Dec 2019 20:24:44 +0000 (15:24 -0500)]
Update debian files in response to invirt-reload being removed
Ben Steffen [Sat, 7 Dec 2019 19:43:14 +0000 (14:43 -0500)]
Use noawait triggers
Ben Steffen [Sat, 7 Dec 2019 19:24:32 +0000 (14:24 -0500)]
Update debian files to fix lintian errors and build the package in what I hope is the kosher way
Ben Steffen [Sat, 7 Dec 2019 19:22:12 +0000 (14:22 -0500)]
Update Python3 shebang (again...) to what Debian people say is right and proper
Ben Steffen [Sat, 7 Dec 2019 19:19:36 +0000 (14:19 -0500)]
Since only one binary package is installed, remove unnecessary package name from some debian files
Also remove invirt-reload script, activate trigger invirt-reload instead
Ben Steffen [Tue, 3 Dec 2019 03:20:27 +0000 (22:20 -0500)]
Use python3:Depends instead of python:Depends
Ben Steffen [Tue, 3 Dec 2019 03:01:11 +0000 (22:01 -0500)]
Update compat version and debathena precise->bionic, fix control file not specifying python3 version
Ben Steffen [Tue, 26 Nov 2019 22:23:10 +0000 (17:23 -0500)]
Update debian files
Ben Steffen [Tue, 26 Nov 2019 22:14:27 +0000 (17:14 -0500)]
Formatting fixes
Ben Steffen [Tue, 26 Nov 2019 21:57:18 +0000 (16:57 -0500)]
Make authz use new config interface
Ben Steffen [Tue, 26 Nov 2019 21:54:12 +0000 (16:54 -0500)]
Fix formatting
Ben Steffen [Tue, 26 Nov 2019 21:50:58 +0000 (16:50 -0500)]
Remove dicts and structs globals with config, which is a plain dict, and streamline json function usage
Ben Steffen [Tue, 26 Nov 2019 21:45:33 +0000 (16:45 -0500)]
Small formatting fix
Ben Steffen [Tue, 26 Nov 2019 21:44:38 +0000 (16:44 -0500)]
Use yield from instead of looping and yielding
Ben Steffen [Tue, 26 Nov 2019 21:12:19 +0000 (16:12 -0500)]
Rename const variables in all caps
src_path -> SRC_PATH
src_dirpath -> SRC_DIRPATH
cache_path -> CACHE_PATH
lock_path -> LOCK_PATH
Ben Steffen [Tue, 26 Nov 2019 21:10:54 +0000 (16:10 -0500)]
Fix formatting
Ben Steffen [Tue, 26 Nov 2019 21:10:01 +0000 (16:10 -0500)]
Don't do anything fancy and just use yaml.CSafeLoader
Ben Steffen [Tue, 26 Nov 2019 21:09:15 +0000 (16:09 -0500)]
Use regular import instead of wildcard import
Ben Steffen [Tue, 26 Nov 2019 19:52:21 +0000 (14:52 -0500)]
Fix formatting of docstrings
Ben Steffen [Tue, 26 Nov 2019 19:51:08 +0000 (14:51 -0500)]
Reorder imports
Ben Steffen [Tue, 26 Nov 2019 19:49:54 +0000 (14:49 -0500)]
Don't use contextlib where it is no longer necessary
Ben Steffen [Tue, 26 Nov 2019 19:49:07 +0000 (14:49 -0500)]
Remove safestructs which wasn't being used anywhere
Ben Steffen [Tue, 26 Nov 2019 19:47:46 +0000 (14:47 -0500)]
Use full names for os.* things
Ben Steffen [Tue, 26 Nov 2019 19:40:09 +0000 (14:40 -0500)]
Fix function call to use full name
Ben Steffen [Tue, 26 Nov 2019 19:39:57 +0000 (14:39 -0500)]
Fix whitespace and argument name
Ben Steffen [Tue, 26 Nov 2019 19:38:24 +0000 (14:38 -0500)]
Rename checkKinit to check_kinit and use subprocess.run instead of Popen
Ben Steffen [Tue, 26 Nov 2019 19:37:16 +0000 (14:37 -0500)]
Update imports
Ben Steffen [Tue, 26 Nov 2019 19:26:46 +0000 (14:26 -0500)]
Remove duplicated information
Ben Steffen [Tue, 26 Nov 2019 19:23:55 +0000 (14:23 -0500)]
Update imports and rename lock_file to open_locked and make it more idiomatic
Ben Steffen [Tue, 26 Nov 2019 19:22:34 +0000 (14:22 -0500)]
Remove captureOutput (use subprocess.run instead)
Ben Steffen [Tue, 26 Nov 2019 19:20:36 +0000 (14:20 -0500)]
Remove struct
The advanced features of struct were not being used anywhere and accessing members
using just a dot can be problematic (e.g. a key named "items" would break dict.items())
Ben Steffen [Tue, 26 Nov 2019 17:12:24 +0000 (12:12 -0500)]
Remove spurious newline
Ben Steffen [Tue, 26 Nov 2019 17:08:56 +0000 (12:08 -0500)]
Rename InvirtException to more descriptive PathResolutionException
Ben Steffen [Tue, 26 Nov 2019 05:40:07 +0000 (00:40 -0500)]
Let exceptions return nonzero error codes
Ben Steffen [Tue, 26 Nov 2019 05:39:45 +0000 (00:39 -0500)]
Make --ls option branch more idiomatic
Ben Steffen [Tue, 26 Nov 2019 05:39:02 +0000 (00:39 -0500)]
Make path parsing more idiomatic
Ben Steffen [Tue, 26 Nov 2019 05:37:05 +0000 (00:37 -0500)]
Switch from optparse to argparse
Ben Steffen [Tue, 26 Nov 2019 05:35:44 +0000 (00:35 -0500)]
Rename invirt_exception to InvirtException
Ben Steffen [Tue, 26 Nov 2019 05:34:01 +0000 (00:34 -0500)]
Clean up imports
Ben Steffen [Tue, 26 Nov 2019 05:30:49 +0000 (00:30 -0500)]
Switch from optparse to argparse and clean up a bit
Ben Steffen [Tue, 26 Nov 2019 05:27:17 +0000 (00:27 -0500)]
Move all imports to top of file
Ben Steffen [Tue, 26 Nov 2019 05:22:56 +0000 (00:22 -0500)]
Remove __all__ assignment that doesn't do anything
Ben Steffen [Tue, 26 Nov 2019 05:21:53 +0000 (00:21 -0500)]
Format function names according to Pylint
Ben Steffen [Tue, 26 Nov 2019 05:21:03 +0000 (00:21 -0500)]
Remove __future__ imports
Ben Steffen [Tue, 26 Nov 2019 05:18:39 +0000 (00:18 -0500)]
Normalize module docstring format
Ben Steffen [Tue, 26 Nov 2019 05:17:20 +0000 (00:17 -0500)]
Switch shebang to python3
Ben Steffen [Mon, 25 Nov 2019 22:50:19 +0000 (17:50 -0500)]
Run python-modernize fixers
Ben Steffen [Mon, 25 Nov 2019 22:46:20 +0000 (17:46 -0500)]
Remove vim modelines
Steven Valdez [Sat, 20 Jul 2013 20:25:57 +0000 (16:25 -0400)]
Fixed version for prod version.
Alexander Chernyakhovsky [Fri, 31 May 2013 05:26:48 +0000 (01:26 -0400)]
Update packaging to dh7
Adam Glasgall [Thu, 21 Mar 2013 06:09:15 +0000 (23:09 -0700)]
use debathena precise, not hardy
Adam Glasgall [Thu, 21 Mar 2013 05:49:53 +0000 (22:49 -0700)]
drop python-json from Depends
Adam Glasgall [Thu, 21 Mar 2013 05:30:54 +0000 (22:30 -0700)]
Port packaging to dh_python2
Quentin Smith [Sat, 19 Mar 2011 21:26:21 +0000 (17:26 -0400)]
Handle remctl results that are larger than a single pipe buffer
Greg Brockman [Mon, 23 Aug 2010 15:40:56 +0000 (11:40 -0400)]
Depend on package resources
Reported-by: Andrew Farrell <afarrell@mit.edu>
Greg Brockman [Sun, 11 Jul 2010 22:49:14 +0000 (18:49 -0400)]
Updated changelog
Greg Brockman [Tue, 6 Jul 2010 04:09:08 +0000 (00:09 -0400)]
Improvements to captureOutput
svn path=/trunk/packages/invirt-base/; revision=3029
Evan Broder [Fri, 5 Feb 2010 16:20:58 +0000 (11:20 -0500)]
Select an authz module using setuptools' entry points mechainsm.
Instead of having each authz package install an invirt.authz module,
have them install modules under their own namespace.
In their setup.py, they should indicate that their authz module
provides a unique name within the invirt.authz entry point group.
The new invirt.authz module (part of invirt-base) then gets a name
from the configuration and uses that to find the module.
svn path=/trunk/packages/invirt-base/; revision=2989
Greg Brockman [Mon, 1 Feb 2010 03:48:26 +0000 (22:48 -0500)]
Added an invirt mako render script.
svn path=/trunk/packages/invirt-base/; revision=2977
Evan Broder [Thu, 28 Jan 2010 05:24:00 +0000 (00:24 -0500)]
Fix invirt-base's handling of triggers.
svn path=/trunk/packages/invirt-base/; revision=2966
Evan Broder [Thu, 28 Jan 2010 02:53:16 +0000 (21:53 -0500)]
Add code to invirt-reload to de-duplicate multiple invocations. (LP: #439426)
This uses the dpkg triggers mechanism to de-duplicate multiple
invocations of invirt-reload over the course of a single dpkg run.
The code is largely lifted from Ubuntu's update-initramfs.
svn path=/trunk/packages/invirt-base/; revision=2941
Greg Brockman [Fri, 22 Jan 2010 14:45:09 +0000 (09:45 -0500)]
Removed invirt-web-afs-apache
svn path=/trunk/packages/invirt-base/; revision=2920
Evan Broder [Mon, 21 Dec 2009 22:30:11 +0000 (17:30 -0500)]
Have authz providers use an invirt.authz module.
xvm-authz-locker now includes an invirt.authz module instead of
xvm.authz.locker. All authz providers conflict with each other, and
provide invirt-authz.
svn path=/trunk/packages/invirt-base/; revision=2766
Greg Brockman [Thu, 17 Dec 2009 03:50:16 +0000 (22:50 -0500)]
Reverted r2613 and started a new hvirt branch on the invirt-base pkg
svn path=/trunk/packages/invirt-base/; revision=2614
Greg Brockman [Thu, 17 Dec 2009 01:19:15 +0000 (20:19 -0500)]
Removed debathena from sources.list.d; deleted the rest of the /etc/apt filetree
svn path=/trunk/packages/invirt-base/; revision=2613
Evan Broder [Wed, 16 Dec 2009 03:27:44 +0000 (22:27 -0500)]
Stop installing a sources.list.d file for XVM's apt repository.
svn path=/trunk/packages/invirt-base/; revision=2604
Evan Broder [Wed, 16 Dec 2009 03:10:20 +0000 (22:10 -0500)]
Move XVM's locker authorization code into a separate xvm-authz-locker
package (and corresponding xvm.authz.locker Python package).
This makes it possible to install invirt-base without needing the
authz code installed as well, and also separates some very
XVM-specific logic from the Invirt packages.
svn path=/trunk/packages/invirt-base/; revision=2602
Evan Broder [Tue, 15 Dec 2009 01:50:43 +0000 (20:50 -0500)]
Subclass invirt.common.struct from dict, instead of rolling our own
almost-dict thing.
svn path=/trunk/packages/invirt-base/; revision=2592
Evan Broder [Tue, 8 Dec 2009 02:33:43 +0000 (21:33 -0500)]
Store AFS cell configuration at authz.afs.cells instead of just
authz.cells, to be more clear about purpose.
svn path=/trunk/packages/invirt-base/; revision=2590
Evan Broder [Sun, 29 Nov 2009 13:48:47 +0000 (08:48 -0500)]
Take advantage of the newly added symbolic names for PTS connection
encryption levels.
svn path=/trunk/packages/invirt-base/; revision=2572
Evan Broder [Sun, 29 Nov 2009 13:48:43 +0000 (08:48 -0500)]
Rephrase the invirt.authz.locker._authenticate docstring for clarity.
(Based on comments from price)
svn path=/trunk/packages/invirt-base/; revision=2571
Evan Broder [Mon, 23 Nov 2009 06:37:40 +0000 (01:37 -0500)]
In invirt.authz.locker, deal with getting tokens and
authenticating/encrypting connections when necessary.
svn path=/trunk/packages/invirt-base/; revision=2562
Evan Broder [Mon, 23 Nov 2009 04:17:31 +0000 (23:17 -0500)]
Update invirt-base's setup.py to deal with invirt.authz module.
svn path=/trunk/packages/invirt-base/; revision=2561
Evan Broder [Mon, 23 Nov 2009 04:14:52 +0000 (23:14 -0500)]
Add a magic invirt.authz.mech module that loads whatever authz.mech is
set to in the configuration.
svn path=/trunk/packages/invirt-base/; revision=2560
Evan Broder [Mon, 23 Nov 2009 04:14:51 +0000 (23:14 -0500)]
Add a invirt.authz.locker module to invirt-base for XVM-style
authorization.
svn path=/trunk/packages/invirt-base/; revision=2559
Evan Broder [Sun, 22 Nov 2009 21:56:15 +0000 (16:56 -0500)]
Add a changelog entry to invirt-base for r2551 (Add an __iter__ method
to invirt.common.struct.)
svn path=/trunk/packages/invirt-base/; revision=2553
Evan Broder [Sun, 22 Nov 2009 21:07:29 +0000 (16:07 -0500)]
Add an __iter__ method to invirt.common.struct.
svn path=/trunk/packages/invirt-base/; revision=2551
Evan Broder [Sun, 22 Nov 2009 21:07:11 +0000 (16:07 -0500)]
In invirt-base:
* Add a captureOutput function to invirt.common as a convenient wrapper
around subprocess.Popen.
svn path=/trunk/packages/invirt-base/; revision=2541
Evan Broder [Sun, 26 Apr 2009 15:41:45 +0000 (11:41 -0400)]
In invirt-base:
* Add the invirt-system component to the sources.list.
svn path=/trunk/packages/invirt-base/; revision=2304
Evan Broder [Tue, 17 Feb 2009 08:45:26 +0000 (03:45 -0500)]
Move invirt-setquotas into invirt-database.
While we're at it, clean up the mechanism to list scripts in a Python
package.
svn path=/trunk/packages/invirt-base/; revision=2151
Peter Iannucci [Tue, 17 Feb 2009 08:05:33 +0000 (03:05 -0500)]
Yay yasb
svn path=/trunk/packages/invirt-base/; revision=2148
Peter Iannucci [Tue, 17 Feb 2009 07:59:54 +0000 (02:59 -0500)]
Changelogs
svn path=/trunk/packages/invirt-base/; revision=2145
Peter Iannucci [Tue, 17 Feb 2009 07:57:42 +0000 (02:57 -0500)]
Fixed last yasb hopefully
svn path=/trunk/packages/invirt-base/; revision=2144
Peter Iannucci [Tue, 17 Feb 2009 07:16:12 +0000 (02:16 -0500)]
Made some changes requested by Broder.
svn path=/trunk/packages/invirt-base/; revision=2135
Peter Iannucci [Tue, 17 Feb 2009 06:54:26 +0000 (01:54 -0500)]
Added all the other quotas for great win.
svn path=/trunk/packages/invirt-base/; revision=2134
Peter Iannucci [Tue, 17 Feb 2009 04:52:01 +0000 (23:52 -0500)]
RAM quotas at remctl; RAM quota exception script, table, and usage in -web and -remote-create; /etc/nocreate support
svn path=/trunk/packages/invirt-base/; revision=2132
Evan Broder [Thu, 5 Feb 2009 08:24:56 +0000 (03:24 -0500)]
For now, revert r2093-2095, which were committed by accident; I'm not
comfortable with them sitting on HEAD when I don't have time to test
them.
svn path=/trunk/packages/invirt-base/; revision=2097
Evan Broder [Thu, 5 Feb 2009 08:19:30 +0000 (03:19 -0500)]
Get rid of confusing err=True option to invirt.remctl.remctl.
svn path=/trunk/packages/invirt-base/; revision=2095
Greg Price [Sat, 31 Jan 2009 19:37:22 +0000 (14:37 -0500)]
fix usage message in std-init.sh
svn path=/trunk/packages/invirt-base/; revision=2061
Greg Price [Sat, 31 Jan 2009 08:22:22 +0000 (03:22 -0500)]
depend on remctl-client in invirt-base, not invirt-web
svn path=/trunk/packages/invirt-base/; revision=2052
Greg Price [Fri, 30 Jan 2009 10:59:24 +0000 (05:59 -0500)]
fix whitespace in debathena.list
svn path=/trunk/packages/invirt-base/; revision=2025
Evan Broder [Mon, 26 Jan 2009 13:54:37 +0000 (08:54 -0500)]
Use a trigger in invirt-base to run invirt-reload instead of the
postinst of xvm-*config.
svn path=/trunk/packages/invirt-base/; revision=2009
Greg Price [Mon, 29 Dec 2008 00:27:15 +0000 (19:27 -0500)]
invirt.common: handle yaml's None with empty struct for good error message
svn path=/trunk/packages/invirt-base/; revision=1935