Bug #12608
openundefined method `cpu_shares'
Description
Description of problem:
When creating new container the container is started though the below message is displayed.
Version release number:
Foreman 1.7.5-1
ruby-foreman-docker 1.4.1
Steps to reproduce:
Foreman UI Containers > New Container > Compute Resource (Select docker host) Click Next > Image (type ubuntu, tag 14.04, click next) > Configuration (type a name, set command to /bin/bash leave entrypoint blank/default) > Environment (tick run or not) Hit submit
Actual results:
Popup notification in green "successfully updated <container_name>"
with below error
undefined method `cpu_shares' for #<Fog::Compute::Fogdocker::Server:0x0000000b1887c8>
NoMethodError
undefined method `cpu_shares' for #<Fog::Compute::Fogdocker::Server:0x0000000b174b60>
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'
No data to display