[mainline] vcenter-only : VCPlugin entry is missing in the schema but present in controller.conf

Bug #1729513 reported by Pavana
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
High
kamlesh parmar

Bug Description

root@nodec4:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
87b15825f27e 10.204.216.61:5100/ubuntu14vcenter95-contrail-vcenter-plugin:95 "/bin/sh -c /entry..." 10 hours ago Up 10 hours vcplugin
64f67d1e1c12 10.204.216.61:5100/ubuntu14vcenter95-contrail-analytics:95 "/bin/sh -c /entry..." 10 hours ago Up About a minute analytics
eb934e910076 10.204.216.61:5100/ubuntu14vcenter95-contrail-analyticsdb:95 "/bin/sh -c /entry..." 10 hours ago Up 3 minutes analyticsdb
39db04c90f53 10.204.216.61:5100/ubuntu14vcenter95-contrail-controller:95 "/bin/sh -c /entry..." 10 hours ago Restarting (1) 3 hours ago controller
6693db080328 registry:2 "/entrypoint.sh /e..." 10 hours ago Up 10 hours registry
root@nodec4:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
87b15825f27e 10.204.216.61:5100/ubuntu14vcenter95-contrail-vcenter-plugin:95 "/bin/sh -c /entry..." 10 hours ago Up 10 hours vcplugin
64f67d1e1c12 10.204.216.61:5100/ubuntu14vcenter95-contrail-analytics:95 "/bin/sh -c /entry..." 10 hours ago Up About a minute analytics
eb934e910076 10.204.216.61:5100/ubuntu14vcenter95-contrail-analyticsdb:95 "/bin/sh -c /entry..." 10 hours ago Up 2 seconds analyticsdb
39db04c90f53 10.204.216.61:5100/ubuntu14vcenter95-contrail-controller:95 "/bin/sh -c /entry..." 10 hours ago Restarting (1) 3 hours ago controller
6693db080328 registry:2 "/entrypoint.sh /e..." 10 hours ago Up 10 hours registry

"2017-11-02 02:21:25,095-INFO-sm_ansible_callback.py:46-append(): fatal: [10.204.216.61]: FAILED! => (item - None) {"attempts": 180, "changed": true, "cmd": "docker exec controller curl -s -o /dev/null --write-out %{http_code} -uadmin:admin http://localhost:8082", "delta": "0:00:00.009563", "end": "2017-11-02 02:21:25.080194", "failed": true, "rc": 1, "start": "2017-11-02 02:21:25.070631", "stderr": "Error response from daemon: Container 39db04c90f53fd68c7849fe4c6d8e65cafb2c31ba423830839b2cd582df87f62 is restarting, wait until the container is running", "stderr_lines": ["Error response from daemon: Container 39db04c90f53fd68c7849fe4c6d8e65cafb2c31ba423830839b2cd582df87f62 is restarting, wait until the container is running"], "stdout": "", "stdout_lines": []}"
"2017-11-02 02:21:25,733-INFO-sm_ansible_callback.py:46-append(): fatal: [10.204.216.63]: FAILED! => (item - None) {"attempts": 180, "changed": true, "cmd": "docker exec controller curl -s -o /dev/null --write-out %{http_code} -uadmin:admin http://localhost:8082", "delta": "0:00:00.009968", "end": "2017-11-02 02:21:25.719412", "failed": true, "rc": 1, "start": "2017-11-02 02:21:25.709444", "stderr": "Error response from daemon: Container 419f9a6b36c204295257f8c45c52ab0e06f8a45cde2d307985ddfe66afadf010 is restarting, wait until the container is running", "stderr_lines": ["Error response from daemon: Container 419f9a6b36c204295257f8c45c52ab0e06f8a45cde2d307985ddfe66afadf010 is restarting, wait until the container is running"], "stdout": "", "stdout_lines": []}"
"2017-11-02 02:21:27,238-INFO-sm_ansible_callback.py:46-append(): fatal: [10.204.216.62]: FAILED! => (item - None) {"attempts": 180, "changed": true, "cmd": "docker exec controller curl -s -o /dev/null --write-out %{http_code} -uadmin:admin http://localhost:8082", "delta": "0:00:00.355554", "end": "2017-11-02 02:21:27.216992", "failed": true, "rc": 7, "start": "2017-11-02 02:21:26.861438", "stderr": "", "stderr_lines": [], "stdout": "000", "stdout_lines": ["000"]}"

root@nodec4:~# docker exec -ti controller bash
Error response from daemon: Container 39db04c90f53fd68c7849fe4c6d8e65cafb2c31ba423830839b2cd582df87f62 is restarting, wait until the container is running

Seems like config is not defined in schema, contrailctl execution is failing -
root@nodec4:~# docker logs 39db04c90f53
+ contrailctl config sync -c controller -F -v -t configure
Additional properties are not allowed ('VCPLUGIN' was unexpected) <<
+ set -e
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/bin/supervisord
+ ANSIBLE_INVENTORY=all-in-one
+ test -x /usr/bin/supervisord
+ LOG=/var/log/supervisord.log
+ '[' -f /etc/default/supervisord ']'
+ DAEMON_OPTS='-n -c /etc/contrail/supervisord.conf '
+ trap cleanup SIGHUP SIGINT SIGTERM
+ ulimit -s unlimited
+ ulimit -c unlimited
+ ulimit -d unlimited
+ ulimit -v unlimited
+ ulimit -n 4096
+ contrailctl config sync -c controller -F -v -t configure
Additional properties are not allowed ('VCPLUGIN' was unexpected)

Pavana (pavanap)
summary: - [mainline~95] vcenter-only : Docker services restarting continuously
- every few minutes
+ [14-04 mitaka:mainline~95] vcenter-only : Docker services restarting
+ continuously every few minutes
information type: Proprietary → Public
Revision history for this message
Sachchidanand Vaidya (vaidyasd) wrote : Re: [Bug 1729513] [NEW] [14-04 mitaka:mainline~95] vcenter-only : Docker services restarting continuously every few minutes

Hi Pavana,
    Are we trying this for first time on Mainline. What was the last
working release on master ?

Thanks
Sachin

Revision history for this message
Pavana (pavanap) wrote : Re: [14-04 mitaka:mainline~95] vcenter-only : Docker services restarting continuously every few minutes

Hi Sachin,

We haven't tested this earlier on mainline

Thanks,
Pavana

Revision history for this message
Pavana (pavanap) wrote :

Editing the bug summary.
The VCPlugin entry missing in the schema issue is seen on ubuntu16-ocata mainline as well but the controller services are down and the docker is running.
But in case of ubuntu14-mitaka, docker services are restarting continuously every few minutes

summary: - [14-04 mitaka:mainline~95] vcenter-only : Docker services restarting
- continuously every few minutes
+ [mainline] vcenter-only : VCPlugin entry is missing in the schema but
+ present in controller.conf
Revision history for this message
kamlesh parmar (kparmar) wrote :
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.