librelist archives

« back to archive

[baughj/Merlin] c4d6a9: * Userdata: various fixes.

[baughj/Merlin] c4d6a9: * Userdata: various fixes.

From:
Date:
2011-04-07 @ 20:57
Branch: refs/heads/development
Home:   https://github.com/baughj/Merlin

Commit: c4d6a95c17eafb6fc3e98f19d044380b08af71b2
    
https://github.com/baughj/Merlin/commit/c4d6a95c17eafb6fc3e98f19d044380b08af71b2
Author: Justin Baugh <baughj@discordians.net>
Date:   2011-04-07 (Thu, 07 Apr 2011)

Changed paths:
  M public/files/userdata.erb

Log Message:
-----------
* Userdata: various fixes.
  * Don't do stupid things like think we have volume and instance IDs
    before instantiation
  * use curl instead of wget (curl will save the response body of status
    5xx respoonses; wget won't)
  * Move "modifiable" contents to the top to make the script easier to manage
  * Create api_request wrapper shell function to check returns (since we wish
    to save API returns in any case, and both curl / wget won't do this and
    return with a nonzero exit code)
  * Force debian commands, remember that we are non-interactive so we need -yy
  * Properly escape $fstab in Augeas script
  * Remember to actually mount the volume, dur
  * Fix dumb errors in URLs and s/intervene/notify


Commit: 1f97c9ecaeba880e54c0d5d7e780b34fa23204c0
    
https://github.com/baughj/Merlin/commit/1f97c9ecaeba880e54c0d5d7e780b34fa23204c0
Author: Justin Baugh <baughj@discordians.net>
Date:   2011-04-07 (Thu, 07 Apr 2011)

Changed paths:
  M app/controllers/instances_controller.rb
  M app/processors/instance_requested_api_update_processor.rb

Log Message:
-----------
* InstancesController: bug fixing
  * Make sure new volumes have their AZ and associated cloud set correctly
  * s/request_attachment/attach/
  * Bug: If we create an instance and volume in Merlin, and then do a full API
    update, the volume is disassociated (because it isn't attached). Change
    the publication to support an "update_type" variable, and only update instance
    metadata during our first pass (e.g. when hello is run)
  * View path incorrect (api/response -> instances/api_response)
* InstanceRequestedApiUpdateProcessor
  * Allow for metadata updates (don't update attached volume info)


Commit: df8707925ad6a8d1bca53ae993163d163830af42
    
https://github.com/baughj/Merlin/commit/df8707925ad6a8d1bca53ae993163d163830af42
Author: Justin Baugh <baughj@discordians.net>
Date:   2011-04-07 (Thu, 07 Apr 2011)

Changed paths:
  M app/models/dns_provider.rb

Log Message:
-----------
DnsProvider: Fix logic bug that was resulting in CNAMEs being created 
where A's were requested


Commit: 5d49fcd863b2c9dce079db4c677976cf5ac300e8
    
https://github.com/baughj/Merlin/commit/5d49fcd863b2c9dce079db4c677976cf5ac300e8
Author: Justin Baugh <baughj@discordians.net>
Date:   2011-04-07 (Thu, 07 Apr 2011)

Changed paths:
  M app/models/instance.rb

Log Message:
-----------
Instance: add attached_volumes? function, to indicate if any volumes are 
attached to the instance


Commit: e9821744bb7198d9b20eae3708bf1e092ece1736
    
https://github.com/baughj/Merlin/commit/e9821744bb7198d9b20eae3708bf1e092ece1736
Author: Justin Baugh <baughj@discordians.net>
Date:   2011-04-07 (Thu, 07 Apr 2011)

Changed paths:
  M app/models/volume.rb

Log Message:
-----------
* Volume: bug fixes/typos.
 * status -> status_code / attachment_status_code
 * instance_id for attachment requests should be the endpoint instance
   id and not the Merlin instance id
 * Fix logic with multiple EBS volume support / instance already being attached
 * Logic error: availability_zone.nil?
 * Make sure availability_zone is set correctly upon invocation


Commit: 1be0edc9581feb938fce1249cd430c7ab91f1f78
    
https://github.com/baughj/Merlin/commit/1be0edc9581feb938fce1249cd430c7ab91f1f78
Author: Justin Baugh <baughj@discordians.net>
Date:   2011-04-07 (Thu, 07 Apr 2011)

Changed paths:
  A db/migrate/20110407150701_add_puppet_capath_to_cloud.rb
  A db/migrate/20110407201320_notification_template.rb
  M db/schema.rb

Log Message:
-----------
Migrations: Add puppet_capath, NotificationTemplate, update schema


Commit: 2b8acb61c70c2fe5959f4b3bccbfc48275f5347c
    
https://github.com/baughj/Merlin/commit/2b8acb61c70c2fe5959f4b3bccbfc48275f5347c
Author: Justin Baugh <baughj@discordians.net>
Date:   2011-04-07 (Thu, 07 Apr 2011)

Changed paths:
  M lib/tasks/merlin.rake

Log Message:
-----------
Merlin rake: use config/site-userdata.erb


Commit: 50303cba0efb7f3a54b2a0cabde4cf0784ad65b3
    
https://github.com/baughj/Merlin/commit/50303cba0efb7f3a54b2a0cabde4cf0784ad65b3
Author: Justin Baugh <baughj@discordians.net>
Date:   2011-04-07 (Thu, 07 Apr 2011)

Changed paths:
  M app/processors/instance_requested_puppet_certificate.rb
  M app/processors/instance_requested_reservation_processor.rb

Log Message:
-----------
* InstanceRequestedPuppetCertificate: Clean up code, don't use open4
* InstanceRequestedReservationProcessor: Make sure volumes exist when an instance
  requests reservation


Commit: 7de84361cddb5703cdd9690acaf3cb25ba3a4659
    
https://github.com/baughj/Merlin/commit/7de84361cddb5703cdd9690acaf3cb25ba3a4659
Author: Justin Baugh <baughj@discordians.net>
Date:   2011-04-07 (Thu, 07 Apr 2011)

Changed paths:
  M app/views/instances/new.erb

Log Message:
-----------
New instance view: Make sure to get attachment device and fstype


Commit: 854d7fa35c5a2fdd8723d8c27e04921bf9f72bc5
    
https://github.com/baughj/Merlin/commit/854d7fa35c5a2fdd8723d8c27e04921bf9f72bc5
Author: Justin Baugh <baughj@discordians.net>
Date:   2011-04-07 (Thu, 07 Apr 2011)

Changed paths:
  M .gitignore
  A config/userdata.erb
  M lib/tasks/merlin.rake
  A public/files/site-userdata.erb
  R public/files/userdata.erb

Log Message:
-----------
Move userdata to ./config


Compare: https://github.com/baughj/Merlin/compare/2b7826b...854d7fa