首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >尝试安装Acumos Boreas版本时出错

尝试安装Acumos Boreas版本时出错
EN

Stack Overflow用户
提问于 2019-08-21 15:52:25
回答 1查看 152关注 0票数 0

我希望Acumos Boreas OneClick (和其他安装脚本)现在可以正常工作了……

我代表AI4EU project (任务3.2)再次尝试在Ubuntu18.04服务器上安装Acumos Boreas版本。不幸的是我的希望越来越小了..。

我在这里遵循2.1.2节下的过程:https://docs.acumos.org/en/boreas/submodules/system-integration/docs/oneclick-deploy/user-guide.html#host-vm-preparation

我从一个全新的Ubuntu 18.04虚拟机开始(使用32G内存、12个内核和300 GB磁盘创建)。

执行此操作(并在出现提示时键入sudo密码):

代码语言:javascript
运行
复制
git clone https://gerrit.acumos.org/r/system-integration
cd system-integration/tools/
bash setup_docker.sh
if [[ "$(id -nG "$USER" | grep docker)" == "" ]]; then sudo usermod -aG docker $USER; fi
# Logged out and in again and verified that my user is in the docker group
cd system-integration/tools/
bash setup_k8s_stack.sh setup
cd
bash system-integration/AIO/setup_prereqs.sh k8s acumos.tele.no $USER generic 2>&1 | tee aio_prep.log
# When "Prerequisites setup is complete" messages is displayed I continue with
cd system-integration/AIO
bash oneclick_deploy.sh 2>&1 | tee aio_deploy.log

部署失败,并显示以下错误消息:

代码语言:javascript
运行
复制
....
oneclick_deploy.sh setup_federation:233 (Tue Aug 20 13:47:04 UTC 2019) CDS API is not yet ready; waiting 10 seconds
+ t=300
+ sleep 10
++ curl -k -u ccds_client:27f928e9-cdde-4483-b3c9-7da074972908 https://acumos.tele.no/ccds/peer
++ grep -c numberOfElements
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   203  100   203    0     0   7000      0 --:--:-- --:--:-- --:--:--  7000
+ [[ 0 -eq 0 ]]
+ [[ 300 -eq 300 ]]
+ fail 'CDS API is not ready after 300 seconds'
+ set +x

当我使用Kubernetes Dashboard查看实际发生故障的原因时,我确实看到通用数据服务pod出现了故障。

我还可以看到docker_proxy和其他一些pods一样有规律地崩溃。

所有的安装和错误日志都可以在这里找到:https://www.dropbox.com/sh/61snwd26zbixwl3/AAAWcfBKnIwNkRghXSMQayrEa?dl=0

如果有人能够指导我如何安装Acumos Boreas for the AI4EU项目(WP3)来探索它,我将不胜感激。

EN

回答 1

Stack Overflow用户

发布于 2019-08-26 22:22:18

Arne,确保您可以从运行的CDS容器中连接到主机'acumos‘。如果这是一个云服务VM,您可能必须打开一个安全组规则,以允许VM连接到其公共IP上的自身(听起来隐含,但并不总是默认设置)。您可以通过以下方式进行测试

kubectl exec -it -n acumos $(kubectl get pod -n acumos -l app=sv-scanning | awk '/sv-scanning/{print $1}') -- curl http://acumos:30001

注意:此命令示例使用sv-scanning容器,因为它安装了curl ...不过,测试的目的是看看是否有任何容器可以连接到MariaDB。默认情况下,如果Acumos域不是DNS可解析的,如/etc/ hostAlias文件中的条目所示,将向每个部署模板添加一个主机。

(更新)我添加了一个脚本来创建调试容器(基于ubuntu),并将其作为命名空间下的pod运行。这样你就可以添加任何你想要调试的工具,例如我已经安装了curl,j1,netcat。使用该容器验证到http://acumos:30001的连通性,检查CDS日志等。

代码语言:javascript
运行
复制
#!/bin/bash
kubectl delete deployment -n acumos debug
while [[ "$(kubectl get pods -n acumos -l app=debug)" != "" ]] ; do
  echo 'waiting...'; sleep 10
done
cat <<EOF >debug.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: acumos
  name: debug
spec:
  selector:
    matchLabels:
      app: debug
  replicas: 1
  template:
    metadata:
      labels:
        app: debug
    spec:
      containers:
      - name: debug
        image: ubuntu
        command: ['/bin/bash', '-c']
        args:
        - apt-get update; apt-get install -y curl jq netcat;
          sleep 3600;
        volumeMounts:
        - mountPath: /logs
          name: logs
      restartPolicy: Always
      volumes:
      - name: logs
        persistentVolumeClaim:
         claimName: logs
EOF
kubectl create -f debug.yaml
# Wait till running
while [[ $(kubectl get pods -n acumos -o yaml -l app=debug | grep -c 'phase: Running') -eq 0 ]]; do
  echo 'waiting...'; sleep 10
done
kubectl exec -it -n acumos $(kubectl get pods -n acumos -l app=debug -o name | sed 's/pod\///') -- bash
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57586879

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档