./stack.sh: line 488: generate-subunit: command not found

Bug #1547379 reported by Shahriyar Rzayev
50
This bug affects 10 people
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned

Bug Description

Failing to install with:

+ /opt/stack/devstack/functions-common:yum_install:L1: exit_trap
+ ./stack.sh:exit_trap:L474: local r=1
++ ./stack.sh:exit_trap:L475: jobs -p
+ ./stack.sh:exit_trap:L475: jobs=
+ ./stack.sh:exit_trap:L478: [[ -n '' ]]
+ ./stack.sh:exit_trap:L484: kill_spinner
+ ./stack.sh:kill_spinner:L370: '[' '!' -z '' ']'
+ ./stack.sh:exit_trap:L486: [[ 1 -ne 0 ]]
+ ./stack.sh:exit_trap:L487: echo 'Error on exit'
Error on exit
+ ./stack.sh:exit_trap:L488: generate-subunit 1455869459 239 fail
./stack.sh: line 488: generate-subunit: command not found

Using:
git clone https://git.openstack.org/openstack-dev/devstack
on Centos 7 VM.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

I could get rid off generate-subunit: command not found error using:

sudo pip install -U os-testr

But hit yet another errors:

World dumping... see /opt/stack/logs/worlddump-2016-02-19-082742.txt for details
sudo: ovs-vsctl: command not found
sudo: ovs-ofctl: command not found
sudo: ovs-ofctl: command not found
sudo: ovs-ofctl: command not found
sudo: ovs-ofctl: command not found
sudo: ovs-ofctl: command not found
sudo: ovs-ofctl: command not found
+ ./stack.sh:exit_trap:L498: exit 1

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Fix for:

sudo: ovs-vsctl: command not found

[root@centos7-master ~]#yum -y install wget openssl-devel gcc make python-devel openssl-devel kernel-devel graphviz kernel-debug-devel autoconf automake rpm-build redhat-rpm-config libtool

[root@centos7-master ~]# adduser ovs
[root@centos7-master ~]# su - ovs
[ovs@centos7-master ~]$ mkdir -p ~/rpmbuild/SOURCES
[ovs@centos7-master ~]$ wget http://openvswitch.org/releases/openvswitch-2.4.0.tar.gz
[ovs@centos7-master ~]$ cp openvswitch-2.4.0.tar.gz rpmbuild/SOURCES/
[ovs@centos7-master ~]$ tar -xvf openvswitch-2.4.0.tar.gz

[ovs@centos7-master ~]$ sed 's/openvswitch-kmod, //g' openvswitch-2.4.0/rhel/openvswitch.spec > openvswitch-2.4.0/rhel/openvswitch_no_kmod.spec
[ovs@centos7-master ~]$ rpmbuild -bb --nocheck openvswitch-2.4.0/rhel/openvswitch_no_kmod.spec
[ovs@centos7-master ~]$ exit

[root@centos7-master ~]# mkdir /etc/openvswitch
[root@centos7-master ~]# yum localinstall /home/ovs/rpmbuild/RPMS/x86_64/openvswitch-2.4.0-1.x86_64.rpm

[root@centos7-master ~]# semanage fcontext -a -t openvswitch_rw_t "/etc/openvswitch(/.*)?"
libsemanage.dbase_llist_query: could not query record value (No such file or directory).
[root@centos7-master ~]# restorecon -Rv /etc/openvswitch
restorecon reset /etc/openvswitch context unconfined_u:object_r:etc_t:s0->unconfined_u:object_r:openvswitch_rw_t:s0
[root@centos7-master ~]# systemctl start openvswitch.service
[root@centos7-master ~]# systemctl enable openvswitch.service

[root@centos7-master ~]# ovs-vsctl -V
ovs-vsctl (Open vSwitch) 2.4.0
Compiled Feb 19 2016 03:41:32
DB Schema 7.12.1

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

