smlite: 3.0 2718: Add contrail image fails with error IOError(2, 'No such file or directory'

Bug #1554597 reported by sundarkh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.22.x
Won't Fix
High
Dheeraj Gautam
R3.0
Fix Committed
High
Dheeraj Gautam
Trunk
Fix Committed
High
Dheeraj Gautam

Bug Description

smlite: 3.0 2718: Add contrail image fails with error IOError(2, 'No such file or directory'

oot@nodej8:~# server-manager add image
id:ubuntu14juno2718
version (Specify version for this image) : 2718
category (image/package) : package
type (ubuntu/centos/redhat/esxi5.1/esxi5.5/contrail-ubuntu-package/contrail-centos-package/contrail-storage-ubuntu-package) : contrail-ubuntu-package
path (complete path where image file is located on server) : /cs-shared/github-build/mainline/2718/ubuntu-14-04/juno/contrail-install-packages_3.1.0.0-2718~juno_all.deb
kickstart (kickstart file for base image) :
kickseed (kickseed file for base image) :
More image(s) to input? (y/N)n
{
   "return_code": 9,
   "return_data": null,
   "return_msg": "IOError(2, 'No such file or directory')"
}
root@nodej8:~# ls -lrt /cs-shared/github-build/mainline/2718/ubuntu-14-04/juno/contrail-install-packages_3.1.0.0-2718~juno_all.deb
-rw-r--r-- 1 1000 1000 575585242 Mar 6 21:14 /cs-shared/github-build/mainline/2718/ubuntu-14-04/juno/contrail-install-packages_3.1.0.0-2718~juno_all.deb

Workaround :
/etc/contrail_smgr/images/ <>.deb

Revision history for this message
sundarkh (sundar-kh) wrote :
sundarkh (sundar-kh)
description: updated
Revision history for this message
sundarkh (sundar-kh) wrote :

Seen with SM 2724 also

2016-03-11 02:12:31,987-DEBUG-server_mgr_main.py:1296-get_image(): None"
"2016-03-11 02:12:57,852-DEBUG-server_mgr_main.py:1358-put_image(): add_image"
"2016-03-11 02:12:57,853-DEBUG-server_mgr_main.py:1047-validate_smgr_request(): validate_smgr_request"
"2016-03-11 02:12:57,854-INFO-server_mgr_main.py:230-merge_dict(): category already present in dict d1,Retaining value package against "
"2016-03-11 02:12:57,856-INFO-server_mgr_main.py:234-merge_dict(): adding kickstart:None"
"2016-03-11 02:12:57,857-INFO-server_mgr_main.py:234-merge_dict(): adding kickseed:None"
"2016-03-11 02:12:57,858-INFO-server_mgr_main.py:230-merge_dict(): version already present in dict d1,Retaining value 2724 against "
"2016-03-11 02:12:57,859-INFO-server_mgr_main.py:230-merge_dict(): path already present in dict d1,Retaining value /cs-shared/github-build/R3.0/2724/ubuntu-14-04/kilo/contrail-install-packages_3.0.0.0-2724~kilo_all.deb against "
"2016-03-11 02:12:57,860-INFO-server_mgr_main.py:230-merge_dict(): type already present in dict d1,Retaining value contrail-ubuntu-package against "
"2016-03-11 02:12:57,862-INFO-server_mgr_main.py:230-merge_dict(): id already present in dict d1,Retaining value ubuntu14kilo2724 against "
"2016-03-11 02:12:57,863-DEBUG-server_mgr_main.py:1072-validate_smgr_request(): ret_val_data returned: {'status': 1}"
"2016-03-11 02:13:00,328-ERROR-server_mgr_main.py:3152-log_trace(): *****TRACEBACK-START*****"
"2016-03-11 02:13:00,329-ERROR-server_mgr_main.py:3156-log_trace(): Traceback (most recent call last):
"
"2016-03-11 02:13:00,330-ERROR-server_mgr_main.py:3156-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 1411, in put_image
    image_id, image_type, image_version, image_path)
"
"2016-03-11 02:13:00,331-ERROR-server_mgr_main.py:3156-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 2250, in _create_repo
    raise(e)
"
"2016-03-11 02:13:00,332-ERROR-server_mgr_main.py:3156-log_trace(): IOError: [Errno 2] No such file or directory: u'/etc/puppet/environments/ubuntu14kilo2724/README.environment'
"
"2016-03-11 02:13:00,332-ERROR-server_mgr_main.py:3157-log_trace(): *****TRACEBACK-END******"
                                                                                                                                                                 225790,1 99%

Jeba Paulaiyan (jebap)
tags: added: sanity
Revision history for this message
Nitish Krishna Kaveri (nitishk) wrote :

Same issue as seen in bug 1549967
Check-in made at https://review.opencontrail.org/#/c/18452/

Revision history for this message
sundarkh (sundar-kh) wrote :

Issue seen with 2.23 127 , ice house ubuntu 14-04

Revision history for this message
sundarkh (sundar-kh) wrote :

2016-03-21 00:13:32,603-DEBUG-server_mgr_mon_base_plugin.py:676-create_server_dict(): Created server dictionary."
"2016-03-21 00:13:42,824-DEBUG-server_mgr_main.py:2310-delete_image(): delete_image"
"2016-03-21 00:13:42,825-DEBUG-server_mgr_main.py:1022-validate_smgr_request(): validate_smgr_request"
"2016-03-21 00:13:42,826-DEBUG-server_mgr_main.py:1047-validate_smgr_request(): ret_val_data returned: {'status': 0, 'match_key': 'id', 'force': False, 'match_value': 'ubuntu-14-04'}"
"2016-03-21 00:13:44,202-ERROR-server_mgr_main.py:2380-delete_image(): Unable to delete image, OSError(2, 'No such file or directory')"
"2016-03-21 00:13:44,203-DEBUG-server_mgr_main.py:1688-form_operartion_data(): function_start"

Seen for 14-04.2 Ubuntu iso

Revision history for this message
Ritam Gangopadhyay (ritam) wrote :

Can someone please look into a fix for this. Sanities are holding up images due to this.

Revision history for this message
sundarkh (sundar-kh) wrote :

Seen with 2.22.x ice house latest builds also

Revision history for this message
Abhay Joshi (abhayj) wrote :

There is no plan to backport the fix to 2.22 at the moment.

Revision history for this message
sundarkh (sundar-kh) wrote :

Seen with R3.0 build 30

root@nodej8:/etc/contrail_smgr/images# server-manager-client upload-image --id ubuntu14juno28 --version 28 --category package --type contrail-ubuntu-package --file_name /cs-shared/github-build/R3.0/28/ubuntu-14-04/juno/contrail-install-packages_3.0.2.0-28~juno_all.deb

{
    "return_code": 9,
    "return_data": "OSError(2, 'No such file or directory')",
    "return_msg": ""
}

it still creates the image copy in

root@nodej8:/etc/contrail_smgr/images# ls -lrt
total 2830608
-rw-r--r-- 1 root root 438444342 Apr 20 04:10 ubuntu14juno129.deb
-rw-r--r-- 1 root root 424997476 Apr 20 04:54 ubuntu14icehouse129.deb
-rwxr-xr-x 1 root root 697303040 Apr 20 07:34 ubuntu-12-04.iso
-rw-r--r-- 1 root root 759855660 Apr 20 07:34 ubuntu12icehouse129.deb
-rw-r--r-- 1 root root 577911998 Apr 21 17:26 ubuntu14juno28.deb >>>>>>>>>>>>>>>>>>>>>

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.