Unable to create bond or bridge with foreman 1.13

Hi again,

Further with testing I discover that the "Add interface" dialog on "New
host" or provisioning discovered host doesn't change anymore when
choosing bond, bridge or BMC interface type.

The dialog used to change so I was able to set the slave interfaces and
bonding options. Now it doesn't anymore :frowning:

Met vriendelijke groet, With kind regards,

Jorick Astrego

Netbulae Virtualization Experts

··· ----------------
Tel: 053 20 30 270 	info@netbulae.eu 	Staalsteden 4-3A 	KvK 08198180
Fax: 053 20 30 271 	www.netbulae.eu 	7547 TA Enschede 	BTW NL821234584B01

>
> Hi again,
>
> Further with testing I discover that the "Add interface" dialog on
> "New host" or provisioning discovered host doesn't change anymore when
> choosing bond, bridge or BMC interface type.
>
> The dialog used to change so I was able to set the slave interfaces
> and bonding options. Now it doesn't anymore :frowning:
>
>

Forgot to add the output in foreman's production.log:

2016-10-12 12:25:47 e0539c47 [app] [W] Action failed
  > ActiveModel::ForbiddenAttributesError:
ActiveModel::ForbiddenAttributesError
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activemodel-4.2.5.1/lib/active_model/forbidden_attributes_protection.rb:21:in
`sanitize_for_mass_assignment'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/attribute_assignment.rb:33:in
`assign_attributes'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/core.rb:566:in
`init_attributes'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/core.rb:281:in
`initialize'
  > /usr/share/foreman/app/models/host/base.rb:70:in `initialize'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/url_for.rb:104:in
`initialize'
  > /usr/share/foreman/app/models/host/managed.rb:49:in `initialize'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/inheritance.rb:61:in
`new'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/inheritance.rb:61:in
`new'
  > /usr/share/foreman/app/models/concerns/foreman/sti.rb:22:in
`new_with_cast'
  > /usr/share/foreman/app/models/host.rb:14:in `method_missing'
  > /usr/share/foreman/app/controllers/interfaces_controller.rb:8:in
`new'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/implicit_render.rb:4:in
`send_action'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:198:in
`process_action'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:10:in
`process_action'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:20:in
`block in process_action'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in
`block (2 levels) in compile'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in
`block (2 levels) in around'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in
`block (2 levels) in halting'
  >
/opt/theforeman/tfm/root/usr/share/gems/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:in
`around'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in
`public_send'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in
`block in make_lambda'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in
`block in halting'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in
`block in around'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in
`block (2 levels) in around'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in
`block (2 levels) in halting'
  >
/usr/share/foreman/app/controllers/concerns/application_shared.rb:14:in
`set_timezone'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in
`block in make_lambda'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in
`block in halting'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in
`block in around'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in
`block (2 levels) in around'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in
`block (2 levels) in halting'
  >
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in
`clear_thread'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in
`block in make_lambda'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in
`block in halting'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in
`block in around'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in
`block (2 levels) in around'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in
`block (2 levels) in halting'
  >
/opt/theforeman/tfm/root/usr/share/gems/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:in
`around'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in
`public_send'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in
`block in make_lambda'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in
`block in halting'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in
`block in around'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in
`__run_callbacks__'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in
`_run_process_action_callbacks'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in
`run_callbacks'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:19:in
`process_action'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rescue.rb:29:in
`process_action'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:32:in
`block in process_action'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in
`block in instrument'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in
`instrument'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in
`instrument'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:30:in
`process_action'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/params_wrapper.rb:250:in
`process_action'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/railties/controller_runtime.rb:18:in
`process_action'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:137:in
`process'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:30:in
`process'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal.rb:196:in
`dispatch'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rack_delegation.rb:13:in
`dispatch'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal.rb:237:in
`block in action'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:74:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:74:in
`dispatch'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:43:in
`serve'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:43:in
`block in serve'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:in
`each'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:in
`serve'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:815:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in
`call'
  >
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.3.6/lib/apipie/static_dispatcher.rb:65:in
`call'
  >
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.3.6/lib/apipie/extractor/recorder.rb:132:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in
`call'
  >
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.3.6/lib/apipie/middleware/checksum_in_headers.rb:27:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/etag.rb:24:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/conditionalget.rb:25:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/head.rb:13:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/params_parser.rb:27:in
`call'
  >
/usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/flash.rb:260:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/session/abstract/id.rb:225:in
`context'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/session/abstract/id.rb:220:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/cookies.rb:560:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/query_cache.rb:36:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/callbacks.rb:29:in
`block in call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:88:in
`__run_callbacks__'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in
`_run_call_callbacks'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in
`run_callbacks'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/callbacks.rb:27:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/remote_ip.rb:78:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/rack/logger.rb:38:in
`call_app'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/rack/logger.rb:22:in
`call'
  > /usr/share/foreman/lib/middleware/tagged_logging.rb:18:in `call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/request_id.rb:21:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/methodoverride.rb:22:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/runtime.rb:18:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/sendfile.rb:113:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/engine.rb:518:in
`call'
  >
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/li
··· On 10/12/2016 12:25 PM, Jorick Astrego wrote:

