Ask Your Question
0

Ways to debug deploy image?

asked 2016-09-27 14:52:05 -0500

erik-stephens gravatar image

I'm able to boot a bare metal instance to its deploy image (the recommended coreos one). There is a small window where I can ssh to the instance. It's failing to attach iscsi volume:

ironic.drivers.modules.agent_base_vendor Command: sudo ironic-rootwrap /etc/ironic/rootwrap.conf dd if=/dev/zero of=/dev/disk/by-path/ip-10.42.42.12:3260-iscsi-iqn.2008-10.org.openstack:f677f1de-91f4-4451-8663-d1f53ebf31bd-lun-1 bs=512 count=36

It shuts down shortly after. Short of building a custom deploy image, is there something I can do to keep the machine from shutting down so I can trouble-shoot? Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-01 12:31:58 -0500

I'm guessing on the versions of things you're using based on that output, but - generally -the easiest way to debug anything in IPA is to add ipa-debug=1 to the kernel command line. To do this:

Append ipa-debug=1 to the pxe_append_params setting in the ironic.conf file Restart the ironic-conductor with the command service ironic-conductor restart

Under older versions (ie: when using dracut), you could add rd.shell as a boot parameter to force the instance to drop to a shell rather than rebooting when things go south.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-09-27 14:52:05 -0500

Seen: 94 times

Last updated: Oct 01 '16