cncf / onap-demo

*NO LONGER MAINTAINED* Fork of https://github.com/onap/demo. Goal: Support Packet, update OpenStack, test VNF use cases, create equivalent CNF use cases on K8s. All CNF development has moved to the CNCF CNF Testbed, https://github.com/cncf/cnf-testbed.
Other
2 stars 10 forks source link

Could not find artifact io.fd.vpp:jvpp-ves:jar:17.04.2-SNAPSHOT when building a pre-built vG-MUX VNF Image #3

Closed taylor closed 5 years ago

taylor commented 6 years ago

Build failure occurs while running ./v_gmux_install.sh from step 5 of https://wiki.onap.org/display/DW/ONAP+vCPE+VPP-based+VNF+Installation+and+Usage+Information#ONAPvCPEVPP-basedVNFInstallationandUsageInformation-Buildingapre-builtVNFImage

Error Message:

[ERROR] Failed to execute goal on project ves-impl: Could not resolve dependencies for project io.fd.hc2vpp.ves:ves-impl:bundle:1.17.04.1-SNAPSHOT: Could not find artifact io.fd.vpp:jvpp-ves:jar:17.04.2-SNAPSHOT in opendaylight-snapshot 

Step from wiki

  1. From /opt, invoke the install script ./v_gmux_install.sh This will build vpp and honeycomb code, it may take 30-40 minutes

Console output

[INFO] ves-impl ........................................... FAILURE [  5.284 s]                                                                                                                                     [INFO] ves-agent .......................................... SKIPPED
[INFO] samples-api ........................................ SKIPPED
[INFO] samples-impl ....................................... SKIPPED
[INFO] samples ............................................ SKIPPED
[INFO] vpp-classifier-aggregator .......................... SKIPPED
[INFO] l3-utils ........................................... SKIPPED
[INFO] l3-impl ............................................ SKIPPED
[INFO] l3-aggregator ...................................... SKIPPED
[INFO] vpp-management-api ................................. SKIPPED
[INFO] vpp-management-impl ................................ SKIPPED
[INFO] vpp-management-aggregator .......................... SKIPPED
[INFO] vpp-integration-distribution ....................... SKIPPED
[INFO] vpp-integration .................................... SKIPPED
[INFO] api-test ........................................... SKIPPED
[INFO] it-aggregator ...................................... SKIPPED
[INFO] hc2vpp ............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:51 h
[INFO] Finished at: 2018-05-23T23:59:41+00:00
[INFO] Final Memory: 148M/477M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ves-impl: Could not resolve dependencies for project io.fd.hc2vpp.ves:ves-impl:bundle:1.17.04.1-SNAPSHOT: Could not find artifact io.fd.vpp:jvpp-ves:jar:17.04.2-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :ves-impl
++ grep '<version>'
++ cat pom.xml
++ head -1
+ l_version='    <version>1.17.04.1-SNAPSHOT</version>'
++ echo '    <version>1.17.04.1-SNAPSHOT'
+ l_version='    <version>1.17.04.1-SNAPSHOT'
++ echo 1.17.04.1-SNAPSHOT
+ l_version=1.17.04.1-SNAPSHOT
+ mv vpp-integration/minimal-distribution/target/vpp-integration-distribution-1.17.04.1-SNAPSHOT-hc/vpp-integration-distribution-1.17.04.1-SNAPSHOT /opt/honeycomb
mv: cannot stat 'vpp-integration/minimal-distribution/target/vpp-integration-distribution-1.17.04.1-SNAPSHOT-hc/vpp-integration-distribution-1.17.04.1-SNAPSHOT': No such file or directory
+ sed -i s/127.0.0.1/0.0.0.0/g /opt/honeycomb/config/honeycomb.json
sed: can't read /opt/honeycomb/config/honeycomb.json: No such file or directory
+ [[ openstack != \r\a\c\k\s\p\a\c\e ]]
+ echo 'APT::Periodic::Unattended-Upgrade "0";'
+ sed -i 's/\(APT::Periodic::Unattended-Upgrade\) "1"/\1 "0"/' /etc/apt/apt.conf.d/20auto-upgrades
lixuna commented 6 years ago

Below is the command line instructions for recreating this error without running the vgmux install script:

    p_version_snap=$(cat ves/ves-impl/pom.xml | grep -A 1 "jvpp-ves" | tail -1)
    p_version_snap=$(echo "${p_version_snap%<*}")
    p_version_snap=$(echo "${p_version_snap#*>}")
    p_version=$(echo "${p_version_snap%-*}")
mvn install:install-file -Dfile=/usr/share/java/jvpp-ves-${p_version}.jar -DgroupId=io.fd.vpp -DartifactId=jvpp-ves -Dversion=${p_version_snap} -Dpackaging=jar
lixuna commented 6 years ago

@taylor please share a link to the script with Ed W.

taylor commented 6 years ago

@edwarnicke, the build fails in the v_gmux_install.sh script on the following line https://github.com/onap/demo/blob/master/vnfs/vCPE/scripts/v_gmux_install.sh#L372

mvn install:install-file -Dfile=/usr/share/java/jvpp-ves-${p_version}.jar -DgroupId=io.fd.vpp -DartifactId=jvpp-ves -Dversion=${p_version_snap} -Dpackaging=jar

taylor commented 6 years ago

@edwarnicke, btw, The vg-mux install script doe patch the code which is downloaded, https://github.com/onap/demo/blob/master/vnfs/vCPE/scripts/v_gmux_install.sh#L81. The patches are in https://github.com/onap/demo/tree/master/vnfs/vCPE/vpp-ves-agent-for-vgmux/src/patches

lixuna commented 6 years ago

in https://wiki.onap.org/display/DW/ONAP+vCPE+VPP-based+VNF+Installation+and+Usage+Information

Eric Multanen said:

ok - I reproduced this. I was able to build the vg-mux honeycomb with some changes. I've filed INT-525 - VPP vCPE VNF images cannot be built TO DO .

Upstream ticket: https://jira.onap.org/browse/INT-525

taylor commented 6 years ago

Initial Dockerfile for building vg_mux https://github.com/cncf/onap-demo/commit/7ec37fbab2462c2463849e35c756ecc624caf42d

taylor commented 6 years ago

Docker can be used for recreating the issue on the amsterdam (and child) branches as well as master (with the libevel patch merged).

taylor commented 5 years ago

closing as invalid / will not fix.

Work has moved to the CNCF CNF Testbed.