I can confirm the behavior, NIC page does not reload in 1.13 and develop,
reported here:

LZ

··· On Wed, Oct 12, 2016 at 12:25 PM, Jorick Astrego wrote:

Hi again,

Further with testing I discover that the “Add interface” dialog on “New
host” or provisioning discovered host doesn’t change anymore when choosing
bond, bridge or BMC interface type.

The dialog used to change so I was able to set the slave interfaces and
bonding options. Now it doesn’t anymore :frowning:

Met vriendelijke groet, With kind regards,

Jorick Astrego

*Netbulae Virtualization Experts *

Tel: 053 20 30 270 info@netbulae.eu Staalsteden 4-3A KvK 08198180
Fax: 053 20 30 271 www.netbulae.eu 7547 TA Enschede BTW NL821234584B01


You received this message because you are subscribed to the Google Groups
“Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Later,
Lukas @lzap Zapletal

> Forgot to add the output in foreman's production.log:
>
> 2016-10-12 12:25:47 e0539c47 [app] [W] Action failed
> > ActiveModel::ForbiddenAttributesError:
> ActiveModel::ForbiddenAttributesError

File an issue, this is a regression caused by attribute filters.

··· -- Later, Lukas #lzap Zapletal

I second / 3rd this issue.

is there any workaround short of waiting for 1.13.2? Seems also that the
discovery image has an issue that its trying to purge dns that doesn't
exist and giving a null ip error when trying to provision a bonded host as
well. There is a ticket in redmine for that issue already too.

··· On Tuesday, November 1, 2016 at 10:05:52 AM UTC-5, Lukas Zapletal wrote: > > I can confirm the behavior, NIC page does not reload in 1.13 and develop, > reported here: > > http://projects.theforeman.org/issues/17170 > > LZ > > On Wed, Oct 12, 2016 at 12:25 PM, Jorick Astrego > wrote: > >> Hi again, >> >> Further with testing I discover that the "Add interface" dialog on "New >> host" or provisioning discovered host doesn't change anymore when choosing >> bond, bridge or BMC interface type. >> >> The dialog used to change so I was able to set the slave interfaces and >> bonding options. Now it doesn't anymore :-( >> >> >> >> >> >> >> Met vriendelijke groet, With kind regards, >> >> Jorick Astrego >> >> *Netbulae Virtualization Experts * >> ------------------------------ >> Tel: 053 20 30 270 in...@netbulae.eu Staalsteden 4-3A KvK >> 08198180 >> Fax: 053 20 30 271 www.netbulae.eu 7547 TA Enschede BTW NL821234584B01 >> ------------------------------ >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-user...@googlegroups.com . >> To post to this group, send email to forema...@googlegroups.com >> . >> Visit this group at https://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Later, > Lukas @lzap Zapletal >

Dominic made the fix, I will take a look and merge it. Which one is the
discovery issue? If it's related, can you link it with this issue?

LZ

··· On Tue, Nov 1, 2016 at 4:05 PM, Lukas Zapletal wrote:

I can confirm the behavior, NIC page does not reload in 1.13 and develop,
reported here:

