[Users] vzpkg2

2008-09-12 Thread Kir Kolyshkin

Hi Robert,

I'm trying to play with vzpkg2. Here are some random problems I found so 
far.



1. I am trying to install the beast on Fedora 7 x86_64 system. This is 
what I see:


/usr/share/vzpkg2/cache-os: line 164: /usr/lib/vzctl/scripts/vps-create: 
No such file or directory


The thing is vps-create is located in /usr/lib64/vzctl/scrpts on an x64 
box (vzctl-lib-3.0.22-1.x86_64.rpm). This was never a problem because 
vzpkg didn't work on x86_64. Now this needs to be fixed, I guess the 
workaround is to check lib64 first and use it if available. Patch 
(0001-*) is attached.



2. In git commit 2fdcbfc56b4d823ff085e80ec79828f67b5de5a9 you have added 
%{dist} to the value of Release: field of vzpkg.spec. This is a good 
thing, since it makes .spec file to be more Fedora-packaging-guidelines 
compatible. Then in commit 0fe151bd07301c78c85a319d683c3e7fd9117f38 you 
are removing it.


The proper way is to put %{?dist} so if it's not set then it will expand 
to empty string. Patch (0002-*) is attached.



3. There are a few problems with setting VZPKG_CACHE_HOST in /etc/vz/vz.conf

(a) From my POV, vzpkg should work (maybe suboptimal and inefficient, 
but it should) without any additional settings. Now it's not so -- you 
have to specify VZPKG_CACHE_HOST manually. It should be optional.
(b) vz.conf man page belongs to vzctl, while this parameter belongs to 
vzpkg. It's a bit unnatural.
(c) Protocol (http://) is explicitly prepended to a value of 
VZPKG_CACHE_HOST. This makes it impossible to use anything other than 
http:// (i.e. ftp://, file://, whatever).
(d) This is a global parameter, which means it's not possible to have a 
per-distro cache/repo in different places. This is the case for me -- 
there are repo mirrors of pretty much every distro in my LAN, but they 
are not on the same server.


Not really sure what do to about that -- just started to looking and... 
here comes the weekend :)



This is it so far; will continue next week.
From 4d16e4280e2b9215997e1b8eaf0801aec22680ea Mon Sep 17 00:00:00 2001
From: Kir Kolyshkin <[EMAIL PROTECTED]>
Date: Fri, 12 Sep 2008 18:19:48 +0400
Subject: [PATCH] functions: find the proper VZLIB_SCRIPTDIR

Fix for the following problem:
> /usr/share/vzpkg2/cache-os: line 164:
>   /usr/lib/vzctl/scripts/vps-create: No such file or directory

The thing is vps-create is located in /usr/lib64/vzctl/scrpts on an amd64 box
(checked on vzctl-lib-3.0.22-1.x86_64.rpm). So check for this path first and
use it if available.

Signed-off-by: Kir Kolyshkin <[EMAIL PROTECTED]>
---
 functions |6 +-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/functions b/functions
index 04e8261..04527f3 100644
--- a/functions
+++ b/functions
@@ -19,7 +19,11 @@ VECFGDIR_OLD=/etc/sysconfig/vz-scripts
 VZCFG_OLD=/etc/sysconfig/vz
 VECFGDIR=/etc/vz/conf
 VZCFG=/etc/vz/vz.conf
-VZLIB_SCRIPTDIR=/usr/lib/vzctl/scripts
+if test -d /usr/lib64/vzctl/scripts; then
+   VZLIB_SCRIPTDIR=/usr/lib64/vzctl/scripts
+else
+   VZLIB_SCRIPTDIR=/usr/lib/vzctl/scripts
+fi
 ARCHES="i386 i586 i686 amd64 x86_64 ia64 x86"
 
 # check that configs are in right place - use old values otherwise
-- 
1.5.5.1

From 32fc918f5a4b8c6eed09d69ecede31592ea8bd5a Mon Sep 17 00:00:00 2001
From: Kir Kolyshkin <[EMAIL PROTECTED]>
Date: Fri, 12 Sep 2008 19:34:06 +0400
Subject: [PATCH] vzpkg.spec: add back %{dist} to release

In git commit 2fdcbfc56b4d823ff085e80ec79828f67b5de5a9 %{dist} was added
to the value of Release: field of vzpkg.spec. This is a good thing, since
it makes .spec file to be more Fedora-packaging-guidelines compatible.
Then in commit 0fe151bd07301c78c85a319d683c3e7fd9117f38 it was removed.

Returning it back in a proper way, i.e. %{?dist} -- which expands to empty
if dist is not set.

