HI Matt,
Thanks, yes the “sudo apt-get install -f” did work, and after setting the 
“/usr/share/clearwater/crest/env/bin/python” path, and the “import from 
metaswitch” entries, it is now all working OK…
[homestead]user@homestead-1:~$ dpkg-query -s homestead-prov
Package: homestead-prov
Status: install ok installed
Priority: optional
Section: network
Installed-Size: 199
Maintainer: Project Clearwater Maintainers 
<[email protected]<mailto:[email protected]>>
Architecture: amd64
Source: crest
Version: 1.0-160111.145732
Depends: crest
Conffiles:
/etc/cron.hourly/homestead-prov-log-cleanup e43ebf9d66c26ea9a1748ef6e765343c
/etc/init.d/homestead-prov 448b84f2fec0eae50bb8e1022edb920e
/etc/clearwater/secure-connections/homestead.conf 
8ee85b3d9b0f652e1b4727a6655f2b67
Description: Provisioning backend for Homestead, the Cassandra powered HSS 
gateway
Homepage: http://projectclearwater.org/
[homestead]user@homestead-1:~$
Many thanks,
Regards
Peter.

From: Matt Williams [mailto:[email protected]]
Sent: Friday, 22 January 2016 2:44 a.m.
To: Peter Skrzynski
Cc: 
[email protected]<mailto:[email protected]>
Subject: RE: Bulk provisioning problem

Peter,

Thanks for your email.

Yes, it looks like your homestead-prov install has failed - note that it says 
"install ok unpacked" rather than "install ok installed".

My suspicion is that the crest package (on which homestead-prov depends) failed 
to install - this is the package that would create the env directory as part of 
installation.

Please can you try "sudo apt-get install -f" - this will try to fix any broken 
packages (such as crest), and let me know whether this succeeds or reports 
errors (and if it reports errors, what they are)?

Thanks,

Matt

--

Matt Williams
Lead Architect, Project Clearwater
+44 (0) 20 8366 1177

From: Peter Skrzynski [mailto:[email protected]]
Sent: 21 January 2016 05:19
To: Matt Williams 
<[email protected]<mailto:[email protected]>>
Cc: 
[email protected]<mailto:[email protected]>
Subject: RE: Bulk provisioning problem

Hi Matt.
Thanks for the response.
Yes I am using the Homestead node, not Ellis. It is a manual install of 
bono/sprout/homestead/ibcf/dns.
Sorry I was misleading when I said “upgrade” to 89.
Actually I am building a complete new IMS with version 89, and then I will just 
swing my users over to it.

My new Homestead node does NOT have the binary 
/usr/share/clearwater/crest/env/bin/python!
If fact, the env directory under /usr/share/clearwater/crest/ does not exist at 
all…
[homestead]user@homestead-1:/usr/share/clearwater/crest$ ls
src
[homestead]user@homestead-1:/usr/share/clearwater/crest$

The output from dpkg-query is…
[homestead]user@homestead-1:~$ dpkg-query –s homestead-prov
Package: homestead-prov
Status: install ok unpacked
Priority: optional
Section: network
Installed-Size: 199
Maintainer: Project Clearwater Maintainers 
<[email protected]<mailto:[email protected]>>
Architecture: amd64
Source: crest
Version: 1.0-160111.145732
Depends: crest
Conffiles:
/etc/cron.hourly/homestead-prov-log-cleanup newconffile
/etc/init.d/homestead-prov newconffile
/etc/clearwater/secure-connections/homestead.conf newconffile
Description: Provisioning backend for Homestead, the Cassandra powered HSS 
gateway
Homepage: http://projectclearwater.org/
[homestead]user@homestead-1:~$

So where to from here?
Does the above mean my homestead install did not work properly?
Should I just build another homestead node and see if the correct python binary 
file gets installed second time round?
Cheers,
Peter.

From: Matt Williams [mailto:[email protected]]
Sent: Thursday, 21 January 2016 5:01 a.m.
To: Peter Skrzynski
Cc: 
[email protected]<mailto:[email protected]>
Subject: RE: Bulk provisioning problem

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]<mailto:[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

Reply via email to