Git Product home page Git Product logo

chef-omnibus_updater_windows's People

Contributors

troyready avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

chef-omnibus_updater_windows's Issues

Install task fails if cache path includes forward slashes

If the client.rb of the windows machine contains forward slashes (example: file_cache_path "c:/chef/cache"), the task will be created, but it will fail with a msiexec 1619 error. Having the cookbook check and correct / into \ in the cache path variable would fix this issue.

initialized constant URL_MAP

I want to test this cookbook. I create a kitchen file (vagrant) with chef omnibus set to 11.16.2.
In kitchen attributes, I set omnibus_updater version to 12.0.3.

Its failed at the end of converge task.

When I login to windows, chef-client is still 11.16.2, scheduled task is installed but is is not run.

Kitchen output:

 % BUNDLE_GEMFILE=Gemfile.windows KITCHEN_YAML=.kitchen.windows.yml bundle exec kitchen converge windows-2012R2-datacenter-nocm
-----> Starting Kitchen (v1.3.0)
-----> Creating <default-windows-2012R2-datacenter-nocm>...
       Bringing machine 'default' up with 'virtualbox' provider...
       ==> default: Importing base box 'windows-2012R2-datacenter-nocm'...
..
       ==> default: Forwarding ports...
           default: 3389 => 3389 (adapter 1)
           default: 5985 => 5985 (adapter 1)
           default: 22 => 2222 (adapter 1)
       ==> default: Running 'pre-boot' VM customizations...
       ==> default: Booting VM...
       ==> default: Waiting for machine to boot. This may take a few minutes...
       ==> default: Machine booted and ready!
       ==> default: Checking for guest additions in VM...
       ==> default: Setting hostname...
       ==> default: Machine not provisioning because `--no-provision` is specified.
       Vagrant instance <default-windows-2012R2-datacenter-nocm> created.
       Finished creating <default-windows-2012R2-datacenter-nocm> (1m46.68s).
-----> Converging <default-windows-2012R2-datacenter-nocm>...
       Preparing files for transfer
       Preparing dna.json
       Resolving cookbook dependencies with Berkshelf 3.2.2...
       Removing non-cookbook files before transfer
       Preparing data_bags
       Preparing validation.pem
       Preparing client.rb
-----> Installing Chef Omnibus (11.16.2)
  [MSI] [############################] Completed!
       Transferring files to <default-windows-2012R2-datacenter-nocm>
       Concurrent threads set to :max_threads => 20
       [2015-01-09T03:52:09-08:00] INFO: Starting chef-zero on host localhost, port 8889 with repository at repository at C:/tmp/kitchen
         One version per cookbook
       [2015-01-09T03:52:13-08:00] INFO: *** Chef 11.16.2 ***
       [2015-01-09T03:52:13-08:00] INFO: Chef-client pid: 3044
       [2015-01-09T03:52:18-08:00] INFO: Client key /tmp/kitchen/client.pem is not present - registering
       [2015-01-09T03:52:18-08:00] INFO: HTTP Request Returned 404 Not Found : Object not found: http://localhost:8889/nodes/default-windows-2012R2-datacenter-nocm
       [2015-01-09T03:52:18-08:00] INFO: Setting the run_list to ["recipe[base::install]"] from CLI options
       [2015-01-09T03:52:18-08:00] INFO: Run List is [recipe[base::install]]
       [2015-01-09T03:52:18-08:00] INFO: Run List expands to [base::install]
       [2015-01-09T03:52:18-08:00] INFO: Starting Chef Run for default-windows-2012R2-datacenter-nocm
       [2015-01-09T03:52:18-08:00] INFO: Running start handlers
       [2015-01-09T03:52:18-08:00] INFO: Start handlers complete.
       [2015-01-09T03:52:18-08:00] INFO: HTTP Request Returned 404 Not Found : Object not found: /reports/nodes/default-windows-2012R2-datacenter-nocm/runs
       [2015-01-09T03:52:20-08:00] INFO: Loading cookbooks [[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]]
       [2015-01-09T03:52:21-08:00] INFO: Storing updated ... in the cache.
       [2015-01-09T03:52:27-08:00] INFO: Processing remote_file[omnibus_remote[chef-client-12.0.3-1.msi]] action create_if_missing (omnibus_updater_windows::downloader line 38)
       [2015-01-09T03:52:27-08:00] INFO: remote_file[omnibus_remote[chef-client-12.0.3-1.msi]] created file /tmp/kitchen/cache/chef-client-12.0.3-1.msi
       [2015-01-09T03:53:01-08:00] INFO: remote_file[omnibus_remote[chef-client-12.0.3-1.msi]] updated file contents /tmp/kitchen/cache/chef-client-12.0.3-1.msi
       [2015-01-09T03:53:01-08:00] INFO: remote_file[omnibus_remote[chef-client-12.0.3-1.msi]] sending create action to ruby_block[Omnibus Chef install notifier] (immediate)
       [2015-01-09T03:53:01-08:00] INFO: Processing ruby_block[Omnibus Chef install notifier] action create (omnibus_updater_windows::installer line 44)
       [2015-01-09T03:53:01-08:00] INFO: ruby_block[Omnibus Chef install notifier] called
       [2015-01-09T03:53:01-08:00] INFO: Processing execute[delete scheduled task] action run (omnibus_updater_windows::installer line 29)
       [2015-01-09T03:53:01-08:00] INFO: Processing execute[omnibus_install[chef-client-12.0.3-1.msi]] action nothing (omnibus_updater_windows::installer line 35)
       [2015-01-09T03:53:01-08:00] INFO: Processing ruby_block[Omnibus Chef install notifier] action nothing (omnibus_updater_windows::installer line 44)
       [2015-01-09T03:53:01-08:00] INFO: ruby_block[Omnibus Chef install notifier] sending run action to execute[omnibus_install[chef-client-12.0.3-1.msi]] (delayed)
       [2015-01-09T03:53:01-08:00] INFO: Processing execute[omnibus_install[chef-client-12.0.3-1.msi]] action run (omnibus_updater_windows::installer line 35)
       [2015-01-09T03:53:01-08:00] INFO: execute[omnibus_install[chef-client-12.0.3-1.msi]] ran successfully
       [2015-01-09T03:53:03-08:00] INFO: Chef Run complete in 44.484331 seconds
       [2015-01-09T03:53:03-08:00] INFO: Running report handlers
       [2015-01-09T03:53:03-08:00] INFO: Report handlers complete
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #converge action: [Transport WinRM exited (0) using shell [powershell] for command: [chef-client --local-mode --config /tmp/kitchen/client.rb --log_level info --chef-zero-port 8889 --json-attributes /tmp/kitchen/dna.json]
REMOTE ERROR:
C:/tmp/kitchen/cache/cookbooks/omnibus_updater_windows/libraries/omnitrucker.rb:3: warning: already initialized constant URL_MAP
]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

Any idea ?

And why do you use a scheduled tasks and not install chef client immediately ?

unable to install .msi on 2012

incase of windows 2008, by overriding the "directurl" in role, the cookbook was able to fetch new .msi and install it after 15 minutes.but the new chef-client was not checkin.

and Incase of 2012, the cookbook was able to download the .msi, but can't install it.I am still seeing the old chef-client.

Scheduled task time is calculated at compile time and not run time

Looks like the scheduled task time is calculated at compile time (beginning of chef-run), if the chef-run takes a long time, this may cause that time to already pass by the time the scheduled task is created.

This calculation should be moved to run time instead in order to avoid that problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.