Bug#1006418: Linux stubdomains

2022-09-08 Thread Gémes Géza

Hello Everyone,

Just my 2c's: maybe instead of trying to enable the somewhat outdated 
Mini-OS based stubdomains: 
https://wiki.xenproject.org/wiki/Device_Model_Stub_Domains we should 
rather try to implement support for Linux based stubdomains: 
https://wiki.xenproject.org/wiki/Linux_stub_domains. As IMHO this could 
be done as a special flavor of the linux kernel + a custom initramfs, I 
add the debian-kernel mailing list.


Please share your thoughts.

Thank you and best regards,

Geza



Bug#592539: patch

2012-06-25 Thread Gémes Géza

Hi,

I've created a patch (for 4.2.4-1) which adds (a slightly modified 
version of 
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=22;filename=isc-dhcp-server;att=1;bug=592539) 
the ability to start listening on IPv6 for isc-dhcp-server, as well the 
debconf parameters needed to configure the running of zero/one/two 
instances (for IPv4 and/or IPv6).


Cheers

Geza
diff -urN isc-dhcp-4.2.2.dfsg.1/debian/dhclient6.conf isc-dhcp-4.2.2.dfsg.1/debian/dhclient6.conf
--- isc-dhcp-4.2.2.dfsg.1/debian/dhclient6.conf	1970-01-01 01:00:00.0 +0100
+++ isc-dhcp-4.2.2.dfsg.1/debian/dhclient6.conf	2012-06-25 10:28:12.972577091 +0200
@@ -0,0 +1,49 @@
+# Client configuration file example for DHCPv6
+
+# The client side command to enable rapid-commit (2 packet exchange)
+##send dhcp6.rapid-commit;
+
+# name-servers and domain-search are requested by default.
+# here is the way to request sip-servers-addresses too
+#also request dhcp6.sip-servers-addresses;
+
+# Likely to be useful: the script path
+#script /etc/dhcp3//dhclient-script;
+
+#send host-name andare.fugue.com;
+send host-name = gethostname();
+#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
+#send dhcp-lease-time 3600;
+#supersede domain-name fugue.com home.vix.com;
+#prepend domain-name-servers 127.0.0.1;
+#request subnet-mask, broadcast-address, time-offset, routers,
+#	domain-name, domain-name-servers, domain-search, host-name,
+#	netbios-name-servers, netbios-scope, interface-mtu,
+#	rfc3442-classless-static-routes, ntp-servers;
+#require subnet-mask, domain-name-servers;
+#timeout 60;
+#retry 60;
+#reboot 10;
+#select-timeout 5;
+#initial-interval 2;
+#script /etc/dhcp3/dhclient-script;
+#media -link0 -link1 -link2, link0 link1;
+#reject 01:00:a0::10;
+
+#alias {
+#  interface eth0;
+#  fixed-address6 01:00:a0::10;
+#  fixed-prefix6 01:00:a0::/64;
+#}
+
+#lease {
+#  interface eth0;
+#  fixed-address 01:00:a0::10;
+#  medium link0 link1;
+#  option host-name andare.swiftmedia.com;
+#  fixed-prefix6 01:00:a0::/64;
+#  option dhcp6-name-servers ::1;
+#  renew 2 2000/1/12 00:00:01;
+#  rebind 2 2000/1/12 00:00:01;
+#  expire 2 2000/1/12 00:00:01;
+#}
diff -urN isc-dhcp-4.2.2.dfsg.1/debian/dhcpd6.conf isc-dhcp-4.2.2.dfsg.1/debian/dhcpd6.conf
--- isc-dhcp-4.2.2.dfsg.1/debian/dhcpd6.conf	1970-01-01 01:00:00.0 +0100
+++ isc-dhcp-4.2.2.dfsg.1/debian/dhcpd6.conf	2012-06-25 10:34:29.816576503 +0200
@@ -0,0 +1,106 @@
+#
+# Sample configuration file for ISC dhcpdv6 for Debian
+#
+#
+
+# IPv6 address valid lifetime
+#  (at the end the address is no longer usable by the client)
+#  (set to 30 days, the usual IPv6 default)
+default-lease-time 2592000;
+
+# IPv6 address preferred lifetime
+#  (at the end the address is deprecated, i.e., the client should use
+#   other addresses for new connections)
+#  (set to 7 days, the	usual IPv6 default)
+preferred-lifetime 604800;
+
+# T1, the delay before Renew
+#  (default is 1/2 preferred lifetime)
+#  (set to 1 hour)
+option dhcp-renewal-time 3600;
+
+# T2, the delay before Rebind (if Renews failed)
+#  (default is 3/4 preferred lifetime)
+#  (set to 2 hours)
+option dhcp-rebinding-time 7200;
+
+# Enable RFC 5007 support (same than for DHCPv4)
+allow leasequery;
+
+# Global definitions for name server address(es) and domain search list
+#option dhcp6.name-servers 3ffe:501::100:200:ff:fe00:3f3e;
+#option dhcp6.domain-search test.example.com,example.com;
+
+# Set preference to 255 (maximum) in order to avoid waiting for
+# additional servers when there is only one
+##option dhcp6.preference 255;
+
+# Server side command to enable rapid-commit (2 packet exchange)
+##option dhcp6.rapid-commit;
+
+# The delay before information-request refresh
+#  (minimum is 10 minutes, maximum one day, default is to not refresh)
+#  (set to 6 hours)
+option dhcp6.info-refresh-time 21600;
+
+# The path of the lease file
+#dhcpv6-lease-file-name /var/lib/dhcp/dhcpd6.leases;
+
+# Static definition (must be global)
+#host myclient {
+#	# The entry is looked up by this
+#	host-identifier option
+#		dhcp6.client-id 00:01:00:01:00:04:93:e0:00:00:00:00:a2:a2;
+
+#	# A fixed address
+#	fixed-address6 3ffe:501::100::1234;
+
+#	# A fixed prefix
+#	fixed-prefix6 3ffe:501::101::/64;
+
+#	# Override of the global definitions,
+#	# works only when a resource (address or prefix) is assigned
+#	option dhcp6.name-servers 3ffe:501::100:200:ff:fe00:4f4e;
+
+#	# For debug (to see when the entry statements are executed)
+#	#  (log sol when a matching Solicitation is received)
+#	##if packet(0,1) = 1 { log(debug,sol); }
+#}
+
+#host otherclient {
+## This host entry is hopefully matched if the client supplies a DUID-LL
+## or DUID-LLT containing this MAC address.
+#hardware ethernet 01:00:80:a2:55:67;
+#
+#fixed-address6 3ffe:501::100::4321;
+#}
+
+# The subnet where the server is attached
+#  (i.e., the server has an address in this subnet)
+#subnet6 3ffe:501::100::/64 {
+#	# Two addresses 

