Re: [Openstack] openstack-ansible question

2018-05-20 Thread Marcin Dulak
Hi,

I had a similar question in the past, asked at
https://bugs.launchpad.net/openstack-ansible/+bug/1744681, marked as
invalid.

Cheers,

Marcin

On Sun, May 20, 2018 at 3:15 PM, Satish Patel  wrote:

> I am building openstack-ansible and have question related
> openstack_user_config.yml file
>
> internal_lb_vip_address: 172.29.236.9
>
> is above IP address we need to setup manually on haproxy node or
> ansible does that?
>
> ___
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
>
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] openstack-ansible aio error

2018-02-05 Thread Marcin Dulak
You need to provide a hash at
https://bugs.launchpad.net/openstack-ansible/+bug/1747313
Has by chance your host selinux disabled?

Marcin

On Mon, Feb 5, 2018 at 9:34 AM, Marcin Dulak <marcin.du...@gmail.com> wrote:

> Please report a proper bug at https://bugs.launchpad.net/
> openstack-ansible/ - with the git hash you are using, and all steps to
> reproduce
>
> Marcin
>
> On Mon, Feb 5, 2018 at 5:53 AM, Satish Patel <satish@gmail.com> wrote:
>
>> Now i got this error when i am running following command, on my CentOS
>> i do have "libselinux-python" installed but still ansible saying it is
>> not installed. i have submit bug but lets see
>>
>> $openstack-ansible setup-hosts.yml
>>
>>
>> TASK [openstack_hosts : include]
>> 
>> 
>> 
>> Sunday 04 February 2018  23:49:29 -0500 (0:00:00.481)   0:00:31.439
>> ***
>> included: /etc/ansible/roles/openstack_hosts/tasks/openstack_update_ho
>> sts_file.yml
>> for aio1
>>
>> TASK [openstack_hosts : Drop hosts file entries script locally]
>> 
>> *
>> Sunday 04 February 2018  23:49:30 -0500 (0:00:00.074)   0:00:31.513
>> ***
>> fatal: [aio1 -> localhost]: FAILED! => {"changed": true, "failed":
>> true, "msg": "Aborting, target uses selinux but python bindings
>> (libselinux-python) aren't installed!"}
>>
>> NO MORE HOSTS LEFT
>> 
>> 
>> **
>>
>> NO MORE HOSTS LEFT
>> 
>> 
>> **
>>
>> PLAY RECAP 
>> 
>> **
>> aio1   : ok=16   changed=7unreachable=0
>> failed=1
>>
>> Sunday 04 February 2018  23:49:41 -0500 (0:00:11.051)   0:00:42.565
>> ***
>> 
>> ===
>> openstack_hosts : Drop hosts file entries script locally ---
>> 11.05s
>> openstack_hosts : Install host packages 
>> 11.03s
>> openstack_hosts : Install EPEL, and yum priorities plugin ---
>> 6.41s
>> Install Python2 -
>> 5.87s
>> openstack_hosts : Download RDO repository RPM ---
>> 2.60s
>> openstack_hosts : Enable and set repo priorities 
>> 1.83s
>> openstack_hosts : Install RDO repository and key 
>> 0.80s
>> openstack_hosts : Disable requiretty for root sudo on centos 
>> 0.69s
>> Gathering Facts -
>> 0.59s
>> openstack_hosts : Enable sysstat cron ---
>> 0.48s
>> openstack_hosts : Allow the usage of local facts 
>> 0.27s
>> openstack_hosts : Disable yum fastestmirror plugin --
>> 0.26s
>> openstack_hosts : Add global_environment_variables to environment file
>> --- 0.24s
>> Check for a supported Operating System --
>> 0.07s
>> openstack_hosts : include ---
>> 0.07s
>> openstack_hosts : include ---
>> 0.07s
>> openstack_hosts : Gather variables for each operating system 
>> 0.05s
>> apt_package_pinning : Add apt pin preferences ---
>> 0.03s
>> openstack_hosts : Remove conflicting distro packages 
>> 0.02s
>> openstack_hosts : Enable sysstat config -
>> 0.01s
>> [root@aio playbooks]# yum install libselinux-python
>> Loaded plugins: priorities
>> 243 packages excluded due to repository priority protections
>> Package libselinux-python-2.5-11.el7.x86_64 already installed and latest
>> version
>> No

Re: [Openstack] openstack-ansible aio error

2018-02-05 Thread Marcin Dulak
m lucky i will
> >> continue and plan to deploy on production but if it will take too much
> >> my time to debug then i would go with tripleO which seems less
> >> complicated so far.
> >>
> >> As you said openstack-ansible has good ubuntu community and we are
> >> 100% CentOS shop and i want something which we are comfortable and
> >> supported by deployment tool.
> >>
> >> My first production cluster is 20 node but it may slowly grow if all
> goes well.
> >>
> >>> On Sun, Feb 4, 2018 at 2:05 PM,  <r...@italy1.com> wrote:
> >>> Tripleo = ha
> >>> Packstack = no ha
> >>>
> >>>> Il giorno 04 feb 2018, alle ore 11:00, Satish Patel <
> satish@gmail.com> ha scritto:
> >>>>
> >>>> Just wondering why did you say we can't do HA with TripleO?  I thought
> >>>> it does support HA. am i missing something here?
> >>>>
> >>>>> On Sun, Feb 4, 2018 at 11:21 AM,  <r...@italy1.com> wrote:
> >>>>> What are you looking for ha? Etc. Tripleo is the way to go for that
> packstack if you want simple deployment but no ha of course.
> >>>>>
> >>>>>> Il giorno 04 feb 2018, alle ore 07:53, Satish Patel <
> satish@gmail.com> ha scritto:
> >>>>>>
> >>>>>> Hi Marcin,
> >>>>>>
> >>>>>> Thank you, i will try other link, also i am using CentOS7 but anyway
> >>>>>> now question is does openstack-ansible ready for production
> deployment
> >>>>>> despite galera issues and bug?
> >>>>>>
> >>>>>> If i want to go on production should i wait or find other tools to
> >>>>>> deploy on production?
> >>>>>>
> >>>>>>> On Sun, Feb 4, 2018 at 5:29 AM, Marcin Dulak <
> marcin.du...@gmail.com> wrote:
> >>>>>>> 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@gmail.com> wrote:
> >>>>>>>>
> >>>>>>>> I have noticed in output "aio1_galera_contai

Re: [Openstack] openstack-ansible aio error

2018-02-04 Thread Marcin Dulak
Since you already invested some time, repeat your installation from scratch
and submit the bug if necessary, maybe someone will look at it.
After that check the other deployment tools, like the just mentioned
TripleO.
I'm not sure whether openstack-ansible (or any other tool) is production
ready - just look at the types of bugs those projects are currently dealing
with,
but you may be more lucky with an Ubuntu deployment.

Marcin

On Sun, Feb 4, 2018 at 4:53 PM, Satish Patel <satish@gmail.com> wrote:

> Hi Marcin,
>
> Thank you, i will try other link, also i am using CentOS7 but anyway
> now question is does openstack-ansible ready for production deployment
> despite galera issues and bug?
>
> If i want to go on production should i wait or find other tools to
> deploy on production?
>
> On Sun, Feb 4, 2018 at 5:29 AM, Marcin Dulak <marcin.du...@gmail.com>
> wrote:
> > 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@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=4unreachable=0
> >> failed=0
> >> aio1_cinder_api_container-2af4dd01 : ok=0changed=0
> >> unreachable=0failed=0
> >> aio1_cinder_scheduler_container-454db1fb : ok=0changed=0
> >> unreachable=0failed=0
> >> aio1_designate_container-f7ea3f73 : ok=0changed=0unreachable=0
> >>failed=0
> >> aio1_galera_container-4f488f6a : ok=32   changed=3unreachable=0
> >> failed=1
> >>
> >> On Sat, Feb 3, 2018 at 9:26 PM, Satish Patel <satish@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
> -
> >>

Re: [Openstack] openstack-ansible aio error

2018-02-04 Thread Marcin Dulak
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  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=4unreachable=0failed=0
> aio1_cinder_api_container-2af4dd01 : ok=0changed=0
> unreachable=0failed=0
> aio1_cinder_scheduler_container-454db1fb : ok=0changed=0
> unreachable=0failed=0
> aio1_designate_container-f7ea3f73 : ok=0changed=0unreachable=0
>failed=0
> aio1_galera_container-4f488f6a : ok=32   changed=3unreachable=0
> failed=1
>
> On Sat, Feb 3, 2018 at 9:26 PM, Satish Patel  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 

Re: [Openstack] Openstack manual setup

2018-01-30 Thread Marcin Dulak
On Tue, Jan 30, 2018 at 11:24 PM, Sashan Govender  wrote:

> Hi
>
> I setup an openstack system on my latpop using kvm and these instructions
> for Centos 7:
> https://docs.openstack.org/newton/install-guide-rdo/
>
> It's a long process (about a weeks worth of work if you're new to it and
> doing it full-time). Some issues I had were with the database sync commands
> (eg: su -s /bin/sh -c "glance-manage db_sync" glance) . For some reason my
> tables never populated until I'd run the command twice or restarted the
> service.
>

