[R4.0 ocata]SM not updating sources.list during provision

Bug #1715379 reported by aswani kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Incomplete
High
Ramprakash R
Trunk
Incomplete
High
Ramprakash R

Bug Description

R4.0 ocata Server-Manager

SM failed to update these sources in sources.list during provision

deb http://puppet/thirdparty_packages_ubuntu_1604 ./
deb http://puppet/thirdparty_packages/ ./
deb http://archive.ubuntu.com/ubuntu xenial main universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main universe multiverse

Currently we are updating manually as a workaround.

tags: added: server-manager
Changed in juniperopenstack:
importance: Undecided → High
tags: added: sanity
Changed in juniperopenstack:
assignee: nobody → Abhay Joshi (abhayj)
milestone: none → r4.1.0.0-fcs
Abhay Joshi (abhayj)
Changed in juniperopenstack:
assignee: Abhay Joshi (abhayj) → Ramprakash R (ramprakash)
Revision history for this message
Ramprakash R (ramprakash) wrote :

Could you please explain what issue you are observing? If possible, please paste the error you see in /var/log/contrail-server-manager/debug.log file.

This issue has been fixed via bug #1713559 and I can see the repos in /etc/apt/sources.list.d/xenial_ubuntu.list when using the Ocata continuous build #34.

Changed in juniperopenstack:
status: New → Incomplete
Revision history for this message
Abhay Joshi (abhayj) wrote :
Download full text (3.8 KiB)

From: Wenqing Liang <email address hidden>
Date: Wednesday, September 6, 2017 at 11:56 AM
To: Aswani Kumar Gaddam <email address hidden>, Ramprakash Ram Mohan <email address hidden>
Cc: Jeba Paulaiyan <email address hidden>, Abhay Joshi <email address hidden>, Sudheendra Rao <email address hidden>
Subject: https://bugs.launchpad.net/juniperopenstack/+bug/1715379

Hi,

FYI, here is the sources.list after running preconfig.py on our VM cluster on CB R4.0-34 ocata.   The provision completed okay afterwards.

root@servermanager:~# cat /etc/apt/sources.list
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
##     or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://nova.clouds.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://nova.clouds.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://nova.clouds.archive.ubuntu.com/ubuntu/ xenial universe
deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ xenial universe
deb http://nova.clouds.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://nova.clouds.archive.ubuntu.com/ubuntu/ xenial multiverse
deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://nova.clouds.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://nova.clouds.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http:/...

Read more...

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

The bug arises from this https://github.com/Juniper/contrail-server-manager/wiki/Provision-Contrail-4.0.1-(Ocata-Openstack-Containers)-on-a-single-node-all-in-one-cluster-using-Server-Manager#target-node-requirements-for-ocata-containers

Right now after re-imaging with SM we have to take manual steps to ensure that sources.list on the target nodes are fine and need to run apt-get update on each node before issuing provisioning

So this step needs to be automated.

https://review.opencontrail.org/#/c/35049/

Above commit should fix the issue.

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

We will run provisioning and check if pre provisioning task fixes the sources.list and get back with the updates.

Revision history for this message
aswani kumar (aswanikumar90) wrote :

Tested provisioning with official build 29 not seeing the issue
provision going fine

It got fixed by this https://review.opencontrail.org/#/c/35049/

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.