:) The new error is:

ovs-ofctl: br-int is not a bridge or a socket
ovs-ofctl: br-tun is not a bridge or a socket
ovs-ofctl: br-ex is not a bridge or a socket
ovs-ofctl: br-int is not a bridge or a socket
ovs-ofctl: br-tun is not a bridge or a socket
ovs-ofctl: br-ex is not a bridge or a socket
+ ./stack.sh:exit_trap:L498: exit 1

Well it turned out to be not so easy to get ready:

http://docs.openstack.org/developer/devstack/

Changed in devstack:
assignee: nobody → Einst Crazy (yu-changcai)
Changed in devstack:
assignee: Einst Crazy (yu-changcai) → nobody
Revision history for this message
Einst Crazy (yu-changcai) wrote :

It report generate-subunit, when it come to fail, so it means other error

Revision history for this message
Matt Riedemann (mriedem) wrote :

I hit this too, I found out I had an error in my local.conf. I missed commented out a line, so double check your local.conf.

Revision history for this message
Matt Riedemann (mriedem) wrote :

*I missed commenting out a line.

Changed in devstack:
status: New → Invalid
Revision history for this message
ved (ved-rajesh) wrote :

Noticed similar issue on Ubuntu VM

++lib/tempest:install_tempest:598 /opt/stack/tempest/.tox/tempest/bin/pip install -c /opt/stack/requirements/upper-constraints.txt -r requirements.txt
/home/ubuntu/devstack/lib/tempest: line 598: /opt/stack/tempest/.tox/tempest/bin/pip: No such file or directory
+lib/tempest:install_tempest:1 exit_trap
+./stack.sh:exit_trap:473 local r=1
++./stack.sh:exit_trap:474 jobs -p
+./stack.sh:exit_trap:474 jobs=
+./stack.sh:exit_trap:477 [[ -n '' ]]
+./stack.sh:exit_trap:483 kill_spinner
+./stack.sh:kill_spinner:369 '[' '!' -z '' ']'
+./stack.sh:exit_trap:485 [[ 1 -ne 0 ]]
+./stack.sh:exit_trap:486 echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:487 generate-subunit 1463484056 188 fail
./stack.sh: line 487: generate-subunit: command not found

Tried this command too ie sudo pip install -U os-testr and then ./stack.sh , but still facing same issue

Revision history for this message
Anup (anup-d-navare) wrote :

ved (ved-rajesh): Were you able to fix this problem? I am hitting the same error.

Revision history for this message
Manjeet Singh Bhatia (manjeet-s-bhatia) wrote :

this is not a bug actually,

it happens if devstack unable to install some packages like in my case it was enable to get liberasurecode-dev which led into that issue,

you to edit /etc/apt/source.list to enable install from trusty-backport (if ubuntu server) or xyz backports in case of other server

that fixed the issue for me.

Revision history for this message
clayg (clay-gerrard) wrote :

for me it was just not having a local.conf - weird failure mode...

Revision history for this message
clayg (clay-gerrard) wrote :

ah, so this is getting hit in the exit handler - if something fails before subunit get's installed (which is fairly late in the process) it blows up in the exit handler with command not found instead of highlighting the part that acctually failed - which was probably some sort of read_password thing if your local.conf was missing.

Revision history for this message
Solomon (solly989) wrote :

I just traced the error back and fixed as I went along. For me the error was:

+++lib/tls:source:43 hostname -f
hostname: Name or service not known
++lib/tls:source:43 DEVSTACK_HOSTNAME=
+++lib/tls:source:43 err_trap
+++./stack.sh:err_trap:517 local r=1
stack.sh failed: full log in /opt/stack/logs/stack.sh.log.2017-03-19-012504
Error on exit
./stack.sh: line 501: generate-subunit: command not found

so I went to lib/tls, line 43, and set removed the -f from my hostname command. Running 'hostname -f' in the shell returned an error.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.