ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: ALT Linux sysadmins' discussion <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] I: altlinux p6 branch openvz template caches online
Date: Sun, 25 Mar 2012 20:30:02 +0300
Message-ID: <20120325173001.GR18003@osdn.org.ua> (raw)
In-Reply-To: <4F6F4F83.8020305@tangramltd.com>

On Sun, Mar 25, 2012 at 01:01:55PM -0400, Dubrovskiy Viacheslav wrote:
> >> -               cmd_p->res.tmpl.ostmpl = strdup(tmpl->ostmpl);
> >> +               cmd_p->res.tmpl.ostmpl = strdup(basename(tmpl->ostmpl));
> > Ты теряешь информацию перед записью, а я предлагаю отбрасывать
> > лишнюю при чтении.  Тогда по мере доработки утилит ей можно
> > будет воспользоваться, т.к. она будет сохранена.
> Мне кажется ты усложняешь.

Возможно.  Или же стоило сразу выписывать полную картину маслом,
но уже засыпал.

> Директории могут быть любые и вешать какой-то функционал на их
> имя мне кажется не очень хорошей идеей.

Если хламовник, то любые... мне показалось, что можно дать
интересную функциональность тем, кто использует их с головой
(при этом ничего не сломав тем, кто сваливает всё в кучу).

> Достаточно того что уже есть привязка к имени образа.

Удалённо (http://download.openvz.org/template/precreated/contrib/):

contrib/altlinux-p6
contrib/debian-6.0

Локально (/var/lib/vz/template/cache/):

altlinux/p6-kiev-x86_64
altlinux/p6-odessa-i586
opensuse/11.4-kiev-i586

А в светлом будущем(tm) ещё и управлять различиями этих образов,
генерируемых из mkimage-profiles.  Один тестовый из сузи 11.4
уже был сделан (но невоспроизводимо), а сейчас ещё и centos6
удалось запинать (и уже в базовой части воспроизводимо).
При этом можно аккуратно различать test и prod, архитектуры,
версии, дистрибутивы, назначение...

> Да и какой функционал может быть повешен на имя директории?
> Пример можешь привести?

---
to get things done properly src/lib/dist.c::get_dist_conf_name()
would need fixup too -- probably looking at basename and then at
dirname would be fine (so that contrib/* would still work for
generally available templates but e.g. centos/6.0-x86_64 or
thatdepartment/debian-7.0-ns would be feasible too).
--- http://bugzilla.openvz.org/show_bug.cgi?id=2222#c0

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


      reply	other threads:[~2012-03-25 17:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-22 17:21 Michael Shigorin
2012-03-22 19:26 ` Michael Shigorin
2012-03-25  4:59   ` Dubrovskiy Viacheslav
2012-03-25  8:51     ` Michael Shigorin
2012-03-25 15:09       ` Dubrovskiy Viacheslav
2012-03-25 16:14         ` Michael Shigorin
2012-03-25 16:36           ` Dubrovskiy Viacheslav
2012-03-25 16:51             ` Michael Shigorin
2012-03-25 17:01               ` Dubrovskiy Viacheslav
2012-03-25 17:30                 ` Michael Shigorin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120325173001.GR18003@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=shigorin@gmail.com \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git