[openstack-dev] [Congress] How to start a replica ?

2015-07-27 Thread Wong, Hong
Hi Tim and Alex,

I see congress recently added the HA functionality, and I was looking at the 
tempest test code to understand how to start a replica.  I created a new 
congress.conf file with the different bind_port and set the 
datasource_sync_period value to 5.  However, I got the errors below when I 
try to bring up the replica:

to start the replica: cd /opt/stack/congress  python 
/usr/local/bin/congress-server --config-file /tmp/congress.conf  echo $! 
/tmp/congress.pid; fg || echo congress failed to start | tee 
/tmp/congress.failure

2015-07-27 14:56:33.592 TRACE congress.service Traceback (most recent call 
last):
2015-07-27 14:56:33.592 TRACE congress.service   File 
/opt/stack/congress/congress/service.py, line 32, in wrapper
2015-07-27 14:56:33.592 TRACE congress.service return f(*args, **kw)
2015-07-27 14:56:33.592 TRACE congress.service   File 
/opt/stack/congress/congress/service.py, line 50, in congress_app_factory
2015-07-27 14:56:33.592 TRACE congress.service cage = 
harness.create(root_path, data_path)
2015-07-27 14:56:33.592 TRACE congress.service   File 
/opt/stack/congress/congress/harness.py, line 151, in create
2015-07-27 14:56:33.592 TRACE congress.service for policy in 
db_policy_rules.get_policies():
2015-07-27 14:56:33.592 TRACE congress.service   File 
/opt/stack/congress/congress/db/db_policy_rules.py, line 84, in get_policies
2015-07-27 14:56:33.592 TRACE congress.service session = session or 
db.get_session()
2015-07-27 14:56:33.592 TRACE congress.service   File 
/opt/stack/congress/congress/db/api.py, line 40, in get_session
2015-07-27 14:56:33.592 TRACE congress.service facade = 
_create_facade_lazily()
2015-07-27 14:56:33.592 TRACE congress.service   File 
/opt/stack/congress/congress/db/api.py, line 27, in _create_facade_lazily
2015-07-27 14:56:33.592 TRACE congress.service _FACADE = 
session.EngineFacade.from_config(cfg.CONF, sqlite_fk=True)
2015-07-27 14:56:33.592 TRACE congress.service   File 
/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py, lin
.
2015-07-27 14:56:33.592 TRACE congress.service   File 
/usr/local/lib/python2.7/dist-packages/pymysql/err.py, line 112, in 
_check_mysql_exception
2015-07-27 14:56:33.592 TRACE congress.service raise errorclass(errno, 
errorvalue)
2015-07-27 14:56:33.592 TRACE congress.service OperationalError: 
(pymysql.err.OperationalError) (1040, u'Too many connections')

I got the same error when running the tempest test as well.  Any idea ?

Thanks,
Hong
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Congress]How to add tempest tests for testing murano drive

2015-03-10 Thread Wong, Hong
Hi Aaron,

I just want to confirm how CI is running the congress tempest tests in its 
environment as I am about to check in a tempest test for testing murano 
deployment.  If I check in the test script to 
congress/contrib/tempest/tempest/scenario/congress_datasources, the CI will 
take care of running the test by copying it to 
stack/tempest/tempest/scenario/congress_datasources ?  So, I don't need to 
worry about adding python-congerssclient and python-muranoclient in 
stack/tempest/requirements.txt right ?

Thanks,
Hong



From: Aaron Rosen [mailto:aaronoro...@gmail.com]
Sent: Monday, March 09, 2015 9:28 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [Congress]How to add tempest tests for testing 
murano drive

Hi Hong,

I you should be able to run the tempest tests with ./run_tempest.sh -N which by 
default uses site-packages so they should be installed by the devstack script. 
If you want to run tempest via tox and venv you'll need to do:

echo python-congressclient  requirements.txt
echo python-muranoclient  requirements.txt

Then have tox build the venv.

Best,

Aaron

On Mon, Mar 9, 2015 at 8:28 PM, Wong, Hong 
hong.w...@hp.commailto:hong.w...@hp.com wrote:
Hi Tim and Aaron,

I got the latest changes from r157166 and I see the thirdparty-requirements.txt 
file where you can define the murano client (it’s already there), so the unit 
tests for murano driver can run out from the box.  However, this change is only 
in congress, so the tempest tests (tempest/ directory where congress tempest 
tests need to copy to as described from readme file) required murano and 
congress clients will still have issue as it doesn’t have the thirdparty 
requirement file concept.  Will r157166 changes also going to be implemented in 
tempest package ?

