Thursday, 2019-10-31

*** artom has quit IRC04:20
*** rastos2 has quit IRC07:28
*** tssurya has joined #openstack-placement08:21
*** tetsuro has quit IRC08:57
*** tetsuro has joined #openstack-placement08:59
*** tetsuro has quit IRC09:04
*** tetsuro has joined #openstack-placement09:05
*** aspiers has joined #openstack-placement09:09
*** tetsuro has quit IRC09:10
*** tetsuro has joined #openstack-placement09:11
*** artom has joined #openstack-placement09:32
*** cdent has joined #openstack-placement09:57
*** tssurya has quit IRC10:06
*** kasiaGauza has joined #openstack-placement10:45
kasiaGauzaHi guys, I have a problem w/ OS Stein deployment, especially w/ the Placement service, maybe you could help10:46
kasiaGauzaOS: 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
kasiaGauzajournalctl: CRITICAL placement [-] Unhandled error: BadZipfile: Bad magic number for central directory (...)10:49
cdentthat's...odd10:50
cdentkasiaGauza: 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
kasiaGauzasame error:10:55
kasiaGauzaCRITICAL 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   File10: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, in10:55
kasiaGauzadeployERROR 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 placement10:55
kasiaGauzasuper(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   File10: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_agentERROR10:55
kasiaGauzaplacement     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   File10: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     needed10: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, in10: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
kasiaGauzain 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   File10: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 in10:55
kasiaGauzaself._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 loadERROR10:55
kasiaGauzaplacement     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()ERROR10:55
kasiaGauzaplacement   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 placement10:55
cdent(for future reference, better to use something like http://paste.openstack.org/ for pasting)10:56
cdentlet me see if I can make any sense of that10:56
kasiaGauzaomg, running /usr/bin/placement == Fail, but from /usr/local/bin/placement-api == STARTING test server placement.wsgi.init_application10:56
kasiaGauza(cdent, i didn't know about paste, I will use it in future, thank you for showing me)10:58
cdentInteresting, it sounds like maybe you've somehow managed to install placement twice10:58
cdentand one of them is pointing to /home/sys_npfsysacc/.local which is broken10:58
*** tetsuro has quit IRC10:59
cdentI _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 script10:59
cdenthowever, you'll want to make sure that the one that works is actually the version that you want10:59
cdenthow did you do your install?10:59
kasiaGauzaI will try that, the question is how to have a smooth deployment in future10:59
cdentagree, thus the question about how you did the install11:00
kasiaGauzaI've cloned devstack, checked out stable/stein, added local.conf and run ./stack.sh11:00
kasiaGauzabut, 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 unreliable11:02
cdentYeah, clean.sh is not idea. Usually the best bet with devstack, if you want to be really sure, is to start with a clean VM11:03
cdents/idea/ideal/11:03
kasiaGauzaI've created symbolic link to the correct placement-api, but the service still fails w/ the same error11:17
kasiaGauzaexecstart: /usr/bin/uwsgi --procname-prefix placement --ini /etc/placement/placement-uwsgi.ini == (...) BadZipfile: Bad magic number for central directory11:18
cdentkasiaGauza: 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 installed11:26
cdentIf that's the case, then you're likely going to have other issues beyond placement11:27
cdent(If I don't respond after this it is because I've been sucked into meetings)11:27
kasiaGauzacdent, there is no reference to the python version, but uwsgi has --python-version flag (== 2.7.5, so it's correct)11:39
kasiaGauzahere is the log from the execution of uwsgi (...) placement-uwsgi.ini: http://paste.openstack.org/show/785680/11:40
*** tssurya has joined #openstack-placement11:53
cdentkasiaGauza: one thing to try: $ cd /home/sys_npfsysacc/ ; mv .local .anothername11:58
cdentand then try again11:58
cdentto see if it uses a different keystonemiddlware11:58
kasiaGauzaand... it works12:04
kasiaGauzabut why?12:05
*** kasiaGauza has quit IRC12:05
*** kasiaGauza has joined #openstack-placement12:08
kasiaGauzacdent, I've got disconnected :(  the placement-api seems to be working now, at first I've tried with commandline, then restarted the service12:08
kasiaGauzawhy did renaming .local folder helped?12:09
cdentI'm guessing that whatever is in .local is no good with the rest of your python install. There could be very many reasons why12:09
cdentbut by renaming it, it was removed from being "seen" by python12:09
cdentso some other copy of the necessary libraries is not being used12:09
cdents/not/now/12:09
kasiaGauzaI must narrow down the issue, renaming the folder broke other services, but thanks to your help cdent I am closer to solving the problem12:11
cdentI'm glad I was able to help a bit. Good luck.12:12
*** tssurya has quit IRC12:19
*** gibi is now known as gibi_off12:31
*** tssurya has joined #openstack-placement12:53
*** kasiaGauza has left #openstack-placement12:54
*** tssurya has quit IRC13:07
*** mriedem has joined #openstack-placement13:13
*** dklyle has quit IRC14:00
*** dklyle has joined #openstack-placement14:01
*** efried has quit IRC16:37
*** efried has joined #openstack-placement16:41
*** cdent has quit IRC18:18
*** mriedem is now known as mriedem_afk19:21
*** mriedem_afk is now known as mriedem20:44
*** mriedem has quit IRC21:36

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!