Bug #17170: NIC page does not reload when Bond is selected - Foreman

LZ

On Wed, Oct 12, 2016 at 12:25 PM, Jorick Astrego jorick@netbulae.eu > wrote:

Hi again,

Further with testing I discover that the “Add interface” dialog on “New
host” or provisioning discovered host doesn’t change anymore when choosing
bond, bridge or BMC interface type.

The dialog used to change so I was able to set the slave interfaces and
bonding options. Now it doesn’t anymore :frowning:

Met vriendelijke groet, With kind regards,

Jorick Astrego

*Netbulae Virtualization Experts *

Tel: 053 20 30 270 info@netbulae.eu Staalsteden 4-3A KvK 08198180
Fax: 053 20 30 271 www.netbulae.eu 7547 TA Enschede BTW NL821234584B01


You received this message because you are subscribed to the Google Groups
“Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Later,
Lukas @lzap Zapletal


Later,
Lukas @lzap Zapletal

I am having the same (or at least very similar) issue as well. After
upgrading to 1.13.0 I can't create an interface that is seen as bonded to
my snippets. 1.13.1 didn't fix it either.

When adding a bonded interface to a host in foreman, the only way I see the
options to enter attached interfaces or bonding options is to select "Bond"
and add the interface (without being able to specify attached interfaces or
bonding options because those are missing), then when I edit the bonded
interface again, those options are available to me. The interface saves
after I make my edits, but the attached interfaces information does not
persist.

Also, @host.bond_interfaces remains empty because the Bond interface
apparently isn't seen as a bond?

On the host I am working with, I have the provisioning interface, eth0 with
an IP address and MAC assigned to it and marked managed and provisioning.
I have a bonded interface, bond0, which uses eth4/eth7. The bond0 interface
is marked primary and given an IP, but not marked as managed.
eth4 and eth7 are not marked managed, primary or provisioning.

Here's the @host.interfaces array:

