make rpm command failed on R5.0 branch: due to contrail-vcenter-manager project

Bug #1779886 reported by Anda-Maria Nicolae
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Incomplete
High
Anda-Maria Nicolae
Trunk
Incomplete
High
Anda-Maria Nicolae

Bug Description

Hi all,

I tried to build Contrail R5.0 following the instructions from contrail-dev-env repo. I encounter the following error when running "make rpm" command:

+ scons --opt=production --root=/root/contrail/BUILDROOT/contrail-vcenter-manager-5.0.1-070320180025.el7.x86_64 cvm-install
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: *** Do not know how to make File target `cvm-install' (/root/contrail/cvm-install). Stop.
scons: building terminated because of errors.
error: Bad exit status from /var/tmp/rpm-tmp.OyJuFr (%install)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.OyJuFr (%install)
make: *** [rpm-contrail-vcenter-manager] Error 1

I've noticed that contrail-vcenter-manager was recently added in default.xml from contrail-vnc repo.

If I remove contrail-vcenter-manager from default.xml and also remove its associated spec file, make rpm works ok.

Can you please take a look?

Thanks,
Anda

Tags: vcenter-only
information type: Proprietary → Public
Jeba Paulaiyan (jebap)
tags: added: vmware
Revision history for this message
Mihai-Costin Broc (mbroc) wrote :

It worked for me to build if I removed the changes from commit c2f9c50dc012b9ba651c6fa3dd0842a3e0320419:
 https://github.com/Juniper/contrail-packages/commit/c2f9c50dc012b9ba651c6fa3dd0842a3e0320419#diff-8c3e5c7c4f4149c006aa7d9c0d4819b2

Revision history for this message
Krzysztof Gromadzki (krzysztof.gromadzki) wrote :

Hi all,
  I suspect that error occured because command "make rpm" was launched in dev-env's state that didn't contain contrail-vcenter-manager repo with proper SConscript. I launched "make rpm-contrail-vcenter-manager" with old cvm code (before SConscript was added) and I got same error. With new cvm code "make rpm-contrail-vcenter-manager" should work properly.
  Anda, can you run "make rpm-contrail-vcenter-manager" once again and inform about result?

Thanks,
Krzysztof

Revision history for this message
Krzysztof Gromadzki (krzysztof.gromadzki) wrote :

For clearity I meant run "make rpm-contrail-vcenter-manger" with newest contrail-vcenter-manager code.

Revision history for this message
Vineet Gupta (vineetrf) wrote :

Hi Anda,

Please re-validate this issue with the latest build.

- Vineet

Revision history for this message
Anda-Maria Nicolae (anicolae) wrote :

Hi all,

I managed to build contrail-vcenter-manager rpm. You can close the bug.

Thanks,
Anda

Revision history for this message
Gregory Elkinbard (elkinbar) wrote : Intro's

Alex,
Anda has some questions on RedHAt integration
Greg

tags: added: vcenter-only
removed: vmware
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.