debian/0000775000000000000000000000000012301100217007153 5ustar debian/libopennebula-java-doc.javadoc0000664000000000000000000000002712202431515015014 0ustar src/oca/java/share/doc debian/opennebula.README.Debian0000664000000000000000000001074312202431515013360 0ustar ========================================= opennebula Debian package ========================================= Fresh install ----------------------------------------- 'opennebula' Debian package contains OpenNebula Controller which will manage all nodes from your cloud. After installation of this package, OpenNebula daemon will start. The daemon can be managed like this: root@controller> /etc/init.d/opennebula [start|stop|restart] Login as the 'oneadmin' user: root@controller> su - oneadmin And use the OpenNebula CLI: oneadmin@controller> oneuser list Upgrading ----------------------------------------- OpenNebula requires the user to run a script to update an existing database to the installed version. You will know when you need to run the script when the following message is displayed after upgrading: ------------------- #Database version mismatch. oned failed to start ------------------- To upgrade the Database run oneadmin@controller> onedb upgrade -v --sqlite /var/lib/one/one.db Add a new host (node) in OpenNebula pool ----------------------------------------- 1. Install 'opennebula-node' debian package in destination host root@node01> apt-get install opennebula-node 2. Copy controller ssh key to node01 root@controller> su - oneadmin oneadmin@controller> cat $HOME/.ssh/id_rsa.pub root@node01> su - oneadmin oneadmin@node01> vi $HOME/.ssh/authorized_keys 3. Test an connection from controller to node01 root@controller> su - oneadmin oneadmin@controller> ssh oneadmin@node01 The authenticity of host 'node01 (192.168.0.2)' can't be established. RSA key fingerprint is []. Are you sure you want to continue connecting (yes/no)? [yes] Warning: Permanently added 'node01,192.168.0.2' (RSA) to the list of known hosts. oneadmin@node01> 4. Add this host into OpenNebula pool oneadmin@controller> onehost create node01 --im im_kvm --vm vmm_kvm --net dummy 5. Check node registration on controller oneadmin@controller> onehost list ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM AMEM STAT 0 node01 - 0 0 0 100 0K 0K 0K on Sample setup ----------------------------------------- Here is a sample setup which is adapted from It's based on a simple and small image of TTYLinux Download a tarball from OpenNebula project : oneadmin@controller> cd oneadmin@controller> mkdir one-templates oneadmin@controller> cd one-templates oneadmin@controller> wget http://dev.opennebula.org/attachments/download/355/ttylinux.tar.gz oneadmin@controller> tar xvzf ttylinux.tar.gz Then, create a first virtual network (using virbr0 as bridge by default) : oneadmin@controller> vi small_network.net ------------------- NAME = "Small network" TYPE = FIXED # virbr0 = bridge device used by libvirt /etc/libvirt/qemu/networks/default.xml BRIDGE = virbr0 LEASES = [ IP="192.168.122.2"] ------------------- oneadmin@controller> onevnet create small_network.net oneadmin@controller> onevnet list ID USER GROUP NAME CLUSTER TYPE BRIDGE LEASES 0 oneadmin oneadmin Small network - F virbr0 0 Import VM image into default datastore. Note that /var/lib/one is not allowed to copy images from by default. Please use other tmp dir (e.g. /var/tmp/) for this test. oneadmin@controller> vi image.one ------------------- NAME = ttylinux PATH = "/var/tmp/ttylinux.img" TYPE = OS ------------------- oneadmin@controller> cp ttylinux.img /var/tmp/ttylinux.img oneadmin@controller> oneimage create image.one --datastore default oneadmin@controller> oneimage list ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS 0 oneadmin oneadmin ttylinux default 40M OS No rdy 0 Finally, you can create the template configuration for this small VM : oneadmin@controller> vi ttylinux.one ------------------- NAME = ttylinux CPU = 0.1 MEMORY = 64 DISK = [ IMAGE_ID = 0 ] NIC = [ NETWORK_ID = 0 ] FEATURES = [ acpi="no" ] GRAPHICS = [ type = "vnc", listen = "0.0.0.0" ] ------------------- oneadmin@controller> onevm create ttylinux.one VM has been autostarted and deployed on one of your host. You can SSH to it (login is root and password is password) : oneadmin@controller> onevm show ttylinux|grep IP IP=192.168.122.2 oneadmin@controller> ssh root@192.168.122.2 debian/opennebula.cron.hourly.disabled0000664000000000000000000000222512202431515015266 0ustar #!/bin/sh # hourly cronjob to the opennebula package that extracts the # public keys for each host + known_hosts, # and generates a distribution script for # them, which is then run on each host using the monitoring mechanism. # # This way, the oneadmin users on every host can ssh to all others. ONEHOME=/var/lib/one ONEUSER=oneadmin if [ -f /usr/bin/onehost ] then tmpfile=$(mktemp $ONEHOME/savekeys.sh.XXXXXXXX) chown $ONEUSER $tmpfile chmod +x $tmpfile echo '#!/bin/sh' > $tmpfile echo 'cat << EOK > $HOME/.ssh/authorized_keys.tmp' >> $tmpfile sudo -u oneadmin onehost -l id -f state=on list | tail -n +2 | while read hostid do sudo -u oneadmin onehost show $hostid | grep PUBKEY= | cut -d= -f2- >> $tmpfile done cat $ONEHOME/.ssh/id_?sa.pub >> $tmpfile echo 'EOK' >> $tmpfile echo 'mv $HOME/.ssh/authorized_keys.tmp $HOME/.ssh/authorized_keys' >> $tmpfile if [ -f "$ONEHOME/.ssh/known_hosts" ] then echo 'cat << EOK > $HOME/.ssh/known_hosts.tmp' >> $tmpfile cat $ONEHOME/.ssh/known_hosts >> $tmpfile echo 'EOK' >> $tmpfile echo 'mv $HOME/.ssh/known_hosts.tmp $HOME/.ssh/known_hosts' >> $tmpfile fi mv $tmpfile $ONEHOME/savekeys.sh fi debian/manpages/0000775000000000000000000000000012202431515010756 5ustar debian/manpages/one.10000664000000000000000000000117112202431515011621 0ustar .TH ONE "1" "August 2010" "one" "User Commands" .SH NAME one \- OpenNebula startup script .SH SYNOPSIS one .SH DESCRIPTION .B one start or stop OpenNebula core and scheduler .SH COMMANDS .PP start .IP start the oned and mm_sched services .PP stop .IP stop the oned and mm_sched services .SH COPYRIGHT OpenNebula is Copyright 2002\-2010, Distributed Systems Architecture Group, Universidad Complutense de Madrid (dsa\-research.org) .SH AUTHOR This manual page was written by Damien Raude-Morvan , for the Debian GNU/Linux system (but may be used by others). .SH "SEE ALSO" .BR oned (1), .BR mm_sched (1) debian/manpages/mm_sched.10000664000000000000000000000125512202431515012622 0ustar .TH MM_SCHED "1" "August 2010" "mm_sched" "User Commands" .SH NAME mm_sched \- OpenNebula scheduler process .SH SYNOPSIS mm_sched .SH DESCRIPTION .B mm_sched is OpenNebula scheduler process, in charge of the VM to cluster node matching. .B mm_sched is started by .BR one (1) startup script .SH FILES .I /var/log/one/sched.log .RS The scheduler log file. .SH COPYRIGHT OpenNebula is Copyright 2002\-2010, Distributed Systems Architecture Group, Universidad Complutense de Madrid (dsa\-research.org) .SH AUTHOR This manual page was written by Damien Raude-Morvan , for the Debian GNU/Linux system (but may be used by others). .SH "SEE ALSO" .BR one (1), .BR oned (1) debian/manpages/occi-server.10000664000000000000000000000133612202431515013264 0ustar .TH OCCI-SERVER "1" "August 2010" "occi-server" "User Commands" .SH NAME occi-server \- OpenNebula OCCI service .SH SYNOPSIS occi\-server .SH DESCRIPTION .B occi\-server start or stop OpenNebula OCCI service .SH COMMANDS .PP start .IP start the OCCI service .PP stop .IP stop the OCCI service .SH FILES .I /etc/occi-server.conf .RS The OCCI service configuration file. .RE .I /var/log/one/occi-server.log .RS The OCCI server log file. .SH COPYRIGHT OpenNebula is Copyright 2002\-2010, Distributed Systems Architecture Group, Universidad Complutense de Madrid (dsa\-research.org) .SH AUTHOR This manual page was written by Damien Raude-Morvan , for the Debian GNU/Linux system (but may be used by others).debian/manpages/oned.10000664000000000000000000000135412202431515011770 0ustar .TH ONED "1" "August 2010" "oned" "User Commands" .SH NAME oned \- OpenNebula core process .SH SYNOPSIS oned .SH DESCRIPTION .B oned is OpenNebula core process, attends the CLI requests, manages the pools and all the components. .B oned is started by .BR one (1) startup script .SH FILES .I /etc/oned.conf .RS The main OpenNebula configuration file. .RE .I /var/log/one/oned.log .RS The core OpenNebula log file. .SH COPYRIGHT OpenNebula is Copyright 2002\-2010, Distributed Systems Architecture Group, Universidad Complutense de Madrid (dsa\-research.org) .SH AUTHOR This manual page was written by Damien Raude-Morvan , for the Debian GNU/Linux system (but may be used by others). .SH "SEE ALSO" .BR one (1), .BR mm_sched (1) debian/manpages/sunstone-server.10000664000000000000000000000146512202431515014230 0ustar .TH SUNSTONE-SERVER "1" "June 2011" "sunstone-server " "User Commands" .SH NAME sunstone-server \- OpenNebula Sunstone web control interface .SH SYNOPSIS .B sunstone-server [\fI-H host\fR] [\fI-p port\fR] .SH DESCRIPTION \fB\-H\fR: Host for the Sunstone server, default value: localhost \fB\-p\fR: Port for incoming connections, default value: 9869 .PP Usage: sunstone\-server [\-H host] [\-p port] .PP \fB\-H\fR: Host for the Sunstone server, default value: localhost \fB\-p\fR: Port for incoming connections, default value: 9869 .SH COPYRIGHT OpenNebula is Copyright 2002\-2011, Distributed Systems Architecture Group, Universidad Complutense de Madrid (dsa\-research.org) .SH AUTHOR This manual page was written by Damien Raude-Morvan , for the Debian GNU/Linux system (but may be used by others). debian/manpages/econe-server.10000664000000000000000000000137012202431515013436 0ustar .TH ECONE-SERVER "1" "August 2010" "econe-server" "User Commands" .SH NAME econe-server \- OpenNebula EC2 Query service .SH SYNOPSIS econe\-server .SH DESCRIPTION .B econe\-server start or stop OpenNebula EC2 Query service .SH COMMANDS .PP start .IP start the EC2 Query service .PP stop .IP stop the EC2 Query service .SH FILES .I /etc/econe.conf .RS The EC2 Query service configuration file. .RE .I /var/log/one/econe-server.log .RS The econe server log file. .SH COPYRIGHT OpenNebula is Copyright 2002\-2010, Distributed Systems Architecture Group, Universidad Complutense de Madrid (dsa\-research.org) .SH AUTHOR This manual page was written by Damien Raude-Morvan , for the Debian GNU/Linux system (but may be used by others).debian/opennebula.links0000664000000000000000000000066312202431515012362 0ustar /usr/share/javascript/jquery-ui /usr/share/opennebula/ozones/public/vendor/jQueryUI /usr/share/javascript/jquery /usr/share/opennebula/ozones/public/vendor/jQuery /usr/share/javascript/jquery-ui /usr/share/opennebula/occi/ui/public/vendor/jQueryUI /usr/share/javascript/jquery /usr/share/opennebula/occi/ui/public/vendor/jQuery /usr/share/novnc/include /usr/share/opennebula/occi/ui/public/vendor/noVNC/include debian/NEWS0000664000000000000000000000103212202431515007656 0ustar opennebula (3.2.1-1) unstable; urgency=low OpenNebula 3.x requires the user to run a script to update an existing database to the installed version. You will know when you need to run the script when the following message is displayed after upgrading: ------------------- #Database version mismatch. oned failed to start ------------------- To upgrade the Database run oneadmin@controller> onedb upgrade -v --sqlite /var/lib/one/one.db -- Damien Raude-Morvan Fri, 18 May 2012 19:47:56 +0200 debian/opennebula-tools.manpages0000664000000000000000000000131212202431515014163 0ustar share/man/econe-allocate-address.1 share/man/econe-associate-address.1 share/man/econe-describe-addresses.1 share/man/econe-describe-images.1 share/man/econe-describe-instances.1 share/man/econe-disassociate-address.1 share/man/econe-register.1 share/man/econe-release-address.1 share/man/econe-run-instances.1 share/man/econe-terminate-instances.1 share/man/econe-upload.1 share/man/occi-compute.1 share/man/occi-instance-type.1 share/man/occi-network.1 share/man/occi-storage.1 share/man/oneacl.1 share/man/oneauth.1 share/man/onecluster.1 share/man/onedatastore.1 share/man/onegroup.1 share/man/onehost.1 share/man/oneimage.1 share/man/onetemplate.1 share/man/oneuser.1 share/man/onevm.1 share/man/onevnet.1 debian/opennebula-sunstone.links0000664000000000000000000000041312202431515014227 0ustar /usr/share/javascript/jquery-ui /usr/share/opennebula/sunstone/public/vendor/jQueryUI /usr/share/javascript/jquery /usr/share/opennebula/sunstone/public/vendor/jQuery /usr/share/novnc/include /usr/share/opennebula/sunstone/public/vendor/noVNC/include debian/changelog0000664000000000000000000004406512301100212011031 0ustar opennebula (3.4.1-4.1ubuntu1) trusty; urgency=medium * Migrate to new xmlrpc-c - control: Build against libxmlrpc-c++8-dev -- Timo Aaltonen Wed, 19 Feb 2014 09:23:09 +0200 opennebula (3.4.1-4.1) unstable; urgency=medium * Non-maintainer upload. * Drop deprecated rubygems package from dependencies of ruby-opennebula (Closes: #735667) * Change dependency on thin1.8 to thin (Closes: #731557) -- Cédric Boutillier Fri, 17 Jan 2014 14:30:58 +0100 opennebula (3.4.1-4) unstable; urgency=low [ Damien Raude-Morvan ] * Add d/patches/java_oca_for_341.diff: Fix Java API (from one-3.4 branch in upstream repository). [ Martin Steigerwald ] * opennebula-sunstone: Add depencency to ruby-rack-protection. (Closes: #682670). * debian/copyright: Fix lintian warning W: opennebula source: syntax-error-in-dep5-copyright line 66: Duplicate field copyright. * debian/patches: Added descriptions and authors for some patches in order to fix lintian hint quilt-patch-missing-description: - sunstone_system_jquery.diff - ozones_system_jquery.diff - occi_system_jquery.diff [ Damien Raude-Morvan ] * Acknowledge NMU from gregor herrmann. Thanks! * d/control: Bump Standards-Version to 3.9.4. * d/rules: Fix FTBFS with latest libxmlrpc3-java. -- Damien Raude-Morvan Tue, 13 Aug 2013 15:19:03 +0200 opennebula (3.4.1-3.1) unstable; urgency=low * Non-maintainer upload. * Fix "fails to install, purge, and install again": opennebula-common.postinst: make sure that the homedir of the oneadmin user exists. (Closes: #681567) -- gregor herrmann Sat, 28 Jul 2012 23:38:02 +0200 opennebula (3.4.1-3) unstable; urgency=low * Add support for noVNC to SelfService and Sunstone UI: - Closes: #666079, #674583 - opennebula and opennebula-sunstone now Recommends: novnc. - Install links to /usr/share/novnc/include * Update d/opennebula.README.Debian for 3.4 release (use oneimage to deploy VM image into datastore). * d/{postinst,postrm}: Upgrade dpkg-statoverride to handle opennebula 3.4 datastores. * On -node, also add oneadmin user into kvm group. * Describe recommended ownership changes to /etc/libvirt/qemu.conf in -node.README.Debian (Closes: #673427). * d/patches/no_default_arch.diff: Don't default to ARCH=i686 for KVM, user will have to choose a default or set this in each template. (Closes: #673173). -- Damien Raude-Morvan Sat, 26 May 2012 01:21:12 +0200 opennebula (3.4.1-2) unstable; urgency=low * Upstream changed default port of Sunstone from 4567 to 9869 (remove conflicts with OCCI): - Update README.Debian. (Closes: #673013) - Update manpage. * For people using OpenNebula 2.x from backports describe database upgrade in NEWS.Debian. (Closes: #673014) * Update ttylinux.tar.gz location in README.Debian. (Closes: #673129). * Provide a quick-start documentation on SSL proxy setup for Sunstone. (Closes: #673010) * Try to rmdir /var/lib/one during package purge. (Closes: #668758). -- Damien Raude-Morvan Fri, 18 May 2012 19:45:43 +0200 opennebula (3.4.1-1) unstable; urgency=low * New upstream release: - d/patches/default_conf.diff: Drop, transfert manager is now handled on a datasatore basis. - d/patches/genisoimage.diff: Merged upstream. - d/patches/oneacct-system-wide-installation.patch: Merged upstream. - Refresh others patches. - Update *.install files. * Improve OCCI Self-Service UI integration: - Install into /usr/share/opennebula/occi/. - occi_system_jquery.diff: Use system wide jquery/jqueryui. - Add Recommends: libjs-jquery, libjs-jquery-ui for opennebula package. * Add Suggests: ruby-uuidtools for econe-server. * Install more manpages from upstream -- Damien Raude-Morvan Fri, 11 May 2012 19:27:43 +0200 opennebula (3.2.1-3) unstable; urgency=low * Fix FTBFS with GCC-4.7: Add missing include. (Closes: #672092). * d/control: Bump Standards-Version to 3.9.3, no changes needed. * d/copyright: Use copyright-format 1.0. * d/rules: Set occi-server.rb as executable (Closes: #663065). * d/opennebula.install: Install VirtualMachineOCCI.rb into /usr/lib/one/ruby/cloud/occi/ (Closes: #663072). * d/opennebula.install: Install html/js/image files for self-service portal (Closes: #663086). -- Damien Raude-Morvan Sun, 01 Apr 2012 14:20:40 +0200 opennebula (3.2.1-2) unstable; urgency=low * Fix "Overwrites the admin password on upgrades": Merge proposed patch from Guido Günther. (Closes: #666050). * Fix "File conflict with opennebula 2.2.1-1": Add Breaks/Replaces on opennebula (<< 3.2.1-1~) (Closes: #665952). * Fix "oneacct does not look in system wide locations for require's": Backport upstream fix from bugID:1063 (Closes: #663075). * opennebula-node Recommends: openssh-server | ssh-server (Closes: #665948). * d/README.Debian: Update for new onehost syntax (Closes: #665975). * d/rules: Enable security hardening options and -Wl,--as-needed. -- Damien Raude-Morvan Sun, 01 Apr 2012 13:20:07 +0200 opennebula (3.2.1-1) unstable; urgency=low [ Jaime Melis ] * New upstream release (3.2.1) - New package structure (Closes: #611282) - Network drivers (Closes: #657323) * Create password after installation * Sunstone init script (Closes: #657032 and Closes: #657030) * Enable sunstone_system_jquery.diff * Explain usage of controller as node (Closes: #657981) [ Damien Raude-Morvan ] * d/control: Wrap-and-sort. * Add lintian-overrides for ruby-script-but-no-ruby-dep because ruby-opennebula already depends on ruby | ruby-interpreter. * d/copyright: Update to DEP-5 latest release and cleanup. * d/opennebula.install: Don't install OCCI UI yet (need more work for FHS compliance). * d/rules: Add override to cleanup some extra-license-file. -- Damien Raude-Morvan Wed, 22 Feb 2012 20:29:46 +0100 opennebula (3.2.0-1) UNRELEASED; urgency=low * New upstream release (3.2.0) - Refresh all other patches for changes made upstream. - Disable node_creation_help.diff for now. - Disable sunstone_system_jquery.diff for now. * d/opennebula.manpages: Use upstream manpages when available. -- Jaime Melis Thu, 19 Jan 2012 18:01:12 +0100 opennebula (3.0.0-1) UNRELEASED; urgency=low * New upstream release (3.0.0): - d/patches/0015-Fix-scons-tests-for-xml-rpc-c-with-gcc-4.6.patch, d/patches/0017-Fix-compilation-warnings-with-gcc4.6.patch: Drop, merged upstream. - Refresh all other patches for changes made upstream. - Disable node_creation_help.diff for now. * d/opennebula.manpages: Use upstream manpages when available. * d/opennebula{,-doc}.install: Old script from /usr/lib/one/remotes/ and samples hooks, dropped. -- Damien Raude-Morvan Fri, 07 Oct 2011 19:58:12 +0200 opennebula (2.2.1-1) unstable; urgency=low * New upstream release. * Cherry-pick some patches from upstream git to fix FTBFS with GCC-4.6 (Closes: #628341) : - 0015-Fix-scons-tests-for-xml-rpc-c-with-gcc-4.6.patch - 0017-Fix-compilation-warnings-with-gcc4.6.patch * Bump Standards-Version to 3.9.2: no changes needed. * Create new arch:all "opennebula-sunstone" package for OpenNebula web GUI. -- Damien Raude-Morvan Tue, 28 Jun 2011 00:09:51 +0200 opennebula (2.2-1) UNRELEASED; urgency=low * New upstream release: - d/patches/fortify-source.diff, d/patches/ldflags_build.diff: dropped, merged upstream. - d/patches/linking.diff: refreshed. * d/copyright: Review for new upstream release (aka sunstone dependencies). -- Damien Raude-Morvan Sun, 08 May 2011 02:11:28 +0200 opennebula (2.0.1-6) unstable; urgency=low * xmlrpc-c 1.16 transition: - d/control: Build-Depends on libxmlrpc-c++4-dev instead of libxmlrpc-c3-dev. - d/rules: Drop --no-as-needed from DEB_LDFLAGS_APPEND. LP: #690779. * d/copyright: Upgrade to latest DEP-5 format. * d/patches/ldflags_build.diff: Refreshed. * d/patches/linking.diff: Explicit linking with libxml2 (ie. reorder LIBS). -- Damien Raude-Morvan Sun, 20 Feb 2011 17:55:44 +0100 opennebula (2.0.1-5) unstable; urgency=low * d/patches/ldflags_build.diff: Proposed patch from Jaime Melis to allow LDFLAGS setting in OpenNebula build process. Will be included in next upstream release. * d/rules: Use dpkg-buildflags to get LDFLAGS. Set DEB_LDFLAGS_APPEND=-Wl,--no-as-needed to fix build with no-add-needed linker changes. * d/patches/fortify-source.diff: Fix FTBFS when build with -D_FORTIFY_SOURCE=2 flag. * d/rules: Remove d/opennebula-node.postinst in clean target. * d/opennebula-node.postinst.in: opennebula-node on node without libvirt but with xen-utils was failing as group `libvirt' does not exist. Thanks to Łukasz Oleś for report and patch. -- Damien Raude-Morvan Thu, 30 Dec 2010 02:33:32 +0100 opennebula (2.0.1-4) unstable; urgency=low * d/opennebula{-node,}.{postint,postrm}: Fix puiparts failure in postrm. We cannot rely on adduser being present at package purge time. General cleanup of maintainer scripts. * d/opennebula-common.postrm: Don't delete user opennebula (keep uid/gid permanently) but disable it. -- Damien Raude-Morvan Tue, 07 Dec 2010 00:25:50 +0100 opennebula (2.0.1-3) unstable; urgency=low * d/control: move Depends on openssh-client from opennebula to opennebula-common (for ssh-keygen). Closes: #605110. * Using dpkg-statoverride instead of chown for postinst. -- Damien Raude-Morvan Sun, 05 Dec 2010 18:05:37 +0100 opennebula (2.0.1-2) unstable; urgency=low * d/rules: Fix FTBFS (Closes: #605042) by using dh_listpackages to detect if arch all packages (ie. opennebula-node) debhelper commands will act on. -- Damien Raude-Morvan Fri, 26 Nov 2010 20:15:09 +0100 opennebula (2.0.1-1) unstable; urgency=low * New upstream release. * d/rules: Use share/etc/init.d/one.debian as init.d script. * Refresh all patches. * d/{control, rules}: Allow users of cloud group to launch xm & xmtop from xen-utils-common (Closes: #604567): - Depends on libvirt-bin | xen-utils-4.0 - Bump dependencies on sudo to (>= 1.7.2p1) for /etc/sudoers.d feature. - Install /etc/sudoers.d/opennebula-node (in opennebula-node package). * d/opennebula.install: Install /var/lib/one/remotes * d/control: Set Maintainer as Debian OpenNebula Maintainers and myself as Uploaders. -- Damien Raude-Morvan Fri, 26 Nov 2010 01:52:15 +0100 opennebula (2.0-1) experimental; urgency=low * First upload to Debian (Closes: #500716): - Drop d/patches/fix_cppflags.diff: Merged upstream. - Drop d/*.examples: Already handled by upstream install.sh * New upstream release (2.0). * d/control: Add Recommends: lvm2, sudo, wget, genisoimage. - d/patches/genisoimage.diff: Use genisoimage instead of mkisofs. * d/rules, d/opennebula-node.postinst.in: Handle group assignment for oneadmin user, libvirt (Debian) and libvirtd (Ubuntu). * d/opennebula.{postinst,dirs}: creation of /var/lib/one/images with proper permissions. * d/control: Suggests libamazonec2-ruby for Amazon EC2 access. -- Damien Raude-Morvan Tue, 02 Nov 2010 19:01:04 +0100 opennebula (2.0~rc1-1) UNRELEASED; urgency=low * New upstream release (2.0 RC1). * Add d/opennebula.README and d/opennebula-node.README as simple startup how-to. * d/rules: Fix perms for non-executables files. * d/opennebula.init: Handle creation of /var/lock. * d/patches/default_conf.diff: Switch to tm_ssh as default Transport Manager. * d/control: Add Jaime Melis as Uploader. * Disable SSH keys distribution functionality (too much unstable for now): - d/patches/series: disable patch. - d/rules: Don't chmod shell script. - d/opennebula.cron.hourly is disabled. -- Damien Raude-Morvan Mon, 18 Oct 2010 20:15:11 +0200 opennebula (2.0~beta1-1) UNRELEASED; urgency=low * New upstream release (2.0 beta1): - shlib_links.diff: disabled. - refreshed other patches. - add B-D on libxml2-dev and libxslt1-dev * Drop libopennebula1 and libopennebula-dev packages (not provided by upstream for this release as OCA binding are preferred) * Add Java OCA bindings in libopennebula-java package - B-D on libws-commons-util-java, libxmlrpc3-common-java, libxmlrpc3-client-java, javahelper, default-jdk * Add Java OCA bindings javadoc to libopennebula-java-doc package * Enable mysql support: - B-D on libmysql++-dev - Recommends libmysql-ruby - Suggests mysql-server * Add "libvirt" and "cloud" group to oneadmin user in postinst. * Depends on libsequel-ruby for oneauth (DB access). * Rebuild parser/lexer during build: - B-D on flex and bison - add "parser=yes" option to scons * Harden cron.hourly: don't do anything if onehost binary is uninstalled. * Set myself as Maintainer and Soren Hansen as Uploaders * Install bash completion feature for one* CLI. -- Damien Raude-Morvan Fri, 20 Aug 2010 00:50:13 +0200 opennebula (1.4.0-1) UNRELEASED; urgency=low * New upstream release (LP: #510904): - freecpu_kvm.diff: merged. - libvirt_smp.diff: fixed by upstream. - kvm_by_default.diff: merged. - fix-gcc44-ftbfs.patch: merged. - tools_table_output.diff: fixed by upstream. - acpi-inverted.diff: fixed by upstream. - refreshed other patches. - Fixed issues with KVM migration (LP: #323359, #322779) * d/control: Add myself tu Uploaders. * Switch to 3.0 (quilt) source format. * d/control: Improve packages descriptions. * d/control: Hardening dependencies between opennebula packages. * d/control: Add Depends on rubygems and libpassword-ruby for OCCI API. * d/copyright: Use DEP-5 format and complete review. * Bump Standards-Version to 3.9.1: - d/watch: Add a watch file to monitor upstream releases. - d/control: Move libopennebula-dev to libdevel section. - Add manpages (from help2man). - d/control: Add Vcs-* fields to GIT. - d/rules: Don't install /var/run and /var/lock directory (created by init script). * Switch to dh 7 style for debian/rules. -- Damien Raude-Morvan Sun, 01 Aug 2010 17:00:28 +0200 opennebula (1.2-0ubuntu6) karmic; urgency=low * debian/patches/fix-gcc44-ftbfs.patch: Fixes FTBFS. -- Chuck Short Mon, 26 Oct 2009 22:19:48 -0400 opennebula (1.2-0ubuntu5) jaunty; urgency=low * No-change rebuild to fix lpia shared library dependencies. -- Colin Watson Thu, 19 Mar 2009 14:45:27 +0000 opennebula (1.2-0ubuntu4) jaunty; urgency=low * Fix "ACPI setting is backwards" (LP: #342183) -- Soren Hansen Fri, 13 Mar 2009 11:00:44 +0100 opennebula (1.2-0ubuntu3) jaunty; urgency=low * Add ruby dependency for opennebula-node. (LP: #329258) * Always show ssh setup help (LP: #329507) -- Soren Hansen Fri, 20 Feb 2009 13:51:51 +0100 opennebula (1.2-0ubuntu2) jaunty; urgency=low * Also distribute known_hosts through the key distribution mechanism. (LP: #331838) -- Soren Hansen Fri, 20 Feb 2009 10:50:18 +0100 opennebula (1.2-0ubuntu1) jaunty; urgency=low * Update to new upstream release. * Add missing debhelper snippet in opennebula's postinst. -- Soren Hansen Wed, 11 Feb 2009 13:46:03 +0100 opennebula (1.1.85+svn329-0ubuntu5) jaunty; urgency=low * Fix broken call to chown in opennebula's postinst. -- Soren Hansen Fri, 06 Feb 2009 10:16:27 +0100 opennebula (1.1.85+svn329-0ubuntu4) jaunty; urgency=low * It turns out that the nodes also benefit from having an SSH key, so move the key generation code to opennebula-common. * ssh_pubkey_info.diff: - Add ssh_pubkey.sh which extracts the remote oneadmin user's ssh public key, so that it's available in the host info. - Add ssh_pubkey.sh to list of probes to run for kvm hosts. * Add an hourly cronjob to the opennebula package that extracts the public keys for each host, and generates a distribution script for them, which is then run on each host using the monitoring mechanism. This way, the oneadmin users on every host can ssh to all others. * tools_table_output.diff: - Change the onevm, onehost, and onevnet table output slightly to make it more easily parsable. -- Soren Hansen Fri, 30 Jan 2009 17:04:23 +0100 opennebula (1.1.85+svn329-0ubuntu3) jaunty; urgency=low * Fix up some missing debhelper bits in maintainer scripts. -- Soren Hansen Thu, 29 Jan 2009 00:22:13 +0100 opennebula (1.1.85+svn329-0ubuntu2) jaunty; urgency=low * freecpu_kvm.diff: - Return the correct amount of free and used cpu for kvm hosts. (ie. adjust for number of CPU's). * libvirt_smp.diff: - Add an optional VCPU parameter to the VM definitions, letting the user specify the number of virtual CPU's to give to the VM. If not given, round up the CPU setting to the nearest integer, and use that instead. * shlib_links.diff: - Make liboneapi.so.1.2 the real file and the .so.1 and .so the symlinks. * Fix speling mistaek in node_creation_help.diff. (LP: #322211) -- Soren Hansen Wed, 28 Jan 2009 23:49:40 +0100 opennebula (1.1.85+svn329-0ubuntu1) jaunty; urgency=low * Initial upload. * Patches included: - kvm_by_default.diff: + Changes the shipped configuration file to default to kvm. - node_creation_help.diff: + Output some extra information from "onehost create" that should help the process of adding new nodes. * Added man pages (generated by help2man). * Made scons clean targets (and hence debian/rules clean) not fail in the absence of libxmlrpc. -- Soren Hansen Mon, 19 Jan 2009 13:29:05 +0100 debian/opennebula.install0000664000000000000000000001471212202431515012710 0ustar dist/var/lib/one/* /var/lib/one/ dist/etc/one/defaultrc /etc/one/ dist/etc/one/econe.conf /etc/one/ dist/etc/one/group.default /etc/one/ dist/etc/one/occi-server.conf /etc/one/ dist/etc/one/oned.conf /etc/one/ dist/etc/one/ozones-server.conf /etc/one/ dist/etc/one/sched.conf /etc/one/ dist/etc/one/vmwarerc /etc/one/ dist/etc/one/auth/x509_auth.conf /etc/one/auth/ dist/etc/one/auth/ldap_auth.conf /etc/one/auth/ dist/etc/one/auth/quota.conf /etc/one/auth/ dist/etc/one/ec2query_templates/* /etc/one/ec2query_templates/ dist/etc/one/hm/* /etc/one/hm/ dist/etc/one/im_ec2/* /etc/one/im_ec2/ dist/etc/one/occi_templates/* /etc/one/occi_templates/ dist/etc/one/vmm_ec2/* /etc/one/vmm_ec2/ dist/etc/one/vmm_exec/* /etc/one/vmm_exec/ dist/usr/lib/one/sh/* /usr/lib/one/sh/ dist/usr/lib/one/mads/* /usr/lib/one/mads/ dist/usr/lib/one/ruby/CommandManager.rb /usr/lib/one/ruby/ dist/usr/lib/one/ruby/acct/oneacct.rb /usr/lib/one/ruby/acct/ dist/usr/lib/one/ruby/acct/monitoring.rb /usr/lib/one/ruby/acct/ dist/usr/lib/one/ruby/acct/accounting.rb /usr/lib/one/ruby/acct/ dist/usr/lib/one/ruby/acct/acctd.rb /usr/lib/one/ruby/acct/ dist/usr/lib/one/ruby/Ganglia.rb /usr/lib/one/ruby/ dist/usr/lib/one/ruby/OpenNebulaDriver.rb /usr/lib/one/ruby/ dist/usr/lib/one/ruby/scripts_common.rb /usr/lib/one/ruby/ dist/usr/lib/one/ruby/ldap_auth.rb /usr/lib/one/ruby/ dist/usr/lib/one/ruby/ssh_stream.rb /usr/lib/one/ruby/ dist/usr/lib/one/ruby/onedb/* /usr/lib/one/ruby/onedb/ dist/usr/lib/one/ruby/cloud/occi/VirtualNetworkOCCI.rb /usr/lib/one/ruby/cloud/occi/ dist/usr/lib/one/ruby/cloud/occi/VirtualNetworkPoolOCCI.rb /usr/lib/one/ruby/cloud/occi/ dist/usr/lib/one/ruby/cloud/occi/OCCIServer.rb /usr/lib/one/ruby/cloud/occi/ dist/usr/lib/one/ruby/cloud/occi/VirtualMachineOCCI.rb /usr/lib/one/ruby/cloud/occi/ dist/usr/lib/one/ruby/cloud/occi/ImagePoolOCCI.rb /usr/lib/one/ruby/cloud/occi/ dist/usr/lib/one/ruby/cloud/occi/VirtualMachinePoolOCCI.rb /usr/lib/one/ruby/cloud/occi/ dist/usr/lib/one/ruby/cloud/occi/UserOCCI.rb /usr/lib/one/ruby/cloud/occi/ dist/usr/lib/one/ruby/cloud/occi/UserPoolOCCI.rb /usr/lib/one/ruby/cloud/occi/ dist/usr/lib/one/ruby/cloud/occi/ImageOCCI.rb /usr/lib/one/ruby/cloud/occi/ # TODO report bug dist/usr/lib/one/sunstone/OpenNebulaVNC.rb /usr/lib/one/ruby/cloud/occi/ dist/usr/lib/one/ruby/cloud/occi/occi-server.rb /usr/share/opennebula/occi/ dist/usr/lib/one/ruby/cloud/occi/ui/templates/* /usr/share/opennebula/occi/ui/templates/ dist/usr/lib/one/ruby/cloud/occi/ui/views/* /usr/share/opennebula/occi/ui/views/ dist/usr/lib/one/ruby/cloud/occi/ui/public/css/* /usr/share/opennebula/occi/ui/public/css/ dist/usr/lib/one/ruby/cloud/occi/ui/public/customize/* /usr/share/opennebula/occi/ui/public/customize/ dist/usr/lib/one/ruby/cloud/occi/ui/public/images/* /usr/share/opennebula/occi/ui/public/images/ dist/usr/lib/one/ruby/cloud/occi/ui/public/js/* /usr/share/opennebula/occi/ui/public/js/ dist/usr/lib/one/ruby/cloud/occi/ui/public/locale/* /usr/share/opennebula/occi/ui/public/locale/ dist/usr/lib/one/ruby/cloud/occi/ui/public/vendor/crypto-js/ /usr/share/opennebula/occi/ui/public/vendor/ dist/usr/lib/one/ruby/cloud/occi/ui/public/vendor/dataTables/ /usr/share/opennebula/occi/ui/public/vendor/ dist/usr/lib/one/ruby/cloud/occi/ui/public/vendor/fileuploader/ /usr/share/opennebula/occi/ui/public/vendor/ dist/usr/lib/one/ruby/cloud/occi/ui/public/vendor/flot/ /usr/share/opennebula/occi/ui/public/vendor/ dist/usr/lib/one/ruby/cloud/occi/ui/public/vendor/jGrowl/ /usr/share/opennebula/occi/ui/public/vendor/ dist/usr/lib/one/ruby/cloud/occi/ui/public/vendor/jQueryLayout/ /usr/share/opennebula/occi/ui/public/vendor/ dist/usr/lib/one/ruby/cloud/occi/ui/public/vendor/xml2json/ /usr/share/opennebula/occi/ui/public/vendor/ dist/usr/lib/one/ruby/cloud/econe/econe-server.rb /usr/lib/one/ruby/cloud/econe/ dist/usr/lib/one/ruby/cloud/econe/ImageEC2.rb /usr/lib/one/ruby/cloud/econe/ dist/usr/lib/one/ruby/cloud/econe/EC2QueryServer.rb /usr/lib/one/ruby/cloud/econe/ dist/usr/lib/one/ruby/cloud/econe/views/* /usr/lib/one/ruby/cloud/econe/views/ dist/usr/lib/one/ruby/cloud/CloudServer.rb /usr/lib/one/ruby/cloud/ dist/usr/lib/one/ruby/cloud/CloudAuth/OCCICloudAuth.rb /usr/lib/one/ruby/cloud/CloudAuth/ dist/usr/lib/one/ruby/cloud/CloudAuth/EC2CloudAuth.rb /usr/lib/one/ruby/cloud/CloudAuth/ dist/usr/lib/one/ruby/one_vnm.rb /usr/lib/one/ruby/ dist/usr/lib/one/ruby/DriverExecHelper.rb /usr/lib/one/ruby/ dist/usr/lib/one/ruby/ActionManager.rb /usr/lib/one/ruby/ dist/usr/lib/one/ruby/VirtualMachineDriver.rb /usr/lib/one/ruby/ dist/usr/lib/one/ruby/quota.rb /usr/lib/one/ruby/ dist/usr/share/one/examples/* /usr/share/doc/opennebula/examples/ dist/usr/bin/occi-server /usr/bin/ dist/usr/bin/oned /usr/bin/ dist/usr/bin/mm_sched /usr/bin/ dist/usr/bin/onedb /usr/bin/ dist/usr/bin/tty_expect /usr/bin/ dist/usr/bin/econe-server /usr/bin/ dist/usr/bin/one /usr/bin/ dist/usr/bin/oneacctd /usr/bin/ dist/usr/bin/oneacct /usr/bin/ dist/usr/bin/onequota /usr/bin/ # oZones dist/etc/one/ozones-server.conf /etc/one/ dist/usr/lib/one/ozones/ozones-server.rb /usr/share/opennebula/ozones/ dist/usr/lib/one/ozones/lib/* /usr/share/opennebula/ozones/lib/ dist/usr/lib/one/ozones/templates/* /usr/share/opennebula/ozones/templates/ dist/usr/lib/one/ozones/models/* /usr/share/opennebula/ozones/models/ dist/usr/lib/one/ozones/public/js/* /usr/share/opennebula/ozones/public/js/ dist/usr/lib/one/ozones/public/css/* /usr/share/opennebula/ozones/public/css/ dist/usr/lib/one/ozones/public/images/* /usr/share/opennebula/ozones/public/images/ dist/usr/lib/one/ozones/public/vendor/jQueryLayout/ /usr/share/opennebula/ozones/public/vendor/ dist/usr/lib/one/ozones/public/vendor/dataTables/ /usr/share/opennebula/ozones/public/vendor/ dist/usr/lib/one/ozones/public/vendor/jGrowl/ /usr/share/opennebula/ozones/public/vendor/ dist/usr/bin/ozones-server /usr/bin/ dist/usr/bin/onezone /usr/bin/ dist/usr/bin/onevdc /usr/bin/ debian/opennebula-tools.lintian-overrides0000664000000000000000000000013312202431515016026 0ustar # Depends on ruby via ruby-opennebula opennebula-tools binary: ruby-script-but-no-ruby-dep debian/README.source0000664000000000000000000000063712202431515011350 0ustar Import new upstream release =========================== Upstream as some JAR files inside its source tarball so we may exclude them during import into GIT repository. (from inside existing git repository) git-import-orig -u1.9.80 --filter "*.jar" \ --filter-pristine-tar --pristine-tar \ ../one-2.0-beta1.tar.gz It's done by debian/orig-tar.sh (called from debian/rules get-orig-source target) debian/libopennebula-java.classpath0000664000000000000000000000023312202431515014623 0ustar src/oca/java/jar/org.opennebula.client.jar /usr/share/java/xmlrpc-common-3.1.jar /usr/share/java/xmlrpc-client-3.1.jar /usr/share/java/ws-commons-util.jar debian/opennebula-sunstone.install0000664000000000000000000000303712202431515014562 0ustar dist/etc/one/sunstone-server.conf /etc/one/ dist/etc/one/sunstone-plugins.yaml /etc/one/ dist/usr/lib/one/sunstone/*.rb /usr/share/opennebula/sunstone/ dist/usr/lib/one/sunstone/models/* /usr/share/opennebula/sunstone/models/ dist/usr/lib/one/sunstone/templates/* /usr/share/opennebula/sunstone/templates/ dist/usr/lib/one/sunstone/views/* /usr/share/opennebula/sunstone/views/ dist/usr/lib/one/sunstone/public/css/* /usr/share/opennebula/sunstone/public/css/ dist/usr/lib/one/sunstone/public/js/* /usr/share/opennebula/sunstone/public/js/ dist/usr/lib/one/sunstone/public/images/* /usr/share/opennebula/sunstone/public/images/ dist/usr/lib/one/sunstone/public/locale/* /usr/share/opennebula/sunstone/public/locale/ dist/usr/lib/one/sunstone/public/vendor/dataTables/ /usr/share/opennebula/sunstone/public/vendor/ dist/usr/lib/one/sunstone/public/vendor/fileuploader/ /usr/share/opennebula/sunstone/public/vendor/ dist/usr/lib/one/sunstone/public/vendor/flot/ /usr/share/opennebula/sunstone/public/vendor/ dist/usr/lib/one/sunstone/public/vendor/jGrowl/ /usr/share/opennebula/sunstone/public/vendor/ dist/usr/lib/one/sunstone/public/vendor/jQueryLayout/ /usr/share/opennebula/sunstone/public/vendor/ dist/usr/bin/sunstone-server /usr/bin/ dist/usr/lib/one/ruby/cloud/CloudAuth/SunstoneCloudAuth.rb /usr/lib/one/ruby/cloud/CloudAuth/ dist/usr/share/one/install_novnc.sh /usr/share/opennebula/sunstone/ debian/compat0000664000000000000000000000000212202431515010361 0ustar 7 debian/opennebula-sunstone.manpages0000664000000000000000000000004212202431515014700 0ustar debian/manpages/sunstone-server.1 debian/patches/0000775000000000000000000000000012202431515010612 5ustar debian/patches/no_default_arch.diff0000664000000000000000000000143312202431515014562 0ustar Description: Don't default to arch = "i686" for KVM driver. Remove ARCH setting in /etc/one/vmm_exec/vmm_exec_kvm.conf, letting user either change that default or in each VM template. . With this change, template images without ARCH attribute will: - See "No ARCH defined and no default provided." in vm.log - Be in FAILED VM state Author: Damien Raude-Morvan Last-Update: 2012-06-03 Bug-vendor: http://dev.opennebula.org/issues/1286 Bug-Debian: http://bugs.debian.org/673173 --- a/src/vmm_mad/exec/vmm_exec_kvm.conf +++ b/src/vmm_mad/exec/vmm_exec_kvm.conf @@ -31,7 +31,7 @@ #VCPU = 1 #MEMORY = 128 -OS = [ boot = "hd", arch = "i686" ] +OS = [ boot = "hd"] FEATURES = [ PAE = "no", ACPI = "yes" ] DISK = [ driver = "raw" , cache = "default"] debian/patches/sunstone_usr_share.diff0000664000000000000000000000113512202431515015375 0ustar Description: Change config.ru of Sunstone to use /usr/share/ Author: Damien Raude-Morvan Last-Update: 2011-10-07 Forwarded: no --- a/src/sunstone/bin/sunstone-server +++ b/src/sunstone/bin/sunstone-server @@ -19,7 +19,7 @@ if [ -z "$ONE_LOCATION" ]; then SUNSTONE_PID=/var/run/one/sunstone.pid - SUNSTONE_SERVER=/usr/lib/one/sunstone/sunstone-server.rb + SUNSTONE_SERVER=/usr/share/opennebula/sunstone/sunstone-server.rb SUNSTONE_LOCK_FILE=/var/lock/one/.sunstone.lock SUNSTONE_LOG=/var/log/one/sunstone.log SUNSTONE_LOG_ERROR=/var/log/one/sunstone.error debian/patches/gcc_4_7_ftbfs.diff0000664000000000000000000000101012202431515014025 0ustar Description: Fix FTBFS with GCC 4.7 src/scheduler/src/client/Client.cc: In member function 'void Client::read_oneauth(std::string&)': src/scheduler/src/client/Client.cc:70:34: error: 'getuid' was not declared in this scope Author: Damien Raude-Morvan Last-Update: 2012-05-08 Forwarded: no --- a/src/scheduler/src/client/Client.cc +++ b/src/scheduler/src/client/Client.cc @@ -25,6 +25,7 @@ #include #include #include +#include #include debian/patches/java_oca_for_341.diff0000664000000000000000000002325112202431515014447 0ustar Description: Java OCA updated to 3.4.1 Author: Carlos Martín Bug-vendor: http://dev.opennebula.org/issues/1294 Bug-vendor: http://dev.opennebula.org/issues/1291 Applied-Upstream: http://dev.opennebula.org/projects/opennebula/repository/revisions/03e697f911706e2f865204e876a4c377232f6d5d --- a/src/oca/java/src/org/opennebula/client/cluster/ClusterPool.java +++ b/src/oca/java/src/org/opennebula/client/cluster/ClusterPool.java @@ -31,6 +31,8 @@ */ public class ClusterPool extends Pool implements Iterable{ + public static final int NONE_CLUSTER_ID = -1; + private static final String ELEMENT_NAME = "CLUSTER"; private static final String INFO_METHOD = "clusterpool.info"; --- a/src/oca/java/src/org/opennebula/client/datastore/Datastore.java +++ b/src/oca/java/src/org/opennebula/client/datastore/Datastore.java @@ -18,6 +18,7 @@ import org.opennebula.client.Client; import org.opennebula.client.OneResponse; import org.opennebula.client.PoolElement; +import org.opennebula.client.cluster.ClusterPool; import org.w3c.dom.Node; /** @@ -62,12 +63,27 @@ * * @param client XML-RPC Client. * @param description A string containing the template of the datastore. + * @param clusterId Id of the cluster + * @return If successful the message contains the associated + * id generated for this Datastore. + */ + public static OneResponse allocate(Client client, + String description, int clusterId) + { + return client.call(ALLOCATE, description, clusterId); + } + + /** + * Allocates a new Datastore in OpenNebula. + * + * @param client XML-RPC Client. + * @param description A string containing the template of the datastore. * @return If successful the message contains the associated * id generated for this Datastore. */ public static OneResponse allocate(Client client, String description) { - return client.call(ALLOCATE, description); + return allocate(client, description, ClusterPool.NONE_CLUSTER_ID); } /** @@ -125,7 +141,7 @@ /** * Changes the owner/group - * + * * @param client XML-RPC Client. * @param id The id of the target datastore we want to modify. * @param uid The new owner user ID. Set it to -1 to leave the current one. @@ -139,7 +155,7 @@ /** * Changes the datastore permissions - * + * * @param client XML-RPC Client. * @param id The id of the target datastore. * @param owner_u 1 to allow, 0 deny, -1 do not change @@ -166,7 +182,7 @@ /** * Changes the permissions - * + * * @param client XML-RPC Client. * @param id The id of the target object. * @param octet Permissions octet, e.g. 640 @@ -179,7 +195,7 @@ /** * Changes the permissions - * + * * @param client XML-RPC Client. * @param id The id of the target object. * @param octet Permissions octed , e.g. 640 @@ -261,7 +277,7 @@ /** * Changes the owner/group - * + * * @param uid The new owner user ID. Set it to -1 to leave the current one. * @param gid The new group ID. Set it to -1 to leave the current one. * @return If an error occurs the error message contains the reason. @@ -273,7 +289,7 @@ /** * Changes the owner - * + * * @param uid The new owner user ID. * @return If an error occurs the error message contains the reason. */ @@ -284,7 +300,7 @@ /** * Changes the group - * + * * @param gid The new group ID. * @return If an error occurs the error message contains the reason. */ @@ -295,7 +311,7 @@ /** * Changes the datastore permissions - * + * * @param owner_u 1 to allow, 0 deny, -1 do not change * @param owner_m 1 to allow, 0 deny, -1 do not change * @param owner_a 1 to allow, 0 deny, -1 do not change --- a/src/oca/java/src/org/opennebula/client/host/Host.java +++ b/src/oca/java/src/org/opennebula/client/host/Host.java @@ -37,6 +37,8 @@ private static final String[] HOST_STATES = {"INIT", "MONITORING", "MONITORED", "ERROR", "DISABLED"}; + private static final String[] SHORT_HOST_STATES = + {"on", "on", "on", "err", "off"}; /** * Creates a new Host representation. @@ -264,15 +266,8 @@ */ public String shortStateStr() { - String st = stateStr(); - if(st == null) - return null; - else if(st.equals("ERROR")) - return "err"; - else if (st.equals("DISABLED")) - return "off"; - else - return "on"; + int state = state(); + return state != -1 ? SHORT_HOST_STATES[state()] : null; } /** --- a/src/oca/java/src/org/opennebula/client/image/Image.java +++ b/src/oca/java/src/org/opennebula/client/image/Image.java @@ -28,20 +28,21 @@ { private static final String METHOD_PREFIX = "image."; - private static final String ALLOCATE = METHOD_PREFIX + "allocate"; - private static final String INFO = METHOD_PREFIX + "info"; - private static final String DELETE = METHOD_PREFIX + "delete"; - private static final String UPDATE = METHOD_PREFIX + "update"; - private static final String ENABLE = METHOD_PREFIX + "enable"; - private static final String CHOWN = METHOD_PREFIX + "chown"; - private static final String CHMOD = METHOD_PREFIX + "chmod"; - private static final String CHTYPE = METHOD_PREFIX + "chtype"; + private static final String ALLOCATE = METHOD_PREFIX + "allocate"; + private static final String INFO = METHOD_PREFIX + "info"; + private static final String DELETE = METHOD_PREFIX + "delete"; + private static final String UPDATE = METHOD_PREFIX + "update"; + private static final String ENABLE = METHOD_PREFIX + "enable"; + private static final String PERSISTENT = METHOD_PREFIX + "persistent"; + private static final String CHOWN = METHOD_PREFIX + "chown"; + private static final String CHMOD = METHOD_PREFIX + "chmod"; + private static final String CHTYPE = METHOD_PREFIX + "chtype"; private static final String[] IMAGE_STATES = - {"INIT", "READY", "USED", "DISABLED"}; + {"INIT", "READY", "USED", "DISABLED", "LOCKED", "ERROR"}; private static final String[] SHORT_IMAGE_STATES = - {"init", "rdy", "used", "disa"}; + {"init", "rdy", "used", "disa", "lock", "err"}; private static final String[] IMAGE_TYPES = {"OS", "CDROM", "DATABLOCK"}; @@ -76,7 +77,7 @@ * * @param client XML-RPC Client. * @param description A string containing the template of the image. - * @param clusterId The cluster ID. If it is -1, this image + * @param datastoreId The cluster ID. If it is -1, this image * won't be added to any cluster. * * @return If successful the message contains the associated @@ -85,22 +86,9 @@ public static OneResponse allocate( Client client, String description, - int clusterId) + int datastoreId) { - return client.call(ALLOCATE, description, clusterId); - } - - /** - * Allocates a new Image in OpenNebula. - * - * @param client XML-RPC Client. - * @param description A string containing the template of the image. - * @return If successful the message contains the associated - * id generated for this Image. - */ - public static OneResponse allocate(Client client, String description) - { - return allocate(client, description, -1); + return client.call(ALLOCATE, description, datastoreId); } /** @@ -155,6 +143,19 @@ } /** + * Sets the Image as persistent or not persistent. + * + * @param client XML-RPC Client. + * @param id The image id of the target image we want to modify. + * @param persistent True to make it persistent, false non-persistent + * @return If successful the message contains the image id. + */ + public static OneResponse persistent(Client client, int id, boolean persistent) + { + return client.call(PERSISTENT, id, persistent); + } + + /** * Publishes or unpublishes an image. * * @param client XML-RPC Client. @@ -319,6 +320,37 @@ } /** + * Sets the Image as persistent or not persistent. + * + * @param persistent True for enabling, false for disabling. + * @return If successful the message contains the image id. + */ + public OneResponse persistent(boolean persistent) + { + return persistent(client, id, persistent); + } + + /** + * Sets the Image as persistent + * + * @return If successful the message contains the image id. + */ + public OneResponse persistent() + { + return persistent(true); + } + + /** + * Sets the Image as persistent or not persistent. + * + * @return If successful the message contains the image id. + */ + public OneResponse nonpersistent() + { + return persistent(false); + } + + /** * Publishes or unpublishes the image. * * @param publish True for publishing, false for unpublishing. --- a/src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java +++ b/src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java @@ -96,7 +96,7 @@ "shut", "shut", "fail", - "dele", + "clea", "unkn" }; /** @@ -489,7 +489,7 @@ */ public OneResponse restart() { - return action("shutdown"); + return action("restart"); } /** debian/patches/novnc_path.diff0000664000000000000000000000151112202431515013601 0ustar Description: Fix default path for websockify (noVNC) to use system package. Author: Damien Raude-Morvan Last-Update: 2012-05-26 Forwarded: not-needed --- a/src/cloud/occi/etc/occi-server.conf +++ b/src/cloud/occi/etc/occi-server.conf @@ -95,7 +95,7 @@ :vnc_enable: no :vnc_proxy_base_port: 33876 -:vnc_proxy_path: +:vnc_proxy_path: /usr/bin/websockify :vnc_proxy_support_wss: no :vnc_proxy_cert: :vnc_proxy_key: --- a/src/sunstone/etc/sunstone-server.conf +++ b/src/sunstone/etc/sunstone-server.conf @@ -63,7 +63,7 @@ # vnc_proxy_cert: Certificate to encrypt wss connections. # vnc_proxy_key: Key for wss connections. Only necessary if not included in cert. :vnc_proxy_base_port: 29876 -:vnc_proxy_path: +:vnc_proxy_path: /usr/bin/websockify :vnc_proxy_support_wss: no :vnc_proxy_cert: :vnc_proxy_key: debian/patches/opennebulajson_path.diff0000664000000000000000000000102512202431515015500 0ustar --- a/src/ozones/Server/ozones-server.rb +++ b/src/ozones/Server/ozones-server.rb @@ -35,11 +35,11 @@ OZONES_LOG = LOG_LOCATION + "/ozones-server.log" CONFIGURATION_FILE = ETC_LOCATION + "/ozones-server.conf" -$: << LIB_LOCATION + "/sunstone/models" +OZONES_ROOT_DIR = File.dirname(__FILE__) $: << RUBY_LIB_LOCATION $: << RUBY_LIB_LOCATION+'/cloud' -$: << LIB_LOCATION+'/ozones/models' -$: << LIB_LOCATION+'/ozones/lib' +$: << OZONES_ROOT_DIR+'/models' +$: << OZONES_ROOT_DIR+'/lib' $: << RUBY_LIB_LOCATION+"/cli" debian/patches/ssh_pubkey_info.diff0000664000000000000000000000171412202431515014636 0ustar Description: ssh_pubkey_info.diff: - Add ssh_pubkey.sh which extracts the remote oneadmin user's ssh public key, so that it's available in the host info. - Add ssh_pubkey.sh to list of probes to run for kvm hosts. Author: Soren Hansen Last-Update: 2010-09-13 Forwarded: no --- /dev/null +++ b/src/im_mad/remotes/common.d/ssh_pubkey.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +for type in dsa rsa +do + candidate="$HOME/.ssh/id_${type}.pub" + if [ -f "$candidate" ] + then + echo PUBKEY=\"`cat $candidate`\" + exit 0 + fi +done --- a/install.sh +++ b/install.sh @@ -370,7 +370,8 @@ IM_PROBES_COMMON_FILES="src/im_mad/remotes/common.d/architecture.sh \ src/im_mad/remotes/common.d/cpu.sh \ - src/im_mad/remotes/common.d/name.sh" + src/im_mad/remotes/common.d/name.sh \ + src/im_mad/remotes/common.d/ssh_pubkey.sh" IM_PROBES_XEN_FILES="src/im_mad/remotes/xen.d/xen.rb" debian/patches/occi_system_jquery.diff0000664000000000000000000000471312202431515015371 0ustar Description: Adapted path to javascript and stylesheet files. Adapted path to javascript and stylesheet files to match their Debian packaging in order to use system jquery libraries. Author: Damien Raude-Morvan and --- a/src/cloud/occi/lib/ui/templates/login.html +++ b/src/cloud/occi/lib/ui/templates/login.html @@ -3,9 +3,9 @@ OpenNebula Self-Service Login - + - + --- a/src/cloud/occi/lib/ui/views/index.erb +++ b/src/cloud/occi/lib/ui/views/index.erb @@ -6,14 +6,14 @@ - + - + - + debian/patches/ozones_usr_share.diff0000664000000000000000000000064112202431515015035 0ustar --- a/src/ozones/Server/bin/ozones-server +++ b/src/ozones/Server/bin/ozones-server @@ -18,7 +18,7 @@ if [ -z "$ONE_LOCATION" ]; then OZONES_PID=/var/run/one/ozones.pid - OZONES_LOCATION=/usr/lib/one/ozones + OZONES_LOCATION=/usr/share/opennebula/ozones OZONES_SERVER=$OZONES_LOCATION/ozones-server.rb OZONES_LOCK_FILE=/var/lock/one/.ozones.lock OZONES_LOG=/var/log/one/ozones-server.log debian/patches/occi_usr_share.diff0000664000000000000000000000065512202431515014442 0ustar --- a/src/cloud/occi/bin/occi-server +++ b/src/cloud/occi/bin/occi-server @@ -18,7 +18,7 @@ if [ -z "$ONE_LOCATION" ]; then OCCI_PID=/var/run/one/occi-server.pid - OCCI_SERVER=/usr/lib/one/ruby/cloud/occi/occi-server.rb + OCCI_SERVER=/usr/share/opennebula/occi/occi-server.rb OCCI_LOCK_FILE=/var/lock/one/.occi.lock OCCI_LOG=/var/log/one/occi-server.log OCCI_LOG_ERROR=/var/log/one/occi-server.error debian/patches/linking.diff0000664000000000000000000000113612202431515013100 0ustar Description: Explicit linking with "xml2". Should fix error building with "-Wl,--as-needed". Author: Damien Raude-Morvan Forwarded: no Last-Update: 2011-09-04 --- a/src/nebula/SConstruct +++ b/src/nebula/SConstruct @@ -58,7 +58,8 @@ 'nebula_sql', 'nebula_log', 'nebula_xml', - 'crypto' + 'crypto', + 'xml2' ]) if not env.GetOption('clean'): --- a/src/scheduler/src/sched/SConstruct +++ b/src/scheduler/src/sched/SConstruct @@ -39,6 +39,7 @@ 'nebula_core', 'nebula_template', 'crypto', + 'xml2' ]) if not sched_env.GetOption('clean'): debian/patches/node_creation_help.diff0000664000000000000000000000164112202431515015267 0ustar Description: node_creation_help.diff: - Output some extra information from "onehost create" that should help the process of adding new nodes. Author: Soren Hansen Last-Update: 2010-09-23 Forwarded: no --- a/src/cli/onehost +++ b/src/cli/onehost @@ -264,6 +264,13 @@ if is_successful?(result) puts "ID: " + host.id.to_s if ops[:verbose] + + puts "Success!\n\nNote: 'oneadmin' on this host needs to be able to ssh to oneadmin@" + ARGV[0] + ",\nso on this host, run:\n sudo -u oneadmin ssh " + ARGV[0] + "\n\nand verify the host's authenticity.\n\nOn " + ARGV[0] + ", run this:\n sudo apt-get install opennebula-node\n\n sudo tee /var/lib/one/.ssh/authorized_keys << EOT\n" + pubkeyfp = File.new('/var/lib/one/.ssh/id_rsa.pub', 'r') + pubkeys = pubkeyfp.readlines + pubkeys.each{|i| puts i} + puts "EOT" + exit 0 end debian/patches/sunstone_system_jquery.diff0000664000000000000000000000515012202431515016326 0ustar Description: Adapted path to javascript and stylesheet files. Adapted path to javascript and stylesheet files to match their Debian packaging in order to use system jquery libraries. Author: Damien Raude-Morvan and Jaime Melis --- a/src/sunstone/templates/login.html +++ b/src/sunstone/templates/login.html @@ -6,7 +6,7 @@ - + --- a/src/sunstone/templates/login_x509.html +++ b/src/sunstone/templates/login_x509.html @@ -5,7 +5,7 @@ - + --- a/src/sunstone/views/index.erb +++ b/src/sunstone/views/index.erb @@ -6,14 +6,14 @@ - + - + - + debian/patches/series0000664000000000000000000000046312202431515012032 0ustar #node_creation_help.diff #ssh_pubkey_info.diff linking.diff sunstone_usr_share.diff sunstone_system_jquery.diff ozones_usr_share.diff ozones_system_jquery.diff opennebulajson_path.diff gcc_4_7_ftbfs.diff occi_usr_share.diff occi_system_jquery.diff novnc_path.diff no_default_arch.diff java_oca_for_341.diff debian/patches/ozones_system_jquery.diff0000664000000000000000000000473112202431515015771 0ustar Description: Adapted path to javascript and stylesheet files. Adapted path to javascript and stylesheet files to match their Debian packaging in order to use system jquery libraries. Author: Jaime Melis and Damien Raude-Morvan --- a/src/ozones/Server/templates/index.html +++ b/src/ozones/Server/templates/index.html @@ -3,16 +3,16 @@ OpenNebula oZones - + - + - + - + --- a/src/ozones/Server/templates/login.html +++ b/src/ozones/Server/templates/login.html @@ -3,9 +3,9 @@ OpenNebula oZones Login - + - + debian/orig-tar.sh0000775000000000000000000000052112202431515011244 0ustar #!/bin/sh -e # $2 = version # $3 = file # Options # -u force upstream release number # --filter passed as tar --exclude option # --filter-pristine-tar also filter pristine-tar # --pristine-tar import pristine-tar delta git-import-orig -u$2 --filter "*.jar" \ --filter-pristine-tar --pristine-tar \ $3 debian/opennebula-common.postinst0000664000000000000000000000310412202431515014404 0ustar #!/bin/sh set -e ONEHOME=/var/lib/one ONE_GROUP=cloud ONE_USER=oneadmin create_cloudgroup() { if ! getent group $ONE_GROUP > /dev/null 2>&1; then addgroup --system $ONE_GROUP fi } create_oneuser() { if ! getent passwd $ONE_USER > /dev/null 2>&1; then adduser --system --ingroup $ONE_GROUP --home $ONEHOME --shell /bin/bash $ONE_USER else ONEHOME=`getent passwd $ONE_USER | cut -f6 -d:` # Renable user (give him a shell) usermod --shell /bin/bash $ONE_USER # Make sure ONEHOME exists, might have been removed on previous purge mkdir -p $ONEHOME fi } ssh_key_configure() { if ! [ -d "$ONEHOME/.ssh" ]; then mkdir "$ONEHOME/.ssh" chown $ONE_USER "$ONEHOME/.ssh" chmod 755 "$ONEHOME/.ssh" fi if ! [ -f "$ONEHOME/.ssh/authorized_keys" ]; then touch "$ONEHOME/.ssh/authorized_keys" chown $ONE_USER "$ONEHOME/.ssh/authorized_keys" chmod 600 "$ONEHOME/.ssh/authorized_keys" fi if ! [ -f "$ONEHOME/.ssh/id_rsa" ]; then su $ONE_USER -c "ssh-keygen -N '' -t rsa -f $ONEHOME/.ssh/id_rsa" fi } if [ "$1" = "configure" ]; then create_cloudgroup create_oneuser ssh_key_configure if ! [ -d "$ONEHOME/.one" ]; then mkdir "$ONEHOME/.one" chown $ONE_USER "$ONEHOME/.one" chmod 700 "$ONEHOME/.one" fi # Use dpkg-statoverride instead of direct chmod/chown if ! dpkg-statoverride --list $ONEHOME >/dev/null 2>&1; then dpkg-statoverride --update --add $ONE_USER root 755 $ONEHOME fi fi #DEBHELPER# debian/opennebula.postrm0000664000000000000000000000106112202431515012557 0ustar #!/bin/sh set -e ONEHOME=/var/lib/one ONE_GROUP=cloud ONE_USER=oneadmin if [ "$1" = "remove" ]; then # Remove logs rm -rf /var/log/one/* fi if [ "$1" = "purge" ]; then # purge stats overrides # stats overrides could already be removed by root dpkg-statoverride --remove /var/log/one || true dpkg-statoverride --remove $ONEHOME/.one || true dpkg-statoverride --remove $ONEHOME/images || true dpkg-statoverride --remove $ONEHOME/datastores/0 || true dpkg-statoverride --remove $ONEHOME/datastores/1 || true fi #DEBHELPER# debian/opennebula-node.sudoers0000664000000000000000000000035212202431515013644 0ustar # OpenNebula sudoers file # # Allow member of cloud group (ie. oneadmin) # to call /usr/sbin/xm and /usr/sbin/xentop # without password. # %cloud ALL=(ALL) NOPASSWD: /usr/sbin/xm * %cloud ALL=(ALL) NOPASSWD: /usr/sbin/xentop * debian/opennebula.bash-completion0000664000000000000000000000004412202431515014317 0ustar share/scripts/bash_completion.d/one debian/control0000664000000000000000000001632412301056133010573 0ustar Source: opennebula Section: utils Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian OpenNebula Maintainers Uploaders: Damien Raude-Morvan , Soren Hansen , Jaime Melis Build-Depends: bash-completion, bison, debhelper (>= 7.0.50~), default-jdk, flex, javahelper (>= 0.32), libmysql++-dev, libsqlite3-dev, libssl-dev, libws-commons-util-java, libxml2-dev, libxmlrpc-c++8-dev, libxmlrpc3-client-java (>= 3.1.3-6), libxmlrpc3-common-java (>= 3.1.3-6), libxslt1-dev, ruby, scons Standards-Version: 3.9.4 Homepage: http://opennebula.org/ Vcs-Git: git://git.debian.org/pkg-opennebula/opennebula.git Vcs-Browser: http://git.debian.org/?p=pkg-opennebula/opennebula.git Package: opennebula Architecture: any Depends: apg, genisoimage, opennebula-tools (= ${source:Version}), wget, ${misc:Depends}, ${shlibs:Depends} Recommends: libjs-jquery, libjs-jquery-ui, novnc Suggests: mysql-server, ruby-amazon-ec2, ruby-uuidtools Description: controller which executes the OpenNebula cluster services OpenNebula is an open source virtual infrastructure engine that enables the dynamic deployment and re-placement of virtual machines on a pool of physical resources. . ONE (OpenNebula) extends the benefits of virtualization platforms from a single physical resource to a pool of resources, decoupling the server not only from the physical infrastructure but also from the physical location. . This package contains OpenNebula Controller which manage all nodes in the cloud. Package: opennebula-sunstone Architecture: all Depends: libjs-jquery, libjs-jquery-ui, opennebula-common (= ${source:Version}), ruby-json, ruby-opennebula (= ${source:Version}), ruby-sinatra, ruby-rack-protection, thin, ${misc:Depends} Recommends: novnc Description: web interface to which executes the OpenNebula cluster services OpenNebula is an open source virtual infrastructure engine that enables the dynamic deployment and re-placement of virtual machines on a pool of physical resources. . ONE (OpenNebula) extends the benefits of virtualization platforms from a single physical resource to a pool of resources, decoupling the server not only from the physical infrastructure but also from the physical location. . OpenNebula Sunstone is the new OpenNebula Cloud Operations Center, a GUI intended for users and admins, that will simplify the typical management operations in private and hybrid cloud infrastructures. You will be able to manage your virtual resources in a similar way as you do with the CLI. Package: opennebula-common Architecture: all Depends: adduser, openssh-client, ${misc:Depends} Recommends: lvm2, sudo (>= 1.7.2p1) Description: empty package to create OpenNebula users and directories OpenNebula is an open source virtual infrastructure engine that enables the dynamic deployment and re-placement of virtual machines on a pool of physical resources. . ONE (OpenNebula) extends the benefits of virtualization platforms from a single physical resource to a pool of resources, decoupling the server not only from the physical infrastructure but also from the physical location. . This package sets up the basic directory structure and users needed to run an OpenNebula cloud. Package: opennebula-node Architecture: all Depends: adduser, libvirt-bin | xen-utils-4.0, opennebula-common (= ${source:Version}), ruby, ${misc:Depends} Recommends: openssh-server | ssh-server Description: empty package to prepare a machine as OpenNebula Node OpenNebula is an open source virtual infrastructure engine that enables the dynamic deployment and re-placement of virtual machines on a pool of physical resources. . ONE (OpenNebula) extends the benefits of virtualization platforms from a single physical resource to a pool of resources, decoupling the server not only from the physical infrastructure but also from the physical location. . This package prepares the machine for being a node in an OpenNebula cloud. Package: ruby-opennebula Section: ruby Architecture: all Depends: ruby | ruby-interpreter, ruby-mysql, ruby-password, ruby-sequel, ruby-sqlite3, ${misc:Depends}, ${ruby:Depends} Replaces: opennebula (<< 3.2.1-1~) Breaks: opennebula (<< 3.2.1-1~) Description: Ruby bindings for OpenNebula Cloud API (OCA) OpenNebula is an open source virtual infrastructure engine that enables the dynamic deployment and re-placement of virtual machines on a pool of physical resources. . ONE (OpenNebula) extends the benefits of virtualization platforms from a single physical resource to a pool of resources, decoupling the server not only from the physical infrastructure but also from the physical location. . This package provides the OpenNebula Cloud API (OCA) Ruby bindings. Package: opennebula-tools Architecture: all Depends: opennebula-common (= ${source:Version}), ruby-opennebula (= ${source:Version}), ${misc:Depends}, ${ruby:Depends} Description: Command-line tools for OpenNebula Cloud OpenNebula is an open source virtual infrastructure engine that enables the dynamic deployment and re-placement of virtual machines on a pool of physical resources. . ONE (OpenNebula) extends the benefits of virtualization platforms from a single physical resource to a pool of resources, decoupling the server not only from the physical infrastructure but also from the physical location. . This package provides the OpenNebula CLI. Package: libopennebula-java Section: java Architecture: all Depends: ${java:Depends}, ${misc:Depends} Description: Java bindings for OpenNebula Cloud API (OCA) OpenNebula is an open source virtual infrastructure engine that enables the dynamic deployment and re-placement of virtual machines on a pool of physical resources. . ONE (OpenNebula) extends the benefits of virtualization platforms from a single physical resource to a pool of resources, decoupling the server not only from the physical infrastructure but also from the physical location. . This package provides the OpenNebula Cloud API (OCA) Java bindings. Package: libopennebula-java-doc Section: doc Architecture: all Depends: ${misc:Depends} Recommends: ${java:Recommends} Description: Java bindings for OpenNebula Cloud API (OCA) - documentation OpenNebula is an open source virtual infrastructure engine that enables the dynamic deployment and re-placement of virtual machines on a pool of physical resources. . ONE (OpenNebula) extends the benefits of virtualization platforms from a single physical resource to a pool of resources, decoupling the server not only from the physical infrastructure but also from the physical location. . This package provides the documentation (Javadoc API) and examples for OpenNebula Cloud API (OCA) Java bindings. debian/copyright0000664000000000000000000002061112202431515011116 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: OpenNebula Upstream-Contact: OpenNebula Project Leads (OpenNebula.org) Source: http://dev.opennebula.org/projects/opennebula/files Files: * Copyright: 2002-2010, OpenNebula Project Leads (OpenNebula.org) License: Apache-2.0 Files: src/host/host_rank.cc src/host/host_requirements.h src/host/host_rank.h src/host/host_requirements.cc src/template/template_syntax.cc src/template/template_syntax.h src/vm/vm_var_syntax.cc src/vm/vm_var_syntax.h Copyright: 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. License: GPL-2+ with Bison exception Files: src/sunstone/public/vendor/jQueryUI/* Copyright: Copyright (c) 2011 John Resig, http://jquery.com License: MIT Files: src/sunstone/public/vendor/jGrowl/* Copyright: Copyright (c) 2010 Stan Lemon License: MIT Files: src/sunstone/public/vendor/dataTables/* Copyright: Copyright 2008-2010 Allan Jardine, all rights reserved. License: BSD-3-clause-datatables Files: src/sunstone/public/vendor/jQuery/* Copyright: Copyright (c) 2011 John Resig, http://jquery.com License: MIT Files: src/sunstone/public/vendor/jQueryLayout/* Copyright: Copyright (c) 2008 Fabrizio Balliano (http://www.fabrizioballiano.net) Kevin Dalman (http://allpro.net) License: MIT Files: src/sunstone/public/vendor/crypto-js/* Copyright: Copyright 2009-2012 by Jeff Mott,all rights reserved. Jeff Mott (http://code.google.com/u/Jeff.Mott.OR/) License: BSD-3-clause-crypto Files: src/sunstone/public/vendor/fileuploader/* Copyright: Copyright 2010 Andrew Valums. Andrew Valums (http://github.com/valums) License: GPL-2+ or LGPL-2+ Files: src/sunstone/public/vendor/flot/* Copyright: Copyright 2007-2012 IOLA and Ole Laursen Ole Laursen (http://people.iola.dk/olau/) License: MIT Files: src/sunstone/public/vendor/xml2json/* Copyright: Copyright 2008 Fyneworks.com Diego (diago@fyneworks.com) License: GPL-2+ or MIT Files: debian/* Copyright: 2008, Soren Hansen 2010, Damien Raude-Morvan 2011, Jaime Melis License: Apache-2.0 License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License: BSD-3-clause-datatables Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of Allan Jardine nor SpryMedia UK may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: BSD-3-clause-crypto Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions, and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following disclaimer in the documentation or other materials provided with the distribution. * Neither the name Crypto-JS nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS," AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: GPL-2+ On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: LGPL-2+ On Debian systems, the full text of the GNU Library General Public License version 2 can be found in the file `/usr/share/common-licenses/LGPL-2'. License: GPL-2+ with Bison exception This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. . This special exception was added by the Free Software Foundation in version 2.2 of Bison. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: Apache-2.0 OpenNebula is distributed and licensed for use under the terms of the Apache License, Version 2.0. Copyright 2002-2008, Distributed Systems Architecture Group, Universidad Complutense de Madrid (dsa-research.org). . On Debian systems, the full text of the Apache License Version 2.0 can be found in the file `/usr/share/common-licenses/Apache-2.0'. debian/opennebula-common.postrm0000664000000000000000000000267212202431515014056 0ustar #!/bin/sh set -e ONEHOME=/var/lib/one ONE_GROUP=cloud ONE_USER=oneadmin del_cloudgroup() { if ! getent group $ONE_GROUP > /dev/null 2>&1; then if [ -x "`which delgroup 2>/dev/null`" ]; then delgroup --system --only-if-empty $ONE_GROUP else echo >&2 "Not removing \`$ONE_GROUP' system group" \ "because delgroup command was not found." fi fi } del_oneuser() { if getent passwd $ONE_USER > /dev/null 2>&1; then if [ -x "`which deluser 2>/dev/null`" ]; then deluser --system $ONE_USER else echo >&2 "Not removing \`$ONE_USER' system account" \ "because deluser command was not found." fi fi } disable_oneuser() { if getent passwd $ONE_USER > /dev/null 2>&1; then usermod --shell /bin/false $ONE_USER fi } if [ "$1" = "purge" ]; then # purge stats overrides # stats overrides could already be removed by root dpkg-statoverride --remove $ONEHOME || true # Don't delete oneadmin or cloud group for now # See http://wiki.debian.org/AccountHandlingInMaintainerScripts #del_oneuser #del_cloudgroup # ... just disable account disable_oneuser # Purge opennebula configuration/files rm -rf $ONEHOME/.ssh rm -rf $ONEHOME/.one rm -rf $ONEHOME/one.db rm -rf $ONEHOME/oneacct.db rm -rf $ONEHOME/config rmdir $ONEHOME 2>/dev/null || true fi #DEBHELPER# debian/gbp.conf0000664000000000000000000000006212202431515010600 0ustar [DEFAULT] # use pristine-tar: pristine-tar = True debian/opennebula.postinst0000664000000000000000000000225312202431515013122 0ustar #!/bin/sh set -e ONEHOME=/var/lib/one ONEAUTH=$ONEHOME/.one/one_auth ONE_GROUP=cloud ONE_USER=oneadmin if [ "$1" = "configure" ]; then # Use dpkg-statoverride instead of direct chmod/chown if ! dpkg-statoverride --list /var/log/one >/dev/null 2>&1; then dpkg-statoverride --update --add $ONE_USER root 755 /var/log/one fi if ! dpkg-statoverride --list $ONEHOME/datastores/1 >/dev/null 2>&1; then # sticky bit + setgid dpkg-statoverride --update --add $ONE_USER root 3770 $ONEHOME/datastores/1 fi if ! dpkg-statoverride --list $ONEHOME/datastores/0 >/dev/null 2>&1; then # sticky bit + setgid dpkg-statoverride --update --add $ONE_USER root 3770 $ONEHOME/datastores/0 fi if ! dpkg-statoverride --list $ONEHOME/.one >/dev/null 2>&1; then dpkg-statoverride --update --add $ONE_USER $ONE_GROUP 700 $ONEHOME/.one fi if [ ! -f $ONEAUTH ]; then ONE_PASSWORD=`apg -m 12 -M cNl -n 1` if [ -n "${ONE_PASSWORD}" ]; then echo "${ONE_USER}:${ONE_PASSWORD}" > $ONEAUTH chown $ONE_USER:$ONE_GROUP $ONEAUTH chmod 600 $ONEAUTH fi fi fi #DEBHELPER# debian/TODO0000664000000000000000000000161212202431515007653 0ustar - package EC2/OCCI/client in separate package => use install.sh new "-c" option ? - For opennebula-sunstone - Provide libapache2-mod-passenger (for rack) ? like puppetmaster. - test migration path from existing Ubuntu package (ie. 1.2 release) From 1.4 to 2.0 : - Generation of $ONEHOME/.one/oneauth file to handle bootstrap of initial oneadmin (for opennebula internal user system) *OR* let user decide what to do first ? - Use manpages generated by upstream - Provide an apparmor conf.d script ? - Reapply sunstone_system_jquery.diff debian/opennebula.manpages0000664000000000000000000000027612202431515013035 0ustar debian/manpages/econe-server.1 debian/manpages/occi-server.1 debian/manpages/mm_sched.1 debian/manpages/one.1 debian/manpages/oned.1 share/man/onedb.1 share/man/onevdc.1 share/man/onezone.1 debian/opennebula-tools.install0000664000000000000000000000370012202431515014041 0ustar dist/etc/one/cli/* /etc/one/cli/ dist/usr/lib/one/ruby/cli/* /usr/lib/one/ruby/cli/ dist/usr/lib/one/ruby/cloud/occi/OCCIClient.rb /usr/lib/one/ruby/cloud/occi/ dist/usr/lib/one/ruby/cloud/econe/EC2QueryClient.rb /usr/lib/one/ruby/cloud/econe/ dist/usr/lib/one/ruby/cloud/CloudClient.rb /usr/lib/one/ruby/cloud/ dist/usr/lib/one/ruby/ssh_auth.rb /usr/lib/one/ruby/ dist/usr/share/one/install_gems /usr/share/opennebula/ dist/usr/bin/econe-allocate-address /usr/bin/ dist/usr/bin/econe-associate-address /usr/bin/ dist/usr/bin/econe-describe-addresses /usr/bin/ dist/usr/bin/econe-describe-images /usr/bin/ dist/usr/bin/econe-describe-instances /usr/bin/ dist/usr/bin/econe-disassociate-address /usr/bin/ dist/usr/bin/econe-register /usr/bin/ dist/usr/bin/econe-release-address /usr/bin/ dist/usr/bin/econe-run-instances /usr/bin/ dist/usr/bin/econe-terminate-instances /usr/bin/ dist/usr/bin/econe-upload /usr/bin/ dist/usr/bin/occi-compute /usr/bin/ dist/usr/bin/occi-instance-type /usr/bin/ dist/usr/bin/occi-network /usr/bin/ dist/usr/bin/occi-storage /usr/bin/ dist/usr/bin/oneacl /usr/bin/ dist/usr/bin/onecluster /usr/bin/ dist/usr/bin/onedatastore /usr/bin/ dist/usr/bin/onegroup /usr/bin/ dist/usr/bin/onehost /usr/bin/ dist/usr/bin/oneimage /usr/bin/ dist/usr/bin/onetemplate /usr/bin/ dist/usr/bin/oneuser /usr/bin/ dist/usr/bin/onevm /usr/bin/ dist/usr/bin/onevnet /usr/bin/ debian/opennebula-node.README.Debian0000664000000000000000000000517212202431515014303 0ustar ========================================= opennebula-node Debian package ========================================= 'opennebula-common' Debian package contains scripts to create "cloud" group, create "oneadmin" account and setup initial ssh key. 'opennebula-node' depends on opennebula-common and also 1) add "oneadmin" account inside "libvirt" group. 1) add "oneadmin" account inside "kvm" group. libvirt support --------------- OpenNebula uses the libvirt interface to interact with KVM. So after installation of 'opennebula-node', you should check if libvirt is correctly working on current machine. 1. Check for hardware support * vmx is Intel's VT technology * svm is AMD's V technology root@node01> egrep '(vmx|svm)' /proc/cpuinfo 2. Check for loaded modules root@node01> lsmod | grep "kvm\(.*\)" 3. Default NAT network have to be started before any VM root@node01> virsh -c qemu:///system net-start default root@node01> virsh -c qemu:///system net-autostart default root@node01> brctl show virbr0 4. Change default user/group running libvirt You also need to modify /etc/libvirt/qemu.conf to set oneadmin user as running user for libvirt daemon. Otherwise, you might get some errors like : could not open disk image /var/lib/one/datastores/0/0/disk.0: Permission denied root@node01> vi /etc/libvirt/qemu.conf ------------------- user = "oneadmin" group = "cloud" dynamic_ownership = 0 ------------------- root@node01> /etc/init.d/libvirt-bin restart Guidelines : /usr/share/doc/libvirt-bin/README.Debian Add current host into OpenNebula pool ----------------------------------------- 1. Copy controller ssh key to current node root@controller> su - oneadmin oneadmin@controller> cat $HOME/.ssh/id_rsa.pub root@node01> su - oneadmin oneadmin@node01> vi $HOME/.ssh/authorized_keys 2. Test an connection from controller to current node root@controller> su - oneadmin oneadmin@controller> ssh oneadmin@node01 The authenticity of host 'node01 (192.168.0.2)' can't be established. RSA key fingerprint is [xx]. Are you sure you want to continue connecting (yes/no)? [yes] Warning: Permanently added 'node01,192.168.0.2' (RSA) to the list of known hosts. oneadmin@node01> 3. Add current host into OpenNebula pool oneadmin@controller> onehost create node01 --im im_kvm --vm vmm_kvm --net dummy 4. Check node registration on controller oneadmin@controller> onehost list ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM STAT 0 node01 default 0 400 388 400 3.9G 2.5G on debian/libopennebula-java-doc.examples0000664000000000000000000000003612202431515015223 0ustar src/oca/java/share/examples/* debian/opennebula.dirs0000664000000000000000000000016712202431515012202 0ustar /var/log/one/ /var/lib/one/ /var/lib/one/.one /var/lib/one/images/ /etc/one/auth/certificates/ /usr/lib/one/ruby/zona/ debian/ruby-opennebula.install0000664000000000000000000000211512202431515013661 0ustar dist/etc/one/auth/server_x509_auth.conf /etc/one/auth/ dist/etc/one/acctd.conf /etc/one/ dist/usr/lib/one/ruby/OpenNebula.rb /usr/lib/one/ruby/ dist/usr/lib/one/ruby/server_cipher_auth.rb /usr/lib/one/ruby/ dist/usr/lib/one/ruby/server_x509_auth.rb /usr/lib/one/ruby/ dist/usr/lib/one/ruby/x509_auth.rb /usr/lib/one/ruby/ dist/usr/lib/one/ruby/zona.rb /usr/lib/one/ruby/ dist/usr/lib/one/ruby/acct/watch_helper.rb /usr/lib/one/ruby/acct/ dist/usr/lib/one/ruby/acct/watch_client.rb /usr/lib/one/ruby/acct/ dist/usr/lib/one/ruby/cloud/CloudAuth.rb /usr/lib/one/ruby/cloud/ dist/usr/lib/one/ruby/cloud/CloudAuth/X509CloudAuth.rb /usr/lib/one/ruby/cloud/CloudAuth/ dist/usr/lib/one/ruby/OpenNebula/* /usr/lib/one/ruby/OpenNebula/ dist/usr/lib/one/sunstone/models/OpenNebulaJSON.rb /usr/lib/one/ruby/ dist/usr/lib/one/sunstone/models/OpenNebulaJSON/* /usr/lib/one/ruby/OpenNebulaJSON/ debian/opennebula-sunstone.README.Debian0000664000000000000000000000360212202431515015230 0ustar ========================================= opennebula-sunstone Debian package ========================================= 'opennebula-sunstone' Debian package contains OpenNebula Sunstone which is the new OpenNebula web GUI. After installation of this package, OpenNebula Sunstone daemon will start. Parameters ---------- Static files are installed here : /usr/share/opennebula/sunstone Startup script is here : /etc/init.d/opennebula-sunstone By default, sunstone only listen to 127.0.0.1 on port 9869. Using opennebula-sunstone on a different machine than opennebula ---------------------------------------------------------------- Define the following environment variables for the running user of sunstone-server : - Set the XMLRPC parameters: Modify '/etc/one/sunstone-server.conf' :one_xmlrpc: => needs to point to the controller's IP. - Set the serveradmin password: root@sunstone-server> su - oneadmin oneadmin@sunstone-server> mkdir .one; cd .one oneadmin@sunstone-server> scp oneadmin@controller:.one/sunstone_auth . Using opennebula-sunstone over an SSL proxy ------------------------------------------- A detailed configuration guide can be found on upstream website: Here is a quick start, for Apache Debian package: root@sunstone-server> a2enmod proxy_http root@sunstone-server> a2enmod ssl Then, add to /etc/apache2/sites-enabled/default-ssl: # For opennebula sunstone proxying Order deny,allow Allow from all ProxyPass http://localhost:9869/ ProxyPassReverse http://localhost:9869/ inside the . Then restart apache: root@sunstone-server> /etc/init.d/apache2 restart debian/opennebula.docs0000664000000000000000000000002112202431515012156 0ustar README.md NOTICE debian/opennebula-sunstone.lintian-overrides0000664000000000000000000000013612202431515016547 0ustar # Depends on ruby via ruby-opennebula opennebula-sunstone binary: ruby-script-but-no-ruby-dep debian/opennebula.lintian-overrides0000664000000000000000000000015212202431515014671 0ustar # Depends on ruby via opennebula-tools and ruby-opennebula opennebula binary: ruby-script-but-no-ruby-dep debian/source/0000775000000000000000000000000012202431515010463 5ustar debian/source/format0000664000000000000000000000001412202431515011671 0ustar 3.0 (quilt) debian/opennebula-node.postinst.in0000664000000000000000000000101212202431515014442 0ustar #!/bin/sh set -e ONEHOME=/var/lib/one ONE_GROUP=cloud ONE_USER=oneadmin if [ "$1" = "configure" ]; then # Add oneadmin user into @LIBVIRTGRP@ group if getent group @LIBVIRTGRP@ >/dev/null && ! getent group @LIBVIRTGRP@ | cut -f4 -d: | grep -q '\<$ONE_USER\>'; then adduser $ONE_USER @LIBVIRTGRP@ fi # Add oneadmin user into kvm group if getent group kvm >/dev/null && ! getent group kvm | cut -f4 -d: | grep -q '\<$ONE_USER\>'; then adduser $ONE_USER kvm fi fi #DEBHELPER# debian/watch0000664000000000000000000000031112202431515010207 0ustar version=3 opts=uversionmangle=s/\-beta/~beta/ \ http://dev.opennebula.org/projects/opennebula/files \ /attachments/download/(?:[\d]+)/(?:one|opennebula)-([\d\.].+).tar.gz \ debian debian/orig-tar.sh debian/libopennebula-java.jlibs0000664000000000000000000000005312202431515013744 0ustar src/oca/java/jar/org.opennebula.client.jar debian/opennebula-sunstone.init0000775000000000000000000000422312202431515014060 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: opennebula-sunstone # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Sunstone init script # Description: OpenNebula Sunstone web interface cloud initialisation script ### END INIT INFO # Author: Jaime Melis PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Sunstone Web interface" NAME=sunstone-server DAEMON=/usr/bin/$NAME DAEMON_ARGS="" SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions # # Function that starts the daemon/service # do_start() { mkdir -p /var/run/one /var/lock/one /var/log/one chown oneadmin /var/run/one /var/lock/one /var/log/one su oneadmin -s /bin/sh -c "$DAEMON start" } # # Function that stops the daemon/service # do_stop() { su oneadmin -s /bin/sh -c "$DAEMON stop" } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; restart|force-reload) # # If the "reload" option is implemented then remove the # 'force-reload' alias # log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 exit 3 ;; esac : debian/rules0000775000000000000000000001004212202431515010240 0ustar #!/usr/bin/make -f # Handle group assignment: libvirt (Debian) and libvirtd (Ubuntu) ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes) LIB_VIRT_GROUP = libvirtd else LIB_VIRT_GROUP = libvirt endif dpkg_buildflags = DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed" dpkg-buildflags # injecting CPPFLAGS to CFLAGS and CXXFLAGS export CPPFLAGS:=$(shell $(dpkg_buildflags) --get CPPFLAGS) export CFLAGS:=$(shell $(dpkg_buildflags) --get CFLAGS) $(CPPFLAGS) export CXXFLAGS:=$(shell $(dpkg_buildflags) --get CXXFLAGS) $(CPPFLAGS) export LDFLAGS:=$(shell $(dpkg_buildflags) --get LDFLAGS) %: dh $@ --with javahelper --with bash-completion override_dh_auto_build: scons mysql=yes #parsers=yes (cd src/oca/java/; \ ln -s /usr/share/java/xmlrpc-common.jar lib/; \ ln -s /usr/share/java/xmlrpc-client.jar lib/; \ ln -s /usr/share/java/ws-commons-util.jar lib/; \ ./build.sh -d) override_dh_auto_install: DESTDIR=dist ./install.sh dh_auto_install ifneq (,$(filter opennebula-node, $(shell dh_listpackages))) dh_install -p opennebula-node debian/opennebula-node.sudoers /etc/sudoers.d mv debian/opennebula-node/etc/sudoers.d/opennebula-node.sudoers \ debian/opennebula-node/etc/sudoers.d/opennebula-node endif ifneq (,$(filter opennebula, $(shell dh_listpackages))) dh_install -p opennebula share/etc/init.d/one.debian /etc/init.d mv debian/opennebula/etc/init.d/one.debian \ debian/opennebula/etc/init.d/opennebula dh_installinit -p opennebula --name=opennebula --onlyscripts endif ifneq (,$(filter opennebula-sunstone, $(shell dh_listpackages))) dh_installinit -p opennebula-sunstone --name=sunstone endif override_dh_install: dh_install ifneq (,$(filter opennebula, $(shell dh_listpackages))) rm debian/opennebula/usr/share/opennebula/ozones/public/vendor/dataTables/BSD-LICENSE.txt rm debian/opennebula/usr/share/opennebula/occi/ui/public/vendor/crypto-js/NEW-BSD-LICENSE.txt rm debian/opennebula/usr/share/opennebula/occi/ui/public/vendor/dataTables/BSD-LICENSE.txt rm debian/opennebula/usr/share/opennebula/occi/ui/public/vendor/flot/LICENSE.txt endif ifneq (,$(filter opennebula-sunstone, $(shell dh_listpackages))) dh_installinit -p opennebula-sunstone --name=sunstone rm debian/opennebula-sunstone/usr/share/opennebula/sunstone/public/vendor/dataTables/BSD-LICENSE.txt rm debian/opennebula-sunstone/usr/share/opennebula/sunstone/public/vendor/flot/LICENSE.txt endif override_dh_auto_clean: dh_auto_clean rm -rf dist/ scons --clean . (cd src/oca/java/; \ rm lib/xmlrpc-common-3.1.jar; \ rm lib/xmlrpc-client-3.1.jar; \ rm lib/ws-commons-util.jar; \ rm -rf jar/; rm -rf share/doc/; \ ./build.sh -c) -rm -Rf .scons_temp -rm -Rf share/scons/lex_bison.pyc \ src/nebula/.xmlrpc_test/xmlrpc_test.* \ src/scheduler/.xmlrpc_test/xmlrpc_test.* \ src/scheduler/src/sched/.xmlrpc_test \ .xmlrpc_test -rm -Rf debian/opennebula-node.postinst override_dh_installdeb: ifneq (,$(filter opennebula-node, $(shell dh_listpackages))) sed "s/@LIBVIRTGRP@/${LIB_VIRT_GROUP}/g" debian/opennebula-node.postinst.in > debian/opennebula-node.postinst endif dh_installdeb override_dh_fixperms: dh_fixperms ifneq (,$(filter opennebula, $(shell dh_listpackages))) find debian/opennebula/etc/one/ -type f -exec chmod 644 {} \; chmod 644 debian/opennebula/usr/lib/one/ruby/cloud/occi/*.rb chmod 644 debian/opennebula/usr/lib/one/ruby/cloud/CloudServer.rb chmod 644 debian/opennebula/usr/share/opennebula/ozones/public/vendor/jGrowl/jquery.jgrowl.css #chmod 755 debian/opennebula/usr/lib/one/remotes/im/common.d/ssh_pubkey.sh chmod 755 debian/opennebula/usr/share/opennebula/occi/occi-server.rb endif ifneq (,$(filter opennebula-tools, $(shell dh_listpackages))) chmod 755 debian/opennebula-tools/usr/lib/one/ruby/cloud/econe/EC2QueryClient.rb chmod 755 debian/opennebula-tools/usr/lib/one/ruby/cloud/occi/OCCIClient.rb endif ifneq (,$(filter opennebula-node, $(shell dh_listpackages))) chmod 0440 debian/opennebula-node/etc/sudoers.d/opennebula-node endif ifneq (,$(filter opennebula-sunstone, $(shell dh_listpackages))) endif get-orig-source: uscan --force-download --no-symlink