@host.interfaces.to_a = [#<Nic::Managed id: 12226, mac: "1c:1c:1c:1c:1c:1c", ip: "1.2.3.31", type: "Nic::Managed", name: "testbox.admin.domain.com", host_id: 18415, subnet_id: 533, domain_id: 10, attrs: {}, created_at: "2016-10-31 19:22:44", updated_at: "2016-10-31 19:22:44", provider: nil, username: nil, password: nil, virtual: false, link: true, identifier: "", tag: "", attached_to: "", managed: true, mode: "balance-rr", attached_devices: "", bond_options: "", primary: false, provision: true, compute_attributes: {}, ip6: "", subnet6_id: nil>, #<Nic::Bond id: 12229, mac: nil, ip: "1.2.4.31", type: "Nic::Bond", name: "testbox.domain.com", host_id: 18415, subnet_id: 534, domain_id: 1, attrs: {}, created_at: "2016-10-31 19:22:44", updated_at: "2016-10-31 19:36:40", provider: nil, username: nil, password: nil, virtual: true, link: true, identifier: "bond0", tag: "", attached_to: "", managed: false, mode: "balance-rr", attached_devices: "", bond_options: "mode=1 miimon=100 downdelay=200 updelay=200 use_ca…", primary: true, provision: false, compute_attributes: {}, ip6: "", subnet6_id: nil>, #<Nic::Managed id: 12227, mac: nil, ip: "", type: "Nic::Managed", name: "", host_id: 18415, subnet_id: nil, domain_id: nil, attrs: {}, created_at: "2016-10-31 19:22:44", updated_at: "2016-10-31 19:22:44", provider: nil, username: nil, password: nil, virtual: false, link: true, identifier: "eth4", tag: "", attached_to: "", managed: false, mode: "balance-rr", attached_devices: "", bond_options: "", primary: false, provision: false, compute_attributes: {}, ip6: "", subnet6_id: nil>, #<Nic::Managed id: 12228, mac: nil, ip: "", type: "Nic::Managed", name: "", host_id: 18415, subnet_id: nil, domain_id: nil, attrs: {}, created_at: "2016-10-31 19:22:44", updated_at: "2016-10-31 19:22:44", provider: nil, username: nil, password: nil, virtual: false, link: true, identifier: "eth7", tag: "", attached_to: "", managed: false, mode: "balance-rr", attached_devices: "", bond_options: "", primary: false, provision: false, compute_attributes: {}, ip6: "", subnet6_id: nil>]

Is there at least a workaround here?

Bill

Later,

··· > Lukas #lzap Zapletal >

Lukas,

This is the ticket with discovery i believe - related to issue of bonding,
but its giving an null ip error for some reason.

http://projects.theforeman.org/issues/17205

··· On Friday, November 4, 2016 at 9:42:59 AM UTC-5, Lukas Zapletal wrote: > > Dominic made the fix, I will take a look and merge it. Which one is the > discovery issue? If it's related, can you link it with this issue? > > LZ > > On Tue, Nov 1, 2016 at 4:05 PM, Lukas Zapletal > wrote: > >> I can confirm the behavior, NIC page does not reload in 1.13 and develop, >> reported here: >> >> http://projects.theforeman.org/issues/17170 >> >> LZ >> >> On Wed, Oct 12, 2016 at 12:25 PM, Jorick Astrego > > wrote: >> >>> Hi again, >>> >>> Further with testing I discover that the "Add interface" dialog on "New >>> host" or provisioning discovered host doesn't change anymore when choosing >>> bond, bridge or BMC interface type. >>> >>> The dialog used to change so I was able to set the slave interfaces and >>> bonding options. Now it doesn't anymore :-( >>> >>> >>> >>> >>> >>> >>> Met vriendelijke groet, With kind regards, >>> >>> Jorick Astrego >>> >>> *Netbulae Virtualization Experts * >>> ------------------------------ >>> Tel: 053 20 30 270 in...@netbulae.eu Staalsteden 4-3A KvK >>> 08198180 >>> Fax: 053 20 30 271 www.netbulae.eu 7547 TA Enschede BTW NL821234584B01 >>> ------------------------------ >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Foreman users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to foreman-user...@googlegroups.com . >>> To post to this group, send email to forema...@googlegroups.com >>> . >>> Visit this group at https://groups.google.com/group/foreman-users. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Later, >> Lukas @lzap Zapletal >> > > > > -- > Later, > Lukas @lzap Zapletal >

I tried the fix, does it require the latest git branch to work? I applied
the patch locally to a running 1.13.1 and when editing a host, i could see
the bond options, however when adding the interfaces as a comma delimited
list they would vanish after i clicked save (no error…) Also, if i try
and use bond after trying to provision a discovered host it doesn't show up
at all there either.

··· On Friday, November 4, 2016 at 9:42:59 AM UTC-5, Lukas Zapletal wrote: > > Dominic made the fix, I will take a look and merge it. Which one is the > discovery issue? If it's related, can you link it with this issue? > > LZ > > On Tue, Nov 1, 2016 at 4:05 PM, Lukas Zapletal > wrote: > >> I can confirm the behavior, NIC page does not reload in 1.13 and develop, >> reported here: >> >> http://projects.theforeman.org/issues/17170 >> >> LZ >> >> On Wed, Oct 12, 2016 at 12:25 PM, Jorick Astrego > > wrote: >> >>> Hi again, >>> >>> Further with testing I discover that the "Add interface" dialog on "New >>> host" or provisioning discovered host doesn't change anymore when choosing >>> bond, bridge or BMC interface type. >>> >>> The dialog used to change so I was able to set the slave interfaces and >>> bonding options. Now it doesn't anymore :-( >>> >>> >>> >>> >>> >>> >>> Met vriendelijke groet, With kind regards, >>> >>> Jorick Astrego >>> >>> *Netbulae Virtualization Experts * >>> ------------------------------ >>> Tel: 053 20 30 270 in...@netbulae.eu Staalsteden 4-3A KvK >>> 08198180 >>> Fax: 053 20 30 271 www.netbulae.eu 7547 TA Enschede BTW NL821234584B01 >>> ------------------------------ >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Foreman users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to foreman-user...@googlegroups.com . >>> To post to this group, send email to forema...@googlegroups.com >>> . >>> Visit this group at https://groups.google.com/group/foreman-users. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Later, >> Lukas @lzap Zapletal >> > > > > -- > Later, > Lukas @lzap Zapletal >

Hello,

what you describe sounds as UI issue, the JS should redraw the form so one
could specify attached devices etc. It seems easily reproducible and is
probably caused by strong params change. Please send the issue number here. A
workaround might be to use API for now.

··· -- Marek

On pondělí 31. října 2016 13:49:30 CET Bill Sirinek wrote:

I am having the same (or at least very similar) issue as well. After
upgrading to 1.13.0 I can’t create an interface that is seen as bonded to
my snippets. 1.13.1 didn’t fix it either.

When adding a bonded interface to a host in foreman, the only way I see the
options to enter attached interfaces or bonding options is to select "Bond"
and add the interface (without being able to specify attached interfaces or
bonding options because those are missing), then when I edit the bonded
interface again, those options are available to me. The interface saves
after I make my edits, but the attached interfaces information does not
persist.

Also, @host.bond_interfaces remains empty because the Bond interface
apparently isn’t seen as a bond?

On the host I am working with, I have the provisioning interface, eth0 with
an IP address and MAC assigned to it and marked managed and provisioning.
I have a bonded interface, bond0, which uses eth4/eth7. The bond0 interface
is marked primary and given an IP, but not marked as managed.
eth4 and eth7 are not marked managed, primary or provisioning.

Here’s the @host.interfaces array:

@host.interfaces.to_a = [#<Nic::Managed id: 12226, mac: “1c:1c:1c:1c:1c:1c”,
ip: “1.2.3.31”, type: “Nic::Managed”, name: “testbox.admin.domain.com”,
host_id: 18415, subnet_id: 533, domain_id: 10, attrs: {}, created_at:
“2016-10-31 19:22:44”, updated_at: “2016-10-31 19:22:44”, provider: nil,
username: nil, password: nil, virtual: false, link: true, identifier: “”,
tag: “”, attached_to: “”, managed: true, mode: “balance-rr”,
attached_devices: “”, bond_options: “”, primary: false, provision: true,
compute_attributes: {}, ip6: “”, subnet6_id: nil>, #<Nic::Bond id: 12229,
mac: nil, ip: “1.2.4.31”, type: “Nic::Bond”, name: “testbox.domain.com”,
host_id: 18415, subnet_id: 534, domain_id: 1, attrs: {}, created_at:
“2016-10-31 19:22:44”, updated_at: “2016-10-31 19:36:40”, provider: nil,
username: nil, password: nil, virtual: true, link: true, identifier:
“bond0”, tag: “”, attached_to: “”, managed: false, mode: “balance-rr”,
attached_devices: “”, bond_options: “mode=1 miimon=100 downdelay=200
updelay=200 use_ca…”, primary: true, provision: false,
compute_attributes: {}, ip6: “”, subnet6_id: nil>, #<Nic::Managed id:
12227, mac: nil, ip: “”, type: “Nic::Managed”, name: “”, host_id: 18415,
subnet_id: nil, domain_id: nil, attrs: {}, created_at: “2016-10-31
19:22:44”, updated_at: “2016-10-31 19:22:44”, provider: nil, username: nil,
password: nil, virtual: false, link: true, identifier: “eth4”, tag: “”,
attached_to: “”, managed: false, mode: “balance-rr”, attached_devices: “”,
bond_options: “”, primary: false, provision: false, compute_attributes: {},
ip6: “”, subnet6_id: nil>, #<Nic::Managed id: 12228, mac: nil, ip: “”,
type: “Nic::Managed”, name: “”, host_id: 18415, subnet_id: nil, domain_id:
nil, attrs: {}, created_at: “2016-10-31 19:22:44”, updated_at: “2016-10-31
19:22:44”, provider: nil, username: nil, password: nil, virtual: false,
link: true, identifier: “eth7”, tag: “”, attached_to: “”, managed: false,
mode: “balance-rr”, attached_devices: “”, bond_options: “”, primary: false,
provision: false, compute_attributes: {}, ip6: “”, subnet6_id: nil>]

Is there at least a workaround here?

Bill

Later,

Lukas #lzap Zapletal