Project

General

Profile

Actions

Feature #350

closed

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

Added by Paul Kelly over 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #623: Multiple build commit was incompleteClosedPaul Kelly01/27/2011Actions
Actions #1

Updated by Ohad Levy over 14 years ago

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

environment is already possible, build?

Actions #2

Updated by Ohad Levy about 14 years ago

  • Target version set to 0.2
Actions #4

Updated by Ohad Levy almost 14 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
Actions #5

Updated by Paul Kelly almost 14 years ago

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

Updated by Paul Kelly almost 14 years ago

Updated the branch to incorporate Ohad's request for setBuild

Actions #7

Updated by Paul Kelly almost 14 years ago

  • % Done changed from 0 to 100
Actions #8

Updated by Ohad Levy almost 14 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.

Actions #9

Updated by Paul Kelly almost 14 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF