Ask Your Question
2

Packstack: Requirement for python-tinyrpc breaks installation

asked 2017-02-20 18:49:17 -0500

Bernd Bausch gravatar image

I successfully set up an all-in-one packstack yesterday. Today, I fail adding a compute node. The log file contains:

Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install openstack-neutron' returned 1: Error: Package: python2-ryu-4.9-2.el7.noarch (centos-openstack-newton)
           Requires: python-tinyrpc
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Also, yum update on the all-in-one node generates the same error. This is suspiciously similar to an error that recently occurred at a Kolla deployment.

  • Should I just wait until the packaging is fixed?
  • Are there ways to work around this - how do I add the skip-broken option, for example?
edit retag flag offensive close merge delete

Comments

I found a tinyrpc source RPM at https://cbs.centos.org/koji/buildinfo..., but it doesn't build (the SPECS file contains a line %py2_build, which is interpreted as a job control command, which fails). For now, I don't know enough about building RPMs to solve this.

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-20 19:14:53 -0500 )edit

It turns out the py2_build is a macro I can get from the EPEL package epel-rpm-macros. I can build now until I hit this problem in the test phase of the build:

ZMQError: Address already in use

No RPM is generated. At this point I give up and hope for knowledgeable people to help here.

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-20 19:33:07 -0500 )edit

4 answers

Sort by » oldest newest most voted
2

answered 2017-02-21 01:55:22 -0500

dbaxps gravatar image

updated 2017-02-21 06:11:19 -0500

UPDATE 02/21/17 14:30 MSK
Addressing your issue with adding (comments )
See "RDO Newton Set up for three Nodes on CentOS 7.3"

 Work with packstack via properly written answer file and setup delorean repos via the most recent Newton "current-passed-ci" trunk on each node involved in deployment.

http://lxer.com/module/newswire/view/...
END UPDATE

Try packstack install only using Newton the most recent delorean "current-passed-ci" trunk
Detials here http://lxer.com/module/newswire/view/...
The only RDO repos been set up for packstack

# yum -y install yum-plugin-priorities
# curl -o /etc/yum.repos.d/delorean-newton.repo https://buildlogs.centos.org/centos/7/cloud/x86_64/rdo-trunk-newton-tested/delorean.repo
# curl -o /etc/yum.repos.d/delorean-deps-newton.repo https://trunk.rdoproject.org/centos7-newton/delorean-deps.repo

Test right now :-

    [alan@fedora24wks ~]$ echo "Testing Curl"
    Testing Curl
    [alan@fedora24wks ~]$ date
    Tue Feb 21 14:55:49 MSK 2017
    [alan@fedora24wks ~]$ curl -o delorean-newton.repo https://buildlogs.centos.org/centos/7/cloud/x86_64/rdo-trunk-newton-tested/delorean.repo
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   220  100   220    0     0    464      0 --:--:-- --:--:-- --:--:--   465
    [alan@fedora24wks ~]$ cat delorean-newton.repo
    [delorean]
    name=delorean-openstack-heat-bddd12df298ee4cc15cac8a872eb507c500bdef1
    baseurl=https://trunk.rdoproject.org/centos7-newton/bd/dd/bddd12df298ee4cc15cac8a872eb507c500bdef1_a6af485f
    enabled=1
    gpgcheck=0
    priority=1
  [alan@fedora24wks ~]$ curl -o delorean-deps-newton.repo https://trunk.rdoproject.org/centos7-newton-delorean-deps.repo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   449  100   449    0     0    190      0  0:00:02  0:00:02 --:--:--   190
[alan@fedora24wks ~]$ cat delorean-deps-newton.repo
[delorean-newton-testing]
name=dlrn-newton-testing
baseurl=http://buildlogs.centos.org/centos/7/cloud/$basearch/openstack-newton/
enabled=1
gpgcheck=0

[delorean-newton-pending]
name=dlrn-newton-pending
baseurl=http://cbs.centos.org/repos/cloud7-openstack-common-pending/$basearch/os/
gpgcheck=0
enabled=0

[rdo-qemu-ev]
name=RDO CentOS-$releasever - QEMU EV
baseurl=http://mirror.centos.org/centos/7/virt/$basearch/kvm-common/
gpgcheck=0
enabled=1
edit flag offensive delete link more

Comments

Thanks, trying it now. A few corrections: The Delorean repo file is now at https://buildlogs.centos.org/centos/7..., and you need to change https to http in delorean-newton.repo to avoid an expired certificate.

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-21 04:01:03 -0500 )edit

The allinone node installs fine, but addition of the compute node fails. I guess that the "normal" repos are used at this point; perhaps it would have worked if I had prepared the compute node as you suggested. I will now try adding tinyrpc manually as suggested by Javier Peña.

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-21 04:27:43 -0500 )edit

Well, see for now http://lxer.com/module/newswire/view/...
No adding. Just use packstack as it is supposed to work on multi-node deploymennts

dbaxps gravatar imagedbaxps ( 2017-02-21 05:30:48 -0500 )edit

I replaced "http" by "https" per your notice in answer field

dbaxps gravatar imagedbaxps ( 2017-02-21 05:45:34 -0500 )edit

What makes me so sure that mentioned trunk would work ? TripleO QuickStart undercloud node set up does it all the time. Pre-built images
used by TripleO QS are always in sync with this trunk

dbaxps gravatar imagedbaxps ( 2017-02-21 06:27:17 -0500 )edit
4

answered 2017-02-21 03:31:16 -0500

jpena-c gravatar image

This is a mistake in our repos, we should have added python-tinyrpc when adding python2-ryu-4.9-2.

As a quick workaround while we fix the repo, you can install the missing package from https://buildlogs.centos.org/centos/7...

edit flag offensive delete link more

Comments

Yes this worked. In the end, I created the all-in-one controller node using the other repos (first answer), and deployed the compute node after installing the tinyrpc RPM. Thanks both!

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-21 05:06:41 -0500 )edit

How long time fixed it?

niceysj gravatar imageniceysj ( 2017-02-21 20:20:05 -0500 )edit

Thanks jpena-c, is there an ETA for the update in the repo?

alexpilotti gravatar imagealexpilotti ( 2017-02-22 06:15:43 -0500 )edit

The package is now correctly tagged, so I think it should be updated pretty soon.

jpena-c gravatar imagejpena-c ( 2017-02-22 12:23:39 -0500 )edit
0

answered 2017-02-21 03:50:30 -0500

Rupesh Chowdary gravatar image

Even yum update also not working on nodes means there is some issue on repos. Check the repos are reaching from the nodes or not.

Also try the following,

1.dpkg -l | grep python-tinyrpc (or) dpkg -l | grep python

from the above check python-tinyrpc installed or not . Also check version of the dependency.

  1. apt-cache policy python-tinyrpc Verify the latest version of package and install on the node, apt-get install python-tinyXXXXXXXX
edit flag offensive delete link more

Comments

python-tinyrpc is not installed because it doesn't exist in the normal repos. It's a packaging or repo config error as Javier Peña commented a bit earlier. Bad timing for me.

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-21 04:28:54 -0500 )edit
0

answered 2017-02-22 09:52:07 -0500

fire00m gravatar image

*hi all

i also have the similar error but i dont have the requires: python-tinyrpc

2017-02-22 00:31:50::ERROR::run_setup::1018::root:: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 1013, in main
    _main(options, confFile, logFile)
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 660, in _main
    runSequences()
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 627, in runSequences
    controller.runAllSequences()
  File "/usr/lib/python2.7/site-packages/packstack/installer/setup_controller.py", line 81, in runAllSequences
    sequence.run(config=self.CONF, messages=self.MESSAGES)
  File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 109, in run
    step.run(config=config, messages=messages)
  File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 50, in run
    self.function(config, messages)
  File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 214, in apply_puppet_manifest
    wait_for_puppet(currently_running, messages)
  File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 128, in wait_for_puppet
    validate_logfile(log)
  File "/usr/lib/python2.7/site-packages/packstack/modules/puppet.py", line 107, in validate_logfile
    raise PuppetError(message)
PuppetError: Error appeared during Puppet run: 10.0.40.2_controller.pp
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install openstack-neutron' returned 1: Error: Package: python2-ryu-4.9-2.el7.noarch (openstack-newton)
You will find full trace in log /var/tmp/packstack/20170221-235024-LxFxK3/manifests/10.0.40.2_controller.pp.log

i tried the workaround of jpena-c but when i try to install the rpm file is missing dependencies*

[root@cloud tech5]#  rpm -iv python2-tinyrpc-0.5-2.el7.noarch.rpm
error: Failed dependencies:
        python-gevent is needed by python2-tinyrpc-0.5-2.el7.noarch
        python-zmq is needed by python2-tinyrpc-0.5-2.el7.noarch

i tried to install the firt python-gevent dependences and that was the output:

[root@cloud tech5]# rpm -iv python2-tinyrpc-0.5-2.el7.noarch.rpm python2-gevent-1.1.2-2.el7.x86_64.rpm
error: Failed dependencies:
        python-zmq is needed by python2-tinyrpc-0.5-2.el7.noarch
        libcares.so.2()(64bit) is needed by python2-gevent-1.1.2-2.el7.x86_64
        libev.so.4()(64bit) is needed by python2-gevent-1.1.2-2.el7.x86_64

thanks for your answers.

edit flag offensive delete link more

Comments

1

Use yum localinstall python2-tinyrpc.....rpm to install dependencies. Alternatively, try again from the beginning, since the repo should be fixed soon.

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-22 20:48:37 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

3 followers

Stats

Asked: 2017-02-20 18:49:17 -0500

Seen: 922 times

Last updated: Feb 21