TASK [os_gnocchi : Perform a Gnocchi DB sync] **********************************
Wednesday 18 October 2017 12:00:30 +0200 (0:00:00.009) 1:03:36.089 *****
fatal: [infra1_gnocchi_container-b43d8c33]: FAILED! => {"changed": false, "cmd": ["/openstack/venvs/gnocchi-15.1.9/bin/gnocchi-upgrade", "--create-legacy-resource-types"], "delta": "0:00:01.382816", "end": "2017-10-18 12:00:31.990877", "failed": true, "rc": 1, "start": "2017-10-18 12:00:30.608061", "stderr": "RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa\nTraceback (most recent call last):\n File \"/openstack/venvs/gnocchi-15.1.9/bin/gnocchi-upgrade\", line 7, in <module>\n from gnocchi.cli import upgrade\n File \"/openstack/venvs/gnocchi-15.1.9/lib/python2.7/site-packages/gnocchi/cli.py\", line 36, in <module>\n from gnocchi import service\n File \"/openstack/venvs/gnocchi-15.1.9/lib/python2.7/site-packages/gnocchi/service.py\", line 27, in <module>\n from gnocchi import opts\n File \"/openstack/venvs/gnocchi-15.1.9/lib/python2.7/site-packages/gnocchi/opts.py\", line 27, in <module>\n import gnocchi.storage.ceph\n File \"/openstack/venvs/gnocchi-15.1.9/lib/python2.7/site-packages/gnocchi/storage/ceph.py\", line 22, in <module>\n from gnocchi.storage import _carbonara\n File \"/openstack/venvs/gnocchi-15.1.9/lib/python2.7/site-packages/gnocchi/storage/_carbonara.py\", line 33, in <module>\n from gnocchi import carbonara\n File \"/openstack/venvs/gnocchi-15.1.9/lib/python2.7/site-packages/gnocchi/carbonara.py\", line 32, in <module>\n import pandas\n File \"/openstack/venvs/gnocchi-15.1.9/lib/python2.7/site-packages/pandas/__init__.py\", line 35, in <module>\n \"the C extensions first.\".format(module))\nImportError: C extension: numpy.core.multiarray failed to import not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first.", "stdout": "", "stdout_lines": [], "warnings": []}
The message means the numpy used during pandas compilation is different from the numpy at runtime. This fail is about packaging problem. On Openstack-ansible all the pip packages are mirrored and fetched on the repo_server. so I realized that pandas version 0.21.0rc1 is installed but this version is not stable. it is not compatible with numpy 1.12.0 version. I asked gnocchi channel and they suggested using pandas stable version. So I tried it and it worked.