Unable to update bmc entry in foreman for host that was loaded from discovered_hosts.

Solution In Progress - Updated -

Issue

  • Following an update to latest Red Hat OpenStack 5.0 packages, foreman-discovery is now collecting BMC device information and due to this new behavior, existing scripts are failing

  • Previous version was Red Hat Enterprise Linux Server release 6.5 (Santiago) and the following packages were installed:

foreman-installer-1.5.0-0.6.RC2.el6ost.noarch
foreman-1.6.0.21-2.el6sat.noarch
rubygem-foreman_api-0.1.11-4.el6sat.noarch
ruby193-rubygem-foreman_openstack_simplify-0.0.6-8.el6ost.noarch
foreman-selinux-1.6.0.3-2.el6sat.noarch
foreman-proxy-1.6.0.8-1.el6sat.noarch
rubygem-hammer_cli_foreman-0.1.0-6.el6sat.noarch
ruby193-rubygem-foreman_hooks-0.3.7-3.el6.noarch
ruby193-rubygem-foreman_hooks-doc-0.3.7-3.el6.noarch
ruby193-rubygem-foreman_discovery-1.3.0-2.el6sat.noarch
foreman-mysql2-1.6.0.21-2.el6sat.noarch
openstack-foreman-installer-2.0.22-1.el6ost.noarch
rubygem-hammer_cli_foreman-doc-0.1.0-6.el6sat.noarch
ruby193-rubygem-foreman_column_view-0.2.0-1.el6.noarch
foreman-discovery-image-6.5-20140620.2.el6sat.noarch
rubygem-hammer_cli-0.1.0-5.el6sat.noarch
rubygem-hammer_cli_foreman-0.1.0-6.el6sat.noarch
rubygem-hammer_cli-doc-0.1.0-5.el6sat.noarch
rubygem-hammer_cli_foreman-doc-0.1.0-6.el6sat.noarch
  • New version is Red Hat Enterprise Linux Server release 6.7 (Santiago) and the following packages are installed:
rubygem-hammer_cli_foreman-0.1.1-16.el6sat.noarch
ruby193-rubygem-foreman_openstack_simplify-0.0.6-8.el6ost.noarch
ruby193-rubygem-foreman_column_view-0.2.0-1.el6.noarch
bac-RHEL6-ost5-foreman-1.0-1.noarch
openstack-foreman-installer-2.0.34-1.el6ost.noarch
ruby193-rubygem-foreman_hooks-0.3.8-1.el6.noarch
ruby193-rubygem-foreman_discovery-1.3.0-2.2.el6ost.noarch
foreman-installer-1.6.0-0.2.RC1.el6ost.noarch
foreman-mysql2-1.6.0.44-6.el6ost.noarch
foreman-discovery-image-7.0-20140905.0.2.el7sat.noarch
ruby193-rubygem-foreman_hooks-doc-0.3.8-1.el6.noarch
foreman-selinux-1.6.0.14-1.el6sat.noarch
foreman-proxy-1.6.0.33-2.el6ost.noarch
rubygem-hammer_cli_foreman-doc-0.1.1-16.el6sat.noarch
foreman-1.6.0.44-6.el6ost.noarch
rubygem-hammer_cli_foreman-0.1.1-16.el6sat.noarch
rubygem-hammer_cli-doc-0.1.1-12.el6sat.noarch
rubygem-hammer_cli-0.1.1-12.el6sat.noarch
rubygem-hammer_cli_foreman-doc-0.1.1-16.el6sat.noarch
  • The following command is now failing:
# /usr/bin/hammer host update --name hostname01 --interface type=Nic::BMC,name=hostname01,mac=00:00:00:00:00:00,ip=10.10.10.10,username=root,password=calvin,provider=IPMI

Could not update the host:
  Ip has already been taken

Environment

  • Red Hat OpenStack 5.0 (RHOS)
  • Red Hat Enterprise Linux 6.7 (RHEL)
  • Red Hat Enterprise Linux 6.5 (RHEL)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In