Ascertain the pandas version 07/45207/1
authorwutianwei <wutianwei1@huawei.com>
Mon, 16 Oct 2017 03:12:50 +0000 (11:12 +0800)
committerJustin chi <chigang@huawei.com>
Mon, 16 Oct 2017 11:36:55 +0000 (11:36 +0000)
the 0.21.0rc1 version of pandas will block the gnocchi install,
so we use 0.20.3. we replace the pandas package in repo

Change-Id: Ic8d9fa3a691b64a0783034ffbf0d958427e30d16
Signed-off-by: wutianwei <wutianwei1@huawei.com>
(cherry picked from commit 05aafa14c76537222fac2f93fc6ab7bec741cff5)

deploy/adapters/ansible/roles/config-osa/tasks/main.yml
deploy/adapters/ansible/roles/config-osa/templates/repo_fix_pandas.yml [new file with mode: 0644]
deploy/adapters/ansible/roles/config-osa/vars/main.yml

index 139b426..d3779fd 100755 (executable)
   include: noha.yml
   when:
     - "{{ hostvars[inventory_hostname]['groups']['controller'] | length < 2 }}"
+
+- name: copy the repo_fix_andas.yml
+  template:
+    src: repo_fix_pandas.yml
+    dest: /etc/ansible/roles/repo_build/tasks/repo_fix_pandas.yml
+
+- name: change repore build
+  lineinfile:
+    dest: /etc/ansible/roles/repo_build/tasks/main.yml
+    insertafter: "^- include: repo_post_build.yml"
+    line: "- include: repo_fix_pandas.yml"
diff --git a/deploy/adapters/ansible/roles/config-osa/templates/repo_fix_pandas.yml b/deploy/adapters/ansible/roles/config-osa/templates/repo_fix_pandas.yml
new file mode 100644 (file)
index 0000000..4605089
--- /dev/null
@@ -0,0 +1,15 @@
+##############################################################################
+# Copyright (c) 2017 HUAWEI TECHNOLOGIES CO.,LTD and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+---
+- name: change pandas version
+  shell: |
+    mkdir -p /tmp/pandas;
+    pip install pandas==0.20.3 -d /tmp/pandas;
+    rm -rf {{ repo_dest_path }}/pandas*
+    cp /tmp/pandas/pandas-0.20.3-cp27-cp27mu-manylinux1_x86_64.whl {{ repo_dest_path }}
index 3c95bc6..18687fa 100644 (file)
@@ -9,3 +9,4 @@
 ---
 LOCAL_REPOSITORY_IP: "192.168.137.222"
 ceph_host: "{{ hostvars[inventory_hostname]['groups']['ceph_osd'][0] }}"
+repo_dest_path: "/var/www/repo/os-releases/15.1.4/ubuntu-16.04-x86_64/"