Thanks,
Hong


--



Message: 10

Date: Mon, 2 Mar 2015 15:39:11 +

From: Tim Hinrichs thinri...@vmware.commailto:thinri...@vmware.com

To: OpenStack Development Mailing List (not for usage questions)

  
openstack-dev@lists.openstack.orgmailto:openstack-dev@lists.openstack.org

Subject: Re: [openstack-dev] [Congress]How to add tempest tests for

  testing murano driver

Message-ID: 
d6dbf6ed-2207-4e19-9eec-c270bce2f...@vmware.commailto:d6dbf6ed-2207-4e19-9eec-c270bce2f...@vmware.com

Content-Type: text/plain; charset=utf-8



Hi Hong,



Aaron started working on this, but we don?t have anything in place yet, as far 
as I know.  He?s a starting point.



https://review.openstack.org/#/c/157166/



Tim



On Feb 26, 2015, at 2:56 PM, Wong, Hong 
hong.w...@hp.commailto:hong.w...@hp.commailto:hong.w...@hp.com%3cmailto:hong.w...@hp.com
 wrote:



Hi Aaron,



I am new to congress and trying to write tempest tests for the newly added 
murano datasource driver.  Since the murano datasource tempest tests require 
both murano and python-congress clients as the dependencies.  I was told that I 
can't just simply add the requirements in the tempest/requirements.txt file as 
both packages are in not in the main branch, so CI will not be able to pick 
them up.  Do you know of any workaround ?



Thanks,

Hong


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: 
openstack-dev-requ...@lists.openstack.org?subject:unsubscribehttp://openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [Congress]How to add tempest tests for testing murano drive

2015-03-09 Thread Wong, Hong
Hi Tim and Aaron,

I got the latest changes from r157166 and I see the thirdparty-requirements.txt 
file where you can define the murano client (it's already there), so the unit 
tests for murano driver can run out from the box.  However, this change is only 
in congress, so the tempest tests (tempest/ directory where congress tempest 
tests need to copy to as described from readme file) required murano and 
congress clients will still have issue as it doesn't have the thirdparty 
requirement file concept.  Will r157166 changes also going to be implemented in 
tempest package ?

Thanks,
Hong


--



Message: 10

Date: Mon, 2 Mar 2015 15:39:11 +

From: Tim Hinrichs thinri...@vmware.commailto:thinri...@vmware.com

To: OpenStack Development Mailing List (not for usage questions)

  
openstack-dev@lists.openstack.orgmailto:openstack-dev@lists.openstack.org

Subject: Re: [openstack-dev] [Congress]How to add tempest tests for

  testing murano driver

Message-ID: 
d6dbf6ed-2207-4e19-9eec-c270bce2f...@vmware.commailto:d6dbf6ed-2207-4e19-9eec-c270bce2f...@vmware.com

Content-Type: text/plain; charset=utf-8



Hi Hong,



Aaron started working on this, but we don?t have anything in place yet, as far 
as I know.  He?s a starting point.



https://review.openstack.org/#/c/157166/



Tim



On Feb 26, 2015, at 2:56 PM, Wong, Hong 
hong.w...@hp.commailto:hong.w...@hp.commailto:hong.w...@hp.com%3cmailto:hong.w...@hp.com
 wrote:



Hi Aaron,



I am new to congress and trying to write tempest tests for the newly added 
murano datasource driver.  Since the murano datasource tempest tests require 
both murano and python-congress clients as the dependencies.  I was told that I 
can't just simply add the requirements in the tempest/requirements.txt file as 
both packages are in not in the main branch, so CI will not be able to pick 
them up.  Do you know of any workaround ?



Thanks,

Hong

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [Congress]How to add tempest tests for testing murano driver

2015-02-26 Thread Wong, Hong
Hi Aaron,

I am new to congress and trying to write tempest tests for the newly added 
murano datasource driver.  Since the murano datasource tempest tests require 
both murano and python-congress clients as the dependencies.  I was told that I 
can't just simply add the requirements in the tempest/requirements.txt file as 
both packages are in not in the main branch, so CI will not be able to pick 
them up.  Do you know of any workaround ?

Thanks,
Hong
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev