[Openstack] openstack-ansible aio error

Marcin Dulak marcin.dulak at gmail.com
Sun Feb 4 10:29:22 UTC 2018


When playing with openstack-ansible do it in a virtual setup (e.g. nested
virtualization with libvirt) so you can reproducibly bring up your
environment from scratch.
You will have to do it multiple times.

https://developer.rackspace.com/blog/life-without-devstack-openstack-
development-with-osa/ is more than 2 years old.

Try to follow
https://docs.openstack.org/openstack-ansible/latest/contributor/quickstart-aio.html
but git clone the latest state of the openstack-ansible repo.
The above page has a link that can be used to submit bugs directly to the
openstack-ansible project at launchpad.
In this way you may be able to cleanup/improve the documentation,
and since your setup is the simplest possible one your bug reports may get
noticed and reproduced by the developers.
What happens is that most people try openstack-ansible, don't report bugs,
or report the bugs without the information neccesary
to reproduce them, and abandon the whole idea.

Try to search
https://bugs.launchpad.net/openstack-ansible/+bugs?field.searchtext=galera
for inspiration about what to do.
Currently the galera setup in openstack-ansible, especially on centos7
seems to be undergoing some critical changes.
Enter the galera container:
lxc-attach -n aio1_galera_container-4f488f6a
look around it, check whether mysqld is running etc., try to identify which
ansible tasks failed and run them manually inside of the container.

Marcin


On Sun, Feb 4, 2018 at 3:41 AM, Satish Patel <satish.txt at gmail.com> wrote:

> I have noticed in output "aio1_galera_container" is failed, how do i
> fixed this kind of issue?
>
>
>
> PLAY RECAP ************************************************************
> ************************************************************
> **************************************************
> aio1                       : ok=41   changed=4    unreachable=0    failed=0
> aio1_cinder_api_container-2af4dd01 : ok=0    changed=0
> unreachable=0    failed=0
> aio1_cinder_scheduler_container-454db1fb : ok=0    changed=0
> unreachable=0    failed=0
> aio1_designate_container-f7ea3f73 : ok=0    changed=0    unreachable=0
>    failed=0
> aio1_galera_container-4f488f6a : ok=32   changed=3    unreachable=0
> failed=1
>
> On Sat, Feb 3, 2018 at 9:26 PM, Satish Patel <satish.txt at gmail.com> wrote:
> > I have re-install centos7 and give it a try and got this error
> >
> > DEBUG MESSAGE RECAP ******************************
> ******************************
> > DEBUG: [Load local packages] ******************************
> *********************
> > All items completed
> >
> > Saturday 03 February 2018  21:04:07 -0500 (0:00:04.175)
>  0:16:17.204 *****
> > ============================================================
> ===================
> > repo_build : Create OpenStack-Ansible requirement wheels --------------
> 268.16s
> > repo_build : Wait for the venvs builds to complete --------------------
> 110.30s
> > repo_build : Install packages ------------------------------------------
> 68.26s
> > repo_build : Clone git repositories asynchronously ---------------------
> 59.85s
> > pip_install : Install distro packages ----------------------------------
> 36.72s
> > galera_client : Install galera distro packages -------------------------
> 33.21s
> > haproxy_server : Create haproxy service config files -------------------
> 30.81s
> > repo_build : Execute the venv build scripts asynchonously --------------
> 29.69s
> > pip_install : Install distro packages ----------------------------------
> 23.56s
> > repo_server : Install repo server packages -----------------------------
> 20.11s
> > memcached_server : Install distro packages -----------------------------
> 16.35s
> > repo_build : Create venv build options files ---------------------------
> 14.57s
> > haproxy_server : Install HAProxy Packages -------------------------------
> 8.35s
> > rsyslog_client : Install rsyslog packages -------------------------------
> 8.33s
> > rsyslog_client : Install rsyslog packages -------------------------------
> 7.64s
> > rsyslog_client : Install rsyslog packages -------------------------------
> 7.42s
> > repo_build : Wait for git clones to complete
> ---------------------------- 7.25s
> > repo_server : Install repo caching server packages
> ---------------------- 4.76s
> > galera_server : Check that WSREP is ready -------------------------------
> 4.18s
> > repo_server : Git service data folder setup
> ----------------------------- 4.04s
> > ++ exit_fail 341 0
> > ++ set +x
> > ++ info_block 'Error Info - 341' 0
> > ++ echo ------------------------------------------------------------
> ----------
> > ----------------------------------------------------------------------
> > ++ print_info 'Error Info - 341' 0
> > ++ PROC_NAME='- [ Error Info - 341 0 ] -'
> > ++ printf '\n%s%s\n' '- [ Error Info - 341 0 ] -'
> > --------------------------------------------
> >
> > - [ Error Info - 341 0 ] ---------------------------------------------
> > ++ echo ------------------------------------------------------------
> ----------
> > ----------------------------------------------------------------------
> > ++ exit_state 1
> > ++ set +x
> > ----------------------------------------------------------------------
> >
> > - [ Run Time = 2030 seconds || 33 minutes ] --------------------------
> > ----------------------------------------------------------------------
> > ----------------------------------------------------------------------
> >
> > - [ Status: Failure ] ------------------------------------------------
> > ----------------------------------------------------------------------
> >
> >
> >
> >
> > I don't know why it failed
> >
> > but i tried following:
> >
> > [root at aio ~]# lxc-ls -f
> > NAME                                        STATE   AUTOSTART GROUPS
> >          IPV4                                           IPV6
> > aio1_cinder_api_container-2af4dd01          RUNNING 1         onboot,
> > openstack 10.255.255.62, 172.29.238.210, 172.29.244.152  -
> > aio1_cinder_scheduler_container-454db1fb    RUNNING 1         onboot,
> > openstack 10.255.255.117, 172.29.239.172                 -
> > aio1_designate_container-f7ea3f73           RUNNING 1         onboot,
> > openstack 10.255.255.235, 172.29.239.166                 -
> > aio1_galera_container-4f488f6a              RUNNING 1         onboot,
> > openstack 10.255.255.193, 172.29.236.69                  -
> > aio1_glance_container-f8caa9e6              RUNNING 1         onboot,
> > openstack 10.255.255.225, 172.29.239.52, 172.29.246.25   -
> > aio1_heat_api_container-8321a763            RUNNING 1         onboot,
> > openstack 10.255.255.104, 172.29.236.186                 -
> > aio1_heat_apis_container-3f70ad74           RUNNING 1         onboot,
> > openstack 10.255.255.166, 172.29.239.13                  -
> > aio1_heat_engine_container-a18e5a0a         RUNNING 1         onboot,
> > openstack 10.255.255.118, 172.29.238.7                   -
> > aio1_horizon_container-e493275c             RUNNING 1         onboot,
> > openstack 10.255.255.98, 172.29.237.43                   -
> > aio1_keystone_container-c0e23e14            RUNNING 1         onboot,
> > openstack 10.255.255.60, 172.29.237.165                  -
> > aio1_memcached_container-ef8fed4c           RUNNING 1         onboot,
> > openstack 10.255.255.214, 172.29.238.211                 -
> > aio1_neutron_agents_container-131e996e      RUNNING 1         onboot,
> > openstack 10.255.255.153, 172.29.237.246, 172.29.243.227 -
> > aio1_neutron_server_container-ccd69394      RUNNING 1         onboot,
> > openstack 10.255.255.27, 172.29.236.129                  -
> > aio1_nova_api_container-73274024            RUNNING 1         onboot,
> > openstack 10.255.255.42, 172.29.238.201                  -
> > aio1_nova_api_metadata_container-a1d32282   RUNNING 1         onboot,
> > openstack 10.255.255.218, 172.29.238.153                 -
> > aio1_nova_api_os_compute_container-52725940 RUNNING 1         onboot,
> > openstack 10.255.255.109, 172.29.236.126                 -
> > aio1_nova_api_placement_container-058e8031  RUNNING 1         onboot,
> > openstack 10.255.255.29, 172.29.236.157                  -
> > aio1_nova_conductor_container-9b6b208c      RUNNING 1         onboot,
> > openstack 10.255.255.18, 172.29.239.9                    -
> > aio1_nova_console_container-0fb8995c        RUNNING 1         onboot,
> > openstack 10.255.255.47, 172.29.237.129                  -
> > aio1_nova_scheduler_container-8f7a657a      RUNNING 1         onboot,
> > openstack 10.255.255.195, 172.29.238.113                 -
> > aio1_rabbit_mq_container-c3450d66           RUNNING 1         onboot,
> > openstack 10.255.255.111, 172.29.237.202                 -
> > aio1_repo_container-8e07fdef                RUNNING 1         onboot,
> > openstack 10.255.255.141, 172.29.239.79                  -
> > aio1_rsyslog_container-b198fbe5             RUNNING 1         onboot,
> > openstack 10.255.255.13, 172.29.236.195                  -
> > aio1_swift_proxy_container-1a3536e1         RUNNING 1         onboot,
> > openstack 10.255.255.108, 172.29.237.31, 172.29.244.248  -
> > aio1_utility_container-bd106f11             RUNNING 1         onboot,
> > openstack 10.255.255.54, 172.29.239.124                  -
> > [root at aio ~]# lxc-a
> > lxc-attach     lxc-autostart
> > [root at aio ~]# lxc-attach -n aio1_utility_container-bd106f11
> > [root at aio1-utility-container-bd106f11 ~]#
> > [root at aio1-utility-container-bd106f11 ~]# source /root/openrc
> > [root at aio1-utility-container-bd106f11 ~]# openstack
> > openstack                         openstack-host-hostfile-setup.sh
> > [root at aio1-utility-container-bd106f11 ~]# openstack
> > openstack                         openstack-host-hostfile-setup.sh
> > [root at aio1-utility-container-bd106f11 ~]# openstack user list
> > Failed to discover available identity versions when contacting
> > http://172.29.236.100:5000/v3. Attempting to parse version from URL.
> > Service Unavailable (HTTP 503)
> > [root at aio1-utility-container-bd106f11 ~]#
> >
> >
> > not sure what is this error ?
> >
> >
> > On Sat, Feb 3, 2018 at 7:29 PM, Satish Patel <satish.txt at gmail.com>
> wrote:
> >> I have tired everything but didn't able to find solution :(  what i am
> >> doing wrong here, i am following this instruction and please let me
> >> know if i am wrong
> >>
> >> https://developer.rackspace.com/blog/life-without-devstack-openstack-
> development-with-osa/
> >>
> >> I have CentOS7, with 8 CPU and 16GB memory with 100GB disk size.
> >>
> >> Error: http://paste.openstack.org/show/660497/
> >>
> >>
> >> I have tired gate-check-commit.sh but same error :(
> >>
> >>
> >>
> >> On Sat, Feb 3, 2018 at 1:11 AM, Satish Patel <satish.txt at gmail.com>
> wrote:
> >>> I have started playing with openstack-ansible on CentOS7 and trying to
> >>> install All-in-one but got this error and not sure what cause that
> >>> error how do i troubleshoot it?
> >>>
> >>>
> >>> TASK [bootstrap-host : Remove an existing private/public ssh keys if
> >>> one is missing]
> >>> ************************************************************
> ************
> >>> skipping: [localhost] => (item=id_rsa)
> >>> skipping: [localhost] => (item=id_rsa.pub)
> >>>
> >>> TASK [bootstrap-host : Create ssh key pair for root]
> >>> ************************************************************
> ********************************************
> >>> ok: [localhost]
> >>>
> >>> TASK [bootstrap-host : Fetch the generated public ssh key]
> >>> ************************************************************
> **************************************
> >>> changed: [localhost]
> >>>
> >>> TASK [bootstrap-host : Ensure root's new public ssh key is in
> >>> authorized_keys]
> >>> ************************************************************
> ******************
> >>> ok: [localhost]
> >>>
> >>> TASK [bootstrap-host : Create the required deployment directories]
> >>> ************************************************************
> ******************************
> >>> changed: [localhost] => (item=/etc/openstack_deploy)
> >>> changed: [localhost] => (item=/etc/openstack_deploy/conf.d)
> >>> changed: [localhost] => (item=/etc/openstack_deploy/env.d)
> >>>
> >>> TASK [bootstrap-host : Deploy user conf.d configuration]
> >>> ************************************************************
> ****************************************
> >>> fatal: [localhost]: FAILED! => {"msg": "{{
> >>> confd_overrides[bootstrap_host_scenario] }}: 'dict object' has no
> >>> attribute u'aio'"}
> >>>
> >>> RUNNING HANDLER [sshd : Reload the SSH service]
> >>> ************************************************************
> *************************************************
> >>>         to retry, use: --limit @/opt/openstack-ansible/tests/
> bootstrap-aio.retry
> >>>
> >>> PLAY RECAP ******************************
> ************************************************************
> ********************************************************
> >>> localhost                  : ok=61   changed=36   unreachable=0
> failed=2
> >>>
> >>> [root at aio openstack-ansible]#
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20180204/0c59d826/attachment.html>


More information about the Openstack mailing list