Signed-off-by: Kir Kolyshkin <[EMAIL PROTECTED]>
---
 vzpkg.spec |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/vzpkg.spec b/vzpkg.spec
index 824cc7c..e55f58a 100644
--- a/vzpkg.spec
+++ b/vzpkg.spec
@@ -1,6 +1,6 @@
 Name:  vzpkg2
 Version:   0.9.2
-Release:   1
+Release:   1%{?dist}
 Summary:   OpenVZ template management tools
 Source:%{name}-%{version}.tar.bz2
 License:   GPL
-- 
1.5.5.1

___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


[Users] vzpkg2 replacing vzpkg

2008-11-25 Thread Suno Ano
Do we know already what is the agenda for vzpkg2 i.e. will vzpkg2
replace the now official vzpkg any time soon? What task may be pending
so this switch could happen any time soon?

___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


[Users] vzpkg2 & pkg-cacher screencast

2008-11-18 Thread Scott Dowdle
Greetings,

In an effort to get more people interested in trying out / testing Robert 
Nelson's vzpkg2 and pkg-cacher applications (as well as his OS Template 
metadata packages that go along with those), I hastily put together a 
screencast that lasts for about 20 minutes that you can find here in Adobe 
Flash format:

http://www.montanalinux.org/vzpkg2-screencast.html

Someone on the #openvz IRC channel said they'd work on gathering up Robert's 
instructions from this mailing list and make a wiki page out of them... and 
after that's done I think I'll make a new screencast that is shorter and more 
concise... but in the mean time, enjoy.  Eventually I'll also slap it on the 
OpenVZ blog.

I'm hoping there aren't too many barriers getting Robert's work into the stock 
OpenVZ setup... and that eventually openSUSE and Gentoo support will be added 
to vzpkg2.

TYL,
-- 
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] vzpkg2 replacing vzpkg

2008-12-07 Thread Scott Dowdle
Suno,

- "Suno Ano" <[EMAIL PROTECTED]> wrote:
> Do we know already what is the agenda for vzpkg2 i.e. will vzpkg2
> replace the now official vzpkg any time soon? What task may be
> pending so this switch could happen any time soon?

Hmm, I didn't see anyone answer this one and I was cleaning out my inbox... so 
I thought I'd comment.

1) Kir has been tied up lately with some family health issues but should be 
back to work in near future.

2) Robert has been working on an update to vpkg2 and pkg-cacher.  I've been 
working with him mostly providing feedback.  Last I heard he was looking at one 
or more of the metadata packages that I wasn't too happy with.  Robert is very 
close to announcing/releasing the 1.0 release... but I don't want to still his 
thunder.

The answer on this is that no one knows yet.  I don't think it is going to 
happy real soon... but in a month or two maybe... hopefully.  I myself would 
really like to see vzpkg2 and pkg-cacher replace the existing vzpkg... and the 
sooner the better.

TYL,
-- 
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] vzpkg2 replacing vzpkg

2008-12-07 Thread Scott Dowdle
Greetings,

Gee, I'm beginning to think that English isn't my first and only language.

- "Scott Dowdle" <[EMAIL PROTECTED]> wrote:
> 1) Kir has been tied up lately with some family health issues but
> should be back to work in near future.

in THE near future

> 2) Robert has been working on an update to vpkg2 and pkg-cacher.  I've
> been working with him mostly providing feedback.  Last I heard he was
> looking at one or more of the metadata packages that I wasn't too
> happy with.  Robert is very close to announcing/releasing the 1.0
> release... but I don't want to still his thunder.

to STEAL his thunder.

> The answer on this is that no one knows yet.  I don't think it is
> going to happy real soon... but in a month or two maybe... hopefully. 

going to HAPPEN real soon...

TYL,
-- 
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] vzpkg2 replacing vzpkg

2008-12-16 Thread Henrik Holmboe
++ 07/12/08 14:44 -0500 - Scott Dowdle:
>Greetings,
>
>Gee, I'm beginning to think that English isn't my first and only language.

Do you have some nasty spelling-correction in your MUA perhaps? :)

Cheers,
Henrik

-- 
Henrik Holmboe, Stockholm, Sweden

___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


[Users] vzpkg2 server (repo.opensource-sw.net) hung?

2008-12-14 Thread Michael Park
Hi there,

I'm trying to give vzpkg2 a go and I'm following along with the instructions at:

  http://wiki.openvz.org/Install_vzpkg2_and_pkg-cacher

...but it seems like the httpd service at repo.opensource-sw.net is
hung, as wget reports that I'm connected, but the transfer for the
.repo file just hangs. Could the admin please bounce httpd or is does
anyone know if there's a mirror I can try?

Thanks!


--Mike
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


[Users] vzpkg2 on gentoo HN problems

2009-04-23 Thread Piavlo

 Hi,
I've installed vzpkg2 & vztmpl2 1.0.0 packages on gentoo VE0

I get the following error:

# vzpkgcache --no-pkg-cacher fedora-10-x86_64-minimal
Creating cache for fedora-10-x86_64-minimal OS template
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in 
yummain.main(sys.argv[1:])
  File "//usr/share/yum-cli/yummain.py", line 105, in main
result, resultmsgs = base.doCommands()
  File "//usr/share/yum-cli/cli.py", line 287, in doCommands
self._getTs()
  File "//usr/lib64/python2.5/site-packages/yum/depsolve.py", line 85,
in _getTs
self._getTsInfo()
  File "//usr/lib64/python2.5/site-packages/yum/depsolve.py", line 91,
in _getTsInfo
self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
  File "//usr/lib64/python2.5/site-packages/yum/__init__.py", line 529,
in 
pkgSack = property(fget=lambda self: self._getSacks(),
  File "//usr/lib64/python2.5/site-packages/yum/__init__.py", line 384,
in _getSacks
self.repos.populateSack(which=repos)
  File "//usr/lib64/python2.5/site-packages/yum/repos.py", line 242, in
populateSack
sack.populate(repo, mdtype, callback, cacheonly)
  File "//usr/lib64/python2.5/site-packages/yum/yumRepo.py", line 142,
in populate
if self._check_db_version(repo, mydbtype):
  File "//usr/lib64/python2.5/site-packages/yum/yumRepo.py", line 199,
in _check_db_version
if repo.repoXML.repoData.has_key(mdtype):
  File "//usr/lib64/python2.5/site-packages/yum/yumRepo.py", line 774,
in 
repoXML = property(fget=lambda self: self._getRepoXML(),
  File "//usr/lib64/python2.5/site-packages/yum/yumRepo.py", line 766,
in _getRepoXML
self._loadRepoXML(text=self)
  File "//usr/lib64/python2.5/site-packages/yum/yumRepo.py", line 749,
in _loadRepoXML
cache=self.http_caching == 'all')
  File "//usr/lib64/python2.5/site-packages/yum/yumRepo.py", line 623,
in _getFile
http_headers=headers,
  File "/usr/lib64/python2.5/site-packages/urlgrabber/mirror.py", line
414, in urlgrab
return self._mirror_try(func, url, kw)
  File "/usr/lib64/python2.5/site-packages/urlgrabber/mirror.py", line
400, in _mirror_try
return func_ref( *(fullurl,), **kwargs )
  File "/usr/lib64/python2.5/site-packages/urlgrabber/grabber.py", line
584, in urlgrab
(url, parts) = self._parse_url(url)
  File "/usr/lib64/python2.5/site-packages/urlgrabber/grabber.py", line
690, in _parse_url
auth_handler.add_password(None, host, user, password)
UnboundLocalError: local variable 'user' referenced before assignment
ERROR: yum failed with 1 exit code
ERROR: Script /usr/share/vzpkg2/yum-cache-install failed
#

I've tried installing diferent version of urlgrabber but still get the
same error.

Any help is appreciated
Thanks
 Alex

___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


[Users] vzpkg2 OS templates in .deb format

2008-11-26 Thread Suno Ano
This page http://wiki.openvz.org/Install_vzpkg2_and_pkg-cacher mentions,
vzpkg2 OS templates are only available in .rpm format. Has anyone made
them available as .deb already?

___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] vzpkg2 server (repo.opensource-sw.net) hung?

2008-12-15 Thread Scott Dowdle
Michael,

- "Michael Park"  wrote:
> ...but it seems like the httpd service at repo.opensource-sw.net is

The webserver seems to be down at the moment. Will know more later.  I can 
probably mirror the setup or perhaps openvz.org could.  We'll look into it.

TYL,
-- 
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] vzpkg2 OS templates in .deb format

2008-11-26 Thread Robert Nelson
The page is wrong, they've been available in .deb format for more than two 
months.


- Original Message - 
From: "Suno Ano" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, November 26, 2008 12:58 AM
Subject: [Users] vzpkg2 OS templates in .deb format



This page http://wiki.openvz.org/Install_vzpkg2_and_pkg-cacher mentions,
vzpkg2 OS templates are only available in .rpm format. Has anyone made
them available as .deb already?

___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users




___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] vzpkg2 OS templates in .deb format

