blueboxgroup / ursula

Ansible playbooks for operating OpenStack - Powering Blue Box Cloud.
https://www.blueboxcloud.com
205 stars 5 forks source link

No package matching 'openstack-keystone-10.0-bbc72' is available during deploying openstack #1074

Closed openstacks closed 8 years ago

openstacks commented 9 years ago

Ansible version: ansible 1.9.2-bbg

Issue:

Failed to add any dependent repositories during deploying openstack

There is no this file on server https://packagecloud.io/blueboxcloud/giftwrap/ubuntu/dists/precise/main/binary-i386/Packages

log: TASK: [apt-repos | add any dependent repository key packages] *** Monday 20 July 2015 05:24:43 -0500 (0:00:01.422) 0:01:34.211 * skipping: [10.110.8.133] => (item={'repo': u'deb https://packagecloud.io/blueboxcloud/giftwrap/ubuntu/ precise main', 'key_url': u'http://packagecloud.io/gpg.key'})

TASK: [apt-repos | add any dependent repositories] **** Monday 20 July 2015 05:24:44 -0500 (0:00:00.400) 0:01:34.612 *** failed: [10.110.8.133] => (item={'repo': u'deb https://packagecloud.io/blueboxcloud/giftwrap/ubuntu/ precise main', 'key_url': u'https:/packagecloud.io/gpg.key'}) => {"failed": true, "item": {"key_url": "https://packagecloud.io/gpg.key", "repo": "deb https://packageclou.io/blueboxcloud/giftwrap/ubuntu/ precise main"}, "parsed": false} OpenSSH_5.9p1 Debian-5ubuntu1.4, OpenSSL 1.0.1 14 Mar 2012 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for debug1: auto-mux: Trying existing master debug1: mux_client_request_session: master session id: 2 Traceback (most recent call last): File "", line 2777, in File "", line 464, in main File "/usr/lib/python2.7/dist-packages/apt/deprecation.py", line 98, in deprecated_function return func(_args, _kwds) File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 441, in update raise FetchFailedException(e) apt.cache.FetchFailedException: W:Failed to fetch https://packagecloud.io/blueboxcloud/giftwrap/ubuntu/dists/precise/main/binary-amd64/ackages Problem with the SSL CA cert (path? access rights?) , W:Failed to fetch https://packagecloud.io/blueboxcloud/giftwrap/ubuntu/dists/precise/main/binary-i386/Packages Problem with the SSL A cert (path? access rights?) , E:Some index files failed to download. They have been ignored, or old ones used instead.

FATAL: all hosts have already failed -- aborting

PLAY RECAP ****

Monday 20 July 2015 05:24:51 -0500 (0:00:07.744) 0:01:42.356 ***

Slowest 25 Tasks

apt-repos | add any dependent repositories ------------------------------ 7.74s common | fetch ursula_monitoring when install method is git ------------- 5.45s common | install shade for ansible modules ------------------------------ 2.84s client | install openstack clients -------------------------------------- 2.41s common | pip install requests - precise --------------------------------- 2.37s common | update apt index ----------------------------------------------- 2.37s security_errata | update python modules for true ssl context ------------ 2.23s openstack-source | python requirements for keystone --------------------- 1.57s openstack-source | python requirements for keystone in virtualenv ------- 1.55s apt-repos | add any dependent repository keys from url ------------------ 1.42s logging-config | install log template ----------------------------------- 1.26s logging | configure rsyslog --------------------------------------------- 0.96s iptables | iptables load on boot ---------------------------------------- 0.87s percona-backup | add percona-xtrabackup.sh to cron.daily ---------------- 0.86s percona-common | install python-pycurl ---------------------------------- 0.86s logging | install logstash-forwarder ------------------------------------ 0.85s logging | install logstash-forwarder service ---------------------------- 0.84s memcached | memcached graphite check ------------------------------------ 0.84s openstack-source | get keystone source repo ----------------------------- 0.77s client | update ca certs ------------------------------------------------ 0.76s percona-server | install mysql config files ----------------------------- 0.63s rabbitmq | openstack rabbit user ---------------------------------------- 0.61s common | install raid utilities ----------------------------------------- 0.53s security_errata | update SSL -------------------------------------------- 0.52s memcached | install memcached packages ---------------------------------- 0.52s to retry, use: --limit @/root/site.retry

10.110.8.133 : ok=230 changed=13 unreachable=0 failed=1

openstacks commented 9 years ago

Here is command what i run:

ursula envs/example/allinone site.yml --ursula-debug

openstacks commented 9 years ago

TASK: [apt-repos | add any dependent repositories] **** Monday 20 July 2015 08:02:28 -0500 (0:00:00.399) 0:01:33.189 *** ok: [10.110.8.133] => (item={'repo': u'deb https://packagecloud.io/blueboxcloud/giftwrap/ubuntu/ precise main', 'key_url': u'https://packagecloud.io/gpg.key'})

TASK: [openstack-package | install keystone package] ** Monday 20 July 2015 08:02:28 -0500 (0:00:00.492) 0:01:33.681 *** failed: [10.110.8.133] => {"failed": true} msg: No package matching 'openstack-keystone-10.0-bbc72' is available

FATAL: all hosts have already failed -- aborting

PLAY RECAP ****

Monday 20 July 2015 08:02:29 -0500 (0:00:00.871) 0:01:34.553 ***

openstacks commented 9 years ago

Failed to msg: No package matching 'openstack-keystone-10.0-bbc72' is available

openstacks commented 9 years ago

apt-get update

Ign http://packages.erlang-solutions.com precise/contrib Translation-en W: Failed to fetch https://packagecloud.io/blueboxcloud/giftwrap/ubuntu/dists/precise/main/source/Sources Problem with the SSL CA cert (path? access rights?)

W: Failed to fetch https://packagecloud.io/blueboxcloud/giftwrap/ubuntu/dists/precise/main/binary-amd64/Packages Problem with the SSL CA cert (path? access rights?)

W: Failed to fetch https://packagecloud.io/blueboxcloud/giftwrap/ubuntu/dists/precise/main/binary-i386/Packages Problem with the SSL CA cert (path? access rights?)

E: Some index files failed to download. They have been ignored, or old ones used instead.

paulczar commented 9 years ago

this could be an intermittent network issue to your host, or somehow a messed up ca certs on your host.

are you able to do a curl -sSL https://packagecloud.io/blueboxcloud/giftwrap?filter=debs from that same host ?

you may want to try to run update-ca-certificates to rebuild your certs files.

openstacks commented 9 years ago

I can run this command on my host root@hkg02kvm002ccz023:~# curl -sSL https://packagecloud.io/blueboxcloud/giftwrap?filter=debs

<!DOCTYPE html>

``` blueboxcloud/giftwrap - Packages ``` ``` ``` ``` ```
```

  • Start typing to filter... Use the up, down, and enter keys to navigate... No packages found...
  • {{pkg.name}}
```
```

``` ```
openstacks commented 9 years ago

The issue is still there after i run update-ca-certificates command

the following command can be executed successfully on my host curl -sSL https://packagecloud.io/blueboxcloud/giftwrap?filter=debs from that same host ?

is this repo url correct? It return 404 when i access it on IE https://packagecloud.io/blueboxcloud/giftwrap/ubuntu/dists/precise/main/binary-amd64/Packages https://packagecloud.io/blueboxcloud/giftwrap/ubuntu/dists/precise/main/binary-i386/Packages

openstacks commented 9 years ago

I manually installed openstack package following this guide , but it failed either. (https://packagecloud.io/blueboxcloud/giftwrap/packages/ubuntu/precise/openstack-cinder-11.0-bbc73_11.0-bbc73_amd64.deb)

###################################################### Guide: openstack-cinder-11.0-bbc73_11.0-bbc73_amd64.deb Install this Package

curl -s https://packagecloud.io/install/repositories/blueboxcloud/giftwrap/script.deb.sh | sudo bash sudo apt-get install openstack-cinder-11.0-bbc73=11.0-bbc73 ############################################################################ Install log: root@hkg02kvm002ccz023:/cloud/ursula# curl -s https://packagecloud.io/install/repositories/blueboxcloud/giftwrap/script.deb.sh | sudo bash Detected operating system as Ubuntu/precise. Checking for curl... Detected curl... Installing apt-transport-https... done. Getting the hostname of this machine... Found hostname: hkg02kvm002ccz023.ccz023.hkg02.ibm.com Installing /etc/apt/sources.list.d/blueboxcloud_giftwrap.list... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 262 0 262 0 0 337 0 --:--:-- --:--:-- --:--:-- 416 done. Importing packagecloud gpg key... done. Running apt-get update... done.

root@hkg02kvm002ccz023:/cloud/ursula# apt-get install openstack-cinder-11.0-bbc73=11.0-bbc73 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package openstack-cinder-11.0-bbc73 E: Couldn't find any package by regex 'openstack-cinder-11.0-bbc73'

omgjlk commented 8 years ago

We've changed the repos and the versions. This should no longer be an issue.