zioc / contrail-devstack-plugin

6 stars 21 forks source link

Failure creating NET_ID #25

Closed raviprasad239 closed 7 years ago

raviprasad239 commented 7 years ago

"stack.sh" stops with following error : 2017-01-05 10:53:49.716 | ++lib/neutron-legacy:create_neutron_initial_network:550 neutron net-create --tenant-id 595cdb20e96d48af890c22ccaaaa27fb private 2017-01-05 10:53:49.717 | ++lib/neutron-legacy:create_neutron_initial_network:550 grep ' id ' 2017-01-05 10:53:49.719 | ++lib/neutron-legacy:create_neutron_initial_network:550 get_field 2 2017-01-05 10:53:49.730 | ++functions-common:get_field:700 local data field 2017-01-05 10:53:49.740 | ++functions-common:get_field:701 read data 2017-01-05 10:53:51.068 | An unknown exception occurred. 2017-01-05 10:53:51.068 | Neutron server returns request_ids: ['req-c3f138cf-4ec2-4df1-8f0b-4e1312f00878'] 2017-01-05 10:53:51.113 | +lib/neutron-legacy:create_neutron_initial_network:550 NET_ID= 2017-01-05 10:53:51.122 | +lib/neutron-legacy:create_neutron_initial_network:551 die_if_not_set 551 NET_ID 'Failure creating NET_ID for private 595cdb20e96d48af890c22ccaaaa27fb' 2017-01-05 10:53:51.129 | +functions-common:die_if_not_set:204 local exitcode=0 2017-01-05 10:53:51.173 | [Call Trace] 2017-01-05 10:53:51.174 | ./stack.sh:1248:create_neutron_initial_network 2017-01-05 10:53:51.174 | /home/ravi/devstack/lib/neutron-legacy:551:die_if_not_set 2017-01-05 10:53:51.174 | /home/ravi/devstack/functions-common:211:die 2017-01-05 10:53:51.179 | [ERROR] /home/ravi/devstack/functions-common:551 Failure creating NET_ID for private 595cdb20e96d48af890c22ccaaaa27fb 2017-01-05 10:53:52.183 | Error on exit

raviprasad239 commented 7 years ago

Above issue is fixed now.

Root cause: Issue was because of partial merge of file "src/config/vnc_openstack/vnc_openstack/init.py". Steps mentioned in README for cheery-peak : CONTRAIL_PATCHES='cd $CONTRAIL_DEST/controller && git fetch https://review.opencontrail.org/Juniper/contrail-controller refs/changes/10/20010/4 && git cherry-pick FETCH_HEAD'

is not merging patch properly and causing partial patch merge.

Fix: 1) Took latest patch from "https://review.opencontrail.org/#/c/20010/8" and merged manually. 2) We need to also merge "https://review.openstack.org/#/c/325088/" fix, since build fails with error "AttributeError: 'module' object has no attribute 'version'"