Skip to content

Instantly share code, notes, and snippets.

@palmertime
palmertime / debug output
Created March 24, 2017 16:14
packer vsphere upload debug
==> vmware-iso: Running post-processor: vsphere
2017/03/22 11:22:42 ui: vmware-iso (vsphere): Uploading packer-ubuntu-16.04-amd64-vmware/packer-ubuntu-16.04-amd64.vmx to vSphere
2017/03/22 11:22:42 packer: 2017/03/22 11:22:42 Starting ovftool with parameters: --acceptAllEulas --name=ubuntu16.04-base --datastore=Datastore --noSSLVerify=true --diskMode=thick packer-ubuntu-16.04-amd64-vmware/packer-ubuntu-16.04-amd64.vmx vi://administrator:<password>@vcenter-ilab.example.com/ilab/host/cluster
vmware-iso (vsphere): Uploading packer-ubuntu-16.04-amd64-vmware/packer-ubuntu-16.04-amd64.vmx to vSphere
2017/03/22 11:22:45 Deleting original artifact for build 'vmware-iso'
2017/03/22 11:22:45 ui error: Build 'vmware-iso' errored: 1 error(s) occurred:
* Post-processor failed: Failed: exit status 1
2017/03/22 11:22:45 Builds completed. Waiting on interrupt barrier...
@palmertime
palmertime / deploy.sh
Last active January 9, 2017 18:13
deploy script
#!/bin/bash
openstack overcloud deploy --templates \
-e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \
-e ~/tripleo-test/network-environment.yaml \
-e ~/tripleo-test/storage-environment.yaml \
-e ~/tripleo-test/ceph_wipe_env.yaml \
-t 150 \
--control-scale 1 \
--compute-scale 1 \
--ceph-storage-scale 1 \
@palmertime
palmertime / ceph-disk list
Last active January 9, 2017 18:07
Ceph config
/dev/sdb :
/dev/sdb1 ceph journal, for /dev/sdc1
/dev/sdb3 ceph journal, for /dev/sdd1
/dev/sdb2 ceph journal, for /dev/sde1
/dev/sdb4 ceph journal, for /dev/sdf1
/dev/sdc :
/dev/sdc1 ceph data, active, cluster ceph, osd.0, journal /dev/sdb1
/dev/sdd :
/dev/sdd1 ceph data, active, cluster ceph, osd.2, journal /dev/sdb3
/dev/sde :
@palmertime
palmertime / Manual IPMItool command
Last active January 4, 2017 22:47
Ironic timeout Error
TEST #1
time ipmitool -I lanplus -H 192.168.1.70 -L ADMINISTRATOR -U root -P changeme -R 3 -N 5 power on && time ipmitool -I lanplus -H 192.168.1.70 -L ADMINISTRATOR -U root -P changeme -R 3 -N 5 power status && time ipmitool -I lanplus -H 192.168.1.70 -L ADMINISTRATOR -U root -P changeme -R 3 -N 5 power off && time ipmitool -I lanplus -H 192.168.1.70 -L ADMINISTRATOR -U root -P changeme -R 3 -N 5 power status
Chassis Power Control: Up/On
real 0m0.156s
user 0m0.000s
sys 0m0.005s
Chassis Power is on
real 0m10.370s
2016-12-29 16:47:42.871 24004 DEBUG ironic.common.utils [-] Command stderr is: "" execute /usr/lib/python2.7/site-packages/ironic/common/utils.py:76
2016-12-29 16:47:42.872 24004 ERROR ironic.drivers.modules.ipmitool [-] IPMI power on timed out after 4 retries on node 28e5b023-0936-4246-911c-45502b6ce604.
2016-12-29 16:47:42.886 24004 ERROR ironic.drivers.modules.agent_base_vendor [req-b579fc4e-f824-4a7c-bbc0-f58ae8d0b81d - - - - -] Error rebooting node 28e5b023-0936-4246-911c-45502b6ce604 after deploy. Error: Failed to set node power state to power on.
2016-12-29 16:47:42.887 24004 DEBUG ironic.drivers.modules.agent_client [req-b579fc4e-f824-4a7c-bbc0-f58ae8d0b81d - - - - -] Executing agent command log.collect_system_logs for node 28e5b023-0936-4246-911c-45502b6ce604 _command /usr/lib/python2.7/site-packages/ironic/drivers/modules/agent_client.py:62
2016-12-29 16:47:48.902 24004 ERROR ironic.drivers.modules.agent_client [req-b579fc4e-f824-4a7c-bbc0-f58ae8d0b81d - - - - -] Error invoking agent command log.col
@palmertime
palmertime / quickstart failure
Created December 27, 2016 19:07
TASK [overcloud-prep-images : Prepare the overcloud images for deploy] *********
TASK [overcloud-prep-images : Prepare the overcloud images for deploy] *********
task path: /home/user/.quickstart/usr/local/share/ansible/roles/overcloud-prep-images/tasks/overcloud-prep-images.yml:1
Thursday 22 December 2016 18:35:05 -0800 (0:00:05.153) 0:35:19.785 *****
Using module file /home/user/.quickstart/lib/python2.7/site-packages/ansible/modules/core/commands/command.py
<undercloud> ESTABLISH SSH CONNECTION FOR USER: stack
<undercloud> SSH: EXEC ssh -vvv -F /home/user/.quickstart/ssh.config.ansible -o StrictHostKeyChecking=no -o 'IdentityFile="/home/user/.quickstart/id_rsa_undercloud"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=stack -o ConnectTimeout=10 -F /home/user/.quickstart/ssh.config.ansible undercloud '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1482460505.33-54972086811312 `" && echo ansible-tmp-1482460505.33-54972086811312="` echo $HOME/.ansibl
@palmertime
palmertime / conductor errors
Last active December 21, 2016 21:22
conductor errors
2016-12-21 19:39:48.580 15202 ERROR ironic.drivers.modules.agent_base_vendor [req-5143660a-9fd7-4a48-8c27-7b15d1516509 - - - - -] Asynchronous exception for node 25aeac07-6a5f-4785-9528-9dda845d0ac2: Node failed to get image for deploy. Exception: Error rebooting node 25aeac07-6a5f-4785-9528-9dda845d0ac2 after deploy. Error: Failed to set node power state to power on.
2016-12-21 19:39:48.580 15202 ERROR ironic.drivers.modules.agent_base_vendor Traceback (most recent call last):
2016-12-21 19:39:48.580 15202 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/site-packages/ironic/drivers/modules/agent_base_vendor.py", line 436, in heartbeat
2016-12-21 19:39:48.580 15202 ERROR ironic.drivers.modules.agent_base_vendor self.continue_deploy(task, **kwargs)
2016-12-21 19:39:48.580 15202 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/site-packages/ironic/conductor/task_manager.py", line 141, in wrapper
2016-12-21 19:39:48.580 15202 ERROR ironic.drivers.modules.age
@palmertime
palmertime / results
Created November 28, 2016 23:59
yaml formatted vars and expected results
new_dict:
- name: foo
a: 2
b: 2
c: 3
- name: bar
a: 1
b: 2
@palmertime
palmertime / erb_template
Created September 20, 2016 16:45
YAML to YAML config file
<% @config_yml.each do |key,hash| -%>
<%= key %>: <%= hash %>
<% end -%>
@palmertime
palmertime / Error_log
Created September 19, 2016 18:20
beaker pp parameter content
Failures:
1) example class: should run successfully
Failure/Error:
apply_manifest(pp, :catch_failures => true) do |r|
expect(r.stderr).not_to match(/error/i)
Beaker::Host::CommandFailure:
Host 'xxxxxxxxxxxxxxx' exited with 1 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.xxxxxx
Last 10 lines of output were: