Skip to content

Instantly share code, notes, and snippets.

View antonym's full-sized avatar
👨‍💻

Antony Messerli antonym

👨‍💻
View GitHub Profile
[root@centos7-xen-osa openstack-ansible]# rpm -qa | grep selinux
libselinux-python-2.5-6.el7.x86_64
libselinux-utils-2.5-6.el7.x86_64
libselinux-devel-2.5-6.el7.x86_64
selinux-policy-3.13.1-102.el7_3.13.noarch
libselinux-2.5-6.el7.x86_64
selinux-policy-devel-3.13.1-102.el7_3.13.noarch
TASK [haproxy_server : Prevent SELinux from preventing haproxy from binding to arbitrary ports] ***
task path: /etc/ansible/roles/haproxy_server/tasks/haproxy_service_config.yml:31
Friday 24 February 2017 05:38:09 +0000 (0:00:36.951) 0:01:00.974 *******
container_name: "aio1"
physical_hostname: "aio1"
Using module file /opt/ansible-runtime/lib/python2.7/site-packages/ansible/modules/core/system/seboolean.py
container_name: "aio1"
physical_hostname: "aio1"
<172.29.236.100> ESTABLISH SSH CONNECTION FOR USER: root
<172.29.236.100> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=64 -o ServerAliveCountMax=1024 -o Compression=no -o TCPKeepAlive=yes -o VerifyHostKeyDNS=no -o ForwardX11=no -o ForwardAge
},
"rpc-openstack_swift_proxy_container-7ddbb05b": {
"ansible_host": "172.29.239.41",
"ansible_ssh_host": "172.29.239.41",
"component": "swift_proxy",
"container_address": "172.29.239.41",
"container_name": "rpc-openstack_swift_proxy_container-7ddbb05b",
"container_networks": {
"container_address": {
"address": "172.29.239.41",
TASK [rpc_maas : set container names] ******************************************
task path: /opt/rpc-openstack/rpcd/playbooks/roles/rpc_maas/tasks/container-storage-checks.yml:22
<rpc-openstack_nova_conductor_container-97072705> Task "set container names" has been omitted from the job because the conditional "[u'_container_names.rc == 0']" was evaluated as "False"
<rpc-openstack_horizon_container-d8c01792> Task "set container names" has been omitted from the job because the conditional "[u'_container_names.rc == 0']" was evaluated as "False"
<rpc-openstack_utility_container-ce4ed509> Task "set container names" has been omitted from the job because the conditional "[u'_container_names.rc == 0']" was evaluated as "False"
container_name: "rpc-openstack"
physical_hostname: "rpc-openstack"
<rpc-openstack_keystone_container-2e97b8a3> Task "set container names" has been omitted from the job because the conditional "[u'_container_names.rc == 0']" was evaluated as "False"
<rpc-openstack_cinder_scheduler_container-c5a9
root@rpc-openstack:/etc/rackspace-monitoring-agent.conf.d# cat container_storage_check--rpc-openstack.yaml
type : agent.plugin
label : "container_storage_check--rpc-openstack"
period : "60"
timeout : "30"
disabled : "false"
details :
file : run_plugin_in_venv.sh
args : ["/usr/lib/rackspace-monitoring-agent/plugins/container_storage_check.py", "172.29.236.100"]
alarms :
root@rpc-openstack:~# python
Python 2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> import psutil
>>> pid = 60712
>>> p = psutil.Process(pid)
>>> print p
psutil.Process(pid=60712, name='swift-proxy-ser')
fatal: [aio1_swift_proxy_container-203c64da]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'swift_accesscheck_password' is undefined\n\nThe error appears to have been in '/root/rpc-openstack-master/rpcd/playbooks/roles/rpc_maas/tasks/swift_access_check.yml': line 17, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# Add a swift user for file checking\n- name: Create a keystone user for swift filecheck\n ^ here\n"}
fatal: [aio1_rabbit_mq_container-286ff53f]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'maas_rabbitmq_password' is undefined\n\nThe error appears to have been in '/root/rpc-openstack-master/rpcd/playbooks/roles/rpc_maas/tasks/rabbitmq_user.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact synta
ERROR! conflicting action statements
The error appears to have been in '/root/rpc-openstack/rpcd/playbooks/roles/rpc_maas/tasks/cdm.yml': line 44, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- include: ensure_filesystem_checks.yml
^ here
http://10.22.226.230:8080/v1/hosts/1
{
"active": true,
"cell_id": 1,
"created_at": "2017-02-03T19:29:36.000000",
"device_type": "server",
"id": 1,
"ip_address": "10.127.5.110",
"name": "osa-deploy",
"note": null,
PLAY [chroot] ******************************************************************
TASK [setup] *******************************************************************
<chroot> THIS IS A LOCAL CHROOT DIR
<chroot> EXEC ['/sbin/chroot', u'chroot', '/bin/sh', '-c', u'/bin/sh -c \'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1465124409.77-30859986668600 `" && echo ansible-tmp-1465124409.77-30859986668600="` echo $HOME/.ansible/tmp/ansible-tmp-1465124409.77-30859986668600 `" ) && sleep 0\'']
<chroot> PUT /tmp/tmpyER_Vl TO /var/lib/jenkins/.ansible/tmp/ansible-tmp-1465124409.77-30859986668600/setup
<chroot> EXEC ['/sbin/chroot', u'chroot', '/bin/sh', '-c', u'dd of=/var/lib/jenkins/.ansible/tmp/ansible-tmp-1465124409.77-30859986668600/setup bs=65536']
<chroot> EXEC ['/sbin/chroot', u'chroot', '/bin/sh', '-c', u'/bin/sh -c \'sudo -H -S -n -u root /bin/sh -c \'"\'"\'echo BECOME-SUCCESS-ujrakhhoggwmpcmtimsimrvkhzljbosm; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /var/lib/jen