invirt/packages/invirt-base.git
4 years agoRefactor authz 2to3
Ben Steffen [Sat, 21 Dec 2019 01:29:20 +0000 (20:29 -0500)] 
Refactor authz

4 years agoRemove now unused dir
Ben Steffen [Mon, 9 Dec 2019 21:24:25 +0000 (16:24 -0500)] 
Remove now unused dir

4 years agoRemove postinst and triggers
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

4 years agoRemove helper scripts for init files which will no longer exist
Ben Steffen [Mon, 9 Dec 2019 04:08:25 +0000 (23:08 -0500)] 
Remove helper scripts for init files which will no longer exist

4 years agoNormalize setup.py
Ben Steffen [Sat, 7 Dec 2019 21:52:07 +0000 (16:52 -0500)] 
Normalize setup.py

4 years agoClean up debian files
Ben Steffen [Sat, 7 Dec 2019 21:17:05 +0000 (16:17 -0500)] 
Clean up debian files

4 years agoUpdate setup.py
Ben Steffen [Sat, 7 Dec 2019 20:25:46 +0000 (15:25 -0500)] 
Update setup.py

4 years agoUpdate debian files in response to invirt-reload being removed
Ben Steffen [Sat, 7 Dec 2019 20:24:44 +0000 (15:24 -0500)] 
Update debian files in response to invirt-reload being removed

4 years agoUse noawait triggers
Ben Steffen [Sat, 7 Dec 2019 19:43:14 +0000 (14:43 -0500)] 
Use noawait triggers

4 years agoUpdate debian files to fix lintian errors and build the package in what I hope is...
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

4 years agoUpdate Python3 shebang (again...) to what Debian people say is right and proper
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

4 years agoSince only one binary package is installed, remove unnecessary package name from...
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

4 years agoUse python3:Depends instead of python:Depends
Ben Steffen [Tue, 3 Dec 2019 03:20:27 +0000 (22:20 -0500)] 
Use python3:Depends instead of python:Depends

4 years agoUpdate compat version and debathena precise->bionic, fix control file not specifying...
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

4 years agoUpdate debian files
Ben Steffen [Tue, 26 Nov 2019 22:23:10 +0000 (17:23 -0500)] 
Update debian files

4 years agoFormatting fixes
Ben Steffen [Tue, 26 Nov 2019 22:14:27 +0000 (17:14 -0500)] 
Formatting fixes

4 years agoMake authz use new config interface
Ben Steffen [Tue, 26 Nov 2019 21:57:18 +0000 (16:57 -0500)] 
Make authz use new config interface

4 years agoFix formatting
Ben Steffen [Tue, 26 Nov 2019 21:54:12 +0000 (16:54 -0500)] 
Fix formatting

4 years agoRemove dicts and structs globals with config, which is a plain dict, and streamline...
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

4 years agoSmall formatting fix
Ben Steffen [Tue, 26 Nov 2019 21:45:33 +0000 (16:45 -0500)] 
Small formatting fix

4 years agoUse yield from instead of looping and yielding
Ben Steffen [Tue, 26 Nov 2019 21:44:38 +0000 (16:44 -0500)] 
Use yield from instead of looping and yielding

4 years agoRename const variables in all caps
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

4 years agoFix formatting
Ben Steffen [Tue, 26 Nov 2019 21:10:54 +0000 (16:10 -0500)] 
Fix formatting

4 years agoDon't do anything fancy and just use yaml.CSafeLoader
Ben Steffen [Tue, 26 Nov 2019 21:10:01 +0000 (16:10 -0500)] 
Don't do anything fancy and just use yaml.CSafeLoader

4 years agoUse regular import instead of wildcard import
Ben Steffen [Tue, 26 Nov 2019 21:09:15 +0000 (16:09 -0500)] 
Use regular import instead of wildcard import

4 years agoFix formatting of docstrings
Ben Steffen [Tue, 26 Nov 2019 19:52:21 +0000 (14:52 -0500)] 
Fix formatting of docstrings

4 years agoReorder imports
Ben Steffen [Tue, 26 Nov 2019 19:51:08 +0000 (14:51 -0500)] 
Reorder imports

4 years agoDon't use contextlib where it is no longer necessary
Ben Steffen [Tue, 26 Nov 2019 19:49:54 +0000 (14:49 -0500)] 
Don't use contextlib where it is no longer necessary

4 years agoRemove safestructs which wasn't being used anywhere
Ben Steffen [Tue, 26 Nov 2019 19:49:07 +0000 (14:49 -0500)] 
Remove safestructs which wasn't being used anywhere

4 years agoUse full names for os.* things
Ben Steffen [Tue, 26 Nov 2019 19:47:46 +0000 (14:47 -0500)] 
Use full names for os.* things

4 years agoFix function call to use full name
Ben Steffen [Tue, 26 Nov 2019 19:40:09 +0000 (14:40 -0500)] 
Fix function call to use full name

4 years agoFix whitespace and argument name
Ben Steffen [Tue, 26 Nov 2019 19:39:57 +0000 (14:39 -0500)] 
Fix whitespace and argument name

4 years agoRename checkKinit to check_kinit and use subprocess.run instead of Popen
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

4 years agoUpdate imports
Ben Steffen [Tue, 26 Nov 2019 19:37:16 +0000 (14:37 -0500)] 
Update imports

4 years agoRemove duplicated information
Ben Steffen [Tue, 26 Nov 2019 19:26:46 +0000 (14:26 -0500)] 
Remove duplicated information

4 years agoUpdate imports and rename lock_file to open_locked and make it more idiomatic
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

4 years agoRemove captureOutput (use subprocess.run instead)
Ben Steffen [Tue, 26 Nov 2019 19:22:34 +0000 (14:22 -0500)] 
Remove captureOutput (use subprocess.run instead)

4 years agoRemove struct
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())

4 years agoRemove spurious newline
Ben Steffen [Tue, 26 Nov 2019 17:12:24 +0000 (12:12 -0500)] 
Remove spurious newline

4 years agoRename InvirtException to more descriptive PathResolutionException
Ben Steffen [Tue, 26 Nov 2019 17:08:56 +0000 (12:08 -0500)] 
Rename InvirtException to more descriptive PathResolutionException

4 years agoLet exceptions return nonzero error codes
Ben Steffen [Tue, 26 Nov 2019 05:40:07 +0000 (00:40 -0500)] 
Let exceptions return nonzero error codes

4 years agoMake --ls option branch more idiomatic
Ben Steffen [Tue, 26 Nov 2019 05:39:45 +0000 (00:39 -0500)] 
Make --ls option branch more idiomatic

4 years agoMake path parsing more idiomatic
Ben Steffen [Tue, 26 Nov 2019 05:39:02 +0000 (00:39 -0500)] 
Make path parsing more idiomatic

4 years agoSwitch from optparse to argparse
Ben Steffen [Tue, 26 Nov 2019 05:37:05 +0000 (00:37 -0500)] 
Switch from optparse to argparse

4 years agoRename invirt_exception to InvirtException
Ben Steffen [Tue, 26 Nov 2019 05:35:44 +0000 (00:35 -0500)] 
Rename invirt_exception to InvirtException

4 years agoClean up imports
Ben Steffen [Tue, 26 Nov 2019 05:34:01 +0000 (00:34 -0500)] 
Clean up imports

4 years agoSwitch from optparse to argparse and clean up a bit
Ben Steffen [Tue, 26 Nov 2019 05:30:49 +0000 (00:30 -0500)] 
Switch from optparse to argparse and clean up a bit

4 years agoMove all imports to top of file
Ben Steffen [Tue, 26 Nov 2019 05:27:17 +0000 (00:27 -0500)] 
Move all imports to top of file

4 years agoRemove __all__ assignment that doesn't do anything
Ben Steffen [Tue, 26 Nov 2019 05:22:56 +0000 (00:22 -0500)] 
Remove __all__ assignment that doesn't do anything

4 years agoFormat function names according to Pylint
Ben Steffen [Tue, 26 Nov 2019 05:21:53 +0000 (00:21 -0500)] 
Format function names according to Pylint

4 years agoRemove __future__ imports
Ben Steffen [Tue, 26 Nov 2019 05:21:03 +0000 (00:21 -0500)] 
Remove __future__ imports

4 years agoNormalize module docstring format
Ben Steffen [Tue, 26 Nov 2019 05:18:39 +0000 (00:18 -0500)] 
Normalize module docstring format

4 years agoSwitch shebang to python3
Ben Steffen [Tue, 26 Nov 2019 05:17:20 +0000 (00:17 -0500)] 
Switch shebang to python3

4 years agoRun python-modernize fixers
Ben Steffen [Mon, 25 Nov 2019 22:50:19 +0000 (17:50 -0500)] 
Run python-modernize fixers

4 years agoRemove vim modelines
Ben Steffen [Mon, 25 Nov 2019 22:46:20 +0000 (17:46 -0500)] 
Remove vim modelines

10 years agoFixed version for prod version. achernya precise-prod 0.0.37
Steven Valdez [Sat, 20 Jul 2013 20:25:57 +0000 (16:25 -0400)] 
Fixed version for prod version.

10 years agoUpdate packaging to dh7 0.0.37_glasgall3achernya1
Alexander Chernyakhovsky [Fri, 31 May 2013 05:26:48 +0000 (01:26 -0400)] 
Update packaging to dh7

