Uploaded image for project: 'Network Controller'
  1. Network Controller
  2. SDNC-443

outdated apt repo for ansible in sdnc-ansible-server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Medium Medium
    • None
    • Beijing Release
    • None
    • None

      I am using beijing branch for my OOM.

       

      onap-sdnc-ansible-server cannot launch, the logs give the error below: 

      E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/a/ansible/ansible_2.0.0.2-2ubuntu1_all.deb  404  Not Found [IP: 91.189.88.152 80]

       

      I see on the website the version is http://archive.ubuntu.com/ubuntu/pool/universe/a/ansible/ansible_2.0.0.2-2ubuntu1.1_all.deb

       

       

      Reading package lists...

      Building dependency tree...

      Reading state information...

      The following additional packages will be installed:

        apt-utils cron dh-python distro-info-data gir1.2-glib-2.0 iso-codes

        libapt-inst2.0 libdbus-glib-1-2 libgirepository-1.0-1 libpython3-stdlib

        lsb-release python-apt-common python3 python3-apt python3-dbus python3-gi

        python3-minimal python3-pycurl python3-software-properties python3.5

        python3.5-minimal unattended-upgrades

      Suggested packages:

        anacron logrotate checksecurity exim4 | postfix | mail-transport-agent

        isoquery lsb python3-doc python3-tk python3-venv python3-apt-dbg

        python-apt-doc python-dbus-doc python3-dbus-dbg libcurl4-gnutls-dev

        python-pycurl-doc python3-pycurl-dbg python3.5-venv python3.5-doc

        binfmt-support bsd-mailx mail-transport-agent

      The following NEW packages will be installed:

        apt-utils cron dh-python distro-info-data gir1.2-glib-2.0 iso-codes

        libapt-inst2.0 libdbus-glib-1-2 libgirepository-1.0-1 libpython3-stdlib

        lsb-release python-apt-common python3 python3-apt python3-dbus python3-gi

        python3-minimal python3-pycurl python3-software-properties python3.5

        python3.5-minimal software-properties-common unattended-upgrades

      0 upgraded, 23 newly installed, 0 to remove and 2 not upgraded.

      Need to get 5255 kB of archives.

      After this operation, 31.7 MB of additional disk space will be used.

      Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 cron amd64 3.0pl1-128ubuntu2 [68.4 kB]

      Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3.5-minimal amd64 3.5.2-2ubuntu0~16.04.4 [1597 kB]

      Get:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-minimal amd64 3.5.1-3 [23.3 kB]

      Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3.5 amd64 3.5.2-2ubuntu0~16.04.4 [165 kB]

      Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 libpython3-stdlib amd64 3.5.1-3 [6818 B]

      Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dh-python all 2.20151103ubuntu1.1 [74.1 kB]

      Get:7 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3 amd64 3.5.1-3 [8710 B]

      Err:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapt-inst2.0 amd64 1.2.26

        404  Not Found [IP: 91.189.88.161 80]

      Err:9 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apt-utils amd64 1.2.26

        404  Not Found [IP: 91.189.88.161 80]

      Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 distro-info-data all 0.28ubuntu0.8 [4502 B]

      Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 lsb-release all 9.20160110ubuntu0.2 [11.8 kB]

      Get:12 http://archive.ubuntu.com/ubuntu xenial/main amd64 libgirepository-1.0-1 amd64 1.46.0-3ubuntu1 [88.3 kB]

      Get:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 gir1.2-glib-2.0 amd64 1.46.0-3ubuntu1 [127 kB]

      Get:14 http://archive.ubuntu.com/ubuntu xenial/main amd64 iso-codes all 3.65-1 [2268 kB]

      Get:15 http://archive.ubuntu.com/ubuntu xenial/main amd64 libdbus-glib-1-2 amd64 0.106-1 [67.1 kB]

      Err:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-apt-common all 1.1.0~beta1ubuntu0.16.04.1

        404  Not Found [IP: 91.189.88.161 80]

      Err:17 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-apt amd64 1.1.0~beta1ubuntu0.16.04.1

        404  Not Found [IP: 91.189.88.161 80]

      Get:18 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-dbus amd64 1.2.0-3 [83.1 kB]

      Get:19 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-gi amd64 3.20.0-0ubuntu1 [153 kB]

      Get:20 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-pycurl amd64 7.43.0-1ubuntu1 [42.3 kB]

      Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-software-properties all 0.96.20.7 [20.3 kB]

      Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 software-properties-common all 0.96.20.7 [9452 B]

      Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 unattended-upgrades all 0.90ubuntu0.9 [32.3 kB]

      Fetched 4850 kB in 0s (12.4 MB/s)

      E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/a/apt/libapt-inst2.0_1.2.26_amd64.deb  404  Not Found [IP: 91.189.88.161 80]

       

      E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/a/apt/apt-utils_1.2.26_amd64.deb  404  Not Found [IP: 91.189.88.161 80]

       

      E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python-apt/python-apt-common_1.1.0~beta1ubuntu0.16.04.1_all.deb  404  Not Found [IP: 91.189.88.161 80]

       

      E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python-apt/python3-apt_1.1.0~beta1ubuntu0.16.04.1_amd64.deb  404  Not Found [IP: 91.189.88.161 80]

       

      E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

      ./startAnsibleServer.sh: line 11: apt-add-repository: command not found

      Reading package lists...

      Building dependency tree...

      Reading state information...

      The following additional packages will be installed:

        ieee-data libyaml-0-2 python-crypto python-ecdsa python-httplib2

        python-jinja2 python-markupsafe python-netaddr python-paramiko

        python-selinux python-six python-yaml

      Suggested packages:

        sshpass python-crypto-dbg python-crypto-doc python-jinja2-doc ipython

        python-netaddr-docs

      The following NEW packages will be installed:

        ansible ieee-data libyaml-0-2 python-crypto python-ecdsa python-httplib2

        python-jinja2 python-markupsafe python-netaddr python-paramiko

        python-selinux python-six python-yaml

      0 upgraded, 13 newly installed, 0 to remove and 2 not upgraded.

      Need to get 2904 kB of archives.

      After this operation, 17.6 MB of additional disk space will be used.

      Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libyaml-0-2 amd64 0.1.6-3 [47.6 kB]

      Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-crypto amd64 2.6.1-6ubuntu0.16.04.3 [246 kB]

      Get:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-markupsafe amd64 0.23-2build2 [15.5 kB]

      Get:4 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-jinja2 all 2.8-1 [109 kB]

      Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-six all 1.10.0-3 [10.9 kB]

      Get:6 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-ecdsa all 0.13-2 [34.0 kB]

      Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-paramiko all 1.16.0-1ubuntu0.1 [109 kB]

      Get:8 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-yaml amd64 3.11-3build1 [105 kB]

      Get:9 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-httplib2 all 0.9.1+dfsg-1 [34.2 kB]

      Get:10 http://archive.ubuntu.com/ubuntu xenial/main amd64 ieee-data all 20150531.1 [830 kB]

      Get:11 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-netaddr all 0.7.18-1 [174 kB]

      Err:12 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 ansible all 2.0.0.2-2ubuntu1

        404  Not Found [IP: 91.189.88.152 80]

      Get:13 http://archive.ubuntu.com/ubuntu xenial/universe amd64 python-selinux amd64 2.4-3build2 [173 kB]

      Fetched 1888 kB in 0s (9038 kB/s)

      E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/a/ansible/ansible_2.0.0.2-2ubuntu1_all.deb  404  Not Found [IP: 91.189.88.152 80]

       

      E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

      cp: cannot stat '/etc/ansible/ansible.cfg': No such file or directory

      ./startAnsibleServer.sh: line 15: /etc/ansible/ansible.cfg: No such file or directory

      cat: /etc/ansible/ansible.cfg.orig: No such file or directory

      Traceback (most recent call last):

        File "RestServer.py", line 34, in <module>

          import cherrypy

        File "/usr/local/lib/python2.7/dist-packages/cherrypy/_init_.py", line 66, in <module>

          from ._cperror import (

        File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cperror.py", line 122, in <module>

          import urllib.parse

      ImportError: No module named parse

       

      I cloned the Beijing OOM branch, then “make all”, then “helm install  -n onap --namespace onap local/onap”.

       

      The sndc-ansible chart values.yaml says:

      repository: nexus3.onap.org:10001

      image: onap/sdnc-ansible-server-image:1.3.4

       

      I compared this with OOM 2.0.0-ONAP Branch, and it’s the same docker image version 1.3.4

       

      I think the issue is because apt-add-repository is missing.

      ./startAnsibleServer.sh: line 11: apt-add-repository: command not found

       

      Maybe the solution is to add “sudo apt-get update” to the startAnsibleServer.sh ?

       

      If I try on a plain Ubuntu, where apt-add-repository is available, it downloads the correct version OK

      Get:12 http://nova.clouds.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 ansible all 2.0.0.2-2ubuntu1.1 [1,018 kB]

       

      Full log below:

      root@olc-lde-1:~# apt-add-repository -y ppa:ansible/ansible

      gpg: keyring `/tmp/tmpkmzn013u/secring.gpg' created

      gpg: keyring `/tmp/tmpkmzn013u/pubring.gpg' created

      gpg: requesting key 7BB9C367 from hkp server keyserver.ubuntu.com

      gpg: /tmp/tmpkmzn013u/trustdb.gpg: trustdb created

      gpg: key 7BB9C367: public key "Launchpad PPA for Ansible, Inc." imported

      gpg: Total number processed: 1

      gpg:               imported: 1  (RSA: 1)

      OK

      root@olc-lde-1:~# apt-get -y install ansible

      Reading package lists... Done

      Building dependency tree      

      Reading state information... Done

      The following additional packages will be installed:

        ieee-data python-crypto python-ecdsa python-httplib2 python-jinja2 python-markupsafe python-netaddr python-paramiko python-pkg-resources python-selinux python-six python-yaml

      Suggested packages:

        sshpass python-crypto-dbg python-crypto-doc python-jinja2-doc ipython python-netaddr-docs python-setuptools

      The following NEW packages will be installed:

        ansible ieee-data python-crypto python-ecdsa python-httplib2 python-jinja2 python-markupsafe python-netaddr python-paramiko python-pkg-resources python-selinux python-six python-yaml

      0 upgraded, 13 newly installed, 0 to remove and 80 not upgraded.

      1 not fully installed or removed.

      Need to get 2,967 kB of archives.

      After this operation, 17.9 MB of additional disk space will be used.

      Get:1 http://nova.clouds.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-crypto amd64 2.6.1-6ubuntu0.16.04.3 [246 kB]

      Get:2 http://nova.clouds.archive.ubuntu.com/ubuntu xenial/main amd64 python-markupsafe amd64 0.23-2build2 [15.5 kB]

      Get:3 http://nova.clouds.archive.ubuntu.com/ubuntu xenial/main amd64 python-jinja2 all 2.8-1 [109 kB]

      Get:4 http://nova.clouds.archive.ubuntu.com/ubuntu xenial/main amd64 python-six all 1.10.0-3 [10.9 kB]

      Get:5 http://nova.clouds.archive.ubuntu.com/ubuntu xenial/main amd64 python-ecdsa all 0.13-2 [34.0 kB]

      Get:6 http://nova.clouds.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-paramiko all 1.16.0-1ubuntu0.1 [109 kB]

      Get:7 http://nova.clouds.archive.ubuntu.com/ubuntu xenial/main amd64 python-pkg-resources all 20.7.0-1 [108 kB]

      Get:8 http://nova.clouds.archive.ubuntu.com/ubuntu xenial/main amd64 python-yaml amd64 3.11-3build1 [105 kB]

      Get:9 http://nova.clouds.archive.ubuntu.com/ubuntu xenial/main amd64 python-httplib2 all 0.9.1+dfsg-1 [34.2 kB]

      Get:10 http://nova.clouds.archive.ubuntu.com/ubuntu xenial/main amd64 ieee-data all 20150531.1 [830 kB]

      Get:11 http://nova.clouds.archive.ubuntu.com/ubuntu xenial/main amd64 python-netaddr all 0.7.18-1 [174 kB]

      Get:12 http://nova.clouds.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 ansible all 2.0.0.2-2ubuntu1.1 [1,018 kB]

      Get:13 http://nova.clouds.archive.ubuntu.com/ubuntu xenial/universe amd64 python-selinux amd64 2.4-3build2 [173 kB]

      Fetched 2,967 kB in 0s (10.7 MB/s)  

      Setting up install-info (6.1.0.dfsg.1-5) ...

      /usr/sbin/update-info-dir: 4: /etc/environment: catalina.base=/home/cloud/apache-tomcat-8.5.28: not found

      dpkg: error processing package install-info (--configure):

      subprocess installed post-installation script returned error exit status 127

      E: Sub-process /usr/bin/dpkg returned an error code (1)

      root@olc-lde-1:~#

            Unassigned Unassigned
            abdelseaudi abdelseaudi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: