Opendaylight installation fails Access Denied

Bug #1784784 reported by Karl Kloppenborg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Eduardo Gonzalez

Bug Description

Kolla-Ansible Queens, installation of opendaylight. Karaf log showing:

java.io.IOException: Error resolving artifact org.opendaylight.integration:features-integration-index:xml:features:0.6.2-Carbon: Could not transfer artifact org.opendaylight.integration:features-integration-index:xml:features:0.6.2-Carbon from/to gemini (http://zodiac.springsource.com/maven/bundles/release/): Access denied to: http://zodiac.springsource.com/maven/bundles/release/org/opendaylight/integration/features-integration-index/0.6.2-Carbon/features-integration-index-0.6.2-Carbon-features.xml , ReasonPhrase:Forbidden.

Which leads too:
2018-08-01 04:41:48,927 | ERROR | Event Dispatcher | BootFeaturesInstaller | 20 - org.apache.karaf.features.core - 3.0.8 | Error Boot feature odl-mdsal-apidocs not found
2018-08-01 04:41:48,927 | ERROR | Event Dispatcher | BootFeaturesInstaller | 20 - org.apache.karaf.features.core - 3.0.8 | Error Boot feature odl-netvirt-openstack not found

It appears due to this being denied no repositories are added to karaf:

opendaylight-user@root>feature:repo-list
Repository | URL
--------------------------------------------------------------------------------------
standard-3.0.8 | mvn:org.apache.karaf.features/standard/3.0.8/xml/features
org.ops4j.pax.web-3.2.9 | mvn:org.ops4j.pax.web/pax-web-features/3.2.9/xml/features
enterprise-3.0.8 | mvn:org.apache.karaf.features/enterprise/3.0.8/xml/features
org.ops4j.pax.cdi-0.11.0 | mvn:org.ops4j.pax.cdi/pax-cdi-features/0.11.0/xml/features
spring-3.0.8 | mvn:org.apache.karaf.features/spring/3.0.8/xml/features
opendaylight-user@root>

Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

Hi,

This issue is being fixed in https://review.openstack.org/#/c/571441/

As quick workaround, change the variable opendaylight_release to the odl version in the image.

As they are out of sync, odl cannot load other releases repositories.

Regards

Changed in kolla-ansible:
status: New → Triaged
assignee: nobody → Eduardo Gonzalez (egonzalez90)
importance: Undecided → Medium
Revision history for this message
Karl Kloppenborg (karlkloppenborg) wrote :

Hi Eduardo,

Could you please give me an example of that workaround?

Sorry to be a bother, I don't think I'm following.

Thanks,
Karl.

Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

Sure,

check whats the current odl version, it depends on the distro.
For current centos images version is carbon 6.4.0

http://cbs.centos.org/repos/nfv7-opendaylight-6-release/x86_64/os/Packages/

Change the variable on your globals or add it if does not exists.

opendaylight_release: "6.4.0-Carbon"

Deploy again

Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

Ubuntu is using 6.3.0

Can verify it running an opendaylight container with the same image and listing package list

Revision history for this message
Karl Kloppenborg (karlkloppenborg) wrote :

So I take it I should just replace opendaylight_realease: "0.6.2-Carbon"

with opendaylight_realease: "6.3.0" ?

--Karl.

Revision history for this message
Karl Kloppenborg (karlkloppenborg) wrote :

Sorry missed your above comment, disregard!

Revision history for this message
Karl Kloppenborg (karlkloppenborg) wrote :

Hi Eduardo!

Tried your suggestion and still no go:

2018-08-01 07:21:54,205 | WARN | Event Dispatcher | FeaturesServiceImpl | 20 - org.apache.karaf.features.core - 3.0.8 | Unable to add features repository mvn:org.opendaylight.integration/features-integration-index/6.4.0-Carbon/xml/features at startup
java.io.IOException: Error resolving artifact org.opendaylight.integration:features-integration-index:xml:features:6.4.0-Carbon: Could not transfer artifact org.opendaylight.integration:features-integration-index:xml:features:6.4.0-Carbon from/to gemini (http://zodiac.springsource.com/maven/bundles/release/): Access denied to: http://zodiac.springsource.com/maven/bundles/release/org/opendaylight/integration/features-integration-index/6.4.0-Carbon/features-integration-index-6.4.0-Carbon-features.xml , ReasonPhrase:Forbidden.

Thanks,
Karl.

Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

Could you try this fix? Need to destroy odl containers as may be in an inconsistent data state.

https://review.openstack.org/#/c/571441/

Regards

Changed in kolla-ansible:
status: Triaged → In Progress
Revision history for this message
Karl Kloppenborg (karlkloppenborg) wrote :

Hi Eduardo,

Still getting this error:
2018-08-02 05:35:06,694 | WARN | Event Dispatcher | FeaturesServiceImpl | 20 - org.apache.karaf.features.core - 3.0.8 | Unable to add features repository mvn:org.opendaylight.integration/features-integration-index/6.3.0-Carbon/xml/features at startup
java.io.IOException: Error resolving artifact org.opendaylight.integration:features-integration-index:xml:features:6.3.0-Carbon: Could not transfer artifact org.opendaylight.integration:features-integration-index:xml:features:6.3.0-Carbon from/to gemini (http://zodiac.springsource.com/maven/bundles/release/): Access denied to: http://zodiac.springsource.com/maven/bundles/release/org/opendaylight/integration/features-integration-index/6.3.0-Carbon/features-integration-index-6.3.0-Carbon-features.xml , ReasonPhrase:Forbidden.
 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:661)

Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

Hi,
I just tested the fix with centos source deployment and it works as expected.

What are the release, install type and distribution used? Do you have network access in the ODL node?

I've tested in a node with internet, so maybe is a reason.

Regards

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.openstack.org/571441
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=6e17f942b59c35e65d883e4f1dabb5da7ec3e1aa
Submitter: Zuul
Branch: master

commit 6e17f942b59c35e65d883e4f1dabb5da7ec3e1aa
Author: Eduardo Gonzalez <email address hidden>
Date: Thu May 31 12:57:15 2018 +0200

    Improve ODL configuration

    Configure automatically ODL version based on the package version
    rather than maintain a hardcoded version.

    This has caused many issue while package version differs with the variable
    set.

    Closes-Bug: 1784784
    Change-Id: I15da5d2583b5727942d598d183cc481f0e33d0e6

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/600078

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/rocky)

Reviewed: https://review.openstack.org/600078
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=337334d923b90be75c3e9b2be934e050ed7ca5b2
Submitter: Zuul
Branch: stable/rocky

commit 337334d923b90be75c3e9b2be934e050ed7ca5b2
Author: Eduardo Gonzalez <email address hidden>
Date: Thu May 31 12:57:15 2018 +0200

    Improve ODL configuration

    Configure automatically ODL version based on the package version
    rather than maintain a hardcoded version.

    This has caused many issue while package version differs with the variable
    set.

    Closes-Bug: 1784784
    Change-Id: I15da5d2583b5727942d598d183cc481f0e33d0e6
    (cherry picked from commit 6e17f942b59c35e65d883e4f1dabb5da7ec3e1aa)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 7.0.0.0rc2

This issue was fixed in the openstack/kolla-ansible 7.0.0.0rc2 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 8.0.0.0b1

This issue was fixed in the openstack/kolla-ansible 8.0.0.0b1 development milestone.

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.