Deployment of 5.0 containers fails on RedHat

Bug #1766231 reported by Mihai-Costin Broc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Committed
Undecided
Mihai-Costin Broc
Trunk
Fix Committed
High
Mihai-Costin Broc
OpenContrail
New
Undecided
Mihai-Costin Broc

Bug Description

When trying to deploy 5.0 containers (built on the master branch) with the https://github.com/Juniper/contrail-ansible-deployer it gave the following errors:

1)When running ansible-playbook -vvv -i inventory/ -e orchestrator=none playbooks/configure_instances.yml:

TASK [configure_instances : install epel] **************************************
task path: /contrail-ansible-deployer/playbooks/roles/configure_instances/tasks/RedHat.yml:15
fatal: [10.241.14.244]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "allow_downgrade": false,
            "conf_file": null,
            "disable_gpg_check": false,
            "disablerepo": null,
            "enablerepo": null,
            "exclude": null,
            "install_repoquery": true,
            "installroot": "/",
            "list": null,
            "name": [
                "epel-release"
            ],
            "security": false,
            "skip_broken": false,
            "state": "latest",
            "update_cache": false,
            "validate_certs": true
        }
    },
    "msg": "No package matching 'epel-release' found available, installed or updated",
    "rc": 126,
    "results": [
        "No package matching 'epel-release' found available, installed or updated"
    ]
}

2)When running ansible-playbook -vvv -i inventory/ -e orchestrator=none playbooks/install_contrail.yml:

TASK [install_contrail : set vrouter kernel init image name] *******************
task path: /contrail-ansible-deployer/playbooks/roles/install_contrail/tasks/create_vrouter.yml:88
skipping: [10.241.14.245] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}
Read vars_file '{{ hostvars['localhost'].config_file }}'

TASK [install_contrail : set vrouter kernel init image name] *******************
task path: /contrail-ansible-deployer/playbooks/roles/install_contrail/tasks/create_vrouter.yml:93
skipping: [10.241.14.245] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}
Read vars_file '{{ hostvars['localhost'].config_file }}'

TASK [install_contrail : update image] *****************************************
task path: /contrail-ansible-deployer/playbooks/roles/install_contrail/tasks/create_vrouter.yml:98
fatal: [10.241.14.245]: FAILED! => {
    "msg": "'vrouter_kernel_init_img_name' is undefined"
}

Changed in opencontrail:
assignee: nobody → Mihai-Costin Broc (mbroc)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/42407
Submitter: Mihai-Costin Broc (<email address hidden>)

Jeba Paulaiyan (jebap)
no longer affects: juniperopenstack/r4.1
tags: added: provisioning rhosp
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/42407
Committed: http://github.com/Juniper/contrail-ansible-deployer/commit/f980bcce3bb7263e55d13ae90c19bdc933098361
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit f980bcce3bb7263e55d13ae90c19bdc933098361
Author: Mihai-Costin Broc <email address hidden>
Date: Mon Apr 23 16:08:23 2018 +0300

Fixed errors for RedHat deployment

For RedHat distribution install epel from the
https://dl.fedoraproject.org/pub/epel/ link.
Use ansible_os_family to include both Centos and RedHat distributions.

Change-Id: I3b59e6c2747142e25078088016759c96d1995a55
Closes-Bug: #1766231
Signed-off-by: Mihai-Costin Broc <email address hidden>

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R5.0

Review in progress for https://review.opencontrail.org/42500
Submitter: Mihai-Costin Broc (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/42500
Committed: http://github.com/Juniper/contrail-ansible-deployer/commit/243ff715e79423c3962905f4233184890854b51c
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit 243ff715e79423c3962905f4233184890854b51c
Author: Mihai-Costin Broc <email address hidden>
Date: Mon Apr 23 16:08:23 2018 +0300

Fixed errors for RedHat deployment

For RedHat distribution install epel from the
https://dl.fedoraproject.org/pub/epel/ link.
Use ansible_os_family to include both Centos and RedHat distributions.

Change-Id: I3b59e6c2747142e25078088016759c96d1995a55
Closes-Bug: #1766231
Signed-off-by: Mihai-Costin Broc <email address hidden>
(cherry picked from commit f980bcce3bb7263e55d13ae90c19bdc933098361)

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.