11 years agouse debathena precise, not hardy glasgall-dev
Adam Glasgall [Thu, 21 Mar 2013 06:09:15 +0000 (23:09 -0700)] 
use debathena precise, not hardy

11 years agodrop python-json from Depends
Adam Glasgall [Thu, 21 Mar 2013 05:49:53 +0000 (22:49 -0700)] 
drop python-json from Depends

11 years agoPort packaging to dh_python2 price
Adam Glasgall [Thu, 21 Mar 2013 05:30:54 +0000 (22:30 -0700)] 
Port packaging to dh_python2

13 years agoHandle remctl results that are larger than a single pipe buffer dev precise-dev prod quentin 0.0.35
Quentin Smith [Sat, 19 Mar 2011 21:26:21 +0000 (17:26 -0400)] 
Handle remctl results that are larger than a single pipe buffer

13 years agoDepend on package resources gdb 0.0.34
Greg Brockman [Mon, 23 Aug 2010 15:40:56 +0000 (11:40 -0400)] 
Depend on package resources

Reported-by: Andrew Farrell <afarrell@mit.edu>

13 years agoUpdated changelog
Greg Brockman [Sun, 11 Jul 2010 22:49:14 +0000 (18:49 -0400)] 
Updated changelog

13 years agoImprovements to captureOutput bac125e341bf1807e8d35efde0ab22bdf9e4d8fc
Greg Brockman [Tue, 6 Jul 2010 04:09:08 +0000 (00:09 -0400)] 
Improvements to captureOutput

svn path=/trunk/packages/invirt-base/; revision=3029

14 years agoSelect an authz module using setuptools' entry points mechainsm.
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

14 years agoAdded an invirt mako render script.
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

14 years agoFix invirt-base's handling of triggers. 0.0.30
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

14 years agoAdd code to invirt-reload to de-duplicate multiple invocations. (LP: #439426) 0.0.29
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

14 years agoRemoved invirt-web-afs-apache
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

14 years agoHave authz providers use an invirt.authz module. 0.0.28
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

14 years agoReverted r2613 and started a new hvirt branch on the invirt-base pkg
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

14 years agoRemoved debathena from sources.list.d; deleted the rest of the /etc/apt filetree
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

14 years agoStop installing a sources.list.d file for XVM's apt repository. 0.0.27
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

14 years agoMove XVM's locker authorization code into a separate xvm-authz-locker
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

14 years agoSubclass invirt.common.struct from dict, instead of rolling our own 0.0.26
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

14 years agoStore AFS cell configuration at authz.afs.cells instead of just
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

14 years agoTake advantage of the newly added symbolic names for PTS connection
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

14 years agoRephrase the invirt.authz.locker._authenticate docstring for clarity.
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

14 years agoIn invirt.authz.locker, deal with getting tokens and
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

14 years agoUpdate invirt-base's setup.py to deal with invirt.authz module.
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

14 years agoAdd a magic invirt.authz.mech module that loads whatever authz.mech is
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

14 years agoAdd a invirt.authz.locker module to invirt-base for XVM-style
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

14 years agoAdd a changelog entry to invirt-base for r2551 (Add an __iter__ method
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

14 years agoAdd an __iter__ method to invirt.common.struct.
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

14 years agoIn invirt-base:
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

15 years agoIn invirt-base: 0.0.25
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

15 years agoMove invirt-setquotas into invirt-database. 0.0.24
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

15 years agoYay yasb 0.0.23
Peter Iannucci [Tue, 17 Feb 2009 08:05:33 +0000 (03:05 -0500)] 
Yay yasb

svn path=/trunk/packages/invirt-base/; revision=2148

15 years agoChangelogs 0.0.22
Peter Iannucci [Tue, 17 Feb 2009 07:59:54 +0000 (02:59 -0500)] 
Changelogs

svn path=/trunk/packages/invirt-base/; revision=2145

15 years agoFixed last yasb hopefully
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

15 years agoMade some changes requested by Broder. 0.0.21
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

15 years agoAdded all the other quotas for great win.
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

15 years agoRAM quotas at remctl; RAM quota exception script, table, and usage in -web and -remot...
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

15 years agoFor now, revert r2093-2095, which were committed by accident; I'm not
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

15 years agoGet rid of confusing err=True option to invirt.remctl.remctl.
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

15 years agofix usage message in std-init.sh 0.0.20
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

15 years agodepend on remctl-client in invirt-base, not invirt-web
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

15 years agofix whitespace in debathena.list
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

15 years agoUse a trigger in invirt-base to run invirt-reload instead of the 0.0.19
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

15 years agoinvirt.common: handle yaml's None with empty struct for good error message 0.0.18
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