The following patch set contains the neccesary changes to integrate the anyterm web terminal into the ovirt framework. Changes, as provided in the patchset, are neccessary to the server, node, and node-image for everything to work properly. Additionally the anyterm rpm must be available to be able to be pulled into a node on installation / first-boot. This will be provided (along with a tarball of the changes which I made to the anyterm codebase) in a follow up email shortly. The anyterm rpm should be provided in the public ovirt repo, and subsequently in fedora in the near future.
Mohammed Morsi
2009-Mar-20 16:55 UTC
[Ovirt-devel] [PATCH node] add anyterm to node requirements and setup on startup
adds anyterm rpm dependency to ovirt node spec and sets up
anyterm on node instantation by setting the service to
start by default and making the necessary anyterm
sysconfig changes
---
ovirt-node.spec.in | 1 +
scripts/ovirt-functions | 5 +++++
scripts/ovirt-install-node-stateful | 2 ++
scripts/ovirt-install-node-stateless | 2 ++
4 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/ovirt-node.spec.in b/ovirt-node.spec.in
index 02e90ce..8ba3288 100644
--- a/ovirt-node.spec.in
+++ b/ovirt-node.spec.in
@@ -41,6 +41,7 @@ Requires: qemu-img
Requires: nc
Requires: grub
Requires: /usr/sbin/crond
+Requires: anyterm
ExclusiveArch: %{ix86} x86_64
%define app_root %{_datadir}/%{name}
diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
index c5c1a4e..52531c0 100755
--- a/scripts/ovirt-functions
+++ b/scripts/ovirt-functions
@@ -201,6 +201,11 @@ ovirt_setup_libvirtd() {
fi
}
+ovirt_setup_anyterm() {
+ sed -i -e 's/^# ANYTERM_CMD=bash/ANYTERM_CMD="virsh console
%p"/' \
+ /etc/sysconfig/anyterm
+}
+
md5() {
md5sum $1 2>/dev/null | (read MD5 filename; echo $MD5)
}
diff --git a/scripts/ovirt-install-node-stateful
b/scripts/ovirt-install-node-stateful
index 3ec1c29..9426c81 100755
--- a/scripts/ovirt-install-node-stateful
+++ b/scripts/ovirt-install-node-stateful
@@ -75,6 +75,7 @@ chkconfig libvirt-qpid on
chkconfig iptables on
chkconfig ntpdate on
chkconfig ntpd on
+chkconfig anyterm on
backup_file /etc/sysconfig/libvirtd
backup_file /etc/libvirt/qemu.conf
@@ -82,6 +83,7 @@ backup_file /etc/libvirt/libvirtd.conf
backup_file /etc/sasl2/libvirt.conf
backup_file /etc/krb5.conf
ovirt_setup_libvirtd
+ovirt_setup_anyterm
backup_file /etc/sysconfig/iptables
# We open up anything coming from ovirtbr0 to this node, since it
diff --git a/scripts/ovirt-install-node-stateless
b/scripts/ovirt-install-node-stateless
index 705c491..cceb048 100755
--- a/scripts/ovirt-install-node-stateless
+++ b/scripts/ovirt-install-node-stateless
@@ -20,8 +20,10 @@ chkconfig --level 3 ovirt-early on
chkconfig --level 3 ovirt on
chkconfig --level 3 ovirt-post on
chkconfig --level 3 collectd on
+chkconfig --level 3 anyterm on
ovirt_setup_libvirtd
+ovirt_setup_anyterm
# make sure we don't autostart virbr0 on libvirtd startup
rm -f /etc/libvirt/qemu/networks/autostart/default.xml
--
1.6.0.6
Mohammed Morsi wrote:> The following patch set contains the neccesary changes to > integrate the anyterm web terminal into the ovirt framework. > > Changes, as provided in the patchset, are neccessary to the server, > node, and node-image for everything to work properly. > > Additionally the anyterm rpm must be available to be able to be pulled > into a node on installation / first-boot. This will be provided (along > with a tarball of the changes which I made to the anyterm codebase) > in a follow up email shortly. The anyterm rpm should be provided > in the public ovirt repo, and subsequently in fedora in the near > future. > > _______________________________________________ > Ovirt-devel mailing list > Ovirt-devel at redhat.com > https://www.redhat.com/mailman/listinfo/ovirt-devel >As mentioned, attached is the anyterm rpm and tarball of changes I made to the codebase (including the spec). -Mo -------------- next part -------------- A non-text attachment was scrubbed... Name: anyterm-1.1.29-0.1.x86_64.rpm Type: application/x-rpm Size: 161639 bytes Desc: not available URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090320/e7514372/attachment.rpm> -------------- next part -------------- A non-text attachment was scrubbed... Name: anyterm-changes.tgz Type: application/x-compressed-tar Size: 2113 bytes Desc: not available URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090320/e7514372/attachment.bin>
On Fri, Mar 20, 2009 at 5:55 PM, Mohammed Morsi <mmorsi at redhat.com> wrote:> The anyterm rpm should be provided > in the public ovirt repo, and subsequently in fedora in the near > future.I couldn't find Fedora review request in bugzilla - please open one: http://fedoraproject.org/wiki/PackageMaintainers/Join#Create_Your_Review_Request