5 Replies Latest reply on Nov 12, 2015 6:19 PM by Vinkman-Oracle

    Openstack Kolla Deployment -Failed

    3000094

      $ kollacli deploy

      GATHERING FACTS ***************************************************************

      ok: [scaaa881.us.oracle.com]

       

      TASK: [common | Starting Ansible container] ***********************************

      failed: [scaaa881.us.oracle.com] => {"changes": ["{\"status\":\"Pulling repository scaaa881.us.oracle.com:5000/oracle/ol-source-kolla-ansible\"}\r\n", "{\"errorDetail\":{\"message\":\"Error: image oracle/ol-source-kolla-ansible:2.0.1.78 not found\"},\"error\":\"Error: image oracle/ol-source-kolla-ansible:2.0.1.78 not f ound\"}\r\n"], "failed": true, "status": ""}

      msg: Unrecognized status from pull.

       

      FATAL: all hosts have already failed -- aborting

       

      PLAY RECAP ********************************************************************

                 to retry, use: --limit @/usr/share/kolla/site.retry

       

      scaaa881.us.oracle.com     : ok=2    changed=0    unreachable=0   failed=1

       

      Traceback (most recent call last):

        File "/usr/lib/python2.7/site-packages/kollacli/common.py", line 81, in take_action

          raise Exception('deploy failed')

      Exception: deploy failed

        • 1. Re: Openstack Kolla Deployment -Failed
          Vinkman-Oracle

          From the error you are trying to pull a image from the registry that does not exist... How did you load the images into the local registry? also .78 is pretty old you should use the official 2.0.1 tagged images...

          • 2. Re: Openstack Kolla Deployment -Failed
            3000094

            1. create a self-signed CA certificate for the Docker registry

            # mkdir -p /var/lib/registry/conf.d

            # cd /var/lib/registry/conf.d

            # openssl req -newkey rsa:4096 -nodes -sha256 -keyout domain.key -x509 -days 365 -out domain.crt

            # chmod 600 domain.key

            # mkdir -p /etc/docker/certs.d/scaaa881.us.oracle.com:5000

            # cp /var/lib/registry/conf.d/domain.crt /etc/docker/certs.d/scaaa881.us.oracle.com:5000/ca.crt

             

            2. Create a Docker registry:

            # docker run -d -p 5000:5000 --name registry --restart=always -v /var/lib/registry:/registry_data -e REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/registry_data -e REGISTRY_HTTP_TLS_KEY=/registry_data/conf.d/domain.key -e REGISTRY_HTTP_TLS_CERTIFICATE=/registry_data/conf.d/domain.crt registry:2.0

             

            3 Downnload Oracle Linux Docker images zip file and unzip it ang got

            import_to_registry.sh   ol-openstack-images-version.sha256sum   ol-openstack-images-version.tar.bz2

             

            4 Load image to docker registry

            [root@scaaa881 ~]# import_to_registry.sh scaaa881.us.oracle.com:5000

             

            Above command i have used to import it to registry and it tooks couple of hours in completion

            • 3. Re: Openstack Kolla Deployment -Failed
              Vinkman-Oracle

              This is most likely because of the v1/v2 registry issue, stop your current registry and then start it with :

               

              docker run ....... registry:2


              Also note, if your registry is on the same host as KeyStone, the registry should not be using port 5000, might want to use port 5443 in that case...


              • 4. Re: Openstack Kolla Deployment -Failed
                3000094

                1 Deleted tand removed old dockerregistry

                sudo  docker stop registry

                sudo docker rm registry


                 

                2. Create a Docker registry with 2.2

                # docker run -d -p 5000:5000 --name registry --restart=always -v /var/lib/registry:/registry_data -e REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/registry_data -e REGISTRY_HTTP_TLS_KEY=/registry_data/conf.d/domain.key -e REGISTRY_HTTP_TLS_CERTIFICATE=/registry_data/conf.d/domain.crt registry:2.2


                3 Load image to docker registry

                [root@scaaa881 ~]# import_to_registry.sh scaaa881.us.oracle.com:5000

                Image already exist


                4 kollacli deploy


                Output :Same error


                                                                                                                                    or

                2. Create a Docker registry with 2.2

                # docker run -d -p 5443:5443 --name registry --restart=always -v /var/lib/registry:/registry_data -e REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/registry_data -e REGISTRY_HTTP_TLS_KEY=/registry_data/conf.d/domain.key -e REGISTRY_HTTP_TLS_CERTIFICATE=/registry_data/conf.d/domain.crt registry:2.2


                3 Load image to docker registry

                [root@scaaa881 ~]# import_to_registry.sh scaaa881.us.oracle.com:5000

                Put http://scaaa881.us.oracle.com:5000/v1/repositories/oracle/ol-openstack-nova-base/: dial tcp 127.0.0.1:5000: connection refused

                 


                 


                • 5. Re: Openstack Kolla Deployment -Failed
                  Vinkman-Oracle
                  1. The run command should set the listen port to 5443, insert the following in the docker run command:  -e REGISTRY_HTTP_ADDR=0.0.0.0:5443
                  2. The import should be import_to_registry.sh scaaa881.us.oracle.com:5443
                  3. Copy domain.crt as /etc/docker/certs.d/scaaa881.us.oracle.com:5443/ca.crt on every host that will use the registry (ie all hosts shown using  kollacli host list)