Jump to: navigation, search

Difference between revisions of "Packaging/SUSE"

m (openSUSE distribution)
 
(41 intermediate revisions by 10 users not shown)
Line 1: Line 1:
__NOTOC__
+
 
 
= SUSE packaging =
 
= SUSE packaging =
[http://www.b1-systems.de/index.php?lang=en B1 Systems] provides OpenStack packages for [http://www.opensuse.org/en/ OpenSUSE] and [http://www.suse.com/products/server/ SLE] through the [https://build.opensuse.org/ openSUSE Build Service].
 
 
You can find all the packages in the [https://build.opensuse.org/project/subprojects?project=isv%3AB1-Systems%3AOpenStack subprojects] from [https://build.opensuse.org/project/show?project=isv%3AB1-Systems%3AOpenStack isv:B1-Systems:OpenStack].
 
 
Development packages (using snapshots from the git repositories) are located in the project [https://build.opensuse.org/project/show?project=isv%3AB1-Systems%3AOpenStack%3Adevel isv:B1-Systems:OpenStack:devel].
 
 
Packages for the latest stable release (Essex) are available in the project [https://build.opensuse.org/project/show?project=isv:B1-Systems:OpenStack:release:Essex isv:B1-Systems:OpenStack:release:Essex].
 
 
At the moment we provide packages for the following projects:
 
 
* keystone: [[OpenStack]] Identity Service
 
* glance: [[OpenStack]] Image Service
 
* nova: [[OpenStack]] Compute
 
* horizon: [[OpenStack]] Dashboard
 
* swift: [[OpenStack]] Object Storage
 
* quantuum: [[OpenStack]] Virtual Network Service
 
* melange: [[OpenStack]] Network Information Service
 
 
This packaging work is thanks to the efforts of:
 
 
* Stefan Seyfried
 
* [[ChristianBerendt|Christian Berendt]]
 
* Andre Nähring
 
* Michael Tietz
 
 
The [http://www.b1-systems.de/index.php?lang=en B1 Systems] provides a technical whitepaper in german language which describes the setup of [[OpenStack]] on top of SUSE Linux Enterprise Server 11 SP1 using Diablo. The whitepaper is available [http://www.b1-systems.de/openstack here].
 
 
== Usage ==
 
 
After adding our repositories like described here and running <code><nowiki>zypper ref</nowiki></code> you can find all openstack packages by searching for "openstack" (<code><nowiki>zypper search openstack</nowiki></code>)
 
 
VERY IMPORTANT NOTE: It's not possible to use [[OpenStack]] on top of SLES11 SP2 at the moment, because there are several unfixed issues in the delivered Python interpreter. Please have a look at the section "Python @ SLES11 SP2" on this wiki page for details and how to resolve the issues.
 
 
=== openSUSE 12.1 ===
 
 
First you have to import several GPG public keys:
 
 
 
<pre><nowiki>
 
rpm --import http://download.opensuse.org/repositories/isv:/B1-Systems:/OpenStack:/release:/Essex/openSUSE_12.1/repodata/repomd.xml.key
 
rpm --import http://download.opensuse.org/repositories/isv:/B1-Systems:/OpenStack:/release:/Essex:/requirements/openSUSE_12.1/repodata/repomd.xml.key
 
</nowiki></pre>
 
 
 
Then you can add the repositories using zypper:
 
 
 
<pre><nowiki>
 
zypper ar http://download.opensuse.org/repositories/isv:/B1-Systems:/OpenStack:/release:/Essex/openSUSE_12.1/isv:B1-Systems:OpenStack:release:Essex.repo
 
zypper ar http://download.opensuse.org/repositories/isv:/B1-Systems:/OpenStack:/release:/Essex:/requirements/openSUSE_12.1/isv:B1-Systems:OpenStack:release:Essex:requirements.repo
 
</nowiki></pre>
 
 
 
=== SLES11 SP2 ===
 
 
First you have to import several GPG public keys:
 
 
 
<pre><nowiki>
 
rpm --import http://download.opensuse.org/repositories/isv:/B1-Systems:/OpenStack:/release:/Essex/SLE_11_SP2/repodata/repomd.xml.key
 
rpm --import http://download.opensuse.org/repositories/isv:/B1-Systems:/OpenStack:/release:/Essex:/requirements/SLE_11_SP2/repodata/repomd.xml.key
 
</nowiki></pre>
 
 
 
Then you can add the repositories using zypper:
 
 
 
<pre><nowiki>
 
zypper ar http://download.opensuse.org/repositories/isv:/B1-Systems:/OpenStack:/release:/Essex/SLE_11_SP2/isv:B1-Systems:OpenStack:release:Essex.repo
 
zypper ar http://download.opensuse.org/repositories/isv:/B1-Systems:/OpenStack:/release:/Essex:/requirements/SLE_11_SP2/isv:B1-Systems:OpenStack:release:Essex:requirements.repo
 
</nowiki></pre>
 
 
 
=== RabbitMQ ===
 
 
You can find an up to date version of RabbitMQ in the project "isv:B1-Systems:[[OpenStack]]:tools:rabbitmq" for SLES11 SP2 and openSUSE 12.1. Add the public GPG key and the repository on your queuing system this way:
 
 
==== openSUSE 12.1 ====
 
 
 
<pre><nowiki>
 
rpm --import http://download.opensuse.org/repositories/isv:/B1-Systems:/OpenStack:/tools:/rabbitmq/openSUSE_12.1/repodata/repomd.xml.key
 
zypper ar http://download.opensuse.org/repositories/isv:/B1-Systems:/OpenStack:/tools:/rabbitmq/openSUSE_12.1/isv:B1-Systems:OpenStack:tools:rabbitmq.repo
 
</nowiki></pre>
 
 
 
==== SLES11 SP2 ====
 
 
 
<pre><nowiki>
 
rpm --import http://download.opensuse.org/repositories/isv:/B1-Systems:/OpenStack:/tools:/rabbitmq/SLE_11_SP2/repodata/repomd.xml.key
 
zypper ar http://download.opensuse.org/repositories/isv:/B1-Systems:/OpenStack:/tools:/rabbitmq/SLE_11_SP2/isv:B1-Systems:OpenStack:tools:rabbitmq.repo
 
</nowiki></pre>
 
 
 
== Python @ SLES11 SP2 ==
 
 
Unfortunately there are two issues in the Python interpreter delivered with SLES11 SP2 avoiding it to run [[OpenStack]] on top. We're providing patched packages for the Python interpreter. Please contact os at openstack@b1-systems.de to receive a copy of them.
 
 
You can check if the python interpreter of SLES11 SP2 still contains issues using this script. We hope that SUSE will deliver an update or upgrade soon so that it's no more necessary to use a patched version of the Python interpreter.
 
  
 +
This page describes packaging of OpenStack packages for openSUSE and SUSE Linux Enterprise.
  
<pre><nowiki>
+
== openSUSE distribution ==
#!/usr/bin/python
 
  
## vim: set syn=on ts=4 sw=4 sts=0 noet foldmethod=indent:
+
OpenStack packages for openSUSE are updated daily from the respective OpenStack git branches, automatically tested and then published in an additional repository for consumption.  
## purpose: check if python interpreter contains blocking issues for OpenStack
 
## copyright: B1 Systems GmbH <info@b1-systems.de>, 2012.
 
## license: GPLv3+, http://www.gnu.org/licenses/gpl-3.0.html
 
## author: Christian Berendt <berendt@b1-systems.de>, 2012.
 
  
print "test if keyword arguments with unicode keys are working without problems"
+
For Liberty, the repository is here: http://download.opensuse.org/repositories/Cloud:/OpenStack:/Liberty/
print "expected result: {u'key': 'value'}"
 
print
 
  
def testing(**kwargs):
+
For Mitaka, the repository is here: http://download.opensuse.org/repositories/Cloud:/OpenStack:/Mitaka/
    print kwargs
 
  
try:
+
For Newton, the repository is here: http://download.opensuse.org/repositories/Cloud:/OpenStack:/Newton/
    testing(**{u'key': 'value'})
 
except TypeError:
 
    print "ERROR: catched TypeError, keyword arguments with unicode keys are NOT working"
 
  
 +
The OpenStack client packages are part of the standard openSUSE distribution.
  
print
+
== Current OpenStack packages ==
print "test if ident of thread is working without problems"
 
print "expected result: a long integer (for example: 140630265239296)"
 
print
 
  
import threading
+
The [http://build.opensuse.org openSUSE Build Service] is used for packaging and publishing of different OpenStack release for openSUSE and SUSE Linux Enterprise. It thus allows to install newer OpenStack releases.
t = threading.current_thread()
 
ident = t.ident
 
if ident == None:
 
    print "ERROR: ident of current thread is None, ident of threads is NOT working"
 
else:
 
    print ident
 
</nowiki></pre>
 
  
 +
Packages are created in subprojects of [https://build.opensuse.org/project/show/Cloud:OpenStack Cloud:OpenStack] named after the OpenStack release, e.g. [https://build.opensuse.org/project/show/Cloud:OpenStack:Kilo Cloud:OpenStack:Kilo] or [https://build.opensuse.org/project/show/Cloud:OpenStack:Liberty Cloud:OpenStack:Liberty].
  
If everything is fine you should receive a similiar output:
+
These packages which can be downloaded from [http://download.opensuse.org/repositories/Cloud:/OpenStack:/ download.opensuse.org] are currently built for active openSUSE releases and SUSE Linux Enterprise 11 and later
  
  
<pre><nowiki>
+
To install these packages, add the repository via zypper and install.
test if keyword arguments with unicode keys are working without problems
 
expected result: {u'key': 'value'}
 
  
{u'key': 'value'}
+
For example for openSUSE Leap 42.2 Newton packages, do:
  
test if ident of thread is working without problems
+
  zypper ar -f http://download.opensuse.org/repositories/Cloud:/OpenStack:/Newton/openSUSE_Leap_42.2/Cloud:OpenStack:Newton.repo
expected result: a long integer (for example: 140630265239296)
 
  
140516648064768
+
For example for openSUSE Leap 42.1 Mitaka packages, do:
</nowiki></pre>
 
  
 +
  zypper ar -f http://download.opensuse.org/repositories/Cloud:/OpenStack:/Mitaka/openSUSE_Leap_42.1/Cloud:OpenStack:Mitaka.repo
  
If the issues are still there the output would look like this one:
+
And then install the packages, e.g. with:
  
 +
  zypper in openstack-cinder openstack-nova
  
<pre><nowiki>
+
== More information ==
test if keyword arguments with unicode keys are working without problems
 
expected result: {u'key': 'value'}
 
  
ERROR: catched TypeError, keyword arguments with unicode keys are NOT working
+
For more information, see the [http://en.opensuse.org/Portal:OpenStack openSUSE OpenStack portal].  If you like to use OpenStack packages or join the team, please join the mailing list opensuse-cloud@opensuse.org (subscribing information is [http://en.opensuse.org/Portal:OpenStack here]).
  
test if ident of thread is working without problems
+
Bugreports can be reported to [http://bugzilla.opensuse.org/enter_bug.cgi?product=openSUSE%20Distribution OpenSUSE Bugzilla] or to the mailing list. The openSUSE packagers can be reached via the mailing list as well.
expected result: a long integer (for example: 140630265239296)
 
  
ERROR: ident of current thread is None, ident of threads is NOT working
+
There is an [http://docs.openstack.org/liberty/install-guide-obs/ OpenStack Installation Guide for openSUSE and SUSE Linux Enterprise] to guide you through a manual installation.
</nowiki></pre>
 

Latest revision as of 21:17, 18 April 2017

SUSE packaging

This page describes packaging of OpenStack packages for openSUSE and SUSE Linux Enterprise.

openSUSE distribution

OpenStack packages for openSUSE are updated daily from the respective OpenStack git branches, automatically tested and then published in an additional repository for consumption.

For Liberty, the repository is here: http://download.opensuse.org/repositories/Cloud:/OpenStack:/Liberty/

For Mitaka, the repository is here: http://download.opensuse.org/repositories/Cloud:/OpenStack:/Mitaka/

For Newton, the repository is here: http://download.opensuse.org/repositories/Cloud:/OpenStack:/Newton/

The OpenStack client packages are part of the standard openSUSE distribution.

Current OpenStack packages

The openSUSE Build Service is used for packaging and publishing of different OpenStack release for openSUSE and SUSE Linux Enterprise. It thus allows to install newer OpenStack releases.

Packages are created in subprojects of Cloud:OpenStack named after the OpenStack release, e.g. Cloud:OpenStack:Kilo or Cloud:OpenStack:Liberty.

These packages which can be downloaded from download.opensuse.org are currently built for active openSUSE releases and SUSE Linux Enterprise 11 and later


To install these packages, add the repository via zypper and install.

For example for openSUSE Leap 42.2 Newton packages, do:

 zypper ar -f http://download.opensuse.org/repositories/Cloud:/OpenStack:/Newton/openSUSE_Leap_42.2/Cloud:OpenStack:Newton.repo 

For example for openSUSE Leap 42.1 Mitaka packages, do:

 zypper ar -f http://download.opensuse.org/repositories/Cloud:/OpenStack:/Mitaka/openSUSE_Leap_42.1/Cloud:OpenStack:Mitaka.repo

And then install the packages, e.g. with:

 zypper in openstack-cinder openstack-nova

More information

For more information, see the openSUSE OpenStack portal. If you like to use OpenStack packages or join the team, please join the mailing list opensuse-cloud@opensuse.org (subscribing information is here).

Bugreports can be reported to OpenSUSE Bugzilla or to the mailing list. The openSUSE packagers can be reached via the mailing list as well.

There is an OpenStack Installation Guide for openSUSE and SUSE Linux Enterprise to guide you through a manual installation.