package dependencies error with keystone rel. stein

Bug #1825111 reported by Robert Holling on 2019-04-17
36
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Low
Frank Kloeker

Bug Description

Hi,

I've got an error during a new and fresh installation of Keystone (rel. Stein) on a fresh Ubuntu 18.04.2 LTS.

> the used document: https://docs.openstack.org/keystone/stein/install/keystone-install-ubuntu.html

> I tried the following command:# apt install keystone apache2 libapache2-mod-wsgi

> and got an error: "the following packages have unmet dependencies: keystone: Depends on libapache2-mod-wsgi-py3 but should not be installed."

Here in detail:
After the new installation of Ubuntu 18.04.2, I did all steps as mentioned in the docs:
 # apt install software-properties-common
 # add-apt-repository cloud-archive:stein
 # apt update && apt dist-upgrade
 # apt install python-openstackclient
 # apt install mariadb-server python-pymysql
   >edit the config file /etc/mysql/mariadb.conf.d/99-openstack.cnf
 # service mysql restart
 # mysql_secure_installation
 # apt install rabbitmq-server
 # rabbitmqctl add_user openstack RABBIT_PASS
 # rabbitmqctl set_permissions openstack ".*" ".*" ".*"
 # apt install memcached python-memcache
   >edit the config file /etc/memcached.conf
 # service memcached restart
 # apt install etcd
   >edit the config file /etc/default/etcd
 # systemctl enable etcd
 # systemctl start etcd
   >create database keystone in mysql and grant privs a.s.o.
 # apt install keystone apache2 libapache2-mod-wsgi

I tried everything twice on different nodes with the same result. Previous attempts to repair defective packages led to no result. And it is not the first time, I've installed keystone on ubuntu, but it's the first time on Ubuntu 18.04.2 with Openstack release Stein... :-(

What am I missing?
Any help would be great!

THX
Robert

-----------------------------------
SHA: 5e45743d52ddcc9503aebda373948347587a01b1
Source: https://git.openstack.org/cgit/openstack/keystone/tree/doc/source/install/keystone-install-ubuntu.rst
URL: https://docs.openstack.org/keystone/stein/install/keystone-install-ubuntu.html

tags: added: keystone
no longer affects: mod-wsgi (Ubuntu)
Gage Hugo (gagehugo) wrote :

I couldn't replicate this, did a fresh ubuntu 18.04.2 install and the command ran fine.

Did you install keystone Stein via source code previously to running the install command? The keystone release for 18.04 is Queens (13.0.2). Otherwise I'm not sure yet what is exactly going on here.

Changed in keystone:
status: New → Incomplete
Robert Holling (rholling) wrote :

Thanks for your response, but I'm not entirely with you, I'm sorry.

Keystone 15.0.0 is the current version, corresponding to Openstack Stein -> https://docs.openstack.org/releasenotes/keystone/stein.html

After updating and upgrading the new Ubuntu 18.04.2 I added the repository Stein (add-apt-repository cloud-archive: stein).

What about the following question: Can I install a first system directly with the Stein release, or do I have to install Queens and then migrate to Stein via Rocky?

Gage Hugo (gagehugo) wrote :

You should be able to install keystone stein release with that method. I will check again with the repo updated to stein from the default one.

Gage Hugo (gagehugo) wrote :

Ok, can confirm the instructions don't work for stein, getting the same error. Installing libapache2-mod-wsgi-py3 works for me.

This might be problematic for someone still running py2, as this requires python3 installation.

Changed in keystone:
status: Incomplete → Confirmed
Colleen Murphy (krinkle) wrote :

I suspect this is a packaging issue and not an issue with the keystone documentation or source code, so tagging the Ubuntu team.

Changed in keystone:
status: Confirmed → Incomplete
Robert Holling (rholling) wrote :

this is not a keystone bug, it belongs to the documentation.

affects: keystone (Ubuntu) → openstack-manuals
Robert Holling (rholling) wrote :

We checked that yesterday: the second and third parameters of the command are no longer needed, since the mentioned packages are already contained in the parent dependencies.

Andreas Jaeger (jaegerandi) wrote :

This is a report for the keystone specific documents, not for openstack-manuals.

no longer affects: openstack-manuals
Changed in keystone:
assignee: nobody → Frank Kloeker (f-kloeker)
status: Incomplete → Fix Committed
Colleen Murphy (krinkle) wrote :

Frank, your proposed fix is not merged yet, did you mean to mark this as "fix committed"? Changing to "in-progress".

Changed in keystone:
status: Fix Committed → In Progress

Reviewed: https://review.opendev.org/656860
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=0f2b36b2ad50694efa92a39649b778546cca3b31
Submitter: Zuul
Branch: master

commit 0f2b36b2ad50694efa92a39649b778546cca3b31
Author: Frank Kloeker <email address hidden>
Date: Thu May 2 22:25:09 2019 +0200

    [docs] remove deprecated ubuntu package from installation

    keystone package depends already on apache2 and wsgi package:

    keystone
      Depends: adduser
     |Depends: apache2
      Depends: <httpd>
        tntnet
        aolserver4-core
        aolserver4-daemon
        apache2
        ebhttpd
        lighttpd
        micro-httpd
        mini-httpd
        nginx-core
        nginx-extras
        nginx-full
        nginx-light
        webfs
        yaws
      Depends: libapache2-mod-wsgi-py3
      Depends: python3-keystone
      Depends: ssl-cert
    [...]

    Change-Id: I1332df34dd6ee59537d35d93d5c35c2fe96561b2
    Related-Bug: #1825111

Gage Hugo (gagehugo) on 2019-05-21
Changed in keystone:
milestone: none → train-1
importance: Undecided → Low
status: In Progress → Fix Committed

Reviewed: https://review.opendev.org/666861
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=a7f5e7a91bc9bfd8879fb2e4a4c0905b508dd3e5
Submitter: Zuul
Branch: stable/stein

commit a7f5e7a91bc9bfd8879fb2e4a4c0905b508dd3e5
Author: Frank Kloeker <email address hidden>
Date: Thu May 2 22:25:09 2019 +0200

    [docs] remove deprecated ubuntu package from installation

    keystone package depends already on apache2 and wsgi package:

    keystone
      Depends: adduser
     |Depends: apache2
      Depends: <httpd>
        tntnet
        aolserver4-core
        aolserver4-daemon
        apache2
        ebhttpd
        lighttpd
        micro-httpd
        mini-httpd
        nginx-core
        nginx-extras
        nginx-full
        nginx-light
        webfs
        yaws
      Depends: libapache2-mod-wsgi-py3
      Depends: python3-keystone
      Depends: ssl-cert
    [...]

    Change-Id: I1332df34dd6ee59537d35d93d5c35c2fe96561b2
    Related-Bug: #1825111
    (cherry picked from commit 0f2b36b2ad50694efa92a39649b778546cca3b31)

tags: added: in-stable-stein
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers