*** artom has quit IRC | 04:20 | |
*** rastos2 has quit IRC | 07:28 | |
*** tssurya has joined #openstack-placement | 08:21 | |
*** tetsuro has quit IRC | 08:57 | |
*** tetsuro has joined #openstack-placement | 08:59 | |
*** tetsuro has quit IRC | 09:04 | |
*** tetsuro has joined #openstack-placement | 09:05 | |
*** aspiers has joined #openstack-placement | 09:09 | |
*** tetsuro has quit IRC | 09:10 | |
*** tetsuro has joined #openstack-placement | 09:11 | |
*** artom has joined #openstack-placement | 09:32 | |
*** cdent has joined #openstack-placement | 09:57 | |
*** tssurya has quit IRC | 10:06 | |
*** kasiaGauza has joined #openstack-placement | 10:45 | |
kasiaGauza | Hi guys, I have a problem w/ OS Stein deployment, especially w/ the Placement service, maybe you could help | 10:46 |
---|---|---|
kasiaGauza | OS: Centos 7, systemctl status devstack@placement-api.service gives: active(running), but: devstack@placement-api.service[29210]: GET /placement/resource_providers (...) --- no python application found, check your startup logs for errors --- | 10:48 |
kasiaGauza | journalctl: CRITICAL placement [-] Unhandled error: BadZipfile: Bad magic number for central directory (...) | 10:49 |
cdent | that's...odd | 10:50 |
cdent | kasiaGauza: if you can, can you trying running from a shell prompt: /usr/bin/placement-api and if that is not found /usr/local/bin/placement-api and see what happens? | 10:52 |
cdent | (I'm hoping that will show a bit more of the error) | 10:54 |
kasiaGauza | same error: | 10:55 |
kasiaGauza | CRITICAL placement [-] Unhandled error: BadZipfile: Bad magic number for central directoryERROR placement Traceback (most recent call last):ERROR placement File "/usr/bin/placement-api", line 35, in <module>ERROR placement server = wss.make_server(args.host, args.port, init_application())ERROR placement File | 10:55 |
kasiaGauza | "/opt/npf/stack/placement/placement/wsgi.py", line 150, in init_applicationERROR placement return deploy.loadapp(config)ERROR placement File "/opt/npf/stack/placement/placement/deploy.py", line 132, in loadappERROR placement application = deploy(config)ERROR placement File "/opt/npf/stack/placement/placement/deploy.py", line 93, in | 10:55 |
kasiaGauza | deployERROR placement application = middleware(application)ERROR placement File "/opt/npf/stack/placement/placement/auth.py", line 101, in auth_filterERROR placement return PlacementAuthProtocol(app, conf)ERROR placement File "/opt/npf/stack/placement/placement/auth.py", line 86, in __init__ERROR placement | 10:55 |
kasiaGauza | super(PlacementAuthProtocol, self).__init__(app, conf)ERROR placement File "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 628, in __init__ERROR placement self._session = self._create_session()ERROR placement File | 10:55 |
kasiaGauza | "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 838, in _create_sessionERROR placement kwargs.setdefault('user_agent', self._conf.user_agent)ERROR placement File "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/keystonemiddleware/_common/config.py", line 148, in user_agentERROR | 10:55 |
kasiaGauza | placement version = pkg_resources.get_distribution(project).versionERROR placement File "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 481, in get_distributionERROR placement dist = get_provider(dist)ERROR placement File | 10:55 |
kasiaGauza | "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 357, in get_providerERROR placement return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]ERROR placement File "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 900, in requireERROR placement needed | 10:55 |
kasiaGauza | = self.resolve(parse_requirements(requirements))ERROR placement File "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 773, in resolveERROR placement env = Environment(self.entries)ERROR placement File "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 984, in | 10:55 |
kasiaGauza | __init__ERROR placement self.scan(search_path)ERROR placement File "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1016, in scanERROR placement for dist in find_distributions(item):ERROR placement File "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2065, | 10:55 |
kasiaGauza | in find_on_pathERROR placement for dist in factory(fullpath):ERROR placement File "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1983, in find_eggs_in_zipERROR placement if metadata.has_metadata('PKG-INFO'):ERROR placement File | 10:55 |
kasiaGauza | "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1414, in has_metadataERROR placement return self._has(path)ERROR placement File "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1854, in _hasERROR placement return zip_path in self.zipinfo or zip_path in | 10:55 |
kasiaGauza | self._index()ERROR placement File "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1731, in zipinfoERROR placement return self._zip_manifests.load(self.loader.archive)ERROR placement File "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1691, in loadERROR | 10:55 |
kasiaGauza | placement manifest = self.build(path)ERROR placement File "/home/sys_npfsysacc/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1664, in buildERROR placement with zipfile.ZipFile(path) as zfile:ERROR placement File "/usr/lib64/python2.7/zipfile.py", line 766, in __init__ERROR placement self._RealGetContents()ERROR | 10:55 |
kasiaGauza | placement File "/usr/lib64/python2.7/zipfile.py", line 835, in _RealGetContentsERROR placement raise BadZipfile("Bad magic number for central directory")ERROR placement BadZipfile: Bad magic number for central directoryERROR placement | 10:55 |
cdent | (for future reference, better to use something like http://paste.openstack.org/ for pasting) | 10:56 |
cdent | let me see if I can make any sense of that | 10:56 |
kasiaGauza | omg, running /usr/bin/placement == Fail, but from /usr/local/bin/placement-api == STARTING test server placement.wsgi.init_application | 10:56 |
kasiaGauza | (cdent, i didn't know about paste, I will use it in future, thank you for showing me) | 10:58 |
cdent | Interesting, it sounds like maybe you've somehow managed to install placement twice | 10:58 |
cdent | and one of them is pointing to /home/sys_npfsysacc/.local which is broken | 10:58 |
*** tetsuro has quit IRC | 10:59 | |
cdent | I _think_ you should be able to fix this by editing the placement-api unit file that systemd is using and pointing to the right placement-api script | 10:59 |
cdent | however, you'll want to make sure that the one that works is actually the version that you want | 10:59 |
cdent | how did you do your install? | 10:59 |
kasiaGauza | I will try that, the question is how to have a smooth deployment in future | 10:59 |
cdent | agree, thus the question about how you did the install | 11:00 |
kasiaGauza | I've cloned devstack, checked out stable/stein, added local.conf and run ./stack.sh | 11:00 |
kasiaGauza | but, in the past I've done a few other deployments on the board, maybe they somehow messed up the OS. I know that clean.sh is unreliable | 11:02 |
cdent | Yeah, clean.sh is not idea. Usually the best bet with devstack, if you want to be really sure, is to start with a clean VM | 11:03 |
cdent | s/idea/ideal/ | 11:03 |
kasiaGauza | I've created symbolic link to the correct placement-api, but the service still fails w/ the same error | 11:17 |
kasiaGauza | execstart: /usr/bin/uwsgi --procname-prefix placement --ini /etc/placement/placement-uwsgi.ini == (...) BadZipfile: Bad magic number for central directory | 11:18 |
cdent | kasiaGauza: is there a reference in the unit file to which python is being used, perhaps? It might be that uwsgi is looking for the wrong one and you have multiple versions installed | 11:26 |
cdent | If that's the case, then you're likely going to have other issues beyond placement | 11:27 |
cdent | (If I don't respond after this it is because I've been sucked into meetings) | 11:27 |
kasiaGauza | cdent, there is no reference to the python version, but uwsgi has --python-version flag (== 2.7.5, so it's correct) | 11:39 |
kasiaGauza | here is the log from the execution of uwsgi (...) placement-uwsgi.ini: http://paste.openstack.org/show/785680/ | 11:40 |
*** tssurya has joined #openstack-placement | 11:53 | |
cdent | kasiaGauza: one thing to try: $ cd /home/sys_npfsysacc/ ; mv .local .anothername | 11:58 |
cdent | and then try again | 11:58 |
cdent | to see if it uses a different keystonemiddlware | 11:58 |
kasiaGauza | and... it works | 12:04 |
kasiaGauza | but why? | 12:05 |
*** kasiaGauza has quit IRC | 12:05 | |
*** kasiaGauza has joined #openstack-placement | 12:08 | |
kasiaGauza | cdent, I've got disconnected :( the placement-api seems to be working now, at first I've tried with commandline, then restarted the service | 12:08 |
kasiaGauza | why did renaming .local folder helped? | 12:09 |
cdent | I'm guessing that whatever is in .local is no good with the rest of your python install. There could be very many reasons why | 12:09 |
cdent | but by renaming it, it was removed from being "seen" by python | 12:09 |
cdent | so some other copy of the necessary libraries is not being used | 12:09 |
cdent | s/not/now/ | 12:09 |
kasiaGauza | I must narrow down the issue, renaming the folder broke other services, but thanks to your help cdent I am closer to solving the problem | 12:11 |
cdent | I'm glad I was able to help a bit. Good luck. | 12:12 |
*** tssurya has quit IRC | 12:19 | |
*** gibi is now known as gibi_off | 12:31 | |
*** tssurya has joined #openstack-placement | 12:53 | |
*** kasiaGauza has left #openstack-placement | 12:54 | |
*** tssurya has quit IRC | 13:07 | |
*** mriedem has joined #openstack-placement | 13:13 | |
*** dklyle has quit IRC | 14:00 | |
*** dklyle has joined #openstack-placement | 14:01 | |
*** efried has quit IRC | 16:37 | |
*** efried has joined #openstack-placement | 16:41 | |
*** cdent has quit IRC | 18:18 | |
*** mriedem is now known as mriedem_afk | 19:21 | |
*** mriedem_afk is now known as mriedem | 20:44 | |
*** mriedem has quit IRC | 21:36 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!