provision with package added using "upload_image" is not creating yaml files

Bug #1462269 reported by Bharat Kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
Critical
prasad miriyala
Trunk
Fix Committed
Critical
prasad miriyala

Bug Description

Yaml files are not created for the provisioned servers, When provisioned using a package, which is uploaded using “upload_image” CLI, with “add” it is fine, this is blocking sanity.

Tested with R2.20 Build #41

Logs:
=======

root@nodec32:/etc/puppet/environments/r22ubuntu12icehouse41/hieradata# server-manager provision -F --cluster_id cluster_bk r22u12ice41
{
    "return_code": "0",
    "return_message": "server(s) provision issued",
    "server": [
        {
            "id": "nodeg34",
            "package_id": "r22u12ice41"
        },
        {
            "id": "nodec48",
            "package_id": "r22u12ice41"
        },
        {
            "id": "nodec49",
            "package_id": "r22u12ice41"
        },
        {
            "id": "nodec51",
            "package_id": "r22u12ice41"
        },
        {
            "id": "nodec63",
            "package_id": "r22u12ice41"
        }
    ]
}

root@nodec32:/etc/puppet/environments/r22u12ice41/hieradata# ls
contrail.yaml-example openstack.yaml-example
root@nodec32:/etc/puppet/environments/r22u12ice41/hieradata#
root@nodec32:/etc/puppet/environments/r22u12ice41/hieradata#
root@nodec32:/etc/puppet/environments/r22u12ice41/hieradata# ls
contrail.yaml-example openstack.yaml-example
root@nodec32:/etc/puppet/environments/r22u12ice41/hieradata#

root@nodec32:/etc/puppet/environments/r22ubuntu12icehouse41/hieradata# server-manager show image --image_id r22ubuntu12icehouse41 --detail
{
    "image": [
        {
            "category": "package",
            "id": "r22ubuntu12icehouse41",
            "parameters": {
                "kickseed": "",
                "kickstart": "",
                "puppet_manifest_version": "r22ubuntu12icehouse41",
                "sequence_provisioning_available": true
            },
            "path": "/cs-shared/github-build/R2.20/41/ubuntu-12-04/icehouse/contrail-install-packages_2.20-41~icehouse_all.deb",
            "type": "contrail-ubuntu-package",
            "version": "r22_12_41"
        }
    ]
}
root@nodec32:/etc/puppet/environments/r22ubuntu12icehouse41/hieradata# server-manager upload_image r22u12ice41 41 contrail-ubuntu-package /cs-shared/github-build/R2.20/41/ubuntu-12-04/icehouse/contrail-install-packages_2.20-41~icehouse_all.deb
{
    "return_code": 0,
    "return_data": null,
    "return_msg": "Image Uploaded"
}
root@nodec32:/etc/puppet/environments/r22ubuntu12icehouse41/hieradata# server-manager show image --image_id r22u12ice41 --detail
{
    "image": [
        {
            "category": null,
            "id": "r22u12ice41",
            "parameters": {
                "puppet_manifest_version": [
                    "r22u12ice41",
                    true
                ]
            },
            "path": "/etc/contrail_smgr/images/r22u12ice41.deb",
            "type": "contrail-ubuntu-package",
            "version": "41"
        }
    ]
}

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

Review in progress for https://review.opencontrail.org/11323
Submitter: prasad miriyala (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/11324
Submitter: prasad miriyala (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/11323
Committed: http://github.org/Juniper/contrail-server-manager/commit/0016744f1d07b6e4c683b69531aab7779548f427
Submitter: Zuul
Branch: R2.20

commit 0016744f1d07b6e4c683b69531aab7779548f427
Author: Prasad Miriyala <email address hidden>
Date: Fri Jun 5 14:36:30 2015 -0700

Closes-Bug: #1462269 provision with package added using "upload_image" is not creating yaml files
- During the upload_image, create_repo return values are not assigned properly

Change-Id: I88d1f6cfbcdf59510e7e857560a14b6e2a211e77

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/11324
Committed: http://github.org/Juniper/contrail-server-manager/commit/2508f5f2b6c3d952b5ee65d1a8be4d6abfc20ef2
Submitter: Zuul
Branch: master

commit 2508f5f2b6c3d952b5ee65d1a8be4d6abfc20ef2
Author: Prasad Miriyala <email address hidden>
Date: Fri Jun 5 14:36:30 2015 -0700

Closes-Bug: #1462269 provision with package added using "upload_image" is not creating yaml files
- During the upload_image, create_repo return values are not assigned properly

Change-Id: I88d1f6cfbcdf59510e7e857560a14b6e2a211e77

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.