Skip to content

Instantly share code, notes, and snippets.

View obourdon's full-sized avatar

Olivier Bourdon obourdon

View GitHub Profile
@obourdon
obourdon / awsvpc.log
Created June 14, 2021 07:11
Terraform AWS provider aws_vpc test suite panics
=== RUN TestAccAWSVpc_coreMismatchedDiffs
=== PAUSE TestAccAWSVpc_coreMismatchedDiffs
=== RUN TestAccAWSVpc_basic
=== PAUSE TestAccAWSVpc_basic
=== RUN TestAccAWSVpc_disappears
=== PAUSE TestAccAWSVpc_disappears
=== RUN TestAccAWSVpc_defaultTags_providerOnly
=== PAUSE TestAccAWSVpc_defaultTags_providerOnly
=== RUN TestAccAWSVpc_defaultTags_updateToProviderOnly
=== PAUSE TestAccAWSVpc_defaultTags_updateToProviderOnly
@obourdon
obourdon / additions.ldif
Last active March 28, 2019 16:38
Full search output
# ldapadd -x -H ldap://localhost -D "cn=admin,dc=example,dc=org" -w admin -f additions.ldif
dn: ou=Users,dc=example,dc=org
objectClass: top
objectClass: organizationalUnit
ou: Users
dn: ou=Groups,dc=example,dc=org
objectClass: top
objectClass: organizationalUnit
ou: Groups
vagrant@master:~$ pip freeze
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 13, in <module>
from pip.exceptions import InstallationError, CommandError, PipError
File "/usr/lib/python2.7/dist-packages/pip/exceptions.py", line 6, in <module>
from pip._vendor.six import iteritems
File "/usr/lib/python2.7/dist-packages/pip/_vendor/__init__.py", line 64, in <module>
vendored("cachecontrol")
@obourdon
obourdon / gist:104ca78baab77fb5ac753ec3e0a9f105
Last active August 14, 2018 12:33
Bifrost deploy issue on denial with venv and keystone + python-openssl system package installed
I have a Ubuntu Xenial system where I install bifrost from master repo using venv + keystone.
With a minimal list of packages within this xenial system, everything goes fine and I can rerun the bifrost ansible deployment playbook again and again without any issue
However if I install only ONE additional package in the EXACT SAME xenial image: python-openssl I run under the following errors:
TASK [bifrost-ironic-install : Ensure service project is present] ************************************************************************************************************************************************
task path: /home/vagrant/bifrost/playbooks/roles/bifrost-ironic-install/tasks/keystone_setup.yml:42
TASK [bifrost-ironic-install : Create service user for ironic-inspector] *****************************************************************************************************************************************
task path: /home/vagrant/bifrost/playbooks/roles/bifrost-ironic-install/tasks/keystone_setup_inspector.ym
- name: "Check command"
command: |
my-cmd
my-params
...
register: test_command
ASK [bifrost-keystone-install : Install python-openstackclient package from pip] *****************************************************************************************************************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "cmd": "/usr/bin/pip2 install -c /opt/stack/requirements/upper-constraints.txt python-openstackclient", "failed": true, "msg": "\n:stderr: Traceback (most recent call last):\n File \"/usr/bin/pip2\", line 9, in <module>\n load_entry_point('pip==8.1.1', 'console_scripts', 'pip2')()\n File \"/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py\", line 542, in load_entry_point\n return get_distribution(dist).load_entry_point(group, name)\n File \"/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py\", line 2569, in load_entry_point\n return ep.load()\n File \"/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py\", line 2229
@obourdon
obourdon / gist:ec35ddc455e5f621a81459fd39c7ee16
Created June 18, 2018 11:16
DIB error generating CentOS image on Ubuntu
git clone https://github.com/opennext-io/onpc-provisioning && cd onpc-provisioning
# Use script https://github.com/opennext-io/onpc-provisioning/blob/master/scripts/create_infra_master_vm.sh
MASTER_VM_DISK=20480 PRESEED_URL=http://www.olivierbourdon.com/preseed_master-xenial-dib.cfg VIRT=vbox PROXY=http://172.20.20.56:8080/ ./scripts/create_infra_master_vm.sh
# Login into VM and run the following as vagrant user (passwd: vagrant)
cd diskimage-builder
sudo pip install -r requirements.txt
sudo python setup.py install
disk-image-create -t qcow2 --image-size 60 -o /tmp/test.qcow2 centos-minimal dhcp-all-interfaces cloud-init-nocloud devuser yum epel baremetal
cd /httpboot
mkdir X
cd X
cp ../ipa.initramfs ../ipa.initramfs.ORIG
cat ../ipa.initramfs | gzip -d -c | cpio -idmu
find . | cpio -oc | gzip -9 > ../ipa.initramfs
{
"changed": false,
"dump": "0",
"failed": false,
"fstab": "/etc/fstab",
"name": ".*",
"opts": "defaults",
"passno": "0",
"status": {
"/": {
# Because /tmp is mounted with option noexec
TMPDIR=/var/tmp scripts/bootstrap-ansible.sh 2>&1 | tee 1.log
export BOOTSTRAP_OPTS="bootstrap_host_data_disk_device=vdb"
scripts/bootstrap-aio.sh 2>&1 | tee 2.log
cd /opt/openstack-ansible/playbooks
openstack-ansible setup-hosts.yml -vvv 2>&1 | tee ../3.log
openstack-ansible setup-infrastructure.yml -vvv 2>&1 | tee ../4.log