Mike, I had same problem some time ago. The problem was that I had a vm with installed devstack and file /etc/hosts contained string:
127.0.0.1 localhost ubuntu and changing it to: 127.0.0.1 localhost helped me. So we should have not any symbols (names) after "localhost". I am not sure that it's better solution (or may be it is wrong), but it works for me. Regards, Sergey. On 25 August 2014 08:22, Mike Spreitzer <[email protected]> wrote: > Ruslan Kamaldinov <[email protected]> wrote on 08/24/2014 12:30:04 > PM: > > > From: Ruslan Kamaldinov <[email protected]> > > To: "OpenStack Development Mailing List (not for usage questions)" > > <[email protected]>, > > Date: 08/24/2014 12:32 PM > > Subject: Re: [openstack-dev] [heat] "heat.conf.sample is not up to date" > > > > On Sun, Aug 24, 2014 at 11:10 AM, Mike Spreitzer <[email protected]> > wrote: > > > What I really need to know is what to do when committing a change that > > > really does require a change in the sample configuration file. Of > course I > > > tried running generate_sample.sh, but `tox -epep8` still complains. > What is > > > the right procedure to get a correct sample committed? BTW, I am > doing the > > > following admittedly risky thing: I run DevStack, and make my changes > in > > > /opt/stack/heat/. > > > > Mike, > > > > It seems that you have oslo.messaging installed from master (default > > behavior of Devstack), while heat.sample.config is built for > > oslo.messaging v 1.3.1. As a quick workaround I'd suggest to downgrade > > oslo.messaging to 1.3.1 in pep8 virtual environment: > > $ cd /opt/stack/heat > > $ source .tox/pep8/bin/activate > > $ pip install oslo.messaging==1.3.1 > > $ deactivate > > $ tox -e pep8 # should pass now > > In that same VM in which I ran DevStack, I also made an independent clone > of heat in ~/code/heat; my original email quoted a failure from that clone, > hoping that it might be easier to debug (being a simpler scenario). Below > is a typescript showing me try again there, including a trial of what > Mathieu Gagné suggested (which has some kind of command line syntax error, > and did nothing). You will see that I investigated and found that in this > case tox's venv contained oslo.messaging version 1.3.1, so no adjustment > about that was needed. Yet it still failed. > > ubuntu@mjs-dstk-821a:~/code/heat$ rm -rf .tox > > ubuntu@mjs-dstk-821a:~/code/heat$ tox -evenv bash > ./tools/config/generate_sample.sh -b . -p heat -o etc/heat > usage: tox [-h] [--version] [-v] [--showconfig] [-l] [-c CONFIGFILE] > [-e envlist] [--notest] [--sdistonly] [--installpkg PATH] > [--develop] [--set-home] [-i URL] [-r] [--result-json PATH] > [--hashseed SEED] [--force-dep REQ] [--sitepackages] > [--skip-missing-interpreters] > [args [args ...]] > tox: error: unrecognized arguments: -b . -p heat -o etc/heat > > ubuntu@mjs-dstk-821a:~/code/heat$ tox -epep8 > pep8 create: /home/ubuntu/code/heat/.tox/pep8 > pep8 installdeps: -r/home/ubuntu/code/heat/requirements.txt, > -r/home/ubuntu/code/heat/test-requirements.txt > pep8 develop-inst: /home/ubuntu/code/heat > pep8 runtests: PYTHONHASHSEED='0' > pep8 runtests: commands[0] | flake8 heat bin/heat-api bin/heat-api-cfn > bin/heat-api-cloudwatch bin/heat-engine bin/heat-manage contrib > pep8 runtests: commands[1] | > /home/ubuntu/code/heat/tools/config/check_uptodate.sh > --- /tmp/heat.UnHAZD/heat.conf.sample 2014-08-25 04:06:07.648849999 > +0000 > +++ etc/heat/heat.conf.sample 2014-08-24 06:53:51.540849999 +0000 > @@ -159,10 +159,6 @@ > # Size of RPC connection pool. (integer value) > #rpc_conn_pool_size=30 > > -# Modules of exceptions that are permitted to be recreated > -# upon receiving exception data from an rpc call. (list value) > > -#allowed_rpc_exception_modules=oslo.messaging.exceptions,nova.exception,cinder.exception,exceptions > - > # Qpid broker hostname. (string value) > #qpid_hostname=heat > > @@ -301,15 +297,6 @@ > # Heartbeat time-to-live. (integer value) > #matchmaker_heartbeat_ttl=600 > > -# Host to locate redis. (string value) > -#host=127.0.0.1 > - > -# Use this port to connect to redis host. (integer value) > -#port=6379 > - > -# Password for Redis server (optional). (string value) > -#password=<None> > - > # Size of RPC greenthread pool. (integer value) > #rpc_thread_pool_size=64 > > @@ -1229,6 +1216,22 @@ > #hash_algorithms=md5 > > > +[matchmaker_redis] > + > +# > +# Options defined in oslo.messaging > +# > + > +# Host to locate redis. (string value) > +#host=127.0.0.1 > + > +# Use this port to connect to redis host. (integer value) > +#port=6379 > + > +# Password for Redis server (optional). (string value) > +#password=<None> > + > + > [matchmaker_ring] > > # > check_uptodate.sh: heat.conf.sample is not up to date. > check_uptodate.sh: Please run > /home/ubuntu/code/heat/tools/config/generate_sample.sh. > ERROR: InvocationError: > '/home/ubuntu/code/heat/tools/config/check_uptodate.sh' > pep8 runtests: commands[2] | > /home/ubuntu/code/heat/tools/requirements_style_check.sh requirements.txt > test-requirements.txt > pep8 runtests: commands[3] | bash -c find heat -type f -regex '.*\.pot?' > -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null > _________________ __________________ summary ____ > _________________________ _______ > ERROR: pep8: commands failed > > ubuntu@mjs-dstk-821a:~/code/heat$ . .tox/pep8/bin/activate > > (pep8)ubuntu@mjs-dstk-821a:~/code/heat$ python > Python 2.7.6 (default, Mar 22 2014, 22:59:56) > [GCC 4.8.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> system > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > NameError: name 'system' is not defined > >>> import sys > >>> print sys.path > ['', '/home/ubuntu/code/heat', > '/home/ubuntu/code/heat/.tox/pep8/lib/python2.7', > '/home/ubuntu/code/heat/.tox/pep8/lib/python2.7/plat-x86_64-linux-gnu', > '/home/ubuntu/code/heat/.tox/pep8/lib/python2.7/lib-tk', > '/home/ubuntu/code/heat/.tox/pep8/lib/python2.7/lib-old', > '/home/ubuntu/code/heat/.tox/pep8/lib/python2.7/lib-dynload', > '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', > '/usr/lib/python2.7/lib-tk', > '/home/ubuntu/code/heat/.tox/pep8/local/lib/python2.7/site-packages', > '/home/ubuntu/code/heat/.tox/pep8/lib/python2.7/site-packages'] > >>> > > (pep8)ubuntu@mjs-dstk-821a:~/code/heat$ find .tox/pep8 -name "*messaging*" > .tox/pep8/bin/oslo-messaging-zmq-receiver > .tox/pep8/lib/python2.7/site-packages/oslo.messaging-1.3.1-py2.7-nspkg.pth > .tox/pep8/lib/python2.7/site-packages/oslo.messaging-1.3.1.dist-info > .tox/pep8/lib/python2.7/site-packages/qpid/messaging > .tox/pep8/lib/python2.7/site-packages/qpid/tests/messaging > .tox/pep8/lib/python2.7/site-packages/kombu/messaging.pyc > .tox/pep8/lib/python2.7/site-packages/kombu/messaging.py > .tox/pep8/lib/python2.7/site-packages/kombu/tests/test_messaging.pyc > .tox/pep8/lib/python2.7/site-packages/kombu/tests/test_messaging.py > .tox/pep8/lib/python2.7/site-packages/oslo/messaging > > .tox/pep8/lib/python2.7/site-packages/oslo/messaging/notify/_impl_messaging.pyc > > .tox/pep8/lib/python2.7/site-packages/oslo/messaging/notify/_impl_messaging.py > (pep8)ubuntu@mjs-dstk-821a:~/code/heat$ > > Thanks, > Mike > _______________________________________________ > OpenStack-dev mailing list > [email protected] > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > >
_______________________________________________ OpenStack-dev mailing list [email protected] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
