-
Notifications
You must be signed in to change notification settings - Fork 34
using sm lite for xenial 16.04
- Server-Manager : R4.0.0.0-3060
- Contrail-Cloud-Docker : R4.0.0.0-3057
Its fails in compute, due to mismatch of interface name/mac address, fix in 3060 of Contrail-Cloud-Docker
-
Node re-imaged with 16.04 (you may use lab-sm ubuntu-16.04-minimal image), 16.04.2/16.04.1 is not tested as of now. So avoid these.
'''smlite works ONLY with ubuntu-16.04-minimal image'''
-
Use
lsb_release -a
to verify installed version of OS -
Download 3060-sm-installer (See bottom of page for commands/url)
-
Download 3057-xenial cloud images (4.0-3057-newton cloud images are last good contrail-cloud for xenial, see url at bottom of page)
-
Get your testbed.py as sm-lite installation testbed.py
- 3057-newton fails for interfaces names
- nova services doesn't comes up, needs to start manually
- testbed_parser.py may fail because of bug 1686245
- sm-webui installation fails for xenial, so --no-sm-webui
- re-provisioning of same nodes, would new cluster and new passwords every time, so it is advisable to use
--cluster-id
during provisioning,
-
apt-get install -y vlan
: Install vlan package, first on ALL NODES ( This is temp step for 3060 release, else preconfig.py will fail) -
echo > /etc/apt/sources.list
: clean-up your sources.list on ALL NODES, This step is temporary, and will moved to installation procedure. -
apt-get update
: to ensure cleaned up repo list
- Install server-manager installer packages (
dpkg -i contrail-server-manager-installer_4.0.0.0-3060~newton_all.deb
). - Above step should create /opt/contrail/contrail_server_manager, go to /opt/contrail/contrail_server_manager
- Issue provision_containers.sh with testbed and contrail-cloud image.
./provision_containers.sh --testbed /root/testbed.py.dg-n002 --contrail-package /root/contrail-cloud-docker_4.0.0.0-3057-newton.tgz --no-sm-webui --cluster-id xenial-cluster
(SM web-ui package has some trouble right now, disabling it) - Above process would take a while to complete.
- Once above provision_containers.sh completed, it should print message about check status of provisioning.
----> Check provisioning status using /opt/contrail/contrail_server_manager/provision_status.sh
- You may check status using
watch /opt/contrail/contrail_server_manager/provision_status.sh
Debugging is same as 14.04 SM-Lite, no changes.
- check for
tailf /var/log/syslog | grep puppet-agent
so check for puppet status. Once puppet completes, ansible provisioning starts. - Openstack provisioning takes some time (may be ~15-20 mins, depends on hardware).
- Openstack provisioning may take 2 rounds of puppet run, wait 2nd run should be faster.
- Openstack provisioning should be completed with following message:
Apr 25 11:57:15 dg-n006 puppet-agent[14833]: (/Stage[openstack]/Contrail::Profile::Openstack_controller/Contrail::Lib::Report_status[openstack_completed]/Exec[contrail-status-openstack_completed]/returns) executed successfully
- Following means openstack provisioning has been completed, This is not a error.
Apr 25 11:58:07 dg-n006 puppet-agent[20636]: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node dg-n006.englab.juniper.net: Could not find a directory environment named 'TurningOffPuppetAgent__2017_04_25__11_57_43' anywhere in the path: /etc/puppet/environments. Does the directory exist?
-
tailf /var/log/contrail-server-manager/debug.log
provides details about ansible provisioning logs. -
tailf /var/log/contrail-server-manager/debug.log | grep "sm_ansible_callback.py"
should filter ansible provisioning logs
"2017-04-25 12:06:05,901-INFO-sm_ansible_callback.py:43-append(): changed: [10.84.22.136]" "2017-04-25 12:06:05,908-INFO-sm_ansible_callback.py:43-append(): TASK [docker : Pin contrail apt repo "contrail" release to priority 999]" "2017-04-25 12:06:06,868-INFO-sm_ansible_callback.py:43-append(): changed: [10.84.22.136]"
wget http://10.84.5.120/github-build/mainline/3060/ubuntu-16-04/newton/artifacts/contrail-server-manager-installer_4.0.0.0-3060~newton_all.deb
wget http://10.84.5.120/github-build/mainline/3057/ubuntu-16-04/newton/artifacts/contrail-cloud-docker_4.0.0.0-3057-newton.tgz
apt-get install -y vlan
echo > /etc/apt/sources.list
apt-get update
dpkg -i contrail-server-manager-installer_4.0.0.0-3060~newton_all.deb
cd /opt/contrail/contrail_server_manager
./provision_containers.sh --testbed /root/testbed.py --contrail-package /root/contrail-cloud-docker_4.0.0.0-3057-newton.tgz --no-sm-webui --cluster-id xenial-cluster
watch /opt/contrail/contrail_server_manager/provision_status.sh
tailf /var/log/syslog | grep puppet-agent
tailf /var/log/contrail-server-manager/debug.log