Bug 1040479 - openstack-foreman-installer: When attempting to deploy host from 'swift storage' hostGroup it fails on "Could not find value for 'storage_local_net_ip.
Summary: openstack-foreman-installer: When attempting to deploy host from 'swift stora...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-foreman-installer
Version: 4.0
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
: ---
Assignee: Jason Guiditta
QA Contact: Ami Jeain
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-11 13:55 UTC by Omri Hochman
Modified: 2013-12-11 15:05 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-11 15:05:03 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Omri Hochman 2013-12-11 13:55:11 UTC
openstack-foreman-installer: When attempting to deploy host from 'swift storage' hostGroup it fails on "Could not find value for 'storage_local_net_ip.

Environment (havana puddle 2013-12-09.2):
----------------------------
openstack-foreman-installer-0.0.24-1.el6ost.noarch
puppet-3.2.4-3.el6_5.noarch
puppet-server-3.2.4-3.el6_5.noarch
packstack-modules-puppet-2013.2.1-0.14.dev919.el6ost.noarch


Steps:
------
1) Install foreman 
2) Deploy controller.  
2) Add second host to 'Swift storage' hostGroup
3) run puppet agent -t -v (on the second host)

Results:
---------
deployment of swift storage fails

Swift storage node (output):
----------------------------
[root@puma38 ~]# puppet agent -t -v
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/network.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ipa_client_configured.rb
Info: Loading facts in /var/lib/puppet/lib/facter/hamysql_active_node.rb
Info: Loading facts in /var/lib/puppet/lib/facter/netns_support.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template swift/account-server.conf.erb:
  Filepath: /usr/lib/ruby/site_ruby/1.8/puppet/parser/templatewrapper.rb
  Line: 81
  Detail: Could not find value for 'storage_local_net_ip' at /usr/share/packstack/modules/swift/templates/account-server.conf.erb:3
 at /usr/share/packstack/modules/swift/manifests/storage/server.pp:70 on node puma38.scl.lab.tlv.redhat.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Comment 1 Omri Hochman 2013-12-11 14:57:26 UTC
According to /usr/share/openstack-foreman-installer/puppet/modules/quickstack/manifests/swift/storage.pp line 12

 class { '::swift::storage::all':
    storage_local_net_ip => getvar("ipaddress_${swift_local_interface}"),
    require => Class['swift'],
  } 


It uses the interface set in the hostGroup parameters 
 swift_local_interface	= eth3 

Since there was no - IP Addr on that NIC I got the above Error.


Note You need to log in before you can comment on or make changes to this bug.