Project

General

Profile

Feature #350

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

Added by Paul Kelly about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Related issues

Related to Foreman - Bug #623: Multiple build commit was incompleteClosed2011-01-27

Associated revisions

Revision 1f927b16 (diff)
Added by Paul Kelly over 8 years ago

Fixes #350 - Add multiple build operation

History

#1 Updated by Ohad Levy almost 9 years ago

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

environment is already possible, build?

#2 Updated by Ohad Levy over 8 years ago

  • Target version set to 0.2

#4 Updated by Ohad Levy over 8 years 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

#5 Updated by Paul Kelly over 8 years ago

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

#6 Updated by Paul Kelly over 8 years ago

Updated the branch to incorporate Ohad's request for setBuild

#7 Updated by Paul Kelly over 8 years ago

  • % Done changed from 0 to 100

#8 Updated by Ohad Levy over 8 years 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.

#9 Updated by Paul Kelly over 8 years ago

  • Status changed from Assigned to Closed

Also available in: Atom PDF