Websoft9Archive / role_os

useful tools for OS image, e.g GNOME
Other
0 stars 1 forks source link

product OracleLinux8.5(GUI version) on aliyun #18

Closed qiaofeng1227 closed 2 years ago

qiaofeng1227 commented 3 years ago

According to the completed Oracle Linux 8.4, the following functions are implemented: Websoft9/role_os#14 Websoft9/role_os#15 Websoft9/StackHub#109

qiaofeng1227 commented 2 years ago
[root@websoft9-linux8 websoft9]# dnf --version
4.4.2
  Installed: dnf-0:4.4.2-11.el8.noarch at Wed 13 Oct 2021 04:55:09 PM GMT
  Built    :  at Wed 19 May 2021 09:24:58 AM GMT

  Installed: rpm-0:4.14.3-14.el8_4.x86_64 at Wed 13 Oct 2021 04:54:17 PM GMT
  Built    :  at Tue 29 Jun 2021 05:40:07 PM GMT
[root@websoft9-linux8 websoft9]# yum --version
4.4.2
  Installed: dnf-0:4.4.2-11.el8.noarch at Wed 13 Oct 2021 04:55:09 PM GMT
  Built    :  at Wed 19 May 2021 09:24:58 AM GMT

  Installed: rpm-0:4.14.3-14.el8_4.x86_64 at Wed 13 Oct 2021 04:54:17 PM GMT
  Built    :  at Tue 29 Jun 2021 05:40:07 PM GMT
[root@websoft9-linux8 websoft9]# 
qiaofeng1227 commented 2 years ago

OracleLinux have no pip,pip3, only have pip-2 and pip-3, add softlink to pip

- name: Install cloudinit
  shell: |
    wget {{ os_cloudinit_download_url }}
    tar -zxvf ./cloud-init-*.tgz
    cd cloud-init-*
    [[ -f /usr/bin/pip-3 ]] && python3 -m pip install --upgrade pip
    [[ -f /usr/bin/pip-3 ]] && ln -sf /usr/bin/pip-3 /usr/bin/pip3
    pip3 install -r ./requirements.txt
    cd ./tools
    bash deploy.sh centos {{ansible_distribution_major_version}}
qiaofeng1227 commented 2 years ago
TASK [role_os : Install Desktop on RedHat] ***********************************************************************************************************************************************************************************************************************************

TASK [role_os : Disable selinux and  firewalld] ******************************************************************************************************************************************************************************************************************************
changed: [13.89.223.167]

TASK [role_os : Install package of env, .eg.virtio] **************************************************************************************************************************************************************************************************************************
changed: [13.89.223.167]

TASK [role_os : Install aegis] ***********************************************************************************************************************************************************************************************************************************************
changed: [13.89.223.167]