I would recommend using nested virtualization under Vagrant if you want to
script the whole tutorial because you will need to start from scratch
several times - there are probably several projects on github like that
https://github.com/marcindulak/install-guide-rdo-with-vagrant
Moreover I would directly focus on multi-server deployment.
There is no point in doing this process more than once, and people provided
links to various ways of automating the setup.

Marcin


>
> Remember to open ports in the firewall if using centos. It has a firewall
> enabled by default.
>
> I made an nfs mount on the host machine to store the glance images. That
> way I didn't need to allocated tons of space for the vm's hard disk.
>
> Otherwise I think the instructions on that site referenced above are good
> and straightforward. It's just that the process is long and prone to user
> error.
>
>
> On Wed, Jan 31, 2018 at 2:16 AM Guru Desai  wrote:
>
>> Hello,
>>
>> I plan to setup openstack manually on single server ( preferably PIKE).
>> Somehow i am not able to find any documentation for the same. Could some
>> one help with any pointers.
>> All the documentation that i find refers to either packstack or devstack
>> which i dont want to use.
>> I would like to setup all the openstack services on single server, either
>> ubuntu or centOS.
>>
>> Any pointers would be very helpful..
>>
>> Thanks,
>> Guru
>> ___
>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
>> openstack
>> Post to : openstack@lists.openstack.org
>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
>> openstack
>>
>
> ___
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
>
>
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] [RDO PackStack] Running PackStack multiple times

