CORD build info is in here:
http://mkl-note.blogspot.com/2016/10/cord-in-box-quick-start-guide-target.html
https://gerrit.opencord.org/vBBU faab9e27521d0c2cdf34c36cd99b6327760d56eb
https://gerrit.opencord.org/vPGWC faab9e27521d0c2cdf34c36cd99b6327760d56eb
M-CORD Developer Environment - CORD - CORD Wiki
https://wiki.opencord.org/display/CORD/M-CORD+Developer+Environment
The following error occurs when building MCORD step "make xos":
ImportError: No module named translator.toscalib.tosca_template
bash /home/ubuntu/service-profile/common/wait_for_xos_port.sh 80According to the following, the TOSCA parser is updated, but most of the import
Waiting for XOS to start listening on port 80
.......................XOS is ready
[PODCONFIG]
python /home/ubuntu/service-profile/common/run_tosca.py 80 padmin@vicci.org letmein setup.yaml
ERR: recieved status 500
Traceback (most recent call last):
File "/opt/xos/api/utility/toscaapi.py", line 43, in post_run
from tosca.engine import XOSTosca
File "/opt/xos/tosca/engine.py", line 3, in
import resources
File "/opt/xos/tosca/resources/__init__.py", line 27, in
module = __import__(fn[:-3])
File "/opt/xos/tosca/resources/VPGWCComponent.py", line 6, in
from translator.toscalib.tosca_template import ToscaTemplate
ImportError: No module named translator.toscalib.tosca_template
is unnecessary. This patch remove those unnecessary import.
XOS Service Developers - please review imports in xos/tosca/resources/*.py - Google Groups
https://groups.google.com/a/opencord.org/forum/#!msg/cord-dev/eIemZc-BuUk/MhzlDuIhBQAJ
TOSCA parser in XOS core will be updated, and many services unnecessarily import the old TOSCA parser (along with other unneeded imports) in a way that will break your service after this update is merged.
Remove the line import ToscaTemplate from the following 4 files:
- vBBU/xos/tosca/resources/mcordservice.py
- vBBU/xos/tosca/resources/vbbucomponent.py
- vPGWC/xos/tosca/resources/VPGWCService.py
- vPGWC/xos/tosca/resources/VPGWCComponent.py
@@ -3,7 +3,7 @@ import pdb
import sys
import tempfile
sys.path.append("/opt/tosca")
-from translator.toscalib.tosca_template import ToscaTemplate
+#from translator.toscalib.tosca_template import ToscaTemplate
import pdb
You need to remove the existing docker image for the changes to take effect:
cd ~/service-profile/mcord/
make stop
make cleanup
sudo docker rm -f $(docker ps -aq)
make xos
沒有留言:
張貼留言