SMLite:mainline:3037:Provisioning does not start with error at pre-config due to SM process running over docker0 IP
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
Critical
|
Nitish Krishna Kaveri |
Bug Description
SMLite:
1) Install SM Lite on the box
2) issue provision using
/opt/contrail/
testbed.py used
https:/
3) SM installation happens succesfully and the SM process runs over docker0 IP
netstat -anp | grep 9001
tcp 0 0 172.17.0.1:9001 0.0.0.0:* LISTEN 27385/python
root@nodec35:~#
Subsequent Provision fails
----> Provision contrail local repo
----> Creating local lepo -- /opt/contrail/
dpkg-scanpackages: warning: package libvirt-bin (filename ./libvirt-
dpkg-scanpackages: warning: used that one and ignored data from ./libvirt-
dpkg-scanpackages: warning: package cassandra (filename ./cassandra_
dpkg-scanpackages: warning: ignored that one and using data from ./cassandra_
dpkg-scanpackages: warning: package cassandra (filename ./cassandra_
dpkg-scanpackages: warning: used that one and ignored data from ./cassandra_
dpkg-scanpackages: warning: package libvirt0 (filename ./libvirt0_
dpkg-scanpackages: warning: ignored that one and using data from ./libvirt0_
dpkg-scanpackages: info: Wrote 810 entries to output Packages file.
----> Install server manager without cobbler option
----> This install is being logged at: /var/log/
----> Cleaning up existing sources.list and Server Manager sources file
----> Allow Install of Unauthenticated APT packages
----> Setting up Internet Repos
----> Installing dependent packages for Setting up Smgr repos
dpkg-scanpackages: warning: package python-urllib3 (filename ./python-
dpkg-scanpackages: warning: ignored that one and using data from ./python-
dpkg-scanpackages: info: Wrote 30 entries to output Packages file.
----> Server Manager
----> Using default puppet certificate name nodec35.
[mNotice: /File[/
[mNotice: Signed certificate request for ca[0m
----> Installing package Puppetmaster Passenger
----> Installing package Server Manager Lite
Configuring Ansible
- extracting docker to /etc/ansible/
- docker was installed successfully
- downloading role 'curl', owned by andrewrothstein
- downloading role from https:/
- extracting andrewrothstein
- andrewrothstein
Starting docker registry
Unable to find image 'registry:2' locally
2: Pulling from library/registry
b7f33cc0b48e: Pulling fs layer
46730e1e05c9: Pulling fs layer
458210699647: Pulling fs layer
0cf045fea0fd: Pulling fs layer
b78a03aa98b7: Pulling fs layer
0cf045fea0fd: Waiting
b78a03aa98b7: Waiting
46730e1e05c9: Verifying Checksum
46730e1e05c9: Download complete
b7f33cc0b48e: Verifying Checksum
b7f33cc0b48e: Download complete
b7f33cc0b48e: Pull complete
0cf045fea0fd: Verifying Checksum
0cf045fea0fd: Download complete
46730e1e05c9: Pull complete
b78a03aa98b7: Download complete
458210699647: Download complete
458210699647: Pull complete
0cf045fea0fd: Pull complete
b78a03aa98b7: Pull complete
Digest: sha256:
Status: Downloaded newer image for registry:2
f524d17ed50a2c5
Installing pip2pi ...
Downloading/
/usr/share/
/usr/share/
Real name of requirement pip2pi is pip2pi
Downloading pip2pi-
Requirement already satisfied (use --upgrade to upgrade): pip>=1.1 in /usr/lib/
Installing collected packages: pip2pi
Successfully installed pip2pi
Cleaning up...
Create pip repo for required thirdparty packages ...
----> Completed Installing Server Manager
----> Server Manager Cliff Client
----> Installing package Server Manager Cliff Client
----> Completed Installing Server Manager Cliff Client
----> Web Server Manager
----> Installing package Contrail Web Core
----> Installing package Contrail Web Server Manager
----> Completed Installing Web Server Manager
----> Starting Server Manager Lite Service
----> Reverting Repos to old state
SM installation took 10 minutes and 10 seconds.
----> Convert testbed.py to server manager entities
----> Pre provision checks to make sure setup is ready for contrail provisioning
Configuring => nodec33
[2017-02-09 04:04:42,005: exec_cmd] [error_on_fail]: Cmd (ping -q -c 1 puppet > /dev/null 2>@1) Failed
Traceback (most recent call last):
File "/opt/contrail/
Utils.
File "/opt/contrail/
hostobj.
File "/opt/contrail/
self.
File "/opt/contrail/
self.
File "/opt/contrail/
self.
File "/opt/contrail/
raise RuntimeError(
RuntimeError: [error_on_fail]: Cmd (ping -q -c 1 puppet > /dev/null 2>@1) Failed
Connection to 10.204.221.58 closed.
Issue seen only in SM Lite; Not seen in SM
tags: | added: blocker |
summary: |
SMLite:mainline:3037:Provisioning does not start with error at pre- - config + config due to SM process running over docker0 IP |
You need to give --hostip option to provision script if SM host has multiple interfaces OTHER than docker0.
This requirement hasn’t changed. You don’t have to give --hostip if docker0 is the only other interface.