Hi Priyanka,
The command to create the homestead_cache keyspace is:
CREATE KEYSPACE homestead_cache WITH REPLICATION = {'class': 'SimpleStrategy',
'replication_factor': 2};
USE homestead_cache;
CREATE TABLE impi (private_id text PRIMARY KEY, digest_ha1 text, digest_realm
text, digest_qop text, known_preferred boolean) WITH COMPACT STORAGE AND
read_repair_chance = 1.0;
CREATE TABLE impu (public_id text PRIMARY KEY, ims_subscription_xml text,
is_registered Boolean, primary_ccf text, secondary_ccf text, primary_ecf text,
secondary_ecf text) WITH COMPACT STORAGE AND read_repair_chance = 1.0;
CREATE TABLE impi_mapping (private_id text PRIMARY KEY, unused text) WITH
COMPACT STORAGE AND read_repair_chance = 1.0; | cqlsh
I'll update the crest docs to include this.
Ellie
From: Priyanka [mailto:[email protected]]
Sent: 10 July 2015 06:22
To: Eleanor Merry; [email protected]
Subject: Re: [Clearwater] issue with homestead installation
Hi Ellie,
I also tried adding data to the database using
/crest/debian/homestead-prov/usr/share/clearwater/homestead/src/metaswitch/crest/tools/database-dump/restore-cassandra-from-csv.py
using command:
home/ubuntu64/crest/bin/python restore-cassandra-from-csv.py
/home/ubuntu64/crest/users1.csv.gz
I get the following error:
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
File "/home/ubuntu64/crest/bin/python", line 57, in <module>
exec(compile(__file__f.read(), __file__, "exec"))
File "restore-cassandra-from-csv.py", line 45, in <module>
do_this()
File
"/home/ubuntu64/crest/eggs/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 1214, in unwindGenerator
return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
File
"/home/ubuntu64/crest/eggs/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 1071, in _inlineCallbacks
result = g.send(result)
File "restore-cassandra-from-csv.py", line 33, in do_this
factory = ManagedCassandraClientFactory(row["keyspace"])
exceptions.KeyError: 'keyspace'
The data in user1.csv was created as follows:
for DN in {1..100} ; do echo sip:[email protected]<mailto:sip:[email protected]> ; done
> users1.csv
Actually homestead_cache keyspace is not present in the database.
cqlsh;
use <tab> gave options:
homestead_provisioning system system_traces
Is it because of this that I am facing an issue? Please can you give me the
commands to add homestead_cache keyspace.
Thanks,
Priyanka
On Thursday 09 July 2015 10:11 PM, Eleanor Merry wrote:
Hi Priyanka,
Have you set up the Cassandra keyspaces? You can find details of how to do at:
https://github.com/Metaswitch/crest/blob/dev/docs/development.md#cassandra.
Also, have you set up the virtual Python environment
(https://github.com/Metaswitch/crest/blob/dev/docs/development.md#setting-up-a-virtualenv)?
This creates a python executable that is preconfigured to use the correct
PYTHONPATH to pick up the dependencies in the env directory - you should use
this python rather than the system python.
Ellie
-----Original Message-----
From:
[email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Priyanka
Sent: 09 July 2015 08:29
To:
[email protected]<mailto:[email protected]>
Subject: Re: [Clearwater] issue with homestead installation
Hi,
I am getting the following error now when I do sudo make run :
PYTHONPATH=src bash -c 'bin/python src/metaswitch/crest/main.py'
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
Failure: telephus.cassandra.ttypes.InvalidRequestException:
InvalidRequestException(why="Keyspace 'homestead_cache' does not exist")
service cassandra status
* Cassandra is running
Thanks,
Priyanka
On Wednesday 08 July 2015 09:02 PM, Priyanka wrote:
Hi,
We solved the previous issue by setting the PYTHONPATH in Makefile.
Now, when we do make run we are facing another issue:
PYTHONPATH=/home/ubuntu64/crest/bin bash -c
'/home/ubuntu64/crest/bin/python src/metaswitch/crest/main.py'
Traceback (most recent call last):
File "/home/ubuntu64/crest/bin/python", line 57, in <module>
exec(compile(__file__f.read(), __file__, "exec"))
File "src/metaswitch/crest/main.py", line 50, in <module>
from metaswitch.crest import api
ImportError: No module named crest
make: *** [run] Error 1
Please help me solve it.
Thanks,
Priyanka
On Wednesday 08 July 2015 07:41 PM, Priyanka wrote:
Hi,
I am facing an issue with installation of homestead from source code
on ubuntu12.04. When I do make run I get the following error:
build/temp.linux-x86_64-2.7/scratch/tmp/easy_install-eBKZeD/pyzmq-13.1.0/temp/timer_createJriB3Y.o:
In function `main':
timer_createJriB3Y.c:(.text+0x15): undefined reference to `timer_create'
collect2: ld returned 1 exit status
Note also that the installation directory must be on sys.path at
runtime for this to work. (e.g. by being the application's script
directory, by being on PYTHONPATH, or by being added to sys.path by
your code.)
Processing dependencies for setuptools==18.0.1 Finished processing
dependencies for setuptools==18.0.1 Finished processing dependencies
for zc.buildout PYTHONPATH=src bash -c 'bin/python
src/metaswitch/crest/main.py'
make: *** [run] Error 1
Please help me resolve it.
Thanks,
Priyanka
_______________________________________________
Clearwater mailing list
[email protected]<mailto:[email protected]>
http://lists.projectclearwater.org/listinfo/clearwater
_______________________________________________
Clearwater mailing list
[email protected]<mailto:[email protected]>
http://lists.projectclearwater.org/listinfo/clearwater
_______________________________________________
Clearwater mailing list
[email protected]<mailto:[email protected]>
http://lists.projectclearwater.org/listinfo/clearwater
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/listinfo/clearwater