Peter,
Thanks for your email.
When you ran this before, did you run your my_bulk_create.py script on the
Ellis node, or did you run it on the Homestead node? I would expect you to run
it on the Homestead node.
The issue you're hitting is that the "python" binary you've found below
clearwater-prov-tools is in a special virtual environment ("virtualenv"). This
virtual environment doesn't include the "crest" code on which bulk_create.py
depends. Crest is the Cassandra-backed RESTful HTTP server platform on which
both Homestead-Prov and Homer are built.
There should be a python binary below
/usr/share/clearwater/crest/env/bin/python - I've checked that it exists on
both a freshly-installed Homestead node and a Homestead node that has been
upgraded through many intermediate releases (although not necessarily 76
directly to 89, for which maybe there's an upgrade issue).
If you're trying to run this on a Homestead node and it's still failing, please
can you check that homestead-prov is installed correctly? To do this, run
"dpkg-query -s homestead-prov" and check that it says "Status: install ok
installed" (along with a load of other output!).
Please let me know how you get on.
Cheers,
Matt
From: Clearwater [mailto:[email protected]] On
Behalf Of Peter Skrzynski
Sent: 19 January 2016 22:04
To: [email protected]
Subject: [Clearwater] Bulk provisioning problem
Hi,
I have a manual install using Release 76 “In Dubious Battle”.
To bulk provision a specific range of numbers, I used a modified version of the
bulk_create.py which does not use a csv file, and that worked fine.
I am now upgrading my IMS to the latest Release 89 “Vicomte de Bragelonne”.
My modified bulk creation script no longer works.
There seems to be problems with the bulk_create.py file in Release 89.
The first line (of bulk_create.py) specifies the python file location as
/usr/share/clearwater/crest/env/bin/python,
but actually it is in
/usr/share/clearwater/clearwater-prov-tools/env/bin/python.
I fixed that and now it fails on the line “from metaswitch.crest.tools.utils
import create_imssubscription_xml”.
The error output is:
------------------------------------------------------------------------------------------
Traceback (most recent call last):
File “./my_bulk_create.py”, line 65, in <module>
From metaswitch.crest.tools.utils import create_imssubscription_xml
ImportError: No module named crest.tools.utils
-------------------------------------------------------------------------------------------
Given that the python file is under
“/usr/share/clearwater/clearwater-prov-tools/”, but the metaswitch directory is
under “/usr/share/clearwater/crest/src/”,
does that mean there is a directory structure issue in homestead?
Or is it possible to fix my problem somehow?
I note that in Release 76 they were both under
“/usr/share/clearwater/homestead/”.
Regards
Peter.
Peter Skrzynski
Technical Lead
NEC New Zealand Limited
NEC House, Level 6, 40 Taranaki Street, PO Box 1936, Wellington 6011, New
Zealand
T: 043816257, M: 0274849530, F: +6443811110
[email protected]<mailto:[email protected]>
nz.nec.com<http://nz.nec.com>
[cid:[email protected]]
Please consider the environment before printing this email
Attention:
The information contained in this message and or attachments is intended only
for the person or entity to which it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination, copying
or other use of, or taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the material from
any system and destroy any copies. NEC has no liability for any act or omission
in reliance on the email or any attachment. Before opening this email or any
attachment(s), please check them for viruses. NEC is not responsible for any
viruses in this email or any attachment(s); any changes made to this email or
any attachment(s) after they are sent; or any effects this email or any
attachment(s) have on your network or computer system.
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org