2018-01-27 Thread Marcin Dulak
Yes - you can run packstack repeatedly until the installation is
successful, puppet is supposed to take care about the desired state.
If you experience the contrary - open a bug at
https://bugzilla.redhat.com/enter_bug.cgi?product=RDO

For the purpose of learning openstack it's better to use a VM for packstack
- give https://github.com/locationlabs/vagrant-packstack a try.

Marcin

On Fri, Jan 26, 2018 at 7:06 PM, Remo Mattei  wrote:

> What cluster? As far as I know there is no HA mode with PackStack.
>
> Remo
>
>
> On Jan 26, 2018, at 6:23 PM, fv@spots.school wrote:
>
> Hello!
>
> I am trying to deploy an OpenStack cluster using PackStack but I am
> encountering some errors. I am slowly working my way through them but I
> have a question:
>
> Is it alright to run the packstack script multiple times?
> And, if not is there a way to undo what packstack has done in order to try
> again?
>
> Thank you!
>
> FV
>
> ___
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
>
>
>
> ___
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
>
>
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


[Openstack] Help with openstack-ansible load balancers settings

2018-01-20 Thread Marcin Dulak
Hi,

I need help with the internal_lb_vip_address/external_lb_vip_addresses.
I've found several posts people asking for a clarification of the purpose
and settings of that load balancers.
One of the discussions pointed to
https://github.com/openstack/openstack-ansible/blob/a46a72aa7838a3d500e8e397038c6fbded21745c/etc/openstack_deploy/openstack_user_config.yml.example#L103-L118,
but that's unclear to me.
Does openstack-ansible (17.0.0.0b2 on CentOS7) take care of those load
balancers or do I need to configure them manually (if so how?)?

Taking
https://docs.openstack.org/project-deploy-guide/openstack-ansible/pike/app-config-prod.html
as an example I thought that internal_lb_vip_address of 172.29.236.9
corresponds to the deployment host, but when running
setup-infrastructure.yml I see haproxy are being configured on the infra
nodes (.11, .12, .13) and listen on 172.29.236.9:8181.

Since there is no service listening on 8181 on the deployment host
172.29.236.9 I'getting the behavior described in
https://ask.openstack.org/en/question/104307/openstack-ansible-pip-issues-while-installing-the-infrastructure/

Cheers,

Marcin
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack