Feature #350

Provide the ability to set the build option when editing multiple hosts

Added by Paul Kelly over 1 year ago. Updated about 1 year ago.

Status:Closed Start:07/12/2010
Priority:Normal Due date:
Assigned to:Paul Kelly % Done:

100%

Category:Web Interface
Target version:0.2
Backlog:Yes Difficulity:
Votes: 0

Description


Related issues

related to Foreman - Bug #623: Multiple build commit was incomplete Closed 01/27/2011

Associated revisions

Revision 1f927b16a5fe3d26049f0ffa360e6fe026147310
Added by Paul Kelly about 1 year ago

Fixes #350 - Add multiple build operation

History

Updated by Ohad Levy over 1 year ago

  • Category set to Web Interface
  • Assigned to set to Paul Kelly

environment is already possible, build?

Updated by Ohad Levy over 1 year ago

  • Target version set to 0.2
  • Backlog set to No

Updated by Ohad Levy over 1 year ago

  • Backlog changed from No to Yes

Updated by Ohad Levy about 1 year ago

  • Subject changed from Provide the ability to set the build option and the environment when editing multiple hosts to Provide the ability to set the build option when editing multiple hosts

Updated by Paul Kelly about 1 year ago

  • Status changed from New to Ready For Testing
  • Branch set to feature/350-multiple-builds

Updated by Paul Kelly about 1 year ago

Updated the branch to incorporate Ohad's request for setBuild

Updated by Paul Kelly about 1 year ago

  • % Done changed from 0 to 100

Updated by Ohad Levy about 1 year ago

  • Status changed from Ready For Testing to Assigned

@paul, I've found a couple of issues with this commit:

  1. missing view multiple_build.html.erb
  2. it does not take into account that the pxe config files are rewritten, which means you need to add the run the
    forward_request_url method as a before filter

(here is an example from my log file (after adding the view)

Processing HostsController#submit_multiple_build (for 10.35.1.213 at 2011-01-27 09:40:57) [POST]
  Parameters: {"commit"=>"Rebuild hosts upon their next network boot for selected hosts", "action"=>"submit_multiple_build", "authenticity_token"=>"BPWpAgJGNoEb3NhU5BfiHQSNz7Av5/H3vj8g2t/1dOw=", "controller"=>"hosts"}
Add the TFTP configuration for demo200.sat.lab.tlv.redhat.com
Failed to generate PXELinux template: Missing host to link to! Please provide :host parameter or set default_url_options[:host]
Fetching required TFTP boot files for demo200.sat.lab.tlv.redhat.com
Delete the TFTP configuration for demo200.sat.lab.tlv.redhat.com
Add the TFTP configuration for shahar.sat.lab.tlv.redhat.com
Failed to generate PXELinux template: Missing host to link to! Please provide :host parameter or set default_url_options[:host]
Fetching required TFTP boot files for shahar.sat.lab.tlv.redhat.com
Delete the TFTP configuration for shahar.sat.lab.tlv.redhat.com
Add the TFTP configuration for paul.sat.lab.tlv.redhat.com
Failed to generate PXELinux template: Missing host to link to! Please provide :host parameter or set default_url_options[:host]
Fetching required TFTP boot files for paul.sat.lab.tlv.redhat.com
Delete the TFTP configuration for paul.sat.lab.tlv.redhat.com
Redirected to http://foreman.sat.lab.tlv.redhat.com/hosts
Completed in 7645ms (DB: 6380) | 302 Found [http://foreman.sat.lab.tlv.redhat.com/hosts/submit_multiple_build]

The wired thing is that the operation completed successfully... not exactly sure why.

Updated by Paul Kelly about 1 year ago

  • Status changed from Assigned to Closed

Also available in: Atom PDF