Hi Chuck, David, anyone else on the list involved in Ubuntu packaging,

I appreciate your work to get Quantum packaged for Ubuntu.  I am testing
Quantum on Ubuntu precise and was hoping you could help with some issues.
 As a warning, I manually upgraded this system from oneiric (i'm using a
cloud that doesn't have precise images available).

To start, I'm  bit confused with the different packages.  For example, on
https://launchpad.net/ubuntu/+source/quantum I see packages like:

python-quantum: Quantum is a virutal network service for Openstack. (python
library)
quantum-client: No summary available for quantum-client in ubuntu precise.
quantum-common: common - Quantum is a virtual network service for Openstack.
quantum-plugin-cisco: Quantum is a virtual network service for Openstack.
(cisco plugin)
quantum-plugin-openvswitch: Quantum is a virtual network service for
Openstack. (openvswitch plugin)
quantum-server: server - Quantum is a virtual network service for Openstack

However, I was also able to install the package 'python-quantumclient' and
'quantum' on my precise system, and those seemed to be the most up to date
packages if I'm interpreting the file naming scheme correctly.

Here are the quantum packages I installed:

root@precise1:~# dpkg -l | grep quantum
ii  python-quantumclient            2012.1+git201203212034-0ubuntu1
 client - Quantum is a virtual network service for Openstack
ii  quantum                         2012.1+git201203221516-0ubuntu1
 server - Quantum is a vrirtual network service for Openstack

(very minor point, "virtual" is misspelled in the description of the
'quantum' package)

I was able to install the quantum client using:

apt-get install python-quantumclient

output looks good (output trimmed):

root@precise1:~# quantum
Usage: quantum [OPTIONS] <command> [args]

Options:
  -h, --help            show this help message and exit
......
    list_ports <tenant-id> <net-id> [filterspec ...]

However, I had problems when installing the server:

root@precise1:~# apt-get install quantum-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  linux-headers-3.0.0-12 linux-headers-3.0.0-12-server python-mox libept1
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  quantum-server
0 upgraded, 1 newly installed, 0 to remove and 57 not upgraded.
Need to get 0 B/5,488 B of archives.
After this operation, 44.0 kB of additional disk space will be used.
(Reading database ... 74323 files and directories currently installed.)
Unpacking quantum-server (from
.../quantum-server_2012.1+git201202010834-0ubuntu1_all.deb) ...
Setting up quantum-server (2012.1+git201202010834-0ubuntu1) ...
chown: cannot access `/var/log/quantum': No such file or directory
dpkg: error processing quantum-server (--configure):
 subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)

After creating /var/log/quantum manually, I re-ran the install command and
it seemed to succeed.

After I install, I noticed there wasn't an init script.  Perhaps that is
expected, but I noticed that other openstack daemons (e.g., nova-compute)
had an init script when I installed.

Then I try to run quantum-server directly.

root@precise1:~# quantum-server
Traceback (most recent call last):
  File "/usr/bin/quantum-server", line 22, in <module>
    from quantum.server import main as server
ImportError: No module named server

Looking at /usr/bin/quantum-server, I seem to have a very old version of
the file here.  I'm not sure if I don't have the right package installed or
what, as I would expect the contents of /usr/bin-quantum-server to look
something more like the 'quantum' client:

__requires__ = 'python-quantumclient==2012.1'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('python-quantumclient==2012.1', 'console_scripts',
'quantum')()
    )

rather than:

import os
import sys
sys.path.insert(0, os.getcwd())
from quantum.server import main as server

server()

But perhaps I'm mistaken here.

Anyway, any help would be great, as I'd love to do more testing of Quantum
on Ubuntu.  Thanks,

Dan
-- 
Mailing list: https://launchpad.net/~netstack
Post to     : netstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~netstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to