Hi,

In crowbar_framework/app/views/support/bootstrap.html.haml

This trick:

 $("a#bootstrap_bootstrap").on("click", function() {
      $.post("#{bootstrap_path()}");
      location.reload();
    });

to create the admin network by using a POST request on the bootstrap page,
which should call

>crowbar_framework/app/controllers/support_controller.rb
if request.post?
      # only create if no other netwroks
      if BarclampNetwork::Network.count == 0
        deployment = Deployment.system_root.first
        BarclampNetwork::Network.transaction do
          net = BarclampNetwork::Network.create :name=>'admin',
:description=>I18n.t('support.bootstrap.admin_net'),  :deployment_id=>
deployment.id, :conduit=>'1g0', :v6prefix => "auto"
          BarclampNetwork::Range.create :name=>'admin', :network_id=>net.id,
:first=>"192.168.124.10/24", :last=>"192.168.124.11/24"
          BarclampNetwork::Range.create :name=>'dhcp', :network_id=>net.id,
:first=>"192.168.124.21/24", :last=>"192.168.124.80/24"
          BarclampNetwork::Range.create :name=>'host', :network_id=>net.id,
:first=>"192.168.124.81/24", :last=>"192.168.124.254/24"
        end
      end
    end

Works on Firefox, Chrome but doesn't work on Safari or Midori.

I'm sharing it because I spent some time trying to understand why my admin
network wasn't created while bootstrapping the admin node ;) Now I know !!!

It's the same problem for the Assign an admin Node button which doesn't
work from Safari/Midori.

Have a great week-end.
-- 
Sébastien
_______________________________________________
Crowbar mailing list
Crowbar@dell.com
https://lists.us.dell.com/mailman/listinfo/crowbar
For more information: http://crowbar.github.com/

Reply via email to