2008-11-26 Thread albinootje
Robert Nelson wrote:

> The page is wrong, they've been available in .deb format for more than
> two months.

It's super fantastic to be able to create Debian and Ubuntu templates
that easily.

One little liberation step further in the [.] rpm-minded world ;-]

Thanks for giving us vzpkg2!

> 
> - Original Message - From: "Suno Ano" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, November 26, 2008 12:58 AM
> Subject: [Users] vzpkg2 OS templates in .deb format
> 
> 
>> This page http://wiki.openvz.org/Install_vzpkg2_and_pkg-cacher mentions,
>> vzpkg2 OS templates are only available in .rpm format. Has anyone made
>> them available as .deb already?
>>
>> ___
>> Users mailing list
>> Users@openvz.org
>> https://openvz.org/mailman/listinfo/users
>>
> 
> 
> ___
> Users mailing list
> Users@openvz.org
> https://openvz.org/mailman/listinfo/users
> 

___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] vzpkg2 OS templates in .deb format

2008-11-26 Thread Scott Dowdle
Suno,

- "Suno Ano" <[EMAIL PROTECTED]> wrote:
> This page http://wiki.openvz.org/Install_vzpkg2_and_pkg-cacher
> mentions, vzpkg2 OS templates are only available in .rpm format. Has anyone
> made them available as .deb already?

Yikes I didn't notice that.  I guess BurnMage didn't know that there were 
metadata packages available in both .rpm and .deb formats.

I updated the wiki page on two items:

1) apt-get install vztmpl2-centos vztmpl2-debian vztmpl2-fedora vztmpl2-ubuntu
2) I added that you can build individual OS Templates in addition to all of 
them.

The page is a bit junky and redundant but I hope it is more accurate now.  
Don't forget, if anyone notices anything else that needs to be fixed, login 
(create an account if you need to) and fix it yourself. :)

TYL,
-- 
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


[Users] vzpkg2 on Debian Lenny: some yum bugs

2009-01-04 Thread Miguel Filho
Hello, me again!

Well, my usage of vzpkg2 resulted in more trouble than I would espect,
but that is the fun part, isn't it?

First of all, the yum version in Lenny is 3.2.12. I believe that
version will not change anytime soon, and Lenny will be released (God
knows when) with it. So, IMHO, we better have some workarounds for it.

Here we go again:

1) Yum fails to bootstrap CentOS 5 with this error:

Error: Failure finding best provider of libc.so.6 for ..., exceeded
maximum loop length

Googling around I've found this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496103

Basically adding glibc before all packages does the trick and the
template creation finishes without errors.

Curiously, fedora9 and centos4 work fine.

A manually added glibc to be the first package on minimal.list. Ugly
but functional.

2) Yum fails to bootstrap CentOS 5 again with this error:

File "/var/lib/python-support/python2.5/yum/misc.py", line 278, in
import_key_to_pubring
ctx = gpgme.Context()
AttributeError: 'module' object has no attribute 'Context'

Once again, I've found this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496137

I did a long research on yum's code and the GPG handling in 3.2.12 is
broken. I talked with James Antill (yum's author) on IRC about this
problem:

 hi there, I'm using yum 3.2.12 on Debian Lenny with vzpkg2
 vzpkg2 bootstraps various distros
 when bootstraping centos5
 I got this
 File "/var/lib/python-support/python2.5/yum/misc.py",
line 278, in import_key_to_pubring
 ctx = gpgme.Context()
 AttributeError: 'module' object has no attribute 'Context'
 i've take a look at the current misc.py and the gpg code
is a little different
 based on what I see in the current code, returning False
on import_key_to_pubring() and some other functions does not affect
yum's behavior
 I changed misc.py to always return False on 3.2.12 and
the bootstrap operation works fine
 miguelzinho: 3.2.12 is basically unsupported by anyone at this point
 miguelzinho: if what you did just disabled pgp on repo
keyrings (possible from my memory) ... then yeh, the fix is fine and
don't worry about it (that functionality wasn't really tested/working
in 3.2.12)
 miguelzinho: But you might want to just update to something
more recent (best options: 3.2.19 as in RHEL/CentOS soon, or 3.2.21
when that's released soon)

There you go.

I kept looking and I've found out that vzpkg2 imports the GPG keys
using rpm, before calling yum --installroot.

Plus, the key for the centos-vz-addons repository was not available on
the gpgkeys directory. I've downloaded the key and then yum will not
bother trying importing it, so the bug is not triggered.

I think that's all for now.

Is there any bugtracker that I can report all these stuff?

Regards,

Miguel
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users