TASK [role_os : Install cloudinit] *******************************************************************************************************************************************************************************************************************************************
fatal: [13.89.223.167]: FAILED! => {"changed": true, "cmd": "wget https://ecs-image-tools.oss-cn-hangzhou.aliyuncs.com/cloudinit/cloud-init-19.1.10.tgz\ntar -zxvf ./cloud-init-*.tgz\ncd cloud-init-*\n[[ -f /usr/bin/pip-3 ]] && python3 -m pip install --upgrade pip\n[[ -f /usr/bin/pip-3 ]] && ln -sf /usr/bin/pip-3 /usr/bin/pip3\npip3 install -r ./requirements.txt\ncd ./tools\nbash deploy.sh centos 8\n", "delta": "0:00:05.051276", "end": "2021-11-16 01:07:35.321868", "msg": "non-zero return code", "rc": 127, "start": "2021-11-16 01:07:30.270592", "stderr": "--2021-11-16 01:07:30--  https://ecs-image-tools.oss-cn-hangzhou.aliyuncs.com/cloudinit/cloud-init-19.1.10.tgz\nResolving ecs-image-tools.oss-cn-hangzhou.aliyuncs.com (ecs-image-tools.oss-cn-hangzhou.aliyuncs.com)... 47.110.23.43\nConnecting to ecs-image-tools.oss-cn-hangzhou.aliyuncs.com (ecs-image-tools.oss-cn-hangzhou.aliyuncs.com)|47.110.23.43|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 1859266 (1.8M) [application/gzip]\nSaving to: ‘cloud-init-19.1.10.tgz’\n\n     0K .......... .......... .......... .......... ..........  2%  128K 14s\n    50K .......... .......... .......... .......... ..........  5%  256K 10s\n   100K .......... .......... .......... .......... ..........  8%  256K 9s\n   150K .......... .......... .......... .......... .......... 11% 64.9M 6s\n   200K .......... .......... .......... .......... .......... 13% 69.3M 5s\n   250K .......... .......... .......... .......... .......... 16%  257K 5s\n   300K .......... .......... .......... .......... .......... 19% 64.7M 4s\n   350K .......... .......... .......... .......... .......... 22% 53.4M 3s\n   400K .......... .......... .......... .......... .......... 24% 67.6M 3s\n   450K .......... .......... .......... .......... .......... 27% 71.0M 3s\n   500K .......... .......... .......... .......... .......... 30% 73.3M 2s\n   550K .......... .......... .......... .......... .......... 33%  260K 2s\n   600K .......... .......... .......... .......... .......... 35% 65.5M 2s\n   650K .......... .......... .......... .......... .......... 38% 65.9M 2s\n   700K .......... .......... .......... .......... .......... 41% 63.4M 2s\n   750K .......... .......... .......... .......... .......... 44% 67.9M 1s\n   800K .......... .......... .......... .......... .......... 46% 70.7M 1s\n   850K .......... .......... .......... .......... .......... 49% 71.8M 1s\n   900K .......... .......... .......... .......... .......... 52% 78.0M 1s\n   950K .......... .......... .......... .......... .......... 55% 72.8M 1s\n  1000K .......... .......... .......... .......... .......... 57% 69.3M 1s\n  1050K .......... .......... .......... .......... .......... 60% 76.6M 1s\n  1100K .......... .......... .......... .......... .......... 63%  264K 1s\n  1150K .......... .......... .......... .......... .......... 66% 56.9M 1s\n  1200K .......... .......... .......... .......... .......... 68% 67.0M 1s\n  1250K .......... .......... .......... .......... .......... 71% 67.5M 1s\n  1300K .......... .......... .......... .......... .......... 74% 76.2M 0s\n  1350K .......... .......... .......... .......... .......... 77% 81.6M 0s\n  1400K .......... .......... .......... .......... .......... 79% 82.6M 0s\n  1450K .......... .......... .......... .......... .......... 82% 80.9M 0s\n  1500K .......... .......... .......... .......... .......... 85% 81.5M 0s\n  1550K .......... .......... .......... .......... .......... 88% 54.3M 0s\n  1600K .......... .......... .......... .......... .......... 90% 62.2M 0s\n  1650K .......... .......... .......... .......... .......... 93% 66.8M 0s\n  1700K .......... .......... .......... .......... .......... 96% 66.9M 0s\n  1750K .......... .......... .......... .......... .......... 99% 65.2M 0s\n  1800K .......... .....                                      100% 61.3M=1.4s\n\n2021-11-16 01:07:32 (1.29 MB/s) - ‘cloud-init-19.1.10.tgz’ saved [1859266/1859266]\n\n/bin/sh: line 2: cd: too many arguments\n  WARNING: The scripts pip, pip3 and pip3.6 are installed in '/usr/local/bin' which is not on PATH.\n  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.\nWARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.\nPlease see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.\nTo avoid this problem you can invoke Python with '-m pip' instead of running pip directly.\nERROR: Could not open requirements file: [Errno 2] No such file or directory: './requirements.txt'\n/bin/sh: line 6: cd: ./tools: No such file or directory\nbash: deploy.sh: No such file or directory", "stderr_lines": ["--2021-11-16 01:07:30--  https://ecs-image-tools.oss-cn-hangzhou.aliyuncs.com/cloudinit/cloud-init-19.1.10.tgz", "Resolving ecs-image-tools.oss-cn-hangzhou.aliyuncs.com (ecs-image-tools.oss-cn-hangzhou.aliyuncs.com)... 47.110.23.43", "Connecting to ecs-image-tools.oss-cn-hangzhou.aliyuncs.com (ecs-image-tools.oss-cn-hangzhou.aliyuncs.com)|47.110.23.43|:443... conne
qiaofeng1227 commented 2 years ago

image

qiaofeng1227 commented 2 years ago

8已经上架