Bug#420229: installing ccs fails during attempted install of gnbd-server

2007-04-21 Thread Gémes Géza

Daniel Kahn Gillmor írta:

Package: ccs
Version: 1.03.00-2
Severity: important


squeak is a debian system running lenny/sid.  i was trying to install
gnbd-server, and it failed due to some problem with ccs:

[0 [EMAIL PROTECTED] ~]# apt-get install gnbd-server 
Reading package lists... Done

Building dependency tree... Done
The following extra packages will be installed:
  ccs cman fence libdlm1 libmagma1 magma-plugin-sm
The following NEW packages will be installed:
  ccs cman fence gnbd-server libdlm1 libmagma1 magma-plugin-sm
0 upgraded, 7 newly installed, 0 to remove and 1 not upgraded.
Need to get 252kB of archives.
After unpacking 1147kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://ftp.debian.org testing/main libmagma1 1.03.00-2 [19.7kB]

Get:2 http://ftp.debian.org testing/main libdlm1 1.03.00-2 [10.8kB]
Get:3 http://ftp.debian.org testing/main magma-plugin-sm 1.03.00-2 [9210B]
Get:4 http://ftp.debian.org testing/main ccs 1.03.00-2 [51.8kB]
Get:5 http://ftp.debian.org testing/main cman 1.03.00-2 [23.2kB]
Get:6 http://ftp.debian.org testing/main fence 1.03.00-2 [96.4kB]
Get:7 http://ftp.debian.org testing/main gnbd-server 1.03.00-2 [41.0kB]
Fetched 252kB in 1s (239kB/s)
Selecting previously deselected package libmagma1.

(Reading database ... 185474 files and directories currently installed.)
Unpacking libmagma1 (from .../libmagma1_1.03.00-2_i386.deb) ...
Selecting previously deselected package libdlm1.
Unpacking libdlm1 (from .../libdlm1_1.03.00-2_i386.deb) ...
Selecting previously deselected package magma-plugin-sm.
Unpacking magma-plugin-sm (from .../magma-plugin-sm_1.03.00-2_i386.deb) ...
Selecting previously deselected package ccs.
Unpacking ccs (from .../ccs_1.03.00-2_i386.deb) ...
Selecting previously deselected package cman.
Unpacking cman (from .../cman_1.03.00-2_i386.deb) ...
Selecting previously deselected package fence.
Unpacking fence (from .../fence_1.03.00-2_i386.deb) ...
Selecting previously deselected package gnbd-server.
Unpacking gnbd-server (from .../gnbd-server_1.03.00-2_i386.deb) ...
Setting up libmagma1 (1.03.00-2) ...

Setting up libdlm1 (1.03.00-2) ...

Setting up magma-plugin-sm (1.03.00-2) ...
Setting up ccs (1.03.00-2) ...
Starting cluster configuration system: /etc/cluster/cluster.conf: file not 
found.
Please ensure an initial copy of this file is present on all cluster nodes.
invoke-rc.d: initscript ccs, action start failed.
dpkg: error processing ccs (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of cman:
 cman depends on ccs ( 1.03.00); however:
  Package ccs is not configured yet.
 cman depends on ccs ( 1.03.01); however:
  Package ccs is not configured yet.
dpkg: error processing cman (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of fence:
 fence depends on cman ( 1.03.00); however:
  Package cman is not configured yet.
 fence depends on cman ( 1.03.01); however:
  Package cman is not configured yet.
dpkg: error processing fence (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnbd-server:
 gnbd-server depends on fence (= 1.03.00-2); however:
  Package fence is not configured yet.
dpkg: error processing gnbd-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 ccs
 cman
 fence
 gnbd-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
[100 [EMAIL PROTECTED] ~]# 



Thanks for looking into this.

--dkg

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ccs depends on:
ii  libc6  2.3.6.ds1-13  GNU C Library: Shared libraries
ii  libmagma1  1.03.00-2 Cluster abstraction - development 
ii  libxml22.6.27.dfsg-1 GNOME XML library

ii  magma-plugin-sm1.03.00-2 Cluster abstraction - sm plugin

ccs recommends no packages.

-- no debconf information


  
IMHO the ccs package should provide a small debconf utility which would 
create a very basic cluster.conf, so that ccs could be started.


Geza




Bug#367370: ..I got fed up trying to get rid of ccs, so I left exit 0 in its scripts.

2006-05-16 Thread Gémes Géza
Bastian Blank írta:

severity 367370 normal
tags 367370 moreinfo
thanks

On Mon, May 15, 2006 at 02:32:42PM +0200, Arnt Karlsen wrote:
  

Justification: breaks unrelated software



You did not show anything which breaks unrelated software.

  

...output of: dpkg --abort-after 666 -D 4000 --log=/tmp/ccs.drivel \
--force-all,depends-version,depends,confnew,confmiss,conflicts,remove-reinstreq,remove-essential
 \
--purge ccs
2006-05-14 20:48:02 status half-configured ccs 1.02.00-4
2006-05-14 20:48:46 remove ccs 1.02.00-4 1.02.00-5
2006-05-14 20:48:46 status half-configured ccs 1.02.00-4



This is the log output, not the output of dpkg.

Bastian

  

This bug is related with the fact, that the prerm script of ccs tries to
stop ccs which fails if ccs has problems (magma plugins etc,
unfortunately there are too many possibilities :-( ). Instead of
modifying the init script I would suggest to correct prerm scripts to
return 0 regardless of the fact of has it succeeded or not to stop ccs.

Geza



Bug#366498: Details

2006-05-13 Thread Gémes Géza
Sorry I've attached a wrong patch :-(
Bellow is the correct (I hope ;-) ) one

redhat-cluster-source package is missing a debian directory and a modass
entry, therefore cannot be successfully built with module-assistant


 



The attached patch (against the debian subdirectory) fixes the problem.

Geza
  

--- rules.orig	2006-05-13 20:18:45.0 +0200
+++ rules	2006-05-12 21:51:21.0 +0200
@@ -58,10 +58,18 @@
 
 $(STAMPS_DIR)/setup-source: $(STAMPS_DIR)/source
 	@rm -rf $(BUILD_DIR)/build-source
-	mkdir -p $(BUILD_DIR)/build-source/modules
-	cp -al $(BUILD_DIR)/source/cman-kernel/src $(BUILD_DIR)/build-source/modules/cman
-	cp -al $(BUILD_DIR)/source/dlm-kernel/src $(BUILD_DIR)/build-source/modules/dlm
-	cp -al $(BUILD_DIR)/source/gfs-kernel/src $(BUILD_DIR)/build-source/modules/gfs
+	mkdir -p $(BUILD_DIR)/build-source/modules/redhat-cluster-source
+	cp -al $(BUILD_DIR)/source/cman-kernel $(BUILD_DIR)/build-source/modules/redhat-cluster-source/
+	cp -al $(BUILD_DIR)/source/dlm-kernel $(BUILD_DIR)/build-source/modules/redhat-cluster-source/
+	cp -al $(BUILD_DIR)/source/gfs-kernel $(BUILD_DIR)/build-source/modules/redhat-cluster-source/
+	cp -al $(BUILD_DIR)/source/gnbd-kernel $(BUILD_DIR)/build-source/modules/redhat-cluster-source/
+	mkdir -p $(BUILD_DIR)/build-source/modules/redhat-cluster-source/debian
+	cp -al $(BUILD_DIR)/../{changelog,compat,copyright} $(BUILD_DIR)/build-source/modules/redhat-cluster-source/debian/
+	cp -al $(BUILD_DIR)/../rules.source $(BUILD_DIR)/build-source/modules/redhat-cluster-source/debian/rules
+	cp -al $(BUILD_DIR)/../control.source $(BUILD_DIR)/build-source/modules/redhat-cluster-source/debian/control.modules.in
+	cp -al $(BUILD_DIR)/../redhat-cluster-source-_KVERS_-postinst.modules.in $(BUILD_DIR)/build-source/modules/redhat-cluster-source/debian/postinst.modules.in
+	ln -sf default.sh redhat-cluster-source
+	cp -al redhat-cluster-source $(BUILD_DIR)/build-source/
 	touch $@
 
 build: $(STAMPS_DIR)/build
@@ -139,3 +147,4 @@
 
 binary: binary-arch binary-indep
 .PHONY: build clean binary-indep binary-arch binary install


--- rules.source.orig	2006-05-13 21:16:32.0 +0200
+++ rules.source	2006-05-13 12:17:24.0 +0200
@@ -0,0 +1,57 @@
+#!/usr/bin/make -f
+
+# module-assistant stuff
+PACKAGE = redhat-cluster-modules
+MA_DIR ?= /usr/share/modass
+-include $(MA_DIR)/include/generic.make
+-include $(MA_DIR)/include/common-rules.make
+
+export RHMODS=cman-kernel dlm-kernel gfs-kernel gnbd-kernel
+
+export BDIR=$(shell pwd)
+
+configure:
+	mkdir -p includes
+	cd includes  ln -sf . cluster
+	cp cman-kernel/src/service.h includes/service.h
+	cp cman-kernel/src/cnxman.h includes/cnxman.h
+	cp cman-kernel/src/cnxman-socket.h includes/cnxman-socket.h
+	cp dlm-kernel/src/dlm.h includes/dlm.h
+	for i in $$RHMODS; do \
+	  cd $$i  ./configure --incdir=$(BDIR)/includes --kernel_src=$(KSRC)  cd ..; \
+	done
+
+kdist_clean: prep-deb-files
+	dh_clean
+	for i in $$RHMODS; do \
+	  cd $$i  ./configure --kernel_src=$(KSRC)  $(MAKE) clean  cd ..; \
+	done
+	rm -rf includes
+
+kdist_config: prep-deb-files
+
+binary-modules: configure kdist_config
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs lib/modules/$(KVERS)
+
+	# build and install the module
+	for i in $$RHMODS; do \
+	  cd $$i  $(MAKE)  $(MAKE) install DESTDIR=$(BDIR)/debian/redhat-cluster-modules-$(KVERS)  cd ..; \
+	done
+	rm -rf debian/redhat-cluster-modules-$(KVERS)/usr
+
+	dh_installdocs 
+	dh_installchangelogs
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol -- -v$(VERSION)
+	dh_md5sums
+	dh_builddeb --destdir=$(DEB_DESTDIR)
+
+binary: binary-indep binary-modules
+.PHONY: build clean binary-indep binary-modules binary install



--- redhat-cluster-source.install.orig	2006-05-13 20:18:45.0 +0200
+++ redhat-cluster-source.install	2006-05-09 22:28:23.0 +0200
@@ -1 +1,2 @@
 build-source/redhat-cluster.tar.bz2 usr/src
+build-source/redhat-cluster-source usr/share/modass/packages

--- control.source.orig	2006-05-13 21:23:15.0 +0200
+++ control.source	2006-05-13 09:09:53.0 +0200
@@ -0,0 +1,16 @@
+Source: redhat-cluster
+Description: Redhat cluster suite - kernel module source
+ This package contains the source necessary for compiling the RHCS
+ kernel modules against the linux tree.
+
+Package: redhat-cluster-modules-_KVERS_
+Version: 1.02.00-4
+Architecture: any
+Section: misc
+Priority: optional
+Maintainer: Bastian Blank [EMAIL PROTECTED]
+Source: redhat-cluster
+Recommends: kernel-image-_KVERS_
+Description: Redhat cluster - kernel modules
+ This package contains the RHCS
+ kernel modules built against the _KVERS_ linux tree.

--- redhat-cluster-source-_KVERS_-postinst.modules.in.orig	2006-05-13 21:26:40.0 +0200
+++ redhat-cluster-source-_KVERS_-postinst.modules.in	2006-04-26 12:06:51.0 +0200
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+if [ `uname -r` = _KVERS_ ] ; then
+   depmod -a 
+fi
+
+#DEBHELPER#


Bug#366498: Details

2006-05-13 Thread Gémes Géza

redhat-cluster-source package is missing a debian directory and a modass
entry, therefore cannot be successfully built with module-assistant


  

The attached patch (against the debian subdirectory) fixes the problem.

Geza
*** redhat-cluster-source.install	2006-05-09 22:28:23.0 +0200
--- redhat-cluster-source.install.orig	2006-05-13 20:18:45.0 +0200
***
*** 1,2 
  build-source/redhat-cluster.tar.bz2 usr/src
- build-source/redhat-cluster-source usr/share/modass/packages
\ No newline at end of file
--- 1 
*** rules	2006-05-12 21:51:21.0 +0200
--- rules.orig	2006-05-13 20:18:45.0 +0200
***
*** 58,75 
  
  $(STAMPS_DIR)/setup-source: $(STAMPS_DIR)/source
  	@rm -rf $(BUILD_DIR)/build-source
! 	mkdir -p $(BUILD_DIR)/build-source/modules/redhat-cluster-source
! 	cp -al $(BUILD_DIR)/source/cman-kernel $(BUILD_DIR)/build-source/modules/redhat-cluster-source/
! 	cp -al $(BUILD_DIR)/source/dlm-kernel $(BUILD_DIR)/build-source/modules/redhat-cluster-source/
! 	cp -al $(BUILD_DIR)/source/gfs-kernel $(BUILD_DIR)/build-source/modules/redhat-cluster-source/
! 	cp -al $(BUILD_DIR)/source/gnbd-kernel $(BUILD_DIR)/build-source/modules/redhat-cluster-source/
! 	mkdir -p $(BUILD_DIR)/build-source/modules/redhat-cluster-source/debian
! 	cp -al $(BUILD_DIR)/../{changelog,compat,copyright} $(BUILD_DIR)/build-source/modules/redhat-cluster-source/debian/
! 	cp -al $(BUILD_DIR)/../rules.source $(BUILD_DIR)/build-source/modules/redhat-cluster-source/debian/rules
! 	cp -al $(BUILD_DIR)/../control.source $(BUILD_DIR)/build-source/modules/redhat-cluster-source/debian/control.modules.in
! 	cp -al $(BUILD_DIR)/../redhat-cluster-source-_KVERS_-postinst.modules.in $(BUILD_DIR)/build-source/modules/redhat-cluster-source/debian/postinst.modules.in
! 	ln -sf default.sh redhat-cluster-source
! 	cp -al redhat-cluster-source $(BUILD_DIR)/build-source/
  	touch $@
  
  build: $(STAMPS_DIR)/build
--- 58,67 
  
  $(STAMPS_DIR)/setup-source: $(STAMPS_DIR)/source
  	@rm -rf $(BUILD_DIR)/build-source
! 	mkdir -p $(BUILD_DIR)/build-source/modules
! 	cp -al $(BUILD_DIR)/source/cman-kernel/src $(BUILD_DIR)/build-source/modules/cman
! 	cp -al $(BUILD_DIR)/source/dlm-kernel/src $(BUILD_DIR)/build-source/modules/dlm
! 	cp -al $(BUILD_DIR)/source/gfs-kernel/src $(BUILD_DIR)/build-source/modules/gfs
  	touch $@
  
  build: $(STAMPS_DIR)/build
***
*** 147,150 
  
  binary: binary-arch binary-indep
  .PHONY: build clean binary-indep binary-arch binary install
- 
--- 139,141 


Bug#366498: Details

2006-05-09 Thread Gémes Géza
redhat-cluster-source package is missing a debian directory and a modass
entry, therefore cannot be successfully built with module-assistant


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]