Merge "Improve logging for VMs to identify IPA issues"

This commit is contained in:
Jenkins 2015-09-08 22:15:24 +00:00 committed by Gerrit Code Review
commit 0c7b91bcba
2 changed files with 15 additions and 8 deletions

View File

@ -38,9 +38,9 @@
- name: "If not testing, disable debug logging" - name: "If not testing, disable debug logging"
lineinfile: dest=/etc/ironic/ironic.conf insertafter="[DEFAULT]" regexp='^(.*)debug=(.*)$' line="debug=false" lineinfile: dest=/etc/ironic/ironic.conf insertafter="[DEFAULT]" regexp='^(.*)debug=(.*)$' line="debug=false"
when: testing | bool == false when: testing | bool == false
- name: "For agent, disable coreos.configdrive" - name: "For agent, Log to screen"
lineinfile: dest=/etc/ironic/ironic.conf insertafter="[agent]" regexp='^(.*)agent_pxe_append_params=(.*)$' line="agent_pxe_append_params=coreos.configdrive=0" lineinfile: dest=/etc/ironic/ironic.conf insertafter="[agent]" regexp='^(.*)agent_pxe_append_params=(.*)$' line="agent_pxe_append_params=systemd.journald.forward_to_console=yes"
- name: "For agent, disable coreos.configdrive" - name: "For agent, place agent pxe template"
lineinfile: dest=/etc/ironic/ironic.conf insertafter="[agent]" regexp='^(.*)agent_pxe_config_template=(.*)$' line="agent_pxe_config_template=/etc/ironic/agent_config.template" lineinfile: dest=/etc/ironic/ironic.conf insertafter="[agent]" regexp='^(.*)agent_pxe_config_template=(.*)$' line="agent_pxe_config_template=/etc/ironic/agent_config.template"
- name: "Configure conductor api url" - name: "Configure conductor api url"
lineinfile: dest=/etc/ironic/ironic.conf insertafter="[conductor]" regexp='^(.*)api_url=(.*)$' line="api_url=http://{{ hostvars[inventory_hostname]['ansible_' + network_interface]['ipv4']['address'] }}:6385/" lineinfile: dest=/etc/ironic/ironic.conf insertafter="[conductor]" regexp='^(.*)api_url=(.*)$' line="api_url=http://{{ hostvars[inventory_hostname]['ansible_' + network_interface]['ipv4']['address'] }}:6385/"

View File

@ -84,14 +84,21 @@ deployment process.
Obtaining IPA logs via the console Obtaining IPA logs via the console
================================== ==================================
1) By default, in testing mode Bifrost sets the agent journal to be logged 1) By default, Bifrost sets the agent journal to be logged to the system
to the console, hover testing mode is geared more towards local Virtual console. Due to the variation in hardware, you may need to tune the
machine testing. In order to get the IPA agent to at least detail parameters passed to the deployment ramdisk. This can be done, as shown
information to the screen, you will want to set the following setting below in ironic.conf::
in ironic.conf::
agent_pxe_append_params=nofb nomodeset vga=normal console=ttyS0 systemd.journald.forward_to_console=yes agent_pxe_append_params=nofb nomodeset vga=normal console=ttyS0 systemd.journald.forward_to_console=yes
Parameters will vary by your hardware type and configuration, however the
systemd.journald.forward_to_console=yes setting is a default, and will only
work for systemd based IPA images such as the default CoreOS image.
The example above, effectively disables all attempts by the Kernel to set
the video mode, defines the console as ttyS0 or the first serial port, and
instructs systemd to direct logs to the console.
2) Once set, restart the ironic-conductor service, e.g. 2) Once set, restart the ironic-conductor service, e.g.
`service ironic-conductor restart` and attempt to redeploy the node. `service ironic-conductor restart` and attempt to redeploy the node.
You will want to view the system console occurring. If possible, you You will want to view the system console occurring. If possible, you