Skip to content

Instantly share code, notes, and snippets.

View antonym's full-sized avatar
👨‍💻

Antony Messerli antonym

👨‍💻
View GitHub Profile
},
"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
@antonym
antonym / gist:a7f8ffb5105d0cdcd6020a1deae2a675
Last active November 20, 2017 01:55
/etc/network/interfaces for openstack-ansible blog
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# Physical interface 1
auto em1
iface em1 inet manual
@antonym
antonym / gist:f43a967fac0f1c2bcf00f976295cba0f
Created May 9, 2016 15:33
openstack_user_config.yml for openstack-ansible blog
---
# container networks, safe to leave these as defaults
cidr_networks:
container: 172.29.236.0/22
tunnel: 172.29.240.0/22
storage: 172.29.244.0/22
# IPs from your tunnel and container networks that you want to reserve for the hosts
used_ips:
- 172.29.236.1